/* Сайт socratix.ru — вёрстка по канвасу «Socratix Site».
   Дизайн-система приложения: Nunito (заголовки) + Golos Text (текст),
   фиолетовый #6d55b8, тёплая «бумага» #fafaf6, pill-кнопки, мягкие тени. */

@font-face { font-family: 'Golos Text'; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/golos-400.woff2) format('woff2'); }
@font-face { font-family: 'Golos Text'; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/golos-500.woff2) format('woff2'); }
@font-face { font-family: 'Golos Text'; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/golos-600.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/nunito-700.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-weight: 800; font-display: swap;
  src: url(/assets/fonts/nunito-800.woff2) format('woff2'); }

:root {
  --paper: #fafaf6; --white: #ffffff;
  --ink: #373737; --text: #454545; --secondary: #5c5c5c; --muted: #a8a8a8;
  --border: #ececec; --border-strong: #dedede;
  --accent: #6d55b8; --accent-600: #5d47a0; --accent-700: #4c3a84;
  --accent-50: #f0edf7; --accent-100: #e2ddf2; --accent-dark: #291f49;
  --accent-dark-muted: #8a7fb0;
  --teal: #1888ac; --teal-50: #e6f7fc;
  --pink: #cd5a80; --pink-50: #fdeef3;
  --success: #1f8a5b; --success-50: #e7f6ee;
  --warn: #b0731d; --warn-50: #fdf3e2;
  --shadow-sm: 0 1px 2px rgba(38,32,60,.06);
  --shadow-md: 0 6px 18px rgba(38,32,60,.10);
  --shadow-brand: 0 8px 22px rgba(109,85,184,.26);
  --font-display: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Golos Text', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800;
  color: var(--ink); margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent-600); text-decoration: none; }
a:hover { color: var(--accent-700); }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ── Header ── */
.site-header { background: var(--paper); }
.site-header.bordered { border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center;
  justify-content: space-between; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 12px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--accent-600); }
.nav a.current { color: var(--ink); font-weight: 600; }
.nav-toggle { display: none; }

/* ── Кнопки ── */
.btn { display: inline-block; padding: 14px 30px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-align: center; }
.btn-primary { background: var(--accent); color: #fff !important;
  box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--accent-600); }
.btn-secondary { background: var(--white); color: var(--ink) !important;
  border: 1.5px solid var(--border-strong); }
