/* ========================
   RESPONSIVE — mobile adaptation
   Breakpoints:
   - >= 1024px: desktop zoom scaling (handled by JS)
   - < 1024px:  tablet / mobile reflow
   - < 768px:   mobile-specific tweaks
   ======================== */

/* === BASE OVERRIDES === */
@media (max-width: 1023px) {
  body {
    min-width: 0;
  }
}

/* ========================
   HEADER — burger menu
   ======================== */
.section-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.section-header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-cream);
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 1023px) {
  .section-header__burger {
    display: flex;
  }

  .section-header__nav,
  .section-header__lang,
  .lang-switcher {
    display: none;
  }

  .section-header__inner {
    padding: 0 24px;
    justify-content: center;
  }

  .section-header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .section-header__burger {
    position: absolute;
    right: 24px;
  }

  .section-header.menu-open .section-header__nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: fixed;
    inset: 0;
    background-color: var(--color-dark-maroon);
    z-index: 100;
    justify-content: flex-start;
    padding-top: 120px;
  }

  .section-header.menu-open .section-header__sep {
    display: none;
  }

  .section-header.menu-open .section-header__link {
    font-size: 24px;
    line-height: 32px;
  }

  .section-header.menu-open .section-header__logo {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 102;
  }

  .section-header.menu-open .section-header__lang,
  .section-header.menu-open .lang-switcher {
    display: inline-block;
    position: fixed;
    bottom: 260px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 101;
  }

  .section-header.menu-open .section-header__burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .section-header.menu-open .section-header__burger span:nth-child(2) {
    opacity: 0;
  }
  .section-header.menu-open .section-header__burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ========================
   HERO
   ======================== */
@media (max-width: 1023px) {
  .section-hero {
    height: 100vh;
    min-height: 600px;
  }

  .section-hero__content {
    padding-top: 140px;
    justify-content: center;
    padding-bottom: 80px;
    text-align: center;
  }

  .section-hero__emblem {
    width: 120px;
    height: 134.7px;
  }

  .section-hero__wordmark {
    margin-top: 40px;
    width: 90%;
    height: auto;
  }

  .section-hero__cta {
    margin-top: 40px;
    width: 280px;
    font-size: 16px !important;
  }
}

/* ========================
   ABOUT US
   ======================== */
