/* Раздат: стиль MVP. Токены — docs/design/style.md. Блоки разделяем фоном и воздухом, а не рамками. */
:root {
  --bg: #F6F4EE;
  --surface: #FFFFFF;
  --surface-soft: #E9EEE4;
  --ink: #1F2A24;
  --ink-muted: #55605A;
  --line: #DAD7CC;
  --brand: #1E3B33;
  --brand-hover: #2A4F44;
  --accent: #F29B4B;
  --highlight: #EDF27A;
  --sun: #F6BE57;       /* тёплый жёлтый: главные призывы на лендинге, плашки */
  --peach: #F8D7B5;
  --danger: #D9533B;
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--font); }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(30px, 4vw, 40px); }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--ink-muted); }
.small { font-size: 15px; }
[hidden] { display: none !important; }

/* Шапка */
.top { display: flex; align-items: center; gap: 40px; padding: 18px 32px; max-width: 1360px; margin: 0 auto; }
.logo { font-weight: 700; font-size: 22px; letter-spacing: -0.03em; color: var(--brand); text-decoration: none; }
.top nav { display: flex; gap: 28px; }
.top nav a { color: var(--ink); text-decoration: none; padding: 6px 0; white-space: nowrap; }
.top nav a[aria-current="page"] { font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand); }
.top .who { margin-left: auto; color: var(--ink-muted); font-size: 15px; }

.page { max-width: 1360px; margin: 0 auto; padding: 28px 32px 80px; }
.page-narrow > * { max-width: 760px; }
.lead { margin-top: 10px; font-size: 18px; color: var(--ink-muted); max-width: 640px; }
.back { display: inline-block; margin-bottom: 18px; color: var(--ink-muted); text-decoration: none; }
.back:hover { color: var(--ink); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
       padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
       font-weight: 500; background: var(--surface-soft); color: var(--ink); white-space: nowrap; }
.btn:hover { background: #DDE5D6; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #EC8C35; }
.btn-plain { background: transparent; padding: 0 14px; }
.btn-plain:hover { background: var(--surface-soft); }
.btn-wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px;
            background: transparent; color: var(--ink-muted); cursor: pointer; }
.icon-btn:hover { background: var(--surface-soft); color: var(--ink); }
.icon-btn svg, .btn svg { width: 20px; height: 20px; }

/* Поля формы (рамки здесь функциональные: показывают, куда вводить) */
.field { display: block; margin-top: 22px; }
.field > .label { display: block; font-weight: 500; margin-bottom: 8px; }
.hint { margin-top: 6px; font-size: 15px; color: var(--ink-muted); }
.input { width: 100%; min-height: 50px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
         background: var(--surface); }
.input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(30,59,51,.15); }
textarea.input { resize: vertical; min-height: 96px; }

/* Выбор одного варианта: «таблетки» */
.choice { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choice label { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px;
               background: var(--surface-soft); cursor: pointer; }
.choice input:checked + span { background: var(--brand); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.choice input:disabled + span { opacity: .45; cursor: default; }
.choice small { margin-left: 6px; font-size: 13px; }

.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 16px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }

/* Раскладка «форма + колонка справа» */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; margin-top: 32px; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 32px; }
.panel + .panel { margin-top: 16px; }
.panel h2 + .field { margin-top: 14px; }
.panel .group + .group { margin-top: 40px; }
.aside { position: sticky; top: 24px; display: grid; gap: 16px; }
.aside .panel { padding: 24px; }
.soft { background: var(--surface-soft); border-radius: var(--radius); padding: 24px; }
.facts { margin: 12px 0 0; padding: 0; list-style: none; }
.facts li { padding: 4px 0; }
.quota-num { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }

/* Поиск произведения */
.combo { position: relative; }
.combo-list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px;
              list-style: none; background: var(--surface); border-radius: var(--radius-sm);
              box-shadow: 0 8px 28px rgba(31,42,36,.16); max-height: 320px; overflow: auto; }
.combo-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.combo-list li[aria-selected="true"], .combo-list li:hover { background: var(--surface-soft); }
.combo-list .empty { color: var(--ink-muted); cursor: default; }

