/* =========================================================
   Демо-лендинг «АероТерм Інжиніринг»
   Акцентний колір проєкту — бірюзово-синій #0e94b8
   ========================================================= */

:root {
  --accent: #0e94b8;
  --accent-hover: #0b7f9f;
  --accent-soft: rgba(14, 148, 184, .12);
  --accent-line: rgba(14, 148, 184, .35);

  --bg: #f5f7f9;
  --surface: #ffffff;
  --surface-2: #f9fafc;
  --text: #1c2330;
  --text-muted: #67707f;
  --border: #e4e8ee;
  --shadow: 0 1px 2px rgba(20, 30, 45, .05), 0 8px 24px rgba(20, 30, 45, .06);
  --shadow-lg: 0 16px 48px rgba(20, 30, 45, .16);

  --ok: #12a06a;
  --warn: #e5731f;
  --err: #e0475b;

  --radius: 12px;
  --radius-sm: 10px;
  --header-h: 66px;

  /* Друга, «тепла» фарба — тільки для сигнальних деталей (термо / димовидалення) */
  --accent-2: #ff7a35;
  --accent-2-soft: rgba(255, 122, 53, .12);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #12151b;
  --surface: #191d25;
  --surface-2: #1f242e;
  --text: #e7eaf0;
  --text-muted: #99a2b2;
  --border: #2a303b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .32), 0 8px 24px rgba(0, 0, 0, .3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .52);
  --accent: #2ab0d4;
  --accent-hover: #48c1e2;
  --accent-soft: rgba(42, 176, 212, .16);
  --accent-line: rgba(42, 176, 212, .4);
  --ok: #2ecc8f;
  --err: #ff6b7d;
  --accent-2: #ff8f52;
  --accent-2-soft: rgba(255, 143, 82, .14);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color .2s ease, color .2s ease;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--font-head); letter-spacing: -.025em; line-height: 1.15; margin: 0; text-wrap: balance; }
