/* ============================================================
   Yalott Studio — стилі
   Фірмові кольори змінюються в :root нижче.
   ============================================================ */

:root {
  --bg: #07070c;
  --bg-2: #0d0d16;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f4f4fb;
  --muted: #a1a1b8;
  --dim: #8a8aa3;

  /* Правило 60/30/10:
     60% — темний фон (--bg, --bg-2),
     30% — нейтральні поверхні й текст (--surface, --border, --text, --muted),
     10% — один акцентний колір (--accent) для всіх кнопок дії й акцентів. */
  --accent: #6e4bff;            /* білий текст на ньому — контраст 5.1:1 */
  --accent-rgb: 110, 75, 255;
  --accent-text: #b9a9ff;       /* акцентний колір для тексту на темному фоні */
  --whatsapp: #1daa61;          /* плаваюча кнопка WhatsApp; біла іконка на ньому — 3:1 */

  --gradient: var(--accent);
  --gradient-text: linear-gradient(100deg, #dcd3ff 0%, #a893ff 100%);
  --glow: 0 0 24px rgba(var(--accent-rgb), 0.45), 0 0 56px rgba(var(--accent-rgb), 0.18);

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1180px;
  --header-h: 72px;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.nowrap { white-space: nowrap; }

::selection { background: rgba(var(--accent-rgb), 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Фон ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

.bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.bg__orb--1 {
  width: 520px; height: 520px;
  top: -180px; left: -120px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  animation: float 18s var(--ease) infinite alternate;
}

.bg__orb--2 {
  width: 600px; height: 600px;
  top: 10%; right: -220px;
  background: radial-gradient(circle, #2563eb 0%, transparent 70%);
  animation: float 22s var(--ease) infinite alternate-reverse;
}

@keyframes float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 80px, 0) scale(1.12); }
}

/* ---------- Кнопки ---------- */
.btn {
  --pad-y: 14px;
  --pad-x: 24px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 16px/1.2 var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s, border-color 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.btn svg {
  flex: none;
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.btn--sm { --pad-y: 10px; --pad-x: 18px; font-size: 14px; }
.btn--lg { --pad-y: 17px; --pad-x: 30px; font-size: 17px; }

.btn--primary {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 8px 30px rgba(var(--accent-rgb), 0.4);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--gradient);
  filter: blur(16px);
  opacity: 0.45;
  z-index: -1;
  transition: opacity 0.3s;
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, var(--glow); }
.btn--primary:hover::after { opacity: 0.8; }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--primary:hover .btn__tg { transform: rotate(-12deg); }

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.btn:active { transform: translateY(0) scale(0.98); }

/* ---------- Шапка ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(7, 7, 12, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 11px;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.55);
}

.logo__text { display: inline-flex; gap: 6px; }
.logo__accent { color: var(--muted); font-weight: 500; }
.logo--sm { font-size: 16px; }
.logo--sm .logo__mark { width: 30px; height: 30px; font-size: 15px; border-radius: 9px; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav > a:not(.btn) {
  color: var(--muted);
  position: relative;
  transition: color 0.2s;
}

.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}

.nav > a:not(.btn):hover,
.nav > a.is-active { color: var(--text); }
.nav > a:not(.btn):hover::after,
.nav > a.is-active::after { transform: scaleX(1); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ---------- Головний екран ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
}

.hero__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-text);
  box-shadow: 0 0 12px var(--accent-text);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero__title {
  margin-top: 28px;
  font-size: clamp(32px, 5.4vw, 68px);
  font-weight: 800;
  letter-spacing: -0.035em;
  max-width: 20ch;
}


.hero__title { text-wrap: balance; }
.hero__title .gradient-text { display: block; }

.hero__lead {
  margin-top: 24px;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero__facts {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 16px;
}

.hero__facts li {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.hero__facts strong { color: var(--text); font-weight: 700; }

/* ---------- Секції ---------- */
.section { padding: 110px 0; position: relative; }

.section__head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__title { font-size: clamp(30px, 4.6vw, 52px); text-wrap: balance; }
.section__lead { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* ---------- Картки ---------- */
.cards { display: grid; gap: 20px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.cards--2 { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin: 0 auto; }

.card,
.feature,
.review,
.step,
.plan {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}

/* градієнтна рамка при наведенні */
.card::before,
.feature::before,
.plan::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

@media (hover: hover) {
  .card:hover,
  .feature:hover,
  .plan:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px -20px rgba(var(--accent-rgb), 0.45);
  }
  .card:hover::before,
  .feature:hover::before,
  .plan:hover::before { opacity: 1; }
}

.card__icon,
.feature__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(var(--accent-rgb), 0.16);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.25);
  margin-bottom: 24px;
}

.card__icon svg,
.feature__icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: #c4b5fd; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.card__title { font-size: 21px; margin-bottom: 12px; }
.card__text { color: var(--muted); font-size: 16px; }

.card__list {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
  font-size: 15px;
}

.card__list li,
.plan__list li {
  position: relative;
  padding-left: 26px;
}

.card__list li::before,
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.6);
}