@media (max-width: 1023px) {
  .section-about {
    height: auto;
    padding: 60px 24px 80px;
    border-bottom: 1px solid var(--color-cream);
  }

  .section-about__label,
  .section-about__separator,
  .section-about__photo,
  .section-about__title,
  .section-about__subtitle,
  .section-about__col,
  .section-about__cta {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
  }

  .section-about__label--left,
  .section-about__label--right {
    display: none;
  }

  .section-about__separator {
    display: none;
  }

  .section-about__photos {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;
  }

  .section-about__photo--left,
  .section-about__photo--right {
    width: calc(50% - 4px) !important;
    max-width: 170px;
    height: auto;
    aspect-ratio: 295 / 357;
    flex-shrink: 1;
    margin: 0 !important;
  }

  .section-about__title {
    margin-top: 40px;
    font-size: 60px;
    line-height: 52px;
    letter-spacing: -4px;
    text-align: center !important;
  }

  .section-about__subtitle {
    margin-top: 8px;
    font-size: 48px;
    line-height: 56px;
    width: 100%;
    text-align: center !important;
  }

  .section-about__col--left,
  .section-about__col--right {
    width: 100%;
    margin-top: 32px;
    text-align: justify !important;
    font-size: 16px !important;
    line-height: 20px !important;
  }

  .section-about__cta {
    margin: 48px auto 0;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 371px;
    font-size: 16px !important;
  }

  /* --- About RU/UA mobile --- */
  .section-about-ru {
    height: auto !important;
    padding: 60px 24px 80px !important;
    border-bottom: 1px solid var(--color-cream);
  }

  .section-about-ru__label,
  .section-about-ru__separator {
    display: none !important;
  }

  .section-about-ru__photo,
  .section-about-ru__title,
  .section-about-ru__script,
  .section-about-ru__col,
  .section-about-ru__cta {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
  }

  .section-about-ru__photo--left,
  .section-about-ru__photo--right {
    display: inline-block;
    width: calc(50% - 4px) !important;
    max-width: 170px;
    height: auto !important;
    aspect-ratio: 295 / 357;
    vertical-align: top;
    margin-left: auto;
    margin-right: auto;
  }

  /* Center photos container */
  .section-about-ru {
    text-align: center;
  }

  .section-about-ru__title {
    margin-top: 40px !important;
    font-size: 42px !important;
    line-height: 36px !important;
    letter-spacing: -2px !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .section-about-ru__script {
    margin-top: 8px !important;
    font-size: 40px !important;
    line-height: 44px !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .section-about-ru__col--left,
  .section-about-ru__col--right {
    width: 100% !important;
    margin-top: 32px !important;
    text-align: justify !important;
    font-size: 16px !important;
    line-height: 20px !important;
  }

  .section-about-ru__cta {
    margin: 48px auto 0 !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 371px !important;
    height: 57px !important;
    font-size: 16px !important;
  }
}

/* ========================
   OUR SERVICES
   ======================== */
@media (max-width: 1023px) {
  .section-services {
    height: auto;
    padding-bottom: 60px;
  }

  .section-services__bg,
  .section-services__overlay-left,
  .section-services__overlay-right {
    display: none;
  }

  .section-services__title,
  .section-services__sep,
  .section-services__num,
  .section-services__heading,
  .section-services__thumb,
  .section-services__desc,
  .section-services__bottom-sep {
    position: relative;
    left: auto;
    top: auto;
  }

  .section-services__sep--left,
  .section-services__sep--right {
    display: none;
  }

  .section-services__title {
    padding: 60px 24px 40px;
    font-size: 64px;
    line-height: 56px;
    letter-spacing: 0 !important;
    text-align: center;
    white-space: normal;
    width: 100%;
  }

  .section-services__num,
  .section-services__heading,
  .section-services__thumb,
  .section-services__desc {
    display: block;
    width: auto;
    margin: 0 24px;
    height: auto;
  }

  .section-services__num {
    padding-top: 40px;
    text-align: center !important;
  }

  .section-services__heading {
    margin-top: 8px;
    font-size: 48px;
    line-height: 42px;
    white-space: normal;
    text-align: center !important;
    width: auto;
    margin-left: 24px;
    margin-right: 24px;
  }

  .section-services__thumb {
    margin-top: 24px;
    width: calc(100% - 48px);
    height: auto;
    aspect-ratio: 382 / 334;
    border: 1.588px solid var(--color-cream);
  }

  .section-services__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .section-services__desc {
    margin-top: 24px;
    text-align: center !important;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(252, 249, 241, 0.15);
    width: auto;
    font-size: 16px !important;
    line-height: 20px !important;
  }

  .section-services__num {
    font-size: 13px !important;
  }

  .section-services__bottom-sep {
    display: none;
  }
}

/* ========================
   DESIGN CONSULTATION
   ======================== */
@media (max-width: 1023px) {
  .section-consultation {
    height: auto;
    padding: 0 0 60px;
  }

  .section-consultation__photo,
  .section-consultation__title,
  .section-consultation__desc,
  .section-consultation__box,
  .section-consultation__price,
  .section-consultation__cta {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
  }

  .section-consultation__photo {
    width: 100%;
    height: 400px;
  }

  .section-consultation__title {
    padding: 40px 24px 0;
    font-size: 48px;
    line-height: 42px;
    white-space: normal;
    text-align: center !important;
  }

  .section-consultation__desc {
    padding: 20px 24px 0;
    text-align: center !important;
    font-size: 16px !important;
    line-height: 20px !important;
  }

  .section-consultation__box {
    margin: 32px 24px 0;
    width: auto;
    height: auto;
    padding: 24px;
  }

  .section-consultation__box-script {
    position: relative;
    left: auto;
    top: auto;
    text-align: center;
    width: 100%;
  }

  .section-consultation__box-line {
    position: relative;
    left: auto;
    top: auto;
    margin: 12px auto 0;
  }

  .section-consultation__box-item {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    text-align: center !important;
    margin-top: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(70, 17, 17, 0.15);
    font-size: 16px !important;
    line-height: 20px !important;
  }

  .section-consultation__box-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .section-consultation__price {
    padding: 32px 24px 0;
    white-space: normal;
    font-size: 32px;
    line-height: 28px;
    text-align: center !important;
    width: 100%;
  }

  .section-consultation__cta {
    margin: 24px auto 0;
    width: calc(100% - 48px);
    max-width: 400px;
    height: 57px;
    display: flex;
    justify-content: center;
    font-size: 16px !important;
  }
}

/* ========================
   GET IN TOUCH
   ======================== */
@media (max-width: 1023px) {
  .section-contact {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 24px 40px;
  }

  .section-contact__bg {
    position: absolute;
  }

  .section-contact__overlay {
    position: absolute;
  }

  .section-contact__sep-top {
    position: absolute;
    top: 1px;
    left: 0;
    width: 100%;
  }

  .section-contact__logo {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin-bottom: 24px;
  }

  .section-contact__title {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    font-size: 48px;
    line-height: 42px;
    text-align: center !important;
    margin-bottom: 48px;
  }

  .section-contact__icon {
    position: relative;
    left: auto !important;
    top: auto !important;
    margin: 0 auto 8px;
  }

  .section-contact__text {
    position: relative;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    text-align: center !important;
    margin-bottom: 32px;
    white-space: normal;
    font-size: 16px;
    line-height: 20px;
  }

  .section-contact__cta {
    position: relative !important;
    z-index: 10 !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 280px !important;
    height: 57px !important;
    margin: 24px auto 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 16px !important;
  }

  .section-contact__sep-bottom {
    position: absolute;
    bottom: 0;
    top: auto;
    left: 0;
    width: 100%;
  }
}

/* ========================
   OUR PORTFOLIO
   ======================== */
@media (max-width: 1023px) {
  .section-portfolio {
    height: auto;
    padding: 60px 0;
  }

  .section-portfolio__title,
  .section-portfolio__sep {
    position: relative;
    left: auto;
    top: auto;
  }

  .section-portfolio__title {
    font-size: 48px;
    line-height: 48px;
    letter-spacing: -2px;
    text-align: center !important;
    padding: 0 24px 32px;
    white-space: normal;
    color: #ffffff !important;
    position: relative;
    z-index: 2;
  }

  .section-portfolio__sep--left,
  .section-portfolio__sep--right {
    display: none;
  }

  .section-portfolio__photo {
    position: relative;
    left: auto;
    top: auto;
    width: calc(50% - 2px);
    height: auto;
    aspect-ratio: 420 / 794;
    display: inline-block;
    vertical-align: top;
  }

  .section-portfolio__photo:nth-child(even) {
    margin-left: 4px;
  }

  .section-portfolio__overlay {
    display: none;
  }
}

@media (max-width: 767px) {
  .section-portfolio {
    padding: 60px 12px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .section-portfolio__title,
  .section-portfolio__title-ru,
  .section-portfolio__sep-ru {
    grid-column: 1 / -1;
  }

  .section-portfolio__photo {
    width: 100%;
    aspect-ratio: 420 / 500;
    display: block;
    margin: 0;
  }

  .section-portfolio__photo:nth-child(even) {
    margin-left: 0;
  }

  .section-portfolio__overlay {
    display: none;
  }
}

/* ========================
   DESIGN PROCESS
   ======================== */
@media (max-width: 1023px) {
  .section-process {
    min-height: 0;
    padding-bottom: 60px;
  }

  .section-process__label,
  .section-process__header-sep {
    display: none;
  }

  .section-process__title {
    position: relative;
    left: auto;
    top: auto;
    padding: 60px 24px 24px;
    font-size: 48px;
    line-height: 48px;
    letter-spacing: -2px;
    white-space: normal;
    text-align: center !important;
  }

  .section-process__thumb {
    position: relative;
    left: auto;
    top: auto;
    display: inline-block;
    width: 100px;
    height: 80px;
    margin-right: 8px;
  }

  .section-process__steps {
    position: relative;
    left: auto;
    top: auto;
    padding-bottom: 0;
  }

  .section-process__step {
    margin: 0 24px;
    width: auto;
  }

  .section-process__step-row {
    flex-direction: column;
    align-items: center;
  }

  .section-process__num {
    position: static !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 0 8px 0 !important;
    top: auto !important;
    left: auto !important;
  }

  .section-process__step-title {
    font-size: 36px;
    line-height: 32px;
    white-space: normal;
    margin-left: 0;
    width: 100%;
    text-align: center !important;
  }

  .section-process__step-btn {
    position: relative;
    right: auto;
    margin: 16px auto 0;
    width: 160px;
    height: 38px;
    font-size: 16px;
    letter-spacing: 1px;
  }

  .section-process__step-details {
    padding-left: 0;
    text-align: center !important;
  }

  .section-process__step-details-inner {
    width: 100%;
    font-size: 16px !important;
    line-height: 20px !important;
    text-align: center !important;
  }

  .section-process__num {
    font-size: 13px !important;
  }
}

@media (max-width: 767px) {
  .section-process__thumb {
    display: none;
  }
}

/* ========================
   REVIEWS — 1 card on mobile
   ======================== */
@media (max-width: 767px) {
  .section-reviews {
    height: auto;
    min-height: 650px;
    padding-bottom: 60px;
    position: relative;
  }

  .section-reviews__title {
    left: auto;
    top: 60px;
    width: 100%;
    text-align: center !important;
    font-size: 56px;
    line-height: 52px;
    letter-spacing: 0;
  }

  .section-reviews__sep--left,
  .section-reviews__sep--right {
    display: none;
  }

  .section-reviews__viewport {
    left: 17.5%;
    top: 180px;
    width: 65%;
    height: 400px;
    position: absolute;
  }

  .section-reviews__track {
    gap: 16px;
  }

  .section-reviews__card {
    width: 65vw;
    min-width: 65vw;
    height: 400px;
    box-sizing: border-box;
    overflow: hidden;
  }

  .section-reviews__card-avatar {
    left: 12px;
    top: 12px;
    width: 70px;
    height: 80px;
  }

  .section-reviews__card-name {
    left: 95px;
    top: 14px;
    font-size: 18px;
    text-align: left;
  }

  .section-reviews__card-line {
    left: 95px;
    top: 44px;
    width: calc(100% - 110px);
  }

  .section-reviews__card-date {
    left: 95px;
    top: 78px;
    font-size: 14px;
  }

  .section-reviews__card-text {
    font-size: 16px;
    left: 12px;
    right: 12px;
    top: 130px;
    width: auto;
    max-width: none;
    overflow-wrap: break-word;
    text-align: center !important;
  }

  .section-reviews__arrow {
    top: 380px;
    transform: translateY(-50%);
    width: 18px;
    height: 34px;
    bottom: auto;
  }

  .section-reviews__arrow--left {
    left: 8px;
    transform: translateY(-50%) scaleX(-1);
  }

  .section-reviews__arrow--right {
    left: auto;
    right: 8px;
  }
}

/* ========================
   FOOTER
   ======================== */
@media (max-width: 1023px) {
  .section-footer {
    height: auto;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
  }

  /* Gallery: 5 thumbs in a row, hide 6th */
  .section-footer__gallery-img {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 20%;
    width: 20%;
    height: auto;
    aspect-ratio: 1;
  }

  .section-footer__gallery-img--6 {
    display: none;
  }

  /* Wordmark */
  .section-footer__wordmark {
    position: relative;
    left: auto;
    top: auto;
    flex: 0 0 100%;
    width: 92%;
    max-width: 369px;
    height: auto;
    margin: 12px auto 0;
    display: block;
    z-index: 2;
  }

  /* Description */
  .section-footer__desc {
    position: relative;
    left: auto;
    top: auto;
    flex: 0 0 100%;
    margin: 20px auto 0;
    white-space: normal;
    text-align: center !important;
    font-size: 12px;
    line-height: 14px;
    width: 72%;
    max-width: 286px;
    z-index: 2;
  }

  /* Social icons */
  .section-footer__social {
    position: relative;
    left: auto;
    top: auto;
    flex: 0 0 100%;
    margin: 28px auto 0;
    justify-content: center;
    gap: 12px;
    z-index: 2;
  }

  .section-footer__social-icon--telegram,
  .section-footer__social-icon--phone,
  .section-footer__social-icon--email {
    width: 40px;
    height: 40px;
  }

  .section-footer__social-icon--instagram {
    width: 52px;
    height: 52px;
    margin: -6px;
  }

  /* Monogram: semi-transparent behind content */
  .section-footer__monogram {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 130px;
    width: 63%;
    max-width: 252px;
    height: auto;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
  }

  /* Copyright */
  .section-footer__copyright {
    position: relative;
    left: auto;
    top: auto;
    flex: 0 0 100%;
    margin: 60px 0 32px;
    text-align: center !important;
    font-size: 12px;
    z-index: 2;
  }

  .section-footer__copyright-symbol {
    font-size: 7px;
  }
}
