/* Каталог школы и страницы курсов. Оформление из F00 («Вечер без плиты»):
   тёмно-синий верх, тёплый фон, Lora + Manrope + IBM Plex Mono (все с кириллицей).
   Собирается скриптом ../build.mjs, руками html не править. */

:root{
  --bg:#F3EFE6;--surface:#FBF9F4;--surface-2:#EFE9DC;--text:#2A2724;--text-muted:#665F56;--border:#DDD5C4;
  --accent:#B5721F;--accent-text:#8A5610;--accent-soft:#F1DFC0;
  --herb:#5B6947;--herb-soft:#E4E8DA;--clay:#A8462F;--clay-soft:#F0DDD5;
  --hero-bg:#262A46;--hero-bg-2:#333A5E;--hero-text:#F3EFE6;--hero-text-muted:#B9BDD6;--hero-accent:#E3AC66;
  /* имена, которые ждёт общий checkout.css */
  --graphite:var(--text);--muted:var(--text-muted);--sand:var(--surface-2);
  --violet:var(--accent);--violet-soft:var(--accent-soft);
  color-scheme:light dark;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#1B1E30;--surface:#262A46;--surface-2:#2E3354;--text:#EDE9DF;--text-muted:#A8A4C4;--border:#40456B;
    --accent:#E3AC66;--accent-text:#E3AC66;--accent-soft:#4A3B22;
    --herb:#9CAE86;--herb-soft:#333B29;--clay:#D9765A;--clay-soft:#43302C;
  }
}
:root[data-theme="dark"]{
  --bg:#1B1E30;--surface:#262A46;--surface-2:#2E3354;--text:#EDE9DF;--text-muted:#A8A4C4;--border:#40456B;
  --accent:#E3AC66;--accent-text:#E3AC66;--accent-soft:#4A3B22;
  --herb:#9CAE86;--herb-soft:#333B29;--clay:#D9765A;--clay-soft:#43302C;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--bg);color:var(--text);
  font-family:"Manrope",ui-sans-serif,system-ui,sans-serif;
  font-size:17px;line-height:1.6;-webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{font-family:"Lora",Georgia,serif;text-wrap:balance;margin:0}
p{margin:0 0 1em;max-width:64ch}
ul{margin:0;padding:0;list-style:none}
a{color:inherit}
.mono{font-family:"IBM Plex Mono",ui-monospace,monospace;font-variant-numeric:tabular-nums}
.wrap{max-width:760px;margin:0 auto;padding:0 24px}
.wrap.wide{max-width:1040px}
section{padding:64px 0}
.band{background:var(--surface-2)}
:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

/* ── верх страницы ── */
.dusk{background:linear-gradient(180deg,var(--hero-bg),var(--hero-bg-2));color:var(--hero-text)}
.hero{padding:26px 0 60px}
.crumb{
  display:block;width:max-content;max-width:100%;margin-bottom:38px;
  font-family:"IBM Plex Mono",monospace;font-size:13px;letter-spacing:.04em;
  color:var(--hero-text-muted);text-decoration:none;
}
.crumb:hover{color:var(--hero-text)}
.brand-line{
  margin:0 0 38px;font-family:"IBM Plex Mono",monospace;font-size:13px;
  letter-spacing:.08em;text-transform:uppercase;color:var(--hero-text-muted);
}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;margin:0 0 18px;
  font-family:"IBM Plex Mono",monospace;font-size:12.5px;letter-spacing:.08em;
  text-transform:uppercase;color:var(--hero-accent);
}
.eyebrow .dot{width:6px;height:6px;border-radius:50%;background:currentColor}
h1{font-size:clamp(30px,4.8vw,46px);font-weight:700;line-height:1.15;margin-bottom:20px;color:var(--hero-text)}
.lede{font-size:18px;line-height:1.6;max-width:54ch;color:var(--hero-text-muted)}
.chips{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0 4px}
.chip{border:1px solid rgba(243,239,230,.28);border-radius:999px;padding:7px 16px;font-size:14px;color:var(--hero-text)}
.hero-cta{margin-top:30px}

