:root {
  --bg: #f5f2eb;
  --bg-soft: #ebe6dc;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #5c5349;
  --line: #d4cfc4;
  --primary: #c41e26;
  --primary-strong: #9a0e14;
  --accent: #da1018;
  --shadow: 0 20px 50px rgba(28, 10, 10, 0.12);
  --radius: 18px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: radial-gradient(circle at 10% 0%, #faf8f4, #f0ebe0 55%, #e8e2d6 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip-link:focus {
  left: 10px;
  z-index: 1001;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
  padding-inline: 0;
}

@media (max-width: 380px) {
  .container {
    width: min(var(--container), calc(100% - 1.25rem));
  }
}

.section {
  padding: 56px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 72px 0;
  }
}

.section-soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(232, 228, 215, 0.58) 100%);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Prata", "Times New Roman", serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 5.5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.7vw, 2.7rem);
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

p {
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(250, 248, 244, 0.96);
  border-color: var(--line);
  box-shadow: 0 8px 26px rgba(28, 10, 10, 0.06);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.brand-mark {
  font-family: "Prata", serif;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}

.site-nav {
  position: fixed;
  inset: 74px 0 auto;
  background: rgba(245, 242, 234, 0.98);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 2px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.site-nav a {
  padding: 14px 1rem;
  color: var(--text);
  font-weight: 500;
}

.site-nav a:hover {
  background: rgba(196, 30, 38, 0.08);
}

.site-nav.is-open {
  max-height: 340px;
}

.nav-toggle {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-content: center;
  gap: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(245, 242, 234, 0.9);
  border-color: var(--primary);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--primary-strong);
}

.header-cta {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--primary-strong);
  outline-offset: 3px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--primary-strong));
}

.btn-primary:hover {
  background: linear-gradient(135deg, #b81a21, #7a0c11);
}

.btn-secondary {
  color: var(--primary-strong);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(196, 30, 38, 0.35);
}

.btn-small {
  padding: 9px 16px;
  font-size: 0.9rem;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  position: relative;
  padding-top: 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(80, 20, 22, 0.88) 0%, rgba(60, 12, 14, 0.75) 30%, rgba(40, 8, 10, 0.5) 70%),
    url("assets/images/hero-ilya.png") center / cover no-repeat;
  transform: scale(1.03);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 760px;
  color: #faf8f6;
  padding: 0 0 1.5rem;
}

.hero-copy h1 {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5), 0 0 1px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  margin-top: 14px;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: #e8e0dc;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-lead {
  margin-top: 14px;
  max-width: 62ch;
  font-size: clamp(1.05rem, 2.2vw, 1.15rem);
  line-height: 1.65;
  color: #ebe5e1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta span {
  border: 1px solid rgba(242, 245, 238, 0.35);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.92rem;
  color: #eef2eb;
}

.split,
.author-grid {
  display: grid;
  gap: 28px;
}

.split-media,
.author-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  min-height: 280px;
}

.split-media img,
.author-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.split-content,
.author-content {
  display: grid;
  gap: 16px;
  align-content: start;
}

.feature-list {
  margin: 4px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.section-head {
  max-width: 760px;
  display: grid;
  gap: 14px;
}

.program-get {
  margin-top: 28px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  border: 1px solid rgba(196, 30, 38, 0.1);
}

.program-get-title {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-strong);
}

.program-get-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.program-get-list li {
  font-size: 0.95rem;
  line-height: 1.5;
}

.program-day-cards {
  margin-top: 32px;
  display: grid;
  gap: 24px;
}

.day-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(196, 30, 38, 0.12);
}

.day-card h3 {
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(196, 30, 38, 0.2);
  font-size: 1.35rem;
  color: var(--primary-strong);
}

.time-block {
  margin-bottom: 20px;
}

.time-block:last-child {
  margin-bottom: 0;
}

.time-block h4 {
  margin: 0 0 10px;
  font-family: "Manrope", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.practice-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.practice-list li {
  font-size: 1rem;
  line-height: 1.5;
}

.practice-list span[title] {
  border-bottom: 1px dotted var(--muted);
  cursor: help;
}

.time-block-end .practice-list {
  list-style: none;
  padding-left: 0;
}

.program-note {
  margin-top: 24px;
  font-size: 0.9rem;
}

.venue-link {
  font-weight: 700;
  color: var(--primary-strong);
  border-bottom: 1px solid currentColor;
}

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

.venue-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.cards-grid,
.price-grid {
  margin-top: 30px;
  display: grid;
  gap: 14px;
}

.card,
.price-card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(196, 30, 38, 0.15);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(41, 48, 39, 0.08);
}

.card {
  display: grid;
  gap: 10px;
}

.icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  border-radius: 12px;
  background: rgba(196, 30, 38, 0.1);
  color: var(--primary);
}

