/* =========================================================================
   DORMAM — мобильная версия.
   1) html.mode-m — главный экран с вертикальным роликом (телефон/планшет в портрете), отдельно от десктопа.
   2) @media (max-width: 900px) — вёрстка разделов, меню, каталога, формы под узкий экран.
   Десктопные стили (style.css, site.css) не меняются.
   ========================================================================= */

/* ---------- Мобильное меню (по умолчанию скрыто на десктопе) ---------- */
.burger, .mnav { display: none; }

/* ---------- Главный экран: вертикальный ролик ---------- */
html.mode-m .stage { height: 100lvh; }
html.mode-m .poster, html.mode-m .screen { object-position: 50% 50%; }
html.mode-m .shade {
  background:
    linear-gradient(180deg, rgba(6, 14, 8, .62) 0%, rgba(6, 14, 8, .18) 26%, rgba(6, 14, 8, 0) 42%),
    linear-gradient(0deg, rgba(6, 14, 8, .6) 0%, rgba(6, 14, 8, .15) 26%, rgba(6, 14, 8, 0) 40%);
}
html.mode-m .rail { display: none; }
html.mode-m .chapter { left: 22px; right: 22px; max-width: none; }
/* 1 — комплекс: внизу, над полями */
html.mode-m .chapter--hero { bottom: 14svh; }
/* 2 — мужчина с семенами: вверху, над головой (лицо и упаковки в центре кадра не закрываются) */
html.mode-m .chapter--seeds { top: 11svh; margin-top: 0; }
/* 3 — продукция: вверху, над столом */
html.mode-m .chapter--products { top: 11svh; }
html.mode-m .chapter h1 { font-size: clamp(36px, 10.5vw, 54px); line-height: 1.02; }
html.mode-m .chapter h2 { font-size: clamp(30px, 8.6vw, 44px); line-height: 1.04; }
html.mode-m .chapter .lead { font-size: 15px; margin-top: 16px; }
html.mode-m .chapter--seeds .lead { display: none; }   /* на телефоне — только заголовок, чтобы не закрывать мужчину */
html.mode-m .eyebrow { margin-bottom: 16px; font-size: 11px; }
html.mode-m .link-cta { margin-top: 20px; padding: 12px 20px; font-size: 14px; }
html.mode-m .scroll-hint { bottom: 4svh; font-size: 10px; }
html.mode-m .scroll-hint i { height: 34px; }