.lead, .sec-head p, .pain p, .adv-item p, .case-body p, .step p { text-wrap: pretty; }
.fact b, .tab-kpi b, .result-price, .case-foot b, .kv b, .step-n, .quiz-counter, .range-val {
  font-variant-numeric: tabular-nums;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
p { margin: 0; }

.ic { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.filled { fill: currentColor; stroke: none; }

.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.muted { color: var(--text-muted); }
.small { font-size: 13px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------------- Кнопки ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 14px; font-weight: 600;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .12s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn { min-height: 40px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent-line); color: var(--accent); }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; pointer-events: none; }

.icon-btn {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center;
  border: 1px solid transparent; background: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  position: relative;
  transition: background-color .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn .dot {
  position: absolute; top: 3px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 10px; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; font-style: normal;
}

/* ---------------- Шапка ---------------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-in { display: flex; align-items: center; gap: 18px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #63c8e0);
  display: grid; place-items: center; color: #fff;
}
.brand-text { font-weight: 700; letter-spacing: -.3px; line-height: 1.15; }
.brand-text small { display: block; font-weight: 400; font-size: 11px; color: var(--text-muted); }

.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  padding: 8px 11px; white-space: nowrap; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-muted);
  transition: background-color .15s ease, color .15s ease;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.phone-link { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; padding: 0 6px; white-space: nowrap; }
.phone-link:hover { color: var(--accent); }
.burger { display: none; }

.progress { height: 2px; background: var(--accent); width: 0; transition: width .1s linear; }

/* ---------------- Перший екран ---------------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 78% -8%, var(--accent-soft), transparent 70%),
    radial-gradient(700px 400px at 6% 108%, rgba(14, 148, 184, .09), transparent 70%);
  pointer-events: none;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .5;
  mask-image: radial-gradient(700px 340px at 70% 20%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 340px at 70% 20%, #000, transparent 75%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1fr 384px; gap: 40px; align-items: start; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-line);
  border-radius: 30px; padding: 5px 13px 5px 10px;
  font-size: 13px; font-weight: 600;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-line); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero h1 { font-size: clamp(30px, 4.4vw, 47px); margin: 18px 0 14px; font-weight: 750; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 16px; color: var(--text-muted); max-width: 620px; }

.hero-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0; }
.fact {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 16px; box-shadow: var(--shadow); min-width: 118px;
}
.fact b { display: block; font-size: 22px; letter-spacing: -.5px; color: var(--accent); }
.fact span { font-size: 12.5px; color: var(--text-muted); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--text-muted); max-width: 520px; }
.hero-note .ic { flex: 0 0 15px; margin-top: 3px; }

.hero-card-mark {
  position: absolute; top: -9px; left: -9px; width: 26px; height: 26px;
  border-top: 2px solid var(--accent); border-left: 2px solid var(--accent);
  border-radius: 4px 0 0 0;
}
.hero-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; }
.hero-card-head { margin-bottom: 16px; }
.hero-card-head strong { display: block; font-size: 17px; }
.hero-card-head span { font-size: 13px; color: var(--text-muted); }

/* ---------------- Форми ---------------- */
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: block; }
.field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; }
.field > span i { font-weight: 400; font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; min-height: 74px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field.invalid input { border-color: var(--err); }
.err { display: none; font-style: normal; font-size: 12px; color: var(--err); margin-top: 4px; }
.field.invalid .err { display: block; }
.form-note { font-size: 12px; color: var(--text-muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .field-wide { grid-column: 1 / -1; }

/* ---------------- Секції ---------------- */
.section { padding: 72px 0; }
.section:nth-of-type(even) { padding: 92px 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { max-width: 720px; margin-bottom: 32px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.sec-head h2 { font-size: clamp(23px, 3vw, 32px); margin-bottom: 10px; }
.sec-head p { color: var(--text-muted); }

/* ---------------- Болі ---------------- */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pain {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
  cursor: default;
}
.pain:hover, .pain:focus-within { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--shadow-lg); }
.pain-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.pain h3 { font-size: 16.5px; margin-bottom: 7px; }
.pain p { font-size: 14px; color: var(--text-muted); }
.pain-fix {
  margin-top: 13px; padding-top: 13px; border-top: 1px dashed var(--border);
  display: flex; gap: 8px; font-size: 13.5px;
  max-height: 0; overflow: hidden; opacity: 0; padding-top: 0; margin-top: 0; border-top-width: 0;
  transition: max-height .28s ease, opacity .2s ease, margin-top .2s ease, padding-top .2s ease;
}
.pain:hover .pain-fix, .pain.open .pain-fix { max-height: 180px; opacity: 1; margin-top: 13px; padding-top: 13px; border-top-width: 1px; }
.pain-fix .ic { flex: 0 0 16px; margin-top: 3px; color: var(--ok); }
.pain-fix b { color: var(--ok); }

/* ---------------- Таби послуг ---------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 30px; padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--text-muted);
  transition: all .15s ease;
}
.tab:hover { color: var(--text); border-color: var(--accent-line); }
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.tab-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tab-main { padding: 26px; }
.tab-main h3 { font-size: 21px; margin-bottom: 8px; }
.tab-main > p { color: var(--text-muted); margin-bottom: 16px; }
.tab-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tab-points li { display: flex; gap: 10px; font-size: 14px; }
.tab-points .ic { flex: 0 0 17px; margin-top: 3px; color: var(--accent); }
.tab-side { padding: 26px; background: var(--surface-2); border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 16px; }
.tab-kpi b { display: block; font-size: 20px; color: var(--accent); letter-spacing: -.4px; }
.tab-kpi span { font-size: 12.5px; color: var(--text-muted); }
.brands { display: flex; flex-wrap: wrap; gap: 6px; }
.brands span { font-size: 12px; padding: 4px 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.tab-side .btn { margin-top: auto; }
.fade-in { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------- Квіз ---------------- */
.quiz { padding: 26px; max-width: 900px; margin: 0 auto; }
.quiz-bar { height: 5px; background: var(--surface-2); border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }
.quiz-bar span { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s ease; }
.quiz-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 4px; }
.quiz-steps i {
  font-style: normal; font-size: 12px; color: var(--text-muted);
  padding: 3px 9px; border-radius: 20px; border: 1px solid var(--border);
}
.quiz-steps i.done { color: var(--ok); border-color: var(--ok); }
.quiz-steps i.now { color: var(--accent); border-color: var(--accent); font-weight: 600; }

.quiz-body { padding: 18px 0 6px; min-height: 300px; }
.quiz-body h3 { font-size: 20px; margin-bottom: 6px; }
.quiz-hint { font-size: 13.5px; color: var(--text-muted); margin-bottom: 18px; }
.quiz-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.opt {
  display: flex; align-items: center; gap: 11px; text-align: left;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px; font-size: 14px; font-weight: 500;
  transition: all .15s ease;
}
.opt:hover { border-color: var(--accent-line); background: var(--surface); }
.opt .ic { flex: 0 0 20px; color: var(--accent); }
.opt.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.opt .mark { margin-left: auto; width: 18px; height: 18px; border-radius: 6px; border: 1px solid var(--border); flex: 0 0 18px; display: grid; place-items: center; }
.opt.on .mark { background: var(--accent); border-color: var(--accent); color: #fff; }

.quiz-area { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.range-val { font-size: 26px; font-weight: 700; color: var(--accent); letter-spacing: -.5px; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.range-marks { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }

.quiz-foot { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding-top: 16px; }
.quiz-counter { margin-left: auto; margin-right: auto; font-size: 13px; color: var(--text-muted); }

.result { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.result-sum { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.result-price { font-size: clamp(24px, 4vw, 34px); font-weight: 750; color: var(--accent); letter-spacing: -1px; margin: 4px 0 6px; }
.result-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 13.5px; }
.result-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--border); padding-bottom: 6px; }
.result-list li b { font-weight: 600; text-align: right; }

/* ---------------- Переваги ---------------- */
.adv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.adv-item:first-child { grid-column: span 2; display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.adv-item:first-child h3, .adv-item:first-child p { grid-column: 2; }
.adv-item:first-child h3 { font-size: 20px; align-self: center; }
.adv-item:first-child .pain-ic { width: 48px; height: 48px; margin: 0; }
.adv-cta {
  grid-column: span 2;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: var(--radius); padding: 22px;
}
.adv-cta b { font-family: var(--font-head); font-size: 17px; display: block; }
.adv-cta span { font-size: 13.5px; color: var(--text-muted); }
.adv-cta .btn { margin-left: auto; }
.adv-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.adv-item .pain-ic { margin-bottom: 14px; }
.adv-item h3 { font-size: 16.5px; margin-bottom: 7px; }
.adv-item p { font-size: 14px; color: var(--text-muted); }

/* ---------------- Портфоліо ---------------- */
.filters { margin-bottom: 22px; display: grid; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--surface); border: 1px solid var(--border); border-radius: 30px;
  padding: 7px 15px; font-size: 13.5px; font-weight: 600; color: var(--text-muted);
  transition: all .15s ease;
}
.chip:hover { border-color: var(--accent-line); color: var(--text); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.filters-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.search { position: relative; flex: 1 1 260px; display: flex; align-items: center; }
.search .ic { position: absolute; left: 12px; color: var(--text-muted); }
.search input {
  width: 100%; padding: 10px 12px 10px 36px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14px; outline: none;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.filters-row select {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 14px; outline: none;
}
.filters-row select:focus { border-color: var(--accent); }
.filters-info { font-size: 13px; color: var(--text-muted); }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case {
  text-align: left; padding: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.case:hover { transform: translateY(-3px); border-color: var(--accent-line); box-shadow: var(--shadow-lg); }
.case-photo {
  height: 128px; position: relative; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-soft), transparent), var(--surface-2);
  border-bottom: 1px solid var(--border); color: var(--accent);
}
.case-photo::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .55;
}
.case-photo .ic { width: 40px; height: 40px; position: relative; z-index: 1; opacity: .85; }
.case-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-size: 11.5px; font-weight: 650; padding: 3px 9px; border-radius: 20px;
}
.case-body { padding: 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.case-body h3 { font-size: 15.5px; line-height: 1.35; }
.case-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.case-meta span { font-size: 11.5px; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 20px; padding: 2px 9px; }
.case-body p { font-size: 13.5px; color: var(--text-muted); }
.case-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.case-foot b { color: var(--accent); }
.case-foot em { font-style: normal; color: var(--text-muted); display: inline-flex; align-items: center; gap: 5px; }

.cases-more { text-align: center; margin-top: 22px; }
.empty { text-align: center; padding: 46px 20px; color: var(--text-muted); display: grid; place-items: center; gap: 8px; }
.empty strong { color: var(--text); font-size: 16px; }
.empty .ic { color: var(--text-muted); opacity: .6; }

/* ---------------- Темна технічна смуга (процес) ---------------- */
.section-dark {
  position: relative;
  background: #0e1620;
  color: #e6edf5;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.section-dark::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 420px at 20% 0%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(900px 420px at 20% 0%, #000, transparent 78%);
}
.section-dark .wrap { position: relative; }
.section-dark .sec-head p { color: #9fb0c2; }
.section-dark .eyebrow { color: #4ac3e6; }
.section-dark .step {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .1);
  box-shadow: none;
}
.section-dark .step p { color: #9fb0c2; }
.section-dark .step-time { background: rgba(74, 195, 230, .14); color: #4ac3e6; }
.section-dark .step::after {
  content: ''; position: absolute; top: 37px; right: -16px; width: 16px; height: 1px;
  background: rgba(255, 255, 255, .16);
}
.section-dark .step:last-child::after { display: none; }

/* ---------------- Процес ---------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.step-n {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 700; margin-bottom: 12px;
}
.step h3 { font-size: 15.5px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--text-muted); }
.step-time { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 12px; color: var(--accent); background: var(--accent-soft); padding: 2px 9px; border-radius: 20px; }
.steps-cta { text-align: center; margin-top: 26px; }

/* ---------------- B2B ---------------- */
.b2b { display: grid; grid-template-columns: 1.35fr 1fr; gap: 30px; padding: 32px; }
.b2b h2 { font-size: clamp(22px, 3vw, 29px); margin-bottom: 10px; }
.b2b > .b2b-text > p { color: var(--text-muted); }
.b2b-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 11px; }
.b2b-list li { display: flex; gap: 10px; font-size: 14.5px; }
.b2b-list .ic { flex: 0 0 17px; margin-top: 4px; color: var(--ok); }
.b2b-form { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; align-self: start; }
.b2b-form-title { font-size: 17px; }

/* ---------------- Відгуки ---------------- */
.slider { position: relative; }
.slider-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; padding: 4px 2px 14px;
  scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 min(390px, 84%); scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
}
.stars { display: flex; gap: 3px; color: var(--accent-2); }
.stars .ic { width: 15px; height: 15px; }
.review p { font-size: 14px; }
.review-who { margin-top: auto; display: flex; align-items: center; gap: 11px; padding-top: 12px; border-top: 1px solid var(--border); }
.avatar {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.review-who b { display: block; font-size: 14px; }
.review-who span { font-size: 12.5px; color: var(--text-muted); }
.review-date { margin-left: auto; font-size: 12px; color: var(--text-muted); }

.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.slider-btn:hover { border-color: var(--accent); color: var(--accent); }
.slider-btn.prev { left: -21px; }
.slider-btn.next { right: -21px; }
/* стрілки виносимо за межі контенту — ховаємо, коли для них немає місця */
@media (max-width: 1260px) { .slider-btn { display: none; } }

.dots { display: flex; justify-content: center; gap: 6px; margin: 4px 0 30px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--border); transition: all .2s ease; cursor: pointer; }
.dots i.on { background: var(--accent); width: 20px; border-radius: 4px; }

.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cert { display: flex; gap: 13px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.cert-ic { width: 42px; height: 52px; flex: 0 0 42px; border-radius: 7px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.cert b { display: block; font-size: 14.5px; }
.cert span { font-size: 12.5px; color: var(--text-muted); }
.cert em { display: block; font-style: normal; font-size: 12px; color: var(--accent); margin-top: 4px; }

/* ---------------- Фінал і контакти ---------------- */
.final-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; }
.final-form { padding: 28px; }
.final-form h2 { font-size: clamp(22px, 3vw, 29px); margin-bottom: 10px; }
.final-form .form { margin-top: 20px; }
.final-contacts { display: grid; gap: 16px; }
.contacts-card { padding: 22px; display: grid; gap: 14px; }
.contact-row { display: flex; gap: 12px; align-items: flex-start; }
.contact-row .pain-ic { width: 36px; height: 36px; flex: 0 0 36px; margin: 0; border-radius: 10px; }
.contact-row b { display: block; font-size: 14.5px; }
.contact-row span { font-size: 13px; color: var(--text-muted); }
.messengers { display: flex; gap: 8px; flex-wrap: wrap; }

.map { position: relative; height: 232px; overflow: hidden; background: var(--surface-2); }
.map-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 34px 34px;
}
.map::after {
  content: ''; position: absolute; left: -10%; top: 46%; width: 120%; height: 16px;
  background: var(--accent-soft); transform: rotate(-7deg);
}
.map-pin { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); color: var(--accent); z-index: 2; animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, -62%); } }
.map-label { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 14px; box-shadow: var(--shadow); }
.map-label strong { display: block; font-size: 14px; }
.map-label span { font-size: 13px; color: var(--text-muted); }
.map-label em { display: block; font-style: normal; font-size: 11.5px; color: var(--text-muted); opacity: .8; margin-top: 3px; }

/* ---------------- Підвал ---------------- */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 30px 0; }
.footer-in { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 20px; align-items: start; }
.footer .brand { margin-bottom: 10px; }
.footer-nav { display: grid; gap: 6px; font-size: 14px; }
.footer-nav a { color: var(--text-muted); }
.footer-nav a:hover { color: var(--accent); }

/* ---------------- Плаваючі ---------------- */
.demo-badge {
  position: fixed; left: 14px; bottom: 14px; z-index: 70;
  background: var(--surface); border: 1px solid var(--border); border-radius: 30px;
  padding: 6px 13px; font-size: 12px; color: var(--text-muted);
  box-shadow: var(--shadow);
}
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #fff; border: 0; border-radius: 30px;
  padding: 13px 20px; font-size: 14px; font-weight: 650;
  box-shadow: 0 10px 30px rgba(14, 148, 184, .38);
  animation: fade .3s ease;
}
.fab:hover { background: var(--accent-hover); }

/* ---------------- Модалка ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-back { position: absolute; inset: 0; background: rgba(10, 15, 22, .55); backdrop-filter: blur(3px); }
.modal-box { position: relative; width: min(720px, 100%); max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: pop .2s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 3; background: var(--surface); }
.modal-content { padding: 28px; }
.modal-content h3 { font-size: 21px; margin-bottom: 6px; padding-right: 40px; }

.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.ba-col { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; background: var(--surface-2); }
.ba-col.after { border-color: var(--accent-line); background: var(--accent-soft); }
.ba-col b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-2); margin-bottom: 6px; }
.ba-col:not(.after) { border-color: var(--accent-2-soft); }
.ba-col.after b { color: var(--accent); }
.ba-col p { font-size: 14px; }

.specs { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.specs li { display: flex; gap: 9px; font-size: 14px; }
.specs .ic { flex: 0 0 16px; margin-top: 3px; color: var(--accent); }

.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.kv div { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px; }
.kv b { display: block; font-size: 16px; color: var(--accent); }
.kv span { font-size: 12px; color: var(--text-muted); }

.lead-row { display: flex; gap: 12px; align-items: flex-start; border-bottom: 1px solid var(--border); padding: 12px 0; font-size: 14px; }
.lead-row:last-child { border-bottom: 0; }
.lead-row .avatar { width: 34px; height: 34px; flex-basis: 34px; font-size: 13px; }
.lead-row b { display: block; }
.lead-row span { font-size: 12.5px; color: var(--text-muted); }
.lead-row time { margin-left: auto; font-size: 12px; color: var(--text-muted); white-space: nowrap; }

.ok-ic { width: 54px; height: 54px; border-radius: 50%; background: var(--accent-soft); color: var(--ok); display: grid; place-items: center; margin-bottom: 14px; }

/* ---------------- Тост ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  z-index: 120; background: var(--text); color: var(--bg);
  padding: 11px 18px; border-radius: 30px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ================= Адаптив ================= */
/* Телефон у шапці ховаємо раніше за меню — інакше шапка стає тісною */
@media (max-width: 1300px) {
  .phone-link { display: none; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .hero-in { grid-template-columns: 1fr 340px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .pains, .adv, .cases, .certs { grid-template-columns: repeat(2, 1fr); }
  .adv-item:first-child, .adv-cta { grid-column: span 2; }
  .quiz-opts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-card { max-width: 460px; }
  .tab-body { grid-template-columns: 1fr; }
  .tab-side { border-left: 0; border-top: 1px solid var(--border); }
  .b2b, .final-grid, .result, .quiz-area { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; }
  .slider-btn { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .wrap { width: min(1160px, 100% - 28px); }
  .section { padding: 46px 0; }
  .header-actions .btn, .phone-link { display: none; }
  .burger { display: grid; }
  .header.open .nav {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 10px 20px 16px; gap: 2px;
    box-shadow: var(--shadow);
  }
  .header.open .nav a { padding: 11px 12px; }
  .pains, .adv, .cases, .certs, .steps, .quiz-opts, .ba, .form-grid { grid-template-columns: 1fr; }
  .adv-item:first-child, .adv-cta { grid-column: span 1; }
  .adv-item:first-child { grid-template-columns: 1fr; gap: 12px; }
  .adv-cta .btn { margin-left: 0; width: 100%; }
  .section:nth-of-type(even) { padding: 46px 0; }
  .kv { grid-template-columns: repeat(2, 1fr); }
  .quiz { padding: 18px; }
  .quiz-body { min-height: 0; }
  .modal-content { padding: 20px; }
  .b2b { padding: 20px; }
  .final-form { padding: 20px; }
  .demo-badge { font-size: 11px; padding: 5px 10px; }
  .fab span { display: none; }
  .fab { padding: 15px; border-radius: 50%; }
  .hero { padding: 34px 0 44px; }
  .hero-facts { gap: 8px; }
  .fact { flex: 1 1 calc(50% - 8px); min-width: 0; padding: 10px 12px; }
  .quiz-foot .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   ДОРОГИЙ ШАР — фото, рух, контраст масштабів, деталізація.
   Наскрізна ідея: «технічний аркуш» — сторінка як набір креслень.
   Цей блок іде останнім і свідомо перекриває базові стилі вище.
   ========================================================================= */

/* ---------- 1. Токени: нейтральна шкала 9 ступенів + деталі ---------- */
:root {
  --n50:#f7f9fa; --n100:#eef1f4; --n200:#dfe4ea; --n300:#c3ccd6;
  --n400:#93a0ae; --n500:#67737f; --n600:#4a545e; --n700:#333b44;
  --n800:#1f252c; --n900:#12171c;

  --signal:#ff7a35;                    /* сигнальний, лише на зарубках і акцентах */
  --hair: rgb(18 23 28 / .10);          /* волосяна лінія замість сірої рамки */
  --hair-strong: rgb(18 23 28 / .18);
  --ink: var(--n900);

  --shadow-soft: 0 24px 60px -20px rgb(18 23 28 / .18);
  --shadow-lift: 0 36px 80px -24px rgb(18 23 28 / .28);

  --radius: 14px;
  --radius-sm: 8px;                     /* лише два радіуси на всю сторінку */

  --font: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Space Grotesk', var(--font);
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);  /* повільний, «дорогий» easing */
  --dur: .7s;
}

[data-theme="dark"] {
  --hair: rgb(255 255 255 / .09);
  --hair-strong: rgb(255 255 255 / .16);
  --ink: #0d1116;
  --shadow-soft: 0 24px 60px -20px rgb(0 0 0 / .55);
  --shadow-lift: 0 36px 80px -24px rgb(0 0 0 / .7);
}

body { font-size: 16px; }

/* ---------- 2. Контраст масштабів ---------- */
h1, .h1 { font-size: clamp(2.9rem, 5.4vw, 4.9rem); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3vw, 2.9rem); line-height: 1.08; letter-spacing: -.03em; }
h3 { font-size: 1.125rem; letter-spacing: -.015em; }
.lead { font-size: 1.0625rem; line-height: 1.65; max-width: 58ch; }

/* Дрібний ярлик у розрядку — друга половина контрасту масштабів */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent);
  display: flex; align-items: center; gap: 9px;
}
/* Штамп аркуша — наскрізна ідея «технічного аркуша» */
main { counter-reset: sheet; }
main > .section { counter-increment: sheet; }
.eyebrow::before {
  content: 'Арк. ' counter(sheet, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  padding-right: 9px;
  border-right: 1px solid var(--hair-strong);
  background: none; width: auto; height: auto;
}

/* Усі числа — моноширинним, з табличними цифрами */
.fact b, .tab-kpi b, .result-price, .case-foot b, .kv b, .step-n,
.quiz-counter, .range-val, .case-meta span, .filters-info, .review-date,
.leads-count, .result-sum b {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

/* ---------- 3. Волосяні лінії замість сірих рамок ---------- */
.card, .pain, .adv-item, .case, .cert, .tab-body, .contacts-card,
.hero-card, .review, .modal-box, .field input, .field select, .field textarea,
.search input, .filters-row select, .chip, .tab, .btn-ghost {
  border-color: var(--hair);
}
.section-alt { border-top-color: var(--hair); border-bottom-color: var(--hair); }
.card, .pain, .adv-item, .case, .tab-body, .contacts-card, .review {
  box-shadow: var(--shadow-soft);
}

/* Стилізований select — дефолтний браузерний віджет вбиває вигляд */
.field select, .filters-row select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5l5-5' fill='none' stroke='%2367737f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* ---------- 4. Фотосистема ---------- */
/* .ph — обгортка кадру: тримає пропорцію, дає заглушку, градуює колір */
.ph {
  position: relative; overflow: hidden;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(150deg, var(--n300), var(--n200) 45%, var(--n100));
  isolation: isolate;
}
[data-theme="dark"] .ph {
  background: linear-gradient(150deg, var(--n800), var(--n700) 45%, var(--n800));
}
.ph img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
  /* єдиний тон для всього стоку — головний прийом, що робить фото дорогим */
  filter: saturate(.78) contrast(1.06) brightness(.97);
  transition: transform 1.1s var(--ease), filter .5s var(--ease);
}
/* напівпрозорий акцентний оверлей зводить різнобарвний сток в одну гаму */
.ph::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: var(--accent); opacity: .12; mix-blend-mode: soft-light;
  pointer-events: none;
}
.ph.ph-ratio-wide  { aspect-ratio: 16 / 9; }
.ph.ph-ratio-card  { aspect-ratio: 3 / 2; }
.ph.ph-ratio-tall  { aspect-ratio: 4 / 5; }

/* Градієнт під текст поверх фото — контраст обов'язковий */
.ph-scrim::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgb(10 14 18 / .15) 0%, rgb(10 14 18 / .55) 55%, rgb(10 14 18 / .88) 100%);
}

