/* ════════════════════════════════════════════════════════════════
   Apple House — дизайн-система v3
   Один шрифт (Onest), нейтральная палитра, один сдержанный акцент.
   ════════════════════════════════════════════════════════════════ */
:root {
  --white: #FFFFFF;
  --soft: #F4F4F1;          /* светлый фон секций и карточек */
  --ink: #121211;           /* основной текст и тёмные элементы */
  --ink-2: #55554F;         /* вторичный текст */
  --ink-3: #8D8D86;         /* подписи */
  --line: #E4E3DE;
  --dark: #121211;
  --on-dark: #F4F4F1;
  --on-dark-2: rgba(244, 244, 241, .62);
  --dark-line: rgba(255, 255, 255, .12);
  --accent: #A8834A;        /* единственный акцент — точечно */
  --r-xs: 8px;             /* мелочи: логотип, чекбокс */
  --r-sm: 12px;             /* всё внутри карточек: поля, сообщения */
  --r: 24px;                /* все карточки и блоки */
  --r-lg: 24px;             /* оставлено для совместимости = --r */
  --pad: clamp(22px, 2.6vw, 32px);   /* внутренний отступ карточек */
  --gap: 16px;              /* промежуток между карточками */
  --ctl: 56px;              /* высота кнопок и полей */
  --ctl-sm: 44px;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hdr-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--hdr-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--white); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.i { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ── Типографика ── */
.h2 { font-weight: 600; letter-spacing: -.035em; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05; }
.kicker { font-size: 14px; font-weight: 500; color: var(--ink-3); margin-bottom: 16px; }
.sec--dark .kicker { color: var(--on-dark-2); }
.sec__lead { font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-2); max-width: 600px; margin-top: 20px; }
.sec--dark .sec__lead { color: var(--on-dark-2); }

/* ── Кнопки: только чёрная и белая ── */
.btn {
  --h: var(--ctl);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn--sm { --h: var(--ctl-sm); padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; white-space: normal; text-align: center; line-height: 1.25; padding-top: 12px; padding-bottom: 12px; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2E2E2B; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #E9E9E4; }
.btn--glass { color: #fff; border-color: rgba(255, 255, 255, .35); background: transparent; }
.btn--glass:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .6); }
.btn:disabled { opacity: .55; cursor: wait; }

/* ══════════ Шапка ══════════ */
.hdr { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hdr-h); color: #fff; background: rgba(18, 18, 17, .38); border-bottom: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background-color .25s, color .25s, box-shadow .25s, transform .22s ease-out; }
.hdr__in { height: 100%; display: flex; align-items: center; gap: clamp(14px, 1.5vw, 24px); }
.hdr.is-solid { background: rgba(255, 255, 255, .88); color: var(--ink); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 1px 0 var(--line); }
.hdr.is-solid .hdr__cta { background: var(--ink); color: #fff; }
.hdr.is-hidden { transform: translateY(-110%); box-shadow: none; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -.02em; flex-shrink: 0; }
.brand img { width: 36px; height: 36px; border-radius: var(--r-xs); }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav > a { padding: 10px 11px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; opacity: .92; transition: opacity .2s, background-color .2s; }
.nav > a:hover { background: rgba(127, 127, 127, .12); }
.nav__label { display: none; }
.nav > a:hover, .nav > a.is-active { opacity: 1; }
.nav > a.is-active { background: rgba(127, 127, 127, .14); }
.nav__mobile { display: none; }
.hdr__phone { text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.burger { display: none; flex-shrink: 0; width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .08); border-radius: 50%; cursor: pointer; position: relative; margin-left: auto; transition: background-color .2s, border-color .2s; }
.burger:hover { background: rgba(127, 127, 127, .2); }
.hdr.is-solid .burger { border-color: var(--line); background: rgba(18, 18, 17, .04); }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ══════════ Первый экран ══════════ */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--dark); isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 43%; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 9, .5) 0%, rgba(10, 10, 9, .1) 32%, rgba(10, 10, 9, .3) 58%, rgba(10, 10, 9, .9) 100%); }
.hero__in { padding-top: calc(var(--hdr-h) + 60px); padding-bottom: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .8); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero__title { font-weight: 600; letter-spacing: -.045em; line-height: .98; font-size: clamp(40px, 6.6vw, 96px); margin: 22px 0 24px; max-width: 16ch; }
.hero__title span { color: rgba(255, 255, 255, .55); }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; max-width: 540px; color: rgba(255, 255, 255, .78); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__stats-wrap { padding-bottom: 34px; }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .22); }
.hero__stats li { padding: 20px 20px 0 0; }
.hero__stats li + li { padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .14); }
.hero__stats b { display: block; font-weight: 600; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.03em; }
.hero__stats span { font-size: 14px; color: rgba(255, 255, 255, .6); }

