/* =========================================================
   CalcNote — Landing Stylesheet (dark code-editor theme)
   Используется ТОЛЬКО на index.html.
   Внутренние страницы используют css/style.css.
   Font: Inter (UI), JetBrains Mono (code)
   ========================================================= */

/* Inter — self-hosted, OFL 1.1 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* JetBrains Mono — self-hosted, OFL 1.1 */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:            #0A0E16;
  --bg-soft:       #0D1320;
  --surface:       #111827;
  --surface-2:     #141C2E;
  --border:        rgba(148, 163, 184, .14);
  --border-strong: rgba(148, 163, 184, .26);
  --text:          #E6EAF2;
  --muted:         #94A0B4;
  --dim:           #5B6678;
  --accent:        #3B82F6;
  --accent-soft:   #60A5FA;
  --accent-hover:  #2563EB;
  --purple:        #8B5CF6;
  --green:         #34D399;
  --orange:        #F0883E;
  --code-num:      #F8FAFC;
  --radius:        14px;
  --radius-sm:     9px;
  --mono:          'JetBrains Mono', 'Fira Code', monospace;
  --sans:          'Inter', -apple-system, sans-serif;
  --max-width:     1140px;
  --transition:    .2s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--sans); background: none; border: none; color: inherit; }
::selection { background: rgba(59, 130, 246, .35); }

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 110px 0; position: relative; }
.text-center { text-align: center; }

/* ---- Typography ---- */
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
p  { line-height: 1.7; }
code {
  font-family: var(--mono);
  font-size: .86em;
  background: rgba(59, 130, 246, .12);
  color: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, .18);
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
}