.card__list li::after,
.plan__list li::after {
  content: "";
  position: absolute;
  left: 5px; top: calc(0.42em + 4px);
  width: 6px; height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ---------- Калькулятор ---------- */
.calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.calc__form,
.calc__result {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.calc > * { min-width: 0; }
.calc__form { display: grid; gap: 22px; align-content: start; }

.calc__field { display: grid; gap: 8px; }
.calc__label { font-size: 15px; font-weight: 600; color: var(--muted); }

.calc__input {
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.calc__input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25);
}

.calc__input input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 700 20px/1.2 var(--font-body);
  outline: none;
  -moz-appearance: textfield;
}

.calc__input input::-webkit-outer-spin-button,
.calc__input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.calc__unit { padding-right: 16px; color: var(--muted); font-weight: 600; }

.calc__result {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-color: rgba(var(--accent-rgb), 0.4);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(var(--accent-rgb), 0.18), transparent 70%),
    var(--bg-2);
}

.calc__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.calc__row strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text);
  white-space: nowrap;
}

.calc__row--big strong { font-size: clamp(26px, 3.4vw, 34px); color: var(--accent-text); }

.calc__payback { font-size: 16px; color: var(--text); }
.calc__payback strong { color: var(--accent-text); }
.calc__result .btn { margin-top: auto; white-space: normal; text-align: center; }
.calc__note { font-size: 13px; color: var(--dim); }

/* ---------- Портфоліо ---------- */
.portfolio { display: grid; gap: 24px; }

.work {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.work:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 30px 80px -40px rgba(var(--accent-rgb), 0.55);
}

.work--reverse { grid-template-columns: 1fr 1.25fr; }
.work--reverse .work__visual { order: 2; }

.work__visual {
  position: relative;
  padding: 44px 40px 40px;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(var(--accent-rgb), 0.3), transparent 60%),
    radial-gradient(ellipse at 90% 100%, rgba(59, 130, 246, 0.22), transparent 60%),
    #0b0b14;
  display: flex;
  align-items: center;
}

.work__badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(10, 10, 18, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.work__badge--live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

/* Пристрої: браузер на комп'ютері + телефон поверх */
.devices {
  position: relative;
  width: 100%;
  padding-right: 13%;
  padding-bottom: 6%;
}

.mock {
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: #0f1015;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--dim);
}

.mock__bar i { width: 8px; height: 8px; border-radius: 50%; background: #2a2a38; }
.mock__bar span {
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock__shot { aspect-ratio: 16 / 10; overflow: hidden; }

.mock__shot img,
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 27%;
  aspect-ratio: 400 / 866;
  padding: 5px;
  border-radius: 26px;
  background: #15151f;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s var(--ease);
}

.phone img { border-radius: 21px; }

/* «острівець» камери */
.phone::before {
  content: "";
  position: absolute;
  top: 10px; left: 50%;
  width: 28%; height: 9px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  z-index: 1;
}

@media (hover: hover) {
  .work:hover .phone { transform: translateY(-6px); }
}

.work__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.work__tag {
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: 0.02em;
}

.work__title { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 10px; }

.work__subtitle {
  margin-bottom: 14px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.85;
}

.work__text { color: var(--muted); font-size: 16px; }

.work__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.work__chips li {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.work__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.work__score {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.work__score small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }

.work__score-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 3px solid #22c55e;
  color: #4ade80;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.work__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
}

.work__link svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.3s var(--ease);
}

.work__link:hover svg { transform: translate(3px, -3px); }

/* растягуємо посилання на всю картку */
.work__link::after { content: ""; position: absolute; inset: 0; z-index: 4; }

.work-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  flex-wrap: wrap;
  padding: 32px 40px;
  border-radius: var(--radius);
  border: 1px dashed rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.06);
}

.work-cta__title { font-size: 22px; margin-bottom: 6px; }
.work-cta__text { color: var(--muted); }

/* ---------- Переваги ---------- */
.feature { padding: 30px 26px; }

