/* Кристалл Принт — стили сайта. Цвета и размеры меняются через переменные в :root. */
:root {
  --navy-950: #0b1428;
  --navy-900: #101c36;
  --navy-800: #16254a;
  --navy-700: #1f335f;
  --navy-600: #2c4476;
  --accent: #00a0e3;        /* голубой из логотипа */
  --accent-600: #0089c4;
  --accent-50: #e6f6fd;
  --ink: #111a2e;
  --ink-2: #3a4560;
  --muted: #6b7489;
  --line: #e2e6ee;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --ok: #1a9b5c;
  --err: #d33a3a;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1240px;
  --shadow: 0 1px 2px rgba(16, 28, 54, .06), 0 8px 24px rgba(16, 28, 54, .06);
  --shadow-lg: 0 20px 50px rgba(11, 20, 40, .18);
  --f-head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  --f-body: 'Manrope', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }
body { margin: 0; font: 400 16px/1.6 var(--f-body); color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 56px 0; }
.h-display, .h2, .h1 { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .01em; }
.h1 { font-size: clamp(34px, 5vw, 60px); }
.h2 { font-size: clamp(30px, 3.6vw, 46px); }
.h3 { font-size: 20px; font-weight: 700; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 18px; color: var(--ink-2); max-width: 680px; }
.muted { color: var(--muted); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.sec-head p { margin: 12px 0 0; color: var(--muted); max-width: 620px; }

/* ---------- Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 700; font-size: 15px; letter-spacing: .02em; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn .icon { width: 20px; height: 20px; transition: transform .2s; }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(0, 160, 227, .28); }
.btn--accent:hover { background: var(--accent-600); }
.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--white { background: #fff; color: var(--navy-900); }
.btn--white:hover { background: var(--accent-50); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--ghost { border-color: var(--line); color: var(--navy-900); background: #fff; }
.btn--ghost:hover { border-color: var(--navy-800); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy-800); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover { color: var(--accent-600); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Шапка */
.social { display: flex; gap: 8px; }
.social a { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background .2s; }
.social a:hover { background: var(--accent); }
.social .icon { width: 16px; height: 16px; }

.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; gap: 28px; min-height: 78px; }
.logo { flex: none; display: block; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link { position: relative; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--navy-900); background: none; border: 0; cursor: pointer; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--accent-600); }
.nav__link .icon { width: 16px; height: 16px; transition: transform .2s; }
.header__contacts { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.header__phone { font-weight: 800; font-size: 17px; color: var(--navy-900); }
.header__mail { font-size: 13px; font-weight: 600; color: var(--muted); }
.header__phone:hover, .header__mail:hover { color: var(--accent-600); }
.header__cta { flex: none; }
.burger { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; place-items: center; cursor: pointer; }


/* ---------- Первый экран — вариант A (по макету) */
.hero-a { padding: 28px 0 0; }
.hero-a__card { position: relative; overflow: hidden; border-radius: 24px; min-height: 560px; display: grid; place-items: center; text-align: center; color: #fff; padding: 72px 24px; background: var(--navy-900) center/cover no-repeat; isolation: isolate; }
.hero-a__card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 60% at 50% 45%, rgba(11, 20, 40, .82), rgba(11, 20, 40, .35) 70%, rgba(11, 20, 40, .15)); z-index: -1; }
.hero-a__title { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; letter-spacing: .01em; }
.hero-a__title span { color: var(--accent); }
.hero-a__text { font-size: 19px; color: rgba(255, 255, 255, .85); max-width: 560px; margin: 22px auto 34px; }
.hero-a__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-a__chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.chip .icon { width: 16px; height: 16px; }
.chip--glass { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.chip--glass .icon { color: var(--accent); }
.chip--soft { background: var(--accent-50); color: var(--navy-800); }
.chip--soft .icon { color: var(--accent-600); }

/* ---------- Первый экран — вариант B (светлый, со схемой) */
.hero-b { padding: 56px 0 24px; background: linear-gradient(180deg, var(--bg-soft), #fff); }
.hero-b__grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero-b__title { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: clamp(38px, 5.2vw, 70px); line-height: 1.03; color: var(--navy-900); margin: 16px 0 20px; }
.hero-b__title span { color: var(--accent); }
.hero-b__text { font-size: 18.5px; color: var(--ink-2); max-width: 540px; margin-bottom: 28px; }
.hero-b__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.hero-b__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-b__media { position: relative; }
.hero-b__photo { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.2; }
.hero-b__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-b__float { position: absolute; left: -28px; bottom: 28px; display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow-lg); max-width: 290px; }
.hero-b__float b { display: block; font-size: 15px; }
.hero-b__float span { font-size: 13.5px; color: var(--muted); }
.hero-b__float .badge-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.hero-b__year { position: absolute; right: 22px; top: 22px; background: var(--navy-900); color: #fff; border-radius: 14px; padding: 12px 16px; text-align: center; font-family: var(--f-head); text-transform: uppercase; }
.hero-b__year b { display: block; font-size: 30px; line-height: 1; color: var(--accent); margin-top: 4px; }
.hero-b__year span { font-size: 12px; letter-spacing: .06em; }

/* ---------- Преимущества 01–04 */
.adv { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.adv__item { padding: 30px 28px 32px; position: relative; }
.adv__item + .adv__item { border-left: 1px solid var(--line); }
.adv__num { font-family: var(--f-head); font-size: 40px; font-weight: 400; color: var(--navy-800); line-height: 1; }
.adv__ic { width: 58px; height: 58px; margin: 22px 0 18px; border-radius: 14px; background: var(--accent-50); color: var(--accent-600); display: grid; place-items: center; }
.adv__ic .icon { width: 30px; height: 30px; }
.adv__item h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.adv__item p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Карточки продукции */
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.pcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pcard__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-800); position: relative; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__tile { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 70% 25%, var(--navy-600), var(--navy-900) 70%); }
.pcard__tile .icon { width: 64px; height: 64px; stroke-width: 1.1; color: rgba(255, 255, 255, .9); }
.pcard__tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 55%, rgba(0, 160, 227, .22) 55%, rgba(0, 160, 227, .22) 70%, transparent 70%); }
.pcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard__name { font-size: 18px; font-weight: 800; color: var(--navy-900); }
.pcard__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--muted); }
.pcard__more .icon { width: 16px; height: 16px; transition: transform .2s; }
.pcard:hover .pcard__more { color: var(--accent-600); }
.pcard:hover .pcard__more .icon { transform: translateX(3px); }
.grid-products--sm { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-products--sm .pcard__name { font-size: 16px; }
.grid-products--all { grid-template-columns: repeat(5, 1fr); gap: 18px; }
.grid-products--all .pcard__name { font-size: 16px; }
.grid-products--all .pcard__body { padding: 14px 16px 16px; }
.cat-title { font-family: var(--f-head); text-transform: uppercase; font-weight: 500; font-size: 22px; letter-spacing: .02em; color: var(--navy-900); margin-bottom: 18px; }
#produkciya .cat-block + .cat-block { margin-top: 44px; }
.center-cta { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- О компании: цифры */
.about-band { background: var(--navy-900); color: #fff; border-radius: 24px; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; }
.about-band__text { padding: 56px 52px; }
.about-band__text .h2 { color: #fff; margin: 14px 0 18px; }
.about-band__text p { color: rgba(255, 255, 255, .78); }
.about-band__equip { font-size: 14px; margin: -8px 0 28px; }
.about-band__equip b { color: #fff; }
.about-band__media { position: relative; min-height: 360px; }
.about-band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 34px; }
.stat b { display: block; font-family: var(--f-head); font-size: 40px; font-weight: 500; line-height: 1; color: var(--accent); }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.stats--light .stat b { color: var(--navy-800); }
.stats--light .stat span { color: var(--muted); }

/* ---------- Шаги */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: '0' counter(step); display: block; font-family: var(--f-head); font-size: 15px; letter-spacing: .08em; color: var(--accent-600); margin-bottom: 16px; }
.step h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- B2B */
.b2b { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.b2b__item { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.b2b__item .icon { width: 34px; height: 34px; color: var(--accent-600); margin-bottom: 18px; }
.b2b__item h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.b2b__item p { margin: 0; color: var(--muted); font-size: 15px; }
.b2b__item p a { color: var(--navy-800); }
.b2b--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Форма заявки */
.lead-box { position: relative; overflow: hidden; background: var(--navy-900); color: #fff; border-radius: 24px; padding: 44px 44px 36px; }
.lead-box::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; background: url('../img/brand/logo-mark.svg') center/contain no-repeat; opacity: .06; pointer-events: none; }
.lead-box__intro { color: rgba(255, 255, 255, .78); max-width: 520px; margin-bottom: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 18px; }
.form-grid--4 { grid-template-columns: repeat(4, 1fr); }
.field--span2 { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field__label { font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.field__label i { color: var(--accent); font-style: normal; }
.field__box { position: relative; }
.field__box > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #8a93a8; pointer-events: none; }
.field__box--area > .icon { top: 16px; transform: none; }
.input, .select, .textarea { width: 100%; min-height: 52px; border-radius: 12px; border: 1.5px solid transparent; background: #fff; color: var(--ink); padding: 12px 14px 12px 44px; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23111a2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 160, 227, .2); }
.field--bad .input, .field--bad .select, .field--bad .textarea { border-color: var(--err); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: rgba(255, 255, 255, .75); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.consent a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.consent--bad { color: #ff9a9a; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 22px; }
.form-perks { display: flex; gap: 28px; flex-wrap: wrap; }
.form-perks li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: rgba(255, 255, 255, .78); max-width: 170px; line-height: 1.35; }
.form-perks .icon { width: 26px; height: 26px; color: var(--accent); }
.form-error { color: #ffb4b4; font-size: 14px; margin-top: 12px; min-height: 1em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-done { text-align: center; padding: 26px 10px; }
.form-done .done-ic { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin: 0 auto 18px; }
.form-done .done-ic .icon { width: 32px; height: 32px; color: #fff; stroke-width: 2.2; }
.form-done h3 { font-family: var(--f-head); text-transform: uppercase; font-size: 28px; font-weight: 600; margin-bottom: 10px; }
.form-done p { color: rgba(255, 255, 255, .8); max-width: 520px; margin: 0 auto 22px; }
.send-ways { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.form-done--light p { color: var(--ink-2); }

/* Параметры продукции в форме на главной — подставляются скриптом */
.calc-dyn { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 22px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px dashed rgba(255, 255, 255, .18); }
.calc-dyn .field--wide { grid-column: 1 / -1; }
.calc-dyn .field--span2 { grid-column: span 2; }
.calc-dyn__hint { grid-column: 1 / -1; margin: 0; display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .6); font-size: 14.5px; }
.calc-dyn__hint .icon { color: var(--accent); }
.calc-dyn.is-filled { border-style: solid; animation: dynIn .25s ease; }
@keyframes dynIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.lead-box .opt span { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: rgba(255, 255, 255, .85); }
.lead-box .opt input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.qty-own { margin-top: 10px; }

/* Светлая форма (на страницах продукции и в окне) */
.lead-light .field__label { color: var(--ink-2); }
.lead-light .input, .lead-light .select, .lead-light .textarea { background: var(--bg-soft); border-color: var(--line); }
.lead-light .input:focus, .lead-light .select:focus, .lead-light .textarea:focus { background: #fff; border-color: var(--accent); }
.lead-light .consent { color: var(--muted); }
.lead-light .consent a { color: var(--navy-800); }
.lead-light .form-error { color: var(--err); }
.lead-light .form-done p { color: var(--ink-2); }

/* ---------- Калькулятор на странице продукции */
.calc { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.calc__form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.calc__form h3 { font-family: var(--f-head); text-transform: uppercase; font-weight: 600; font-size: 22px; margin: 0 0 18px; }
.calc__form h3 + .form-grid { margin-bottom: 30px; }
.calc__form .form-grid { grid-template-columns: repeat(2, 1fr); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: all .15s; cursor: pointer; }
.opt input:checked + span { border-color: var(--accent); background: var(--accent-50); color: var(--navy-900); }
.opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(0, 160, 227, .3); }
.calc__summary { position: sticky; top: 100px; background: var(--navy-900); color: #fff; border-radius: 20px; padding: 28px; }
.calc__summary h3 { font-family: var(--f-head); text-transform: uppercase; font-weight: 600; font-size: 22px; margin-bottom: 18px; }
.sum-list { display: grid; gap: 10px; margin-bottom: 22px; }
.sum-list li { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; padding-bottom: 10px; border-bottom: 1px dashed rgba(255, 255, 255, .15); }
.sum-list li span { color: rgba(255, 255, 255, .6); }
.sum-list li b { text-align: right; font-weight: 700; }
.sum-price { background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; }
.sum-price small { display: block; color: rgba(255, 255, 255, .6); font-size: 13px; }
.sum-price b { display: block; font-family: var(--f-head); font-weight: 500; font-size: 26px; margin-top: 4px; }
.sum-notes { display: grid; gap: 10px; margin-top: 18px; font-size: 13.5px; color: rgba(255, 255, 255, .72); }
.sum-notes li { display: flex; gap: 10px; align-items: center; }
.sum-notes .icon { width: 18px; height: 18px; color: var(--accent); }

/* ---------- Страница продукции */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); padding: 22px 0 0; }
.crumbs a:hover { color: var(--accent-600); }
.crumbs span::before { content: '/'; margin-right: 8px; opacity: .5; }
.p-hero { padding: 26px 0 64px; }
.p-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.p-hero .h1 { color: var(--navy-900); margin: 14px 0 18px; }
.p-hero .lead { margin-bottom: 26px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.p-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.p-hero__media { border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; width: 100%; max-height: calc(100vh - 150px); justify-self: center; box-shadow: var(--shadow-lg); background: var(--navy-800); position: relative; }
.p-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.p-hero__media .pcard__tile .icon { width: 120px; height: 120px; }
.kinds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.kind { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.kind h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--navy-900); }
.kind p { margin: 0; color: var(--muted); font-size: 15px; }
.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.uses li { display: flex; gap: 12px; align-items: center; padding: 18px 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 700; }
.uses .icon { width: 22px; height: 22px; color: var(--accent-600); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

/* ---------- FAQ */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--navy-800); border-bottom: 2px solid var(--navy-800); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-2); }

/* ---------- Каталог */
.cat-block + .cat-block { margin-top: 64px; }
.cat-block .h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 26px; color: var(--navy-900); }
.page-hero { padding: 26px 0 48px; }
.page-hero .h1 { color: var(--navy-900); margin: 14px 0 16px; }

/* ---------- Наши работы */
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.works a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 1; background: var(--bg-soft); }
.works img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.works a:hover img { transform: scale(1.05); }
.works--page { grid-template-columns: repeat(5, 1fr); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(8, 14, 28, .92); display: none; align-items: center; justify-content: center; padding: 40px 70px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: var(--accent); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__prev .icon { transform: rotate(180deg); }

/* ---------- Шаблоны штампов */
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.stamp { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-align: center; transition: border-color .2s, box-shadow .2s; }
.stamp:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.stamp img { height: 86px; width: auto; }
.stamp b { font-size: 14px; }
.stamp span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--accent-600); }
.stamp span .icon { width: 16px; height: 16px; }
.tabs { display: inline-flex; gap: 6px; padding: 5px; border-radius: 12px; background: var(--bg-soft); margin-bottom: 22px; }
.tabs button { border: 0; background: none; padding: 10px 18px; border-radius: 9px; font-weight: 700; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--navy-900); box-shadow: var(--shadow); }

/* ---------- Оборудование */
.equip { display: grid; gap: 40px; }
.equip__group h3 { font-family: var(--f-head); text-transform: uppercase; font-weight: 600; font-size: 22px; color: var(--navy-900); margin-bottom: 18px; }
.equip__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.equip__item { padding: 22px 24px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.equip__item b { display: block; font-size: 16.5px; color: var(--navy-900); margin-bottom: 6px; }
.equip__item p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ---------- Текстовые страницы */
.prose { max-width: 820px; }
.prose h2 { font-family: var(--f-head); text-transform: uppercase; font-weight: 600; font-size: 26px; color: var(--navy-900); margin: 40px 0 14px; }
.prose h3 { font-size: 18px; font-weight: 800; margin: 26px 0 10px; }
.prose ul { list-style: disc; padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent-600); text-decoration: underline; text-underline-offset: 2px; }
.memo { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
#tehtrebovaniya .memo { grid-template-columns: repeat(3, 1fr); }
.memo li { padding: 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.memo b { display: block; font-size: 16px; margin-bottom: 6px; color: var(--navy-900); }
.memo span { font-size: 14.5px; color: var(--muted); }

/* ---------- Контакты */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.c-list { display: grid; gap: 14px; }
.c-item { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.c-item .c-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-50); color: var(--accent-600); display: grid; place-items: center; flex: none; }
.c-item small { display: block; font-size: 13px; color: var(--muted); }
.c-item b { font-size: 17px; }
.map { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); min-height: 420px; background: var(--bg-soft); }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Подвал */
.footer { background: var(--navy-950); color: rgba(255, 255, 255, .72); padding: 64px 0 28px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__logo img { height: 46px; width: auto; margin-bottom: 20px; }
.footer h4 { font-family: var(--f-head); text-transform: uppercase; font-weight: 500; letter-spacing: .05em; font-size: 15px; color: #fff; margin-bottom: 16px; }
.footer li { margin-bottom: 9px; font-size: 15px; }
.footer a:hover { color: #fff; }
.footer__contact { display: grid; gap: 12px; }
.footer__contact a, .footer__contact span { display: flex; align-items: center; gap: 10px; }
.footer__contact .icon { width: 18px; height: 18px; color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }

/* ---------- Модальное окно */
.modal { position: fixed; inset: 0; z-index: 150; background: rgba(8, 14, 28, .6); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__card { position: relative; width: 100%; max-width: 480px; background: #fff; border-radius: 22px; padding: 36px 32px 30px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 40px); overflow: auto; }
.modal__card h3 { font-family: var(--f-head); text-transform: uppercase; font-weight: 600; font-size: 28px; color: var(--navy-900); margin-bottom: 8px; }
.modal__card > p { color: var(--muted); margin-bottom: 22px; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-soft); display: grid; place-items: center; cursor: pointer; }
.modal .form-grid { grid-template-columns: 1fr; }

.to-top-space { height: 0; }
.variant-note { background: #fff7d6; color: #6b5200; text-align: center; font-size: 14px; padding: 10px 16px; }
.variant-note a { text-decoration: underline; font-weight: 700; }

/* ---------- Адаптив */
@media (max-width: 1320px) {
  .nav__link { padding: 10px 7px; font-size: 13.5px; }
  .header .container { gap: 14px; }
  .header__phone { font-size: 16px; }
}
@media (max-width: 1180px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1120px) {
  .nav, .header__cta { display: none; }
  .header__contacts { margin-left: auto; }
  .burger { display: grid; }
  .header.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .header.is-open .nav { display: flex; position: fixed; inset: var(--menu-top, 118px) 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 8px 20px 96px; overflow: auto; gap: 0; border-top: 1px solid var(--line); z-index: 60; }
  .header.is-open .nav__link { padding: 16px 4px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between; width: 100%; }
  .header.is-open .header__cta { display: inline-flex; position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 61; }
  .adv { grid-template-columns: repeat(2, 1fr); }
  .adv__item:nth-child(3) { border-left: 0; }
  .adv__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-b__grid, .about-band, .two-col, .contacts { grid-template-columns: 1fr; }
  .p-hero__grid { gap: 32px; }
  .grid-products--all { grid-template-columns: repeat(4, 1fr); }
  .hero-b__float { left: 16px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .b2b { grid-template-columns: 1fr; }
  .b2b--4 { grid-template-columns: 1fr 1fr; }
  #tehtrebovaniya .memo { grid-template-columns: 1fr 1fr; }
  .form-grid, .form-grid--4, .calc-dyn { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc__summary { position: static; }
  .works, .works--page { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .p-hero__grid { grid-template-columns: 1fr; }
  .p-hero__media { max-width: 520px; aspect-ratio: 4 / 3; max-height: none; }
  .grid-products--all { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .container { padding: 0 16px; }
  .section { padding: 60px 0; }
  .header .container { min-height: 66px; gap: 12px; }
  .logo img { height: 36px; }
  .header__phone { font-size: 15px; }
  .hero-a__card { min-height: 480px; padding: 56px 18px; border-radius: 18px; }
  .hero-a__text { font-size: 16.5px; }
  .hero-a__actions .btn, .hero-b__actions .btn, .p-hero__actions .btn { width: 100%; }
  .grid-products, .grid-products--sm, .grid-products--all { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard__body { padding: 14px; }
  .pcard__name { font-size: 15.5px; }
  .adv { grid-template-columns: 1fr; }
  .adv__item + .adv__item { border-left: 0; border-top: 1px solid var(--line); }
  .adv__item { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; padding: 20px; align-items: start; }
  .adv__num { display: none; }
  .adv__ic { margin: 0; width: 52px; height: 52px; grid-row: span 2; }
  .steps { grid-template-columns: 1fr; }
  .b2b--4, #tehtrebovaniya .memo { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat b { font-size: 30px; }
  .about-band__text { padding: 36px 24px; }
  .lead-box { padding: 30px 18px 26px; border-radius: 18px; }
  .form-grid, .form-grid--4, .calc__form .form-grid { grid-template-columns: 1fr; }
  .field--span2, .calc-dyn .field--span2 { grid-column: auto; }
  .calc-dyn { grid-template-columns: 1fr; padding: 16px; }
  .header__mail { font-size: 12px; }
  .calc__form { padding: 22px 16px; }
  .form-foot .btn { width: 100%; }
  .works, .works--page { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .footer__grid { grid-template-columns: 1fr; }
  .lightbox { padding: 60px 10px; }
  .hero-b__float { position: relative; left: 0; bottom: 0; margin-top: -40px; margin-left: 12px; }
}
