/* AiPepDen · дизайн-система на бренд-токенах Satori Quantum.
   Шрифты: Unbounded (дисплей), Golos Text (текст) — те же, что на aipepden.store.
   Правило: новые страницы собираются только из этих компонентов, своих палитр не придумываем. */

@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(/brand/fonts/unbounded-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url(/brand/fonts/unbounded-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2116;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/brand/fonts/golos-text-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/brand/fonts/golos-text-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
  /* бренд-токены Satori Quantum */
  --sq-ink: #1d2930;
  --sq-ink-2: #3c4a52;
  --sq-ink-3: #56656d;
  --sq-deco: #8a989f;
  --sq-teal: #0e6b76;
  --sq-teal-2: #0a5560;
  --sq-teal-soft: #e3f0f1;
  --sq-on-teal: #ffffff;
  --sq-sun: #e9a13b;
  --sq-sun-soft: #f6d8a6;
  --sq-paper: #f7f9fa;
  --sq-card: #ffffff;
  --sq-line: rgba(29, 41, 48, 0.1);
  --sq-line-2: rgba(29, 41, 48, 0.16);
  --sq-shadow: 0 16px 40px -22px rgba(29, 41, 48, 0.35);
  --sq-shadow-lg: 0 40px 90px -50px rgba(29, 41, 48, 0.45);
  --sq-f-display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --sq-f-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sq-r: 20px;
  --sq-r-sm: 12px;
  --sq-max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sq-f-body);
  font-size: 17px; line-height: 1.55;
  color: var(--sq-ink);
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(233, 161, 59, 0.13), transparent 62%),
    radial-gradient(1100px 640px at -10% 6%, rgba(14, 107, 118, 0.1), transparent 60%),
    var(--sq-paper);
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--sq-max); margin: 0 auto; padding: 0 28px; }
a { color: inherit; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(247, 249, 250, 0.82); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--sq-line); }
.top-in { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, var(--sq-sun-soft), var(--sq-sun) 58%, #c9801f 100%); box-shadow: 0 0 0 6px rgba(233, 161, 59, 0.14); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--sq-f-display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand-sub { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sq-deco); font-weight: 600; }
.top nav { display: flex; gap: 24px; font-size: 14.5px; color: var(--sq-ink-2); }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--sq-teal); }
.top-cta { text-decoration: none; background: var(--sq-teal); color: var(--sq-on-teal); font-size: 14px; font-weight: 600; padding: 11px 18px; border-radius: 999px; letter-spacing: 0.01em; }
.top-cta:hover { background: var(--sq-teal-2); }

/* ---------- типографика ---------- */
.eyebrow { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sq-teal); font-weight: 700; }
h1, h2, h3, .display { font-family: var(--sq-f-display); font-weight: 600; letter-spacing: -0.025em; }
h1 { font-size: clamp(32px, 4.9vw, 62px); line-height: 1.06; letter-spacing: -0.035em; }
h1 em { font-style: normal; color: var(--sq-teal); }
h2 { font-size: clamp(25px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -0.03em; }
h3 { font-size: 18px; letter-spacing: -0.015em; }
.lead { font-size: clamp(16.5px, 1.5vw, 19.5px); color: var(--sq-ink-3); line-height: 1.5; }

/* ---------- обложка ---------- */
.hero { padding: 66px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 9px; background: var(--sq-card);
  border: 1px solid var(--sq-line); border-radius: 999px; padding: 8px 15px;
  font-size: 12.5px; font-weight: 600; color: var(--sq-ink-2); box-shadow: var(--sq-shadow);
}
.hero .pill b { color: var(--sq-teal); }
.hero h1 { margin: 22px 0 18px; }
.hero .lead { max-width: 560px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sq-f-body); font-size: 15.5px; font-weight: 600;
  padding: 15px 26px; border-radius: 14px; border: 1px solid transparent; cursor: pointer;
  background: var(--sq-teal); color: var(--sq-on-teal); text-decoration: none;
  transition: background 0.15s ease, transform 0.12s ease; }