.error-box { background: #FBE3DD; color: #7A2414; border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 20px; }

/* Ожидание */
.steps { list-style: none; margin: 8px 0 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 12px 0; font-size: 19px; color: var(--ink-muted); }
.steps li .mark { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%;
                  background: var(--surface-soft); }
.steps li.done { color: var(--ink); }
.steps li.done .mark { background: var(--brand); color: #fff; }
.steps li.now { color: var(--ink); font-weight: 600; }
.steps li.now .mark::after { content: ""; width: 16px; height: 16px; border-radius: 50%;
                             border: 2.5px solid var(--brand); border-right-color: transparent; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .steps li.now .mark::after { animation: none; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }

/* Таблица материалов */
.list { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; margin-top: 28px; }
.list th, .list td { text-align: left; padding: 16px 20px; }
.list th { font-weight: 500; color: var(--ink-muted); font-size: 15px; }
.list tr + tr td { border-top: 1px solid var(--bg); }
.list a { color: var(--ink); font-weight: 500; text-decoration: none; }
.list a:hover { text-decoration: underline; }
.status-error { color: var(--danger); }

/* Редактор */
.ed-head { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; justify-content: space-between; }
.ed-head .meta { margin-top: 8px; color: var(--ink-muted); }
.saved { font-size: 15px; color: var(--ink-muted); }
.saved.err { color: var(--danger); }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; }
.note { margin-top: 24px; background: var(--surface-soft); border-radius: var(--radius); padding: 16px 22px; }
.ed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 28px; align-items: start; }
.sections { display: grid; gap: 14px; }
.sec { background: var(--surface); border-radius: var(--radius); padding: 10px 14px 18px; }
.sec-head { display: flex; align-items: center; gap: 6px; min-height: 52px; }
.sec-head h2 { font-size: 20px; flex: 1; }
.sec-head .count { font-weight: 400; color: var(--ink-muted); margin-left: 6px; }
.sec.collapsed .sec-body { display: none; }
.sec.collapsed .chev { transform: rotate(-90deg); }
.sec-body { padding: 0 6px 0 4px; }
.handle { cursor: grab; touch-action: none; }
.dragging { opacity: .45; }
.items { display: grid; gap: 4px; }
.item { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 6px; align-items: start;
        padding: 10px 6px; border-radius: var(--radius-sm); }
.item:hover, .item:focus-within { background: var(--bg); }
.item .no { padding-top: 9px; text-align: right; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.item .tools { display: flex; gap: 2px; opacity: 0; }
.item:hover .tools, .item:focus-within .tools { opacity: 1; }
@media (hover: none) { .item .tools { opacity: 1; } }
.fld { display: block; width: 100%; border: 0; border-radius: 8px; background: transparent; padding: 7px 10px;
       resize: none; overflow: hidden; line-height: 1.45; }
.fld:hover { background: var(--surface); }
.fld:focus { background: var(--surface); outline: 2px solid var(--brand); outline-offset: 0; }
.fld-q { font-weight: 500; }
.fld-row { display: flex; align-items: baseline; gap: 4px; }
.fld-row > span { flex: none; color: var(--ink-muted); font-size: 15px; padding-left: 10px; width: 92px; }
.fld-ans { font-style: italic; color: var(--ink-muted); }
.add { margin-top: 8px; }
.hidden-secs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.mini-cw { display: grid; gap: 2px; margin: 4px 0 14px 36px; width: max-content; max-width: 100%; }
.mini-cw i { width: 14px; height: 14px; background: var(--bg); border-radius: 2px; }
.mini-cw i.on { background: var(--brand); }
.cw-note { margin: 0 0 8px 36px; font-size: 15px; color: var(--ink-muted); }

.preview { position: sticky; top: 16px; background: var(--surface); border-radius: var(--radius); padding: 14px; }
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px 12px; }
.preview .choice span { min-height: 40px; padding: 0 16px; }
.preview iframe { display: block; width: 100%; height: calc(100vh - 120px); border: 0; border-radius: var(--radius-sm); background: #E4E2DA; }

.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 10; min-width: 200px; padding: 6px; margin: 0;
             list-style: none; background: var(--surface); border-radius: var(--radius-sm); box-shadow: 0 8px 28px rgba(31,42,36,.16); }
.menu-list button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 10px 12px;
                    border-radius: 8px; cursor: pointer; }