.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.author-name {
  font-family: "Prata", serif;
  color: var(--primary);
  font-size: clamp(1.2rem, 2.3vw, 1.6rem);
}

.price-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(196, 30, 38, 0.12);
  color: var(--primary-strong);
  font-size: 0.92rem;
  font-weight: 700;
}

.price-value {
  margin-top: 12px;
  font-family: "Prata", serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--accent);
}

.price-includes-title {
  margin: 16px 0 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.price-includes-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.price-includes-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.price-includes-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.cta-urgency {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 8px 0 4px;
}

.cta-countdown-label {
  margin: 12px 0 4px;
  font-size: 0.9rem;
  color: var(--muted);
}

.gallery {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.gallery-item {
  border: none;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.gallery-item::after {
  content: "Смотреть";
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(20, 22, 20, 0.6);
  color: #fff;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center 35%;
  transition: opacity 0.2s ease;
}

.gallery-item:hover img {
  opacity: 0.92;
}

.gallery-item:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  overflow: clip;
}

.faq-question {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 16px;
  min-height: 48px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background: rgba(196, 30, 38, 0.04);
}

.faq-question:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding: 0 16px 16px;
  color: #3b443c;
}

.final-cta {
  text-align: center;
  background:
    radial-gradient(circle at 10% 10%, rgba(196, 30, 38, 0.06), transparent 45%),
    radial-gradient(circle at 90% 100%, rgba(196, 30, 38, 0.08), transparent 45%);
}

.countdown {
  margin: 18px auto 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
}

.countdown-item {
  border: 1px solid rgba(196, 30, 38, 0.25);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.8);
}

.countdown-item span {
  display: block;
  font-family: "Prata", serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--primary-strong);
}

.countdown-item small {
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer {
  padding: 30px 0 36px;
  border-top: 1px solid var(--line);
  background: #efebdc;
}

.footer-grid {
  display: grid;
  gap: 14px;
}

.footer-grid p {
  margin: 0;
  color: #40463f;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a {
  color: var(--primary-strong);
  border-bottom: 1px solid transparent;
}

.footer-links a:hover {
  border-color: currentColor;
}

.footer-links a:focus-visible,
.site-nav a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.muted {
  color: var(--muted);
}

.lightbox,
.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}

.lightbox.is-open,
.modal.is-open {
  display: grid;
}

.lightbox {
  place-items: center;
  background: rgba(13, 17, 13, 0.92);
  padding: 12px;
  overflow-y: auto;
  align-content: center;
}

.lightbox figure {
  margin: 0;
  max-width: min(980px, 100%);
  flex-shrink: 0;
}

.lightbox img {
  width: 100%;
  height: auto;
  max-height: min(85vh, 90dvh);
  object-fit: contain;
  vertical-align: middle;
}

.lightbox figcaption {
  margin-top: 10px;
  color: #dde5db;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.modal {
  place-items: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 15, 0.62);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100svh - 2rem);
  overflow: auto;
  border-radius: 18px;
  background: #f9f8f2;
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(66, 95, 69, 0.12);
  cursor: pointer;
}

form {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: #2f362f;
  font-size: 0.95rem;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  color: #1e221e;
  font: inherit;
}

input:focus,
select:focus {
  outline: 2px solid rgba(196, 30, 38, 0.35);
  outline-offset: 1px;
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 9px;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.field-error {
  min-height: 16px;
  color: #8b2a2a;
  font-size: 0.8rem;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .hero {
    padding-top: 74px;
    min-height: 84svh;
    align-items: flex-end;
  }

  .hero-grid {
    padding-bottom: 1rem;
  }

  .hero-copy h1 {
    font-size: 1.75rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-top: 10px;
  }

  .hero-lead {
    font-size: 0.95rem;
    margin-top: 12px;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 20px;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  .header-inner {
    grid-template-columns: auto auto auto;
    gap: 8px;
  }

  .brand-logo {
    width: 28px;
    height: 28px;
  }

  .brand-mark {
    font-size: 0.95rem;
  }

  .nav-toggle {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .btn-small {
    padding: 8px 12px;
    font-size: 0.82rem;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 92px 0;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .gallery-item img {
    height: 190px;
  }

  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
    gap: 24px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    max-height: none;
    background: transparent;
    border: none;
    display: flex;
    justify-content: center;
    gap: 16px;
  }

  .site-nav a {
    padding: 8px 0;
    position: relative;
  }

  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s ease;
  }

  .site-nav a:hover::after {
    width: 100%;
  }

  .header-cta {
    display: inline-flex;
  }

  .split,
  .author-grid {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 40px;
  }

  .split-media {
    max-height: 620px;
  }

  .program-day-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .gallery-item img {
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