/* ---------- 5. Hero: фото на всю ширину + потоки повітря ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(72px, 9vw, 132px) clamp(64px, 8vw, 116px); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(105deg, rgb(9 13 17 / .93) 0%, rgb(9 13 17 / .78) 46%, rgb(9 13 17 / .42) 100%),
    url('https://plus.unsplash.com/premium_photo-1733342512311-2307883f2502?q=80&auto=format&fit=crop&w=2000');
  background-size: cover;
  background-position: center 38%;
  filter: saturate(.7) contrast(1.05);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  /* креслярська сітка + зерно — фактура «технічного аркуша» */
  background-image:
    linear-gradient(to right, rgb(255 255 255 / .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px;
  mask-image: radial-gradient(120% 90% at 22% 40%, #000 20%, transparent 78%);
}
.hero, .hero h1, .hero .lead, .hero .hero-note { color: #f2f5f8; }
.hero .lead, .hero .hero-note { color: rgb(242 245 248 / .74); }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-in { position: relative; z-index: 2; }

/* Анімовані лінії потоку повітря — найдоречніший рух для вентиляції */
.airflow { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5; }
.airflow path {
  fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round;
  stroke-dasharray: 26 300;
  animation: flow 9s linear infinite;
}
.airflow path:nth-child(2) { animation-duration: 12s; animation-delay: -3s; stroke: var(--signal); opacity: .55; }
.airflow path:nth-child(3) { animation-duration: 15s; animation-delay: -7s; }
.airflow path:nth-child(4) { animation-duration: 11s; animation-delay: -5s; opacity: .6; }
@keyframes flow { from { stroke-dashoffset: 326; } to { stroke-dashoffset: 0; } }

/* Картка форми виходить за межі секції — overlap замість рівного ряду */
.hero-card {
  background: rgb(255 255 255 / .06);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgb(255 255 255 / .14);
  box-shadow: var(--shadow-lift);
}
.hero-card, .hero-card .hero-card-head strong { color: #f2f5f8; }
.hero-card .hero-card-head span, .hero-card .form-note { color: rgb(242 245 248 / .6); }
.hero-card .field > span { color: rgb(242 245 248 / .8); }
.hero-card .field input, .hero-card .field select {
  background: rgb(9 13 17 / .45); border-color: rgb(255 255 255 / .16); color: #f2f5f8;
}
.hero-facts .fact {
  background: rgb(255 255 255 / .05);
  border: 1px solid rgb(255 255 255 / .12);
}
.hero-facts .fact b { color: #fff; font-size: 2rem; }
.hero-facts .fact span { color: rgb(242 245 248 / .62); }
/* розмірна лінія з сигнальною зарубкою — деталь «креслення» */
.hero-facts .fact { position: relative; }
.hero-facts .fact::before {
  content: ''; position: absolute; left: 14px; right: 14px; top: 0; height: 1px;
  background: var(--signal); opacity: .55;
}

/* ---------- 6. Ритм секцій — свідомо різний ---------- */
.section { padding: clamp(80px, 9vw, 132px) 0; }
.section:nth-of-type(even) { padding: clamp(96px, 11vw, 168px) 0; }
#calc, #b2b { padding: clamp(88px, 10vw, 152px) 0; }
#reviews { padding-block: clamp(72px, 8vw, 108px); }

/* Темні повношириннi смуги замість чергування білий/сірий */
#services, #process { background: var(--n900); border: 0; position: relative; }
#services *, #process * { border-color: rgb(255 255 255 / .1); }
#services h2, #process h2, #services h3, #process h3 { color: #f2f5f8; }
#services .lead, #process .lead, #services .sec-head p, #process .sec-head p,
#services .step p, #process .step p { color: rgb(242 245 248 / .68); }
#services::before, #process::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / .04) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  mask-image: radial-gradient(100% 70% at 50% 0%, #000 10%, transparent 75%);
}
#services .wrap, #process .wrap { position: relative; z-index: 1; }
#services .tab-body, #process .step { background: rgb(255 255 255 / .04); }
#services .tab { background: rgb(255 255 255 / .05); color: rgb(242 245 248 / .8); }
#services .tab.active { background: var(--accent); color: #fff; border-color: transparent; }

/* ---------- 7. Калькулятор — центральний герой сторінки ---------- */
#calc { background: var(--n900); position: relative; overflow: hidden; }
#calc::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(70% 90% at 82% 12%, rgb(14 148 184 / .28), transparent 62%),
    radial-gradient(52% 58% at 6% 96%, rgb(255 122 53 / .09), transparent 62%);
}
#calc::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgb(255 255 255 / .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / .045) 1px, transparent 1px);
  background-size: 56px 56px, 56px 56px;
}
#calc .wrap { position: relative; z-index: 1; }
#calc h2 { color: #fff; font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
#calc .sec-head p { color: rgb(242 245 248 / .7); }
#calc .quiz {
  background: rgb(255 255 255 / .05);
  border: 1px solid rgb(255 255 255 / .13);
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(10px);
}
#calc .quiz, #calc .quiz h3, #calc .result-price { color: #f2f5f8; }
#calc .quiz-hint, #calc .quiz-counter, #calc .result-list li { color: rgb(242 245 248 / .68); }
#calc .opt { background: rgb(255 255 255 / .04); border-color: rgb(255 255 255 / .12); color: #f2f5f8; }
#calc .opt:hover { background: rgb(255 255 255 / .09); transform: translateY(-2px); }
#calc .opt.on { background: var(--accent-soft); border-color: var(--accent); }
/* Колір тексту треба задавати разом із фоном: базові правила вище фарбують
   текст в accent/ok, і на залитому фоні він ставав невидимим. */
#calc .quiz-steps i {
  background: rgb(255 255 255 / .06);
  color: rgb(242 245 248 / .72);
  border-color: rgb(255 255 255 / .12);
}
#calc .quiz-steps i.now { background: var(--accent); color: #fff; border-color: transparent; }
#calc .quiz-steps i.done {
  background: rgb(255 122 53 / .14);
  color: var(--signal);
  border-color: rgb(255 122 53 / .42);
}
#calc .quiz-bar { background: rgb(255 255 255 / .1); }
#calc .result-price { font-size: clamp(2rem, 4vw, 3rem); color: #fff; }

