/* ВЭМК-НН — электромонтаж в Нижнем Новгороде
   Фирменные цвета из логотипа: тёмно-синий #090E40 и коралловый #FF4F35.
   Один шрифт Golos Text, одна тема, радиус 6px на всё. */

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/golos-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============ 1. Токены ============ */
:root {
  color-scheme: light;

  --navy:      #090E40;
  --navy-2:    #131A55;
  --navy-3:    #1E2668;

  --acc:       #FF4F35;
  --acc-hi:    #FF6B54;
  --acc-lo:    #D93A20;
  --acc-soft:  #FFF0ED;

  --bg:        #FFFFFF;
  --bg-alt:    #F3F4F9;
  --surface-2: #F7F8FC;

  --ink:       #0B1030;
  --ink-2:     #4A5070;
  --ink-3:     #7E85A4;
  --line:      #E2E4EF;
  --line-2:    #C9CDE0;

  --on-navy-2: #A9AFD4;
  --on-navy-3: #7178A8;
  --navy-line: rgba(255,255,255,.14);

  --warn:      #C2410C;

  --r: 6px;
  --r-lg: 10px;
  --shadow-1: 0 1px 2px rgba(11,16,48,.06), 0 4px 14px rgba(11,16,48,.06);
  --shadow-2: 0 4px 12px rgba(11,16,48,.08), 0 20px 56px rgba(11,16,48,.12);

  --ff: "Golos Text", ui-sans-serif, system-ui, "Segoe UI", sans-serif;

  --wrap: 1660px;
  --gut: clamp(18px, 3.4vw, 56px);
  --nav-h: 76px;

  --ease: cubic-bezier(.2, .8, .25, 1);
}

/* ============ 2. База ============ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(36px, 4.4vw, 72px); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(28px, 2.9vw, 46px); letter-spacing: -.03em; }
h3 { font-size: clamp(19px, 1.5vw, 24px); }
h4 { font-size: 17px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--acc); }
::selection { background: var(--acc); color: #fff; }

:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; border-radius: var(--r); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 1080px; }
.lede { font-size: clamp(17px, 1.2vw, 21px); color: var(--ink-2); max-width: 68ch; line-height: 1.5; }
.muted { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; top: 10px; left: 10px; z-index: 200; transform: translateY(-250%); background: var(--acc); color: #fff; padding: 12px 18px; border-radius: var(--r); font-weight: 600; text-decoration: none; }
.skip:focus { transform: none; }

section { position: relative; }
.sec { padding-block: clamp(56px, 6.2vw, 112px); }
.sec--tight { padding-block: clamp(38px, 4.2vw, 72px); }
.sec--alt { background: var(--bg-alt); }
.sec--navy { background: var(--navy); color: #fff; }
.sec--navy .lede, .sec--navy .muted { color: var(--on-navy-2); }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ============ 3. Заголовки секций ============ */
.head { display: grid; gap: 16px; margin-bottom: clamp(30px, 3.2vw, 52px); max-width: 80ch; }
.head--row { max-width: none; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 26px 48px; }
.head--row > div { max-width: 80ch; }
@media (max-width: 800px) { .head--row { grid-template-columns: 1fr; } }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
  color: var(--acc);
}
.kicker::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--acc); flex: none; }

/* ============ 4. Кнопки ============ */
.btn {
  --btn-bg: var(--acc);
  --btn-fg: #fff;
  --btn-bd: var(--acc);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 2px solid var(--btn-bd);
  border-radius: var(--r);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 16px/1 var(--ff);
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s var(--ease), box-shadow .18s;
}
.btn:hover { --btn-bg: var(--acc-hi); --btn-bd: var(--acc-hi); box-shadow: 0 6px 20px rgba(255,79,53,.3); }
.btn:active { transform: translateY(1px); }
.btn .icon { font-size: 20px; }

.btn--navy { --btn-bg: var(--navy); --btn-fg: #fff; --btn-bd: var(--navy); }
.btn--navy:hover { --btn-bg: var(--navy-3); --btn-bd: var(--navy-3); box-shadow: 0 6px 20px rgba(9,14,64,.24); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-2); }
.btn--ghost:hover { --btn-bd: var(--ink); --btn-bg: transparent; box-shadow: none; }

