/* Общие стили сайта. Палитра — как у конструктора: бирюза изразцов, золото орнамента, светлая бумага. */
:root {
  --bg: #f3f4ef; --surface: #ffffff; --paper: #fffefa; --ink: #1c2630; --muted: #5d6a72; --line: #d6dbd3;
  --accent: #0b7480; --accent-ink: #ffffff; --accent-soft: #e2f1f1; --gold: #a87a22; --gold-soft: #f6ecd6;
  --ok: #1d7a3e; --focus: #e0a526; --warm: #8c4a2f; --sheet: #fbf6ec;
  --font-hand: "Lora", Georgia, serif;
  --font-display: "Prata", Georgia, serif; --font-body: "Golos Text", "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11171b; --surface: #182027; --paper: #1c252c; --ink: #e5ebe8; --muted: #9aa8ae; --line: #2e3b44;
    --accent: #45b5bd; --accent-ink: #0d1418; --accent-soft: #173238; --gold: #d8aa4c; --gold-soft: #2f2716; --ok: #5fc683; --warm: #e3a882; --sheet: #26231f; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font-body); }
a { color: var(--accent); }
h1, h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 12px; }
h2 { font-size: 1.6rem; margin: 0 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.site-in { max-width: 1100px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.narrow { max-width: 680px; padding-top: 40px; padding-bottom: 60px; }

.btn { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; border-radius: 8px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); padding: 10px 16px; cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.big { padding: 13px 22px; font-size: 1.05rem; }
.btn.small { padding: 6px 12px; font-size: .9rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* шапка сайта */
.site-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-bar .site-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.mark { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--accent);
  background: radial-gradient(circle, var(--accent) 0 4px, transparent 5px), repeating-conic-gradient(var(--accent) 0 6deg, transparent 6deg 30deg); }
.site-bar nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-bar nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-bar nav a:not(.btn):hover { color: var(--accent); }
.who { color: var(--muted); }

/* главная */
.hero { background: var(--surface); border-bottom: 4px solid var(--gold-soft); padding: 56px 0 48px; }
.lead { font-size: 1.15rem; max-width: 720px; color: var(--muted); }
.hero-act { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-grid .author { order: -1; }  /* на телефоне автор — первым, чтобы попасть на первый экран */
  .hero { padding-top: 24px; }
}

/* автор: лист тёплой бумаги, фото — как распечатанный снимок с белыми полями */
.author { margin: 0; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; align-items: center;
  padding: 22px; border-radius: 3px; color: var(--ink);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .55), transparent 60%),
    repeating-linear-gradient(0deg, rgba(120, 90, 50, .025) 0 1px, transparent 1px 3px),
    var(--sheet);
  box-shadow: 0 1px 2px rgba(60, 40, 20, .08), 0 10px 28px -12px rgba(60, 40, 20, .28); }