@media (max-width: 900px) {
  :root { --pad: 20px; }

  /* ---------- Шапка и меню ---------- */
  .site-header { padding: 12px var(--pad); gap: 12px; }
  .site-header.is-light { padding-block: 10px; }
  .brand, .site-header.is-light .brand { width: 52px; height: 52px; }
  .site-header .nav, .site-header .header-cta { display: none; }
  .burger {
    display: grid; place-content: center; gap: 6px; margin-left: auto; width: 48px; height: 48px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25); background: rgba(8, 18, 12, .42); cursor: pointer; position: relative; z-index: 3;
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  }
  .burger span { display: block; width: 20px; height: 1.5px; background: #fff; transition: transform .4s var(--ease); }
  .site-header.is-light:not(.is-ondark) .burger { background: rgba(255, 255, 255, .7); border-color: var(--line-d); }
  .site-header.is-light:not(.is-ondark) .burger span { background: var(--ink); }
  html.menu-open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  html.menu-open .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  html.menu-open .burger { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
  html.menu-open .burger span { background: #fff; }
  html.menu-open .site-header { color: #fff; background: transparent; }
  html.menu-open .site-header .brand-img--dark { opacity: 1; }
  html.menu-open .site-header .brand-img--light { opacity: 0; }
  .mnav {
    display: flex; flex-direction: column; justify-content: center; gap: 6px; position: fixed; inset: 0; z-index: 45;
    padding: 90px var(--pad) 40px; background: radial-gradient(120% 70% at 50% 0%, #0d2a1a, var(--deep) 70%); color: #fff;
    opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s;
  }
  .mnav a { font-size: clamp(34px, 9.5vw, 46px); letter-spacing: -.035em; line-height: 1.15; padding: 4px 0; transform: translateY(18px); opacity: 0; transition: transform .6s var(--ease), opacity .5s ease; }
  html.menu-open .mnav { opacity: 1; visibility: visible; }
  html.menu-open .mnav a { transform: none; opacity: 1; }
  html.menu-open .mnav a:nth-child(2) { transition-delay: .04s; } html.menu-open .mnav a:nth-child(3) { transition-delay: .08s; }
  html.menu-open .mnav a:nth-child(4) { transition-delay: .12s; } html.menu-open .mnav a:nth-child(5) { transition-delay: .16s; }
  html.menu-open .mnav a:nth-child(6) { transition-delay: .2s; } html.menu-open .mnav a:nth-child(7) { transition-delay: .24s; }
  .mnav .mnav-cta { margin-top: 26px; align-self: flex-start; font-size: 17px; letter-spacing: 0; padding: 14px 26px; border-radius: 999px; background: #fff; color: var(--ink); }

  /* заставка */
  .splash-logo { width: min(46vh, 78vw); height: min(46vh, 78vw); margin: calc(min(46vh, 78vw) / -2) 0 0 calc(min(46vh, 78vw) / -2); }

  /* ---------- Общие ---------- */
  .sec { padding: 84px 0; }
  .sec + .sec, .band + .sec, .marquee, .marquee + .sec, .footer { border-radius: 22px 22px 0 0; margin-top: -22px; }
  .next.sec { padding-top: 90px; border-radius: 22px 22px 0 0; }
  .eyebrow { margin-bottom: 18px; }
  .sec-head { margin-bottom: 40px; }
  .sec-head--row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .sec-title { font-size: clamp(32px, 8.6vw, 44px); }
  .statement { font-size: clamp(28px, 7.6vw, 40px); line-height: 1.1; }
  .mega { font-size: clamp(42px, 11.5vw, 60px); }
  .big-p, .about-text .big-p { font-size: 19px; }
  .text-link { font-size: 15px; }

  /* О компании */
  #about .statement { margin: 16px 0 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-text p:not(.big-p) { font-size: 16px; }
  .facts { grid-template-columns: 1fr 1fr; margin-top: 64px; }
  .fact, .fact + .fact { padding: 24px 12px 24px 0; border-left: 0; }
  .fact:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line-d); }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line-d); }
  .fact b { font-size: 52px; }
  .fact span { font-size: 14px; }

  /* Кино-вставка */
  .band { height: 190vh; }
  .band-kicker { font-size: clamp(40px, 11vw, 60px); }

  /* Направления: без закреплённой панели, строки списком */
  .dir-layout { grid-template-columns: 1fr; }
  .dir-view { display: none; }
  .dir { grid-template-columns: 34px minmax(0, 1fr) 22px; gap: 6px 10px; padding: 22px 0; }
  .dir h3 { font-size: clamp(24px, 6.6vw, 32px); }
  .dir:not(.is-on) h3, .dir:not(.is-on) p { opacity: 1; }
  .dir.is-on h3, .dir:hover h3 { transform: none; }
  .dir p { font-size: 14px; }
  .dir-arrow { font-size: 18px; }

  /* Каталог: две колонки */
  .cat-side { gap: 18px; }
  .chips { gap: 8px; }
  .chip { font-size: 13px; padding: 9px 15px; }
  .cat-grid { grid-template-columns: 1fr 1fr; column-gap: 12px; row-gap: 30px; }
  .cat-grid > :nth-child(n) { margin: 0; }
  .prod-img { border-radius: 12px; }
  .prod-img::after { display: none; }
  .prod-meta { flex-direction: column; gap: 4px; margin-top: 10px; padding-top: 10px; }
  .prod-name { font-size: 18px; }
  .prod-brand { font-size: 10px; }
  .prod-sub { font-size: 12px; }
  .prod-ph { padding: 14px; } .prod-ph b { font-size: 22px; } .prod-ph em { font-size: 10px; }
  .cat-note { margin-top: 50px; font-size: 13px; }

  /* Карточка товара — на весь экран */
  .pmodal { place-items: stretch; }
  .pmodal-card { width: 100vw; max-height: none; height: 100dvh; border-radius: 0; grid-template-columns: 1fr; overflow-y: auto; }
  .pmodal-img { position: relative; height: 42vh; min-height: 0; padding: 6%; overflow: hidden; }
  .pmodal-img img { position: absolute; left: 6%; top: 6%; width: 88%; height: 88%; max-height: none; object-fit: contain; }
  .pmodal-img.is-ph .prod-ph { min-height: 0; padding: 26px; }
  .pmodal-img.is-ph .prod-ph b { font-size: 40px; }
  .pmodal-info { padding: 26px var(--pad) 40px; }
  .pmodal-info h3 { font-size: 38px; }
  .pm-comp { font-size: 13px; }
  .pm-specs > div { grid-template-columns: 1fr; gap: 4px; }
  .pmodal-x { position: fixed; right: 14px; top: 14px; }

  /* Рассадник */
  .nursery-head { margin-bottom: 40px; }
  .nursery-body { grid-template-columns: 1fr; gap: 44px; }
  .nursery-text p:not(.big-p) { font-size: 16px; }
  .pillars { position: static; }
  .nursery-gallery { grid-template-columns: 1fr; gap: 12px; margin-top: 56px; }
  .ph-slot, .ph-slot:first-child { aspect-ratio: 16 / 10; padding: 20px; }
  .ph-slot span { font-size: 18px; }

  /* География */
  #geo .statement { margin: 16px 0 40px; }
  .countries li { padding: 12px 0; }
  .countries span { font-size: clamp(32px, 9.4vw, 46px); }
  .countries em { font-size: 10px; }
  .trips { margin-top: 80px; }
  .trips-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 30px; }
  .trips-title { font-size: 36px; }
  .trips-head p { font-size: 16px; }
  .trip-track { gap: 10px; }
  .trip-track figure { height: 38vh; border-radius: 12px; }

  /* Бренды */
  .brands-main { grid-template-columns: 1fr; }
  .brand-hero + .brand-hero { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-d); }
  .brand-hero { padding: 28px 0 32px; }
  .brand-logo { height: 84px; max-width: 100%; }
  .brands-more li { flex: 1 1 45%; padding: 18px 10px; font-size: 20px; border-top: 1px solid var(--line-d); }
  .brands-more li + li { border-left: 0; }
  .brands-more li:nth-child(even) { border-left: 1px solid var(--line-d); }

  /* Бегущая строка */
  .marquee { padding: 28px 0; }
  .mq-track { gap: 26px; }
  .mq-track span { font-size: 38px; }
  .mq-track i { width: 12px; height: 12px; }

  /* Новости */
  .news { grid-template-columns: 1fr; gap: 0; }
  .news li { min-height: 0; padding: 22px 0; }
  .news h3 { font-size: 24px; }

  /* Контакты */
  .contacts { grid-template-columns: 1fr; gap: 40px; }
  .mega--dark { margin: 8px 0 34px; }
  .clist > div { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .form { grid-template-columns: 1fr; margin-top: 0; padding: 24px 20px; border-radius: 18px; gap: 10px; }
  .btn { width: 100%; }
  .map-slot { height: 30vh; margin-top: 60px; border-radius: 18px; }

  /* Подвал */
  .footer { padding-top: 60px; }
  .footer-in { grid-template-columns: 1fr; gap: 30px; align-items: start; }
  .footer-logo { width: 110px; }
  .footer-nav { gap: 12px 22px; font-size: 15px; }
  .footer-meta { justify-items: start; }
  .footer-mark { padding-top: 60px; padding-bottom: 24px; }
}
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .fact, .fact + .fact, .fact:nth-child(even) { padding: 22px 8px 0 0; border-left: 0; border-top: 0; }
  .fact b { font-size: 42px; } .fact span { font-size: 12px; }
  .ns-card, .nursery-gallery .ns-card:first-child { aspect-ratio: 4 / 3.4; }
  .insta { grid-template-columns: 1fr 1fr; gap: 10px; }
  .insta-tile { border-radius: 14px; } .insta-tile span { font-size: 12px; left: 10px; bottom: 10px; padding: 6px 10px; }
  .insta-cta { border-radius: 14px; padding: 18px; } .insta-cta em { font-size: 13px; } .insta-cta b { font-size: 24px; }
  .map-slot { flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px 22px; }
}

html.mode-m .chapter-logo { width: 130px; margin-top: 16px; }

/* кнопки языков в мобильном меню: не наследовать крупный шрифт пунктов .mnav a (было на iPhone 16.11.2026) */
.mnav .mlang { gap: 6px; }
.mnav .mlang a { font-size: 12.5px; letter-spacing: .04em; line-height: 1.2; padding: 9px 10px; }
html.menu-open .mnav .mlang a { opacity: .6; }
html.menu-open .mnav .mlang a.is-on { opacity: 1; }