.sec--navy .btn--ghost, .hero .btn--ghost, .hdr .btn--ghost, .drawer .btn--ghost {
  --btn-fg: #fff; --btn-bd: rgba(255,255,255,.34);
}
.sec--navy .btn--ghost:hover, .hero .btn--ghost:hover, .hdr .btn--ghost:hover, .drawer .btn--ghost:hover { --btn-bd: #fff; }

.btn--sm { min-height: 44px; padding: 0 17px; font-size: 15px; border-width: 1.5px; }
.btn--wide { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ============ 5. Шапка ============ */
.hdr { position: sticky; top: 0; z-index: 90; background: var(--navy); color: #fff; }
.hdr__bar { height: var(--nav-h); display: flex; align-items: center; gap: clamp(14px, 2vw, 44px); }
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand img { height: 36px; width: auto; }
@media (max-width: 460px) { .brand img { height: 29px; } }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 10px 15px; border-radius: var(--r);
  font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap;
  color: var(--on-navy-2);
  transition: color .16s, background-color .16s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.12); }

.hdr__act { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav + .hdr__act { margin-left: clamp(8px, 1.5vw, 32px); }
.hdr__tel { display: grid; text-decoration: none; line-height: 1.15; text-align: right; }
.hdr__tel b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.hdr__tel small { font-size: 12.5px; color: var(--on-navy-3); }
.hdr__tel:hover b { color: var(--acc); }

.iconbtn {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border: 1.5px solid var(--navy-line); border-radius: var(--r);
  background: transparent; color: #fff;
  font-size: 22px; cursor: pointer;
  transition: border-color .16s, background-color .16s;
}
.iconbtn:hover { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.08); }

.burger { display: none; }
/* навигация скрыта, поэтому кнопки снова прижимаем вправо сами */
@media (max-width: 1240px) {
  .nav { display: none; }
  .burger { display: grid; }
  .nav + .hdr__act { margin-left: auto; }
}
@media (max-width: 660px) { .hdr__tel { display: none; } }
@media (max-width: 520px) { .hdr__act .btn { display: none; } }

.drawer {
  position: fixed; inset: 0; z-index: 120;
  background: var(--navy); color: #fff;
  display: grid; grid-template-rows: var(--nav-h) 1fr;
  transform: translateX(100%);
  transition: transform .34s var(--ease);
  overflow: hidden auto;
}
.drawer[data-open="true"] { transform: none; }
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } }
.drawer__top { display: flex; align-items: center; justify-content: space-between; padding-inline: var(--gut); border-bottom: 1px solid var(--navy-line); }
.drawer__body { padding: 28px var(--gut) 48px; display: grid; gap: 2px; align-content: start; }
.drawer__body a.dl {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 0; border-bottom: 1px solid var(--navy-line);
  font-size: 25px; font-weight: 600; letter-spacing: -.025em;
  text-decoration: none; color: #fff;
}
.drawer__body a.dl .icon { font-size: 18px; color: var(--acc); }
.drawer__foot { margin-top: 30px; display: grid; gap: 12px; }
.drawer__foot p { color: var(--on-navy-2); }

/* ============ 6. Первый экран ============ */
.hero {
  background: var(--navy); color: #fff;
  min-height: calc(100dvh - var(--nav-h));
  display: flex; align-items: center;
  overflow: hidden; position: relative;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.hero__bg img.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__bg img { transition: none; } }

/* затемнение: слева текст должен читаться, справа фото остаётся видно */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(97deg, rgba(9,14,64,.97) 0%, rgba(9,14,64,.92) 30%, rgba(9,14,64,.66) 58%, rgba(9,14,64,.38) 100%),
    radial-gradient(46% 62% at 96% 2%, rgba(255,79,53,.26), transparent 62%);
}
@media (max-width: 1040px) {
  .hero::before { background: linear-gradient(180deg, rgba(9,14,64,.94) 0%, rgba(9,14,64,.97) 55%, rgba(9,14,64,.99) 100%); }
}
.hero__grid {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--wrap); margin-inline: auto;
  padding: clamp(36px, 4vw, 72px) var(--gut);
  display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(360px, 460px);
  gap: clamp(32px, 4vw, 80px); align-items: center;
}
@media (max-width: 1040px) { .hero { min-height: 0; } .hero__grid { grid-template-columns: 1fr; padding-block: 48px 60px; } }

.hero h1 { max-width: 15ch; }
.hero h1 span { color: var(--acc); }
.hero__sub { margin-top: 26px; font-size: clamp(17px, 1.25vw, 21px); color: var(--on-navy-2); max-width: 48ch; line-height: 1.5; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 520px) { .hero__cta .btn { flex: 1 1 100%; } }