.author-photo { aspect-ratio: 5 / 6; background: #fff; padding: 7px 7px 22px; transform: rotate(-1.6deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 8px 18px -8px rgba(0, 0, 0, .35); display: grid; place-items: center; }
.author-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.initials { font-family: var(--font-display); font-size: 2.6rem; color: var(--accent); }
.author figcaption { min-width: 0; }
.author-tag { margin: 0 0 8px; font-family: var(--font-hand); font-style: italic; font-weight: 500; font-size: 1.05rem; color: var(--warm); }
.author-name { margin: 0; font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; }
.author-role { margin: 2px 0 10px; color: var(--accent); font-weight: 600; font-size: .95rem; }
.author-about { margin: 0; font-family: var(--font-hand); font-style: italic; color: var(--warm); font-size: 1.02rem; line-height: 1.5; }
@media (min-width: 861px) {
  .author { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .author-photo { max-width: 300px; width: 100%; margin: 0 auto 4px; }
  .author figcaption { text-align: center; }
}
@media (max-width: 420px) {
  .author { grid-template-columns: 118px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .author-name { font-size: 1.2rem; }
  .author-about { font-size: .95rem; }
}
.block { padding-top: 48px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { margin: 0; font-size: 1.15rem; }
.card p { margin: 0 0 8px; color: var(--muted); flex: 1; }
.card.off { opacity: .75; }
.soon { display: inline-block; align-self: flex-start; border-radius: 999px; padding: 4px 12px; background: var(--gold-soft); color: var(--gold); font-weight: 600; }
.steps { padding-left: 22px; display: grid; gap: 8px; max-width: 760px; }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 12px; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.price h3 { margin: 0; font-size: 1rem; }
.price .sum { margin: 0; font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); }
.price p { margin: 0; }
.price .btn, .price .soon { margin-top: auto; text-align: center; }
.price .soon { align-self: stretch; }
.price .sum small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.price.off { opacity: .8; }

/* вход, кабинет */
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0; font-size: .95rem; }
.consent input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.status { min-height: 1.4em; color: var(--accent); }
.tbl { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 32px; }
.tbl th, .tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ok { color: var(--ok); font-weight: 600; }
main.site-in:not(.narrow) { padding-top: 32px; padding-bottom: 60px; }

/* конструктор: полоса статуса доступа, пейволл, метка на плане */
.access { padding: 10px 16px; text-align: center; font-size: .95rem; }
.access.ok { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.access.trial { background: var(--gold-soft); color: var(--ink); }
.paywall { text-align: center; padding: 40px 10px; }
.paywall p { max-width: 560px; margin: 0 auto 14px; }
.sheet .wm { margin-top: 18px; text-align: right; font-size: .8rem; color: var(--muted); }

/* цифры доверия */
.trust ul { list-style: none; margin: 32px auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.trust li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 4px; align-content: start; }
.trust b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.15; color: var(--accent); }
.trust span { color: var(--muted); font-size: .9rem; line-height: 1.35; }
@media (max-width: 860px) { .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* пример плана: «выглядывающий» лист с затуханием снизу */
.example { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
@media (max-width: 860px) { .example { grid-template-columns: minmax(0, 1fr); } }
.example-text p { color: var(--muted); }
.example-peek { display: block; position: relative; max-height: 360px; overflow: hidden; border-radius: 6px; color: inherit; text-decoration: none;
  box-shadow: 0 1px 2px rgba(60, 40, 20, .08), 0 14px 32px -16px rgba(60, 40, 20, .35); }
.example-peek::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(transparent, var(--bg)); }
.example-peek .sheet { background: var(--paper); padding: 22px 24px; font-size: .78rem; line-height: 1.4; pointer-events: none; }
.example-peek .plan-title { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; text-align: center; margin: 0 0 10px; }
.example-peek table, .sample table { width: 100%; border-collapse: collapse; }
.example-peek th, .example-peek td { border: 1px solid var(--line); padding: 5px 7px; text-align: left; vertical-align: top; }
.example-peek th { background: var(--accent-soft); font-weight: 600; }
.example-peek h3, .example-peek h4 { margin: 10px 0 4px; font-size: .85rem; color: var(--accent); }
.example-peek p, .example-peek ul { margin: 0 0 4px; }
.example-page { padding-top: 24px; padding-bottom: 48px; }
.example-page .sheet-wrap { overflow-x: auto; margin: 24px 0; }
.sheet .wm { margin-top: 18px; text-align: right; font-size: .8rem; color: var(--muted); }

/* сравнение с ChatGPT */
.small-lead { font-size: 1.02rem; margin-top: -4px; }
.tbl-wrap { overflow-x: auto; }
.compare-tbl { min-width: 560px; margin-bottom: 0; }
.compare-tbl th[scope=row] { font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--ink); width: 18%; }
.compare-tbl td { color: var(--muted); }
.compare-tbl .ours { background: var(--accent-soft); color: var(--ink); font-weight: 500; }
.compare-tbl thead .ours { color: var(--accent); }

/* вопросы и ответы */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style-position: inside; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted); }
.faq .ask { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.faq .ask p { margin: 0 8px 0 0; font-family: var(--font-hand); font-style: italic; color: var(--warm); font-size: 1.1rem; }

/* юридические документы */
.legal h2 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; margin: 28px 0 8px; }
.legal p, .legal li { font-size: .97rem; }
.legal ul { padding-left: 22px; }
.legal .tbl { margin: 8px 0 16px; }
.legal-links { margin-top: 40px; }

.site-foot .contacts { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }

.site-foot { margin-top: 64px; background: var(--surface); border-top: 1px solid var(--line); padding: 28px 0; font-size: .9rem; }
.site-foot .site-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.site-foot .links { display: flex; flex-direction: column; gap: 4px; }