/* ---------- 8. Кейси з фото ---------- */
.case { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.case .case-photo { aspect-ratio: 3 / 2; border-radius: 0; margin: 0; }
.case .case-body { padding: 20px 20px 0; }
.case .case-foot { padding: 14px 20px 18px; margin-top: auto; }
.case .case-tag {
  position: absolute; z-index: 3; left: 12px; top: 12px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase;
  background: rgb(9 13 17 / .72); color: #f2f5f8;
  border: 1px solid rgb(255 255 255 / .18);
  backdrop-filter: blur(6px);
}
.case:hover .ph img { transform: scale(1.05); filter: saturate(.9) contrast(1.08) brightness(1); }

/* ---------- 9. Відгуки з аватарами ---------- */
.review .avatar { overflow: hidden; padding: 0; }
.review .avatar img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.05); }

/* ---------- 10. Рух ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

/* hover з реальним рухом */
.pain, .adv-item, .case, .cert, .review { transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.pain:hover, .adv-item:hover, .case:hover, .cert:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--accent-line);
}
.btn { transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease); }
.btn-primary:hover { transform: translateY(-2px); }
.btn .ic { transition: transform .35s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }

/* прогрес читання — помітний */
.progress { height: 2px; background: linear-gradient(90deg, var(--accent), var(--signal)); }

