/* Сайты «Подписка для …». Сначала телефон.
   Вид задаётся темой на <html data-theme>: happ — светлый сине-фиолетовый, incy — тёмный с зелёным. */
:root {
  --bg: #fbfbfe;
  --surface: #ffffff;
  --soft: #f1f1fb;
  --text: #14152b;
  --muted: #5f6278;
  --line: #e4e4f1;
  --accent: #5b5bd6;
  --accent-ink: #ffffff;
  --accent-soft: #ecebff;
  --link: #4747c2;
  --btn-radius: 14px;
  --card-shadow: 0 30px 60px -30px rgba(60, 60, 160, .35), 0 2px 6px rgba(20, 21, 43, .04);
  --hero-bg: radial-gradient(70% 60% at 85% 0%, #e6e4ff 0%, rgba(230, 228, 255, 0) 70%);
  --gutter: 20px;
  --sticky-h: 0px;
  color-scheme: light;
}
[data-theme="incy"] {
  --bg: #111212;
  --surface: #191b1b;
  --soft: #161818;
  --text: #f4f6f5;
  --muted: #9aa3a0;
  --line: #2a2e2d;
  --accent: #34d399;
  --accent-ink: #062318;
  --accent-soft: rgba(52, 211, 153, .13);
  --link: #34d399;
  --btn-radius: 999px;
  --card-shadow: 0 34px 80px -34px rgba(52, 211, 153, .4), 0 0 0 1px rgba(255, 255, 255, .03);
  --hero-bg:
    radial-gradient(70% 60% at 85% 0%, rgba(52, 211, 153, .18) 0%, rgba(52, 211, 153, 0) 70%),
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 100% 56px,
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 56px 100%;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 Inter, "SF Pro Text", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: var(--sticky-h);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible, label:focus-within {
  outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(40px, 11.5vw, 68px); }
h2 { font-size: clamp(28px, 7.4vw, 44px); }
h3 { font-size: 19px; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
.sub { margin-top: 12px; color: var(--muted); max-width: 40em; }

/* шапка */
.top { border-bottom: 1px solid var(--line); background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.top nav { display: none; gap: 26px; font-size: 15px; color: var(--muted); }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--text); }
.top .top-buy { display: none; }
.top-help { font-size: 15px; color: var(--muted); text-decoration: none; }
.top-help:hover { color: var(--text); }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 26px; border: 0; border-radius: var(--btn-radius);
  background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 17px; font-weight: 700;
  text-decoration: none; text-align: center; cursor: pointer; letter-spacing: -0.01em; white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); }
.btn.wide { width: 100%; }
.btn.small { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.btn.quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.quiet:hover { box-shadow: inset 0 0 0 1px var(--accent); filter: none; }
.link { color: var(--muted); font-size: 16px; }
.link:hover { color: var(--text); }

/* первый экран */
.hero { background: var(--hero-bg); padding: 28px 0 40px; }
.hero h1 span { color: var(--accent); }
.chip {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 13px 7px 11px;
  border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px; font-weight: 600;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.lead { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 30em; }

/* блок покупки */
.buy { margin-top: 26px; padding: 18px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 9px 13px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.seg input:checked + span { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.buy-row { margin-top: 18px; display: grid; gap: 16px; }
.plan-price { font-size: 52px; line-height: 1; font-weight: 750; letter-spacing: -0.045em; }
.plan-note { margin-top: 6px; color: var(--muted); font-size: 15px; min-height: 1.5em; }
.buy .btn { width: 100%; }
.ticks { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.ticks li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }

/* карточка «как в приложении» — рисунок, не снимок */
.app { width: min(100%, 360px); margin: 34px auto 0; padding: 20px; border-radius: 32px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--card-shadow); }
.app-head { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.app-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 16px; }
.app-on { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; }
[data-theme="happ"] .app-on { color: var(--link); }
.app-power {
  width: 116px; height: 116px; margin: 24px auto 22px; border-radius: 50%; display: grid; place-items: center;
  color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 0 0 12px var(--accent-soft), 0 18px 30px -16px rgba(0, 0, 0, .35);
}
.app-power svg { width: 46px; height: 46px; }
.app-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--soft); }
.app-row b { display: block; font-size: 15px; }
.app-row span { font-size: 13px; color: var(--muted); }
.app-row em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--link); }
.app-stats { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-stats div { padding: 12px 14px; border-radius: 16px; background: var(--soft); }
.app-stats span { display: block; font-size: 12px; color: var(--muted); }
.app-stats b { font-size: 15px; }
.app-sub { margin-top: 8px; display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--accent-soft); font-size: 14px; }
.app-sub b { color: var(--link); }

