:root {
  color-scheme: light;
  --bg: #F5F3EE;
  --bg-inset: #ECE7DB;
  --surface: #FDFCF9;
  --surface-2: #F1ECE0;
  --border: rgba(32, 28, 21, 0.12);
  --border-strong: rgba(32, 28, 21, 0.22);
  --text-primary: #201C15;
  --text-secondary: #5B5648;
  --text-muted: #8B8576;

  --accent: #9C5F17;
  --accent-fill: #C6862F;
  --accent-fill-hover: #AD7327;
  --accent-tint: #F3E3C8;
  --accent-on-fill: #FFFDF8;

  --teal: #2C756E;
  --teal-tint: #DCEEEC;
  --good: #0ca30c; --good-tint: #E3F5DE; --good-text: #1B6B12;

  --shadow: 0 1px 2px rgba(32,28,21,0.06);
  --shadow-lg: 0 16px 40px -16px rgba(32,28,21,0.22);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16181B; --bg-inset: #0F1113; --surface: #1F2226; --surface-2: #262A2F;
  --border: rgba(255,255,255,0.10); --border-strong: rgba(255,255,255,0.18);
  --text-primary: #F3F1EA; --text-secondary: #B9B4A6; --text-muted: #7D7A70;
  --accent: #E0A857; --accent-fill: #C6862F; --accent-fill-hover: #D89A46; --accent-tint: rgba(224,168,87,0.16); --accent-on-fill: #1B1300;
  --teal: #5FBDB3; --teal-tint: rgba(95,189,179,0.14);
  --good: #0ca30c; --good-tint: rgba(12,163,12,0.16); --good-text: #4FCB4F;
  --shadow: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-lg: 0 16px 40px -16px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: "Source Sans 3", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .display { font-family: "Archivo", system-ui, sans-serif; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
img, svg { max-width: 100%; display: block; }
::selection { background: var(--accent-tint); }
:focus-visible { outline: 2px solid var(--accent-fill); outline-offset: 2px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-18px, 22px) scale(1.06); }
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in-view { animation: revealUp .6s cubic-bezier(.2,.7,.2,1) forwards; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: "Archivo", sans-serif; font-weight: 700; font-size: 17px; flex-shrink: 0; }
.brand .mark { width: 11px; height: 11px; border-radius: 2px; background: var(--accent-fill); transform: rotate(45deg); flex: none; transition: transform .3s cubic-bezier(.2,.7,.2,1), background .2s ease; }
.brand:hover .mark { transform: rotate(135deg) scale(1.25); background: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.site-nav a { position: relative; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600; color: var(--text-secondary); transition: background .18s ease, color .18s ease; }
.site-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent-fill); transform: scaleX(0); transform-origin: left; transition: transform .22s cubic-bezier(.2,.7,.2,1); }
.site-nav a:hover { background: var(--bg-inset); color: var(--text-primary); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-nav a.active { color: var(--text-primary); }
.site-nav a.active::after { transform: scaleX(1); background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); cursor: pointer; transition: background .18s ease, color .18s ease, transform .3s cubic-bezier(.2,.7,.2,1), border-color .18s ease; }
.theme-toggle:hover { background: var(--accent-tint); color: var(--accent); border-color: var(--accent-fill); transform: rotate(25deg); }
.nav-toggle { display: none; width: 34px; height: 34px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); align-items: center; justify-content: center; cursor: pointer; transition: background .18s ease, border-color .18s ease; }
.nav-toggle:hover { background: var(--bg-inset); border-color: var(--border-strong); }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 16px; height: 1.6px; background: var(--text-primary); position: relative; }
.nav-toggle::before { margin-bottom: 4px; }
.nav-toggle::after { margin-top: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: var(--radius-sm); font-weight: 700; font-size: 13.5px; cursor: pointer; border: 1px solid transparent; white-space: nowrap; transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.btn.primary { background: var(--accent-fill); color: var(--accent-on-fill); }
.btn.primary:hover { background: var(--accent-fill-hover); transform: translateY(-2px); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent-fill) 65%, transparent); }
.btn.primary:active { transform: translateY(0); }
.btn.ghost { background: transparent; border-color: var(--border-strong); color: var(--text-primary); }
.btn.ghost:hover { background: var(--bg-inset); border-color: var(--accent-fill); transform: translateY(-2px); }
.btn.lg { padding: 13px 24px; font-size: 14.5px; border-radius: var(--radius-md); }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 64px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -180px; right: -160px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, var(--accent-tint), transparent 70%); opacity: .8; pointer-events: none; animation: float 14s ease-in-out infinite; }
.hero::after { content: ""; position: absolute; bottom: -220px; left: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, var(--teal-tint), transparent 70%); opacity: .7; pointer-events: none; animation: float 18s ease-in-out infinite reverse; }
.hero-inner { position: relative; max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 20px; background: var(--accent-tint); color: var(--accent); font-size: 12px; font-weight: 700; margin-bottom: 18px; }
.hero h1 { font-size: 42px; line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 18px; }
.hero .lead { font-size: 17px; color: var(--text-secondary); max-width: 560px; margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head .kicker { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; display: block; }
.section-head h2 { font-size: 28px; margin-bottom: 10px; }
.section-head p { color: var(--text-secondary); font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent-fill); }
.card:hover .icon-badge { background: var(--accent-fill); color: var(--accent-on-fill); transform: scale(1.08) rotate(-4deg); }
.card .icon-badge { width: 38px; height: 38px; border-radius: var(--radius-md); background: var(--accent-tint); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; transition: background .2s ease, color .2s ease, transform .3s cubic-bezier(.2,.7,.2,1); }
.card.locked .icon-badge { background: var(--surface-2); color: var(--text-muted); }
.card.locked:hover .icon-badge { background: var(--surface-2); color: var(--text-muted); transform: none; }
.card.locked:hover { border-color: var(--border-strong); }
.card h3 { font-size: 15.5px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.pill-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 20px; font-size: 10.5px; font-weight: 700; background: var(--surface-2); color: var(--text-muted); margin-top: 10px; }
.pill-tag.free { background: var(--good-tint); color: var(--good-text); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-left: 44px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-weight: 700; font-family: "IBM Plex Mono", monospace; display: flex; align-items: center; justify-content: center; font-size: 13px; transition: background .2s ease, color .2s ease, transform .3s cubic-bezier(.2,.7,.2,1); }
.step:hover::before { background: var(--accent-fill); color: var(--accent-on-fill); transform: scale(1.15); }
.step h3 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--text-secondary); }