/* ══════════ Секции ══════════ */
.sec { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.sec--paper { background: var(--soft); }
.sec--dark { background: var(--dark); color: var(--on-dark); }
.sec__head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 780px; }
.sec__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.sec__head--row .sec__lead { max-width: 400px; }

/* ── Модели — карточки .mc описаны в v4.css ── */

/* ── Технология ── */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); gap: var(--gap); }
.tile { background: var(--white); border-radius: var(--r); padding: var(--pad); display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; position: relative; overflow: hidden; }
.tile h3 { font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.tile p { color: var(--ink-2); font-size: 15.5px; }
.tile__i { position: absolute; top: var(--pad); left: var(--pad); width: 24px; height: 24px; color: var(--ink); }
.tile--photo { grid-column: span 2; grid-row: span 2; padding: 0; color: #fff; min-height: 440px; background: var(--dark); }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile__over { position: relative; padding: var(--pad); padding-top: 120px; background: linear-gradient(0deg, rgba(10, 10, 9, .8) 0%, rgba(10, 10, 9, 0) 100%); }
.tile__over p { color: rgba(255, 255, 255, .8); max-width: 440px; }
.tile__big { font-size: clamp(26px, 2.5vw, 36px) !important; font-weight: 600; line-height: 1.1; color: #fff !important; margin-bottom: 8px; letter-spacing: -.03em; }
.tile--stat { grid-row: span 2; }
.tile__num { font-weight: 600; white-space: nowrap; font-size: clamp(48px, 4.6vw, 72px) !important; line-height: 1; color: var(--ink) !important; letter-spacing: -.05em; margin-bottom: 8px; }
.tile--w2 { grid-column: span 2; min-height: 190px; }

/* ── Калькулятор ── */
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--gap); }
.calc__in, .calc__out { border: 1px solid var(--dark-line); border-radius: var(--r); padding: var(--pad); }
.calc__in { display: grid; gap: 28px; }
.calc__out { display: flex; flex-direction: column; gap: 22px; background: rgba(255, 255, 255, .04); }
.field { display: grid; gap: 14px; }
.field__label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 500; font-size: 15px; color: var(--on-dark-2); }
.field__label output { font-size: 18px; color: var(--on-dark); font-weight: 600; font-variant-numeric: tabular-nums; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 999px; padding: 4px; border: 1px solid var(--dark-line); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 10px 6px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--on-dark-2); transition: background-color .2s, color .2s; }
.seg input:checked + span { background: #fff; color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 999px; background: linear-gradient(90deg, #fff var(--p, 50%), rgba(255, 255, 255, .16) var(--p, 50%)); outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 5px rgba(255, 255, 255, .14); transition: box-shadow .2s; }
input[type="range"]::-webkit-slider-thumb:hover { box-shadow: 0 0 0 8px rgba(255, 255, 255, .18); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; }
.kpi span { display: block; font-size: 14px; color: var(--on-dark-2); }
.kpi b { display: block; font-weight: 600; font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -.03em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi--main b { white-space: nowrap; font-size: clamp(38px, 4.2vw, 60px); line-height: 1.05; }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; padding: 22px 0; border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.bars { display: grid; gap: 12px; }
.bars__row { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; font-size: 13.5px; color: var(--on-dark-2); }
.bars__row i { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .22); width: var(--w, 50%); transition: width .5s var(--ease); }
.bars__row i.gold { background: #fff; }
.calc__note { font-size: 13px; line-height: 1.5; color: rgba(244, 244, 241, .45); }

/* ── Комплектация ── */
.equip { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.equip__head { position: sticky; top: calc(var(--hdr-h) + 30px); }
.equip__head .btn { margin-top: 30px; }
.equip__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.equip__card { background: var(--soft); border-radius: var(--r); padding: var(--pad); }
.equip__card h3 { font-weight: 600; font-size: 20px; letter-spacing: -.02em; margin-bottom: 22px; }
.checks { display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.checks li::before {
  content: ''; flex: 0 0 18px; height: 18px; margin-top: 3px; 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;
}

/* ── Галерея ── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 270px; gap: var(--gap); }
.g { padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--line); position: relative; }
.g--wide { grid-column: span 2; }
.g--tall { grid-row: span 2; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(10, 10, 9, .95); display: flex; align-items: center; justify-content: center; padding: 60px 80px; }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-sm); animation: lbIn .3s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.98); } }
.lb__cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: 14px; }
.lb__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color .2s; }
.lb__btn:hover { background: rgba(255, 255, 255, .12); }
.lb__close { top: 20px; right: 20px; }
.lb__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ── Процесс ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { padding: 28px 28px 8px 0; position: relative; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step__n { display: block; font-size: 14px; font-weight: 500; color: var(--ink-3); margin-bottom: 48px; font-variant-numeric: tabular-nums; }
.step h3 { font-weight: 600; font-size: 20px; letter-spacing: -.02em; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 15.5px; }
.banner { margin-top: 56px; background: var(--soft); border-radius: var(--r); padding: var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.banner p { color: var(--ink-2); max-width: 620px; }
.banner__t { font-size: clamp(22px, 2.3vw, 30px); font-weight: 600; color: var(--ink) !important; margin-bottom: 8px; letter-spacing: -.03em; }
.partner { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; background: #fff; border-radius: var(--r-sm); padding: 18px 24px; flex-shrink: 0; }
.partner img { width: 170px; height: auto; }
.partner span { font-size: 12px; color: var(--ink-3); }

/* ── FAQ ── */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--hdr-h) + 30px); }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative; font-weight: 500; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.4; letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 300; color: var(--ink-2); transition: transform .3s var(--ease); }
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa p { padding: 0 48px 24px 0; color: var(--ink-2); font-size: 16.5px; }

