/* ============================================================
   ВСЕ РЕМОНТЫ — Design tokens
   ============================================================ */
:root {
  --bg:        #E9E9E9;
  --surface:   #F7F7F5;
  --slate:     #626675;
  --orange:    #BB4500;
  --text:      #1C1C1E;
  --muted:     #6b6b6d;
  --white:     #ffffff;
  --line:      #d8d8d6;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 64px;
  --sp-8: 96px;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4, .ff-display {
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
input, select { font-family: inherit; }
ul { list-style: none; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 var(--sp-5); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 14px;
  padding: 16px 28px; border-radius: 100px;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { transform: translateY(-2px); background: #9c3a00; }
.btn-dark { background: var(--text); color: var(--white); }
.btn-dark:hover { transform: translateY(-2px); background: #000; }
.btn-line { background: transparent; color: var(--text); border: 1.5px solid var(--text); }
.btn-line:hover { background: var(--text); color: var(--white); }
.btn-line-w { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.5); }
.btn-line-w:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange); margin-bottom: var(--sp-3);
}
.eyebrow::before { content:''; width: 22px; height: 2px; background: var(--orange); }

.tag {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface);
}

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: sticky; top: 0; z-index: 200;
  padding: var(--sp-3) var(--sp-5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
}
.header-pill-logo {
  display: flex; align-items: center;
  background: var(--text); border: 1px solid var(--text);
  border-radius: 100px; padding: 7px 18px;
}
.header-pill-logo img { height: 28px; width: auto; display: block; }

.header-pill-nav {
  display: flex; gap: 2px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 100px; padding: 6px;
}
.header-pill-nav a {
  font-size: 13px; font-weight: 600; color: var(--muted);
  padding: 9px 16px; border-radius: 100px; transition: .15s;
}
.header-pill-nav a:hover { background: var(--text); color: var(--white); }

.header-right { display: flex; align-items: center; gap: var(--sp-3); }
.header-phone { font-size: 13px; font-weight: 700; }

.burger { display: none; padding: 12px 16px; background: var(--text); border-radius: 100px; }
.burger svg { display: block; }
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: var(--text); padding: var(--sp-4); flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav-close { align-self: flex-end; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 18px; }
.mobile-nav a { padding: var(--sp-3) 0; font-size: 22px; font-weight: 700; color: rgba(255,255,255,.6); border-bottom: 1px solid rgba(255,255,255,.08); font-family:'Unbounded',sans-serif; }
.mobile-nav a:hover { color: #fff; }
.mobile-nav .btn { margin-top: var(--sp-4); justify-content: center; }

@media (max-width: 980px) {
  .header-pill-nav { display: none; }
  .header-phone { display: none; }
  .burger { display: flex; }
}

/* ============================================================
   HERO  — asymmetric tetris: oversized image bleeding right,
   headline pinned left, stat numbers overlapping the image edge
   ============================================================ */
#hero {
  display: grid;
  grid-template-columns: minmax(360px, 500px) 1fr;
  gap: var(--sp-5);
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-5) 0;
  align-items: stretch;
  min-height: 78vh;
}
.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--sp-5) 0;
}
.hero-title {
  font-size: clamp(24px, 2.6vw, 38px);
  margin-bottom: var(--sp-3);
}
.hero-title .hl { color: var(--orange); }
.hl { color: var(--orange); }
.hero-sub {
  font-size: 15px; color: var(--muted); max-width: 420px;
  margin-bottom: var(--sp-4);
}
.hero-actions { display: flex; flex-wrap: nowrap; gap: var(--sp-2); margin-bottom: var(--sp-5); }

.hero-facts {
  display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); padding-top: var(--sp-4);
}
.hero-fact { padding: 0 var(--sp-3); }
.hero-fact:first-child { padding-left: 0; }
.hero-fact + .hero-fact { border-left: 1px solid var(--line); }
.hero-fact b { font-family:'Unbounded',sans-serif; font-size: 26px; display:block; margin-bottom: 2px; }
.hero-fact b em { color: var(--orange); font-style: normal; }
.hero-fact span { font-size: 12px; color: var(--muted); }

.hero-right {
  position: relative; border-radius: 28px 28px 0 0; overflow: hidden;
}
.hero-right img { width: 100%; height: 100%; }
.hero-right::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%);
}
.hero-badge {
  position: absolute; z-index: 5;
  background: rgba(247,247,245,.94); backdrop-filter: blur(10px);
  border-radius: 100px; padding: 10px 18px;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink:0; }