.section-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(59, 130, 246, .08);
  border: 1px solid rgba(59, 130, 246, .22);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 18px;
}
.section-title { margin-bottom: 16px; }
.section-subtitle {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: .95rem;
  border-radius: 10px;
  padding: 12px 24px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(180deg, #4D90F8, var(--accent));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(96, 165, 250, .4) inset, 0 8px 28px rgba(59, 130, 246, .35);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #5B9AFA, var(--accent-hover));
  box-shadow: 0 0 0 1px rgba(96, 165, 250, .5) inset, 0 10px 36px rgba(59, 130, 246, .5);
}
.btn-ghost {
  background: rgba(148, 163, 184, .07);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { background: rgba(148, 163, 184, .13); border-color: rgba(148, 163, 184, .4); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; border-radius: 12px; }
.btn-sm { padding: 9px 18px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-icon svg { flex-shrink: 0; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.site-header.scrolled {
  background: rgba(10, 14, 22, .78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.nav-logo:hover { text-decoration: none; }
.logo-name { font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; }
.logo-name span { color: var(--accent-soft); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links > a:not(.btn) {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links > a:not(.btn):hover { color: var(--text); text-decoration: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  align-items: center;
  border-radius: 10px;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 170px 0 90px;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 560px; height: 560px;
  top: -220px; right: -120px;
  background: radial-gradient(circle, rgba(59, 130, 246, .22), transparent 65%);
}
.hero-glow-2 {
  width: 480px; height: 480px;
  bottom: -260px; left: -160px;
  background: radial-gradient(circle, rgba(139, 92, 246, .14), transparent 65%);
}
.hero .container { position: relative; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--muted);
  background: rgba(148, 163, 184, .07);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 14px;
  margin-bottom: 26px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, .8);
}
.hero-title { margin-bottom: 22px; }
.hero-title .accent {
  background: linear-gradient(92deg, #60A5FA 0%, #3B82F6 45%, #8B5CF6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 440px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.hero-notes { display: flex; flex-direction: column; gap: 4px; }
.hero-note {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--dim);
}

/* ---- Live demo window ---- */
.hero-demo { position: relative; }
.calc-window {
  background: linear-gradient(180deg, #101725, #0D1320);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgba(10, 14, 22, .8),
    0 30px 80px rgba(0, 0, 0, .55),
    0 0 60px rgba(59, 130, 246, .07);
  overflow: hidden;
}
.calc-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(148, 163, 184, .04);
}
.tb-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(148, 163, 184, .22);
}
.tb-dot:nth-child(1) { background: #F87171; }
.tb-dot:nth-child(2) { background: #FBBF24; }
.tb-dot:nth-child(3) { background: #34D399; }
.tb-title {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--dim);
}
.calc-body {
  padding: 20px 18px 24px;
  font-family: var(--mono);
  font-size: .85rem;
  line-height: 2.05;
  min-height: 264px;
}
.cl-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  min-height: 1.75em;
}
.cl-code { white-space: pre; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cl-result {
  color: var(--green);
  white-space: nowrap;
  flex-shrink: 0;
}
.cl-result-total {
  font-weight: 500;
  text-shadow: 0 0 14px rgba(52, 211, 153, .45);
}
.tk-var     { color: var(--orange); }
.tk-op      { color: #7E8AA0; }
.tk-num     { color: var(--code-num); font-weight: 500; }
.tk-unit    { color: var(--accent-soft); }
.tk-comment { color: var(--dim); }
.cl-cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 1px;
  background: var(--accent-soft);
  vertical-align: text-bottom;
  animation: cursor-blink 1s steps(1) infinite;
}
@keyframes cursor-blink { 50% { opacity: 0; } }
.cl-result.negative { color: #F87171; }
.cl-result.flash { color: #A7F3D0; }
.hero-demo-caption {
  margin-top: 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--dim);
}

/* =========================================================
   TICKER
   ========================================================= */
.ticker {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  overflow: hidden;
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}
.ticker-item {
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--dim);
  white-space: nowrap;
  margin-right: 48px; /* вместо gap — чтобы −50% попадал ровно на стык дубля */
}
.ticker-item b { color: var(--orange); font-weight: 400; }
.ticker-item i { color: var(--green); font-style: normal; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how-it-works { background: var(--bg); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
  counter-reset: step;
}
.step-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color var(--transition), transform var(--transition);
}
.step-card:hover { border-color: rgba(59, 130, 246, .4); transform: translateY(-3px); }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 11px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 1rem;
  color: var(--accent-soft);
  background: rgba(59, 130, 246, .1);
  border: 1px solid rgba(59, 130, 246, .3);
  margin-bottom: 18px;
}
.step-card h3 { margin-bottom: 10px; }
.step-card p { color: var(--muted); font-size: .94rem; }

/* =========================================================
   FEATURES (bento)
   ========================================================= */
.features { background: var(--bg-soft); }
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.feature-card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), rgba(13, 19, 32, .6));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 246, .1), transparent 65%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.feature-card:hover { border-color: rgba(59, 130, 246, .35); transform: translateY(-3px); }
.feature-card:hover::before { opacity: 1; }
.bento-wide { grid-column: span 2; }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  color: var(--accent-soft);
  background: rgba(59, 130, 246, .1);
  border: 1px solid rgba(59, 130, 246, .25);
  margin-bottom: 16px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .92rem; }
.feature-code {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.9;
  background: rgba(10, 14, 22, .6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.feature-code > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  white-space: nowrap;
  overflow: hidden;
}
.fc-result { color: var(--green); margin-left: auto; }

/* =========================================================
   PRICING
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 22px;
  margin-top: 56px;
}
.pricing-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured {
  position: relative;
  border-color: rgba(59, 130, 246, .55);
  box-shadow: 0 0 50px rgba(59, 130, 246, .14);
}
.pricing-card.featured::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(96, 165, 250, .7), rgba(139, 92, 246, .4), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}
.plan-name {
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.plan-tier { color: var(--dim); font-weight: 400; font-size: .88rem; }
.plan-rec {
  font-size: .7rem;
  font-weight: 600;
  color: var(--accent-soft);
  background: rgba(59, 130, 246, .12);
  border: 1px solid rgba(59, 130, 246, .3);
  border-radius: 100px;
  padding: 3px 10px;
}
.plan-price {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plan-price .currency { font-size: 1.5rem; color: var(--muted); font-weight: 600; }
.plan-price-old { font-size: 1.3rem; color: var(--dim); text-decoration: line-through; font-weight: 400; margin-left: 6px; vertical-align: middle; }
.plan-early { color: #16a34a; font-weight: 600; }
.plan-price-note {
  font-size: .82rem;
  color: var(--dim);
  margin: 8px 0 22px;
}
.plan-features { margin-bottom: 26px; flex-grow: 1; }
.plan-features li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  font-size: .93rem;
  color: var(--muted);
}
.plan-features .check { color: var(--green); font-weight: 600; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list {
  max-width: 760px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
.faq-item.open { border-color: rgba(59, 130, 246, .4); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  font-weight: 600;
  font-size: .98rem;
  color: var(--text);
  padding: 18px 20px;
}
.faq-chevron {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--dim);
  transition: transform .3s ease;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.faq-item.open .faq-answer-wrap { grid-template-rows: 1fr; }
.faq-answer {
  overflow: hidden;
  color: var(--muted);
  font-size: .93rem;
  padding: 0 20px;
}
.faq-item.open .faq-answer { padding-bottom: 20px; }

/* =========================================================
   DOWNLOAD
   ========================================================= */
.download {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.download-glow {
  position: absolute;
  left: 50%;
  bottom: -340px;
  transform: translateX(-50%);
  width: 760px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, .2), transparent 65%);
  filter: blur(70px);
  pointer-events: none;
}
.download-inner { position: relative; text-align: center; }
.download-actions {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.download-note {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--dim);
}
.download-note.dim { color: rgba(91, 102, 120, .7); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 48px 0 28px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand p { color: var(--dim); font-size: .85rem; margin-top: 10px; }
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .85rem;
}
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--text); }
.footer-email { font-family: var(--mono); font-size: .85rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: .76rem;
  color: var(--dim);
}
.rkn-notice { max-width: 640px; text-align: right; }

/* =========================================================
   COOKIE BANNER
   ========================================================= */
#cookie-banner {
  display: none;
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 200;
  max-width: 720px;
  margin: 0 auto;
  align-items: center;
  gap: 20px;
  background: rgba(17, 24, 39, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}
.cookie-title { font-size: .92rem; }
.cookie-desc { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie-accept {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  border-radius: 9px;
  padding: 10px 18px;
  transition: background var(--transition);
}
.btn-cookie-accept:hover { background: var(--accent-hover); }
.btn-cookie-decline {
  background: rgba(148, 163, 184, .1);
  color: var(--muted);
  font-weight: 500;
  font-size: .85rem;
  border-radius: 9px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}
.btn-cookie-decline:hover { background: rgba(148, 163, 184, .18); color: var(--text); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero-inner { gap: 40px; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-column: span 2; }
}

@media (max-width: 880px) {
  section { padding: 76px 0; }
  .hero { padding: 130px 0 64px; }
  /* minmax(0,1fr): иначе min-content печатающейся демки (white-space: pre)
     распирает колонку шире экрана */
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-content { text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-demo { max-width: 560px; margin: 0 auto; width: 100%; min-width: 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: minmax(0, 420px); }
}

@media (max-width: 768px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0A0E16;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, .5);
  }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) {
    padding: 14px 4px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links > .btn { margin-top: 16px; }
  .site-header { background: rgba(10, 14, 22, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  #cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-actions { justify-content: flex-end; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .calc-body { font-size: .72rem; padding: 16px 12px 18px; min-height: 224px; }
  .cl-line { gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; }
  .rkn-notice { text-align: left; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .ticker-track { animation: none; transform: none; }
  .cl-cursor { display: none; }
}
