/* ============================================================
   Анастасия Дедикова — фитнес-тренер
   Дизайн-система: тёплая бумага / чернила / сигнальный оранжевый,
   Anton (дисплей) + Archivo (текст), full-bleed hero, бегущая строка.
   ============================================================ */

:root {
  --paper: #f4f1ea;
  --paper-alt: #ece8de;
  --ink: #16130f;
  --ink-soft: #55504a;
  --accent: #ff4a17;
  --accent-ink: #16130f;
  --line: rgba(22, 19, 15, 0.16);
  --band-bg: #16130f;
  --band-fg: #f4f1ea;
  --font-d: "Anton", "Arial Narrow", sans-serif;
  --font-b: "Archivo", system-ui, sans-serif;
  --wrap: 1140px;
  --pad: clamp(20px, 4vw, 40px);
}

html[data-theme="dark"] {
  --paper: #1a1713;
  --paper-alt: #221e19;
  --ink: #f1ede4;
  --ink-soft: #a49d92;
  --accent: #ff5f2e;
  --accent-ink: #16130f;
  --line: rgba(241, 237, 228, 0.18);
  --band-bg: #0f0d0a;
  --band-fg: #f1ede4;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

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

/* ---------- Хедер ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  font-family: var(--font-d);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1;
}

.logo-accent { color: var(--accent); }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.nav-link:hover { color: var(--accent); }

/* ---------- Тумблер темы (switch) ---------- */

.theme-switch {
  flex: none;
  width: 52px;
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-alt);
  cursor: pointer;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
}

.theme-switch .knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.2s;
}

html[data-theme="dark"] .theme-switch .knob {
  transform: translateX(24px);
}

.theme-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-b);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 14px 26px;
  border: 2px solid var(--ink);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.btn-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-2px); }

.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---------- HERO (full-bleed) ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: calc(100vh - 60px);
  border-bottom: 2px solid var(--ink);
}

