/* =========================================================
   Polymarket RU — таблица стилей
   Редакционный стиль · кириллица первого порядка
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400&family=PT+Sans:ital,wght@0,400;0,700;1,400&family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&display=swap');

:root {
  --bg: #f3ecdd;
  --bg-card: #faf5e8;
  --bg-deep: #1d1a14;
  --bg-deep-soft: #2a2620;
  --ink: #1a1813;
  --ink-soft: #4a4339;
  --ink-muted: #8a8174;
  --rule: #c9bb9d;
  --rule-soft: #ddd0b3;
  --crimson: #8a2424;
  --crimson-deep: #6b1c1c;
  --gold: #a08355;
  --gold-soft: #c4a578;
  --paper-shadow: rgba(60, 45, 20, 0.08);

  --serif: 'PT Serif', 'Times New Roman', Georgia, serif;
  --sans: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Cormorant Garamond', 'PT Serif', Georgia, serif;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* =========================================================
   Сброс
   ========================================================= */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 100% -10%, rgba(160, 131, 85, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(138, 36, 36, 0.05), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--crimson);
  text-decoration: none;
  text-decoration-color: var(--gold-soft);
  text-underline-offset: 3px;
  transition: color .2s ease;
}
a:hover { color: var(--crimson-deep); text-decoration: underline; text-decoration-thickness: 1px; }

ul, ol { list-style: none; }

::selection { background: var(--gold-soft); color: var(--ink); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* =========================================================
   Типографика
   ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -0.005em;
}

h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  letter-spacing: -0.02em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  margin-bottom: 0.6em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  margin-bottom: 0.4em;
}

h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3em;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--crimson);
  margin-bottom: 1.2rem;
  display: inline-block;
}

.kicker::before {
  content: "—— ";
  color: var(--gold);
  letter-spacing: 0;
}

/* Декоративный номер секции */
.section-num {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}

/* Капитель — для больших абзацев */
.dropcap::first-letter {
  font-family: var(--display);
  font-weight: 600;
  font-size: 4.6em;
  float: left;
  line-height: 0.85;
  margin: 0.08em 0.12em 0 -0.04em;
  color: var(--crimson);
}

/* =========================================================
   Шапка
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 236, 221, 0.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule-soft);
}

.header-rule {
  height: 4px;
  background: var(--ink);
  border-bottom: 1px solid var(--gold);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand:hover { color: var(--ink); }

.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-name { line-height: 1; }
.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list {
  display: flex;
  gap: 28px;
}

.nav-list a {
  font-family: var(--sans);
  font-size: 0.96rem;
  font-weight: 400;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--ink);
  text-decoration: none;
}

.nav-list a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--crimson);
}

/* =========================================================
   Кнопки
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg-card);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(138, 36, 36, 0.25);
  text-decoration: none;
}

.btn-primary .arrow { transition: transform .2s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg-card);
  text-decoration: none;
}

.btn-large {
  padding: 16px 32px;
  font-size: 1rem;
}

/* Мобильное меню — переключатель CSS */
.menu-toggle { display: none; }
.menu-toggle-label {
  display: none;
  width: 36px;
  height: 36px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.menu-toggle-label span,
.menu-toggle-label span::before,
.menu-toggle-label span::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--ink);
  transition: transform .25s ease, top .25s ease, opacity .15s ease;
}
.menu-toggle-label span { top: 17px; }
.menu-toggle-label span::before { top: -9px; left: 0; right: 0; }
.menu-toggle-label span::after  { top: 9px; left: 0; right: 0; }

#menu-toggle:checked ~ .menu-toggle-label span { background: transparent; }
#menu-toggle:checked ~ .menu-toggle-label span::before { top: 0; transform: rotate(45deg); }
#menu-toggle:checked ~ .menu-toggle-label span::after  { top: 0; transform: rotate(-45deg); }

/* =========================================================
   Главный экран (hero)
   ========================================================= */
.hero {
  padding: clamp(60px, 10vw, 110px) 0 clamp(60px, 9vw, 100px);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: end;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: "";
  flex: 0 0 60px;
  height: 1px;
  background: var(--ink);
}
.hero-eyebrow span {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-soft);
}

.hero h1 em {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--crimson);
}

.hero-deck {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 32px 0 36px;
  max-width: 56ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 36px;
}
.hero-cta-note {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.hero-aside {
  border-left: 1px solid var(--rule);
  padding: 14px 0 14px 32px;
}
.hero-aside-block + .hero-aside-block { margin-top: 26px; }
.hero-aside h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 10px;
}
.hero-aside p {
  font-family: var(--serif);
  font-size: 0.98rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* =========================================================
   Декоративный разделитель
   ========================================================= */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: clamp(40px, 6vw, 70px) 0;
  color: var(--gold);
}
.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--rule) 50%, transparent);
  max-width: 200px;
}
.ornament svg { width: 22px; height: 22px; opacity: 0.7; }