/* видимий focus ring — без нього дорогий вигляд не буває */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* плавні кроки квіза */
.quiz-body { transition: opacity .32s var(--ease), transform .32s var(--ease); }
.quiz-body.swap { opacity: 0; transform: translateY(10px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .airflow { display: none; }
  .ph img { transition: none; }
}

/* ---------- 11. Адаптив ---------- */
@media (max-width: 900px) {
  .hero-bg { background-position: center 30%; }
  .hero-facts .fact b { font-size: 1.6rem; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  h1, .h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .section { padding: 64px 0 !important; }
  .eyebrow::before { display: none; }
  .airflow { opacity: .3; }
}

/* ---------- 12. B2B — повношириннa смуга з фото команди ---------- */
#b2b { position: relative; background: var(--n900); overflow: hidden; }
#b2b::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(100deg, rgb(9 13 17 / .95) 0%, rgb(9 13 17 / .82) 52%, rgb(9 13 17 / .55) 100%),
    url('https://images.unsplash.com/photo-1778074762022-c33cc42f79ae?q=80&auto=format&fit=crop&w=1800');
  background-size: cover; background-position: center 34%;
  filter: saturate(.72) contrast(1.05);
}
#b2b .wrap { position: relative; z-index: 1; }
#b2b .b2b.card {
  background: rgb(255 255 255 / .055);
  backdrop-filter: blur(16px) saturate(1.15);
  border-color: rgb(255 255 255 / .14);
  box-shadow: var(--shadow-lift);
}
#b2b h2, #b2b .b2b-form-title { color: #f2f5f8; }
#b2b .b2b-text > p, #b2b .b2b-list li { color: rgb(242 245 248 / .74); }
#b2b .field > span { color: rgb(242 245 248 / .8); }
#b2b .field input, #b2b .field select, #b2b .field textarea {
  background: rgb(9 13 17 / .5); border-color: rgb(255 255 255 / .16); color: #f2f5f8;
}
#b2b .form-note { color: rgb(242 245 248 / .58); }

/* ---------- 13. Проблематика — bento замість рівної сітки 3x2 ---------- */
@media (min-width: 900px) {
  #problems .pains { grid-template-columns: repeat(6, 1fr); }
  #problems .pain:nth-child(1),
  #problems .pain:nth-child(2) { grid-column: span 3; }
  #problems .pain:nth-child(n+3) { grid-column: span 2; }
  #problems .pain:nth-child(-n+2) { padding: 28px; }
  #problems .pain:nth-child(-n+2) h3 { font-size: 1.35rem; }
}

/* ---------- 14. Друга кнопка hero — на фото потрібен світлий контур ----------
   Базовий .btn-ghost бере колір з --text, а він у світлій темі темний:
   на затемненому фото кнопка ставала майже невидимою. */
.hero .btn-ghost {
  color: #f2f5f8;
  border-color: rgb(255 255 255 / .3);
  background: rgb(255 255 255 / .04);
  backdrop-filter: blur(6px);
}
.hero .btn-ghost:hover {
  color: #fff;
  border-color: rgb(255 255 255 / .55);
  background: rgb(255 255 255 / .12);
}