.menu-list button:hover { background: var(--surface-soft); }

dialog { border: 0; border-radius: var(--radius); padding: 28px; max-width: 520px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(31,42,36,.4); }

footer.foot { max-width: 1360px; margin: 0 auto; padding: 24px 32px 40px; color: var(--ink-muted); font-size: 15px; }

@media (max-width: 1000px) {
  .top { flex-wrap: wrap; gap: 8px 28px; }
  .split, .ed { grid-template-columns: 1fr; }
  .aside, .preview { position: static; }
  .preview iframe { height: 80vh; }
}
@media (max-width: 640px) {
  .top { flex-wrap: wrap; gap: 8px 20px; padding: 14px 16px; }
  .top .who { margin-left: 0; }
  .page { padding: 20px 16px 60px; }
  .panel { padding: 22px 18px; }
  .item { grid-template-columns: 24px minmax(0, 1fr); }
  .item .tools { grid-column: 2; opacity: 1; }
  .fld-row { display: block; }
  .fld-row > span { display: block; width: auto; }
  .list thead { display: none; }
  .list tr { display: block; padding: 12px 0; }
  .list td { display: block; padding: 4px 20px; border: 0 !important; }
}

/* Вход */
.auth { max-width: 560px; }
.auth h1 { font-size: 32px; }
.code-cells { display: flex; gap: 8px; }
.code-cells .input { width: 52px; height: 60px; padding: 0; text-align: center; font-size: 26px; font-weight: 600; }
.who { display: flex; align-items: center; gap: 4px; }

/* Каталог тем в поиске */
.combo-list li.topic { font-weight: 600; }
.combo-list li.sub { padding-left: 28px; }
.combo-list li small { color: var(--ink-muted); font-weight: 400; font-size: 13px; }

