:root {
  --bg: #f4f7fb;
  --bg-soft: #ecf1f7;
  --surface: #fff;
  --ink: #102335;
  --muted: #55687a;
  --faint: #8797a6;
  --line: rgba(16, 35, 53, .1);
  --line-2: rgba(16, 35, 53, .17);
  --blue: #1150a8;
  --blue-deep: #08336f;
  --blue-wash: #e8f0fb;
  --accent: #ff8a00;
  --accent-deep: #e27800;
  --accent-wash: #fff3e2;
  --ok: #158040;
  --bad: #c0392b;
  --sh-sm: 0 1px 2px rgba(16, 35, 53, .05), 0 4px 12px rgba(16, 35, 53, .06);
  --sh-md: 0 2px 6px rgba(16, 35, 53, .06), 0 14px 36px rgba(16, 35, 53, .1);
  --sh-lg: 0 4px 10px rgba(16, 35, 53, .07), 0 24px 60px rgba(16, 35, 53, .14);
  --r: 18px;
  --r-sm: 11px;
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, Roboto, Arial, sans-serif;
  --max: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(17, 80, 168, .35); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(244, 247, 251, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; color: var(--ink); letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(140deg, var(--blue), var(--blue-deep)); display: grid; place-items: center; box-shadow: var(--sh-sm); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 550; font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--surface); text-decoration: none; }
.nav .btn { margin-left: 8px; }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 13px; padding: 12px 20px; font-weight: 650; font-size: 15px; cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s, background .2s; text-decoration: none !important; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-accent { background: linear-gradient(180deg, #ff9a1f, var(--accent)); color: #fff; box-shadow: 0 6px 18px rgba(255, 138, 0, .32), inset 0 -2px 0 rgba(0, 0, 0, .08); }
.btn-accent:hover { box-shadow: 0 10px 26px rgba(255, 138, 0, .4), inset 0 -2px 0 rgba(0, 0, 0, .08); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-deep); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: var(--sh-sm); }
.btn-ghost:hover { box-shadow: var(--sh-md); }
.btn-lg { padding: 18px 26px; font-size: 18px; border-radius: 16px; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

/* ---------- Главная: hero ---------- */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; text-align: center; } .hero .checks { justify-content: center; } }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--sh-sm); font-size: 14px; font-weight: 600; color: var(--muted); }
.pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); margin: 22px 0 20px; max-width: 12ch; text-wrap: balance; }
@media (max-width: 960px) { .hero h1 { margin-left: auto; margin-right: auto; max-width: 14ch; } }
.hero h1 em { font-style: normal; color: var(--blue); }
.lead { font-size: 19px; color: var(--muted); max-width: 540px; }
@media (max-width: 960px) { .lead { margin: 0 auto; } }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks li::before { content: ""; width: 18px; height: 18px; flex: none; background: no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23158040' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M2.5 8.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E"); }

.drop-card { background: var(--surface); border-radius: 24px; box-shadow: var(--sh-lg); padding: 22px; position: relative; }
.drop-card .kicker { font-size: 13px; font-weight: 650; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; margin: 4px 4px 14px; }
.dropzone { display: grid; place-items: center; gap: 14px; text-align: center; padding: 44px 20px; border: 2px dashed var(--line-2); border-radius: 18px; background: linear-gradient(180deg, #fbfcfe, #f5f8fc); cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-wash); }
.dropzone .dz-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--blue-wash); display: grid; place-items: center; }
.dropzone strong { font-size: 19px; }
.dropzone small, .formats-note { color: var(--faint); font-size: 13px; }
.drop-card .formats-note { text-align: center; margin-top: 14px; }

/* ---------- Секции ---------- */
.section { padding: 88px 0; }
.section-white { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 18px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent-deep); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
@media (max-width: 600px) { .section { padding: 60px 0; } }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--sh-sm); padding: 26px; }
.section-white .card { background: var(--bg); box-shadow: none; border: 1px solid var(--line); }
.card .num { font-size: 13px; font-weight: 750; color: var(--blue); background: var(--blue-wash); border-radius: 8px; padding: 3px 9px; display: inline-block; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 66px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 22px; left: 26px; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 750; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(255, 138, 0, .35); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chips span { padding: 10px 18px; border-radius: 12px; background: var(--surface); box-shadow: var(--sh-sm); font-weight: 700; font-size: 14px; letter-spacing: .03em; color: var(--blue-deep); }

/* До/после */
.ba { position: relative; max-width: 820px; margin: 0 auto; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-lg); background: #fff; aspect-ratio: 595 / 470; user-select: none; touch-action: pan-y; }
/* Показываем верхнюю часть листа — там вся разница */
.ba canvas { position: absolute; left: 0; top: 0; width: 100%; height: auto; aspect-ratio: 595 / 842; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0); }
.ba .ba-line { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 2px; background: var(--accent); transform: translateX(-1px); pointer-events: none; }
.ba .ba-line::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 20px; box-shadow: var(--sh-md); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba .tag { position: absolute; top: 14px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 750; letter-spacing: .06em; background: rgba(16, 35, 53, .75); color: #fff; pointer-events: none; }
.ba .tag-l { left: 14px; } .ba .tag-r { right: 14px; }

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .fit { grid-template-columns: 1fr; } }
.fit ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; color: var(--muted); }
.fit li { padding-left: 28px; position: relative; }
.fit li::before { position: absolute; left: 0; font-weight: 800; }
.fit .yes li::before { content: "✓"; color: var(--ok); }
.fit .no li::before { content: "✕"; color: var(--bad); }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: 14px; box-shadow: var(--sh-sm); padding: 0 22px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 18px 30px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

.seo-text { max-width: 820px; margin: 0 auto; color: var(--muted); display: grid; gap: 14px; }

.site-footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

.nav .lang { font-weight: 700; font-size: 13px; letter-spacing: .04em; }
@media (max-width: 720px) { .nav a.lang { display: inline-block; } }

/* ---------- Баннер cookie ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin: 0 auto; background: var(--surface); border-radius: 16px; box-shadow: var(--sh-lg); padding: 16px 18px; display: grid; gap: 12px; font-size: 14px; color: var(--muted); }
.consent-btns { display: flex; gap: 8px; justify-content: flex-end; }
.consent .btn { padding: 9px 16px; }

/* ---------- Текстовые страницы (условия, политика, статьи) ---------- */
.prose { max-width: 780px; margin: 0 auto; padding: 48px 0 72px; }
.prose h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 8px; }
.prose .updated { color: var(--faint); font-size: 14px; margin-bottom: 28px; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; }
.prose p, .prose li { color: #2b3d4f; }
.prose p { margin-bottom: 12px; }
.prose ul { padding-left: 1.3em; margin: 0 0 12px; }
.prose .note { background: var(--accent-wash); border-radius: 12px; padding: 12px 16px; font-size: 14px; }

a.card.guide { color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s var(--ease); }
a.card.guide:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
a.card.guide h3 { color: var(--blue); }
.cta-band { text-align: center; display: grid; gap: 22px; justify-items: center; }
.cta-band h2 { margin: 0; }
article.seo-text h2 { font-size: 26px; margin: 18px 0 2px; }