/* =========================================================
   Секции
   ========================================================= */
section { padding: clamp(50px, 8vw, 90px) 0; }

.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: clamp(40px, 6vw, 60px);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 20px;
}
.section-head h2 { margin-bottom: 8px; }
.section-head p {
  font-family: var(--serif);
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 60ch;
}

/* «Что такое прогнозный рынок» — двухколоночный текст */
.essay {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.essay-body {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.72;
}
.essay-body p { margin-bottom: 1.1em; }

.pull {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.35;
  color: var(--ink);
  border-left: 3px solid var(--crimson);
  padding: 8px 0 8px 22px;
  margin: 30px 0;
}
.pull cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Принципы / преимущества */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
}
.principle {
  padding: 32px 28px 28px;
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  position: relative;
}
.principle:last-child { border-right: none; }
.principle .num {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 18px;
}
.principle h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.principle p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.6;
}
@media (max-width: 880px) {
  .principle { border-right: none; }
}

/* Шаги: «Как начать» */
.steps {
  display: grid;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 30px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.step:first-child { border-top: 1px solid var(--ink); }
.step-num {
  font-family: var(--display);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--crimson);
  font-weight: 500;
  line-height: 1;
}
.step-body h3 { margin-bottom: 8px; }
.step-body p { color: var(--ink-soft); font-size: 1rem; }
.step-mark {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
@media (max-width: 720px) {
  .step { grid-template-columns: 50px 1fr; }
  .step-mark { grid-column: 2; }
  .step-num { font-size: 1.8rem; }
}

/* Категории — сетка */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 28px 26px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px var(--paper-shadow);
  border-color: var(--gold);
}
.cat-card .cat-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--crimson);
}
.cat-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.cat-card p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  line-height: 1.55;
}
.cat-card .cat-tag {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
}

/* Полоса призыва (CTA-band) */
.cta-band {
  background: var(--bg-deep);
  color: #ece4d2;
  padding: clamp(50px, 8vw, 90px) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(160, 131, 85, 0.18), transparent 60%),
    radial-gradient(700px 350px at 10% 100%, rgba(138, 36, 36, 0.18), transparent 60%);
  pointer-events: none;
}
.cta-band > .container { position: relative; z-index: 1; }
.cta-band h2 {
  color: #f5edd9;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.01em;
  max-width: 18ch;
  line-height: 1.05;
}
.cta-band h2 em { font-style: italic; color: var(--gold-soft); }
.cta-band p {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: #c9bfa8;
  max-width: 56ch;
  margin: 22px 0 32px;
}
.cta-band .btn-primary {
  background: var(--bg-card);
  color: var(--ink);
  border-color: var(--bg-card);
}
.cta-band .btn-primary:hover {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}

/* =========================================================
   Внутренние страницы — заголовок раздела
   ========================================================= */
.page-header {
  padding: clamp(60px, 9vw, 110px) 0 clamp(40px, 6vw, 70px);
  border-bottom: 1px solid var(--rule);
}
.page-header .crumbs {
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 22px;
}
.page-header .crumbs a { color: var(--ink-muted); text-decoration: none; }
.page-header .crumbs a:hover { color: var(--crimson); }
.page-header .crumbs span { margin: 0 8px; color: var(--gold); }

.page-header h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 24px;
  max-width: 18ch;
}
.page-header .lead { max-width: 60ch; }

/* Двухколоночный длинный текст */
.long-read {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(28px, 5vw, 70px);
  margin-top: 48px;
}
.long-read aside {
  position: sticky;
  top: 100px;
  align-self: start;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.long-read aside h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 14px;
}
.long-read aside ul { display: grid; gap: 10px; }
.long-read aside a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dotted var(--rule);
  padding-bottom: 4px;
  display: block;
}
.long-read aside a:hover { color: var(--crimson); border-color: var(--crimson); }

.long-read article h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin: 56px 0 18px;
  scroll-margin-top: 100px;
}
.long-read article h2:first-child { margin-top: 0; }
.long-read article h3 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
}
.long-read article p,
.long-read article li {
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--ink);
}
.long-read article p { margin-bottom: 1.1em; }

