:root {
  --bg: #F8F9FC; --surface: #FFFFFF; --surface2: #F1F4F9; --text: #0F172A; --sub: #64748B;
  --line: rgba(15, 23, 42, .08); --accent: #2563EB; --accent2: #60A5FA; --deep: #1E3A8A;
  --ok: #16A34A; --caution: #D97706; --bad: #DC2626;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 32px -12px rgba(15,23,42,.14);
  --serif: "Fraunces", Georgia, serif; --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417; --surface: #1E2228; --surface2: #282D36; --text: #F8FAFC; --sub: #94A3B8;
    --line: rgba(255,255,255,.08); --ok: #4ADE80; --caution: #FBBF24; --bad: #F87171;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; }
h1, h2 { font-family: var(--serif); font-weight: 700; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 21px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; }
.brand.small { font-size: 17px; } .brand.small img { border-radius: 7px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--sub); font-weight: 500; font-size: 15px; }
.top nav a:hover { color: var(--text); text-decoration: none; }
.lang { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: var(--surface2); color: var(--text); }
.lang:hover { text-decoration: none; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 14px; font-weight: 600; font-size: 16px; }
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -10px rgba(37,99,235,.7); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.soon { cursor: default; }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }

/* Перший екран */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 6px 12px; border-radius: 99px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 18px 0 18px; }
.lead { font-size: 19px; color: var(--sub); max-width: 34em; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; min-height: 560px; display: flex; justify-content: center; }
.phone { position: relative; z-index: 1; width: 270px; border-radius: 40px; border: 8px solid #0F172A; box-shadow: 0 40px 80px -30px rgba(15,23,42,.45); background: #fff; }
.orb { position: absolute; width: 360px; height: 360px; border-radius: 50%; top: 80px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 32% 28%, #fff 0, #BFDBFE 12%, var(--accent2) 30%, var(--accent) 55%, var(--deep) 100%);
  filter: blur(2px); opacity: .55; animation: breathe 6s ease-in-out infinite; }
.orb.big { position: relative; top: 0; left: 0; transform: none; width: 300px; height: 300px; margin: 0 auto; opacity: .9; filter: none;
  box-shadow: inset -20px -30px 60px rgba(15,23,42,.35), 0 40px 80px -30px rgba(37,99,235,.6); }
@keyframes breathe { 50% { transform: translateX(-50%) scale(1.06); opacity: .7; } }
.orb.big { animation: none; }
.score { position: absolute; z-index: 2; display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); min-width: 240px; }
.score.a { left: -10px; top: 70px; } .score.b { right: -10px; bottom: 60px; }
.score small { display: block; color: var(--sub); font-size: 12px; }
.score strong { display: block; font-size: 16px; }
.score ul { margin: 4px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--sub); }
.score li { display: flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ok { color: var(--ok); } .bad { color: var(--bad); }
.ring { --c: var(--ok); width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(currentColor calc(var(--v) * 1%), var(--surface2) 0); }
.ring b { width: 46px; height: 46px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 18px; color: var(--text); }
.dot.ok { color: var(--ok); } .dot.bad { color: var(--bad); }

/* Секції */
.sec { padding: 84px 0; }
.sec.alt { background: var(--surface2); }
.sec h2 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 12px; }
.sub { color: var(--sub); font-size: 18px; margin: 0 0 36px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.card h3 { font-size: 17px; margin: 14px 0 6px; font-family: var(--sans); }
.card p { margin: 0; color: var(--sub); font-size: 15px; }
.ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); }
.ic svg { width: 22px; height: 22px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.step { background: var(--surface); border-radius: 20px; padding: 22px; border: 1px solid var(--line); }
.step span { font-family: var(--serif); font-size: 28px; color: var(--accent); }
.step h3 { font-size: 17px; margin: 8px 0 6px; font-family: var(--sans); }
.step p { margin: 0; color: var(--sub); font-size: 15px; }
.note { color: var(--sub); font-size: 14px; margin-top: 22px; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 18px 0; }
.checks li { position: relative; padding-left: 30px; margin: 10px 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.more { font-weight: 600; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.price.hi { border: 2px solid var(--accent); }
.price h3 { margin: 0; font-size: 16px; font-family: var(--sans); color: var(--sub); }
.val { font-family: var(--serif); font-size: 30px; font-weight: 700; margin: 6px 0; }
.tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); padding: 4px 10px; border-radius: 99px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--sub); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 10px 0 0; color: var(--sub); }

/* Документи */
.doc { padding: 56px 20px 80px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); margin: 0 0 12px; }
.doc h2 { font-size: 24px; margin: 40px 0 10px; }
.doc p, .doc li { color: var(--text); }
.doc em { color: var(--sub); font-style: normal; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc code { font-size: .9em; background: var(--surface2); padding: 2px 6px; border-radius: 6px; }
.table { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin: 24px 0 8px; box-shadow: var(--shadow); }
.contact p { margin: 0 0 16px; }
.contact .small { margin: 16px 0 0; color: var(--sub); font-size: 14px; }
.contact .btn { white-space: normal; text-align: center; }

/* Підвал */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--sub); font-size: 14px; }
.foot p { width: 100%; margin: 0; color: var(--sub); font-size: 13px; }

@media (max-width: 960px) {
  .grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-in, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .prices { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .top nav { display: none; }
  .lang { margin-left: auto; }
  .grid, .steps { grid-template-columns: 1fr; }
  .hero-art { min-height: 520px; }
  .phone { width: 230px; }
  .score { min-width: 0; transform: scale(.88); }
  .score.a { left: -14px; top: 40px; } .score.b { right: -14px; bottom: 30px; }
  .orb { width: 280px; height: 280px; }
  .orb.big { width: 220px; height: 220px; }
  .sec { padding: 60px 0; }
}
