/* ============================================================
   Алюминиевые конструкции — фирменный стиль
   Brand: #3868F0 (синий) · #0E1116 (чёрный) · белый фон
   Шрифт: Rubik (кириллица + иврит + латиница)
   ============================================================ */

:root {
  --blue: #3868F0;
  --blue-700: #2a4fc9;
  --blue-600: #2f5be0;
  --blue-50: #eef2fe;
  --blue-100: #dfe8fd;

  --ink: #0e1116;
  --ink-2: #474d57;
  --ink-3: #767d88;

  --bg: #ffffff;
  --surface: #f5f7fb;
  --surface-2: #eef1f7;
  --line: #e4e8f0;
  --line-strong: #d4d9e4;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(14,17,22,.05), 0 1px 1px rgba(14,17,22,.04);
  --shadow-md: 0 10px 30px -12px rgba(14,17,22,.16), 0 2px 8px rgba(14,17,22,.05);
  --shadow-lg: 0 30px 70px -24px rgba(20,30,60,.30), 0 8px 24px rgba(14,17,22,.07);
  --shadow-blue: 0 16px 34px -12px rgba(56,104,240,.55);

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);

  --ff: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  font-family: var(--ff);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; line-height: 1.04; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ----- RTL ----- */
[dir="rtl"] { }
[dir="rtl"] .nav__links { }

/* ============================================================
   Кнопки
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 16px; line-height: 1;
  padding: 16px 26px; border-radius: 999px;
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .25s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn--primary:hover { background: var(--blue-600); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #20262e; transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { padding: 19px 34px; font-size: 17px; }
.btn--wa { background: #25D366; color: #fff; box-shadow: 0 14px 30px -12px rgba(37,211,102,.6); }
.btn--wa:hover { background: #20c25c; transform: translateY(-2px); }
.btn .ico { width: 20px; height: 20px; flex: none; }

.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); 
}
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--blue); border-radius: 2px; }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-stuck { border-color: var(--line); box-shadow: 0 4px 20px -16px rgba(14,17,22,.4); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { height: 38px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav__links a {
  padding: 10px 14px; border-radius: 10px; font-size: 15.5px; font-weight: 500; color: var(--ink-2);
  transition: color .15s, background .15s;
}
.nav__links a:hover { color: var(--ink); background: var(--surface); }
.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.lang {
  display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: 999px; overflow: hidden;
}
.lang button {
  padding: 8px 13px; font-size: 13.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .02em;
  transition: background .15s, color .15s;
}
.lang button.is-active { background: var(--ink); color: #fff; }

.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-strong); align-items: center; justify-content: center; }
.burger span { display:block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after { content:""; position:absolute; left:0; width:20px; height:2px; background: var(--ink); transition: .25s; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }

/* mobile menu */
.mobnav { position: fixed; inset: 76px 0 0; background: #fff; z-index: 55; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .28s; padding: 24px var(--gutter); }
.mobnav.open { transform: none; opacity: 1; pointer-events: auto; }
.mobnav a { display: block; font-size: 22px; font-weight: 700; padding: 16px 0; border-bottom: 1px solid var(--line); }

/* ============================================================
   Section base
   ============================================================ */
section { position: relative; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tint { background: var(--surface); }
.section__head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section__head.center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(30px, 4.6vw, 52px); }
.section__lead { margin-top: 18px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); line-height: 1.6; }

/* ============================================================
   HERO — common
   ============================================================ */
