/* ════════════════════════════════════════════════════════════════
   Apple House — слой v4 (поверх main.css)
   • плавающая стеклянная шапка, анимированный бургер и меню
   • золотые кнопки без светлых краёв
   • «кинематографичная» мобильная версия: анимация заголовка,
     счётчики, свайп-карусели, таймлайн, нижняя панель действий
   • блок «Для инвесторов»
   ════════════════════════════════════════════════════════════════ */

:root {
  --gold-grad: linear-gradient(135deg, #B38A3E 0%, #D2AE68 52%, #E4C98F 100%);
  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
}

/* ══════════ Золотые кнопки: без светлых краёв ══════════
   Раньше фон заходил под прозрачную рамку и повторялся там
   светлым краем градиента. Теперь рамки нет, фон — по border-box. */
.btn--gold, .hdr.is-solid .hdr__cta {
  border: 0;
  background: var(--gold-grad) border-box;
  color: #1A1406;
  box-shadow: 0 12px 28px -14px rgba(179, 138, 62, .75);
  -webkit-font-smoothing: antialiased;
}
.btn--gold:hover { box-shadow: 0 18px 36px -16px rgba(179, 138, 62, .85); }

/* ══════════ Шапка — прежняя (main.css). Здесь только меню ══════════ */
@media (max-width: 1024px) {

  /* меню: раскрывается кругом из кнопки */
  .hdr.menu-open, .hdr.menu-closing { background: transparent; border-color: transparent; color: var(--on-dark); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
  .hdr.menu-open .hdr__in::before, .hdr.menu-closing .hdr__in::before { display: none; }
  .nav {
    opacity: 1 !important; visibility: hidden; pointer-events: none;
    padding: calc(var(--hdr-h) + 28px) var(--gut) calc(32px + env(safe-area-inset-bottom));
    background:
      radial-gradient(90% 55% at 100% 0%, rgba(201, 164, 92, .20) 0%, transparent 60%),
      radial-gradient(80% 50% at 0% 100%, rgba(201, 164, 92, .10) 0%, transparent 60%),
      #0E0E0D;
    clip-path: circle(0 at var(--mx, calc(100% - 40px)) var(--my, 40px));
    transition: clip-path .5s var(--ease-io), visibility 0s linear .5s;
    counter-reset: m;
  }
  .nav.is-open { visibility: visible; pointer-events: auto; clip-path: circle(160vmax at var(--mx, calc(100% - 40px)) var(--my, 40px)); transition: clip-path .5s var(--ease-io), visibility 0s; }
  .nav > a { justify-content: flex-start; gap: 16px; font-size: clamp(28px, 8vw, 40px); font-weight: 500; letter-spacing: -.03em; min-height: 58px; }
  .nav > a::before { counter-increment: m; content: '0' counter(m); font-size: 12px; font-weight: 500; letter-spacing: .06em; color: #C9A45C; min-width: 22px; transform: translateY(-.7em); }
  .nav > a::after { margin-left: auto; }
  .nav > *, .nav__mobile > * { opacity: 0; transition: opacity .3s ease; }
  .nav.is-open > *, .nav.is-open .nav__mobile > * { opacity: 1; transition-delay: .15s; }
  .nav__mobile { opacity: 1 !important; transform: none !important; }
}

/* ══════════ Первый экран ══════════ */
/* телефон/планшет: фото первого экрана стоит на месте, контент наезжает на него */
@media (max-width: 1024px) {
  .hero { clip-path: inset(0); }
  .hero__bg { position: fixed; inset: 0 0 auto; height: 100lvh; transform: none !important; will-change: auto; }
}
.hero__stats b { font-variant-numeric: tabular-nums; }


/* ══════════ Блок «Для инвесторов» ══════════ */
.band { background: #0E0E0D; color: var(--on-dark); padding: clamp(64px, 8vw, 110px) 0; position: relative; overflow: hidden; }
.band::before { content: ''; position: absolute; width: 60vmax; height: 60vmax; right: -25vmax; top: -30vmax; background: radial-gradient(circle, rgba(201, 164, 92, .16), transparent 62%); pointer-events: none; }
.band__in { position: relative; display: grid; grid-template-columns: 1fr 2fr; gap: clamp(28px, 4vw, 64px); align-items: end; }
.band .kicker { color: #C9A45C; }
.band__t { font-family: var(--display); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; font-size: clamp(28px, 3.2vw, 44px); }
.band__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.band__item { display: flex; flex-direction: column; gap: 8px; padding: var(--pad); border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .10); }
.band__n { font-size: 12px; font-weight: 500; letter-spacing: .08em; color: #C9A45C; margin-bottom: 18px; }
.band__item b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.band__item > span:last-child { color: var(--on-dark-2); font-size: 15px; line-height: 1.5; }
.band__cta { grid-column: 2; justify-self: start; }

/* ══════════ Свайп-карусели (только телефон) ══════════ */
.cdots { display: none; }

/* ══════════ Нижняя панель действий (только телефон) ══════════ */

/* ══════════ Телефон ══════════ */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .sec { padding: 76px 0; }
  .sec__head { margin-bottom: 32px; }
  .h2 { font-size: clamp(32px, 9.4vw, 42px); line-height: 1.04; letter-spacing: -.04em; }
  .sec__lead { font-size: 16px; margin-top: 14px; }

  /* первый экран — на весь экран, всё крупно */
  .hero { min-height: 100svh; }
  .hero__shade { background: linear-gradient(180deg, rgba(8, 9, 6, .55) 0%, rgba(8, 9, 6, .18) 26%, rgba(8, 9, 6, .45) 52%, rgba(8, 9, 6, .95) 100%); }
  .hero__in { padding-top: calc(var(--hdr-h) + 40px); padding-bottom: 18px; }
  .hero__title { font-size: clamp(29px, 9.3vw, 46px); line-height: 1.04; letter-spacing: -.04em; margin: 20px 0 16px; }
  .hero__lead { font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .92); }
  .hero__cta { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .hero__cta .btn { width: 100%; min-height: 56px; }
  .hero__stats-wrap { padding-bottom: 18px; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 8px; border-top: 0; }
  .hero__stats li, .hero__stats li + li, .hero__stats li:nth-child(n+3) { padding: 14px 14px 13px; margin: 0; border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px; background: rgba(14, 14, 13, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .hero__stats b { font-size: 17px; white-space: nowrap; }
  .hero__stats span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.3; color: rgba(255, 255, 255, .8); }

  /* блок для инвесторов */
  .band { padding: 64px 0 56px; }
  .band__in { grid-template-columns: 1fr; gap: 26px; }
  .band__t { font-size: clamp(28px, 8.2vw, 36px); }
  .band__cta { grid-column: auto; width: 100%; }

  /* свайп-карусели */
  [data-carousel] {
    display: flex !important; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 var(--gut);
    margin: 0 calc(-1 * var(--gut)); padding: 2px var(--gut) 6px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  [data-carousel]::-webkit-scrollbar { display: none; }
  [data-carousel] > * { scroll-snap-align: start; flex-shrink: 0; }
  [data-carousel] { touch-action: pan-y; }
  [data-carousel].is-drag { scroll-snap-type: none; scroll-behavior: auto; }
  .band__list > .band__item { flex-basis: 78%; }
  /* «Как это выглядит»: мозаика как на компьютере, в две колонки */
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 8px; }
  .gallery .g { border-radius: 16px; }
  .cdots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
  .cdots i { width: 6px; height: 6px; border-radius: 999px; background: currentColor; opacity: .22; transition: width .35s var(--ease-out), opacity .35s; }
  .cdots i.on { width: 22px; opacity: .9; }
  .band .cdots, .sec--dark .cdots { color: #fff; }

  /* технология: компактная сетка 2×2 */
  .bento { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  /* плитки: всё от верхнего края — иконка, заголовок, текст на одной линии в соседних плитках */
  .tile, .tile--w2, .tile--w2:last-child { grid-column: auto; min-height: 0; padding: 18px; justify-content: flex-start; gap: 6px; }
  .tile--photo, .tile--stat { grid-column: 1 / -1 !important; }
  .tile--photo { min-height: 380px; padding: 0; justify-content: flex-end; }
  .tile--stat { min-height: 0; }
  .tile__i { position: static; width: 22px; height: 22px; margin-bottom: 12px; flex-shrink: 0; }
  .tile--stat .tile__i { margin-bottom: 18px; }
  .tile h3 { font-size: 16px; }
  .tile p { font-size: 13.5px; line-height: 1.45; }

  /* процесс — таймлайн */
  .steps { border-top: 0; }
  .step, .step + .step { position: relative; padding: 0 0 26px 50px; border: 0; }
  .step::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 0; width: 1px; background: linear-gradient(var(--line), var(--line)); }
  .step:last-child { padding-bottom: 0; }
  .step:last-child::before { display: none; }
  .step__n { position: absolute; left: 0; top: 0; width: 31px; height: 31px; margin: 0; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 11.5px; }
  .step h3 { font-size: 18px; padding-top: 4px; }

  /* нижняя панель действий вместо плавающих кнопок */
}

@media (max-width: 360px) {
  .hero__stats b { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav, .nav.is-open { transition: none !important; }
  .nav > *, .nav__mobile > * { transition: none !important; }
}


/* ══════════ Вопросы: анимация ══════════ */
.qa { position: relative; }
.qa summary { padding-right: 60px; -webkit-tap-highlight-color: transparent; }
.qa summary::after {
  content: ''; width: 36px; height: 36px; right: 0; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink);
  background: linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  background-color: transparent;
  transition: transform .3s ease, background-color .3s, color .3s, border-color .3s;
}
.qa[open]:not(.is-closing) summary::after { transform: translateY(-50%) rotate(45deg); background-color: var(--ink); color: #fff; border-color: var(--ink); }
.qa p { transform-origin: top; }
@media (hover: hover) {
  .qa summary:hover::after { border-color: var(--ink); }
}
@media (max-width: 720px) {
  .qa summary { padding-right: 52px; }
  .qa summary::after { width: 32px; height: 32px; }
}

/* появление блоков при прокрутке — короче и тише */
.js .reveal { transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { transform: none; }
/* заголовок первого экрана — все строки непрозрачные */
.hero__title span { color: #fff; }

/* ══════════ Телефон и планшет: одна шапка на всём сайте — тёмная стеклянная плашка ══════════ */
.hdr__call { display: none; }
@media (max-width: 1024px) {
  .hdr, .hdr.is-solid {
    top: 10px; left: 10px; right: 10px; height: 58px; border-radius: 20px;
    color: #fff; background: rgba(18, 18, 17, .62); border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .55);
    backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
    transition: transform .35s var(--ease-out), background-color .3s, box-shadow .3s;
  }
  .hdr.is-solid { background: rgba(18, 18, 17, .78); }
  .hdr.is-hidden { transform: translateY(calc(-100% - 16px)); box-shadow: none; }
  .hdr .wrap.hdr__in { max-width: none; padding: 0 7px 0 14px; gap: 8px; }
  .hdr .brand { font-size: 16px; color: #fff; }
  .hdr .brand img { width: 30px; height: 30px; }
  .hdr__call {
    display: grid; place-items: center; flex-shrink: 0; margin-left: auto;
    width: 44px; height: 44px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .1);
    transition: background-color .2s, opacity .25s;
  }
  .hdr__call .i { width: 18px; height: 18px; }
  .hdr__call:active { background: rgba(255, 255, 255, .2); }
  .burger, .hdr.is-solid .burger { margin-left: 0; width: 44px; height: 44px; color: #fff; border: 0; background: rgba(255, 255, 255, .1); }
  .burger span:first-child { top: 17px; }
  .burger span:last-child { top: 25px; }
  .burger[aria-expanded="true"] span:first-child, .burger[aria-expanded="true"] span:last-child { top: 21px; }
  /* открытое меню: у шапки не должно быть blur/transform — иначе меню «зажимается» в её рамки */
  .hdr.menu-open, .hdr.menu-closing, .hdr.is-solid.menu-open, .hdr.is-solid.menu-closing, .hdr.is-hidden.menu-open, .hdr.is-hidden.menu-closing {
    background: transparent; border-color: transparent; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none; transform: none;
  }
  .hdr.menu-open .hdr__call, .hdr.menu-closing .hdr__call { opacity: 0; pointer-events: none; }
  .hdr.menu-open .burger { background: rgba(255, 255, 255, .12); }
}

/* ══════════ Плашка «Производство в России» — в тон первому экрану ══════════ */
.eyebrow { padding: 0; background: none; border: 0; border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none; font-weight: 500; color: #fff; font-size: 15px; letter-spacing: .01em; text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 18px rgba(0, 0, 0, .55); }
@media (max-width: 720px) {
  .eyebrow { font-size: 13px; padding: 0; gap: 9px; }
}

/* ══════════ v5: детали ══════════ */
/* фото проявляются после загрузки */
img.img-wait { opacity: 0; }
.mc__media img, .g img, .tile--photo img { transition: opacity .5s ease; }

/* подписи калькулятора не переносятся посередине значения */
.field__label output { white-space: nowrap; }

/* форма коротко подсвечивается, когда в неё подставили модель или расчёт */
.form-card.is-flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(201, 164, 92, .0), 0 40px 80px -40px rgba(0, 0, 0, .8); border-color: rgba(201, 164, 92, .7); } 40% { box-shadow: 0 0 0 6px rgba(201, 164, 92, .18), 0 40px 80px -40px rgba(0, 0, 0, .8); } 100% { box-shadow: 0 0 0 0 rgba(201, 164, 92, 0), 0 40px 80px -40px rgba(0, 0, 0, .8); } }

/* экран «Заявка принята» */
.form-card { position: relative; }
.form-card.is-sent > :not(.sent) { visibility: hidden; }
.sent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: var(--pad); border-radius: inherit; animation: sentIn .45s ease; }
.sent[hidden] { display: none; }
.sent__ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #1A1406; background: var(--gold-grad); margin-bottom: 8px; box-shadow: 0 14px 30px -14px rgba(179, 138, 62, .8); }
.sent__t { font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.sent__d { max-width: 320px; color: var(--on-dark-2); font-size: 15px; line-height: 1.5; }
.sent__msg { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.sent__again { margin-top: 8px; background: none; border: 0; color: var(--on-dark-2); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px; }
.sent__again:hover { color: #fff; }
@keyframes sentIn { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  img.img-wait { opacity: 1; }
  .form-card.is-flash, .sent { animation: none; }
}

/* ══════════ v6 ══════════ */
/* быстрые кнопки: прячутся у контактов; на телефоне — компактнее */
.fab.is-away { opacity: 0; transform: translateY(16px); pointer-events: none; }
@media (max-width: 720px) {
  .fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); gap: 8px; }
  .fab__btn { width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .12); }
}

/* способ связи в форме */
.way { border: 0; padding: 0; margin: 2px 0 4px; min-width: 0; }
.way legend { font-size: 13.5px; color: var(--on-dark-2); margin-bottom: 10px; padding: 0; }
.way { display: flex; flex-wrap: wrap; gap: 8px; }
.way legend { width: 100%; }
.way label { position: relative; cursor: pointer; }
.way input { position: absolute; opacity: 0; pointer-events: none; }
.way span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: var(--on-dark-2); transition: background-color .2s, color .2s, border-color .2s; }
.way label:hover span { border-color: rgba(255, 255, 255, .3); color: #fff; }
.way input:checked + span { background: #fff; color: #121211; border-color: #fff; }
.way input:focus-visible + span { outline: 2px solid #C9A45C; outline-offset: 2px; }

/* калькулятор на телефоне: главный итог — крупно */
@media (max-width: 720px) {
  .kpi.kpi--main b { font-size: clamp(32px, 10vw, 44px); line-height: 1.05; }
}

/* ══════════ v7: просмотр фото на весь экран ══════════ */
html.lb-lock, html.lb-lock body { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 300; padding: 0; display: block; background: none; touch-action: none; overscroll-behavior: contain; }
.lb[hidden] { display: none; }
.lb__bg { position: absolute; inset: 0; background: rgba(10, 10, 9, .96); opacity: 0; transition: opacity .4s ease; }
.lb.is-open .lb__bg { opacity: 1; }
.lb__track { position: absolute; inset: 0; display: flex; will-change: transform; }
.lb__slide { flex: 0 0 100%; height: 100%; margin: 0; display: flex; align-items: center; justify-content: center; padding: 76px 96px 84px; }
.lb__slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; user-select: none; -webkit-user-drag: none; animation: none; }
.lb__top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.lb__count { color: rgba(255, 255, 255, .75); font-size: 14px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.lb .lb__close { position: static; }
.lb__cap { position: absolute; left: 0; right: 0; bottom: 26px; margin: 0; padding: 0 24px; text-align: center; color: rgba(255, 255, 255, .72); font-size: 14px; }
.lb__top, .lb__cap, .lb__prev, .lb__next { opacity: 0; transition: opacity .3s ease .1s; }
.lb.is-open .lb__top, .lb.is-open .lb__cap, .lb.is-open .lb__prev, .lb.is-open .lb__next { opacity: 1; }
.lb.is-first .lb__prev, .lb.is-last .lb__next { opacity: .25; pointer-events: none; }
@media (max-width: 720px) {
  .lb__slide { padding: 64px 0 92px; }
  .lb__slide img { border-radius: 0; }
  .lb__prev, .lb__next { display: none; }
  .lb__top { padding: 12px 12px 12px 18px; }
  .lb__cap { bottom: calc(28px + env(safe-area-inset-bottom)); font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .lb__bg, .lb__top, .lb__cap { transition: none; } }

/* ══════════ Шапка на компьютере: ровные расстояния и группы ══════════ */
@media (min-width: 1025px) {
  .hdr__in { gap: 0; }
  .hdr .nav { gap: 4px; padding-right: 22px; margin-right: 22px; border-right: 1px solid rgba(255, 255, 255, .18); }
  .hdr.is-solid .nav { border-right-color: rgba(18, 18, 17, .12); }
  .hdr .nav > a { padding: 9px 14px; }
  .hdr__phone { margin-right: 22px; letter-spacing: .01em; }
  .hdr__cta { min-height: 46px; padding: 0 24px; }
}

/* ══════════ «Технология»: плитки — единая система: иконка слева сверху, текст снизу ══════════ */
.tile:not(.tile--photo) { justify-content: flex-start; gap: 8px; }
.tile--photo .tile__over p { color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.55; max-width: 44ch; }
.tile__i { position: static; flex-shrink: 0; width: 26px; height: 26px; padding: 0; margin: 0 0 18px; background: none; color: var(--ink); stroke-width: 1.7; }
.tile h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.02em; }
.tile:not(.tile--photo) p { font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 40ch; }
@media (min-width: 1025px) {
  .bento { grid-auto-rows: auto; }
  .tile:not(.tile--photo) { padding: 30px; min-height: 212px; }
  .tile:not(.tile--photo):not(.tile--w2) h3, .tile--stat .tile__num { margin-top: auto; }
  /* нижние широкие плитки: всё от верха — заголовки на одной линии при разной длине текста */
  .tile.tile--w2 { min-height: 0; }
  .tile--w2 .tile__i { margin-bottom: 22px; }
  .tile--stat .tile__num { margin-bottom: 12px; }
  .tile--w2 p { max-width: 52ch; }
}
@media (max-width: 720px) {
  .tile__i { width: 22px; height: 22px; margin-bottom: 14px; }
  .tile h3 { font-size: 16px; }
  .tile:not(.tile--photo) p { font-size: 13.5px; line-height: 1.45; }
  .tile--photo .tile__over p { font-size: 14px; }
  .tile--stat .tile__num { margin-top: 4px; }
}

/* ══════════════════════════════════════════════════════════════
   Единая система карточек для всех светлых блоков
   • на белом фоне — карточка светло-серая, на сером — белая
   • без рамок, радиус 24px, одинаковые отступы
   • заголовок в карточке 20px, текст 15px, вторичный цвет
   ══════════════════════════════════════════════════════════════ */
.tile h3, .step h3, .equip__card h3 { font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
.step p, .banner p:not(.banner__t) { font-size: 15px; line-height: 1.55; }
.banner, .equip__card { padding: 30px; }
.tile:not(.tile--photo), .banner, .equip__card { box-shadow: none; }

/* ── Комплектация: две одинаковые карточки, простой список ── */
.equip__cols { align-items: stretch; }
.equip__card h3 { margin-bottom: 4px; }
.equip__sub { font-size: 14px; color: var(--ink-3); margin-bottom: 20px; }
.equip__card .checks { gap: 12px; }
.equip__card .checks li { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.equip__card .checks li::before { flex-basis: 16px; height: 16px; margin-top: 2px; }

/* ── Технология: белый фон раздела, карточки светло-серые — как везде ── */
#tech.sec--paper { background: var(--white); }
#tech .tile:not(.tile--photo) { background: var(--soft); }

@media (max-width: 720px) {
  .banner { padding: 22px; border: 0; background: var(--soft); }
  .banner .partner { border: 0; box-shadow: none; }
  .equip__card { padding: 22px; }
  .tile h3, .step h3, .equip__card h3 { font-size: 18px; }
}

/* ══════════ Телефоны и планшеты: без эффектов наведения (на касании они «залипают») ══════════ */
@media (hover: none) {
  .g:hover img, .tile--photo:hover img { transform: none; }
  .btn:hover .i { transform: none; }
  .fab__btn:hover { transform: none; }
  .banner .partner:hover { border-color: transparent; box-shadow: none; }
  .nav > a:hover:not(.is-active) { background: none; color: inherit; }
  .nav > a:hover:not(.is-active)::after { color: rgba(244, 244, 241, .35); transform: none; }
  .ftr__nav a:hover, .contact__list a:hover, .contact__phone:hover { color: inherit; opacity: inherit; }
  .way label:hover span { border-color: rgba(255, 255, 255, .14); color: var(--on-dark-2); }
  .way input:checked + span { color: #121211; border-color: #fff; }
  .g img, .tile--photo img { transition: opacity .5s ease; }
}

/* поле «Ник в Telegram» */
.tg-nick[hidden] { display: none; }
.tg-nick.is-in { animation: nickIn .3s ease; }
@keyframes nickIn { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .tg-nick.is-in { animation: none; } }


/* ══ Калькулятор: пять моделей в переключателе ══ */
.seg--5 { grid-template-columns: repeat(5, 1fr); }
@supports selector(:has(*)) {
  .seg--5::before { width: calc((100% - 8px) / 5); }
  .seg--5:has(label:nth-child(4) input:checked)::before { transform: translateX(300%); }
  .seg--5:has(label:nth-child(5) input:checked)::before { transform: translateX(400%); }
}
@media (max-width: 520px) {
  /* на узком экране — два ряда: 3 + 2 */
  .seg--5 { grid-template-columns: repeat(6, 1fr); height: auto; gap: 4px; border-radius: 22px; }
  .seg--5 label { grid-column: span 2; min-height: 44px; }
  .seg--5 label:nth-child(n+4) { grid-column: span 3; }
  .seg--5::before { display: none; }
  .seg--5 span { font-size: 14px; }
  .seg--5 input:checked + span { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); color: #fff; }
}
/* галерея на телефоне: без пустых ячеек в мозаике */
@media (max-width: 720px) { .gallery .g:last-child:not(.g--wide) { grid-column: auto; } }
/* без эффектов наведения на фото */
.g img, .tile--photo img { transform: none !important; }

/* ══════════════════════════════════════════════════════════════
   Каталог моделей — карточки .mc (единая чистая версия)
   компьютер: 3 колонки × 2 ряда (5 моделей + карточка «Индивидуальный проект»)
   планшет: 2 колонки × 3 ряда · телефон: лента со свайпом
   все подробности — в окне «Подробнее», карточки не меняют высоту
   ══════════════════════════════════════════════════════════════ */
.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 20px; }
.mc { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 8px; border-radius: var(--r); background: var(--soft); }
.mc__media { position: relative; flex: none; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--line); }
.mc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mc__badge { position: absolute; top: 14px; left: 14px; z-index: 1; display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink); background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mc__badge--gold { color: #1A1406; background: var(--gold-grad); box-shadow: 0 8px 20px -10px rgba(179, 138, 62, .8); }
.mc__cap { display: none; }

.mc__body { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 20px 16px 14px; }
.mc__type { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.mc__title { margin-top: 6px; font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc__text { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); min-height: 3em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.mc__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; padding: 13px 0; border-radius: 16px; background: var(--white); }
.mc__facts > div { min-width: 0; padding: 0 14px; }
.mc__facts > div + div { border-left: 1px solid var(--line); }
.mc__facts dt { font-size: 12.5px; color: var(--ink-3); }
.mc__facts dd { margin: 3px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mc__specs { margin-top: 20px; }
.mc__label { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-bottom: 10px; }
.mc__list, .sheet__list, .mc__cta-list { display: grid; gap: 9px; }
.mc__list li, .sheet__list li, .mc__cta-list li { display: flex; gap: 10px; font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.mc__list li::before, .sheet__list li::before, .mc__cta-list li::before {
  content: ''; flex: 0 0 16px; height: 16px; margin-top: 2px; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.mc__list li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; padding-left: 26px; position: relative; }
.mc__list li::before { position: absolute; left: 0; top: 2px; margin: 0; width: 16px; }

.mc__foot { margin-top: auto; padding-top: 20px; }
.mc__price { display: flex; align-items: baseline; gap: 6px; padding-top: 16px; border-top: 1px solid rgba(18, 18, 17, .08); font-size: 26px; letter-spacing: -.03em; white-space: nowrap; }
.mc__price span { font-size: 14px; letter-spacing: 0; color: var(--ink-3); }
.mc__price b { font-weight: 600; font-variant-numeric: tabular-nums; }
.mc__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.mc__btns .btn { padding: 0 12px; }
.btn--line { background: var(--white); color: var(--ink); border-color: rgba(18, 18, 17, .14); }
.btn--line:hover { border-color: var(--ink); }

/* карточка «Индивидуальный проект» */
.mc--cta { padding: 0; overflow: hidden; background: #121211; color: #fff; }
.mc__cta-bg { position: absolute; inset: 0; }
.mc__cta-bg img { width: 100%; height: 62%; object-fit: cover; opacity: .7; }
.mc__cta-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 18, 17, .25) 0%, rgba(18, 18, 17, .55) 35%, #121211 62%), radial-gradient(80% 50% at 100% 100%, rgba(201, 164, 92, .18), transparent 70%); }
.mc__cta-in { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px 24px 22px; }
.mc__cta-kicker { display: inline-flex; align-self: flex-start; min-height: 30px; align-items: center; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #1A1406; background: var(--gold-grad); }
.mc__cta-title { margin-top: 18px; font-size: 28px; font-weight: 600; line-height: 1.12; letter-spacing: -.03em; }
.mc__cta-text { margin-top: 12px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.mc__cta-list { margin-top: 20px; }
.mc__cta-list li { color: rgba(255, 255, 255, .86); }
.mc__cta-list li::before { background: #C9A45C; }
.mc__cta-foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; gap: 12px; }
.mc__cta-foot .btn { min-height: var(--ctl-sm); font-size: 15px; }
.mc__cta-tel { justify-self: center; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .8); text-decoration: none; padding: 6px; }
.mc__cta-tel:hover { color: #fff; }

/* планшет */
@media (max-width: 1024px) and (min-width: 721px) {
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* телефон: лента, подпись поверх фото, подробности — в окне */
@media (max-width: 720px) {
  .catalog { align-items: stretch; }
  .catalog > .mc { flex: 0 0 86%; }
  .mc { padding: 0; overflow: hidden; border-radius: 24px; }
  .mc__media { border-radius: 0; }
  .mc__media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10, 10, 9, .3) 0%, rgba(10, 10, 9, 0) 22%, rgba(10, 10, 9, 0) 36%, rgba(10, 10, 9, .6) 62%, rgba(10, 10, 9, .9) 100%); }
  .mc__cap { display: flex; flex-direction: column; position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; color: #fff; pointer-events: none; }
  .mc__cap-type { font-size: 12.5px; color: rgba(255, 255, 255, .8); margin-bottom: 4px; }
  .mc__cap-title { font-size: 23px; font-weight: 600; line-height: 1.12; letter-spacing: -.03em; }
  .mc__cap-price { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .75); }
  .mc__cap-price b { font-size: 20px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .mc__body > .mc__type, .mc__body > .mc__title, .mc__foot > .mc__price { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; border: 0; }
  .mc__body { padding: 14px; }
  .mc__text { margin: 0 4px; font-size: 14.5px; }
  .mc__facts { margin-top: 14px; padding: 12px 0; }
  .mc__facts > div { padding: 0 10px; }
  .mc__facts dt { font-size: 11.5px; }
  .mc__facts dd { font-size: 13.5px; }
  .mc__specs { display: none; }
  .mc__foot { padding-top: 14px; }
  .mc__btns { margin-top: 0; }
  .mc__btns .btn { min-height: 48px; font-size: 14.5px; }
  .mc__cta-in { padding: 22px 18px 16px; }
  .mc__cta-title { font-size: 25px; }
  .mc__cta-bg img { height: 55%; }
}

@media (max-width: 720px) { .mc__text { -webkit-line-clamp: 3; min-height: 4.5em; } }
/* узкие ноутбуки: компактнее цифры, чтобы значения не обрезались */
@media (min-width: 1025px) and (max-width: 1200px) {
  .mc__facts > div { padding: 0 10px; }
  .mc__facts dd { font-size: 14px; }
  .mc__price { font-size: 23px; }
  .mc__list li { font-size: 14.5px; }
}
/* никаких обрезанных «…»: значения и пункты при нехватке места переносятся */
.mc__facts dd { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.mc__list li { white-space: normal; overflow: visible; text-overflow: clip; }
.mc__title { white-space: normal; overflow: visible; text-overflow: clip; }
@media (min-width: 1025px) and (max-width: 1200px) { .mc__text { -webkit-line-clamp: 3; min-height: 4.5em; } }
@media (max-width: 1024px) and (min-width: 721px) { .mc__text { -webkit-line-clamp: 3; min-height: 4.5em; } }
/* 3 колонки — только когда карточкам хватает ширины; на ноутбуках до 1280 px — 2 колонки × 3 ряда */
@media (min-width: 721px) and (max-width: 1279px) {
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc__text { -webkit-line-clamp: 2; min-height: 3em; }
  .mc__facts > div { padding: 0 14px; }
  .mc__facts dd { font-size: 15px; }
  .mc__price { font-size: 26px; }
  .mc__list li { font-size: 15px; }
}
.mc__facts dd { white-space: nowrap; }
@media (min-width: 1280px) and (max-width: 1439px) { .mc__facts > div { padding: 0 12px; } .mc__facts dd { font-size: 14px; } }
@media (max-width: 380px) { .mc__facts dd { white-space: normal; } }

/* ══ Окно «Подробнее о модели»: фото целиком (4:3) слева, характеристики справа ══ */
html.sheet-lock, html.sheet-lock body { overflow: hidden; }
.sheet { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: hidden; }
.sheet:not([open]) { display: none; }
.sheet::backdrop { background: rgba(10, 10, 9, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet__in {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  /* ширина подстраивается и под высоту экрана — фото 4:3 всегда помещается целиком */
  width: min(1120px, calc(100% - 48px), calc((100vh - 48px) * 1.72));
  max-height: calc(100% - 48px); overflow-y: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: 52fr 48fr; gap: 36px; padding: 20px 36px 20px 20px;
  border-radius: 28px; background: var(--white); box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .6);
}
.sheet[open] .sheet__in { animation: sheetIn .35s var(--ease-out); }
@keyframes sheetIn { from { opacity: 0; transform: translate(-50%, calc(-50% + 24px)) scale(.98); } }
.sheet__aside { display: flex; flex-direction: column; gap: 16px; min-width: 0; align-self: start; position: sticky; top: 0; }
.sheet__media { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--soft); }
.sheet__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sheet__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 14px 0; border-radius: 16px; background: var(--soft); }
.sheet__facts > div { min-width: 0; padding: 0 16px; }
.sheet__facts > div + div { border-left: 1px solid var(--line); }
.sheet__facts dt { font-size: 12.5px; color: var(--ink-3); }
.sheet__facts dd { margin: 3px 0 0; font-size: 16px; font-weight: 600; white-space: nowrap; }
.sheet__buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 2px 4px 0; }
.sheet__price { font-size: 28px; letter-spacing: -.03em; white-space: nowrap; }
.sheet__price span { font-size: 14px; letter-spacing: 0; color: var(--ink-3); }
.sheet__price b { font-weight: 600; font-variant-numeric: tabular-nums; }
.sheet__actions { display: flex; gap: 8px; }
.sheet__actions .btn { min-height: 48px; padding: 0 20px; font-size: 15px; }
.sheet__body { min-width: 0; padding: 22px 0 12px; }
.sheet__close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--soft); color: var(--ink); cursor: pointer; }
.sheet__close:hover { background: var(--line); }
.sheet__close .i { width: 20px; height: 20px; }
.sheet__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sheet__type { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.sheet__title { margin-top: 6px; font-size: 30px; font-weight: 600; line-height: 1.15; letter-spacing: -.03em; padding-right: 48px; }
.sheet__content { margin-top: 22px; }
.sheet__table > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sheet__table > div:first-child { border-top: 1px solid var(--line); }
.sheet__table dt { color: var(--ink-2); flex: none; }
.sheet__table dd { margin: 0; font-weight: 600; text-align: right; }
.sheet__label { margin: 22px 0 12px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.sheet__note { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--soft); font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }

/* узкие окна: цена над кнопками */
@media (max-width: 1100px) and (min-width: 721px) {
  .sheet__buy { flex-direction: column; align-items: stretch; gap: 12px; }
  .sheet__actions .btn { flex: 1; }
}
/* телефон: шторка снизу — фото, название, характеристики, внизу цена и кнопки */
@media (max-width: 720px) {
  .sheet__in { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 92%; display: flex; flex-direction: column; gap: 0; padding: 0; border-radius: 24px 24px 0 0; }
  .sheet[open] .sheet__in { animation: sheetUp .35s var(--ease-out); }
  @keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
  .sheet__aside { display: contents; }
  .sheet__media { order: 1; flex: none; border-radius: 0; }
  .sheet__body { order: 2; padding: 20px 20px 8px; }
  .sheet__facts { display: none; }
  .sheet__buy { order: 3; position: sticky; bottom: 0; flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
  .sheet__price { font-size: 22px; }
  .sheet__actions .btn { flex: 1; }
  .sheet__title { font-size: 24px; }
  .sheet__close { background: rgba(255, 255, 255, .92); box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .35); }
}
@media (prefers-reduced-motion: reduce) { .sheet[open] .sheet__in { animation: none; } }
.sheet__in:focus { outline: none; }
@media (max-width: 720px) { .sheet__buy { z-index: 2; } }