.cta-band { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 44px; text-align: center; transition: border-color .25s ease, box-shadow .25s ease; }
.cta-band:hover { border-color: var(--accent-fill); box-shadow: var(--shadow-lg); }
.cta-band h2 { font-size: 24px; margin-bottom: 10px; }
.cta-band p { color: var(--text-secondary); margin-bottom: 22px; }

.callout { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; font-size: 13.5px; color: var(--text-secondary); }
.callout strong { color: var(--text-primary); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.compare .card:hover { transform: translateY(-5px) scale(1.01); }
.compare .card ul { margin: 12px 0 0; padding-left: 18px; font-size: 13px; color: var(--text-secondary); display: flex; flex-direction: column; gap: 7px; }
.compare .card .price { font-family: "Archivo", sans-serif; font-size: 26px; margin-top: 8px; }
.compare .card .price small { font-size: 12px; font-weight: 400; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 36px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer .brand { font-size: 14px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent); }
.footer-note { font-size: 12px; color: var(--text-muted); }

@media (max-width: 880px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .compare { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  section { padding: 40px 0; }
}
@media (max-width: 640px) {
  .site-nav { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; height: auto; flex: none; background: var(--surface); flex-direction: column; align-items: stretch; padding: 12px; gap: 2px; overflow-y: auto; transform: translateX(100%); transition: transform .2s ease; z-index: 39; }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { padding: 12px 14px; font-size: 15px; }
  .nav-toggle { display: inline-flex; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 27px; }
  .hero-ctas .btn { flex: 1; }
  .wrap { padding: 0 16px; }
  .cta-band { padding: 30px 20px; }
}
/* m320 (11.10.2026): шапка сайта помещается в 320 px */
@media (max-width: 420px) {
  .site-header .wrap { gap: 8px; }
  .brand { font-size: 15px; gap: 7px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 7px 10px; font-size: 13px; }
  h1, h2 { overflow-wrap: anywhere; hyphens: auto; }
}
/* m320b (11.10.2026): карточки сетки не растягиваются длинными словами */
@media (max-width: 640px) {
  .grid > *, .card { min-width: 0; overflow-wrap: anywhere; }
}