.btn-sm { padding: 10px 24px; font-size: 15px; }
.btn-light { background: #fff; color: var(--accent-dark) !important; font-weight: 700; }

/* ── Hero ── */
.hero .container { display: flex; align-items: center; gap: 56px;
  padding-top: 64px; padding-bottom: 80px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.hero h1 { font-size: 52px; }
.hero .lead { font-size: 19px; color: var(--secondary); text-wrap: pretty; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.chip-accent { background: var(--accent-50); color: var(--accent); }
.chip-teal { background: var(--teal-50); color: var(--teal); }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-facts { display: flex; gap: 20px; flex-wrap: wrap;
  color: var(--muted); font-size: 13px; }
.hero-facts .fact { display: flex; align-items: center; gap: 7px; }
.hero-shots { display: flex; align-items: flex-end; gap: 24px; flex-shrink: 0; }
.phone { border-radius: 28px; background: var(--white);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-md); padding: 10px; }
.phone img { border-radius: 20px; }
.phone-sm { width: 264px; margin-bottom: 32px; }
.phone-lg { width: 296px; }

/* ── Секции ── */
.section { padding: 72px 0; }
.section-white { background: var(--white); }
.section-head { display: flex; flex-direction: column; gap: 12px;
  max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: 34px; }
.section-head p { font-size: 17px; color: var(--secondary); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 28px;
  border-radius: 18px; background: var(--paper); border: 1px solid var(--border); }
.card h3 { font-size: 18px; font-weight: 700; }
.card p { font-size: 15px; color: var(--secondary); }
.card-icon { width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; }
.card-highlight { background: var(--accent-50); border-color: var(--accent-100); }
.section-white .card.card-trust { background: var(--white);
  box-shadow: var(--shadow-sm); }
.card-trust { background: var(--white); box-shadow: var(--shadow-sm); }

/* ── Полоса со скриншотами ── */
.band { background: linear-gradient(180deg, #5d48a2 0%, var(--accent) 100%);
  padding: 72px 0; }
.band .container { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.band-head { display: flex; flex-direction: column; gap: 12px; align-items: center;
  text-align: center; max-width: 720px; }
.band-head h2 { font-size: 34px; color: #fff; }
.band-head p { font-size: 17px; color: rgba(255,255,255,.75); }
.band-shots { display: flex; align-items: flex-start; gap: 32px; }
.band-shots .phone { border: none; box-shadow: 0 6px 18px rgba(38,32,60,.2); width: 250px; padding: 9px; }
.band-shots .phone.offset { margin-top: 28px; }
.stores { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.store-badge { display: flex; align-items: center; gap: 9px; padding: 11px 22px;
  border-radius: 14px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28); color: #fff !important;
  font-size: 14px; font-weight: 500; }

/* ── CTA-плашка ── */
.cta-panel { display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding: 48px 56px; border-radius: 28px; background: var(--accent-dark);
  margin: 0 0 72px 0; }
.cta-panel h2 { font-size: 30px; color: #fff; }
.cta-panel p { font-size: 16px; color: var(--accent-dark-muted); margin-top: 10px;
  max-width: 640px; }

/* ── Footer ── */
.site-footer { background: var(--white); border-top: 1px solid var(--border);
  padding: 44px 0 40px 0; }
.footer-top { display: flex; justify-content: space-between; gap: 40px;
  flex-wrap: wrap; margin-bottom: 28px; }
.footer-about { display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.footer-about p { font-size: 13px; color: var(--muted); }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col .footer-title { font-weight: 700; color: var(--ink); font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted); }

/* ── Документация ── */
.docs-layout { display: flex; gap: 56px; align-items: flex-start;
  padding: 48px 0 72px 0; }
.docs-sidebar { display: flex; flex-direction: column; gap: 6px; width: 280px;
  flex-shrink: 0; position: sticky; top: 24px; }
.docs-sidebar .sidebar-label { font-size: 12px; font-weight: 700; color: var(--muted);
  letter-spacing: .06em; padding: 0 16px 8px 16px; }
.docs-sidebar a { padding: 11px 16px; border-radius: 12px; font-size: 15px;
  color: var(--secondary); }
.docs-sidebar a:hover { background: var(--white); }
.docs-sidebar a.current { background: var(--accent-50); color: var(--accent-700);
  font-weight: 600; }
.sidebar-help { margin: 16px 16px 0 16px; padding: 16px; border-radius: 14px;
  background: var(--white); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.sidebar-help .help-title { font-weight: 700; color: var(--ink); }
.sidebar-help p { color: var(--secondary); }
.sidebar-help a { font-weight: 600; }

.doc { max-width: 760px; min-width: 0; }
.doc .breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.doc h1 { font-size: 40px; margin-bottom: 14px; }
.doc-body { font-size: 16px; color: var(--text); }
.doc-body h2 { font-size: 26px; margin: 36px 0 12px 0; }
.doc-body h3 { font-size: 19px; font-weight: 700; margin: 24px 0 8px 0; }
.doc-body p { margin: 0 0 12px 0; line-height: 1.65; }
.doc-body ul, .doc-body ol { margin: 0 0 12px 0; padding-left: 24px; }
.doc-body li { margin-bottom: 6px; line-height: 1.6; }
.doc-body li::marker { color: var(--accent); }
.doc-body code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-size: 14px; background: var(--accent-50); border-radius: 6px; padding: 1px 6px; }
.doc-body pre { background: #2e2a3d; color: #e8e4f5; border-radius: 14px;
  padding: 18px 22px; overflow-x: auto; margin: 0 0 12px 0; }
.doc-body pre code { background: none; color: inherit; padding: 0; font-size: 13.5px; }
.table-wrap { overflow-x: auto; margin: 0 0 12px 0; }
.doc-body table { border-collapse: collapse; width: 100%; font-size: 15px;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; }
.doc-body th { background: #f6f6f4; font-size: 13px; font-weight: 700;
  color: var(--secondary); text-align: left; padding: 12px 20px; }
.doc-body td { padding: 14px 20px; border-top: 1px solid var(--border);
  vertical-align: top; line-height: 1.5; }
.doc-body blockquote { margin: 0 0 12px 0; padding: 16px 20px; border-radius: 14px;
  background: var(--teal-50); color: var(--teal); font-size: 14px; }
.doc-body blockquote p { margin: 0; }
.doc-nav { display: flex; justify-content: space-between; gap: 12px;
  margin-top: 32px; flex-wrap: wrap; }

/* ── Простые страницы (стоимость, поддержка) ── */
.page-head { display: flex; flex-direction: column; gap: 14px; align-items: center;
  text-align: center; padding: 64px 0 40px 0; }
.page-head h1 { font-size: 44px; }
.page-head p { font-size: 18px; color: var(--secondary); max-width: 620px;
  text-wrap: pretty; }
.price-card { display: flex; flex-direction: column; gap: 20px; width: 460px;
  max-width: 100%; margin: 0 auto 64px auto; padding: 40px; border-radius: 20px;
  background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.price-card .plan { font-size: 14px; font-weight: 600; color: var(--accent); }
.price-card .price { font-family: var(--font-display); font-size: 34px;
  font-weight: 800; }
.price-card .price small { font-family: var(--font-body); font-size: 15px;
  font-weight: 400; color: var(--muted); }
.check-list { display: flex; flex-direction: column; gap: 10px; font-size: 15px;
  color: var(--text); }
.check-list .check { display: flex; gap: 9px; align-items: flex-start; }
.check-list svg { flex-shrink: 0; margin-top: 2px; }
.price-note { font-size: 13px; color: var(--muted); text-align: center; }

/* ── Адаптив ── */
@media (max-width: 1120px) {
  .hero-shots .phone-sm { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-layout { gap: 36px; }
  .docs-sidebar { width: 240px; }
}

@media (max-width: 860px) {
  .hero .container { flex-direction: column; align-items: flex-start; gap: 40px;
    padding-top: 40px; padding-bottom: 56px; }
  .hero h1 { font-size: 36px; }
  .hero-shots { align-self: center; }
  .phone-lg { width: 260px; }
  .section { padding: 48px 0; }
  .section-head h2, .band-head h2 { font-size: 27px; }
  .band-shots { width: 100%; overflow-x: auto; padding-bottom: 8px; }
  .band-shots .phone { flex-shrink: 0; width: 220px; }
  .band-shots .phone.offset { margin-top: 0; }
  .cta-panel { flex-direction: column; align-items: flex-start;
    padding: 32px 28px; margin-bottom: 48px; }
  .docs-layout { flex-direction: column; }
  .docs-sidebar { position: static; width: 100%; }
  .sidebar-help { display: none; }
  .doc h1 { font-size: 30px; }
  .doc-body h2 { font-size: 22px; }
  .page-head h1 { font-size: 32px; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .nav { display: none; }
  .nav-toggle { display: block; position: relative; }
  .nav-toggle summary { list-style: none; cursor: pointer; display: flex;
    align-items: center; padding: 6px; }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle .nav-menu { position: absolute; right: 0; top: 42px; z-index: 20;
    display: flex; flex-direction: column; gap: 4px; min-width: 220px;
    background: var(--white); border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--shadow-md); padding: 10px; }
  .nav-toggle .nav-menu a { padding: 10px 14px; border-radius: 10px;
    font-size: 15px; font-weight: 500; }
  .nav-toggle .nav-menu a:hover { background: var(--accent-50); }
  .hero-cta { flex-direction: column; align-self: stretch; }
  .hero-cta .btn { width: 100%; }
  .footer-cols { gap: 36px; }
}

/* ── Скриншоты в документации ── */
.doc-body .shots { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
  margin: 4px 0 16px 0; }
.doc-body .shots img { width: 220px; height: auto; border-radius: 18px;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-sm); }
@media (max-width: 640px) {
  .doc-body .shots img { width: calc(50% - 8px); min-width: 140px; }
}