.long-read article ul,
.long-read article ol {
  margin: 0 0 1.4em 0;
  padding-left: 0;
}
.long-read article ul li,
.long-read article ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}
.long-read article ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 14px; height: 1px;
  background: var(--crimson);
}
.long-read article ol { counter-reset: olc; }
.long-read article ol li::before {
  counter-increment: olc;
  content: counter(olc) ".";
  position: absolute;
  left: 0; top: 0;
  font-family: var(--display);
  font-style: italic;
  color: var(--gold);
  font-weight: 600;
}

@media (max-width: 880px) {
  .long-read { grid-template-columns: 1fr; }
  .long-read aside { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
}

/* Аккордеон FAQ */
.faq-list { border-top: 1px solid var(--ink); }
.faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 8px 0;
}
.faq-item summary {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  padding: 22px 50px 22px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  color: var(--ink);
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--crimson);
  font-weight: 500;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { content: "—"; font-size: 1.4rem; }
.faq-item summary:hover { color: var(--crimson); }
.faq-item .faq-answer {
  padding: 0 0 24px;
  font-family: var(--serif);
  font-size: 1.04rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 70ch;
}
.faq-item .faq-answer p + p { margin-top: 0.9em; }

/* Сетка категорий — большой вариант для страницы markets.html */
.cat-grid-large {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 0;
  overflow: hidden;
}
.cat-grid-large .cat-card {
  border: none;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg-card);
  padding: 36px 32px;
}
.cat-grid-large .cat-card:hover { transform: none; box-shadow: none; background: var(--bg); }

/* Шаги-крупно (для guide.html) */
.guide-steps { display: grid; gap: 0; }
.guide-step {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(24px, 4vw, 50px);
  padding: 40px 0;
  border-bottom: 1px solid var(--rule);
}
.guide-step:first-child { border-top: 2px solid var(--ink); }
.guide-step .gn {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--gold);
  line-height: 0.9;
  font-weight: 500;
}
.guide-step h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 14px;
}
.guide-step p {
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 65ch;
  margin-bottom: 0.9em;
}
.guide-step .note {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--bg-card);
  border-left: 3px solid var(--gold);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
@media (max-width: 720px) {
  .guide-step { grid-template-columns: 1fr; gap: 12px; }
  .guide-step .gn { font-size: 2.6rem; }
}

/* Полоса данных «о компании» */
.about-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 50px 0;
}
.about-meta div {
  padding: 22px 18px;
  border-right: 1px solid var(--rule);
}
.about-meta div:last-child { border-right: none; }
.about-meta .label {
  font-family: var(--sans);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.about-meta .value {
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--ink);
  font-weight: 600;
}
@media (max-width: 720px) {
  .about-meta div { border-right: none; border-bottom: 1px solid var(--rule); }
  .about-meta div:last-child { border-bottom: none; }
}

/* =========================================================
   Подвал
   ========================================================= */
.site-footer {
  background: var(--bg-deep);
  color: #c9bfa8;
  padding: 70px 0 30px;
  margin-top: 80px;
}
.footer-rule {
  height: 4px;
  background: var(--ink);
  border-top: 1px solid var(--gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid #3a342a;
}
.footer-brand .brand { color: #f0e8d4; }
.footer-brand .brand-name small { color: #8a8174; }
.footer-brand p {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.6;
  color: #a59b85;
  max-width: 38ch;
}
.footer-col h5 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d6c89e;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a {
  color: #b3a98e;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-col a:hover { color: var(--gold-soft); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 26px;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: #8a8174;
}
.footer-bottom p em {
  font-family: var(--display);
  font-style: italic;
  color: var(--gold-soft);
}

/* =========================================================
   Адаптивность
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-aside { border-left: none; border-top: 1px solid var(--rule); padding: 28px 0 0; }
  .essay { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .menu-toggle-label { display: block; }
  .nav-list {
    position: fixed;
    inset: 80px 0 auto 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: 16px 0 24px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }
  .nav-list a {
    display: block;
    padding: 14px var(--gutter);
    font-size: 1.05rem;
    border-bottom: 1px solid var(--rule-soft);
  }
  .nav-list a.active::after { display: none; }
  #menu-toggle:checked ~ .nav .nav-list {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav { gap: 12px; }
  .nav .btn { padding: 10px 16px; font-size: 0.85rem; }

  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .section-num { font-size: 2.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .brand-name { font-size: 1.3rem; }
  .brand-name small { font-size: 0.55rem; }
}

@media (max-width: 420px) {
  .nav .btn { display: none; }
}

/* Доступность: фокус */
:focus-visible {
  outline: 2px solid var(--crimson);
  outline-offset: 3px;
}

/* Пользователь предпочитает ограничение анимаций */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
