/* ============================================================
   t2_story — editorial / long-form.
   Светлая тема, serif-заголовки, чередующиеся блоки.
   ============================================================ */

:root {
  --story-bg: #fdfcfa;
  --story-paper: #ffffff;
  --story-ink: #1a1814;
  --story-ink-soft: #5d564d;
  --story-rule: #e9e3da;
  --story-accent: #b8482a;
  --story-accent-soft: #f7eee5;
  --story-radius: 6px;
  --story-serif: Georgia, "Iowan Old Style", "Apple Garamond", "Times New Roman", serif;
  --story-sans: -apple-system, "Helvetica Neue", Arial, sans-serif;
}

.story {
  background: var(--story-bg);
  color: var(--story-ink);
  font-family: var(--story-sans);
}
.story h1, .story h2, .story h3, .story blockquote {
  font-family: var(--story-serif);
  letter-spacing: -.01em;
}

/* ===== Masthead ===== */
.story-masthead {
  position: sticky; top: 0;
  background: var(--story-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
  z-index: 100;
}
.story-masthead[data-stuck] { border-bottom-color: var(--story-rule); }
.story-masthead__row {
  max-width: 1100px; margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; gap: 28px;
}
.story-masthead__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--story-serif);
  font-weight: 700; font-size: 1.05rem;
}
.story-masthead__brand img { border-radius: 6px; }
.story-masthead nav {
  margin-left: auto;
  display: flex; gap: 28px;
}
.story-masthead nav a {
  font-size: .9rem;
  color: var(--story-ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.story-masthead nav a:hover { color: var(--story-accent); border-bottom-color: var(--story-accent); }
.story-masthead__cta {
  font-weight: 600; font-size: .9rem;
  color: var(--story-accent);
}
.story-masthead__toggle { display: none; background: none; border: 0; font-size: 1.4rem; }
@media (max-width: 880px) {
  .story-masthead nav {
    position: fixed; top: 64px; left: 0; right: 0;
    background: var(--story-bg);
    flex-direction: column;
    padding: 24px 32px;
    border-bottom: 1px solid var(--story-rule);
    transform: translateY(-110%); transition: transform .25s;
    margin-left: 0;
  }
  .story-masthead nav[data-open] { transform: translateY(0); }
  .story-masthead__cta { display: none; }
  .story-masthead__toggle { display: block; margin-left: auto; }
}

/* ===== Cover ===== */
.story-cover {
  max-width: 1100px; margin: 0 auto;
  padding: 64px 32px 80px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.story-cover__art {
  background: var(--story-accent-soft);
  border-radius: var(--story-radius);
  padding: 24px;
  overflow: hidden;
}
.story-cover__art img { border-radius: var(--story-radius); }
.story-cover__kicker {
  text-transform: uppercase; letter-spacing: .12em;
  font-size: .78rem; color: var(--story-accent);
  margin-bottom: 12px; font-weight: 700;
}
.story-cover h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  margin-bottom: 18px; line-height: 1.05;
}
.story-cover__lede {
  font-size: 1.18rem;
  color: var(--story-ink-soft);
  margin-bottom: 28px; max-width: 480px;
}
.story-cover__actions {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
@media (max-width: 880px) {
  .story-cover { grid-template-columns: 1fr; }
}

/* ===== Buttons ===== */
.story-button {
  display: inline-flex; align-items: center;
  padding: 12px 22px;
  font-size: .95rem; font-weight: 600;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.story-button--solid { background: var(--story-ink); color: var(--story-bg); }
.story-button--solid:hover { background: var(--story-accent); }
.story-button--link {
  color: var(--story-ink);
  border-bottom: 1px solid var(--story-ink-soft);
  border-radius: 0;
  padding: 4px 0;
}
.story-button--link:hover { color: var(--story-accent); border-bottom-color: var(--story-accent); }
.story-button--big { padding: 16px 32px; font-size: 1.05rem; }

/* ===== Chapter ===== */
.story-chapter {
  max-width: 1100px; margin: 0 auto;
  padding: 64px 32px;
  border-top: 1px solid var(--story-rule);
}
.story-chapter__head { margin-bottom: 40px; text-align: center; }
.story-chapter__num {
  text-transform: uppercase; letter-spacing: .18em;
  font-size: .78rem; color: var(--story-accent);
  font-weight: 700; margin-bottom: 8px;
}
.story-chapter__head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
}
.story-chapter__body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.story-chapter--flip .story-chapter__body { direction: rtl; }
.story-chapter--flip .story-chapter__body > * { direction: ltr; }
.story-chapter__text {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--story-ink);
  max-width: 540px;
}
.story-chapter__figure { margin: 0; text-align: center; }
.story-chapter__figure img {
  border-radius: var(--story-radius);
  margin: 0 auto;
  max-width: 320px;
  box-shadow: 0 10px 30px rgba(26, 24, 20, .12);
}
.story-chapter__figure figcaption {
  margin-top: 14px;
  font-style: italic;
  color: var(--story-ink-soft);
  font-size: .88rem;
}
@media (max-width: 880px) {
  .story-chapter__body, .story-chapter--flip .story-chapter__body {
    grid-template-columns: 1fr; direction: ltr;
  }
}

/* ===== Pull quote ===== */
.story-pullquote {
  max-width: 820px; margin: 0 auto;
  padding: 56px 32px;
  text-align: center;
}
.story-pullquote blockquote {
  margin: 0;
  font-family: var(--story-serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.45;
  color: var(--story-ink);
}
.story-pullquote cite {
  display: block; margin-top: 20px;
  font-size: .92rem; font-style: normal;
  color: var(--story-ink-soft); font-family: var(--story-sans);
}

/* ===== Points (bulleted list inside chapter) ===== */
.story-points { list-style: none; padding: 0; margin: 0; max-width: 540px; }
.story-points li {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--story-rule);
}
.story-points li:last-child { border-bottom: 0; }
.story-points__icon {
  width: 36px; height: 36px;
  background: var(--story-accent-soft);
  color: var(--story-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.story-points__icon svg { width: 18px; height: 18px; }
.story-points strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.story-points p { margin: 0; color: var(--story-ink-soft); font-size: .94rem; }

/* ===== Stats ===== */
.story-stats {
  background: var(--story-ink); color: var(--story-bg);
  padding: 72px 32px; text-align: center;
}
.story-stats h2 {
  color: var(--story-bg);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 40px;
}
.story-stats__grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.story-stats__num {
  display: block;
  font-family: var(--story-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 6px;
}
.story-stats__label {
  display: block; font-size: .9rem;
  color: rgba(253, 252, 250, .65);
  text-transform: uppercase; letter-spacing: .08em;
}
@media (max-width: 880px) { .story-stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Gallery ===== */
.story-gallery {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.story-gallery__item { margin: 0; border-radius: var(--story-radius); overflow: hidden; }
.story-gallery__item img { width: 100%; }

/* ===== Voices ===== */
.story-voices { max-width: 1100px; margin: 0 auto; padding: 64px 32px; border-top: 1px solid var(--story-rule); }
.story-voices h2 { text-align: center; font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 40px; }
.story-voices__list { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
.story-voice {
  background: var(--story-paper);
  border: 1px solid var(--story-rule);
  border-radius: var(--story-radius);
  padding: 24px;
  display: flex; gap: 16px; align-items: flex-start;
}
.story-voice img { border-radius: 50%; flex-shrink: 0; }
.story-voice p {
  font-family: var(--story-serif);
  font-size: 1.05rem;
  line-height: 1.55;
  margin: 0 0 12px;
}
.story-voice footer { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: var(--story-ink-soft); }
.story-voice footer strong { color: var(--story-ink); }
.story-voice footer span { color: #d4a017; }
@media (max-width: 880px) { .story-voices__list { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.story-faq { max-width: 820px; margin: 0 auto; padding: 64px 32px; border-top: 1px solid var(--story-rule); }
.story-faq h2 { text-align: center; font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 32px; }
.story-faq__list { display: flex; flex-direction: column; }
.story-faq details { border-bottom: 1px solid var(--story-rule); }
.story-faq summary {
  list-style: none;
  font-family: var(--story-serif);
  font-size: 1.1rem;
  padding: 20px 0;
  cursor: pointer;
  display: flex; justify-content: space-between; gap: 16px;
}
.story-faq summary::-webkit-details-marker { display: none; }
.story-faq summary::after { content: '→'; color: var(--story-accent); transition: transform .15s; }
.story-faq details[open] summary::after { transform: rotate(90deg); }
.story-faq details > div { padding: 0 0 20px; color: var(--story-ink-soft); }

/* ===== Prose ===== */
.story-prose {
  max-width: 720px; margin: 0 auto;
  padding: 64px 32px;
  font-size: 1.02rem;
  line-height: 1.75;
  border-top: 1px solid var(--story-rule);
}
.story-prose h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-bottom: 24px; }
.story-prose p { color: var(--story-ink-soft); }

/* ===== Contact ===== */
.story-contact {
  max-width: 720px; margin: 0 auto;
  padding: 64px 32px;
  border-top: 1px solid var(--story-rule);
  text-align: center;
}
.story-contact h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 16px; }
.story-contact p { color: var(--story-ink-soft); margin-bottom: 32px; }
.story-contact a { color: var(--story-accent); border-bottom: 1px solid currentColor; }
.story-form { display: flex; flex-direction: column; gap: 18px; text-align: left; }
.story-form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; }
.story-form input, .story-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--story-rule);
  border-radius: var(--story-radius);
  background: var(--story-paper);
  font-family: inherit;
}
.story-form input:focus, .story-form textarea:focus {
  outline: 0;
  border-color: var(--story-accent);
}
.story-form button {
  align-self: flex-start;
  padding: 12px 28px;
  background: var(--story-ink); color: var(--story-bg);
  border: 0; border-radius: 999px;
  font-weight: 600;
}
.story-form button:hover { background: var(--story-accent); }
.story-form__thanks { color: #2f7d32; font-weight: 600; }

/* ===== End CTA ===== */
.story-end-cta {
  background: var(--story-accent-soft);
  text-align: center; padding: 80px 32px;
}
.story-end-cta h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.story-end-cta p { color: var(--story-ink-soft); max-width: 540px; margin: 0 auto 28px; }
