/* ПроАи — корпоративный сайт (тёмная тема, синий акцент) */
:root {
  --bg: #0a0e1a;
  --bg-2: #0d1322;
  --panel: #111a2e;
  --panel-2: #0f1626;
  --line: rgba(255, 255, 255, 0.09);
  --text: #e8ecf4;
  --muted: #a9b4ca;        /* мелкие подписи, лейблы 12–13px */
  --muted-2: #b7c1d6;      /* основной серый текст 14px+ */
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.14);
  --accent-text: #7fa3ff;  /* акцент-текст на тёмном (контраст 7:1+) */
  --ok: #34d399;
  --radius: 14px;
  --container: 1160px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 26px; width: auto; }
.main-nav { display: flex; gap: 22px; flex: 1; flex-wrap: wrap; }
.main-nav a { color: var(--muted); font-size: 14.5px; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent-2); color: #fff; }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
}
.btn.ghost:hover { border-color: var(--accent); color: #fff; }
.btn.small { padding: 8px 16px; font-size: 14px; }
.header-cta { flex-shrink: 0; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 64px; background:
  radial-gradient(900px 420px at 75% -10%, rgba(37, 99, 235, 0.22), transparent 60%),
  url("img/bg-mesh.svg") center / cover no-repeat,
  var(--bg);
}
.hero { position: relative; overflow: hidden; }
.hero > .container { position: relative; z-index: 1; }
.hero h1 { font-size: 40px; line-height: 1.2; letter-spacing: -0.5px; max-width: 820px; }
.hero .sub { margin-top: 18px; font-size: 18px; color: var(--muted-2); max-width: 720px; }
.hero .actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.badge {
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; background: var(--panel-2);
}
.badge b { color: var(--text); font-weight: 600; }
.badge.ok { color: #34d399; border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.1); }
.badge.ok b { color: #34d399; }

/* hero: карточка пилота (правая колонка) */
.pilot-card {
  background: var(--panel);
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.pilot-card .pc-tag {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.3px;
  color: var(--accent-text); background: var(--accent-soft);
  border-radius: 6px; padding: 4px 10px; margin-bottom: 14px;
}
.pilot-card h2 { font-size: 21px; margin-bottom: 6px; }
.pilot-card .pc-sub { color: var(--muted-2); font-size: 14.5px; margin-bottom: 18px; }
.pilot-card ul { list-style: none; display: grid; gap: 10px; }
.pilot-card li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--muted-2); line-height: 1.45; }
.pilot-card li::before {
  content: ""; position: absolute; left: 2px; top: 7px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.pilot-card li b { color: var(--text); font-weight: 600; }
.pilot-card .pc-foot {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
}
.pilot-card .pc-foot b { color: var(--text); }

/* page hero (внутренние страницы) */
.page-hero { padding: 64px 0 40px; background:
  radial-gradient(800px 360px at 80% -20%, rgba(37, 99, 235, 0.18), transparent 60%),
  url("img/bg-soft.svg") center / cover no-repeat,
  var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: 34px; line-height: 1.22; max-width: 820px; letter-spacing: -0.4px; }
.page-hero .sub { margin-top: 14px; font-size: 17px; color: var(--muted-2); max-width: 760px; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: #fff; }

/* ---------- sections ---------- */
section.block { padding: 56px 0; }
section.block.alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.section-title { font-size: 28px; letter-spacing: -0.3px; margin-bottom: 8px; }
.section-sub { color: var(--muted-2); max-width: 760px; margin-bottom: 30px; font-size: 15.5px; }
.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s, transform 0.15s;
}
a.card:hover, .card.hover:hover { border-color: rgba(37, 99, 235, 0.55); transform: translateY(-2px); }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted-2); font-size: 14.5px; }
.card .card-link { display: inline-block; margin-top: 14px; color: var(--accent-text); font-size: 14px; font-weight: 600; }
.card .card-link:hover { color: #a9c2ff; }
.card .tag {
  display: inline-block; font-size: 12px; color: var(--muted);
  background: var(--accent-soft); border-radius: 6px;
  padding: 3px 9px; margin-bottom: 12px;
}

/* KPI-строка в карточках сценариев */
.kpi { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.kpi b { color: var(--text); font-weight: 600; }

/* list с галочками */
.checklist { list-style: none; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 12px; color: var(--muted-2); font-size: 15px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.checklist li b { color: var(--text); }

/* преимущества (нумерованные) */
.why-grid .card { display: flex; gap: 14px; align-items: flex-start; }
.why-num {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}

/* шаги процесса */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  display: grid; grid-template-columns: 48px 1fr; gap: 16px;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 22px; font-weight: 800; color: var(--accent-text); line-height: 1.2;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--muted-2); font-size: 14.5px; }
.step .meta { display: block; margin-top: 10px; font-size: 13px; color: var(--accent-text); font-weight: 600; }
.step .meta span { color: var(--muted); font-weight: 400; }

/* таблица */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--panel-2); }
th, td { text-align: left; padding: 14px 18px; font-size: 14.5px; border-bottom: 1px solid var(--line); color: var(--muted-2); }
th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.4px; }
tr:last-child td { border-bottom: none; }
td b, th b { color: var(--text); }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* FAQ */
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); margin-bottom: 10px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 16px 20px; font-weight: 600; font-size: 15.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-text); font-size: 20px; font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 20px 16px; color: var(--muted-2); font-size: 14.5px; }
.faq-item .faq-body a { color: var(--accent-text); }
.faq-item .faq-body a:hover { color: #a9c2ff; }
.faq-group { font-size: 19px; margin: 34px 0 16px; }
.faq-group:first-child { margin-top: 0; }

/* форма */
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 640px; }
.form-card h3 { font-size: 20px; margin-bottom: 6px; }
.form-card .form-sub { color: var(--muted-2); font-size: 14.5px; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; font-size: 15px; font-family: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field select { appearance: auto; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 16px 0; }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.consent a { color: var(--accent-text); }
.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* CTA-блок */
.cta-block {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(37, 99, 235, 0.05));
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: var(--radius);
  padding: 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-block h3 { font-size: 24px; max-width: 560px; }
.cta-block p { color: var(--muted-2); margin-top: 8px; max-width: 560px; }

/* доверие */
.trust-grid .card { text-align: left; }
.trust-grid .card .ico { font-size: 22px; margin-bottom: 10px; }

/* кейсы */
.case h3 { margin-bottom: 4px; }
.case .who { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.case dl { font-size: 14px; color: var(--muted-2); display: grid; gap: 10px; }
.case dt { color: var(--accent-text); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 2px; }
.case dd { margin: 0; }
.result-num { font-size: 26px; font-weight: 800; color: var(--accent-text); }
.case .case-cta {
  display: inline-block; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--accent-text); font-size: 14px; font-weight: 600;
}
.case .case-cta:hover { color: #a9c2ff; }
/* цифры кейса: метрика — значение */
.case-metrics { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.case-metrics .m { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.case-metrics .m dt { color: var(--muted); font-size: 13px; }
.case-metrics .m dd { color: var(--text); font-weight: 600; text-align: right; }

/* футер */
.site-footer { border-top: 1px solid var(--line); background: url("img/bg-contour.svg") center bottom / cover no-repeat, var(--bg-2); padding: 44px 0 28px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--muted-2); font-size: 14.5px; }
.footer-grid a:hover { color: #fff; }
.footer-brand .tagline { color: var(--muted-2); font-size: 14px; margin-top: 14px; max-width: 340px; }
.footer-legal { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-legal a { color: var(--muted-2); }
.footer-legal a:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .main-nav { display: none; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 44px; }
  .hero h1 { font-size: 28px; }
  .page-hero h1 { font-size: 28px; }
  .step { grid-template-columns: 1fr; }
  .cta-block { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- анимации ---------- */
:root { --ease: cubic-bezier(.22, .61, .36, 1); }

/* появление блоков: JS добавляет .reveal, затем .visible */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }

/* появление текста: H1 построчно из-за маски */
.mask-line { display: block; overflow: hidden; }
.mask-line > span {
  display: block;
  transform: translateY(112%);
  animation: maskUp .9s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes maskUp { to { transform: none; } }

/* пульсирующий статус-точка */
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .5);
  animation: dotPulse 2s ease-out infinite;
  vertical-align: 1px;
}
@keyframes dotPulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* SVG-анимации: прорисовка линий, пульс */
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.visible .draw { animation: drawLine 1.5s var(--ease) forwards; animation-delay: var(--dd, .15s); }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.pulse { animation: softPulse 2.8s ease-in-out infinite; animation-delay: var(--dd, 0s); }
@keyframes softPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* hero: двухколонка текст + карточка */
.hero-split { display: grid; grid-template-columns: 1.08fr .92fr; gap: 44px; align-items: center; }
.hero-fig { min-width: 0; }
.hero-fig img { width: 100%; height: auto; display: block; }
@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; gap: 30px; }
  .hero-fig { max-width: 480px; margin: 0 auto; width: 100%; }
}

/* шапка при скролле */
.site-header.scrolled { box-shadow: 0 8px 28px rgba(0, 0, 0, .4); background: rgba(10, 14, 26, .96); }

/* уважение к prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .mask-line > span { transform: none; }
}

/* ---------- интерактивная схема внедрения ---------- */
.scheme-section {
  position: relative;
  padding: 78px 0;
  background:
    radial-gradient(900px 420px at 72% -10%, rgba(37, 99, 235, .14), transparent 62%),
    linear-gradient(180deg, #0a0e1a, #0c1222);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.scheme {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 48px;
  margin-top: 38px;
  align-items: start;
}
/* левая колонка: фазы */
.scheme-steps { position: relative; }
.scheme-line {
  position: absolute;
  left: 21px; top: 35px; bottom: 35px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}
.scheme-progress {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  height: 0%;
  border-radius: 2px;
  background: linear-gradient(180deg, #2563eb, #6d9bff);
  box-shadow: 0 0 12px rgba(37, 99, 235, .55);
  transition: height .9s var(--ease);
}
.scheme-progress::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -4px;
  width: 10px; height: 10px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #6d9bff;
  box-shadow: 0 0 14px rgba(109, 155, 255, .9);
}
.scheme-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: center;
  padding: 13px 0;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
}
.scheme-node {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .5s var(--ease);
}
.scheme-name { display: block; font-size: 16px; font-weight: 600; color: var(--muted); transition: color .4s; }
.scheme-dur { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; transition: color .4s; }
.scheme-step:hover .scheme-name { color: var(--text); }
.scheme-step.is-active .scheme-node {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.08);
}
.scheme-step.is-active .scheme-name { color: #fff; }
.scheme-step.is-active .scheme-dur { color: var(--accent-text); }
/* правая колонка: панель деталей */
.scheme-panel {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 30px 34px;
  min-height: 330px;
  overflow: hidden;
}
.scheme-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 200px at 10% 0%, rgba(37, 99, 235, .16), transparent 70%);
  pointer-events: none;
}
.scheme-slide { display: none; grid-template-columns: 150px 1fr; gap: 28px; align-items: start; position: relative; }
.scheme-slide.is-active { display: grid; animation: slideIn .6s var(--ease); }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}
.scheme-icon { width: 150px; }
.scheme-icon svg { width: 100%; height: auto; display: block; }
.scheme-body h3 { font-size: 20px; margin-bottom: 10px; }
.scheme-body > p { color: var(--muted-2); font-size: 15px; line-height: 1.65; }
.scheme-list { list-style: none; margin-top: 18px; display: grid; gap: 11px; }
.scheme-list li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.45; color: var(--muted-2); }
.scheme-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.scheme-slide.is-active .scheme-list li { animation: liIn .55s var(--ease) backwards; }
.scheme-slide.is-active .scheme-list li:nth-child(1) { animation-delay: .18s; }
.scheme-slide.is-active .scheme-list li:nth-child(2) { animation-delay: .3s; }
.scheme-slide.is-active .scheme-list li:nth-child(3) { animation-delay: .42s; }
@keyframes liIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 960px) {
  .scheme { grid-template-columns: 1fr; gap: 26px; }
  .scheme-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .scheme-line { display: none; }
  .scheme-step { padding: 8px 0; }
  .scheme-panel { min-height: 0; padding: 24px; }
  .scheme-slide { grid-template-columns: 1fr; }
  .scheme-icon { width: 110px; }
}

/* ---------- калькулятор эффекта ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.calc-fields .field { margin-bottom: 16px; }
.calc-fields .field.wide { grid-column: 1 / -1; }
.calc-result {
  background: var(--panel);
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky; top: 88px;
}
.calc-result h3 { font-size: 18px; margin-bottom: 16px; }
.calc-line { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--muted-2); }
.calc-line:last-of-type { border-bottom: none; }
.calc-line b { color: var(--text); font-size: 20px; font-weight: 700; white-space: nowrap; }
.calc-line .hl { color: #34d399; }
.calc-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--line); outline: none; margin-top: 8px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 2px solid rgba(255, 255, 255, 0.2); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 2px solid rgba(255, 255, 255, 0.2); }
@media (max-width: 960px) {
  .calc { grid-template-columns: 1fr; }
  .calc-result { position: static; }
}

/* код-пример (API) */
.code-block {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted-2);
  overflow-x: auto;
  white-space: pre;
}
.code-block .c { color: var(--muted); }
.code-block .s { color: #34d399; }
