/* ============================================================
   Твой бренд — bento-сайт
   Палитра взята из логотипа: тёмный индиго → слива, сиреневый #A074F7
   ============================================================ */

:root {
  --bg: #e4dcf4;
  --ink: #0b0724;
  --ink-2: #171036;
  --plum: #3b0b48;
  --violet: #a074f7;
  --violet-hi: #b891ff;
  --violet-d: #6b3fd6;
  --lilac: #dccdff;
  --lilac-2: #efe8ff;
  --white: #fff;
  --text: #14102b;
  --muted: #6a6585;
  --glow: #ffe27a;

  --grad-ink: linear-gradient(145deg, #04021a 0%, #0e0627 52%, #3a0a45 135%);
  --r: 28px;
  --r-sm: 18px;
  --gap: 14px;
  --wrap: 1280px;
  --font: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(107, 63, 214, .16) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--violet-d); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.btn__short, .nav__call { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 16px; line-height: 1; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--violet { background: var(--violet); color: var(--ink); }
.btn--violet:hover { background: var(--violet-hi); box-shadow: 0 0 0 6px rgba(160, 116, 247, .25); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-2); box-shadow: 0 0 0 6px rgba(11, 7, 36, .12); }
.btn--ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.btn--ghost:hover { background: rgba(255, 255, 255, .18); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { box-shadow: 0 0 0 6px rgba(255, 255, 255, .35); }
.btn--sm { padding: 12px 20px; font-size: 14px; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 12px; z-index: 50; padding-inline: 12px; margin-top: 12px; }
.header__bar {
  max-width: calc(var(--wrap) - 40px); margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 0 0 1px rgba(11, 7, 36, .06), 0 10px 30px -12px rgba(40, 20, 100, .25);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.01em; }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand span { font-size: 18px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: #3b3560; transition: background .2s, color .2s; }
.nav a:hover { background: var(--lilac-2); color: var(--ink); }
.header__cta { display: flex; align-items: center; gap: 14px; }
.header__phone { font-weight: 600; font-size: 15px; white-space: nowrap; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--lilac-2); position: relative; }
.burger i, .burger i::before { content: ""; position: absolute; left: 13px; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease); }
.burger i { top: 21px; }
.burger i::before { left: 0; top: -6px; }
.burger[aria-expanded="true"] i { transform: rotate(45deg); }
.burger[aria-expanded="true"] i::before { transform: translateY(6px) rotate(-90deg); }

/* ---------- Bento: базовая карточка ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.card {
  position: relative; overflow: hidden; border-radius: var(--r);
  padding: 28px; background: var(--white);
  box-shadow: 0 0 0 1px rgba(76, 36, 170, .16), 0 22px 40px -28px rgba(50, 18, 130, .55);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  isolation: isolate;
}
.card--ink { background: var(--grad-ink); color: #fff; }
.card--violet { background: var(--violet); color: var(--ink); }
.card--lilac { background: var(--lilac); color: var(--ink); }
.card--lift:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(76, 36, 170, .22), 0 28px 50px -24px rgba(60, 20, 140, .55); }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.card:hover .card__img { transform: scale(1.05); }
.card--photo::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 4, 26, 0) 35%, rgba(8, 4, 26, .82) 100%);
}
.tag {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255, 255, 255, .14); color: inherit;
}
.card--violet .tag, .card--lilac .tag { background: rgba(11, 7, 36, .1); }
.card--white .tag { background: var(--lilac-2); color: var(--violet-d); }

/* ---------- Заголовки секций ---------- */
.section { padding-top: clamp(64px, 9vw, 112px); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--violet-d); margin-bottom: 14px; }
.h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.04; letter-spacing: -.03em; font-weight: 700; max-width: 16ch; }
.lead { color: var(--muted); max-width: 44ch; font-size: 17px; }