.cta{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  background:#E3AC66;color:#1F1B16;font-weight:700;font-size:16px;line-height:1.3;
  padding:16px 30px;border-radius:12px;border:none;cursor:pointer;text-decoration:none;text-align:center;
  font-family:"Manrope",sans-serif;box-shadow:inset 0 0 0 1px rgba(0,0,0,.14);
  transition:filter .15s ease,transform .15s ease;
}
.cta:hover{filter:brightness(1.06)}
.cta:active{transform:translateY(1px)}
.cta:focus-visible{outline:3px solid var(--hero-text);outline-offset:3px}
.cta.block{width:100%}
.cta-note{display:block;margin-top:12px;font-size:14px;line-height:1.5;color:var(--hero-text-muted)}
.light .cta-note,.pricebox .cta-note{color:var(--text-muted)}
.cta-wrap{margin:30px 0 4px}
.back-link{margin:30px 0 0;font-size:15px}
.back-link a{color:var(--accent-text);font-weight:700;text-decoration:underline;text-underline-offset:3px}

/* ── цифры ── */
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:30px 0 0}
.stat{background:rgba(243,239,230,.06);border:1px solid rgba(243,239,230,.12);border-radius:14px;padding:16px 14px}
.stat b{display:block;font-family:"Lora",Georgia,serif;font-size:28px;line-height:1.1;font-weight:600;color:var(--hero-accent)}
.stat span{display:block;margin-top:6px;font-size:13px;line-height:1.35;color:var(--hero-text-muted)}

/* ── заголовки и списки ── */
h2{font-size:clamp(24px,3.4vw,32px);font-weight:600;line-height:1.22;margin-bottom:18px}
h3{font-size:20px;font-weight:600;line-height:1.3;margin-bottom:10px}
.sec-lead{color:var(--text-muted);max-width:56ch;margin-bottom:26px}
.checks{margin:22px 0}
.checks li{position:relative;padding:11px 0 11px 30px;border-bottom:1px solid var(--border)}
.checks li:first-child{border-top:1px solid var(--border)}
.checks li::before{content:"✓";position:absolute;left:0;top:11px;color:var(--herb);font-weight:700}
.checks li small{display:block;margin-top:2px;font-size:15px;line-height:1.5;color:var(--text-muted)}
.dots li{position:relative;padding:5px 0 5px 18px}
.dots li::before{content:"";position:absolute;left:0;top:.9em;width:6px;height:6px;border-radius:50%;background:var(--accent)}
.plain{margin:14px 0}
.plain li{padding:8px 0;border-bottom:1px solid var(--border)}
.plain li:first-child{border-top:1px solid var(--border)}
.plain li b{font-weight:700}

/* ── карточки-этапы и плитки ── */
.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:24px 0}
.tile{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:22px 22px 20px}
.tile .n{display:block;margin-bottom:8px;font-family:"IBM Plex Mono",monospace;font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--accent-text)}
.tile h3{font-size:18px}
.tile p{margin:0;font-size:15.5px;line-height:1.55;color:var(--text-muted)}
.tile ul{margin:8px 0 0}
.tile li{position:relative;padding:4px 0 4px 16px;font-size:15.5px;line-height:1.5;color:var(--text-muted)}
.tile li::before{content:"·";position:absolute;left:2px;color:var(--accent-text);font-weight:700}
.tile.wide{grid-column:1/-1}
.tile .eq{margin:10px 0 0;font-size:14px;line-height:1.5;color:var(--text-muted)}
.tile .eq b{color:var(--text);font-weight:600}
.tile .pr{margin:12px 0 0;font-family:"IBM Plex Mono",monospace;font-size:13.5px;font-weight:600;color:var(--accent-text)}
.tile .meal{display:flex;justify-content:space-between;gap:16px;align-items:baseline}
.tile .t{white-space:nowrap;font-family:"IBM Plex Mono",monospace;font-size:13px;color:var(--accent-text)}
.stack{display:flex;flex-direction:column;gap:12px;margin:22px 0}
.meal-row{display:flex;justify-content:space-between;gap:18px;align-items:baseline;padding:14px 0;border-bottom:1px solid var(--border)}
.meal-row:first-child{border-top:1px solid var(--border)}
.meal-row .t{white-space:nowrap;font-family:"IBM Plex Mono",monospace;font-size:14px;color:var(--accent-text);font-weight:600}
.note{background:var(--herb-soft);color:var(--text);border-radius:14px;padding:18px 22px;margin:24px 0;font-size:16px}
.note p:last-child{margin:0}
.note b{color:var(--herb)}

