/* SHYRAQ — site styles.
   Brand: warm paper + ink, flame accent. Journal colours: Shyraq = ultramarine, Nurqanat = sunflower.
   Display type: Literata (editorial serif), UI: Manrope. Motif: «қошқар мүйіз» ram-horn with a flame. */

:root {
  --paper: #faf6ee;
  --paper-2: #f3ede1;
  --surface: #ffffff;
  --ink: #1a1714;
  --ink-2: #2b2621;
  --muted: #6b645b;
  --line: #e7dfd2;

  --flame: #e8552b;
  --flame-2: #ff6a3d;
  --sun: #ffd36b;
  --ultra: #2b3fbf;
  --ultra-2: #3a4fd6;
  --sunflower: #f2b33d;
  --ok: #1f7a4f;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(26, 23, 20, .05), 0 10px 30px rgba(26, 23, 20, .07);
  --shadow-lg: 0 2px 6px rgba(26, 23, 20, .08), 0 30px 60px rgba(26, 23, 20, .18);

  --serif: "Literata", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-optical-sizing: auto; line-height: 1.06; margin: 0 0 .45em; letter-spacing: -.02em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(40px, 7vw, 92px); }
h2 { font-size: clamp(32px, 4.6vw, 60px); }
h3 { font-size: 24px; letter-spacing: -.01em; }
h1 em, h2 em { font-style: italic; font-weight: 600; color: var(--flame); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sun); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section--white { background: var(--surface); }
.section--ink { background: var(--ink); color: #d9d1c4; }
.section--ink h2, .section--ink h3 { color: var(--paper); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: 19px; }
.section--ink .section-head p { color: #b7ad9e; }
.section-head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 800 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--flame); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section--ink .eyebrow { color: var(--sun); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) { .section { padding: 72px 0; } .section-head { margin-bottom: 36px; } .container { padding: 0 18px; } }

/* Reveal on scroll (enabled by JS; content stays visible without it) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 800 16px/1.2 var(--sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--flame); color: #fff; box-shadow: 0 10px 24px rgba(232, 85, 43, .32); }
.btn--primary:hover { background: var(--flame-2); color: #fff; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-2); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--wa { background: #25d366; color: #073d1d; }
.btn--wa:hover { background: #3ee07b; color: #073d1d; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 238, .86); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__bar { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 34px; height: 34px; flex: none; color: var(--ink); }
.logo__text { font: 800 19px/1 var(--sans); letter-spacing: .2em; }
.logo__sub { display: block; font: 600 11px/1.2 var(--sans); letter-spacing: .04em; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { padding: 9px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-2); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang button { border: 0; background: none; padding: 6px 10px; border-radius: 999px; cursor: pointer; font: 800 11px/1 var(--sans); color: var(--muted); letter-spacing: .06em; }
.lang button.is-active { background: var(--ink); color: var(--paper); }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; }
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
@media (min-width: 1041px) { .nav .nav__cta, .nav .lang { display: none; } }
@media (max-width: 1040px) {
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .header-actions { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 18px 22px; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 15px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav a:hover { background: none; }
  .nav .btn { margin-top: 18px; border-bottom: 0; }
  .nav .lang { align-self: flex-start; margin-top: 16px; }
  .nav .lang button { padding: 9px 14px; font-size: 12px; }
}
@media (max-width: 420px) { .logo__sub { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 0; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero__kicker { margin-bottom: 26px; }
.hero h1 { margin-bottom: 26px; }
.hero__lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 560px; margin-bottom: 34px; font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.deadline { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 7px 8px 7px 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font: 700 14px/1.3 var(--sans); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.deadline:hover { border-color: var(--ink); }
.deadline__dot { width: 9px; height: 9px; border-radius: 50%; background: #2fbf71; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 191, 113, .55); } 70% { box-shadow: 0 0 0 10px rgba(47, 191, 113, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 113, 0); } }
.deadline__days { background: var(--ink); color: var(--paper); border-radius: 999px; padding: 5px 11px; font-size: 12px; }

.hero__stage { position: relative; height: 600px; }
.hero__sun { position: absolute; width: 470px; height: 470px; border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -48%); background: radial-gradient(circle at 50% 50%, var(--sun) 0 38%, rgba(255, 211, 107, .45) 38.5% 56%, rgba(255, 211, 107, .18) 56.5% 74%, transparent 74.5%); }
.hero__cover { position: absolute; width: 300px; border-radius: 6px; box-shadow: var(--shadow-lg); transition: transform .6s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.hero__cover--a { left: 4%; top: 120px; transform: rotate(-8deg); }
.hero__cover--b { right: 4%; top: 40px; transform: rotate(6deg); }
.hero__stage:hover .hero__cover--a { transform: rotate(-11deg) translate(-12px, 6px); }
.hero__stage:hover .hero__cover--b { transform: rotate(9deg) translate(12px, -6px); }
.hero__badge { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); background: var(--ink); color: var(--paper); border-radius: 999px; padding: 10px 18px; font: 700 13px/1.2 var(--sans); white-space: nowrap; box-shadow: var(--shadow-lg); display: flex; gap: 8px; align-items: center; z-index: 3; }
.hero__badge svg { width: 18px; height: 18px; color: var(--sun); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); margin-top: 56px; }
.stat { padding: 26px 24px 30px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { display: block; font: 700 clamp(36px, 4vw, 56px)/1 var(--serif); letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: 15px; font-weight: 600; }
@media (max-width: 980px) {
  .hero { padding-top: 32px; }
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .hero__stage { height: 420px; max-width: 520px; width: 100%; margin: 0 auto; }
  .hero__sun { width: 340px; height: 340px; }
  .hero__cover { width: 210px; }
  .hero__cover--a { top: 90px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 420px) { .hero__stage { height: 360px; } .hero__cover { width: 175px; } .hero__sun { width: 290px; height: 290px; } .stat { padding-right: 12px; } .stat + .stat { padding-left: 14px; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; padding: 20px 0; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 40px; align-items: center; animation: marquee 48s linear infinite; padding-left: 40px; }
.marquee__track span { font: 600 italic 26px/1 var(--serif); }
.marquee__track svg { width: 26px; height: 26px; color: var(--flame); flex: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Journal cards ---------- */
.journals { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .journals { grid-template-columns: 1fr; } }
.journal-card { position: relative; display: flex; flex-direction: column; border-radius: 30px; overflow: hidden; padding: 40px; isolation: isolate; }
.journal-card--shyraq { background: var(--ultra); color: #e9ecff; }
.journal-card--nurqanat { background: var(--sunflower); color: var(--ink); }
.journal-card__motif { position: absolute; right: 170px; top: -110px; width: 240px; height: 240px; opacity: .1; z-index: -1; }
.journal-card--shyraq .journal-card__motif { color: #fff; }
.journal-card__top { display: grid; grid-template-columns: 1fr 150px; gap: 28px; align-items: start; }
.journal-card__tag { display: inline-block; font: 800 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; margin-bottom: 18px; }
.journal-card--shyraq .journal-card__tag { background: rgba(255, 255, 255, .14); color: #fff; }
.journal-card--nurqanat .journal-card__tag { background: var(--ink); color: var(--sunflower); }
.journal-card h3 { font-size: clamp(40px, 4.4vw, 60px); line-height: 1; margin-bottom: 12px; color: inherit; }
.journal-card--shyraq h3 { font-style: italic; font-weight: 800; }
.journal-card__for { margin: 0; font-size: 16px; opacity: .85; }
.journal-card__cover { border-radius: 4px; box-shadow: 0 18px 36px rgba(0, 0, 0, .28); transform: rotate(4deg); transition: transform .4s ease; }
.journal-card:hover .journal-card__cover { transform: rotate(0) scale(1.03); }
.journal-card__body { display: flex; flex-direction: column; flex: 1; margin-top: 30px; }
.checklist { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; font-weight: 600; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: currentColor; opacity: .16; }
.checklist li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 8px; height: 5px; border-left: 2.4px solid currentColor; border-bottom: 2.4px solid currentColor; transform: rotate(-45deg); }
.journal-card__price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 0; margin-top: auto; margin-bottom: 22px; border-top: 1.5px solid rgba(255, 255, 255, .3); border-bottom: 1.5px solid rgba(255, 255, 255, .3); }
.journal-card--nurqanat .journal-card__price { border-color: rgba(26, 23, 20, .25); }
.price { font: 700 40px/1 var(--serif); letter-spacing: -.02em; }
.price small { font: 700 14px var(--sans); opacity: .75; letter-spacing: 0; }
.journal-card__deadline { font-size: 14px; font-weight: 600; opacity: .9; }
.journal-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.journal-card__actions .btn { flex: 1 1 auto; }
.journal-card--shyraq .btn--primary { background: var(--sun); color: var(--ink); box-shadow: none; }
.journal-card--shyraq .btn--primary:hover { background: #ffe08f; color: var(--ink); }
.journal-card--shyraq .btn--ghost { color: #fff; }
.journal-card--shyraq .btn--ghost:hover { background: #fff; color: var(--ultra); border-color: #fff; }
.journal-card--nurqanat .btn--primary { background: var(--ink); color: var(--sunflower); box-shadow: none; }
.journal-card--nurqanat .btn--primary:hover { background: var(--ink-2); color: var(--sunflower); }
@media (max-width: 560px) {
  .journal-card { padding: 28px 22px; border-radius: 24px; }
  .journal-card__top { grid-template-columns: 1fr 96px; gap: 16px; }
  .price { font-size: 32px; }
}

/* ---------- Excerpts ---------- */
.excerpts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .excerpts { grid-template-columns: 1fr; } }
.excerpt { position: relative; background: var(--surface); border-radius: var(--radius); padding: 36px 32px 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 1px solid var(--line); margin: 0; }
.excerpt::before { content: "“"; position: absolute; top: 4px; right: 22px; font: 700 110px/1 var(--serif); color: var(--sun); }
.excerpt__genre { font: 800 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--flame); margin-bottom: 14px; }
.excerpt h3 { font-size: 26px; margin-bottom: 18px; padding-right: 40px; }
.excerpt blockquote { margin: 0 0 26px; font: italic 400 19px/1.65 var(--serif); color: var(--ink-2); }
.excerpt footer { margin-top: auto; display: flex; gap: 12px; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); }
.avatar { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 800 15px/1 var(--sans); background: var(--paper-2); color: var(--ink); }
.excerpt footer b { display: block; font-size: 15px; }
.excerpt footer span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: step; list-style: none; padding: 0; margin: 0; border-top: 1.5px solid rgba(250, 246, 238, .35); }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 30px 28px 10px 0; }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 700 64px/1 var(--serif); color: var(--flame); letter-spacing: -.04em; margin-bottom: 22px; }
.step h3 { font-size: 22px; }
.step p { color: #b7ad9e; font-size: 16px; margin: 0; }

/* ---------- Benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }
.benefit { padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease; }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; background: var(--paper-2); color: var(--flame); }
.benefit__icon svg { width: 26px; height: 26px; }
.benefit h3 { font-size: 21px; }
.benefit p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }
.person { display: flex; gap: 18px; align-items: center; padding: 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.person .avatar { width: 64px; height: 64px; font: 700 22px/1 var(--serif); background: var(--ink); color: var(--sun); }
.person b { display: block; font-size: 17px; line-height: 1.3; }
.person span { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---------- Issue cards ---------- */
.issues { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 980px) { .issues { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .issues { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
.issue-card { text-decoration: none; color: var(--ink); display: block; }
.issue-card__cover { aspect-ratio: 210 / 297; object-fit: cover; width: 100%; border-radius: 4px; background: var(--line); box-shadow: var(--shadow); transition: transform .3s ease, box-shadow .3s ease; }
.issue-card:hover .issue-card__cover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-lg); }
.issue-card__meta { margin-top: 14px; }
.issue-card__journal { font: 800 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--flame); }
.issue-card__title { display: block; font: 700 22px/1.2 var(--serif); margin-top: 6px; }
.issue-card__date { font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 0; } }
.faq { display: grid; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 52px 24px 0; position: relative; font: 700 20px/1.35 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 500 22px/1 var(--sans); transition: transform .25s ease, background .25s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--ink); color: var(--paper); }
.faq details p { color: var(--muted); padding: 0 48px 24px 0; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 64px; border-radius: 36px; background: var(--flame); color: #fff; isolation: isolate; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band h2 em { color: var(--sun); }
.cta-band p { margin: 0; font-size: 19px; opacity: .92; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band__motif { position: absolute; right: -40px; top: -60px; width: 300px; height: 300px; color: rgba(255, 255, 255, .12); z-index: -1; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 40px 26px; border-radius: 28px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b7ad9e; padding: 80px 0 32px; font-size: 15px; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.site-footer .logo, .site-footer .logo__mark { color: var(--paper); }
.site-footer .logo__sub { color: #8f8578; }
.footer-big { font: 700 clamp(34px, 5vw, 64px)/1.05 var(--serif); color: var(--paper); letter-spacing: -.02em; margin: 0 0 56px; max-width: 900px; }
.footer-big em { color: var(--flame); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-top: 48px; border-top: 1px solid rgba(250, 246, 238, .15); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font: 800 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--paper); margin-bottom: 18px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-bottom { border-top: 1px solid rgba(250, 246, 238, .15); margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 13px; }

.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: none; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, .25); }
.wa-float svg { width: 30px; height: 30px; }
@media (max-width: 760px) { .wa-float { display: grid; } }

/* ---------- Inner pages ---------- */
.page-hero { padding: 64px 0 56px; border-bottom: 1.5px solid var(--ink); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(38px, 6vw, 76px); margin-bottom: 14px; max-width: 900px; }
.page-hero p { margin: 0; max-width: 720px; color: var(--muted); font-size: 19px; }
.page-hero__motif { position: absolute; right: 2%; bottom: -70px; width: 260px; height: 260px; color: var(--line); }
@media (max-width: 760px) { .page-hero { padding: 40px 0 36px; } .page-hero__motif { width: 160px; height: 160px; right: -30px; bottom: -40px; } }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font: 700 13px/1.4 var(--sans); margin-bottom: 22px; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span[aria-hidden] { opacity: .5; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .card { padding: 24px 20px; } }
.prose { max-width: 780px; }
.prose h2 { font-size: 34px; margin-top: 1.2em; }
.prose h3 { font-size: 24px; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; margin: 0 0 1.2em; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 700; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 12px; } }

.two-col { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
@media (max-width: 980px) { .two-col { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 100px; }

.tabs { display: inline-flex; gap: 6px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); margin-bottom: 28px; flex-wrap: wrap; }
.tabs a { padding: 11px 20px; border-radius: 999px; text-decoration: none; font-weight: 800; color: var(--muted); font-size: 15px; }
.tabs a.is-active { background: var(--ink); color: var(--paper); }

.rubrics { columns: 3 220px; column-gap: 28px; padding-left: 1.4em; margin: 0; }
.rubrics li { break-inside: avoid; padding: 3px 0; }

.sample { border: 1.5px dashed #c9bda9; border-radius: var(--radius-sm); padding: 28px; background: #fffdf8; font-family: "Times New Roman", Times, serif; font-size: 16px; }
.sample__author { text-align: right; font-style: italic; line-height: 1.45; }
.sample__author strong { font-style: normal; text-transform: uppercase; }
.sample__title { text-align: center; font-weight: 700; text-transform: uppercase; margin: 18px 0 10px; }
.sample__text { text-align: center; line-height: 1.55; }

.issue-hero { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
@media (max-width: 800px) { .issue-hero { grid-template-columns: 1fr; gap: 32px; } .issue-hero__cover { max-width: 280px; } }
.issue-hero__cover img { border-radius: 4px; box-shadow: var(--shadow-lg); transform: rotate(-2deg); }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.status--open { background: #e3f4ea; color: var(--ok); }
.status--closed { background: var(--paper-2); color: var(--muted); }
.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0 28px; }
.timeline__item { padding: 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1.5px solid var(--line); }
.timeline__item small { display: block; color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.timeline__item strong { font: 700 28px/1.2 var(--serif); }
.timeline__item.is-current { border-color: var(--flame); background: #fff4ee; }
@media (max-width: 420px) { .timeline { grid-template-columns: 1fr; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 40px; }
.chip { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 800; font-size: 15px; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.select { min-height: 46px; padding: 8px 38px 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font: 700 15px var(--sans); }
.empty { text-align: center; padding: 64px 20px; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 22px; }
.field label, .field .label { display: block; font-weight: 800; margin-bottom: 8px; font-size: 15px; }
.field .req { color: var(--flame); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--paper); font: 600 16px var(--sans); color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(26, 23, 20, .08); }
.field input[type="file"] { width: 100%; padding: 18px; border: 1.5px dashed #c9bda9; border-radius: var(--radius-sm); background: var(--paper); font: 600 15px var(--sans); }
.field .help { font-size: 14px; color: var(--muted); margin-top: 6px; font-weight: 500; }
.field .errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: #b4321b; font-size: 14px; font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .choice-cards { grid-template-columns: 1fr; } }
.choice-card { position: relative; display: block; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card span { display: block; padding: 18px; border-radius: var(--radius-sm); border: 2px solid var(--line); background: var(--paper); font-weight: 600; color: var(--muted); font-size: 14px; line-height: 1.4; transition: border-color .15s, background .15s; }
.choice-card span b { display: block; font: 700 22px/1.2 var(--serif); color: var(--ink); margin-bottom: 4px; }
.choice-card input:checked + span { border-color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--ink); }
.choice-card input:focus-visible + span { outline: 3px solid var(--flame); outline-offset: 2px; }
.alert { padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 24px; font-weight: 700; }
.alert--ok { background: #e3f4ea; color: #155f3f; }
.alert--err { background: #fdebe5; color: #8e2b20; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.contact-card { display: block; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.contact-card small { display: block; color: var(--muted); margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.contact-card strong { font: 700 24px/1.25 var(--serif); word-break: break-word; }
a.contact-card:hover { border-color: var(--ink); transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Grid/flex children must be allowed to shrink below their content width (prevents horizontal overflow on phones) */
.hero__grid > *, .journals > *, .two-col > *, .faq-wrap > *, .excerpts > *, .issue-hero > *, .journal-card__top > * { min-width: 0; }
@media (max-width: 560px) {
  .btn { white-space: normal; text-align: center; }
  .hero__cta .btn, .journal-card__actions .btn { flex: 1 1 100%; }
  .deadline { border-radius: 18px; }
  .stat b { font-size: 34px; }
  .stat span { font-size: 13px; }
}