/* ---------- HERO ---------- */
.hero { padding-top: 22px; }
.hero__grid { grid-auto-rows: 168px; }
.hero__main {
  grid-column: 1 / 8; grid-row: 1 / 4;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(26px, 3.4vw, 46px);
}
.hero__main::before {
  content: ""; position: absolute; z-index: -1; right: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 116, 247, .55), rgba(160, 116, 247, 0) 65%);
  filter: blur(8px);
}
.hero__main::after {
  content: ""; position: absolute; z-index: -1; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.2px); background-size: 26px 26px;
  mask-image: linear-gradient(120deg, transparent 20%, #000 100%); -webkit-mask-image: linear-gradient(120deg, transparent 20%, #000 100%);
}
.hero h1 { font-size: clamp(2.4rem, 5.3vw, 4.7rem); line-height: .98; letter-spacing: -.04em; font-weight: 700; margin-top: 22px; }
.hero h1 em { font-style: normal; color: var(--violet); text-shadow: 0 0 36px rgba(160, 116, 247, .55); }
.hero__sub { margin-top: 20px; max-width: 46ch; color: rgba(255, 255, 255, .72); font-size: clamp(16px, 1.5vw, 19px); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__photo { grid-column: 8 / 13; grid-row: 1 / 3; padding: 0; color: #fff; }
.hero__photo figcaption { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.hero__photo strong { font-size: 20px; line-height: 1.15; letter-spacing: -.02em; max-width: 12ch; }
.round-arrow { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: transform .3s var(--ease), background .3s; }
.round-arrow svg { width: 20px; height: 20px; }
.card:hover .round-arrow { transform: rotate(-45deg); background: var(--violet); }
.stat { display: flex; flex-direction: column; justify-content: space-between; }
.stat b { font-size: clamp(2.6rem, 4.6vw, 4rem); line-height: .9; letter-spacing: -.05em; font-weight: 700; }
.stat > span { font-size: 15px; line-height: 1.3; max-width: 16ch; }
.stat b span { font-size: inherit; max-width: none; }
.hero__s1 { grid-column: 8 / 10; grid-row: 3; }
.hero__s2 { grid-column: 10 / 13; grid-row: 3; }
.stat b { white-space: nowrap; }
.hero__row { grid-column: span 3; grid-row: 4; padding: 22px 24px; display: flex; flex-direction: column; justify-content: space-between; }
.hero__row h3 { font-size: 19px; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
.hero__row p { font-size: 14px; line-height: 1.35; opacity: .75; margin-top: 8px; }
.ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--lilac-2); color: var(--violet-d); }
.ico svg { width: 20px; height: 20px; }
.card--ink .ico { background: rgba(255, 255, 255, .12); color: var(--violet-hi); }
.card--violet .ico, .card--lilac .ico { background: rgba(11, 7, 36, .1); color: var(--ink); }

/* ---------- Услуги ---------- */
.svc-grid { grid-auto-rows: 220px; }
.svc { color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; cursor: pointer; }
.svc__top { position: absolute; top: 20px; left: 20px; right: 20px; display: flex; justify-content: space-between; align-items: start; }
.svc h3 { font-size: clamp(1.15rem, 1.7vw, 1.5rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 650; max-width: 16ch; }
.svc p { margin-top: 8px; font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, .78); max-width: 34ch; }
.svc--big h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.03em; }
.svc--big p { font-size: 16px; }
.svc--solid { background: var(--violet); color: var(--ink); }
.svc--solid p { color: rgba(11, 7, 36, .75); }
.s-letters { grid-column: span 6; grid-row: span 2; }
.s-boxes, .s-light, .s-console, .s-neon { grid-column: span 3; }
.s-print, .s-stela, .s-mill { grid-column: span 4; }
.s-int, .s-custom { grid-column: span 6; }
.svc .round-arrow { width: 40px; height: 40px; }
.svc .round-arrow svg { width: 17px; height: 17px; }
.svc__price { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* ---------- Портфолио ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { padding: 11px 18px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .7); font-weight: 550; font-size: 15px; color: #3b3560; transition: background .2s, color .2s, transform .2s; }
.chip:hover { background: #fff; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.chip small { opacity: .55; margin-left: 4px; font-weight: 500; }
.gallery { columns: 4; column-gap: var(--gap); }
.shot { break-inside: avoid; margin: 0 0 var(--gap); border-radius: 22px; overflow: hidden; position: relative; background: var(--lilac); cursor: zoom-in; }
.shot img { width: 100%; height: auto; transition: transform .7s var(--ease), opacity .4s; }
.shot:hover img { transform: scale(1.05); }
.shot figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 14px 12px; font-size: 13px; line-height: 1.3; color: #fff; background: linear-gradient(180deg, transparent, rgba(8, 4, 26, .85)); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); }
.shot:hover figcaption, .shot:focus-within figcaption { opacity: 1; transform: none; }
.shot button { position: absolute; inset: 0; width: 100%; background: transparent; border: 0; padding: 0; }
.shot.is-hidden { display: none; }
/* свёрнутая галерея: ~2,5 ряда, снизу размытие и кнопка */
@property --collapsed { syntax: "<length>"; inherits: true; initial-value: 1000px; }
.gallery-wrap { --ext: 90px; position: relative; }
.gallery-more { display: none; position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; box-shadow: 0 12px 30px -10px rgba(11, 7, 36, .5); transition: opacity .3s, transform .25s var(--ease), background .25s, box-shadow .25s; }
.gallery-more:hover svg { transform: rotate(90deg) translateX(3px); }
.gallery-more:active { transform: translateX(-50%) scale(.97); }

/* свёрнуто: обрезаем по высоте (в стороны не режем — туман выходит за фото),
   сами фото растворяются в фон, поверх — двухслойное размытие без швов */
.gallery-wrap.is-collapsed {
  max-height: var(--collapsed);
  clip-path: inset(0 calc(var(--ext) * -1) 0 calc(var(--ext) * -1));
  overflow-x: visible; overflow-y: clip;     /* реально обрезает, а не только прячет — страница не растягивается */
}
.gallery-wrap.is-collapsed .gallery {
  -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--collapsed) - 260px), rgba(0, 0, 0, .55) calc(var(--collapsed) - 130px), transparent var(--collapsed));
          mask-image: linear-gradient(180deg, #000 calc(var(--collapsed) - 260px), rgba(0, 0, 0, .55) calc(var(--collapsed) - 130px), transparent var(--collapsed));
}
.gallery-wrap.is-collapsed .gallery-more { display: inline-flex; }
.gallery-wrap.is-opening .gallery-more { opacity: 0; pointer-events: none; }

.gallery-wrap::before, .gallery-wrap::after {
  content: ""; position: absolute; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease);
  left: calc(var(--ext) * -1); right: calc(var(--ext) * -1); bottom: 0;
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
/* мягкое размытие — шире */
.gallery-wrap::before {
  height: 300px;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 72%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 var(--ext), #000 calc(100% - var(--ext)), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 40%, #000 72%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 var(--ext), #000 calc(100% - var(--ext)), transparent 100%);
}
/* сильное размытие — ближе к кнопке */
.gallery-wrap::after {
  height: 190px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 55%, #000 78%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 var(--ext), #000 calc(100% - var(--ext)), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 55%, #000 78%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 var(--ext), #000 calc(100% - var(--ext)), transparent 100%);
}
.gallery-wrap.is-collapsed:not(.is-opening)::before, .gallery-wrap.is-collapsed:not(.is-opening)::after { opacity: 1; }

/* лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(6, 3, 20, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 24px; }
.lightbox.is-open { display: grid; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.lightbox img { max-height: calc(100vh - 150px); width: auto; max-width: 100%; border-radius: 18px; }
.lightbox figcaption { color: rgba(255, 255, 255, .8); text-align: center; font-size: 15px; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: var(--violet); color: var(--ink); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* ---------- Преимущества ---------- */
.why-grid { grid-auto-rows: minmax(190px, auto); }
.why { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.why h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 650; }
.why p { margin-top: 10px; font-size: 15px; line-height: 1.45; opacity: .78; }
.w-own { grid-column: span 6; grid-row: span 2; padding: clamp(26px, 3vw, 40px); }
.w-own h3 { font-size: clamp(1.9rem, 3.3vw, 3rem); letter-spacing: -.035em; line-height: 1; }
.w-own p { font-size: 17px; max-width: 40ch; }
.w-own .bignum {
  position: absolute; z-index: -1; right: 6cqw; top: 50%; transform: translateY(-50%);
  font-size: min(26rem, 50cqw); line-height: .78; letter-spacing: -.09em; padding-right: .1em; font-weight: 700; white-space: nowrap;
  background: linear-gradient(180deg, var(--violet-hi) 0%, rgba(160, 116, 247, .55) 45%, rgba(160, 116, 247, .12) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 38px rgba(160, 116, 247, .35));
  user-select: none; pointer-events: none;
}
.w-own .bignum small { display: block; font-size: .09em; letter-spacing: 0; line-height: 1; margin: .35em 0 0 .6em; font-weight: 600; text-transform: uppercase; -webkit-text-fill-color: rgba(255, 255, 255, .6); color: rgba(255, 255, 255, .6); }
.w-own h3, .w-own p { text-shadow: 0 2px 18px rgba(4, 2, 26, .65); }
.w-own { container-type: inline-size; }
.w-a, .w-b { grid-column: span 3; }
.w-c { grid-column: span 6; }
.w-d, .w-e, .w-f { grid-column: span 4; }
.mats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.mats span { padding: 6px 11px; border-radius: 999px; background: rgba(11, 7, 36, .08); font-size: 13px; font-weight: 550; }

/* ---------- Дилерам ---------- */
.dealers { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--gap); }
.dealers__main { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 28px; justify-content: space-between; }
.dealers__main h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin-top: 18px; max-width: 14ch; }
.dealers__main p { color: rgba(255, 255, 255, .72); max-width: 44ch; margin-top: 16px; font-size: 17px; }
.dealers__list { display: grid; gap: var(--gap); }
.dealer { display: flex; gap: 18px; align-items: center; padding: 22px 26px; }
.dealer .ico { flex: none; width: 52px; height: 52px; border-radius: 16px; }
.dealer .ico svg { width: 26px; height: 26px; }
.dealer h3 { font-size: 20px; letter-spacing: -.02em; font-weight: 650; line-height: 1.15; }
.dealer p { font-size: 14.5px; line-height: 1.4; opacity: .75; margin-top: 4px; }

/* ---------- Как работаем ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); counter-reset: s; }
.step { padding: 24px; min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; }
.step::before { counter-increment: s; content: "0" counter(s); font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -.05em; color: var(--violet); }
.step h3 { font-size: 19px; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
.step p { font-size: 14.5px; line-height: 1.4; opacity: .75; margin-top: 8px; }
.step--ink::before { color: var(--violet-hi); }
.step--violet::before { color: var(--ink); opacity: .85; }

/* ---------- Заявка ---------- */
.request { grid-template-columns: repeat(12, 1fr); }
.req-form { grid-column: span 7; padding: clamp(26px, 3.4vw, 46px); }
.req-form h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; max-width: 14ch; }
.req-form > p { margin-top: 12px; max-width: 44ch; color: rgba(11, 7, 36, .75); }
.form { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 18px; border-radius: 16px; border: 2px solid transparent;
  background: rgba(255, 255, 255, .72); color: var(--ink); transition: border-color .2s, background .2s;
}
.field textarea { min-height: 104px; resize: none; }

