/* Подстраницы витрины (инструменты, сравнение): та же система, что у главной —
   acid-light на странице, lime-dark на тёмных плитах, цифры шрифтом Doto. */
:where([data-theme]) {
  --btn-primary-bg: var(--accent); --btn-primary-fg: var(--on-accent); --btn-primary-bg-hover: var(--accent-hover);
  --btn-primary-border: transparent; --btn-primary-shadow: var(--shadow-cta);
}
[data-theme="lime-dark"] {
  --font-sans: 'Montserrat', 'Inter', system-ui, sans-serif; --font-display: 'Montserrat', 'Inter', system-ui, sans-serif;
}
:root { --tablo: 'Doto', 'JetBrains Mono', monospace; }
body { margin: 0; }
a { color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.ds-floating-nav { top: 12px; }
.ds-floating-nav__tile { font-weight: 600; }
.brand-tile { gap: 10px; }
.brand-tile i { width: 22px; height: 22px; border-radius: 50%; background: #E4FC48; display: grid; place-items: center; }
.brand-tile i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #0A0A09; }

.page-head { padding: 150px 0 40px; }
.page-head h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.04em; color: var(--ink); margin: 14px 0 0; max-width: 18ch; text-wrap: balance; }
.page-head .lead { margin: 20px 0 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.sec { padding: 24px 0 72px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px; }
.panel h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.panel > p { margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.dark { background: var(--bg); color: var(--ink-2); border-color: transparent; }
.grid2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select, textarea.box {
  width: 100%; box-sizing: border-box; font: 500 15px/1.4 var(--font-sans); color: var(--ink);
  background: var(--surface-2, var(--surface)); border: 1px solid var(--border); border-radius: 12px; padding: 11px 13px;
}
textarea.box { min-height: 170px; resize: vertical; font-family: var(--font-mono); font-size: 14px; }
.field input:focus, .field select:focus, textarea.box:focus { outline: 2px solid #0A0A09; outline-offset: 1px; }
.hint { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 8px 0 0; }
.big { font: 800 clamp(40px, 5vw, 56px)/1 var(--tablo); color: var(--ink); }
.big small { font: 600 15px var(--font-sans); color: var(--muted); margin-left: 6px; }
.rows { list-style: none; padding: 0; margin: 16px 0 0; }
.rows li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--border); font-size: 15px; color: var(--ink-2); }
.rows li b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.err { color: #E5484D; font-weight: 600; }
.ok { color: var(--ink); }
.samples { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.samples li { background: var(--surface-3); border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.5; color: var(--ink); white-space: pre-wrap; }
.tbl { overflow-x: auto; }
.tbl table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 14px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 12px 10px; border-top: 1px solid var(--border); color: var(--ink-2); line-height: 1.45; }
.tbl th { font: 600 12px var(--font-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-top: 0; }
.tbl td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.tbl .us { background: color-mix(in srgb, #E4FC48 22%, transparent); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards a { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px; }
.cards a:hover { border-color: var(--ink); }
.cards h3 { margin: 0 0 6px; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.cards p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.foot { padding: 28px 0 44px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.foot__in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot a { text-decoration: none; margin-left: 24px; display: inline-block; padding: 8px 0; }
.foot a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, .ds-btn:focus-visible { outline: 2px solid #0A0A09; outline-offset: 3px; box-shadow: 0 0 0 5px #E4FC48; }
@media (max-width: 900px) {
  .grid2, .cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* Четыре плитки и кнопка не влезают в телефон: остаётся логотип и «Попробовать». */
  .ds-floating-nav__tile:not(.brand-tile) { display: none; }
  .cta .ds-btn { white-space: normal; text-align: center; max-width: 100%; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .page-head { padding-top: 116px; }
  .fields { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .foot a { margin: 0 16px 0 0; }
}

/* Посадочные страницы функций: шаги, вопросы */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.steps li::before { content: counter(s); font: 800 30px/1 var(--tablo); color: var(--ink); }
.steps b { color: var(--ink); }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-size: 18px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #E4FC48; color: #0A0A09; display: grid; place-items: center; font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: -4px 0 18px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 70ch; }
.stack { display: grid; gap: 16px; }