.hero-badge.b1 { top: var(--sp-4); left: var(--sp-4); }
.hero-badge.b1 .dot { background: #2eb872; }
.hero-badge.b2 { bottom: var(--sp-5); left: var(--sp-4); background: var(--orange); color: #fff; }
.hero-badge.b2 .dot { background: #fff; }

.hero-cards-strip {
  position: absolute; bottom: var(--sp-5); right: var(--sp-4); z-index: 6;
  display: flex; gap: 10px;
}
.hero-mini {
  width: 84px; height: 84px; border-radius: 16px; overflow: hidden;
  border: 3px solid var(--surface); cursor: pointer;
  transition: transform .25s ease, outline .15s ease;
  outline: 0 solid var(--orange);
}
.hero-mini:hover { transform: translateY(-5px); }
.hero-mini.active { outline: 3px solid var(--orange); }

@media (max-width: 980px) {
  #hero { display: flex; flex-direction: column; min-height: auto; padding: var(--sp-3); gap: var(--sp-3); }
  .hero-left { display: contents; }
  .hero-title { order: 1; padding-top: var(--sp-5); }
  .hero-sub { order: 2; }
  .hero-right { order: 3; height: 260px; border-radius: 20px; }
  .hero-actions { order: 4; }
  .hero-facts { order: 5; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); padding-top: var(--sp-3); }
  .hero-fact { padding: 0 var(--sp-2); border-left: none !important; border-top: none; }
  .hero-fact:first-child { padding-left: 0; }
  .hero-fact + .hero-fact { border-left: 1px solid var(--line) !important; }
  .hero-cards-strip { right: var(--sp-3); }
  .hero-mini { width: 60px; height: 60px; }
}

/* ============================================================
   LEAD FORM (shared card used in form sections)
   ============================================================ */
.lead-card {
  background: var(--white); border-radius: 24px; padding: var(--sp-5);
  border: 1px solid var(--line);
}
.lead-card h3 { font-size: 19px; margin-bottom: 4px; }
.lead-card .lc-sub { font-size: 13px; color: var(--muted); margin-bottom: var(--sp-4); }
.f-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-2); }
.f-field label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.f-field input, .f-field select {
  padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); font-size: 14px; color: var(--text); transition: border-color .15s;
}
@media (max-width: 900px) {
  .f-field input, .f-field select { padding: 18px 18px; font-size: 16px; border-radius: 14px; min-height: 58px; }
}
.f-field input:focus, .f-field select:focus { outline: none; border-color: var(--orange); }
.f-field input.err { border-color: #c0392b; }
.f-err { display: none; font-size: 12px; color: #c0392b; }
.f-err.show { display: block; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
.f-submit {
  width: 100%; margin-top: var(--sp-2); padding: 15px;
  background: var(--orange); color: #fff; border-radius: 12px;
  font-weight: 700; font-size: 14px; transition: background .2s, transform .2s;
}
.f-submit:hover { background: #9c3a00; transform: translateY(-1px); }
.f-note { font-size: 11px; color: #aaa; text-align: center; margin-top: var(--sp-2); }
.f-ok { display: none; flex-direction: column; align-items: center; text-align: center; padding: var(--sp-5) 0; }
.f-ok.show { display: flex; }
.f-ok svg { margin-bottom: var(--sp-3); }
.f-ok b { font-size: 17px; margin-bottom: 4px; }
.f-ok span { font-size: 13px; color: var(--muted); }

/* ============================================================
   SECTION HEAD
   ============================================================ */
.shead { margin-bottom: var(--sp-6); }
.shead.split { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-4); flex-wrap: wrap; }
.shead h2 { font-size: clamp(28px, 3.4vw, 44px); }
.shead p { font-size: 15px; color: var(--muted); max-width: 420px; }

/* ============================================================
   PAIN — tetris: 1 large card spans 2 rows + 3 stacked smalls,
   answer banner offset, breaking out of the grid edge
   ============================================================ */
#pain { padding: var(--sp-8) 0; }
.pain-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}
.pn { background: var(--surface); border: 1px solid var(--line); padding: var(--sp-4); position: relative; }
.pn .pnum { font-size: 11px; font-weight: 700; color: var(--orange); margin-bottom: var(--sp-3); }
.pn h4 { font-family:'Unbounded',sans-serif; font-size: 17px; margin-bottom: var(--sp-2); }
.pn p { font-size: 14px; color: var(--muted); }

.pn-a { grid-column: 1 / 2; grid-row: 1 / 3; border-radius: 20px; display:flex; flex-direction:column; justify-content:flex-end; }
.pn-a h4 { font-size: 22px; }
.pn-b { grid-column: 2 / 3; grid-row: 1 / 2; border-radius: 20px; }
.pn-c { grid-column: 3 / 4; grid-row: 1 / 2; border-radius: 20px; }
.pn-d { grid-column: 2 / 4; grid-row: 2 / 3; border-radius: 20px; display:flex; gap: var(--sp-4); align-items:center; }
.pn-d .pnum { margin-bottom: 0; }

.pain-answer {
  background: var(--text); color: var(--white);
  border-radius: 20px;
  padding: var(--sp-5) var(--sp-6);
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
}
.pain-answer p { font-family:'Unbounded',sans-serif; font-size: clamp(18px,2.4vw,26px); line-height:1.3; }
.pain-answer p em { color: var(--orange); font-style: normal; }

@media (max-width: 900px) {
  .pain-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; }
  .pn-a { grid-column: 1/3; grid-row: 1/2; border-radius: 24px; }
  .pn-b { grid-column: 1/2; grid-row: 2/3; }
  .pn-c { grid-column: 2/3; grid-row: 2/3; }
  .pn-d { grid-column: 1/3; grid-row: 3/4; flex-direction:column; align-items:flex-start; }
  .pain-answer { margin-left: 0; padding: var(--sp-4); }
}
@media (max-width: 560px) {
  .pain-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 10px;
  }
  .pn-a { grid-column: 1/2; grid-row: 1/3; border-radius: 20px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .pn-b { grid-column: 2/3; grid-row: 1/2; border-radius: 20px; }
  .pn-c { grid-column: 2/3; grid-row: 2/3; border-radius: 20px; }
  .pn-d { grid-column: 1/3; grid-row: 3/4; border-radius: 20px; display: block; }
  .pn-d .pnum { margin-bottom: var(--sp-3); }
  .pn-a h4, .pn-b h4, .pn-c h4, .pn-d h4 { font-size: 15px; }
}

/* ============================================================
   STAGES — 6 cards, 2 rows x 3, "snap-fit" puzzle connectors,
   zigzag reading order 1→2→3→4→5→6, slate fill
   ============================================================ */
#stages { padding: var(--sp-8) 0; }
.stage-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: var(--sp-3);
}
.sg {
  background: var(--slate); color: #fff; padding: var(--sp-4);
  position: relative; overflow: hidden; border-radius: 20px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.sg .sidx {
  font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 92px;
  color: rgba(255,255,255,.14); position: absolute; top: 0; right: 8px; line-height: 1;
}
.sg h4 { font-size: 16px; color: #fff; margin-bottom: var(--sp-2); max-width: 82%; position: relative; z-index: 2; }
.sg p { font-size: 13px; color: rgba(255,255,255,.62); max-width: 88%; position: relative; z-index: 2; }

/* Логический порядок: 1→2→3 (верх), 4→5→6 (низ) */
.sg1 { grid-column: 1/2; grid-row: 1/2; border-radius: 20px; }
.sg2 { grid-column: 2/3; grid-row: 1/2; border-radius: 20px; }
.sg3 { grid-column: 3/4; grid-row: 1/2; border-radius: 20px; }
.sg4 { grid-column: 1/2; grid-row: 2/3; border-radius: 20px; }
.sg5 { grid-column: 2/3; grid-row: 2/3; border-radius: 20px; }
.sg6 { grid-column: 3/4; grid-row: 2/3; border-radius: 20px; }

.sg-arrow {
  position: absolute; z-index: 5;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  backdrop-filter: blur(4px);
}
.sg-arrow.a1 { left: 33.333%; top: 25%; }
.sg-arrow.a2 { left: 66.666%; top: 25%; }
.sg-arrow.a3 { left: 33.333%; top: 75%; }
.sg-arrow.a4 { left: 66.666%; top: 75%; }

@media (max-width: 900px) {
  .stage-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; gap: 10px; }
  .sg1 { grid-column: 1/2; grid-row: 1/2; border-radius: 24px; }
  .sg2 { grid-column: 2/3; grid-row: 1/2; border-radius: 24px; }
  .sg3 { grid-column: 1/2; grid-row: 2/3; border-radius: 24px; }
  .sg4 { grid-column: 2/3; grid-row: 2/3; border-radius: 24px; }
  .sg5 { grid-column: 1/2; grid-row: 3/4; border-radius: 24px; }
  .sg6 { grid-column: 2/3; grid-row: 3/4; border-radius: 24px; }
  .sg-arrow { display: none; }
}
@media (max-width: 560px) {
  .stage-mosaic { grid-template-columns: 1fr; grid-auto-rows: 180px; gap: 10px; }
  .sg1, .sg2, .sg3, .sg4, .sg5, .sg6 { grid-column: 1/2; border-radius: 20px; }
  .sg1 { grid-row: 1/2; }
  .sg2 { grid-row: 2/3; }
  .sg3 { grid-row: 3/4; }
  .sg4 { grid-row: 4/5; }
  .sg5 { grid-row: 5/6; }
  .sg6 { grid-row: 6/7; }
  .sg-arrow { display: none; }
}

/* ============================================================
   SERVICES — uneven sizes: one wide hero card + two stacked
   ============================================================ */
#services { padding: var(--sp-8) 0; }
.svc-mosaic { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--sp-3); }
.svc-col-left { display: flex; flex-direction: column; gap: var(--sp-3); }
.svc-col { display: flex; flex-direction: column; gap: var(--sp-3); }
.svc-extra { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: var(--sp-5) var(--sp-5); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-shrink: 0; min-height: 140px; }
.svc-extra span { font-family: 'Unbounded', sans-serif; font-size: 17px; color: var(--text); }
.svc-extra-btn { font-size: 14px; white-space: nowrap; flex-shrink: 0; }
.svc-card { border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.svc-card.big { border-radius: 20px; flex: 1; }
.svc-card img { position: relative; width: 100%; height: 220px; object-fit: cover; display: block; flex-shrink: 0; }
.svc-card.big img { height: 360px; flex: none; }
.svc-card::after { display: none; }
.svc-body { background: var(--surface); padding: var(--sp-4); flex: 1; display:flex; flex-direction:column; justify-content:space-between; }
.svc-body h4 { font-family:'Unbounded',sans-serif; color: var(--text); font-size: 17px; margin-bottom: var(--sp-2); }
.svc-card.big .svc-body h4 { font-size: 22px; }
.svc-body p { color: var(--muted); font-size: 13px; margin-bottom: var(--sp-3); max-width: 320px; }
.svc-body a { font-size: 13px; font-weight: 700; color: var(--orange); display:inline-flex; align-items:center; gap:6px; }
.svc-body a:hover { color: var(--text); }

@media (max-width: 900px) {
  .svc-mosaic { display: flex; flex-direction: column; gap: 10px; }
  .svc-col-left, .svc-col { display: contents; }
  /* Порядок: turnkey → косметический → капитальный → "и любые другие" */
  .svc-card.big { order: 1; border-radius: 20px; }
  .svc-col > .svc-card:first-child { order: 2; }
  .svc-col > .svc-card:last-child { order: 3; }
  .svc-extra { order: 4; }
  /* Одинаковый размер картинок */
  .svc-card img, .svc-card.big img { height: 220px; }
}

/* ============================================================
   PORTFOLIO — masonry tetris, larger cells, one overlap "wrap"
   ============================================================ */
#portfolio { padding: var(--sp-8) 0; }
.pf-mosaic {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 280px 280px 220px; gap: var(--sp-3);
}
.pf-item { position: relative; border-radius: 18px; overflow: hidden; }
.pf-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pf-item:hover img { transform: scale(1.06); }
.pf-item .pl { position:absolute; left:0; right:0; bottom:0; padding: var(--sp-3); background: linear-gradient(0deg, rgba(0,0,0,.65), transparent); }
.pf-item .pl span { color:#fff; font-size: 13px; font-weight: 700; }

.pf1 { grid-column: 1/2; grid-row: 1/3; border-radius: 20px; }
.pf2 { grid-column: 2/4; grid-row: 1/2; border-radius: 20px; }
.pf3 { grid-column: 2/3; grid-row: 2/3; border-radius: 20px; }
.pf4 { grid-column: 3/4; grid-row: 2/3; border-radius: 20px; }
.pf5 { grid-column: 1/3; grid-row: 3/4; border-radius: 20px; }
.pf6 { grid-column: 3/4; grid-row: 3/4; border-radius: 20px; }

.pf-note { margin-top: var(--sp-4); font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: var(--sp-3); }

@media (max-width: 900px) {
  .pf-mosaic { grid-template-columns: repeat(2, 1fr); grid-template-rows: 240px 200px 200px 200px; }
  .pf1 { grid-column: 1/3; grid-row: 1/2; border-radius: 20px; }
  .pf2 { grid-column: 1/2; grid-row: 2/3; border-radius: 20px; }
  .pf3 { grid-column: 2/3; grid-row: 2/3; border-radius: 20px; }
  .pf4 { grid-column: 1/2; grid-row: 3/4; border-radius: 20px; }
  .pf5 { grid-column: 2/3; grid-row: 3/4; border-radius: 20px; }
  .pf6 { grid-column: 1/3; grid-row: 4/5; border-radius: 20px; }
}
@media (max-width: 560px) {
  .pf-mosaic {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 230px 170px 170px 210px;
    gap: 8px;
  }
  /* pf1: широкая панорама сверху */
  .pf1 { grid-column: 1/4; grid-row: 1/2; border-radius: 20px; }
  /* pf2: 2/3 слева, pf3: 1/3 справа */
  .pf2 { grid-column: 1/3; grid-row: 2/3; border-radius: 20px; }
  .pf3 { grid-column: 3/4; grid-row: 2/3; border-radius: 20px; width: auto; height: auto; }
  /* pf4: 1/3 слева, pf5: 2/3 справа — зеркально предыдущей строке */
  .pf4 { grid-column: 1/2; grid-row: 3/4; border-radius: 20px; width: auto; height: auto; }
  .pf5 { grid-column: 2/4; grid-row: 3/4; border-radius: 20px; }
  /* pf6: широкая панорама снизу */
  .pf6 { grid-column: 1/4; grid-row: 4/5; border-radius: 20px; }
}

/* ============================================================
   FORM SECTIONS (2 & 3)
   ============================================================ */
.form-section { padding: var(--sp-7) 0; }
.form-section.s2 { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.form-section.s3 { background: var(--orange); }
.form-section.s3 .eyebrow { color: rgba(255,255,255,.7); }
.form-section.s3 .eyebrow::before { background: rgba(255,255,255,.7); }
.form-section.s3 h2 { color: #fff; }
.form-section.s3 p.lead-sub { color: rgba(255,255,255,.78); }
.fs-grid { display: grid; grid-template-columns: 1fr 420px; gap: var(--sp-6); align-items: center; }
.fs-grid h2 { font-size: clamp(22px, 3vw, 36px); margin-bottom: var(--sp-3); }
.fs-text-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px 12px 12px 24px;
  padding: var(--sp-5); height: 100%; display: flex; flex-direction: column; justify-content: center;
}
.form-section.s1 .fs-grid { grid-template-columns: 1fr 420px; }
.form-section.s1 { background: var(--bg); }
.fs-checks { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); }
.fs-check { display: flex; align-items: center; gap: var(--sp-2); font-size: 14px; font-weight: 600; }
.fs-check i { width: 20px; height: 20px; border-radius: 50%; background: var(--orange); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.form-section.s3 .fs-check i { background: rgba(255,255,255,.25); }

@media (max-width: 900px) {
  .fs-grid,
  .form-section.s1 .fs-grid { grid-template-columns: 1fr; gap: 0; }
  .form-section.s1 .fs-grid {
    background: var(--white); border: 1px solid var(--line);
    border-radius: 24px; overflow: hidden;
  }
  .fs-text-card {
    border-radius: 0; border: none; border-bottom: 1px solid var(--line);
    background: var(--white);
  }
  .form-section.s1 .lead-card {
    border-radius: 0; border: none; background: var(--white);
  }
}

/* form-2 bento: wide central tile + decorative side bars */
.form-section.s2 { padding: 0; }
.f2-wrap {
  background: var(--orange);
  border-radius: 32px;
  padding: var(--sp-7) var(--sp-6);
  text-align: center;
  margin: 0 var(--sp-5);
}
.f2-eyebrow { color: rgba(255,255,255,.7); font-family: 'Unbounded',sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: var(--sp-3); display: flex; align-items: center; justify-content: center; gap: var(--sp-2); }
.f2-eyebrow::before { content:''; width:28px; height:2px; background:rgba(255,255,255,.4); border-radius:2px; }
.f2-title { color: #fff; font-size: clamp(22px,2.8vw,36px); margin: 0 0 var(--sp-2); }
.f2-sub { color: rgba(255,255,255,.75); font-size: 15px; margin-bottom: var(--sp-5); }
.f2-row { display: flex; gap: var(--sp-2); max-width: 780px; margin: 0 auto; }
.f2-input {
  flex: 1; height: 54px; padding: 0 var(--sp-4);
  border: none; border-radius: 14px;
  font-size: 15px; font-family: inherit;
  background: rgba(255,255,255,.18);
  color: #fff;
}
@media (max-width: 900px) {
  .f2-input { height: 62px; min-height: 62px; flex-basis: 62px; font-size: 16px; border-radius: 14px; padding: 0 18px; }
}
.f2-input::placeholder { color: rgba(255,255,255,.6); }
.f2-input:focus { outline: 2px solid rgba(255,255,255,.5); background: rgba(255,255,255,.25); }
.f2-btn {
  flex-shrink: 0; height: 54px; padding: 0 var(--sp-5);
  background: #fff; color: var(--orange);
  border: none; border-radius: 14px;
  font-family: 'Unbounded',sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: background .2s, transform .15s;
}
.f2-btn:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); }
.f2-err { display: none; color: rgba(255,255,255,.9); font-size: 12px; margin-top: var(--sp-2); }
.f2-err.show { display: block; }
.f2-note { color: rgba(255,255,255,.45); font-size: 12px; margin-top: var(--sp-3); }
.f2-ok { color: #fff !important; }
.f2-ok b { color: #fff; }
.f2-ok span { color: rgba(255,255,255,.75); }
@media (max-width: 700px) {
  .f2-wrap { margin: 0 var(--sp-3); padding: var(--sp-6) var(--sp-4); border-radius: 24px; }
  .f2-row { flex-direction: column; }
  .f2-btn { width: 100%; }
}
.form2-center {
  background: var(--white); border: 1px solid var(--line); border-radius: 28px;
  padding: var(--sp-6);
}
@media (max-width: 700px) {
  .form2-bento { grid-template-columns: 1fr; }
  .form2-bento .deco-bar { display: none; }
  .form2-center { padding: var(--sp-4); border-radius: 20px; }
  .f2-inline-row { flex-direction: column; }
  .f2-inline-row input, .f2-phone-wrap { width: 100%; }
  .f2-inline-row .f-submit { width: 100%; justify-content: center; }
  .f2-wrap { padding: var(--sp-5) var(--sp-4); border-radius: 20px; }
}

/* ============================================================
   PROCESS — non-overlapping tetris image mosaic + step cards
   ============================================================ */
#process { padding: var(--sp-8) 0; }
.process-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: var(--sp-5); align-items: stretch; }
.proc-mosaic {
  display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--sp-3);
  height: 480px;
}
.proc-mosaic .pc { border-radius: 20px; overflow: hidden; }
.proc-mosaic .pc1 { grid-column: 1/2; grid-row: 1/3; border-radius: 20px; }
.proc-mosaic .pc2 { grid-column: 2/3; grid-row: 1/2; border-radius: 20px; }
.proc-mosaic .pc3 { grid-column: 2/3; grid-row: 2/3; border-radius: 20px; }

.process-steps { display: flex; flex-direction: column; gap: var(--sp-3); }
.pstep {
  flex: 1; display: flex; gap: var(--sp-4); align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: var(--sp-4);
}
.pstep .pn2 { font-family:'Unbounded',sans-serif; font-size: 13px; color: var(--orange); width: 28px; flex-shrink:0; padding-top:3px; }
.pstep h4 { font-family:'Unbounded',sans-serif; font-size: 16px; margin-bottom: var(--sp-1); }
.pstep p { font-size: 14px; color: var(--muted); }

@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; display: flex; flex-direction: column; }
  .proc-mosaic { height: 360px; order: 2; }
  .process-steps { order: 1; margin-bottom: var(--sp-4); }
  .pstep { min-height: 134px; border-radius: 16px !important; }
}

/* ============================================================
   PRICES — bento: big slate price card + stacked feature pills
   ============================================================ */
#prices { padding: var(--sp-8) 0; }
.price-mosaic { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--sp-3); }
.price-card {
  background: var(--slate); color: #fff; border-radius: 20px;
  padding: var(--sp-5); display: flex; flex-direction: column; justify-content: space-between;
}
.price-card h3 { font-family:'Unbounded',sans-serif; font-size: 22px; margin-bottom: var(--sp-1); }
.price-card .pc-sub { font-size: 13px; color: rgba(255,255,255,.65); margin-bottom: var(--sp-4); }
.price-rows { display: flex; flex-direction: column; }
.price-row { display: flex; justify-content: space-between; padding: var(--sp-3) 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.price-row:last-child { border-bottom: none; }
.price-row b { font-family:'Unbounded',sans-serif; font-size: 18px; }
.price-row span { font-size: 14px; color: rgba(255,255,255,.7); }

.price-side { display: flex; flex-direction: column; gap: var(--sp-3); }
.pside-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: var(--sp-4); flex: 1; }
.pside-card h5 { font-family:'Unbounded',sans-serif; font-size: 15px; margin-bottom: var(--sp-2); }
.pside-card p { font-size: 13px; color: var(--muted); }