/* Админка */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 28px; }
.stats .panel + .panel { margin-top: 0; }
details summary { cursor: pointer; }
.admin .list { display: block; overflow-x: auto; }
.qr { width: 220px; margin: 20px 0 8px; background: #fff; border-radius: var(--radius-sm); }
.qr svg { display: block; width: 100%; height: auto; }

/* Мои материалы */
.quota-card { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px 40px; margin-top: 28px;
              background: var(--surface); border-radius: var(--radius); padding: 28px 32px; }
.quota-line { font-size: 22px; margin: 4px 0 12px; }
.bar { height: 10px; border-radius: 999px; background: var(--surface-soft); overflow: hidden; margin-bottom: 10px; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 999px; }
.quota-more { background: var(--surface-soft); border-radius: var(--radius-sm); padding: 18px 20px; display: grid; gap: 14px; align-content: start; }
.filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 12px; }
select.input { appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2355605A' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center; padding-right: 40px; }
.mats { display: grid; gap: 8px; margin-top: 12px; }
.mat { display: grid; grid-template-columns: minmax(0, 1fr) 100px 110px auto; gap: 16px; align-items: center;
       background: var(--surface); border-radius: var(--radius-sm); padding: 14px 16px 14px 22px; }
.mat-main { display: grid; gap: 2px; text-decoration: none; color: var(--ink); min-width: 0; }
.mat-main:hover .mat-name { text-decoration: underline; }
.mat-name { font-weight: 600; }
.mat-actions { display: flex; gap: 4px; justify-content: flex-end; }
details.menu { position: relative; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-list a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.menu-list a:hover { background: var(--surface-soft); }
.who a { color: var(--ink-muted); text-decoration: none; }
.who a:hover, .who a[aria-current] { color: var(--ink); }
@media (max-width: 760px) {
  .quota-card { grid-template-columns: 1fr; padding: 22px 18px; }
  .filters { grid-template-columns: 1fr; }
  .mat { grid-template-columns: minmax(0, 1fr) auto; }
  .mat-date { display: none; }
  .mat-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* Аккаунт */
.btn-danger { background: transparent; color: var(--danger); }
.btn-danger:hover { background: #FBE3DD; color: #A8321C; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sec-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.devices { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.devices li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px;
              border-radius: var(--radius-sm); background: var(--bg); }
.tag { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; font-size: 13px;
       background: var(--surface-soft); color: var(--brand); font-weight: 500; }
/* Тарифы */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; margin-top: 28px; align-items: start; max-width: 980px; }
.plan { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.plan-main { background: var(--brand); color: #fff; }
.plan-main .muted, .plan-main .label { color: #CFDCD5; }
.plan-main .btn-primary { background: var(--accent); color: var(--ink); }
.plan-main .btn-primary:disabled { opacity: .75; }
.plan-main .input { background: rgba(255,255,255,.95); }
.price { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; margin: 10px 0 6px; }
.price span { font-size: 17px; font-weight: 400; }
.plan-state { margin-top: 18px; font-weight: 600; }
.plan-main .plan-state { color: var(--highlight); }
.promo { display: flex; gap: 8px; }
.promo .input { flex: 1; }
@media (max-width: 760px) {
  .two, .plans { grid-template-columns: 1fr; }
  .devices li { flex-direction: column; align-items: flex-start; }
}

/* Главная */
.land-top { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.land-nav { flex: 1; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #F2B03D; }
mark { background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 92%, transparent 92%); color: inherit; padding: 0 .08em; }
.hero-wrap { position: relative; background: var(--surface-soft); border-radius: var(--radius) var(--radius) 0 0; margin-top: 8px;
             padding: 44px 48px 64px;
             -webkit-mask: radial-gradient(22px at 50% calc(100% + 8px), #0000 98%, #000) 50% / 44px 100%;
                     mask: radial-gradient(22px at 50% calc(100% + 8px), #0000 98%, #000) 50% / 44px 100%; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.2vw, 54px); max-width: 700px; }
.hero .lead { font-size: 19px; max-width: 600px; margin-top: 18px; color: var(--ink); opacity: .8; }
.hero .actions { margin-top: 26px; }
.hero-sheets { position: relative; height: 560px; }
.sheet { position: absolute; width: 380px; height: 538px; overflow: hidden; border-radius: 6px; background: #fff;
         box-shadow: 0 14px 34px rgba(31,42,36,.16); }
.sheet iframe, .example-frame iframe { width: 794px; height: 1123px; border: 0; transform-origin: 0 0; pointer-events: none; }
.sheet iframe { transform: scale(0.4786); }
.sheet-front { left: 30px; top: 10px; }
.sheet-back { left: 120px; top: 30px; transform: rotate(5deg); }
.float { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; background: var(--surface);
         border-radius: 999px; padding: 10px 16px; font-size: 15px; font-weight: 500; box-shadow: 0 10px 28px rgba(31,42,36,.16); }
.float svg { color: var(--brand); }
.float-ready { top: 60px; left: -30px; background: var(--brand); color: #fff; }
.float-ready svg { color: var(--sun); }
.float-toggle { top: 250px; right: -10px; padding: 5px; gap: 4px; }
.float-toggle span { padding: 6px 14px; border-radius: 999px; }
.float-toggle .on { background: var(--sun); }
.float-flag { bottom: 30px; left: 10px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr 1.4fr 1fr; gap: 14px; margin-top: 40px; }
.tile { border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 4px; align-content: end; min-height: 150px; }
.tile b { font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.tile span { font-size: 16px; }
.tile-sun { background: var(--sun); }
.tile-brand { background: var(--brand); color: #fff; }
.tile-peach { background: var(--peach); }
.tile-sage { background: var(--surface); }
.land-sec { margin-top: 96px; }
.land-sec > h2, .land-sec h2 { font-size: clamp(26px, 3vw, 34px); }
.sec-head-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; align-items: end; }
.subjects { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.subjects li { background: var(--surface); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 2px; }
.subjects li span { font-weight: 500; }
.subjects li small { color: var(--ink-muted); font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.subjects li.ready { background: var(--brand); color: #fff; }
.subjects li.ready small { color: var(--sun); }
.two-col { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; }
.uses { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 18px; }
.uses li { background: var(--surface); border-radius: var(--radius-sm); padding: 18px 22px; }
.steps-text { margin: 22px 0 0; padding-left: 24px; display: grid; gap: 18px; font-size: 18px; }
.steps-text li::marker { font-weight: 600; color: var(--brand); }
.examples { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; margin-top: 28px; align-items: start; }
.example { background: var(--surface); border-radius: var(--radius); padding: 22px; display: grid; gap: 18px; }
.example-sun { background: var(--sun); }
.example-sun .btn { background: rgba(255,255,255,.7); }
.example-sun .btn-plain { background: transparent; }
.example-frame { height: 380px; overflow: hidden; border-radius: 8px; background: #fff; }
.example-frame iframe { transform: scale(0.62); }
.example-main .example-frame { height: 460px; box-shadow: inset 0 0 0 1px var(--line); }
.example-main .example-frame iframe { transform: scale(0.72); }
.how { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px; align-items: center; }
.mock { background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: 0 14px 34px rgba(31,42,36,.10); transform: rotate(-1.5deg); }
.mock-label { font-size: 14px; font-weight: 500; margin: 14px 0 6px; }
.mock-label:first-child { margin-top: 0; }
.mock-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-pills span { padding: 6px 14px; border-radius: 999px; background: var(--surface-soft); font-size: 14px; }
.mock-pills .on { background: var(--brand); color: #fff; }
.mock-input { border: 1.5px solid var(--brand); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 15px; }
.mock-checks { display: grid; gap: 4px; font-size: 15px; }
.mock-checks span { display: inline-flex; align-items: center; gap: 6px; }
.mock-checks svg { color: var(--brand); }
.mock-btn { margin-top: 18px; background: var(--brand); color: #fff; border-radius: 999px; padding: 12px; text-align: center; font-weight: 500; }
.trust { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 20px 32px; }
.trust .uses li { background: transparent; padding: 0; }
.trust .note { grid-column: 1 / -1; margin-top: 4px; }
.faq { margin-top: 24px; display: grid; gap: 8px; max-width: 860px; }
.faq details { background: var(--surface); border-radius: var(--radius-sm); padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 500; font-size: 18px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--ink-muted); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--ink-muted); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
       background: var(--sun); border-radius: var(--radius); padding: 40px 44px; }
#subjects, #examples, #how, #pricing, #faq { scroll-margin-top: 90px; }
@media (max-width: 1000px) {
  .hero, .two-col, .trust, .examples, .how, .sec-head-row { grid-template-columns: 1fr; }
  .hero-wrap { padding: 32px 24px 56px; }
  .hero-sheets { height: 480px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .top .land-nav { display: none; }
  .land-top .who { margin-left: auto; }
  .mock { transform: none; }
}
@media (max-width: 640px) {
  .hero-wrap { padding: 24px 16px 52px; margin-left: -16px; margin-right: -16px; border-radius: 0; }
  .hero-sheets { height: 420px; }
  .sheet { width: 260px; height: 368px; }
  .sheet iframe { transform: scale(0.3275); }
  .sheet-front { left: 0; }
  .sheet-back { left: 50px; }
  .float-ready { left: 0; top: 330px; }
  .float-toggle { right: 0; top: 140px; }
  .float-flag { display: none; }
  .example-frame, .example-main .example-frame { height: 300px; }
  .example-frame iframe, .example-main .example-frame iframe { transform: scale(0.4); }
  .land-sec { margin-top: 64px; }
  .cta { padding: 26px 20px; }
  .tile { min-height: 120px; padding: 18px; }
}

/* Подвал и юридические страницы */
.site-foot { display: flex; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; align-items: flex-start; }
.site-foot a { color: var(--ink-muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.legal { margin-top: 24px; background: var(--surface); border-radius: var(--radius); padding: 32px 36px; line-height: 1.6; }
.legal h2 { font-size: 20px; margin: 28px 0 10px; }
.legal h2:first-child { margin-top: 0; }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 8px 0; padding-left: 22px; }
.legal li + li { margin-top: 4px; }
@media (max-width: 640px) { .legal { padding: 22px 18px; } }
.text-edit { min-height: 60vh; font: 15px/1.55 ui-monospace, "SF Mono", Menlo, monospace; }
.top .btn.who { font-size: 16px; color: var(--ink); }
.top .btn-primary.who { color: #fff; }