.hero-text {
  padding: clamp(40px, 7vh, 90px) clamp(24px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-role {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-d);
  font-weight: 400;
  font-size: clamp(52px, 8.5vw, 118px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.hero-lead {
  margin-top: 22px;
  max-width: 46ch;
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--ink-soft);
}

.hero-text .btn { margin-top: 30px; align-self: flex-start; }

.hero-facts {
  list-style: none;
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  border-top: 2px solid var(--ink);
  padding-top: 20px;
}

.hero-facts li {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.hero-facts b {
  display: block;
  font-family: var(--font-d);
  font-weight: 400;
  font-size: 34px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.hero-media { overflow: hidden; background: var(--paper-alt); }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Бегущая строка ---------- */

.ticker {
  overflow: hidden;
  background: var(--accent);
  color: var(--accent-ink);
  border-bottom: 2px solid var(--ink);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.ticker-group {
  display: flex;
  align-items: center;
  padding: 12px 0;
  white-space: nowrap;
}

.ticker-group span {
  font-family: var(--font-d);
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ticker-group i {
  font-style: normal;
  margin: 0 22px;
  font-size: 14px;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- Секции ---------- */

.section { padding: clamp(56px, 9vw, 110px) 0; }

.section-alt { background: var(--paper-alt); }

.sec-idx {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.sec-idx span {
  color: var(--accent);
  font-family: var(--font-d);
  font-size: 16px;
  margin-right: 8px;
}

.band-idx span { color: var(--accent); }

.sec-h {
  font-family: var(--font-d);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 58px);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.sub-h {
  font-family: var(--font-d);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 32px);
  text-transform: uppercase;
  margin: clamp(36px, 5vw, 56px) 0 20px;
}

/* Split-лейаут */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.statement {
  font-family: var(--font-d);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 62px);
  text-transform: uppercase;
  line-height: 1.02;
}

.big-p {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 18px;
}

.split-right p + p { margin-top: 14px; color: var(--ink-soft); }

.split-media img {
  width: 100%;
  border: 2px solid var(--ink);
}

.link-arrow {
  display: inline-block;
  margin-top: 22px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
}

.link-arrow:hover { color: var(--accent); }

/* ---------- Нумерованный список (вместо карточек) ---------- */

.numlist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 2px solid var(--ink);
}

.numlist li {
  display: flex;
  gap: 18px;
  padding: 26px 28px 26px 0;
  border-bottom: 2px solid var(--ink);
}

.numlist li:nth-child(odd) { border-right: 2px solid var(--ink); padding-right: 28px; }
.numlist li:nth-child(even) { padding-left: 28px; }

.nl-num {
  font-family: var(--font-d);
  font-size: 30px;
  color: var(--accent);
  line-height: 1;
  flex: none;
}

.numlist h3 {
  font-family: var(--font-d);
  font-weight: 400;
  font-size: 21px;
  text-transform: uppercase;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.numlist p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.55; }

/* ---------- Чёрная полоса / цитата / CTA ---------- */

.band {
  background: var(--band-bg);
  color: var(--band-fg);
  padding: clamp(56px, 9vw, 110px) 0;
}

.quote {
  font-family: var(--font-d);
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 56px);
  text-transform: uppercase;
  line-height: 1.08;
  max-width: 22ch;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.points {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 2px solid var(--band-fg);
  padding-top: 26px;
}

.points li { font-size: 15.5px; color: var(--band-fg); opacity: 0.85; }

.points b {
  display: block;
  font-family: var(--font-d);
  font-weight: 400;
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 8px;
  opacity: 1;
}

.band-cta { text-align: left; }

.cta-sub {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
}

.giant-link {
  font-family: var(--font-d);
  font-weight: 400;
  font-size: clamp(46px, 9vw, 120px);
  text-transform: uppercase;
  line-height: 0.95;
  text-decoration: none;
  color: var(--band-fg);
  transition: color 0.15s;
}

.giant-link:hover { color: var(--accent); }

/* ---------- Списки-достижения ---------- */

.plainlist {
  list-style: none;
  border-top: 2px solid var(--ink);
}

.plainlist li {
  padding: 16px 0;
  border-bottom: 2px solid var(--ink);
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 600;
  display: flex;
  gap: 14px;
}

.plainlist li::before {
  content: "→";
  color: var(--accent);
  font-weight: 700;
  flex: none;
}

.plainlist.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.plainlist.cols li:nth-child(odd) { padding-right: 28px; }
.plainlist.cols li:nth-child(even) { padding-left: 28px; border-left: 2px solid var(--ink); }

/* ---------- Результаты по годам ---------- */

.years { border-top: 2px solid var(--ink); }

.year {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 2px solid var(--ink);
}

.year b {
  font-family: var(--font-d);
  font-weight: 400;
  font-size: 40px;
  color: var(--accent);
  line-height: 1;
}

.year ul { list-style: none; }

.year li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.year li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

/* ---------- Страница «Обо мне»: page-hero ---------- */

.page-hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px);
  border-bottom: 2px solid var(--ink);
}

.page-hero h1 {
  font-family: var(--font-d);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 130px);
  text-transform: uppercase;
  line-height: 0.92;
}

/* ---------- Футер ---------- */

.site-footer {
  background: var(--paper);
  border-top: 2px solid var(--ink);
  padding: 26px 0;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.footer-nav { display: flex; gap: 20px; }

.footer-nav a {
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: 0.06em;
}

.footer-nav a:hover { color: var(--accent); }

/* ---------- Reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { order: -1; max-height: 46vh; }
  .hero-media img { max-height: 46vh; }
  .split { grid-template-columns: 1fr; }
  .numlist { grid-template-columns: 1fr; }
  .numlist li:nth-child(odd) { border-right: 0; padding-right: 0; }
  .numlist li:nth-child(even) { padding-left: 0; }
  .points { grid-template-columns: 1fr; }
  .plainlist.cols { grid-template-columns: 1fr; }
  .plainlist.cols li:nth-child(odd) { padding-right: 0; }
  .plainlist.cols li:nth-child(even) { padding-left: 0; border-left: 0; }
  .year { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 640px) {
  .nav { gap: 12px; }
  .nav-link { display: none; }
  .ticker-group span { font-size: 18px; }
}