.feature__num {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 24px;
  height: 56px;
  display: flex;
  align-items: center;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feature__num small { font-size: 18px; margin-left: 6px; font-weight: 600; }
.feature__title { font-size: 18px; margin-bottom: 10px; }
.feature__text { color: var(--muted); font-size: 15px; }

/* ---------- Ціни ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 36px 30px;
}

.plan--featured {
  background:
    linear-gradient(180deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent-rgb), 0.03)),
    var(--bg-2);
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.2), 0 30px 80px -30px rgba(var(--accent-rgb), 0.6);
}

.plan--featured::before { opacity: 1; }

.plan__badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--glow);
  white-space: nowrap;
}

.plan__name { font-size: 22px; }
.plan__desc { margin-top: 10px; color: var(--muted); font-size: 15px; min-height: 48px; }

.plan__price {
  margin: 24px 0;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.plan__from { color: var(--muted); font-size: 16px; }

.plan__amount {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan__currency { color: var(--muted); font-weight: 600; }

.plan__note {
  flex-basis: 100%;
  margin-top: 4px;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.4;
}

.plan__list { display: grid; gap: 12px; font-size: 15px; margin-bottom: 32px; }
.plan .btn { margin-top: auto; width: 100%; }

.pricing noscript { display: contents; }

.plan--fallback {
  grid-column: 1 / -1;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  align-items: center;
  text-align: center;
}

.plan--fallback .plan__desc { min-height: 0; margin-bottom: 28px; }
.plan--fallback .btn { width: auto; }

.support {
  margin-top: 20px;
  padding: 26px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.support__info { display: flex; align-items: center; gap: 18px; }

.support__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.16);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
}

.support__icon svg { width: 22px; height: 22px; fill: none; stroke: #c4b5fd; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.support__name { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.support__desc { color: var(--muted); font-size: 15px; }

.support__price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  white-space: nowrap;
}

.support__price small { font-family: var(--font-body); font-size: 15px; color: var(--muted); font-weight: 600; }

/* ---------- Акції та пільги ---------- */
.promos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.promo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}

.promo--main {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding: 36px 40px;
  border-color: rgba(var(--accent-rgb), 0.5);
  background:
    radial-gradient(ellipse 70% 120% at 0% 0%, rgba(var(--accent-rgb), 0.22), transparent 70%),
    var(--bg-2);
}

.promo--main .btn { flex: none; }
.promo--main .promo__title { font-size: clamp(24px, 3vw, 34px); }

.promo__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.promo__title { font-size: 22px; }
.promo__text { color: var(--muted); }
.promo__text strong, .promo__price { color: var(--text); }
.promo__text--accent { color: var(--text); }
.promo__text s { color: var(--dim); }
.promo__note { margin-top: auto; padding-top: 6px; font-size: 14px; color: var(--muted); }

/* ---------- Процес ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 62px; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.6), transparent);
  z-index: -1;
}

.step { background: rgba(10, 10, 18, 0.9); }

.step__num {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  margin-bottom: 22px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: var(--gradient);
  box-shadow: var(--glow);
}

.step__title { font-size: 20px; margin-bottom: 10px; }
.step__text { color: var(--muted); font-size: 15px; }

.guarantee {
  margin: 48px auto 0;
  max-width: 900px;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.08);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(20px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* ---------- Відгуки ---------- */
