/* ================================================================
   MOBILE — точное соответствие мобильному фрейму Figma (390px)
   Базовые пропорции взяты из дизайн-кода Figma (426:319 и дочерние
   секции 426:320…426:473) и переведены в относительные единицы
   (%, rem), чтобы одинаково точно работать на 390px и 360px.
   Активируется на ≤599px — на этой ширине сохранена ровно та же
   компоновка, что в мобильном макете (без адаптации «на глаз»).
   ================================================================ */

@media (max-width: 599px) {

  :root {
    --header-height-mobile: 156px;
  }

  /* ---------- Шапка: два отдельных стеклянных блока, как в Figma ---------- */
  .nav-toggle {
    display: none;
  }

  .site-header {
    padding: 14px 16px 0;
  }

  .site-header__inner {
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
  }

  .brand {
    background: linear-gradient(90deg, rgba(10, 18, 36, 0.72) 0%, rgba(13, 23, 51, 0.52) 65%, rgba(23, 46, 97, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-radius: 20px;
    height: 56px;
    padding: 0 14px;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 20, 0.24);
  }

  .brand__mark {
    width: 42px;
    height: 32.92px;
  }

  .brand__name {
    font-size: 20px;
    letter-spacing: 0.4px;
  }

  .brand__descriptor {
    font-size: 6px;
    letter-spacing: 0.35px;
  }

  /* Навигация: всегда видима, два ряда по 3 пункта — точно как в Figma */
  .primary-nav {
    position: static;
    max-height: none;
    opacity: 1;
    pointer-events: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 6px;
    column-gap: 8px;
    background: linear-gradient(90deg, rgba(10, 18, 36, 0.72) 0%, rgba(13, 23, 51, 0.52) 65%, rgba(23, 46, 97, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-radius: 20px;
    padding: 8px 8px;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 20, 0.24);
  }

  .nav-chip {
    width: auto;
    height: 30px;
    padding: 0 12px;
    font-size: 8px;
    letter-spacing: 0.3px;
  }

  /* ---------- Hero ---------- */
  .hero {
    padding-top: calc(var(--header-height-mobile) + 16px);
    padding-bottom: 48px;
  }

  .hero__inner {
    display: block;
    padding: 0 24px;
  }

  .hero__visual {
    min-height: unset;
    display: block;
    margin-bottom: 28px;
  }

  .bottle-cutout {
    max-width: none;
    aspect-ratio: 390 / 382;
  }

  /* Точные пропорции бутылок из мобильного фрейма (box 390×382) */
  .bottle--tall  { width: 23.08%; height: 84.03%; left: 31.54%; top: 3.40%; }
  .bottle--right { width: 15.90%; height: 59.16%; left: 68.97%; top: 26.18%; }
  .bottle--left  { width: 26.41%; height: 69.90%; left: 14.62%; top: 19.37%; }
  .bottle--front { width: 28.97%; height: 80.63%; left: 44.62%; top: 9.95%; }

  .orbit--spectrum { left: 6.15%; top: 4.71%; width: 87.69%; height: 89.53%; }
  .orbit--glass { left: 18.46%; top: 17.28%; width: 63.08%; height: 64.40%; }
  .lens--blue-magenta { left: 2.05%; top: 67.02%; width: 24.62%; height: 25.13%; }
  .lens--orange { left: 76.5%; top: 51%; width: 22%; height: 22.5%; }

  .hero__principle {
    left: 5.13%;
    top: 84.82%;
    width: 89.74%;
    height: 16.75%;
    padding: 0 18px;
  }

  .hero__principle span {
    font-size: 10px;
    letter-spacing: 1.2px;
  }

  .hero__content {
    padding-top: 0;
    gap: 16px;
  }

  .hero__eyebrow {
    height: 32px;
    padding: 0 16px;
    font-size: 9px;
    letter-spacing: 1.2px;
  }

  .hero__title {
    font-size: clamp(38px, 12.2vw, 46px);
    line-height: 1.06;
    letter-spacing: -0.6px;
    white-space: normal;
  }

  .hero__lead {
    font-size: 15px;
    line-height: 23px;
    max-width: none;
  }

  .btn--light {
    padding: 18px 24px;
    font-size: 12px;
  }

  /* ---------- Технологии: сетка 2×3, как в Figma ---------- */
  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
  }

  .tech-card {
    min-height: 182px;
    padding: 13px 13px 14px;
    border-radius: 22px;
  }

  .tech-card h3 {
    font-size: 13.5px;
    line-height: 16px;
    margin-top: 12px;
  }

  .tech-card p {
    font-size: 9.5px;
    line-height: 13px;
    padding-top: 12px;
  }

  .section-label {
    font-size: 9px;
  }

  .section-title {
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.2px;
  }

  .section-intro {
    font-size: 12px;
    line-height: 16px;
    margin-top: 16px;
  }

  .heading-accent {
    width: 88px;
    height: 4px;
    margin-top: 14px;
  }

  /* ---------- Подход ---------- */
  .approach__body {
    display: block;
    margin-top: 32px;
  }

  .approach__statement-text {
    font-size: 25px;
    line-height: 30px;
  }

  .approach__text {
    font-size: 14px;
    line-height: 20px;
    max-width: none;
  }

  .approach__principles {
    margin-top: 14px;
    gap: 12px;
  }

  .principle-chip {
    padding: 18px 17px;
    font-size: 12px;
  }

  /* ---------- Продукция ---------- */
  .product__body {
    display: block;
    margin-top: 28px;
  }

  .product__image-wrap {
    padding: 8px;
  }

  .product__image {
    min-height: 260px;
  }

  .quote-card {
    margin-top: 20px;
    padding: 24px 19px;
  }

  .quote-card__main {
    font-size: 24px;
  }

  .quote-card__emphasis {
    font-size: 30px;
    margin-top: 18px;
  }

  /* ---------- Производство ---------- */
  .production__inner {
    display: block;
  }

  .production__text {
    margin-bottom: 24px;
  }

  .section-title--dark {
    font-size: 30px;
    line-height: 34px;
  }

  .production__lead {
    font-size: 13px;
    line-height: 18px;
    max-width: none;
  }

  .feature-item {
    padding: 10px 16px 10px 20px;
    font-size: 11px;
  }

  /* ---------- Процесс: одна колонка ---------- */
  .process-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
  }

  .process-card {
    min-height: 135px;
    padding: 13px 17px 16px;
  }

  .process-card h3 {
    margin-top: 4px;
    font-size: 16px;
  }

  .process-card p {
    font-size: 12px;
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.9);
  }

  /* ---------- Контакты ---------- */
  .contacts__top {
    display: block;
  }

  .contacts__intro {
    margin-top: 16px;
    padding: 16px 18px;
  }

  .contacts__intro p {
    font-size: 16px;
    line-height: 22px;
  }

  .contact-list {
    margin-top: 24px;
  }

  .contact-row {
    flex-wrap: nowrap;
    padding: 22px 16px;
    gap: 16px;
  }

  .contact-row__label {
    width: 56px;
    font-size: 8px;
  }

  .contact-row__value {
    font-size: 22px;
  }

  /* ---------- Подвал: тёмная карточка с навигацией, как в Figma ---------- */
  .site-footer {
    background: var(--bg-deep);
    padding: 24px 12px 24px;
  }

  .site-footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 12px;
    column-gap: 12px;
    padding: 0;
    max-width: none;
  }

  .brand--footer,
  .footer-nav-card {
    grid-column: 1 / -1;
  }

  .footer-principle {
    grid-column: 1;
    justify-self: start;
  }

  .footer-copyright {
    grid-column: 2;
    justify-self: end;
  }

  .brand--footer {
    margin-bottom: 16px;
  }

  .footer-nav-card {
    display: block;
    position: relative;
    background: linear-gradient(90deg, rgba(6, 11, 27, 0.96) 0%, rgba(9, 18, 40, 0.94) 55%, rgba(27, 6, 34, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 28px;
    box-shadow: 0 -8px 38px -10px rgba(0, 0, 20, 0.36);
    padding: 16px 12px 40px;
    margin-bottom: 12px;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-right: 92px; /* место под чип «Наверх» в правом верхнем углу */
    background: none;
    border: none;
    backdrop-filter: none;
  }

  .footer-nav .nav-chip {
    justify-content: center;
    width: 100%;
  }

  #back-to-top {
    position: absolute;
    top: 16px;
    right: 12px;
    width: 84px;
    height: 28px;
    padding: 0;
    justify-content: center;
    font-size: 8px;
  }

  .footer-principle,
  .footer-copyright {
    font-size: 8px;
  }

  .footer-principle { text-align: left; }
  .footer-copyright { text-align: right; }
}