/* ── цена ── */
.pricebox{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:30px 30px 28px;margin:6px 0}
.pricebox.accent{border:2px solid var(--accent)}
.pb-label{margin:0 0 6px;font-family:"IBM Plex Mono",monospace;font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--accent-text)}
.price-row{display:flex;align-items:baseline;gap:16px;flex-wrap:wrap;margin:8px 0 6px}
.price-row .was{font-size:20px;color:var(--text-muted);text-decoration:line-through;text-decoration-color:var(--clay)}
.price-row .now{font-size:44px;font-weight:700;line-height:1.1;color:var(--accent-text)}
.pb-note{margin:0 0 6px;color:var(--text-muted);font-size:15px}
.pricebox .checks{margin:18px 0 24px}
.pb-foot{margin:18px 0 0;font-size:14.5px;line-height:1.55;color:var(--text-muted)}
.plans{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin:24px 0}
.plans .pricebox{display:flex;flex-direction:column;padding:26px 24px 24px;margin:0}
.plans .pricebox .checks{flex:1}
.plans .price-row .now{font-size:36px}

/* ── отзывы ── */
.quotes{display:flex;flex-direction:column;gap:18px;margin:24px 0}
.quote{background:var(--surface);border:1px solid var(--border);border-left:3px solid var(--accent);border-radius:14px;padding:20px 22px}
.quote p{margin:0 0 .8em;font-size:16px;line-height:1.6;max-width:none}
.quote p:last-of-type{margin-bottom:12px}
.quote cite{display:block;font-style:normal;font-size:14px;font-weight:700}
.quote cite span{display:block;font-weight:500;color:var(--text-muted)}