.review { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.review blockquote { margin: 0; font-size: 17px; }
.review figcaption { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.review figcaption strong { color: var(--text); font-size: 16px; }

/* ---------- CTA / Контакти ---------- */
.cta {
  position: relative;
  padding: 80px 32px;
  border-radius: 32px;
  text-align: center;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(var(--accent-rgb), 0.3), transparent 70%),
    radial-gradient(ellipse 50% 60% at 50% 110%, rgba(59, 130, 246, 0.3), transparent 70%),
    var(--bg-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  pointer-events: none;
}

.cta > * { position: relative; z-index: 1; }
.cta__title { font-size: clamp(30px, 5vw, 56px); max-width: 16ch; }
.cta__text { margin: 20px 0 36px; max-width: 520px; color: var(--muted); font-size: 18px; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.cta__handles {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 12px;
  color: var(--dim);
  font-weight: 600;
}

.cta__handles a { color: var(--muted); transition: color 0.2s; white-space: nowrap; }
.cta__handles a:hover { color: var(--text); }
.cta__role { color: var(--dim); font-weight: 500; }
.cta__manager { white-space: normal !important; }
.cta__num { white-space: nowrap; }

/* ---------- Футер ---------- */
.footer {
  padding: 36px 0 calc(36px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 14px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer .logo { color: var(--text); }
.footer a:last-child { transition: color 0.2s; }
.footer a:last-child:hover { color: var(--text); }

/* ---------- Плаваюча кнопка WhatsApp ---------- */
.fab {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 10px 30px -6px rgba(29, 170, 97, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transition: transform 0.3s var(--ease), opacity 0.25s, visibility 0.25s;
}

.fab:hover { transform: translateY(-3px) scale(1.04); }

.fab.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
}

.fab svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- Анімації появи ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Телефони й планшети: легша анімація — без розмиття, менший зсув, коротше */
@media (max-width: 900px), (hover: none) {
  .js .reveal {
    transform: translateY(14px);
    filter: none;
    transition-duration: 0.55s;
    transition-delay: calc(var(--delay, 0s) * 0.5);
  }
  .bg__orb { animation: none; filter: blur(60px); }
}

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

/* ============================================================
   Адаптивність
   ============================================================ */
@media (max-width: 1080px) {
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}

@media (max-width: 1023px) {
  .burger { display: block; }

  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
    background: rgba(7, 7, 12, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
    overflow-y: auto;
  }

  .nav.is-open { opacity: 1; visibility: visible; transform: none; }

  .nav > a:not(.btn) {
    padding: 16px 4px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }

  .nav > a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 24px; --pad-y: 16px; font-size: 17px; }

  body.menu-open { overflow: hidden; }
  body.menu-open .header { background: rgba(7, 7, 12, 0.96); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }


  .calc { grid-template-columns: 1fr; max-width: 560px; }
  .promos { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .promo--main { flex-direction: column; align-items: flex-start; padding: 30px 28px; }
  .promo--main .btn { width: 100%; white-space: normal; text-align: center; }

  .cards--2,
  .cards--3,
  .pricing,
  .work, .work--reverse { grid-template-columns: 1fr; }
  .work--reverse .work__visual { order: 0; }
  .work__visual { padding: 44px 28px 28px; }
  .work__info { padding: 28px 32px 32px; }

  .pricing { max-width: 520px; margin: 0 auto; gap: 28px; }
  .support { max-width: 520px; margin-left: auto; margin-right: auto; }
  .plan__desc { min-height: 0; }

}

@media (max-width: 600px) {
  body { font-size: 16px; }

  .container { padding: 0 16px; }

  .hero { padding: calc(var(--header-h) + 32px) 0 56px; }
  .hero__actions { width: 100%; flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__actions .btn { white-space: normal; text-align: center; }
  .hero__facts { gap: 8px; font-size: 14px; }
  .hero__facts li { padding: 6px 12px; }

  .section { padding: 72px 0; }
  .section__head { margin-bottom: 40px; }
  .section__lead { font-size: 16px; }

  .cards--4,
  .steps { grid-template-columns: 1fr; }

  .card, .feature, .step, .plan { padding: 26px 22px; }
  .calc__form, .calc__result { padding: 24px 20px; }
  .calc__row { flex-direction: column; align-items: flex-start; gap: 2px; }

  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; }
  .step__num { grid-row: span 2; width: 48px; height: 48px; font-size: 15px; margin: 0; }
  .step__title { margin: 4px 0 6px; }

  .work__visual { padding: 44px 16px 20px; }
  .work__info { padding: 22px; }
  .devices { padding-right: 24%; padding-bottom: 30%; }
  .phone { width: 38%; border-radius: 20px; padding: 4px; }
  .phone img { border-radius: 16px; }
  .phone::before { top: 7px; height: 6px; }
  .mock__bar { padding: 7px 10px; }
  .work-cta { padding: 24px 22px; }
  .work-cta .btn { width: 100%; }

  .support { flex-direction: column; align-items: flex-start; padding: 24px 22px; }
  .support__info { align-items: flex-start; }

  .cta { padding: 56px 20px; border-radius: 24px; }
  .cta__actions { width: 100%; flex-direction: column; }
  .cta__sep-wrap { display: none; }
  .cta__manager { flex-basis: 100%; }
  .cta .btn { width: 100%; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 54px; height: 54px; }

  .bg__orb--1 { width: 360px; height: 360px; }
  .bg__orb--2 { width: 400px; height: 400px; right: -200px; }
}

@media (max-width: 360px) {
  .logo { font-size: 17px; }
  .hero__title { font-size: 32px; }
  .badge { font-size: 13px; padding: 7px 14px; }

}