@media (max-width: 900px) { .price-mosaic { grid-template-columns: 1fr; } }

/* ============================================================
   WHY — mosaic 4 uneven cards (not 2x2 uniform)
   ============================================================ */
#why { padding: var(--sp-8) 0; }
.why-mosaic { display: grid; grid-template-columns: repeat(5,1fr); grid-auto-rows: 180px; gap: var(--sp-3); }
.wc { background: var(--surface); border: 1px solid var(--line); padding: var(--sp-4); display:flex; flex-direction:column; justify-content:flex-end; position:relative; }
.wc .wnum { position:absolute; top: var(--sp-3); right: var(--sp-3); font-family:'Unbounded',sans-serif; font-size:13px; color: var(--orange); }
.wc h4 { font-family:'Unbounded',sans-serif; font-size: 17px; margin-bottom: var(--sp-2); }
.wc p { font-size: 13px; color: var(--muted); }
.wc1 { grid-column: span 2; grid-row: span 2; border-radius: 20px; background: var(--text); color:#fff; }
.wc1 p { color: rgba(255,255,255,.6); }
.wc2 { grid-column: span 3; grid-row: span 1; border-radius: 20px; }
.wc3 { grid-column: span 2; grid-row: span 1; }
.wc4 { grid-column: span 1; grid-row: span 1; border-radius: 20px; background: var(--orange); color:#fff; }
.wc4 p { color: rgba(255,255,255,.85); }
.wc4 .wnum { color: rgba(255,255,255,.6); }

@media (max-width: 900px) {
  .why-mosaic { grid-template-columns: repeat(2,1fr); grid-auto-rows: auto; }
  .wc1 { grid-column: span 2; }
  .wc2, .wc3, .wc4 { grid-column: span 2; }
}
@media (max-width: 560px) {
  .why-mosaic { grid-template-columns: 1fr; }
  .wc1, .wc2, .wc3, .wc4 { grid-column: 1/2; }
}

/* ============================================================
   REVIEWS — 5 cards, tetris assembly
   ============================================================ */
#reviews { padding: var(--sp-8) 0; }
.rev-row { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; gap: var(--sp-3); align-items: stretch; }
.rev-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: var(--sp-4); display: flex; flex-direction: column; }
.rev-stars { display: flex; gap: 3px; margin-bottom: var(--sp-3); color: var(--orange); font-size: 13px; }
.rev-text { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: var(--sp-3); font-style: italic; flex: 1; }
.rev-author { font-family:'Unbounded',sans-serif; font-size: 14px; }
.rev-meta { font-size: 12px; color: var(--muted); }

.rev1 { grid-column: 1/2; grid-row: 1/3; border-radius: 20px; justify-content: center; }
.rev2 { grid-column: 2/3; grid-row: 1/2; border-radius: 20px; }
.rev3 { grid-column: 3/4; grid-row: 1/3; border-radius: 20px; justify-content: center; background: var(--slate); }
.rev3 .rev-text, .rev3 .rev-meta { color: rgba(255,255,255,.7); }
.rev3 .rev-author { color: #fff; }
.rev3 .rev-stars { color: var(--orange); }
.rev4 { grid-column: 2/3; grid-row: 2/3; border-radius: 20px; }
.rev5 { grid-column: 1/3; grid-row: 3/4; border-radius: 20px; display: flex; flex-direction: row; align-items: center; gap: var(--sp-4); }
.rev5 .rev-stars { margin-bottom: 0; }
.rev5 .rev-text { margin-bottom: 0; }
.rev6 { grid-column: 3/4; grid-row: 3/4; border-radius: 20px; }

@media (max-width: 900px) {
  .rev-row { grid-template-columns: 1fr 1fr; }
  .rev1 { grid-column: 1/2; grid-row: 1/2; }
  .rev2 { grid-column: 2/3; grid-row: 1/2; }
  .rev3 { grid-column: 1/2; grid-row: 2/3; }
  .rev4 { grid-column: 2/3; grid-row: 2/3; }
  .rev5 { grid-column: 1/3; grid-row: 3/4; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .rev-row {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: auto auto auto auto;
    gap: 10px;
  }
  .rev1 { grid-column: 1/6; grid-row: 1/2; border-radius: 20px; }
  .rev2 { grid-column: 1/4; grid-row: 2/3; border-radius: 20px; }
  .rev3 { grid-column: 4/6; grid-row: 2/3; border-radius: 20px; }
  .rev4 { grid-column: 1/3; grid-row: 3/4; border-radius: 20px; }
  .rev5 { grid-column: 3/6; grid-row: 3/4; border-radius: 20px; flex-direction: column; align-items: flex-start; }
  .rev6 { grid-column: 1/6; grid-row: 4/5; border-radius: 20px; }
}

/* ============================================================
   FAQ — left: one big text card · right: horizontal question cards
   ============================================================ */
#faq { padding: var(--sp-8) 0; }
.faq-grid { display: grid; grid-template-columns: 320px 1fr; gap: var(--sp-4); align-items: stretch; }
.faq-side {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: var(--sp-5); display: flex; flex-direction: column; justify-content: space-between;
}
.faq-side h2 { font-size: clamp(22px,2.4vw,30px); margin-bottom: var(--sp-3); }
.faq-side p { font-size: 14px; color: var(--muted); margin-bottom: var(--sp-4); }
.faq-call-mini {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--orange); border: 1px solid var(--orange); border-radius: 100px;
  padding: 12px 28px; font-size: 14px; font-weight: 600; color: #fff;
  align-self: flex-start; transition: opacity .15s;
}
.faq-call-mini:hover { opacity: .85; }
.faq-call-mini svg { width: 16px; height: 16px; flex-shrink: 0; stroke: #fff; }

.faq-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: 0 var(--sp-4); transition: border-color .15s;
}
.faq-item.open { border-color: var(--orange); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; text-align: left; font-family:'Unbounded',sans-serif; font-weight: 600; font-size: 14px; }
.faq-q:hover { color: var(--orange); }
.faq-icon { width: 20px; height: 20px; flex-shrink:0; position: relative; }
.faq-icon::before, .faq-icon::after { content:''; position:absolute; background: currentColor; border-radius:2px; }
.faq-icon::before { width:12px; height:2px; top:9px; left:4px; }
.faq-icon::after { width:2px; height:12px; top:4px; left:9px; }
.faq-a { max-height:0; overflow:hidden; font-size: 14px; color: var(--muted); line-height: 1.7; }
.faq-a-inner { padding-bottom: var(--sp-3); }

@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FINAL CTA
   ============================================================ */
#cta-final { position: relative; min-height: 440px; display: flex; align-items: center; overflow: hidden; margin: 0 var(--sp-5); border-radius: 32px; }
.cta-bg { position: absolute; inset: 0; }
.cta-bg::after { content:''; position:absolute; inset:0; background: rgba(0,0,0,.6); }
.cta-content { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; text-align: center; padding: var(--sp-7) var(--sp-4); }
.cta-content h2, .cta-title { color: #fff; font-size: clamp(18px,2.2vw,28px); margin-bottom: var(--sp-3); }
.cta-content p { color: rgba(255,255,255,.7); margin-bottom: var(--sp-5); }
.cta-actions { display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }
.cta-tg { margin-top: var(--sp-4); font-size: 14px; color: rgba(255,255,255,.6); }
.cta-tg a { color: #fff; font-weight: 700; }

@media (max-width: 600px) { #cta-final { margin: 0 var(--sp-3); border-radius: 24px; } }

/* ============================================================
   FOOTER
   ============================================================ */
#footer { background: var(--text); padding: var(--sp-7) 0 var(--sp-4); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--sp-6); margin-bottom: var(--sp-6); }
.footer-logo { font-family:'Unbounded',sans-serif; font-size: 19px; margin-bottom: var(--sp-2); }
.footer-logo span { color: var(--orange); }
.footer-logo-img { height: 36px; width: auto; display: block; margin-bottom: var(--sp-2); }
.footer-tag { font-size: 13px; color: rgba(255,255,255,.4); max-width: 260px; line-height: 1.6; }
.footer-h { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: var(--sp-3); }
.footer-links { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.6); }
.footer-links a:hover { color: #fff; }
.footer-contacts { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-contacts .fl { font-size: 11px; color: rgba(255,255,255,.3); }
.footer-contacts .fv { font-size: 14px; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: var(--sp-4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2); font-size: 12px; color: rgba(255,255,255,.25); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lb-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.lb-overlay.open { opacity: 1; pointer-events: all; }
#lbImg {
  max-width: 90vw; max-height: 88vh;
  object-fit: contain; border-radius: 12px;
  transition: opacity .2s ease;
}
.lb-close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,.12); border: none; border-radius: 50%;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
.lb-close:hover { background: rgba(255,255,255,.25); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.12); border: none; border-radius: 50%;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s;
}
.lb-nav:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
.pf-item { cursor: pointer; }
@media (max-width: 560px) { .lb-nav { width: 40px; height: 40px; } }

@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   REVEAL (fallback for reduced motion / no GSAP)
   ============================================================ */
.gsap-init { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .gsap-init { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   MOBILE FIXES
   ============================================================ */
@media (max-width: 900px) {
  /* Hero facts — выравниваем текст */
  .hero-fact span { font-size: 11px; line-height: 1.3; }

  /* Hero — кнопки на всю ширину */
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }

  /* Сервисы — заголовок big-карточки = обычный */
  .svc-card.big .svc-body h4 { font-size: 17px; }

  /* Сервисы — последняя плашка: текст и кнопка в колонку */
  .svc-extra { flex-direction: column; align-items: stretch; }
  .svc-extra span { white-space: normal; }
  .svc-extra-btn { width: 100%; text-align: center; justify-content: center; }

  /* Все плашки — одинаковое скругление 20px */
  .wc1, .wc2, .wc3, .wc4 { border-radius: 20px !important; }
  .pn-a, .pn-b, .pn-c, .pn-d { border-radius: 20px !important; }
  .pstep { border-radius: 20px !important; }
  .faq-item { border-radius: 20px !important; }
  .rev-card { border-radius: 20px !important; }

  /* FAQ — плашки одинаковой минимальной высоты */
  .faq-item { min-height: 64px; }

  /* FAQ — текст вопросов чёрный */
  .faq-q { color: var(--text); }
  .faq-q:hover { color: var(--orange); }

  /* Отзывы — одна колонка, все карточки одинаковые */
  .rev-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
  }
  .rev1, .rev2, .rev3, .rev4, .rev5, .rev6 {
    grid-column: unset !important;
    grid-row: unset !important;
    border-radius: 20px !important;
    width: 100%;
  }
  .rev5 { flex-direction: column; align-items: flex-start; }
}