/* ── автор ── */
.author{display:flex;gap:22px;align-items:flex-start;margin:6px 0 4px}
.author img{flex:none;width:112px;height:112px;border-radius:16px;object-fit:cover;object-position:62% 24%}
.author p{margin:0 0 .7em;font-size:16px;line-height:1.6}
.author p:last-child{margin:0}
.author-photo{margin:6px 0 26px}
.author-photo img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;object-position:60% 30%;border-radius:18px}
.media-lbl{margin:30px 0 12px;font-family:"IBM Plex Mono",monospace;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--accent-text)}
.media-card{background:#fff;border-radius:16px;padding:14px 18px}
.media-card img{display:block;width:100%;height:auto;aspect-ratio:715/572;object-fit:cover;object-position:left top}

/* ── каталог: карточки курсов ── */
.courses{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin:30px 0 0}
.course{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:20px;overflow:hidden;text-decoration:none;color:inherit;transition:transform .2s ease,box-shadow .2s ease}
.course:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(30,28,50,.14)}
.course:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.course-cover{padding:24px 26px 22px;background:var(--tile-bg);color:var(--tile-fg)}
.course-tag{display:block;margin-bottom:14px;font-family:"IBM Plex Mono",monospace;font-size:12px;letter-spacing:.08em;text-transform:uppercase;opacity:.85}
.course-stat{display:block;font-family:"Lora",Georgia,serif;font-size:34px;font-weight:600;line-height:1.1}
.course-body{display:flex;flex-direction:column;flex:1;padding:22px 26px 24px}
.course-body h3{font-size:22px;margin-bottom:10px}
.course-body p{margin:0 0 14px;font-size:15.5px;line-height:1.6;color:var(--text-muted)}
.course-meta{margin:auto 0 0;padding-top:4px;font-size:14px;color:var(--text)}
.course-go{display:inline-block;margin-top:16px;font-weight:700;font-size:15px;color:var(--accent-text)}
.course-go::after{content:" →"}
.course:hover .course-go{text-decoration:underline;text-underline-offset:4px}
.tone-1{--tile-bg:linear-gradient(135deg,#262A46,#3A4270);--tile-fg:#F3EFE6}
.tone-2{--tile-bg:var(--herb-soft);--tile-fg:var(--herb)}
.tone-3{--tile-bg:var(--accent-soft);--tile-fg:var(--accent-text)}
.tone-4{--tile-bg:var(--surface-2);--tile-fg:var(--text)}
.tone-5{--tile-bg:var(--clay-soft);--tile-fg:var(--clay)}
.tone-6{--tile-bg:linear-gradient(135deg,#3A4270,#262A46);--tile-fg:#E3AC66}
.tone-1 .course-stat{color:#E3AC66}

/* ── вопросы ── */
.faq{margin-top:8px;border-top:1px solid var(--border)}
.faq details{border-bottom:1px solid var(--border)}
.faq summary{list-style:none;cursor:pointer;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:18px 0;font-weight:600;font-size:16.5px;line-height:1.45}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";flex:none;font-family:"IBM Plex Mono",monospace;font-size:22px;line-height:1.1;color:var(--accent-text);transition:transform .2s ease}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:4px}
.faq .ans{padding:0 0 20px;color:var(--text-muted);font-size:15.5px;line-height:1.65}
.faq .ans p{margin:0 0 10px}
.faq .ans p:last-child{margin-bottom:0}

/* ── подвал ── */
.site-foot{background:linear-gradient(180deg,var(--hero-bg),var(--hero-bg-2));color:var(--hero-text-muted);padding:44px 0 52px;font-size:14px;line-height:1.6}
.site-foot p{margin:0 0 6px;font-size:14px;line-height:1.6;max-width:none}
.site-foot a{color:var(--hero-text);text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(243,239,230,.35)}
.site-foot a:hover{text-decoration-color:currentColor}
.site-foot .foot-brand{font-family:"Lora",Georgia,serif;font-size:19px;font-weight:600;color:var(--hero-text);margin-bottom:10px}
.foot-docs{display:flex;flex-wrap:wrap;gap:8px 20px;margin:18px 0;padding:18px 0;border-top:1px solid rgba(243,239,230,.14);border-bottom:1px solid rgba(243,239,230,.14)}
.site-foot .foot-legal{font-size:13px}
.site-foot .foot-note{font-size:12.5px;opacity:.8;margin-top:12px}

/* ── телефон ── */
@media (max-width:760px){
  .courses,.plans,.grid2{grid-template-columns:1fr}
}
@media (max-width:640px){
  body{font-size:16.5px}
  section{padding:46px 0}
  .hero{padding:22px 0 44px}
  .crumb,.brand-line{margin-bottom:28px}
  .lede{font-size:17px}
  .stats{grid-template-columns:repeat(2,1fr)}
  .stat b{font-size:24px}
  .pricebox{padding:24px 20px 22px}
  .price-row .now{font-size:36px}
  .plans .price-row .now{font-size:32px}
  .author{flex-direction:column;gap:14px}
  .author img{width:96px;height:96px}
  .cta{width:100%}
  .course-cover{padding:20px 22px 18px}
  .course-stat{font-size:30px}
  .course-body{padding:20px 22px 22px}
  .meal-row{flex-direction:column;gap:2px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .course,.cta,.faq summary::after{transition:none}
  .course:hover{transform:none}
}