/* флаги — нарисованы, чтобы одинаково выглядеть на телефоне и компьютере */
.flag { flex: none; width: 24px; height: 17px; border-radius: 4px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.flag-de { background: linear-gradient(#17181c 33.3%, #d5202b 33.3% 66.6%, #f7c531 66.6%); }
.flag-nl { background: linear-gradient(#ae1c28 33.3%, #fff 33.3% 66.6%, #21468b 66.6%); }
.flag-fi { background: linear-gradient(90deg, transparent 27%, #1b4f9e 27% 43%, transparent 43%), linear-gradient(transparent 36%, #1b4f9e 36% 64%, transparent 64%), #fff; }
.flag-se { background: linear-gradient(90deg, transparent 27%, #fecc02 27% 43%, transparent 43%), linear-gradient(transparent 36%, #fecc02 36% 64%, transparent 64%), #1067a8; }
.flag-us { background: linear-gradient(90deg, #3c3b6e 42%, transparent 42%) 0 0 / 100% 54% no-repeat, repeating-linear-gradient(#b22234 0 2.4px, #fff 2.4px 4.8px); }

/* плитки фактов */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; padding: 6px 0 10px; }
.tiles div { padding: 20px 0; border-top: 1px solid var(--line); }
.tiles b { display: block; font-size: 30px; line-height: 1.1; font-weight: 750; letter-spacing: -0.03em; }
.tiles span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); max-width: 16em; }

section { padding: 60px 0; }
.band { background: var(--soft); }

/* тарифы строками */
.t-table { margin-top: 24px; }
.t-row {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name total" "pm btn";
  gap: 8px 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line);
}
.t-row:last-child { border-bottom: 1px solid var(--line); }
.t-name { grid-area: name; display: flex; align-items: center; gap: 10px; font-size: 19px; }
.t-save { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--link); white-space: nowrap; }
.t-total { grid-area: total; font-size: 22px; font-weight: 750; letter-spacing: -0.02em; text-align: right; white-space: nowrap; }
.t-pm { grid-area: pm; color: var(--muted); font-size: 15px; }
.t-row .btn { grid-area: btn; justify-self: end; }

/* что входит и страны */
.included { margin-top: 28px; display: grid; gap: 22px; }
.included div { padding-top: 16px; border-top: 1px solid var(--line); }
.included p { margin-top: 6px; color: var(--muted); font-size: 16px; }
.mini { margin-top: 44px; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.countries { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: 17px; font-weight: 600; }
.countries li { display: flex; align-items: center; gap: 10px; }

/* три шага */
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 26px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 16px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 14px; font-weight: 700; color: var(--link); margin-bottom: 10px; letter-spacing: .04em; }
.steps p { margin-top: 6px; color: var(--muted); }

/* установка */
.install { margin-top: 22px; }
.install .row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.install .row:last-child { border-bottom: 1px solid var(--line); }
.install h3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.install .yours { display: none; font-size: 12px; font-weight: 700; letter-spacing: 0; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.install .you .yours { display: inline-block; }
.install .links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 16px; }
.install .links a { color: var(--link); text-decoration: none; font-weight: 600; }
.install .links a::after { content: " ↗"; font-weight: 400; }
.install .links a:hover { text-decoration: underline; }
.disclaimer { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 44em; }

/* вопросы */
.faq { margin-top: 20px; max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 34px 18px 0; font-weight: 650; font-size: 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-52%); font-size: 26px; font-weight: 300; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 44em; }
.faq a { color: var(--link); }

/* последняя кнопка */
.final .wrap > * { max-width: 34em; }
.final { background: var(--accent-soft); }
.cta { margin-top: 24px; display: grid; gap: 14px; justify-items: center; }
.cta .btn { width: 100%; }

/* страница проверок и документы */
.page { padding: 34px 0 64px; }
.page h1 { font-size: clamp(34px, 9vw, 56px); }
.page .lead { max-width: 36em; }
.checks { list-style: none; margin: 34px 0 0; padding: 0; counter-reset: s; max-width: 44em; }
.checks li { counter-increment: s; padding: 20px 0; border-top: 1px solid var(--line); }
.checks li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 14px; font-weight: 700; color: var(--link); margin-bottom: 8px; letter-spacing: .04em; }
.checks h2 { font-size: 21px; letter-spacing: -0.015em; line-height: 1.25; }
.checks p { margin-top: 6px; color: var(--muted); }
.offer { margin-top: 40px; padding: 26px 22px; border-radius: 26px; background: var(--accent-soft); max-width: 44em; }
.offer h2 { font-size: clamp(26px, 6.5vw, 34px); }
.offer p { margin-top: 12px; color: var(--muted); }
.prose h1 { font-size: clamp(32px, 8vw, 48px); }
.prose h2 { font-size: 22px; letter-spacing: -0.015em; margin-top: 30px; line-height: 1.25; }
.prose p { margin-top: 10px; color: var(--muted); max-width: 44em; }
.todo { background: #ffe58a; color: #4a3800; padding: 1px 6px; border-radius: 5px; font-weight: 600; }

/* подвал */
footer { padding: 44px 0 44px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); }
.foot { display: grid; gap: 26px; }
.foot-h { color: var(--text); font-weight: 700; margin-bottom: 8px; }
.foot p + p { margin-top: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.legal { margin-top: 26px; font-size: 13px; max-width: 60em; }
.legal + .legal { margin-top: 8px; }

/* закреплённая кнопка на телефоне */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .2s ease;
}
.sticky.on { transform: none; }
.sticky .btn { min-height: 52px; }

/* согласие на счётчик: узкая полоса над закреплённой кнопкой */
.consent {
  position: fixed; left: 0; right: 0; bottom: var(--sticky-h); z-index: 40;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 10px var(--gutter); font-size: 13px; display: flex; gap: 10px; align-items: center; justify-content: space-between;
}
.consent[hidden] { display: none; }
.consent div { display: flex; gap: 8px; flex: none; }

@media (min-width: 560px) {
  .buy-row { grid-template-columns: 1fr auto; align-items: end; }
  .buy .btn { width: auto; }
  .ticks { grid-auto-flow: column; justify-content: start; gap: 22px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .cta { grid-auto-flow: column; justify-content: start; justify-items: start; align-items: center; gap: 22px; }
  .cta .btn { width: auto; }
  .foot { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .top nav { display: flex; }
  .top .top-buy { display: inline-flex; }
  .hero { padding: 64px 0 72px; }
  .hero .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 56px; align-items: center; }
  .app { margin: 0 0 0 auto; }
  .lead { font-size: 19px; }
  section { padding: 96px 0; }
  .top-help { display: none; }
  .t-row { grid-template-columns: 1.2fr 1.4fr .8fr auto; grid-template-areas: "name pm total btn"; gap: 20px; padding: 20px 0; }
  .t-total { text-align: left; }
  .included { grid-template-columns: repeat(3, 1fr); gap: 34px 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .sticky { display: none; }
  .consent { bottom: 0; }
  .offer { padding: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky { transition: none; }
}