/* карточка быстрого расчёта */
.hc {
  background: #fff; color: var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(22px, 1.9vw, 30px);
  display: grid; gap: 0;
  box-shadow: 0 30px 80px rgba(0,0,0,.42);
}
.hc__head {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.hc__head .hc__t { margin-right: auto; }
.hc__chev { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-2, #EEF0F6); color: var(--ink-2); transition: background .16s; }
.hc__chev .icon { font-size: 17px; transform: rotate(90deg); transition: transform .24s; }
.hc__head:hover .hc__chev { background: var(--acc-soft); }
.hc__head:focus-visible { outline: 2px solid var(--acc); outline-offset: 6px; border-radius: 8px; }
.hc.is-open .hc__chev .icon { transform: rotate(-90deg); }
.hc__fold { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s ease, visibility 0s .3s; }
.hc.is-open .hc__fold { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .3s ease, visibility 0s; }
.hc__body { min-height: 0; overflow: hidden; display: grid; gap: 18px; padding-top: 18px; }
@media (prefers-reduced-motion: reduce) { .hc__fold, .hc__chev .icon { transition: none; } }
.hc__t { font-size: 20px; font-weight: 700; letter-spacing: -.03em; }
.hc__badge { font-size: 13px; font-weight: 600; color: var(--acc-lo); background: var(--acc-soft); padding: 6px 12px; border-radius: 100px; white-space: nowrap; }

.hc__types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hc__types button {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: #fff; color: var(--ink); font: 500 15.5px var(--ff);
  cursor: pointer; transition: background-color .16s, border-color .16s, color .16s;
}
.hc__types button .icon { font-size: 19px; color: var(--ink-3); transition: color .16s; }
.hc__types button:hover { border-color: var(--ink-3); }
.hc__types button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.hc__types button[aria-pressed="true"] .icon { color: var(--acc); }

.hc__arearow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.hc__arearow b { font-size: 19px; color: var(--ink); letter-spacing: -.02em; }

.hc__out { border-top: 1px solid var(--line); padding-top: 18px; }
.hc__out small { font-size: 13.5px; color: var(--ink-3); }
.hc__sum { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 5px; }
.hc__sum b { font-size: clamp(29px, 2.4vw, 40px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.hc__sum span { font-size: 17px; font-weight: 700; color: var(--acc); }
.hc__meta { margin: 11px 0 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }
.hc__note { margin: 0; font-size: 13px; color: var(--ink-3); text-align: center; line-height: 1.4; }

@media (max-width: 1040px) { .hc { box-shadow: 0 16px 44px rgba(0,0,0,.3); } }
@media (max-width: 340px) { .hc__types { grid-template-columns: 1fr; } }

/* полоса фактов */
.facts { background: var(--navy-2); color: #fff; }
.facts__row { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts__row > div { padding: clamp(24px, 2.2vw, 36px) clamp(18px, 1.8vw, 36px); border-left: 1px solid var(--navy-line); }
.facts__row > div:first-child { border-left: 0; padding-left: 0; }
.facts__n { font-size: clamp(30px, 2.9vw, 46px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.facts__n span { color: var(--acc); }
.facts__l { margin-top: 12px; font-size: 15px; color: var(--on-navy-2); line-height: 1.4; max-width: 26ch; }
@media (max-width: 820px) {
  .facts__row { grid-template-columns: 1fr 1fr; }
  .facts__row > div { padding-inline: 0 20px; }
  .facts__row > div:nth-child(odd) { border-left: 0; }
  .facts__row > div:nth-child(even) { padding-left: 22px; }
  .facts__row > div:nth-child(n+3) { border-top: 1px solid var(--navy-line); }
}

/* ============ 7. Плитки услуг ============ */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
.bento > * { grid-column: span 2; }
.bento > .b-wide { grid-column: span 4; }
@media (max-width: 980px) { .bento { grid-template-columns: 1fr; } .bento > *, .bento > .b-wide { grid-column: auto; } }

.tile {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--navy);
  min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 2.2vw, 36px);
  text-decoration: none; color: #fff;
  isolation: isolate;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
@media (prefers-reduced-motion: reduce) { .tile:hover { transform: none; } }
.tile__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile:hover .tile__bg { transform: scale(1.05); }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(9,14,64,.12) 0%, rgba(9,14,64,.56) 46%, rgba(9,14,64,.94) 100%);
}
.tile--acc { background: var(--acc); }
.tile--acc::after { display: none; }
.tile__ico { font-size: 34px; margin-bottom: auto; color: var(--acc); }
.tile--acc .tile__ico { color: #fff; }
.tile__t { font-size: clamp(23px, 1.75vw, 30px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 22px; }
.tile__desc { margin-top: 12px; font-size: 15.5px; line-height: 1.45; max-width: 48ch; color: rgba(255,255,255,.78); }
.tile--acc .tile__desc { color: rgba(255,255,255,.92); }
.tile__more { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 600; }
.tile__more .icon { font-size: 16px; transition: transform .22s var(--ease); }
.tile:hover .tile__more .icon { transform: translate(3px, -3px); }
.tile__price {
  margin-top: 18px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.2);
  font-size: 15px; font-weight: 600; color: var(--acc);
}
.tile--acc .tile__price { color: #fff; border-top-color: rgba(255,255,255,.36); }

/* ============ 8. Этапы ============ */
.steps { display: grid; }
.step {
  display: grid; grid-template-columns: 86px 1fr 34px; gap: clamp(16px, 2vw, 36px);
  align-items: start;
  padding: clamp(20px, 2.2vw, 30px) 0;
  border-top: 1px solid var(--line);
  cursor: pointer; width: 100%; text-align: left;
  background: none; border-inline: 0; border-bottom: 0;
  color: inherit; font: inherit;
  transition: border-color .2s;
}
.step:last-of-type { border-bottom: 1px solid var(--line); }
.step:hover .step__t { color: var(--acc); }
.step[aria-expanded="true"] { border-top-color: var(--acc); }
.step__n { font-size: 15px; font-weight: 700; color: var(--acc); padding-top: 5px; }
.step__t { font-size: clamp(20px, 1.65vw, 27px); font-weight: 700; letter-spacing: -.028em; line-height: 1.15; transition: color .18s; }
.step__d { overflow: hidden; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.step[aria-expanded="true"] .step__d { grid-template-rows: 1fr; }
.step__d > div { min-height: 0; }
.step__d p { margin: 14px 0 0; color: var(--ink-2); font-size: 16.5px; max-width: 72ch; }
.step__x { font-size: 23px; color: var(--ink-3); transition: transform .3s var(--ease), color .2s; padding-top: 4px; }
.step[aria-expanded="true"] .step__x { transform: rotate(45deg); color: var(--acc); }
@media (max-width: 640px) { .step { grid-template-columns: 34px 1fr 26px; } }

/* ============ 9. Карточки ============ */
.adv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.adv--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .adv { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .adv, .adv--2 { grid-template-columns: 1fr; } }
.adv > div {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 2.2vw, 36px);
  transition: border-color .2s, box-shadow .2s;
}
.adv > div:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.adv .icon { font-size: 32px; color: var(--acc); }
.adv h3 { margin-top: 22px; font-size: 21px; }
.adv p { margin-top: 12px; font-size: 16px; color: var(--ink-2); }
.sec--navy .adv > div { background: var(--navy-2); border-color: var(--navy-line); }
.sec--navy .adv p { color: var(--on-navy-2); }

/* ============ 10. Работы ============ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
  border: 1.5px solid var(--line-2); border-radius: 100px;
  background: transparent; color: var(--ink-2);
  padding: 10px 18px; font: 500 15px var(--ff); cursor: pointer;
  transition: all .16s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip b { font-weight: 500; opacity: .55; margin-left: 8px; font-size: 13.5px; }

.grid-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.work {
  position: relative; border: 0; padding: 0; margin: 0; background: none; cursor: zoom-in;
  border-radius: var(--r-lg); overflow: hidden; display: block; width: 100%;
}
.work img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s var(--ease); }
.work:hover img { transform: scale(1.05); }
.work__cap {
  position: absolute; inset: auto 0 0 0;
  padding: 42px 20px 17px;
  background: linear-gradient(180deg, transparent, rgba(9,14,64,.92));
  color: #fff; font-size: 15px; font-weight: 500; text-align: left; line-height: 1.35;
}
@media (prefers-reduced-motion: reduce) { .work img, .work:hover img { transition: none; transform: none; } }

.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100%; height: 100%; }
.lb::backdrop { background: rgba(9,14,64,.95); }
.lb__in { display: grid; grid-template-rows: 1fr auto; height: 100dvh; width: 100%; }
.lb__stage { display: grid; place-items: center; padding: 54px 74px 10px; min-height: 0; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r); }
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px clamp(16px,3vw,36px) 26px; color: #fff; }
.lb__cap { font-size: 16px; }
.lb__cnt { font-size: 14.5px; color: var(--on-navy-2); }
.lb__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,.26); border-radius: var(--r);
  background: rgba(255,255,255,.06); color: #fff; font-size: 25px; cursor: pointer;
}
.lb__nav:hover { background: var(--acc); border-color: var(--acc); }
.lb__prev { left: 16px; } .lb__next { right: 16px; }
.lb__close { position: absolute; top: 16px; right: 16px; transform: none; }
@media (max-width: 700px) { .lb__stage { padding: 54px 10px 6px; } .lb__nav { width: 44px; height: 44px; } }

/* ============ 11. Отзывы ============ */
.quotes { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.quote {
  scroll-snap-align: start; flex: 0 0 clamp(290px, 29vw, 420px);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  padding: clamp(24px, 2.2vw, 34px); display: grid; align-content: start; gap: 16px;
}
.quote .icon { font-size: 28px; color: var(--acc); }
.quote p { font-size: 16.5px; line-height: 1.5; }
.quote footer { display: grid; gap: 3px; padding-top: 15px; border-top: 1px solid var(--line); }
.quote b { font-size: 16px; }
.quote small { font-size: 14px; color: var(--ink-3); }

/* ============ 12. Формы ============ */
.field { display: grid; gap: 8px; }
.field > label, .lbl { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: 13.5px; color: var(--ink-3); line-height: 1.4; }
.field .err { font-size: 13.5px; color: var(--warn); font-weight: 600; }
.field .err:empty { display: none; }

input[type="text"], input[type="tel"], input[type="email"], input[type="number"], textarea, select {
  width: 100%; min-height: 54px; padding: 14px 16px;
  border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: #fff; color: var(--ink);
  font: 500 16.5px var(--ff);
  transition: border-color .16s, box-shadow .16s;
}
textarea { min-height: 116px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
input:hover, textarea:hover, select:hover { border-color: var(--ink-3); }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--warn); }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.check input { appearance: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid var(--line-2); border-radius: 4px; background: #fff; cursor: pointer; position: relative; flex: none; }
.check input:checked { background: var(--acc); border-color: var(--acc); }
.check input:checked::after { content: ""; position: absolute; inset: 4px 5px 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.check input:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.check a { color: var(--ink); }

.form-note { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-3); }
.form-note .icon { font-size: 18px; margin-top: 2px; flex: none; color: var(--acc); }

.form-msg { display: none; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: var(--r); font-size: 15.5px; }
.form-msg[data-state="ok"] { display: flex; background: var(--acc-soft); border: 1.5px solid var(--acc); }
.form-msg[data-state="err"] { display: flex; background: var(--surface-2); border: 1.5px solid var(--warn); }
.form-msg .icon { font-size: 22px; flex: none; color: var(--acc); }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

.segs { display: flex; flex-wrap: wrap; gap: 9px; }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg span {
  display: flex; align-items: center; gap: 9px;
  padding: 13px 18px; border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: #fff; font-size: 15.5px; font-weight: 500; cursor: pointer;
  transition: all .16s;
}
.seg span .icon { font-size: 19px; color: var(--ink-3); }
.seg:hover span { border-color: var(--ink-3); }
.seg input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg input:checked + span .icon { color: var(--acc); }
.seg input:focus-visible + span { outline: 3px solid var(--acc); outline-offset: 2px; }

.range { display: grid; gap: 10px; }
.range__top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.range__val { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
input[type="range"] { appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 3px; background: var(--line-2); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 3px; background: var(--line-2); }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; margin-top: -9px; background: var(--acc); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 1px 6px rgba(11,16,48,.3); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; background: var(--acc); border: 3px solid #fff; border-radius: 50%; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--acc-soft); }

.stp { display: inline-flex; align-items: stretch; border: 1.5px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: #fff; }
.stp button { width: 42px; border: 0; background: transparent; color: var(--ink-2); font-size: 16px; cursor: pointer; display: grid; place-items: center; transition: background-color .14s, color .14s; }
.stp button:hover { background: var(--surface-2); color: var(--acc); }
.stp input { width: 58px; min-height: 0; border: 0; border-inline: 1.5px solid var(--line-2); border-radius: 0; text-align: center; padding: 11px 2px; background: transparent; font-size: 15.5px; font-weight: 600; }
.stp input:focus { box-shadow: none; }
.stp.is-on { border-color: var(--acc); }
.stp.is-on input { color: var(--acc); }

/* ============ 13. Прайс ============ */
.price-lay { display: grid; grid-template-columns: minmax(0,1fr) 448px; gap: clamp(20px, 2.2vw, 40px); align-items: start; }
@media (max-width: 1180px) { .price-lay { grid-template-columns: 1fr; } }

.price-tools { position: sticky; top: var(--nav-h); z-index: 40; background: var(--bg); padding-block: 20px; display: grid; gap: 14px; }
.search { position: relative; }
.search .icon { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); font-size: 21px; color: var(--ink-3); pointer-events: none; }
.search input { padding-left: 50px; padding-right: 48px; }
.search button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; font-size: 18px; border-radius: var(--r); }
.search button:hover { background: var(--surface-2); color: var(--ink); }

.cats { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent); }
.cats .chip { white-space: nowrap; flex: none; }

.pgroup { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; margin-bottom: 16px; overflow: hidden; }
.pgroup > h3 {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 24px; margin: 0;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  font-size: 19px; letter-spacing: -.025em;
}
.pgroup > h3 .icon { font-size: 25px; color: var(--acc); }
.pgroup > h3 small { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.pgroup__note { padding: 15px 24px 0; margin: 0; font-size: 15px; color: var(--ink-3); max-width: 80ch; }

.prow {
  display: grid; grid-template-columns: minmax(0,1fr) 76px 120px 146px;
  gap: 14px; align-items: center;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  transition: background-color .16s;
}
.pgroup .prow:first-of-type { border-top: 0; }
.prow:hover { background: var(--surface-2); }
.prow.is-on { background: var(--acc-soft); }
.prow__n { font-size: 16px; line-height: 1.35; }
.prow__u { font-size: 14.5px; color: var(--ink-3); }
.prow__p { font-size: 17.5px; font-weight: 700; letter-spacing: -.025em; white-space: nowrap; }
.prow__p i { font-style: normal; font-size: 13.5px; font-weight: 500; color: var(--ink-3); }
.prow__a { display: flex; justify-content: flex-end; }
@media (max-width: 760px) {
  .prow { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "n n" "u p" "a a"; gap: 10px 14px; padding: 17px; }
  .prow__n { grid-area: n; } .prow__u { grid-area: u; } .prow__p { grid-area: p; text-align: right; } .prow__a { grid-area: a; justify-content: flex-start; }
}

.empty { text-align: center; padding: 66px 24px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); }
.empty .icon { font-size: 40px; color: var(--ink-3); margin: 0 auto 18px; }
.empty h3 { font-size: 23px; }
.empty p { margin-top: 10px; color: var(--ink-3); font-size: 16px; }

/* смета */
.smeta { position: sticky; top: calc(var(--nav-h) + 20px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); display: grid; overflow: hidden; }
.smeta__t { padding: 18px 22px; background: var(--navy); color: #fff; display: flex; align-items: center; gap: 12px; }
.smeta__t h3 { font-size: 19px; }
.smeta__t .icon { font-size: 23px; color: var(--acc); }
.smeta__t button { margin-left: auto; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.28); }
.smeta__t button:hover { --btn-bd: #fff; }
.smeta__list { max-height: min(44vh, 430px); overflow: auto; scrollbar-width: thin; }
.smeta__list:empty + .smeta__none { display: block; }
.smeta__none { display: none; padding: 32px 24px; text-align: center; color: var(--ink-3); font-size: 15.5px; }
.si {
  display: grid; grid-template-columns: 1fr auto 28px;
  grid-template-areas: "n n x" "s p x";
  gap: 5px 12px; padding: 14px 22px; border-bottom: 1px solid var(--line);
}
.si:last-child { border-bottom: 0; }
.si__n { grid-area: n; font-size: 15.5px; line-height: 1.3; }
.si__s { grid-area: s; align-self: center; font-size: 13.5px; color: var(--ink-3); }
.si__p { grid-area: p; align-self: center; font-size: 16px; font-weight: 700; letter-spacing: -.025em; text-align: right; white-space: nowrap; }
.si__x { grid-area: x; align-self: center; border: 0; background: none; color: var(--ink-3); font-size: 18px; cursor: pointer; padding: 4px; border-radius: var(--r); }
.si__x:hover { color: var(--acc); background: var(--surface-2); }

.smeta__opts { padding: 18px 22px; border-top: 1px solid var(--line); display: grid; gap: 16px; }
.smeta__sum { padding: 18px 22px; border-top: 1px solid var(--line); background: var(--surface-2); display: grid; gap: 10px; }
.sumline { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 15.5px; color: var(--ink-2); }
.sumline b { font-weight: 700; letter-spacing: -.025em; color: var(--ink); }
.sumline--total { font-size: 16px; color: var(--ink); font-weight: 600; padding-top: 11px; border-top: 1.5px solid var(--line-2); }
.sumline--total b { font-size: clamp(25px, 2vw, 33px); color: var(--acc); }
.smeta__act { padding: 20px 22px; display: grid; gap: 10px; border-top: 1px solid var(--line); }
.smeta__act .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.smeta__act .row .btn { padding-inline: 10px; font-size: 14.5px; gap: 8px; overflow: hidden; }
.smeta__act .row .btn .icon { font-size: 17px; }

.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none; align-items: center; gap: 14px;
  padding: 13px var(--gut) calc(13px + env(safe-area-inset-bottom));
  background: var(--navy); color: #fff;
  transform: translateY(105%); transition: transform .3s var(--ease);
}
.mbar[data-show="true"] { transform: none; }
.mbar__s { display: grid; line-height: 1.2; }
.mbar__s small { font-size: 13px; color: var(--on-navy-2); }
.mbar__s b { font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
.mbar .btn { margin-left: auto; }
@media (max-width: 1180px) { .mbar { display: flex; } }

/* ============ 14. Калькулятор ============ */
.calc-lay { display: grid; grid-template-columns: minmax(0,1fr) 430px; gap: clamp(20px, 2.2vw, 40px); align-items: start; }
@media (max-width: 1140px) { .calc-lay { grid-template-columns: 1fr; } }

.wiz { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; box-shadow: var(--shadow-1); }
.wiz__nav { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--surface-2); scrollbar-width: none; }
.wiz__nav::-webkit-scrollbar { display: none; }
.wiz__nav button {
  flex: 1 0 auto; min-width: 132px;
  padding: 17px 20px; border: 0; border-bottom: 3px solid transparent; background: none;
  color: var(--ink-3); font: 600 15.5px var(--ff); cursor: pointer; white-space: nowrap;
  display: flex; align-items: center; gap: 9px; justify-content: center;
  transition: color .16s, border-color .16s, background-color .16s;
}
.wiz__nav button:hover { color: var(--ink-2); }
.wiz__nav button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--acc); background: #fff; }
.wiz__nav .n { color: var(--acc); font-weight: 700; }
.wiz__pane { padding: clamp(24px, 2.4vw, 40px); display: grid; gap: clamp(20px, 2vw, 30px); }
.wiz__foot { display: flex; gap: 12px; justify-content: space-between; padding: 20px clamp(24px,2.4vw,40px); border-top: 1px solid var(--line); background: var(--surface-2); }

.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }

.res { position: sticky; top: calc(var(--nav-h) + 20px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; }
.res__top { padding: 28px 26px; background: var(--navy); color: #fff; }
.res__top small { font-size: 14px; color: var(--on-navy-2); }
.res__n { font-size: clamp(27px, 2.2vw, 36px); font-weight: 800; letter-spacing: -.038em; line-height: 1.12; margin-top: 6px; display: grid; gap: 2px; }
.res__n em { font-style: normal; color: var(--acc); }
.res__hi { font-size: .62em; color: var(--acc); font-weight: 700; }
.res__hint { margin-top: 14px; font-size: 14px; color: var(--on-navy-2); line-height: 1.45; }
.res__rows { max-height: min(40vh, 400px); overflow: auto; scrollbar-width: thin; }
.rr { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 14px 26px; font-size: 16px; border-bottom: 1px solid var(--line); }
.rr:last-child { border-bottom: 0; }
.rr span { color: var(--ink-2); }
.rr b { font-weight: 700; letter-spacing: -.025em; white-space: nowrap; }
.res__act { padding: 22px 26px; border-top: 1px solid var(--line); display: grid; gap: 10px; }

/* ============ 15. Таблицы ============ */
.tbl { width: 100%; border-collapse: collapse; font-size: 16.5px; }
.tbl th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; padding: 0 20px 14px; }
.tbl td { padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tr:hover td { background: var(--surface-2); }
.tbl .num { font-weight: 700; letter-spacing: -.025em; white-space: nowrap; text-align: right; }
.scroll-x { overflow-x: auto; scrollbar-width: thin; }

/* ============ 16. Вопросы ============ */
.faq { display: grid; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 25px 56px 25px 0; position: relative; font-size: clamp(18px, 1.45vw, 23px); font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 12px; top: 32px;
  width: 13px; height: 13px;
  border-right: 2.5px solid var(--ink-3); border-bottom: 2.5px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .25s var(--ease), border-color .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); border-color: var(--acc); }
.faq summary:hover { color: var(--acc); }
.faq .ans { padding: 0 56px 28px 0; color: var(--ink-2); font-size: 16.5px; max-width: 82ch; }

/* ============ 17. Контакты и подвал ============ */
.cnt-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(26px, 3vw, 60px); align-items: start; }
@media (max-width: 960px) { .cnt-grid { grid-template-columns: 1fr; } }

.cnt-list { display: grid; gap: 12px; }
.cnt-list > * {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px 24px; display: grid; grid-template-columns: 26px 1fr; gap: 16px;
  align-items: start; text-decoration: none;
  transition: border-color .18s;
}
.cnt-list .icon { font-size: 24px; color: var(--acc); margin-top: 3px; }
.cnt-list small { display: block; font-size: 14px; color: var(--ink-3); }
.cnt-list b { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.cnt-list a:hover { border-color: var(--acc); }
.cnt-list a:hover b { color: var(--acc); }

.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

.ftr { background: var(--navy); color: var(--on-navy-2); padding-block: clamp(48px, 5vw, 82px) 30px; }
.ftr a { color: #fff; text-decoration: none; }
.ftr a:hover { color: var(--acc); }
.ftr__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: clamp(28px, 3vw, 60px); }
@media (max-width: 960px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .ftr__grid { grid-template-columns: 1fr; } }
.ftr h4 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-navy-3); margin-bottom: 18px; font-weight: 600; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 16px; }
.ftr__bot { margin-top: clamp(34px, 4vw, 58px); padding-top: 24px; border-top: 1px solid var(--navy-line); display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; font-size: 14.5px; color: var(--on-navy-3); }
.ftr__disc { max-width: 90ch; font-size: 13.5px; line-height: 1.5; color: var(--on-navy-3); }

/* ============ 18. Полоса призыва ============ */
.cta-band { background: var(--acc); color: #fff; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 28px 48px; align-items: center; padding-block: clamp(38px, 4.2vw, 66px); }
@media (max-width: 900px) { .cta-band .wrap { grid-template-columns: 1fr; } }
.cta-band h2 { max-width: 24ch; }
.cta-band p { margin-top: 14px; max-width: 58ch; color: rgba(255,255,255,.92); font-size: 17px; }
.cta-band .btn { --btn-bg: #fff; --btn-fg: var(--acc-lo); --btn-bd: #fff; }
.cta-band .btn:hover { --btn-bg: #fff; --btn-bd: #fff; box-shadow: 0 8px 26px rgba(0,0,0,.22); }
.cta-band .btn--out { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.62); }
.cta-band .btn--out:hover { --btn-bg: transparent; --btn-bd: #fff; box-shadow: none; }

/* ============ 19. Cookie ============ */
.cookie {
  position: fixed; z-index: 110; left: var(--gut); right: var(--gut); bottom: 22px;
  max-width: 700px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 22px 26px;
  display: grid; grid-template-columns: 26px 1fr; gap: 10px 16px;
  transform: translateY(calc(100% + 44px)); transition: transform .4s var(--ease);
}
.cookie[data-show="true"] { transform: none; }
.cookie .icon { font-size: 24px; color: var(--acc); }
.cookie p { grid-column: 2; font-size: 14.5px; color: var(--ink-2); margin: 0; }
.cookie__act { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
@media (max-width: 1180px) { .cookie { bottom: 88px; } }
@media (prefers-reduced-motion: reduce) { .cookie { transition: none; } }

/* ============ 20. Появление при скролле ============ */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .rv.in { opacity: 1; transform: none; }
  .rv-s > * { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
  .rv-s.in > * { opacity: 1; transform: none; }
  .rv-s.in > *:nth-child(1) { transition-delay: 0ms; }
  .rv-s.in > *:nth-child(2) { transition-delay: 70ms; }
  .rv-s.in > *:nth-child(3) { transition-delay: 140ms; }
  .rv-s.in > *:nth-child(4) { transition-delay: 210ms; }
  .rv-s.in > *:nth-child(5) { transition-delay: 280ms; }
  .rv-s.in > *:nth-child(6) { transition-delay: 350ms; }
}

/* ============ 21. Мелочи ============ */
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 17px; border-radius: 100px;
  background: var(--acc-soft); color: var(--acc-lo);
  font-size: 14.5px; font-weight: 600;
}
.badge .icon { font-size: 18px; }
.sec--navy .badge, .hero .badge { background: rgba(255,79,53,.18); color: var(--acc); }

.crumbs { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; font-size: 14.5px; color: var(--ink-3); padding-top: 26px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--acc); }
.crumbs .icon { font-size: 13px; }

.pagehead { padding-block: clamp(28px, 3vw, 46px) clamp(34px, 3.6vw, 58px); border-bottom: 1px solid var(--line); }
.pagehead h1 { max-width: 22ch; margin-top: 18px; }
.pagehead .badge + h1 { margin-top: 22px; }
.pagehead .lede { margin-top: 22px; }

.pill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pill-list li { display: grid; grid-template-columns: 23px 1fr; gap: 14px; align-items: start; font-size: 16.5px; }
.pill-list .icon { font-size: 21px; color: var(--acc); margin-top: 2px; }

.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(28px, 3.4vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split img { width: 100%; border-radius: var(--r-lg); object-fit: cover; aspect-ratio: 3/2; }

.panel { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: clamp(24px, 2.4vw, 38px); }
.panel--acc { border-color: var(--acc); background: var(--acc-soft); }

.disc { display: grid; grid-template-columns: 40px 1fr; gap: 18px; align-items: start; }
.disc__ico { font-size: 30px; color: var(--acc); }
.disc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 44px); margin-top: 26px; }
.disc h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; }
.disc .pill-list li { font-size: 15.5px; }
@media (max-width: 900px) { .disc__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .disc { grid-template-columns: 1fr; gap: 12px; } }

/* ============ 22. Печать ============ */
/* На экране печатного документа нет, он собирается по кнопке. */
#printdoc { display: none; }

@media print {
  @page { size: A4 portrait; margin: 14mm 12mm; }

  html, body { background: #fff; color: #000; }
  body { font-size: 10.5pt; line-height: 1.4; overflow: visible; }
  .hdr, .ftr, .mbar, .cookie, .price-tools, .drawer, .crumbs, .skip, .lb { display: none !important; }

  /* печатаем только собранный документ */
  body.is-printing > *:not(#printdoc) { display: none !important; }
  body.is-printing #printdoc { display: block; }

  #printdoc {
    color: #0B1030;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .pd__top {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 14mm;
    padding-bottom: 4mm; border-bottom: 1.5pt solid #0B1030;
  }
  .pd__logo { width: 40mm; height: auto; }
  .pd__co { display: grid; gap: .6mm; text-align: right; font-size: 9pt; line-height: 1.4; }
  .pd__co b { font-size: 10pt; }
  .pd__h { font-size: 15pt; font-weight: 800; letter-spacing: -.02em; margin: 7mm 0 2mm; }
  .pd__h2 { font-size: 11.5pt; font-weight: 700; margin: 7mm 0 2.5mm; }
  .pd__meta { display: flex; gap: 9mm; font-size: 9pt; color: #4A5070; margin-bottom: 5mm; }
  .pd__note { font-size: 9pt; color: #4A5070; margin: 2.5mm 0 0; }

  .pd__tbl { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
  .pd__tbl thead { display: table-header-group; }
  .pd__tbl tr { break-inside: avoid; page-break-inside: avoid; }
  .pd__tbl th {
    text-align: left; font-size: 8pt; text-transform: uppercase; letter-spacing: .05em;
    color: #4A5070; font-weight: 600; padding: 0 2mm 1.8mm; border-bottom: 1pt solid #0B1030;
  }
  .pd__tbl td { padding: 1.7mm 2mm; border-bottom: .3pt solid #D5D8E5; vertical-align: top; }
  .pd__tbl .n, .pd__tbl th.n { text-align: right; white-space: nowrap; }
  .pd__tbl td:first-child { color: #7E85A4; width: 8mm; }

  .pd__grp td {
    background: #EFF0F6; font-weight: 700; font-size: 8.5pt;
    text-transform: uppercase; letter-spacing: .04em; color: #0B1030;
    padding-top: 2.4mm; padding-bottom: 2.4mm; width: auto;
  }
  .pd__sum td { border-bottom: 0; padding-top: 2mm; text-align: right; font-weight: 600; color: #4A5070; }
  .pd__sum td:first-child { width: auto; color: #4A5070; }
  .pd__total td { border-top: 1pt solid #0B1030; border-bottom: 0; padding-top: 2.5mm; text-align: right; font-size: 12.5pt; font-weight: 800; }
  .pd__total td:first-child { width: auto; color: #0B1030; }

  .pd__tbl--params td { border-bottom: .3pt solid #E2E4EF; }
  .pd__tbl--params td:first-child { width: 62%; color: #4A5070; }

  .pd__foot { margin-top: 7mm; font-size: 8.5pt; color: #4A5070; break-inside: avoid; }
  .pd__foot p { margin: 0 0 1.6mm; }
  .pd__sign { display: flex; gap: 18mm; margin-top: 12mm; font-size: 9pt; color: #7E85A4; }
  .pd__sign span { flex: 1; border-top: .5pt solid #7E85A4; padding-top: 1.6mm; }
}