/* свой выпадающий список */
.dd-native { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; opacity: 0; pointer-events: none; }
.dd { position: relative; }
.dd__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
  padding: 15px 18px; border-radius: 16px; border: 2px solid transparent; background: rgba(255, 255, 255, .72); color: var(--ink);
  transition: border-color .2s, background .2s;
}
.dd__btn svg { width: 20px; height: 20px; flex: none; transition: transform .35s var(--ease); }
.dd.is-open .dd__btn { background: #fff; border-color: var(--ink); }
.dd.is-open .dd__btn svg { transform: rotate(180deg); }
.dd__list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  max-height: 300px; overflow-y: auto; border-radius: 20px; background: #fff; color: var(--ink);
  box-shadow: 0 0 0 1px rgba(11, 7, 36, .06), 0 24px 50px -18px rgba(40, 10, 110, .55);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top center;
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.dd--up .dd__list { top: auto; bottom: calc(100% + 8px); transform-origin: bottom center; transform: translateY(8px) scale(.98); }
.dd.is-open .dd__list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dd__list li { padding: 12px 14px; border-radius: 13px; font-size: 15.5px; line-height: 1.25; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; transition: background .15s; }
.dd__list li.is-active { background: var(--lilac-2); }
.dd__list li[aria-selected="true"] { background: var(--violet); font-weight: 600; }
.dd__list li[aria-selected="true"]::after { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; -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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%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' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat; }
.dd__list::-webkit-scrollbar { width: 8px; }
.dd__list::-webkit-scrollbar-thumb { background: var(--lilac); border-radius: 8px; border: 2px solid #fff; }

/* без системных деталей */
::selection { background: var(--violet); color: var(--ink); }
html { scrollbar-color: var(--violet) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--violet); border-radius: 10px; border: 2px solid var(--bg); }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: rgba(11, 7, 36, .45); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; background: #fff; border-color: var(--ink); }
.field.has-error input { border-color: #c0143c; background: #fff; }
.field .err { display: none; font-size: 13px; color: #8f0e2d; font-weight: 550; }
.field.has-error .err { display: block; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.form__note { font-size: 13.5px; line-height: 1.4; max-width: 38ch; color: rgba(11, 7, 36, .62); }
.hp { position: absolute; left: -9999px; }
.sent { display: none; margin-top: 26px; padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, .6); }
.sent.is-on { display: block; }
.sent h3 { font-size: 22px; letter-spacing: -.02em; }
.sent p { margin-top: 6px; font-size: 15px; }
.sent__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.form.is-sent { display: none; }

.req-side { grid-column: span 5; display: grid; gap: var(--gap); grid-template-columns: 1fr 1fr; align-content: start; }
.contact { padding: 22px; display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; gap: 20px; }
.contact--wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.contact small { font-size: 13px; opacity: .65; display: block; }
.contact strong { font-size: 19px; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
.contact--wide strong { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.contact .round-arrow { width: 40px; height: 40px; }
.contact .round-arrow svg { width: 18px; height: 18px; }
.contact__row { display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.contact--geo { grid-column: 1 / -1; min-height: 0; }
.contact--geo p { font-size: 15px; line-height: 1.4; opacity: .8; margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.faq details { background: #fff; border-radius: 22px; padding: 0; overflow: hidden; box-shadow: 0 0 0 1px rgba(76, 36, 170, .16), 0 18px 34px -26px rgba(50, 18, 130, .5); transition: background .35s, box-shadow .35s; }
.faq details:hover { box-shadow: 0 0 0 1px rgba(76, 36, 170, .24), 0 18px 38px -20px rgba(60, 20, 140, .5); }
.faq details[open] p { animation: faqIn .5s var(--ease) both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.faq details[open] { background: var(--lilac-2); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--lilac-2); color: var(--violet-d); display: grid; place-items: center; font-size: 22px; font-weight: 500; transition: transform .3s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--violet); color: var(--ink); }
.faq details p { padding: 0 26px 24px; color: #4a4468; font-size: 15.5px; line-height: 1.55; max-width: 60ch; }

/* ---------- Футер ---------- */
.footer { margin-top: clamp(64px, 9vw, 112px); padding-bottom: 28px; }
.footer__card { padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer__card .brand img { width: 56px; height: 56px; }
.footer__card .brand span { font-size: 24px; }
.footer__card p { color: rgba(255, 255, 255, .62); font-size: 14.5px; margin-top: 14px; max-width: 34ch; }
.footer h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--violet-hi); font-weight: 600; }
.footer li + li { margin-top: 8px; }
.footer a:hover { color: var(--violet-hi); }
.footer__copy { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding-inline: 8px; font-size: 13px; color: var(--muted); }

/* плавающая кнопка */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .3s, transform .3s var(--ease); box-shadow: 0 14px 30px -10px rgba(60, 20, 140, .6); }
.fab.is-on { opacity: 1; pointer-events: auto; transform: none; }

/* появление */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .header__phone { display: none; }
  .gallery { columns: 3; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .header__bar { gap: 10px; }
  .burger { display: block; order: 4; margin-left: 0; }
  .header__cta { margin-left: auto; }
  .btn__long { display: none; }
  .btn__short { display: inline; }
  .nav__call { display: flex !important; justify-content: center; margin-top: 6px; background: var(--ink); color: #fff !important; font-weight: 600; }
  .nav__call::before { content: "Позвонить: "; opacity: .65; margin-right: .4em; font-weight: 500; }
  .fab { display: none; }
  .nav { display: none; position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; flex-direction: column; margin: 0; padding: 10px; border-radius: 26px; background: rgba(255, 255, 255, .96); box-shadow: 0 20px 50px -16px rgba(40, 20, 100, .4); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 16px; font-size: 17px; }
  .header__cta { order: 3; }
  .header__bar { position: relative; }

  .hero__grid { grid-auto-rows: auto; }
  .hero__main { grid-column: 1 / -1; grid-row: auto; min-height: 460px; }
  .hero__photo { grid-column: 1 / -1; grid-row: auto; min-height: 340px; }
  .hero__s1 { grid-column: span 7; grid-row: auto; min-height: 150px; }
  .hero__s2 { grid-column: span 5; grid-row: auto; }
  .hero__row { grid-column: span 6; grid-row: auto; min-height: 170px; }

  .svc-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 230px; }
  .svc-grid > * { grid-column: span 1 !important; grid-row: auto !important; }
  .svc-grid > .s-letters, .svc-grid > .s-int, .svc-grid > .s-custom, .svc-grid > .s-mill { grid-column: 1 / -1 !important; }
  .svc-grid > .s-letters { grid-row: span 2 !important; }

  .w-own { grid-column: 1 / -1; grid-row: auto; min-height: 340px; }
  .w-own .bignum { font-size: min(14rem, 50cqw); }
  .w-a, .w-b, .w-d, .w-e { grid-column: span 6; }
  .w-c, .w-f { grid-column: 1 / -1; }
  .dealers { grid-template-columns: 1fr; }
  .request .req-form, .request .req-side { grid-column: 1 / -1; }
  .faq { grid-template-columns: 1fr; }
  .footer__card { grid-template-columns: 1fr 1fr; }
  .footer__card > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --r: 24px; --gap: 10px; }
  .gallery-wrap { --ext: 14px; }
  .w-own { min-height: 0; gap: 0; }
  .why.w-own { min-height: 340px; justify-content: space-between; }
  .w-own > div { margin-top: 0; }
  .w-own .bignum {
    top: 8px; right: 2cqw; font-size: 66cqw; line-height: .9; letter-spacing: -.08em; padding-right: .1em;
    transform: scale(1.3, 1.28); transform-origin: 100% 0;
    background: linear-gradient(180deg, var(--violet-hi) 0%, rgba(160, 116, 247, .6) 50%, rgba(160, 116, 247, .1) 100%);
    -webkit-background-clip: text; background-clip: text;
  }
  .wrap { padding-inline: 14px; }
  .header { padding-inline: 8px; }
  .header__bar { padding: 6px 6px 6px 8px; }
  .brand img { width: 38px; height: 38px; }
  .brand span { font-size: 16px; }
  .header__cta .btn { padding: 12px 18px; font-size: 14px; }
  .burger { width: 42px; height: 42px; }
  .field label { font-size: 14px; }
  .chip { min-height: 44px; }
  .footer a[data-phone] { white-space: nowrap; }
  .card { padding: 22px; }
  .gallery { columns: 2; column-gap: 10px; }
  .shot { margin-bottom: 10px; border-radius: 16px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { min-height: 200px; padding: 20px; }
  .step:first-child { grid-column: 1 / -1; }
  .hero__row { grid-column: 1 / -1; min-height: 0; gap: 14px; }
  .hero__s1, .hero__s2 { grid-column: span 6; }
  .hero__s2 { padding-inline: 22px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .svc-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .svc-grid > * { grid-column: 1 / -1 !important; }
  .svc-grid > .s-letters { grid-row: span 2 !important; }
  .w-a, .w-b, .w-c, .w-d, .w-e, .w-f { grid-column: 1 / -1; }
  .form { grid-template-columns: 1fr; }
  .req-side { grid-template-columns: 1fr; }
  .footer__card { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .lb-prev { left: calc(50% - 62px); }
  .lb-next { right: calc(50% - 62px); }
  .lightbox img { max-height: calc(100vh - 220px); }
  .brand span { font-size: 16px; }
}
/* планшет: 5 этапов без пустой ячейки (3 + 2) */
@media (min-width: 641px) and (max-width: 1100px) {
  .steps { grid-template-columns: repeat(6, 1fr); }
  .step { grid-column: span 2; }
  .step:nth-child(n+4) { grid-column: span 3; }
}

/* ---------- Мобильная версия: компактнее и короче ---------- */
@media (max-width: 640px) {
  .section { padding-top: 46px; }
  .section__head { margin-bottom: 16px; }
  .section__head .lead { display: none; }
  .eyebrow { margin-bottom: 8px; font-size: 12px; }
  .h2 { font-size: 1.85rem; max-width: none; }
  .card { padding: 18px; }
  .tag { font-size: 10.5px; padding: 5px 9px; }

  /* hero */
  .hero { padding-top: 10px; }
  .hero__main { min-height: 0; padding: 24px 20px; gap: 20px; }
  .hero h1 { font-size: 2.2rem; margin-top: 16px; }
  .hero__sub { font-size: 15px; margin-top: 12px; }
  .hero__photo { min-height: 250px; }
  .hero__photo strong { font-size: 17px; }
  .hero__s1, .hero__s2 { min-height: 118px; padding: 16px; }
  .stat b { font-size: 2.6rem; }
  .stat > span { font-size: 13px; }
  .hero__row { grid-column: span 6; min-height: 0; padding: 14px; gap: 10px; }
  .hero__row h3 { font-size: 14.5px; }
  .hero__row p { display: none; }

  /* услуги: две колонки, без лишних описаний */
  .svc-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 168px; }
  .svc-grid > * { grid-column: span 1 !important; grid-row: auto !important; }
  .svc-grid > .s-letters, .svc-grid > .s-int, .svc-grid > .s-custom, .svc-grid > .s-mill { grid-column: 1 / -1 !important; }
  .svc { padding: 14px; }
  .svc h3 { font-size: 1rem; max-width: none; }
  .svc--big h3 { font-size: 1.45rem; }
  .svc p { display: none; }
  .svc--big p, .s-int p, .s-custom p { display: block; font-size: 13.5px; margin-top: 4px; }
  .svc__top { top: 12px; left: 12px; right: 12px; }
  .svc .round-arrow { width: 32px; height: 32px; }
  .svc .round-arrow svg { width: 15px; height: 15px; }
  .svc__price { font-size: 11px; padding: 5px 9px; }

  /* портфолио: фильтры лентой, меньше высота */
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -14px; padding: 0 14px 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; padding: 9px 14px; font-size: 14px; }

  /* почему мы: плитки по две */
  .why-grid { grid-auto-rows: auto; }
  .w-a, .w-b, .w-d, .w-e { grid-column: span 6; }
  .w-c, .w-f { grid-column: 1 / -1; }
  .why { gap: 12px; justify-content: flex-start; }
  /* порядок на телефоне: рядом ставим карточки похожей высоты, без провалов */
  .w-own { order: 0; } .w-c { order: 1; } .w-a { order: 2; } .w-e { order: 3; } .w-b { order: 4; } .w-d { order: 5; } .w-f { order: 6; }
  .step { min-height: 0; justify-content: flex-start; gap: 12px; }
  .hero__row { justify-content: flex-start; }
  .contact { min-height: 0; justify-content: flex-start; }
  .contact .ico { margin-bottom: 4px; }
  .why h3 { font-size: 1rem; }
  .why p { font-size: 13.5px; margin-top: 6px; }
  .w-own h3 { font-size: 1.65rem; }
  .w-own p { font-size: 14.5px; }
  .w-c p, .w-f p { font-size: 13.5px; }

  /* дилерам */
  .dealers__main { padding: 22px; gap: 20px; }
  .dealers__main h2 { font-size: 1.85rem; margin-top: 14px; }
  .dealers__main p { font-size: 15px; margin-top: 10px; }
  .dealers__list { grid-template-columns: 1fr 1fr; }
  .dealer { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .dealer .ico { width: 38px; height: 38px; border-radius: 12px; }
  .dealer .ico svg { width: 19px; height: 19px; }
  .dealer h3 { font-size: 15px; }
  .dealer p { font-size: 13.5px; margin-top: 3px; }

  /* этапы */
  .step { min-height: 0; padding: 16px; }
  .step::before { font-size: 36px; }
  .step h3 { font-size: 15.5px; }
  .step p { font-size: 13.5px; margin-top: 5px; }

  /* заявка и контакты */
  .req-form { padding: 22px 18px; }
  .req-form h2 { font-size: 1.9rem; }
  .form { margin-top: 18px; }
  .req-side { grid-template-columns: 1fr 1fr; }
  .contact { min-height: 0; padding: 14px; gap: 10px; }
  .contact strong { font-size: 16px; }
  .contact--geo p { font-size: 13px; }

  /* вопросы и футер */
  .faq summary { padding: 16px 18px; font-size: 15.5px; }
  .faq details p { padding: 0 18px 18px; font-size: 14.5px; }
  .footer { margin-top: 40px; }
  .footer__card { grid-template-columns: 1fr 1fr; padding: 22px; gap: 22px; }
  .footer__card > :first-child { grid-column: 1 / -1; }
}

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


/* ============================================================
   Многостраничная структура: меню, хлебные крошки, страницы услуг
   ============================================================ */
figure.card { margin: 0; }
.works-more { display: flex; justify-content: center; margin-top: 22px; }
.works-more:empty { display: none; }
.btn--ghost-ink { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(11, 7, 36, .25); }
.btn--ghost-ink:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.linklist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip--link { display: inline-flex; align-items: center; text-decoration: none; }
.chip--link:hover { background: var(--ink); color: #fff; }

/* ---------- меню «Услуги» ---------- */
.header__bar { position: relative; }
.nav__item { position: static; }
.nav__btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; border-radius: 999px; background: transparent; font-weight: 500; font-size: 15px; color: #3b3560; transition: background .2s, color .2s; }
.nav__btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.nav__btn:hover, .nav__item.is-open .nav__btn { background: var(--lilac-2); color: var(--ink); }
.nav__item.is-open .nav__btn svg { transform: rotate(180deg); }
.nav a.is-active { background: var(--lilac-2); color: var(--ink); }
.mega {
  position: absolute; z-index: 60; top: calc(100% + 10px); left: 0; right: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 28px; padding: 22px 28px 20px;
  border-radius: 26px; background: #fff;
  box-shadow: 0 0 0 1px rgba(76, 36, 170, .12), 0 30px 60px -24px rgba(40, 10, 110, .5);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) and (min-width: 901px) {
  .nav__item:hover .mega, .nav__item:focus-within .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__item:hover .nav__btn { background: var(--lilac-2); color: var(--ink); }
  .nav__item:hover .nav__btn svg { transform: rotate(180deg); }
}
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega__head { display: block; margin: 0 0 6px; font-weight: 650; font-size: 17px; letter-spacing: -.01em; color: var(--ink); }
a.mega__head:hover { color: var(--violet-d); }
.nav .mega a:not(.mega__head) { display: block; padding: 7px 10px; margin-left: -10px; border-radius: 10px; font-size: 15px; font-weight: 450; color: #3b3560; }
.nav .mega a:not(.mega__head):hover { background: var(--lilac-2); color: var(--ink); }

/* ---------- хлебные крошки ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 6px 16px; font-size: 14px; color: var(--muted); }
.crumbs a { color: #4a4468; transition: color .2s; }
.crumbs a:hover { color: var(--violet-d); }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs span { color: var(--text); font-weight: 500; }

/* ---------- шапка страницы ---------- */
.ph { padding-top: 14px; }
.ph__grid { grid-auto-rows: auto; }
.ph__main {
  grid-column: 1 / 8; grid-row: 1 / 3; min-height: 430px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: clamp(26px, 3.4vw, 46px);
}
.ph__main::before { content: ""; position: absolute; z-index: -1; right: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(160, 116, 247, .5), rgba(160, 116, 247, 0) 65%); filter: blur(8px); }
.ph__main::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1.2px, transparent 1.2px); background-size: 26px 26px; -webkit-mask-image: linear-gradient(120deg, transparent 20%, #000 100%); mask-image: linear-gradient(120deg, transparent 20%, #000 100%); }
.ph__main h1 { font-size: clamp(2.1rem, 4.4vw, 3.8rem); line-height: 1; letter-spacing: -.035em; font-weight: 700; margin-top: 20px; text-wrap: balance; }
.ph__lead { margin-top: 16px; max-width: 48ch; color: rgba(255, 255, 255, .74); font-size: clamp(16px, 1.5vw, 19px); }
.ph__photo { grid-column: 8 / 13; grid-row: 1 / 3; padding: 0; min-height: 360px; }
.ph__grid:not(.ph__grid--facts) .ph__main, .ph__grid:not(.ph__grid--facts) .ph__photo { grid-row: 1 / 2; }
.ph__fact { grid-column: span 4; display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.ph__fact h3 { font-size: 18px; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
.ph__fact p { margin-top: 4px; font-size: 14px; line-height: 1.35; opacity: .75; }
.ph__fact .ico { flex: none; width: 44px; height: 44px; border-radius: 14px; }
.ph__fact .ico svg { width: 22px; height: 22px; }

/* ---------- варианты ---------- */
.vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--gap); }
.var { display: flex; flex-direction: column; gap: 10px; min-height: 210px; }
.var__n { font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -.05em; color: var(--violet); }
.var h3 { font-size: 19px; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
.var p { font-size: 15px; line-height: 1.45; color: #4a4468; }

/* ---------- плитки раздела ---------- */
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 290px; gap: var(--gap); }
.hub-grid > .hub-card:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.hub-card { display: flex; flex-direction: column; justify-content: flex-end; color: #fff; padding: 24px; }
.hub-card__top { position: absolute; top: 18px; right: 18px; }
.hub-card h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 650; }
.hub-card p { margin-top: 8px; font-size: 14.5px; line-height: 1.35; color: rgba(255, 255, 255, .8); max-width: 34ch; }

/* ---------- калькулятор ---------- */
.calc { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--gap); }
.calc__form { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; }
.calc__form h3 { font-size: 22px; letter-spacing: -.02em; font-weight: 650; }
.cf label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: #3b3560; }
.cf__row { display: flex; align-items: center; gap: 16px; }
.cf__num { width: 104px; flex: none; padding: 12px 14px; border-radius: 14px; border: 2px solid transparent; background: var(--lilac-2); font-weight: 600; font-size: 16px; text-align: center; -moz-appearance: textfield; appearance: textfield; transition: border-color .2s, background .2s; }
.cf__num::-webkit-outer-spin-button, .cf__num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cf__num:focus { outline: 0; background: #fff; border-color: var(--ink); }
.cf input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; height: 28px; background: transparent; cursor: pointer; }
.cf input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--violet) var(--p, 30%), var(--lilac) var(--p, 30%)); }
.cf input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--lilac); }
.cf input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--violet); }
.cf input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--ink); border: 4px solid var(--violet); box-shadow: 0 4px 12px -2px rgba(40, 10, 110, .5); transition: transform .2s var(--ease); }
.cf input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 4px solid var(--violet); }
.cf input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.calc__note { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.calc__result { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px; padding: clamp(22px, 3vw, 36px); }
.calc__price { font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.02; font-weight: 700; letter-spacing: -.04em; margin-top: 10px; background: linear-gradient(180deg, #fff 30%, var(--violet-hi)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.calc__sub { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .72); max-width: 36ch; }

/* ---------- статья ---------- */
.art { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--gap); align-items: start; }
.prose { padding: clamp(24px, 3.6vw, 52px); }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2.05rem); line-height: 1.12; letter-spacing: -.028em; font-weight: 700; margin: 1.7em 0 .55em; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; font-size: 17px; line-height: 1.66; color: #2d2850; max-width: 70ch; }
.prose ul { list-style: none; margin: 0 0 1.1em; padding: 0; max-width: 70ch; }
.prose li { position: relative; padding: 0 0 0 26px; margin: 0 0 .65em; font-size: 17px; line-height: 1.55; color: #2d2850; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px var(--lilac-2); }
.prose a { color: var(--violet-d); font-weight: 550; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.art__side { position: sticky; top: 96px; display: grid; gap: var(--gap); }
.art__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.art__cta h3 { font-size: 24px; line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }
.art__cta p { font-size: 15px; line-height: 1.45; opacity: .8; }
.art__facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.art__facts li { font-size: 15px; line-height: 1.35; color: #4a4468; padding-left: 18px; position: relative; }
.art__facts li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.art__facts strong { color: var(--ink); }

/* ---------- смотрите также ---------- */
.rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: var(--gap); }
.rel { display: flex; flex-direction: column; justify-content: flex-end; color: #fff; padding: 20px; }
.rel .round-arrow { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; }
.rel .round-arrow svg { width: 17px; height: 17px; }
.rel h3 { font-size: 19px; line-height: 1.12; letter-spacing: -.02em; font-weight: 650; }
.rel p { margin-top: 6px; font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, .78); }

/* ---------- футер на 4 колонки ---------- */
.footer__card { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.footer__card h4 a:hover { color: #fff; }
.footer__h4b { margin-top: 20px !important; }
.gallery--c3 { columns: 3; }

@media (max-width: 1100px) {
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .art { grid-template-columns: 1fr; }
  .art__side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .ph__main { grid-column: 1 / -1; grid-row: auto; min-height: 340px; }
  .ph__photo { grid-column: 1 / -1; grid-row: auto; min-height: 300px; }
  .ph__fact { grid-column: span 12; }
  .calc { grid-template-columns: 1fr; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-grid > .hub-card:last-child:nth-child(3n+1) { grid-column: auto; }
  .hub-grid > .hub-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .footer__card { grid-template-columns: 1fr 1fr; }
  .footer__card > :first-child { grid-column: 1 / -1; }
  /* мобильное меню: «Услуги» раскрывается внутри панели */
  .nav { max-height: calc(100vh - 100px); overflow-y: auto; background: #fff; }
  .nav__item { display: block; }
  .nav__btn { width: 100%; justify-content: space-between; padding: 14px 16px; font-size: 17px; border-radius: 999px; }
  .mega { position: static; display: none; grid-template-columns: 1fr; gap: 4px; padding: 4px 8px 10px; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .mega::before { display: none; }
  .nav__item.is-open .mega { display: grid; }
  .nav .mega a:not(.mega__head) { padding: 11px 12px; font-size: 16px; }
  .mega__head { margin-top: 8px; padding-left: 2px; }
}
@media (max-width: 640px) {
  .crumbs { margin: 4px 4px 12px; font-size: 13px; }
  .ph { padding-top: 8px; }
  .ph__main { min-height: 0; padding: 24px 20px; gap: 22px; }
  .ph__main h1 { font-size: 2rem; margin-top: 16px; }
  .ph__lead { font-size: 15px; margin-top: 12px; }
  .ph__photo { min-height: 240px; }
  .ph__fact { padding: 14px 16px; gap: 12px; }
  .ph__fact .ico { width: 38px; height: 38px; }
  .ph__fact h3 { font-size: 16px; }
  .ph__fact p { font-size: 13.5px; }
  .vgrid { grid-template-columns: 1fr 1fr; }
  .var { min-height: 0; padding: 16px; gap: 8px; }
  .var__n { font-size: 32px; }
  .var h3 { font-size: 16px; }
  .var p { font-size: 13.5px; }
  .hub-grid { grid-auto-rows: 190px; }
  .hub-card { padding: 16px; }
  .hub-card h3 { font-size: 1.05rem; }
  .hub-card p { display: none; }
  .hub-card__top { top: 12px; right: 12px; }
  .hub-card .round-arrow { width: 32px; height: 32px; }
  .rel-grid { grid-auto-rows: 180px; }
  .rel { padding: 14px; }
  .rel h3 { font-size: 16px; }
  .rel p { display: none; }
  .rel .round-arrow { top: 12px; right: 12px; width: 32px; height: 32px; }
  .calc__form, .calc__result { padding: 20px 18px; }
  .cf__num { width: 88px; }
  .prose { padding: 22px 18px; }
  .prose h2 { font-size: 1.45rem; }
  .prose p, .prose li { font-size: 16px; }
  .art__side { grid-template-columns: 1fr; }
  .footer__card { grid-template-columns: 1fr 1fr; }
  .gallery--c3 { columns: 2; }
}


/* ============================================================
   Квиз «быстрый просчёт», каталог на главной, меню-сетка
   ============================================================ */
.section--tight { padding-top: clamp(28px, 4vw, 48px); }
.prose--wide { max-width: none; }

/* ---------- главная: первый экран ---------- */
.hero2__grid { grid-auto-rows: auto; }
@media (min-width: 901px) {
  .hero2__main { grid-row: 1; min-height: 500px; }
  .hero2__photo { grid-row: 1; min-height: 500px; }
}
.hero2__main h1 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1.02; }
.hero2__main .hero__sub { max-width: 52ch; }

/* ---------- каталог продуктов ---------- */
.catalog { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.sec { padding: clamp(20px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 14px; }
.sec--wide { grid-column: 1 / -1; }
.sec__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sec__head h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }
.sec__head h3 a:hover { color: var(--violet-d); }
.sec__all { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--violet-d); white-space: nowrap; }
.sec__all svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.sec__all:hover svg { transform: translateX(4px); }
.ptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.ptiles__h { margin: 6px 2px 0; font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.ptile { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px 8px 8px; border-radius: 18px; background: var(--lilac-2); transition: background .25s, color .25s, transform .3s var(--ease); }
.ptile:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.ptile__img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; }
.ptile__ph { width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 20px; background: linear-gradient(135deg, var(--violet), var(--violet-d)); color: #fff; }
.ptile__t { flex: 1; font-weight: 600; font-size: 15px; line-height: 1.2; }
.ptile__a svg { width: 18px; height: 18px; opacity: .45; transition: transform .3s var(--ease), opacity .3s; }
.ptile:hover .ptile__a svg { opacity: 1; transform: translateX(3px); }
.ptile--lg { min-height: 84px; padding: 10px 16px 10px 10px; }
.ptile--lg .ptile__img, .ptile--lg .ptile__ph { width: 64px; height: 64px; border-radius: 16px; }
.ptile--lg .ptile__ph { font-size: 24px; }
.ptile--lg .ptile__t { font-size: 16.5px; }
.hub-card2 { padding: clamp(20px, 2.6vw, 32px); display: grid; gap: 14px; }
.hub-card2 .ptiles { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

/* ---------- меню «Услуги»: сетка разделов ---------- */
@media (min-width: 901px) {
  .mega { grid-template-columns: repeat(4, 1fr); gap: 4px 12px; padding: 14px; }
}
.nav .mega a.mega__item { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; margin: 0; border-radius: 16px; font-size: 16px; font-weight: 600; color: var(--ink); }
.nav .mega a.mega__item small { font-weight: 450; font-size: 13px; color: var(--muted); }
.nav .mega a.mega__item small:empty { display: none; }
.nav .mega a.mega__item:hover { background: var(--lilac-2); }

/* ---------- шапка страницы с квизом ---------- */
.ph__main--text { justify-content: center; }
.ph__grid .ph__quiz { grid-column: 8 / 13; grid-row: 1 / 2; }
.ph__quiz { padding: clamp(20px, 2.4vw, 30px); min-height: 440px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.rel--plain { background: var(--grad-ink); }

.quiz__top { display: flex; align-items: center; gap: 14px; }
.quiz__bar { display: flex; gap: 6px; flex: 1; }
.quiz__bar i { flex: 1; height: 6px; border-radius: 6px; background: var(--lilac); transition: background .3s; }
.quiz__bar i.on { background: var(--violet-d); }
.quiz__step { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.quiz__pane { display: flex; flex-direction: column; gap: 12px; flex: 1; animation: qin .4s var(--ease); }
@keyframes qin { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.quiz .tag { align-self: flex-start; background: var(--lilac-2); color: var(--violet-d); }
.quiz__q { font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; margin: 4px 0 2px; }
.quiz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.quiz__opt {
  position: relative; display: flex; align-items: center; gap: 12px; text-align: left;
  min-height: 62px; padding: 12px 14px; border-radius: 18px; border: 2px solid transparent; background: var(--lilac-2);
  font-weight: 600; font-size: 15.5px; line-height: 1.2; color: var(--ink);
  transition: background .2s, border-color .2s, transform .25s var(--ease);
}
.quiz__opt::before { content: attr(data-k); flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: #fff; color: var(--violet-d); transition: background .2s, color .2s; }
.quiz__opt:hover { background: #fff; border-color: var(--violet); transform: translateY(-2px); }
.quiz__opt.is-picked { background: var(--violet); border-color: var(--ink); }
.quiz__opt.is-picked::before { background: var(--ink); color: #fff; }
.quiz__nav { display: flex; justify-content: space-between; align-items: center; min-height: 36px; }
.quiz__back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 4px; border: 0; background: none; font-weight: 600; font-size: 14.5px; color: var(--muted); transition: color .2s; }
.quiz__back:hover { color: var(--ink); }
.quiz__back svg { width: 16px; height: 16px; }
.quiz__hint { font-size: 13px; color: var(--muted); }

.quiz__sum { display: flex; flex-wrap: wrap; gap: 6px; }
.quiz__sum span { padding: 6px 11px; border-radius: 999px; background: var(--lilac-2); font-size: 13px; font-weight: 600; color: #3b3560; }
.quiz__price small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.quiz__price strong { display: block; margin: 2px 0 4px; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; letter-spacing: -.04em; font-weight: 700; color: var(--ink); }
.quiz__price em { display: block; font-style: normal; font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.quiz__form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz__form .btn { grid-column: 1 / -1; }
.quiz .field input { background: var(--lilac-2); }
.quiz .field input:focus { background: #fff; border-color: var(--ink); }
.quiz .field label { font-size: 13px; }
.quiz__note { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.quiz__done { display: flex; flex-direction: column; gap: 12px; animation: qin .4s var(--ease); }
.quiz__done h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; }
.quiz__done p { font-size: 15px; line-height: 1.45; color: #4a4468; }
.quiz__done .sent__btns { margin-top: 4px; }
.quiz__nojs { font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .ph__grid:not(.ph__grid--facts) .ph__main, .ph__grid:not(.ph__grid--facts) .ph__photo, .ph__grid .ph__quiz { grid-column: 1 / -1; grid-row: auto; }
  .ph__grid .ph__quiz { min-height: 0; }
  .ph__main--text { min-height: 0; }
  .catalog { grid-template-columns: 1fr; }
  .sec--wide { grid-column: auto; }
}
@media (max-width: 640px) {
  .quiz__opts { grid-template-columns: 1fr; gap: 8px; }
  .quiz__opt { min-height: 54px; padding: 10px 12px; font-size: 15px; }
  .quiz__form { grid-template-columns: 1fr; }
  .ph__quiz { padding: 18px 16px; }
  .ptiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .ptile { min-height: 56px; padding: 6px 8px 6px 6px; gap: 8px; border-radius: 16px; }
  .ptile__img, .ptile__ph { width: 40px; height: 40px; border-radius: 10px; font-size: 17px; }
  .ptile__t { font-size: 13.5px; }
  .ptile__a { display: none; }
  .ptile--lg { min-height: 64px; padding: 8px; }
  .ptile--lg .ptile__img, .ptile--lg .ptile__ph { width: 46px; height: 46px; }
  .ptile--lg .ptile__t { font-size: 14px; }
  .hub-card2 .ptiles { grid-template-columns: 1fr 1fr; }
  .sec { padding: 18px 14px; }
  .sec__head h3 { font-size: 1.25rem; }
  .sec__all { font-size: 13px; }
  .hero2__main, .hero2__photo { min-height: 0; }
  .hero2__photo { min-height: 260px; }
}

/* длинные названия не раздвигают сетки */
.ptile { min-width: 0; }
.ptile__t { min-width: 0; overflow-wrap: anywhere; }
.footer__card > * { min-width: 0; }
.footer a { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .ptiles, .hub-card2 .ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.rel h3, .hub-card h3, .sec__head h3, .quiz__opt, .var h3 { overflow-wrap: anywhere; hyphens: auto; }

@media (max-width: 420px) {
  .ptile { gap: 7px; padding: 6px 7px 6px 6px; }
  .ptile__img, .ptile__ph, .ptile--lg .ptile__img, .ptile--lg .ptile__ph { width: 36px; height: 36px; border-radius: 9px; font-size: 16px; }
  .ptile__t, .ptile--lg .ptile__t { font-size: 13px; }
  .sec { padding: 16px 12px; }
}

/* ---------- квиз на первом экране главной ---------- */
.hero2__quiz { grid-column: 8 / 13; padding: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
@media (min-width: 901px) { .hero2__quiz { grid-row: 1; min-height: 500px; } }
@media (max-width: 900px) { .hero2__quiz { grid-column: 1 / -1; grid-row: auto; min-height: 0; } }
@media (max-width: 640px) { .hero2__quiz { padding: 18px 16px; } }
.quiz__opts .quiz__opt:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* туман у галереи не должен выходить за край экрана на планшетах */
@media (min-width: 641px) and (max-width: 1300px) { .gallery-wrap { --ext: 20px; } }

/* ============================================================
   Правки из чата: каталог картинками, галочки согласия, контакты, подвал
   ============================================================ */
/* каталог на главной: одна картинка на раздел */
.catalog-grid .c-big { grid-column: span 6; grid-row: span 2; }
.catalog-grid .c3 { grid-column: span 3; }
.catalog-grid .c4 { grid-column: span 4; }
.cc h3 { font-size: clamp(1.2rem, 1.8vw, 1.55rem); }
.cc.c-big h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.03em; }
.cc--plain { background: var(--grad-ink); }
.cc--plain::before { content: ""; position: absolute; z-index: -1; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(160, 116, 247, .45), rgba(160, 116, 247, 0) 70%); }
@media (max-width: 900px) {
  .catalog-grid > .c-big { grid-column: 1 / -1 !important; grid-row: span 1 !important; }
  .catalog-grid > .c4:last-child { grid-column: 1 / -1 !important; }
}

/* две галочки согласия */
.consent { display: grid; gap: 10px; margin: 4px 0 2px; }
.check { position: relative; display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.35; cursor: pointer; color: rgba(11, 7, 36, .85); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { flex: none; width: 22px; height: 22px; margin-top: -1px; border-radius: 7px; border: 2px solid rgba(11, 7, 36, .5); background: rgba(255, 255, 255, .7); display: grid; place-items: center; transition: background .2s, border-color .2s; }
.check__box::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; transition: opacity .15s; }
.check input:checked + .check__box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .check__box::after { opacity: 1; }
.check input:focus-visible + .check__box { outline: 3px solid var(--violet-d); outline-offset: 2px; }
.check a { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.consent__err { display: none; font-size: 13px; font-weight: 600; color: #8f0e2d; }
.consent.has-error .consent__err { display: block; }
.consent.has-error .check__box { border-color: #c0143c; }
.quiz .check { color: #4a4468; }
.quiz .check__box { border-color: var(--muted); background: #fff; }
.quiz__form .consent { grid-column: 1 / -1; }
.req-form h2 { margin-top: 0; }

/* контакты: позвонить и иконки мессенджеров */
.contact--phone > div { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.contact--phone small { font-size: 15px; opacity: .7; }
.contact--social { flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; flex-wrap: wrap; }
.contact--social small { font-size: 15px; opacity: .7; margin: 0; }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social__btn { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--lilac-2); color: var(--ink); transition: background .25s, color .25s, transform .3s var(--ease); }
.social__btn svg { width: 26px; height: 26px; display: block; fill: currentColor; }
.social__btn:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }

/* подвал: Компания · Продукция · Услуги */
.footer__card { grid-template-columns: 1fr 2.4fr 1fr; gap: 28px 40px; }
.footer__about { grid-column: 1 / -1; }
.footer__prod { columns: 3; column-gap: 28px; }
.footer__grp { break-inside: avoid; margin-bottom: 20px; }
.footer__grp h5 { margin: 0 0 8px; font-size: 15px; font-weight: 650; }
.footer__grp h5 a:hover { color: var(--violet-hi); }
.footer__grp li { font-size: 14px; }
.footer__grp li a { opacity: .8; }
.footer__grp li a:hover { opacity: 1; }
@media (max-width: 1100px) { .footer__prod { columns: 2; } }
@media (max-width: 900px) {
  .footer__card { grid-template-columns: 1fr; }
  .footer__card > .footer__col { grid-column: auto; }
}
@media (max-width: 480px) { .footer__prod { columns: 1; } }

/* первый экран: заголовок на телефоне компактнее */
@media (max-width: 640px) { .hero2__main h1 { font-size: 1.7rem; letter-spacing: -.03em; } }

/* ---------- компактный подвал ---------- */
.footer__card { grid-template-columns: 1.6fr 1fr 1fr; gap: 18px 36px; padding: 26px 30px; }
.footer__about { grid-column: 1; grid-row: 1; }
.footer__col--company { grid-column: 2; grid-row: 1; }
.footer__col--services { grid-column: 3; grid-row: 1; }
.footer__col--wide { grid-column: 1 / -1; grid-row: 2; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer__card .brand img { width: 44px; height: 44px; }
.footer__card .brand span { font-size: 20px; }
.footer__card p { margin-top: 10px; font-size: 13.5px; line-height: 1.4; }
.footer h4, .footer__pd summary { margin: 0 0 8px; font-size: 12px; letter-spacing: .1em; }
.footer li + li { margin-top: 4px; }
.footer__card li { font-size: 14px; line-height: 1.3; }
.footer__pd summary { list-style: none; cursor: pointer; text-transform: uppercase; color: var(--violet-hi); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.footer__pd summary::-webkit-details-marker { display: none; }
.footer__prod { columns: 5; column-gap: 22px; }
.footer__grp { break-inside: auto; margin-bottom: 12px; }
.footer__grp h5 { margin: 0 0 5px; font-size: 13.5px; break-after: avoid; }
.footer__grp li { font-size: 13px; line-height: 1.3; }
.footer__grp li + li { margin-top: 3px; }
@media (min-width: 901px) {
  .footer__pd summary { pointer-events: none; }
}
@media (max-width: 1100px) { .footer__prod { columns: 4; } }
@media (max-width: 900px) {
  .footer__card { grid-template-columns: 1fr 1fr; padding: 22px 20px; }
  .footer__about { grid-column: 1 / -1; grid-row: auto; }
  .footer__col--company { grid-column: 1; grid-row: auto; }
  .footer__col--services { grid-column: 2; grid-row: auto; }
  .footer__col--wide { grid-column: 1 / -1; grid-row: auto; }
  .footer__prod { columns: 3; }
  .footer__pd summary { padding: 10px 0; }
  .footer__pd summary::after { content: "+"; font-size: 22px; font-weight: 500; line-height: 1; }
  .footer__pd[open] summary::after { content: "–"; }
}
@media (max-width: 560px) { .footer__prod { columns: 2; } }

/* ---------- галерея: ровная сетка без дыр ---------- */
.gallery { display: grid; columns: auto; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: var(--gap); }
.gallery .shot { margin: 0; aspect-ratio: 4 / 5; break-inside: auto; }
.gallery .shot img { width: 100%; height: 100%; object-fit: cover; }
.gallery--c3 { columns: auto; }
@media (max-width: 1100px) { .gallery { grid-template-columns: repeat(min(var(--cols, 4), 3), minmax(0, 1fr)); } }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .gallery .shot { aspect-ratio: 1 / 1.1; } }

/* «Все работы» раскрывается на месте */
.gallery-wrap:not(.is-expanded) .shot.is-extra { display: none; }
.gallery-wrap.is-expanded .shot.is-extra { animation: shotIn .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes shotIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
[data-expand] svg { transition: transform .35s var(--ease); }
[data-expand][aria-expanded="true"] svg { transform: rotate(-90deg); }

/* ---------- подвал: группы продукции — аккордеон ---------- */
.footer a { overflow-wrap: break-word; }
.footer__grp > summary { list-style: none; cursor: pointer; margin: 0 0 5px; font-size: 13.5px; font-weight: 650; color: #fff; break-after: avoid; }
.footer__grp > summary::-webkit-details-marker { display: none; }
.footer__all a { color: var(--violet-hi); opacity: 1 !important; }
@media (min-width: 901px) { .footer__grp > summary { pointer-events: none; } }
@media (max-width: 900px) {
  .footer__card { grid-template-columns: 1fr 1fr; gap: 20px 18px; }
  .footer__col--wide { padding-top: 6px; }
  .footer__prod { columns: 1; column-gap: 0; }
  .footer__grp { margin: 0; border-top: 1px solid rgba(255, 255, 255, .1); break-inside: avoid; }
  .footer__grp:last-child { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .footer__grp > summary { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 14px 2px; min-height: 48px; font-size: 16px; }
  .footer__grp > summary::after { content: "+"; font-size: 22px; font-weight: 400; line-height: 1; color: var(--violet-hi); }
  .footer__grp[open] > summary::after { content: "–"; }
  .footer__grp ul { padding: 0 2px 12px; }
  .footer__grp li + li { margin-top: 0; }
  .footer__grp li a { display: block; padding: 9px 0; font-size: 15px; line-height: 1.3; opacity: .85; }
  .footer__card .footer__col li a { display: inline-block; padding: 3px 0; }
  .footer__pd > summary { padding: 12px 2px; font-size: 13px; }
}
@media (min-width: 600px) and (max-width: 900px) {
  .footer__grp ul { columns: 2; column-gap: 24px; }
  .footer__grp li { break-inside: avoid; }
}
@media (max-width: 380px) {
  .footer__card { grid-template-columns: 1fr; }
  .footer__col--company, .footer__col--services { grid-column: 1; }
}
.footer__card > .footer__col--wide { grid-column: 1 / -1; }
.footer__pd .footer__grp > summary { text-transform: none; letter-spacing: 0; color: #fff; font-weight: 650; justify-content: space-between; }
@media (min-width: 901px) { .footer__pd .footer__grp > summary { font-size: 13.5px; padding: 0; } }
.footer__grp { break-inside: avoid; }
.works-more { display: flex; flex-wrap: wrap; gap: 10px; }
.works-more .btn { max-width: 100%; }
@media (max-width: 480px) { .works-more .btn { flex: 1 1 100%; justify-content: center; } }

/* ---------- затемнение фото под текстом: читается на любом снимке ---------- */
.card--photo::after {
  background:
    linear-gradient(180deg, rgba(8, 4, 26, .34) 0%, rgba(8, 4, 26, .22) 38%, rgba(8, 4, 26, .86) 100%);
}
.card--photo.ph__photo::after { background: linear-gradient(180deg, rgba(8, 4, 26, .08) 0%, rgba(8, 4, 26, .14) 100%); }
.card--photo h3, .card--photo strong, .card--photo figcaption { text-shadow: 0 1px 14px rgba(8, 4, 26, .55); }
@media (max-width: 900px) { .catalog-grid > .c-big { min-height: min(64vw, 440px); } }