.btn:hover { background: var(--sq-teal-2); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--sq-card); color: var(--sq-ink); border-color: var(--sq-line-2); box-shadow: var(--sq-shadow); }
.btn.ghost:hover { border-color: var(--sq-teal); color: var(--sq-teal); }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--sq-deco); }

/* ---------- орбита ---------- */
.orbit { position: relative; aspect-ratio: 1 / 0.92; margin: -10px -20px 0 0; }
.orbit svg { width: 100%; height: 100%; display: block; }
.orbit-label { font-family: var(--sq-f-body); font-size: 12px; font-weight: 600; fill: var(--sq-ink-3); }

/* ---------- полоса ---------- */
.strip { border-top: 1px solid var(--sq-line); border-bottom: 1px solid var(--sq-line); background: rgba(255, 255, 255, 0.6); margin-top: 40px; }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-cell { padding: 24px 22px; border-right: 1px solid var(--sq-line); }
.strip-cell:last-child { border-right: 0; }
.strip-k { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sq-deco); font-weight: 700; }
.strip-v { font-family: var(--sq-f-display); font-size: 26px; letter-spacing: -0.03em; margin-top: 7px; }
.strip-v small { font-family: var(--sq-f-body); font-size: 13px; font-weight: 500; color: var(--sq-deco); letter-spacing: 0; }

/* ---------- секции ---------- */
section { padding: 74px 0; }
section.tight { padding: 52px 0; }
.sec-head { max-width: 760px; }
.sec-head h2 { margin: 12px 0 14px; }
.sec-head .lead { max-width: 660px; }