.hero { position: relative; }
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 60px); }
.stat__num { font-size: clamp(32px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; }
.stat__num .u { color: var(--blue); }
.stat__label { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; font-weight: 500; }

.hero h1 { font-size: clamp(40px, 6.6vw, 80px); line-height: .98; }
.hero h1 .accent { color: var(--blue); }
.hero__lead { margin-top: 26px; font-size: clamp(18px, 1.9vw, 22px); color: var(--ink-2); max-width: 33ch; line-height: 1.5; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* default hero hidden until variant set */
.hero-variant { display: none; }
:root[data-hero="clean"] .hero-variant--clean,
:root[data-hero="showcase"] .hero-variant--showcase,
:root[data-hero="editorial"] .hero-variant--editorial { display: block; }

/* Variant A — Clean / split */
.heroA { padding-block: clamp(48px, 7vw, 96px); }
.heroA__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.heroA__media { position: relative; }
.heroA__stats { margin-top: clamp(44px, 6vw, 72px); padding-top: 34px; border-top: 1px solid var(--line); }

/* Variant B — Showcase / full bleed */
.heroB { color: #fff; min-height: min(86vh, 760px); display: flex; align-items: flex-end; border-radius: 0; overflow: hidden; }
.heroB__bg { position: absolute; inset: 0; z-index: 0; }
.heroB__bg::after { content:""; position:absolute; inset:0; background: linear-gradient(80deg, rgba(8,12,22,.86) 0%, rgba(8,12,22,.55) 42%, rgba(8,12,22,.18) 100%); }
.heroB__inner { position: relative; z-index: 2; padding-block: clamp(56px, 8vw, 110px); width: 100%; }
.heroB h1 { color: #fff; }
.heroB .hero__lead { color: rgba(255,255,255,.82); }
.heroB__stats { margin-top: 48px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.18); }
.heroB .stat__num { color: #fff; }
.heroB .stat__num .u { color: #8fb0ff; }
.heroB .stat__label { color: rgba(255,255,255,.7); }

/* Variant C — Editorial / collage */
.heroC { padding-block: clamp(48px, 6vw, 84px); }
.heroC__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.heroC__collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(2, 1fr); gap: 14px; aspect-ratio: 1/1; }
.heroC__collage > * { border-radius: 16px; overflow: hidden; }
.heroC__collage > *:first-child { grid-row: span 2; }

/* ============================================================
   Placeholder media (glazing / aluminium look)
   ============================================================ */
.ph {
  position: relative; width: 100%; height: 100%;
  background:
    linear-gradient(135deg, rgba(255,255,255,.55), rgba(255,255,255,0) 38%),
    linear-gradient(160deg, #dfe5f0 0%, #cdd6e6 46%, #b9c4d8 100%);
  overflow: hidden;
  display: grid; place-items: center;
  isolation: isolate;
}
.ph::before { /* glass mullion grid */
  content: ""; position: absolute; inset: 9% 9%;
  border: 3px solid rgba(255,255,255,.6);
  box-shadow: 0 0 0 1px rgba(120,135,160,.45), inset 0 0 60px rgba(255,255,255,.25);
  border-radius: 4px;
}
.ph::after { /* diagonal light sweep */
  content:""; position:absolute; top:-40%; left:-10%; width: 50%; height: 180%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0));
  transform: rotate(18deg); filter: blur(2px); pointer-events:none;
}
.ph__mullion-v, .ph__mullion-h { position: absolute; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(120,135,160,.3); z-index:1;}
.ph__mullion-v { top: 9%; bottom: 9%; left: 50%; width: 3px; transform: translateX(-50%); }
.ph__mullion-h { left: 9%; right: 9%; top: 50%; height: 3px; transform: translateY(-50%); }
.ph__tag {
  position: absolute; z-index: 3; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(14,17,22,.72); color: #fff; backdrop-filter: blur(6px);
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  padding: 8px 13px; border-radius: 999px;
}
.ph__tag svg { width: 15px; height: 15px; opacity: .85; }
.ph--pergola { background: linear-gradient(160deg, #d8dfeb 0%, #c2ccdd 50%, #aeb9cf 100%); }
.ph--pergola::before, .ph--pergola::after { display:none; }
.ph__slats { position:absolute; inset:0; z-index:1; }
.ph--dark { background: linear-gradient(160deg, #2a3242 0%, #1a2230 100%); }
.ph--dark::before { border-color: rgba(255,255,255,.18); box-shadow: inset 0 0 60px rgba(255,255,255,.06); }

/* rounded wrapper for media */
.media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.media--wide { aspect-ratio: 16/11; }
.media--ratio1 { aspect-ratio: 1/1; }

/* example images (placeholders to be replaced by real photos) */
.ex { width: 100%; height: 100%; object-fit: cover; display: block; }
.heroB__bg .ex { position: absolute; inset: 0; }

/* image-slot integration — slots fill their container */
image-slot { display: block; }
.media image-slot, .svc__media image-slot, .heroC__collage image-slot { width: 100%; height: 100%; }

/* hero slider (2 фото, автолистание) */
.hero-slider { position: relative; }
.hslide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease; }
.hslide.is-active { opacity: 1; visibility: visible; }
.hslide image-slot { position: absolute; inset: 0; }
.hslider-dots { position: absolute; z-index: 7; inset-block-end: 18px; inset-inline: 0; display: flex; justify-content: center; gap: 9px; pointer-events: none; }
.hdot { pointer-events: auto; width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.55); box-shadow: 0 1px 4px rgba(0,0,0,.3); cursor: pointer; transition: width .3s, background .3s; }
.hdot.is-active { width: 26px; background: #fff; }
/* gallery: card no longer click-to-zoom; zoom button triggers lightbox, slot stays droppable */
.gitem { cursor: default; }
.gitem::after { pointer-events: none; }
.gitem__cap { pointer-events: none; }
.gitem__zoom { pointer-events: auto; cursor: pointer; }
.gitem image-slot { position: absolute; inset: 0; }
/* reviews: play button triggers video, slot stays droppable */
.vreview__play { pointer-events: none; }
.vreview__play span { pointer-events: auto; cursor: pointer; }
/* hint chip so it's obvious slots accept real photos */
.slot-hint {
  position: absolute; z-index: 4; top: 14px; inset-inline-start: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(56,104,240,.94); color: #fff;
  font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(56,104,240,.7); pointer-events: none;
}
.slot-hint svg { width: 14px; height: 14px; }

/* explicit «Заменить фото» button on each slot */
.slot-edit {
  position: absolute; z-index: 8; top: 14px; inset-inline-end: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.95); color: var(--ink);
  font-family: var(--ff); font-size: 14px; font-weight: 600; line-height: 1;
  padding: 10px 15px; border-radius: 999px; cursor: pointer;
  box-shadow: var(--shadow-md); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .15s, background .15s, color .15s, opacity .2s;
}
.slot-edit svg { width: 18px; height: 18px; flex: none; }
.slot-edit:hover { background: #fff; color: var(--blue); transform: translateY(-1px); }
.slot-edit:active { transform: translateY(0) scale(.98); }
/* compact (icon-only) on smaller gallery / review slots */
.gitem .slot-edit, .vreview__poster .slot-edit { padding: 9px; top: 12px; inset-inline-end: 12px; }
.gitem .slot-edit span, .vreview__poster .slot-edit span { display: none; }

/* ============================================================
   Services
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc__media { aspect-ratio: 5/4; }
.svc__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.svc__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 4px; }
.svc__icon svg { width: 26px; height: 26px; }
.svc h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.svc p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.svc__link { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: 14.5px; color: var(--blue); display: inline-flex; align-items: center; gap: 7px; }
.svc__link svg { width: 16px; height: 16px; transition: transform .2s; }
.svc:hover .svc__link svg { transform: translateX(4px); }
[dir="rtl"] .svc:hover .svc__link svg { transform: translateX(-4px) scaleX(-1); }
[dir="rtl"] .svc__link svg { transform: scaleX(-1); }

/* ============================================================
   Calculator
   ============================================================ */
.calc { background: var(--ink); color: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.calc__grid { display: grid; grid-template-columns: .9fr 1.1fr; }
.calc__aside { padding: clamp(34px, 4vw, 56px); display: flex; flex-direction: column; gap: 22px; background: radial-gradient(120% 100% at 0% 0%, #1b2433 0%, #0e1116 60%); }
.calc__aside .kicker { color: #8fb0ff; }
.calc__aside .kicker::before { background: #8fb0ff; }
.calc__aside h2 { font-size: clamp(26px, 3vw, 38px); }
.calc__aside p { color: rgba(255,255,255,.72); font-size: 16px; }
.calc__steps { margin-top: 6px; display: flex; flex-direction: column; gap: 14px; }
.calc__step { display: flex; gap: 13px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,.85); }
.calc__step b { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 13px; font-weight: 700; }

.calc__form { background: #fff; color: var(--ink); padding: clamp(30px, 3.4vw, 48px); }
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.req { color: var(--blue); }
.input, .select, .textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 16px; transition: border-color .15s, background .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--blue-50); }
.textarea { resize: vertical; min-height: 92px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* product type chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line-strong);
  font-size: 14.5px; font-weight: 600; color: var(--ink-2); background: #fff;
  transition: .15s; display: inline-flex; align-items: center; gap: 8px;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip svg { width: 17px; height: 17px; }

.dim-hint { font-size: 13px; color: var(--ink-3); margin-top: -8px; margin-bottom: 16px; }

.calc__submit { margin-top: 8px; width: 100%; }
.calc__note { margin-top: 14px; font-size: 13px; color: var(--ink-3); text-align: center; display:flex; gap:7px; align-items:center; justify-content:center;}
.calc__note svg { width:15px; height:15px; }

.preview {
  margin-top: 18px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 12px;
  padding: 14px 16px; font-size: 13.5px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.6;
  max-height: 0; overflow: hidden; opacity: 0; padding-block: 0; border-width: 0; transition: .3s;
}
.preview.show { max-height: 320px; opacity: 1; padding-block: 14px; border-width: 1px; }
.preview b { color: var(--ink); }

/* ============================================================
   Gallery
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter {
  padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--line-strong);
  font-size: 15px; font-weight: 600; color: var(--ink-2); background: #fff; transition: .15s;
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; grid-auto-flow: dense; }
.gitem { grid-column: span 4; border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; aspect-ratio: 4/3; transition: transform .2s; }
.gitem.tall { grid-row: span 2; aspect-ratio: 3/4; }
.gitem.wide { grid-column: span 8; aspect-ratio: 16/9; }
.gitem:hover { transform: translateY(-4px); }
.gitem::after { content:""; position:absolute; inset:0; background: linear-gradient(to top, rgba(14,17,22,.55), transparent 50%); opacity:0; transition:.25s; }
.gitem:hover::after { opacity: 1; }
.gitem__cap { position: absolute; z-index:2; left: 16px; bottom: 14px; right: 16px; color:#fff; opacity:0; transform: translateY(6px); transition:.25s; display:flex; justify-content:space-between; align-items:flex-end; gap:10px; }
.gitem:hover .gitem__cap { opacity:1; transform:none; }
.gitem__cap b { font-size: 16px; font-weight: 700; }
.gitem__cap span { font-size: 13px; opacity:.8; }
.gitem__zoom { width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,.18); backdrop-filter:blur(6px); display:grid; place-items:center; flex:none; }
.gitem__zoom svg { width:18px; height:18px; color:#fff; }
.gitem.hide { display: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,11,18,.92); display: grid; place-items: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox__stage { width: min(92vw, 1000px); aspect-ratio: 16/10; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); }
.lightbox__cap { color: #fff; text-align: center; margin-top: 18px; font-weight: 600; }
.lightbox__close { position: absolute; top: 22px; inset-inline-end: 24px; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color:#fff; display:grid; place-items:center; }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.12); color:#fff; display:grid; place-items:center; }
.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__nav.prev { inset-inline-start: 18px; } .lightbox__nav.next { inset-inline-end: 18px; }
.lightbox__nav svg { width: 24px; height: 24px; }
[dir="rtl"] .lightbox__nav svg { transform: scaleX(-1); }

/* ============================================================
   Video reviews
   ============================================================ */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vreview { border-radius: var(--radius); overflow: hidden; background:#fff; border:1px solid var(--line); transition: transform .25s, box-shadow .3s; }
.vreview:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.vreview__poster { position: relative; aspect-ratio: 9/12; cursor: pointer; }
.vreview__poster .ph__tag { left: 14px; bottom: 14px; }
.vreview__play { position: absolute; inset: 0; display:grid; place-items:center; z-index:3; }
.vreview__play span { width: 66px; height: 66px; border-radius:50%; background: rgba(255,255,255,.92); display:grid; place-items:center; box-shadow: var(--shadow-md); transition: transform .2s; }
.vreview__poster:hover .vreview__play span { transform: scale(1.08); }
.vreview__play svg { width: 26px; height: 26px; color: var(--blue); margin-inline-start: 3px; }
.vreview__body { padding: 18px 20px 20px; }
.vreview__body .stars { color: #f5b400; font-size: 15px; letter-spacing: 1px; margin-bottom: 8px; }
.vreview__body p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.vreview__who { margin-top: 14px; display:flex; align-items:center; gap: 11px; }
.vreview__ava { width: 40px; height: 40px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display:grid; place-items:center; font-weight:800; font-size:15px; flex:none; }
.vreview__who b { display:block; font-size: 15px; }
.vreview__who span { font-size: 13px; color: var(--ink-3); }

/* ============================================================
   Trust strip / process
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature__ico { width: 50px; height: 50px; border-radius: 14px; background: var(--ink); color:#fff; display:grid; place-items:center; margin-bottom: 16px; }
.feature__ico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }

/* CTA band */
.cta-band { background: var(--blue); color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 5vw, 64px); position: relative; overflow:hidden; }
.cta-band::before { content:""; position:absolute; inset-inline-end:-60px; top:-60px; width:320px; height:320px; border:40px solid rgba(255,255,255,.08); border-radius:50%; }
.cta-band h2 { font-size: clamp(28px, 3.6vw, 44px); color:#fff; position:relative; }
.cta-band p { margin-top: 14px; color: rgba(255,255,255,.9); font-size: 18px; max-width: 46ch; position:relative; }
.cta-band__btns { margin-top: 28px; display:flex; flex-wrap:wrap; gap:14px; position:relative; }
.cta-band .btn--ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color:#fff; }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.2); border-color:#fff; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--ink); color: #fff; padding-block: clamp(48px, 6vw, 76px) 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer__brand img { height: 40px; filter: brightness(0) invert(1); }
.footer__brand p { margin-top: 16px; color: rgba(255,255,255,.6); font-size: 15px; max-width: 32ch; }
.footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); font-weight:700; margin-bottom: 16px; }
.footer ul li { margin-bottom: 11px; }
.footer ul a, .footer__contact a { color: rgba(255,255,255,.82); font-size: 15px; transition: color .15s; }
.footer ul a:hover { color: #fff; }
.footer__contact { display:flex; flex-direction: column; gap: 12px; }
.footer__contact a { display:flex; align-items:center; gap: 11px; }
.footer__contact svg { width: 19px; height: 19px; color: var(--blue); flex:none; }
.footer__bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; color: rgba(255,255,255,.5); font-size: 13.5px; }
.footer__credit { margin-top: 18px; text-align: center; color: rgba(255,255,255,.38); font-size: 12.5px; letter-spacing: .2px; }

/* floating whatsapp */
.wa-float { position: fixed; inset-block-end: 24px; inset-inline-end: 24px; z-index: 50; width: 60px; height: 60px; border-radius: 50%; background:#25D366; display:grid; place-items:center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.7); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; color:#fff; }
.wa-float::after { content:""; position:absolute; inset:0; border-radius:50%; border:2px solid #25D366; animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{transform:scale(1);opacity:.7} 100%{transform:scale(1.7);opacity:0} }

/* reveal on scroll — анимация только при готовности JS (anim-ready),
   по умолчанию контент видим, чтобы он никогда не оставался скрытым */
.anim-ready .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.anim-ready .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .burger { display: inline-flex; }
  .header__actions .btn--wa { display: none; }
  .heroA__grid { grid-template-columns: 1fr; }
  .heroA__media { order: -1; }
  .heroC__grid { grid-template-columns: 1fr; }
  .calc__grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .svc-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gitem, .gitem.wide, .gitem.tall { grid-column: span 2; grid-row: auto; aspect-ratio: 4/3; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px 36px; }
}

/* ============================================================
   Production: plain <img class="ex"> fills its media container
   ============================================================ */
.media .ex,
.svc__media .ex,
.heroC__collage .ex { width: 100%; height: 100%; object-fit: cover; display: block; }
.hslide .ex,
.gitem > .ex,
.vreview__poster .ex,
.heroB__bg .ex { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
img { max-width: 100%; }