/* ── Контакты ── */
.contact__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact__phone { display: inline-block; margin-top: 34px; font-weight: 600; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; text-decoration: none; }
.contact__phone:hover { opacity: .8; }
.contact__msg { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: var(--ctl-sm); padding: 0 18px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; border: 1px solid var(--dark-line); transition: background-color .2s; }
.pill:hover { background: rgba(255, 255, 255, .08); }
.contact__list { margin-top: 38px; display: grid; gap: 14px; color: var(--on-dark-2); }
.contact__list li { display: flex; gap: 12px; align-items: flex-start; }
.contact__list .i { margin-top: 4px; opacity: .7; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }

.form-card { background: var(--white); color: var(--ink); border-radius: var(--r); padding: var(--pad); }
.form-card h3 { font-weight: 600; font-size: 22px; letter-spacing: -.03em; margin-bottom: 24px; }
.form { display: grid; gap: 12px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inp { position: relative; display: block; }
.inp input, .inp textarea { width: 100%; border: 1px solid var(--line); background: var(--white); border-radius: var(--r-sm); min-height: var(--ctl); padding: 25px 16px 9px; font: 400 16px/1.4 var(--font); color: var(--ink); outline: none; transition: border-color .2s; resize: vertical; }
.inp textarea { min-height: 116px; }
.inp span { position: absolute; left: 17px; right: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; top: 17px; color: var(--ink-3); font-size: 16px; pointer-events: none; transition: top .2s var(--ease), font-size .2s; }
.inp input:hover, .inp textarea:hover { border-color: #CFCEC8; }
.inp input:focus, .inp textarea:focus { border-color: var(--ink); }
.inp input:focus + span, .inp input:not(:placeholder-shown) + span, .inp textarea:focus + span, .inp textarea:not(:placeholder-shown) + span { top: 7px; font-size: 12px; }
.inp .invalid { border-color: #C53B3B; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; margin: 4px 0 6px; }
.consent input { width: 18px; height: 18px; accent-color: var(--ink); flex-shrink: 0; margin: 2px 0 0; }
.consent a { color: var(--ink); }
.form-message { font-size: 15px; border-radius: var(--r-sm); }
.form-message:empty { display: none; }
.form-message.success-message { padding: 13px 16px; background: #EDF6EF; color: #1E6B34; }
.form-message.error-message { padding: 13px 16px; background: #FBEEEE; color: #A42828; }

/* ── Подвал ── */
.ftr { background: var(--dark); color: var(--on-dark-2); padding: 64px 0 32px; border-top: 1px solid var(--dark-line); overflow: hidden; }
.ftr__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand--light { color: var(--on-dark); }
.ftr__nav { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.ftr__nav a { text-decoration: none; font-size: 15px; transition: color .2s; }
.ftr__nav a:hover { color: var(--on-dark); }
.ftr__big { font-weight: 600; font-size: 11vw; display: inline-block; line-height: .9; letter-spacing: -.06em; margin: 48px 0 32px; white-space: nowrap; color: rgba(244, 244, 241, .07); user-select: none; }
.ftr__bottom { display: flex; justify-content: space-between; gap: 12px 30px; flex-wrap: wrap; font-size: 13.5px; padding-top: 24px; border-top: 1px solid var(--dark-line); }
.ftr__bottom a { color: inherit; }

/* ── Кнопки мессенджеров ── */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .35s, transform .35s var(--ease); }
.fab.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fab__btn { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--ink); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); transition: transform .2s var(--ease); }
.fab__btn:hover { transform: scale(1.06); }
.fab__btn .i { width: 22px; height: 22px; }

/* ── Появление ── */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ══════════ Адаптив ══════════ */
@media (max-width: 1380px) { .hdr__phone { display: none; } }
@media (max-width: 1180px) {
  .hdr__phone { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--stat { grid-row: auto; }
  .tile--w2 { grid-column: auto; }
  .tile--w2:last-child { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 1024px) {
  :root { --hdr-h: 66px; }
  .burger { display: block; color: inherit; }
  .hdr__cta { display: none; }
  .hdr__in > .brand, .burger { z-index: 2; }
  .nav { position: fixed; inset: 0; height: 100vh; height: 100dvh; z-index: 1; margin: 0; flex-direction: column; justify-content: flex-start; gap: 0; background: var(--dark); color: var(--on-dark); padding: calc(var(--hdr-h) + 24px) max(var(--gut), calc((100vw - 560px) / 2)) max(28px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s var(--ease), visibility .25s; }
  .nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__label { display: block; margin-bottom: 14px; color: #C9A45C; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
  .nav > a { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; min-height: 54px; font-size: clamp(24px, 5vw, 30px); line-height: 1.2; font-weight: 500; padding: 12px 0; opacity: 1; border-radius: 0; border-bottom: 1px solid var(--dark-line); background: none !important; letter-spacing: -.03em; }
  .nav > a::after { content: '↗'; font-size: 20px; color: rgba(244, 244, 241, .35); transition: color .2s, transform .2s; }
  .nav > a:hover, .nav > a.is-active { color: #D8B872; }
  .nav > a:hover::after, .nav > a.is-active::after { color: #D8B872; transform: translate(2px, -2px); }
  .nav__mobile { display: grid; flex-shrink: 0; gap: 12px; margin-top: 24px; padding-top: 0; border: 0; }
  .nav__cta { margin-bottom: 8px; }
  .nav__hours { font-size: 13px; color: var(--on-dark-2); margin-top: -8px; }
  .nav__phone { font-size: 22px; font-weight: 600; text-decoration: none; }
  .nav__msg { display: flex; flex-wrap: wrap; gap: 10px; }
  .nav__msg a { display: inline-flex; align-items: center; min-height: var(--ctl-sm); padding: 0 18px; border-radius: 999px; border: 1px solid var(--dark-line); text-decoration: none; font-weight: 500; }
  .hdr.menu-open { background: var(--dark); color: var(--on-dark); box-shadow: none; transform: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hdr.menu-open .hdr__in::before { content: ''; position: absolute; inset: 0; z-index: 2; background: var(--dark); border-bottom: 1px solid var(--dark-line); pointer-events: none; }
  .hdr.menu-open .burger { border-color: rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .06); }
  .calc { grid-template-columns: 1fr; }
  .equip, .faq, .contact__in { grid-template-columns: 1fr; }
  .equip__head, .faq__head { position: static; }
  .sec__head--row { flex-direction: column; align-items: flex-start; gap: 0; }
  .banner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  :root { --gap: 12px; }
  body { font-size: 16px; }
  .hero__shade { background: linear-gradient(180deg, rgba(10, 10, 9, .6) 0%, rgba(10, 10, 9, .5) 45%, rgba(10, 10, 9, .94) 100%); }
  .hero__bg img { object-position: 57% 35%; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero__stats li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 16px; }
  .hero__stats b { font-size: 19px; }
  .hero__stats span { font-size: 13px; }
  .hero__cta .btn { width: 100%; }
  .bento { grid-template-columns: 1fr; }
  .tile--photo { grid-column: auto; grid-row: auto; min-height: 400px; }
  .tile { min-height: 180px; }
  .tile--w2:last-child { grid-column: auto; }
  .equip__cols { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .g:last-child { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 22px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .step__n { margin-bottom: 14px; }
  .banner { margin-top: 36px; padding: 22px; gap: 22px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, #F7F7F3, #F0F0EA); }
  .banner > div { width: 100%; }
  .banner .banner__t { font-size: 23px; line-height: 1.2; margin-bottom: 12px; letter-spacing: -.035em; text-wrap: balance; }
  .banner p:not(.banner__t) { font-size: 15px; line-height: 1.65; color: #62625B; text-wrap: pretty; }
  .banner .partner { width: 100%; min-height: 82px; display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 14px; padding: 18px 16px; border: 1px solid rgba(18, 18, 17, .06); border-radius: 14px; box-shadow: 0 4px 16px -12px rgba(18, 18, 17, .18); transition: border-color .2s, box-shadow .2s; }
  .banner .partner img { width: 124px; max-width: 100%; }
  .banner .partner span { font-size: 12px; line-height: 1.35; color: var(--ink-2); }
  .banner .partner::after { content: ''; width: 16px; height: 16px; background: #91836B; -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='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M7 7h10v10'/%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='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17 17 7M7 7h10v10'/%3E%3C/svg%3E") center / contain no-repeat; }
  .banner .partner:hover { border-color: #C9B994; box-shadow: 0 6px 20px -12px rgba(18, 18, 17, .2); }
  .form__row { grid-template-columns: 1fr; }
  .kpi--main b { font-size: clamp(30px, 10vw, 44px); }
  .bars__row { grid-template-columns: 110px 1fr; }
  .lb { padding: 60px 12px; }
  .lb__prev, .lb__next { top: auto; bottom: 16px; transform: none; }
  .lb__cap { bottom: 80px; }
  .fab { right: 14px; bottom: 14px; }
  .ftr { padding-bottom: 90px; }
  .qa summary { padding-right: 40px; }
  .qa p { padding-right: 0; }
}
@media (max-width: 400px) {
  .seg span { font-size: 13.5px; padding: 10px 2px; }
  .kpi b { font-size: 19px; }
}
@media (max-width: 340px) { .kpi-grid { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}


/* ══ Первый экран и шапка — как в прежней версии (широкий шрифт, золотой акцент) ══ */
:root { --display: 'Unbounded', 'Onest', system-ui, sans-serif; --gold-grad: linear-gradient(135deg, #B38A3E 0%, #D8B872 50%, #F0DDA8 100%); }
.brand { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
.btn--gold { background: var(--gold-grad); color: #1A1406; box-shadow: 0 10px 30px -12px rgba(201, 164, 92, .6); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(201, 164, 92, .75); }
.hdr.is-solid .hdr__cta { background: var(--gold-grad); color: #1A1406; }
.hero__shade { background: radial-gradient(120% 80% at 80% 20%, transparent 30%, rgba(8, 9, 6, .45) 100%), linear-gradient(180deg, rgba(8, 9, 6, .55) 0%, rgba(8, 9, 6, .05) 30%, rgba(8, 9, 6, .25) 55%, rgba(8, 9, 6, .92) 100%); }
.eyebrow { padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-weight: 600; color: #fff; }
.dot { width: 8px; height: 8px; background: #C9A45C; }
.hero__title { font-family: var(--display); font-weight: 500; letter-spacing: -.035em; line-height: .98; font-size: clamp(38px, 7vw, 104px); margin: 26px 0; max-width: none; }
.hero__title em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { color: rgba(255, 255, 255, .82); }
.hero .btn--glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hero .btn--glass:hover { background: rgba(255, 255, 255, .18); }
.hero__stats b { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; font-size: clamp(20px, 2.1vw, 30px); }
@media (max-width: 720px) {
  .hero__shade { background: linear-gradient(180deg, rgba(8, 9, 6, .6) 0%, rgba(8, 9, 6, .5) 45%, rgba(8, 9, 6, .94) 100%); }
  .hero__title { margin: 20px 0; font-size: clamp(28px, 9vw, 48px); }
  .eyebrow { font-size: 12.5px; padding: 7px 14px; }
  .hero__stats b { font-size: 18px; }
}


/* ══ Форма заявки — в тон тёмной секции ══ */
.form-card { background: #1B1B19; color: var(--on-dark); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.form-card h3 { margin-bottom: 6px; }
.form-card__sub { color: var(--on-dark-2); font-size: 15px; margin-bottom: 26px; }
.form-card .inp input, .form-card .inp textarea { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .12); color: var(--on-dark); }
.form-card .inp input:hover, .form-card .inp textarea:hover { border-color: rgba(255, 255, 255, .24); }
.form-card .inp input:focus, .form-card .inp textarea:focus { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); }
.form-card .inp span { color: rgba(244, 244, 241, .45); }
.form-card .inp input:-webkit-autofill { -webkit-text-fill-color: var(--on-dark); -webkit-box-shadow: 0 0 0 40px #242421 inset; caret-color: var(--on-dark); }
.form-card .inp .invalid { border-color: #E06363; }
.form-card .consent { color: var(--on-dark-2); }
.form-card .consent input { accent-color: #C9A45C; }
.form-card .consent a { color: var(--on-dark); text-decoration-color: rgba(244, 244, 241, .35); text-underline-offset: 3px; }
.form-card .btn--gold { margin-top: 6px; }
.form-card .form-message.success-message { background: rgba(52, 168, 90, .14); color: #8FD9A8; }
.form-card .form-message.error-message { background: rgba(224, 99, 99, .14); color: #F2A3A3; }

/* Галочка согласия — в стиле формы */
.form-card .consent input {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .28); border-radius: 6px; background: rgba(255, 255, 255, .04);
  display: grid; place-content: center; transition: background-color .2s, border-color .2s;
}
.form-card .consent input:hover { border-color: rgba(255, 255, 255, .5); }
.form-card .consent input::after {
  content: ''; width: 14px; height: 14px; transform: scale(0); transition: transform .15s var(--ease); background: #1A1406;
  -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='3.5' 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='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.form-card .consent input:checked { background: var(--gold-grad); border-color: transparent; }
.form-card .consent input:checked::after { transform: scale(1); }
.form-card .consent input:focus-visible { outline: 2px solid #C9A45C; outline-offset: 2px; }


/* ══ Адаптив: доработка ══ */
@media (max-width: 900px) {
  /* цифры первого экрана — две колонки, чтобы не переносились */
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero__stats li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 16px; }
}
@media (max-width: 720px) {
  /* удобные зоны нажатия */
  .ftr__nav { gap: 0 20px; }
  .ftr__nav a { display: inline-block; padding: 10px 0; }
  .contact__list { gap: 4px; }
  .contact__list a { display: inline-block; padding: 8px 0; }
  .contact__list .i { margin-top: 12px; }
  .contact__list li:last-child { padding: 8px 0; }
  .contact__list li:last-child .i { margin-top: 4px; }
}

/* Невысокие экраны ноутбуков (1280×800, 1366×768): первый экран целиком с цифрами */
@media (min-width: 721px) and (max-height: 900px) {
  .hero__in { padding-top: calc(var(--hdr-h) + 28px); padding-bottom: 28px; }
  .hero__title { font-size: clamp(38px, min(6.6vw, 10.4vh), 104px); margin: 18px 0; }
  .hero__cta { margin-top: 24px; }
  .hero__stats-wrap { padding-bottom: 24px; }
  .hero__stats li { padding-top: 16px; }
}

/* ══ Переключатель модели в калькуляторе — ровный, в стиле полей ══ */
.seg { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); height: var(--ctl); padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .14); isolation: isolate; }
.seg label { position: relative; display: flex; }
.seg span { flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 6px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--on-dark-2); transition: color .25s var(--ease), background-color .25s; }
.seg label:hover span { color: var(--on-dark); }
.seg input:checked + span { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
/* Плавно переезжающая плашка — где браузер поддерживает :has */
@supports selector(:has(*)) {
  .seg::before { content: ''; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 999px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); transition: transform .35s var(--ease); }
  .seg:has(label:nth-child(2) input:checked)::before { transform: translateX(100%); }
  .seg:has(label:nth-child(3) input:checked)::before { transform: translateX(200%); }
  .seg input:checked + span { background: none; box-shadow: none; }
}
@media (max-width: 400px) { .seg span { font-size: 14px; padding: 0 2px; } }

/* ══ Мессенджеры: прежний вид, новые чёткие значки ══ */
.msg { display: inline-flex; align-items: center; gap: 8px; min-height: var(--ctl-sm); padding: 0 18px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--on-dark); border: 1px solid var(--dark-line); transition: background-color .2s; }
.msg:hover { background: rgba(255, 255, 255, .08); }
.msg__ic { display: grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; }
.msg__ic .i { width: 19px; height: 19px; }
.nav__msg .msg { padding: 0 18px; }
.fab__btn .i { width: 24px; height: 24px; }
.fab__btn--tg .i { margin-left: -2px; }

/* Большая надпись в подвале — градиент, как было (сверху светлее, книзу растворяется) */
.ftr__big {
  font-family: var(--display); font-weight: 600; letter-spacing: -.05em;
  background: linear-gradient(180deg, rgba(244, 244, 241, .18) 0%, rgba(244, 244, 241, .02) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