/* ---------- карточки ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.card { background: var(--sq-card); border: 1px solid var(--sq-line); border-radius: var(--sq-r); padding: 26px; box-shadow: var(--sq-shadow); }
.card .num { font-family: var(--sq-f-display); font-size: 13px; color: var(--sq-teal); }
.card h3 { margin: 12px 0 8px; }
.card p { font-size: 14.5px; color: var(--sq-ink-3); line-height: 1.5; }
.card .chip { display: inline-block; margin-top: 14px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--sq-teal); background: var(--sq-teal-soft); padding: 5px 10px; border-radius: 999px; }

/* ---------- ноутбук и телефон ---------- */
.device-stage { display: grid; grid-template-columns: 1fr 232px; gap: 22px; align-items: center; margin-top: 38px; }
.device { background: linear-gradient(180deg, #232b31, #151a1e); border-radius: 18px; padding: 12px 12px 10px; box-shadow: var(--sq-shadow-lg); }
.device img { display: block; width: 100%; height: auto; border-radius: 8px; background: #fff; }
.device-base { height: 12px; margin: 8px -12px -10px; border-radius: 0 0 18px 18px; background: linear-gradient(180deg, #2b343b, #1a2025); }
.phone { background: linear-gradient(180deg, #232b31, #151a1e); border-radius: 30px; padding: 9px; box-shadow: var(--sq-shadow-lg); }
.phone img { display: block; width: 100%; height: auto; border-radius: 23px; background: #fff; }
.device-caption { margin-top: 16px; font-size: 13px; color: var(--sq-deco); max-width: 720px; }

/* ---------- сравнение ---------- */
.compare { margin-top: 34px; background: var(--sq-card); border: 1px solid var(--sq-line); border-radius: var(--sq-r); overflow: hidden; box-shadow: var(--sq-shadow); }
.compare-row { display: grid; grid-template-columns: 1.15fr 1fr 1fr; border-bottom: 1px solid var(--sq-line); }
.compare-row:last-child { border-bottom: 0; }
.compare-row > div { padding: 18px 22px; font-size: 15px; }
.compare-row.head > div { background: var(--sq-teal-soft); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sq-teal-2); font-weight: 700; }
.compare-row > div:first-child { color: var(--sq-ink); font-weight: 500; }
.compare-row .old { color: var(--sq-deco); }
.compare-row .new { color: var(--sq-ink); font-weight: 500; background: rgba(227, 240, 241, 0.45); }

/* ---------- тарифы ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.plan { background: var(--sq-card); border: 1px solid var(--sq-line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; box-shadow: var(--sq-shadow); }
.plan.hot { border-color: var(--sq-teal); box-shadow: 0 30px 70px -40px rgba(14, 107, 118, 0.6); }
.plan .tag { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sq-deco); font-weight: 700; }
.plan .price { font-family: var(--sq-f-display); font-size: 36px; letter-spacing: -0.04em; margin: 12px 0 2px; }
.plan .price small { font-family: var(--sq-f-body); font-size: 14px; color: var(--sq-deco); font-weight: 500; }
.plan ul { list-style: none; margin: 20px 0 24px; }
.plan li { font-size: 14.5px; color: var(--sq-ink-2); padding-left: 26px; position: relative; margin-bottom: 10px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--sq-teal-soft); box-shadow: inset 0 0 0 1px rgba(14, 107, 118, 0.35); }
.plan .foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--sq-line); font-size: 12.5px; color: var(--sq-deco); }
.plan .btn { width: 100%; margin-top: 16px; }

/* ---------- шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 34px; }
.step { border-top: 2px solid var(--sq-teal); padding-top: 18px; }
.step b { display: block; font-family: var(--sq-f-display); font-size: 12px; color: var(--sq-teal); letter-spacing: 0.04em; margin-bottom: 9px; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--sq-ink-3); }

/* ---------- форма ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.form-card { background: var(--sq-card); border: 1px solid var(--sq-line); border-radius: 24px; padding: 30px; box-shadow: var(--sq-shadow-lg); }
label { display: block; font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sq-deco); font-weight: 700; margin: 14px 0 7px; }
input[type="text"] { width: 100%; padding: 14px 15px; font-family: var(--sq-f-body); font-size: 16px; color: var(--sq-ink);
  background: var(--sq-paper); border: 1px solid var(--sq-line-2); border-radius: var(--sq-r-sm); }
input:focus { outline: none; border-color: var(--sq-teal); box-shadow: 0 0 0 4px rgba(14, 107, 118, 0.12); background: #fff; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 12.5px; color: var(--sq-deco); margin-top: 14px; line-height: 1.5; }
.ok, .err { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--sq-r-sm); font-size: 14.5px; }
.ok { background: var(--sq-teal-soft); color: var(--sq-teal-2); border: 1px solid rgba(14, 107, 118, 0.25); }
.err { background: #fdeeed; color: #a1231f; border: 1px solid rgba(161, 35, 31, 0.22); }

/* ---------- FAQ ---------- */
.faq { margin-top: 30px; border-top: 1px solid var(--sq-line); }
details { border-bottom: 1px solid var(--sq-line); padding: 20px 0; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-size: 16.5px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--sq-teal); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 12px; font-size: 15px; color: var(--sq-ink-3); max-width: 720px; }

/* ---------- подвал ---------- */
footer { border-top: 1px solid var(--sq-line); padding: 38px 0 54px; font-size: 13.5px; color: var(--sq-deco); }
.foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--sq-ink-2); text-decoration: none; }
footer a:hover { color: var(--sq-teal); }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .hero-grid, .device-stage, .form-grid { grid-template-columns: 1fr; }
  .cards, .plans, .steps { grid-template-columns: 1fr 1fr; }
  .device-stage { gap: 18px; }
  .phone { max-width: 260px; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 18px; }
  .top-in { height: 60px; }
  .top nav { display: none; }
  .brand-sub { display: none; }
  .hero { padding: 40px 0 20px; }
  section { padding: 50px 0; }
  .strip-in { grid-template-columns: 1fr 1fr; }
  .strip-cell:nth-child(2) { border-right: 0; }
  .strip-cell:nth-child(1), .strip-cell:nth-child(2) { border-bottom: 1px solid var(--sq-line); }
  .cards, .plans, .steps { grid-template-columns: 1fr; }
  .strip-v { font-size: 21px; white-space: nowrap; }
  .strip-cell { padding: 18px 16px; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row.head { display: none; }
  .compare-row > div { padding: 12px 18px; }
  .hero-actions .btn { width: 100%; }
}
