/* Стилі посадкових сторінок під пошукові запити.
   Свідомо окремий звичайний CSS, а не React: ці сторінки мають відкриватись
   миттєво і бути повністю читабельними для пошукового робота ще до будь-якого
   JavaScript. Палітра та сама, що на головній (tailwind.config.js), щоб
   людина не відчула, ніби потрапила на інший сайт. */

:root {
  --ink: #16122B;
  --muted: #66617A;
  --line: #E8E5F0;
  --canvas: #F7F6FB;
  --brand: #6B4EFF;
  --brand-soft: #F0ECFF;
  --accent: #FFC91F;
  --accent-dark: #FFB800;
  --ok: #12B76A;
  --ok-soft: #E7F8EF;
  --shadow: 0 1px 2px rgba(22,18,43,.04), 0 8px 24px -12px rgba(22,18,43,.14);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 76px;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.08; }
h2 { font-size: clamp(23px, 4vw, 30px); line-height: 1.15; }
h3 { font-size: 17px; }

a { color: inherit; }
p + p { margin-top: 12px; }

/* ── смуга акції ─────────────────────────────────────────────────────── */
.promo { display: block; background: var(--accent); color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.promo .wrap { padding-top: 8px; padding-bottom: 8px; text-align: center; }
.promo b { color: var(--ink); }

/* ── шапка ───────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand .mark {
  width: 42px; height: 42px; border-radius: 50%; position: relative;
  background: var(--accent); display: grid; place-items: center;
}
.brand .mark::after {
  content: ""; position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--brand); border: 2px solid #fff;
}
.brand .mark svg { width: 19px; height: 19px; stroke: var(--ink); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.brand i { font-style: normal; color: var(--brand); }
.top .tel {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px;
  text-decoration: none; white-space: nowrap; padding: 11px; border-radius: 50%; background: var(--brand); color: #fff;
}
.top .tel svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.top .tel span { display: none; }
@media (min-width: 640px) { .top .tel { background: none; color: var(--ink); padding: 0; border-radius: 0; } .top .tel svg { stroke: #fff; background: var(--brand); border-radius: 50%; padding: 10px; width: 40px; height: 40px; } .top .tel span { display: inline; } }

/* ── хлібні крихти ───────────────────────────────────────────────────── */
.crumbs { font-size: 13px; color: var(--muted); padding-top: 20px; font-weight: 600; }
.crumbs a { text-decoration: none; color: var(--brand); }
.crumbs a:hover { text-decoration: underline; }

/* ── перший екран ────────────────────────────────────────────────────── */
.hero { padding: 18px 0 40px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tag {
  font-size: 13px; font-weight: 700;
  padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
}
.tag.lime { background: var(--ok-soft); border-color: transparent; color: #067647; }
.tag.violet { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.hero h1 + p { margin-top: 16px; }
.hero p { font-size: 17px; color: var(--muted); max-width: 62ch; font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 15.5px; text-decoration: none;
  padding: 14px 22px; border-radius: 14px; border: 1px solid transparent;
  cursor: pointer; font-family: var(--font); transition: background .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--accent); color: var(--ink); box-shadow: 0 10px 24px -8px rgba(255,184,0,.55); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ── блок акцій ──────────────────────────────────────────────────────── */
.deals { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 20px; }
.deal { background: #fff; border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); }
.deal b { display: block; font-size: 34px; line-height: 1; font-weight: 800; color: var(--brand); }
.deal:nth-child(2) b { color: #E8467C; }
.deal:nth-child(3) b { color: #D97706; }
.deal:nth-child(4) b { color: var(--ok); }
.deal h3 { margin-top: 10px; font-size: 15.5px; }
.deal p { font-size: 13.5px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.deals-terms { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ── секції ──────────────────────────────────────────────────────────── */
section { padding: 40px 0; }
section > .wrap > h2 + p { margin-top: 8px; color: var(--muted); font-size: 15.5px; font-weight: 500; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 22px; }
.card { background: #fff; border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; }
.card p { font-size: 14.5px; color: var(--muted); font-weight: 500; }

/* прайс */
.price { margin-top: 22px; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.price .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.price .row:last-child { border-bottom: 0; }
.price .row span:first-child { font-size: 15px; font-weight: 600; }
.price .row span:last-child { font-weight: 800; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* кроки */
.steps { counter-reset: st; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 22px; list-style: none; }
.steps li { counter-increment: st; background: #fff; border-radius: 20px; padding: 20px 22px; box-shadow: var(--shadow); }
.steps li::before {
  content: counter(st); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 12px;
}
.steps li b { display: block; font-size: 16px; margin-bottom: 4px; }
.steps li span { font-size: 14px; color: var(--muted); font-weight: 500; }

/* faq */
.faq { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: #fff; border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow); }
.faq summary { font-weight: 800; font-size: 16px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; font-size: 15px; color: var(--muted); font-weight: 500; }

/* форма */
.order {
  background: linear-gradient(135deg, var(--brand), #3A1FC2); color: #fff;
  border-radius: 28px; padding: 30px; margin-top: 20px; position: relative; overflow: hidden;
}
.order h2 { color: #fff; }
.order p.sub { color: rgba(255,255,255,.78); font-size: 15.5px; margin-top: 6px; font-weight: 500; }
.order form { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; max-width: 440px; }
.order input {
  width: 100%; font-family: var(--font); font-size: 17px; font-weight: 700;
  padding: 14px 16px; border-radius: 14px; border: 2px solid transparent; background: #fff; color: var(--ink);
}
.order input:focus { outline: none; border-color: var(--accent); }
.order button { background: var(--accent); color: var(--ink); justify-content: center; font-size: 16.5px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); }
.order button:hover { background: var(--accent-dark); }
.order .fine { font-size: 12.5px; color: rgba(255,255,255,.65); }
.order .done { display: none; font-weight: 700; }
.order.sent form { display: none; }
.order.sent .done { display: block; }
.order .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* перелінковка */
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; list-style: none; }
.links a {
  display: inline-block; text-decoration: none; font-size: 14px; font-weight: 700;
  padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: var(--shadow);
}
.links a:hover { color: var(--brand); }

/* підвал */
footer { background: var(--ink); color: #fff; padding: 34px 0; margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer a { color: #fff; font-weight: 800; text-decoration: none; }
footer a:hover { color: var(--accent); }
footer p { font-size: 13px; color: rgba(255,255,255,.6); }
footer .disclaimer { flex-basis: 100%; font-size: 12px; color: rgba(255,255,255,.4); line-height: 1.6; border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; margin-top: 4px; }

/* мобільна панель дій */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(22,18,43,.2);
  padding: 10px 12px; display: flex; gap: 8px;
}
.bar a, .bar button {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font); font-weight: 800; font-size: 15px; text-decoration: none;
  padding: 13px; border-radius: 14px; border: 0; cursor: pointer;
}
.bar .call { background: var(--ok); color: #fff; flex: 0 0 auto; padding: 13px 18px; }
.bar .lead { background: var(--accent); color: var(--ink); }
.bar svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 780px) { .bar { display: none; } body { padding-bottom: 0; } }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── фотоілюстрація на сторінці послуги ──────────────────────────────── */
.photo { padding-top: 0; }
.photo figure { margin: 0; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.photo figcaption { padding: 14px 20px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* Старі змінні, на які ще посилаються вбудовані стилі окремих сторінок. */
:root { --cream: #F5F7FB; --violet: #6B4EFF; --lime: #FFC91F; --coral: #12B76A; --display: var(--font); --body: var(--font); --mono: var(--font); }

/* ── перемикач мови, примітка бренду, групи посилань ─────────────────── */
.top-right { display: flex; align-items: center; gap: 14px; }
.lang {
  font-weight: 800; font-size: 13px; text-decoration: none; letter-spacing: .04em;
  padding: 7px 10px; border-radius: 999px; background: var(--canvas); color: var(--ink);
}
.lang:hover { background: var(--brand-soft); color: var(--brand); }
.notice {
  margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--brand-soft);
  font-size: 14.5px !important; color: var(--ink) !important; font-weight: 600 !important;
}
.links-title { margin-top: 26px; font-size: 18px; }
.links-title:first-child { margin-top: 0; }
.links { margin-top: 12px; }
.cards + .cta-row { margin-top: 18px; }
.deal { display: flex; flex-direction: column; }
.deal p { flex: 1; }
.deal-btn { margin-top: 14px; justify-content: center; font-size: 14px; padding: 11px 14px; box-shadow: none; }
.card-link { text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card-link:hover { transform: translateY(-3px); }
.card-link .more { margin-top: 12px; font-weight: 800; font-size: 14px; color: var(--brand); }

/* ── стаття ──────────────────────────────────────────────────────────── */
.article { padding: 24px 0 40px; }
.article .wrap { max-width: 760px; }
.article h1 { margin-bottom: 10px; }
.article .meta { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.article .lead { font-size: 18.5px; font-weight: 600; margin-top: 18px; line-height: 1.6; }
.article h2 { margin-top: 34px; margin-bottom: 12px; }
.article p { font-size: 16.5px; color: #2c2840; margin-top: 12px; }
.article ul, .article ol { margin: 14px 0 0 22px; display: grid; gap: 10px; font-size: 16.5px; color: #2c2840; }
.article li::marker { color: var(--brand); font-weight: 800; }
.callout { margin-top: 30px; padding: 22px 24px; border-radius: 22px; background: var(--brand-soft); }
.callout p { margin-top: 0 !important; font-weight: 700; color: var(--ink) !important; }
.callout .cta-row { margin-top: 14px; }
.service-link { margin-top: 30px !important; font-weight: 700; }
.service-link a { color: var(--brand); }

/* ── вікно "Передзвонимо" по центру екрана ───────────────────────────── */
.cb {
  position: fixed; inset: 0; z-index: 2147483000; background: rgba(22,18,43,.6);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto;
}
.cb[hidden] { display: none; }
.cb-card {
  position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(22,18,43,.45); animation: cbPop .25s cubic-bezier(.2,.9,.3,1.2) both; margin: auto;
}
@keyframes cbPop { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }
.cb-x {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer;
}
.cb-head { background: linear-gradient(135deg, var(--brand), #3A1FC2); color: #fff; padding: 28px 26px 24px; }
.cb-head h3 { font-size: 26px; line-height: 1.15; margin-top: 16px; }
.cb-head p { color: rgba(255,255,255,.78); font-weight: 500; margin-top: 8px; font-size: 15.5px; }
.cb-ico {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 8px rgba(255,255,255,.1);
}
.cb-ico svg { width: 24px; height: 24px; stroke: var(--ink); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cb-body { padding: 22px 26px 24px; }
.cb-promo { background: #FFF6D6; color: #6B4C00; font-weight: 700; font-size: 14px; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
#cbPhone {
  width: 100%; font-family: var(--font); font-size: 20px; font-weight: 800; text-align: center; letter-spacing: .02em;
  padding: 15px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--canvas); color: var(--ink);
}
#cbPhone:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(107,78,255,.15); }
.cb-err { color: #C01048; font-weight: 700; font-size: 14px; text-align: center; margin-top: 8px; }
.cb-send { width: 100%; justify-content: center; margin-top: 12px; font-size: 17px; padding: 15px; }
.cb-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-size: 12px; font-weight: 700; color: var(--muted); }
.cb-or span { flex: 1; height: 1px; background: var(--line); }
.cb-call { width: 100%; justify-content: center; background: var(--ok); color: #fff; font-size: 16.5px; padding: 15px; }
.cb-call:hover { filter: brightness(.95); }
.cb-fine { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.cb-done { text-align: center; padding: 8px 0; }
.cb-done[hidden], #cbForm[hidden] { display: none; }
.cb-done-title { font-size: 21px; font-weight: 800; }
.cb-done p { margin-top: 6px; color: var(--muted); font-weight: 500; }
.cb-done .btn { margin-top: 16px; width: 100%; justify-content: center; }
.cb .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cb-call { white-space: nowrap; }

/* ── адаптація під телефон ──────────────────────────────────────────── */
.bar { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (min-width: 780px) { body { padding-bottom: 0; } }
.lang { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
.crumbs a { display: inline-block; padding: 8px 0; }
.deals-terms, .order .fine { font-size: 13px; }
footer a { display: inline-block; padding: 8px 0; }
footer .disclaimer { font-size: 13px; }
footer .disclaimer a { padding: 8px 4px; }

@media (max-width: 639px) {
  section { padding: 30px 0; }
  .hero { padding: 12px 0 28px; }
  .hero p { font-size: 16px; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }

  /* Картки, акції й кроки — горизонтальні каруселі: сторінка коротша,
     а наступна картка, що визирає з краю, підказує, що можна гортати. */
  .cards, .deals, .steps {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px;
    gap: 12px; margin-left: -20px; margin-right: -20px; padding: 2px 20px 12px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .cards::-webkit-scrollbar, .deals::-webkit-scrollbar, .steps::-webkit-scrollbar { display: none; }
  .cards > *, .deals > *, .steps > li { flex: 0 0 84%; scroll-snap-align: start; }
  .cards::after, .deals::after, .steps::after { content: ""; flex: 0 0 1px; }

  .faq summary { padding: 4px 0; }
  .links a { padding: 12px 14px; }
  .order { padding: 22px 18px; border-radius: 22px; }
}
