/* ============================================================
   Кристина Зезюкина · Практический психолог
   Design System — Editorial / Refined / Warm
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Palette */
  --color-bg-primary: #FAF7F2;
  --color-bg-accent: #F0E6DC;
  --color-bg-card: #FDFAF6;
  --color-text-primary: #2E2A26;
  --color-text-secondary: #6B5F55;
  --color-cta: #B5836B;
  --color-cta-hover: #9C6B53;
  --color-cta-soft: #C9A28C;
  --color-border: #E5DCD2;
  --color-warning: #C58B4D;
  --color-warning-bg: #FBF3E6;
  --color-white: #FFFFFF;
  --color-divider-subtle: rgba(181, 131, 107, 0.15);

  /* Typography */
  --font-heading: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-section: 5rem;

  /* Sizing */
  --container-max: 1100px;
  --container-padding: 1.5rem;
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  --border-radius-xl: 28px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(46, 42, 38, 0.04), 0 4px 12px rgba(46, 42, 38, 0.04);
  --shadow-card-hover: 0 2px 8px rgba(46, 42, 38, 0.06), 0 8px 24px rgba(46, 42, 38, 0.07);
  --shadow-cta: 0 2px 8px rgba(181, 131, 107, 0.25);
  --shadow-cta-hover: 0 4px 16px rgba(181, 131, 107, 0.35);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 200ms;
  --duration-base: 350ms;
  --duration-slow: 600ms;
  --duration-reveal: 700ms;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle grain texture overlay on body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Focus Styles (a11y) --- */
:focus-visible {
  outline: 2px solid var(--color-cta);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cta);
  margin-bottom: var(--space-md);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- Section Base --- */
.section {
  padding: var(--space-section) 0;
}

.section--accent {
  background-color: var(--color-bg-accent);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header .section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

/* --- Decorative Divider --- */
.divider {
  width: 48px;
  height: 3px;
  background: var(--color-cta-soft);
  border-radius: 2px;
  margin: var(--space-md) auto;
  opacity: 0.6;
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(250, 247, 242, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-out-expo),
              background var(--duration-base) var(--ease-out-expo);
}

.site-header.scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(250, 247, 242, 0.95);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__brand {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) var(--ease-out-expo);
  position: relative;
}

.site-header__nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-cta);
  border-radius: 1px;
  transition: width var(--duration-base) var(--ease-out-expo);
}

.site-header__nav a:hover,
.site-header__nav a:focus-visible {
  color: var(--color-cta);
}

.site-header__nav a:hover::after,
.site-header__nav a:focus-visible::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-white) !important;
  background: var(--color-cta);
  border-radius: 50px;
  transition: background var(--duration-fast) var(--ease-out-expo),
              box-shadow var(--duration-fast) var(--ease-out-expo);
}

.header-cta::after { display: none !important; }

.header-cta:hover {
  background: var(--color-cta-hover);
  color: var(--color-white) !important;
  box-shadow: var(--shadow-cta-hover);
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 1px;
  transition: transform var(--duration-base) var(--ease-out-expo),
              opacity var(--duration-fast) var(--ease-out-expo);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: var(--space-3xl);
  position: relative;
  overflow: hidden;
}

/* Soft decorative circle behind hero photo */
.hero::before {
  content: "";
  position: absolute;
  top: 10%;
  right: -8%;
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(201, 162, 140, 0.12) 0%, rgba(240, 230, 220, 0.04) 60%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-cta-hover);
  background: rgba(201, 162, 140, 0.12);
  border-radius: 50px;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
}

.hero__badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-cta);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero__title {
  margin-bottom: var(--space-md);
  font-size: clamp(2.8rem, 6vw, 4rem);
  line-height: 1.1;
}

.hero__title em {
  font-style: normal;
  color: var(--color-cta);
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 500;
  color: var(--color-cta-soft);
  margin-bottom: var(--space-lg);
}

.hero__description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 460px;
  margin-bottom: var(--space-xl);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-cta);
  border-radius: 50px;
  box-shadow: var(--shadow-cta);
  transition: background var(--duration-fast) var(--ease-out-expo),
              box-shadow var(--duration-fast) var(--ease-out-expo),
              transform var(--duration-fast) var(--ease-out-expo);
}

.hero__cta:hover {
  background: var(--color-cta-hover);
  box-shadow: var(--shadow-cta-hover);
  transform: translateY(-1px);
}

.hero__cta .arrow {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.hero__cta:hover .arrow {
  transform: translateX(3px);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__photo-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 5;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(46, 42, 38, 0.08);
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--color-bg-accent);
  transition: transform var(--duration-slow) var(--ease-out-expo);
}

.hero__photo-wrapper:hover .hero__photo {
  transform: scale(1.03);
}

/* Decorative accent dots */
.hero__visual::after {
  content: "";
  position: absolute;
  top: -12px;
  right: -12px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(201, 162, 140, 0.08);
  pointer-events: none;
  z-index: -1;
}

/* --- Topics Grid --- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.topic-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: transform var(--duration-base) var(--ease-out-expo),
              box-shadow var(--duration-base) var(--ease-out-expo),
              border-color var(--duration-base) var(--ease-out-expo);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.topic-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201, 162, 140, 0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out-expo);
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-cta-soft);
}

.topic-card:hover::before {
  opacity: 1;
}

.topic-card__icon {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.topic-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-primary);
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

/* --- Formats Section --- */
.formats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.format-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-base) var(--ease-out-expo),
              box-shadow var(--duration-base) var(--ease-out-expo),
              border-color var(--duration-base) var(--ease-out-expo);
}

.format-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-cta-soft);
}

.format-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  gap: var(--space-sm);
}

.format-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.3;
}

.format-card__duration {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-cta-hover);
  background: rgba(201, 162, 140, 0.1);
  border-radius: 50px;
  white-space: nowrap;
}

.format-card__description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  flex: 1;
}

.format-card__features {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.format-card__features li {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}

.format-card__features li::before {
  content: "·";
  position: absolute;
  left: 0.3rem;
  color: var(--color-cta);
  font-weight: 700;
}

/* --- Education Timeline --- */
.timeline {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding-left: var(--space-2xl);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-cta-soft), var(--color-border), var(--color-cta-soft));
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-2xl);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-2xl) + 4px);
  top: 0.55rem;
  width: 10px;
  height: 10px;
  background: var(--color-cta);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 0 6px rgba(201, 162, 140, 0.12);
}

.timeline-item__year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-cta);
  margin-bottom: var(--space-xs);
}

.timeline-item__text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* --- Contraindications --- */
.contra-section {
  position: relative;
}

.contra-section .section-header h2 {
  color: var(--color-warning);
}

.contra-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.contra-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-warning-bg);
  border: 1px solid rgba(197, 139, 77, 0.15);
  border-radius: var(--border-radius-md);
  transition: border-color var(--duration-fast) var(--ease-out-expo);
}

.contra-item:hover {
  border-color: rgba(197, 139, 77, 0.3);
}

.contra-item__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-warning);
  background: rgba(197, 139, 77, 0.1);
  border-radius: 50%;
}

.contra-item__text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* --- Final CTA Section --- */
.final-cta {
  text-align: center;
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind final CTA */
.final-cta::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 140, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.final-cta__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.final-cta .divider {
  position: relative;
  z-index: 1;
}

.final-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  background: var(--color-cta);
  border-radius: 50px;
  box-shadow: var(--shadow-cta);
  transition: background var(--duration-fast) var(--ease-out-expo),
              box-shadow var(--duration-fast) var(--ease-out-expo),
              transform var(--duration-fast) var(--ease-out-expo);
  position: relative;
  z-index: 1;
}

.final-cta__btn:hover {
  background: var(--color-cta-hover);
  box-shadow: var(--shadow-cta-hover);
  transform: translateY(-2px);
}

.final-cta__btn .arrow {
  display: inline-block;
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.final-cta__btn:hover .arrow {
  transform: translateX(3px);
}

/* --- Footer --- */
.site-footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-primary);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.site-footer__brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.site-footer__copy {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.site-footer__telegram {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-cta);
  transition: color var(--duration-fast) var(--ease-out-expo);
}

.site-footer__telegram:hover {
  color: var(--color-cta-hover);
}

.site-footer__telegram-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --- Animations — Staggered Reveal on Scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-reveal) var(--ease-out-quint),
              transform var(--duration-reveal) var(--ease-out-quint);
}

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

/* Stagger children delays */
.reveal-stagger > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger > *:nth-child(8) { transition-delay: 560ms; }
.reveal-stagger > *:nth-child(9) { transition-delay: 640ms; }
.reveal-stagger > *:nth-child(10) { transition-delay: 720ms; }
.reveal-stagger > *:nth-child(11) { transition-delay: 800ms; }
.reveal-stagger > *:nth-child(12) { transition-delay: 880ms; }

/* Hero-specific staggered reveal */
.hero-reveal > * {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-fade-up var(--duration-reveal) var(--ease-out-quint) forwards;
}

.hero-reveal > *:nth-child(1) { animation-delay: 100ms; }
.hero-reveal > *:nth-child(2) { animation-delay: 250ms; }
.hero-reveal > *:nth-child(3) { animation-delay: 400ms; }
.hero-reveal > *:nth-child(4) { animation-delay: 550ms; }
.hero-reveal > *:nth-child(5) { animation-delay: 700ms; }

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Photo reveal animation */
.hero-photo-reveal {
  opacity: 0;
  transform: scale(0.95);
  animation: photo-reveal 900ms var(--ease-out-expo) 350ms forwards;
}

@keyframes photo-reveal {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================================
   RESPONSIVE — Mobile-first adjustments from larger → smaller
   ============================================================ */

/* --- ≤ 1280px --- */
@media (max-width: 1280px) {
  :root {
    --space-section: 4rem;
    --space-4xl: 5rem;
  }

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

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

/* --- ≤ 1024px --- */
@media (max-width: 1024px) {
  :root {
    --space-section: 3.5rem;
    --space-3xl: 3rem;
    --space-4xl: 4rem;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-3xl);
  }

  .hero__description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__photo-wrapper {
    max-width: 340px;
  }

  .hero__visual::after {
    display: none;
  }

  .hero::before {
    top: auto;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80vw;
    height: 80vw;
    max-width: 500px;
    max-height: 500px;
  }

  .contra-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

/* --- ≤ 768px --- */
@media (max-width: 768px) {
  :root {
    --space-section: 3rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
    --space-4xl: 3rem;
    --container-padding: 1.25rem;
  }

  /* Mobile navigation */
  .site-header__nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 5rem var(--container-padding) var(--space-2xl);
    background: var(--color-bg-primary);
    border-left: 1px solid var(--color-border);
    box-shadow: -4px 0 24px rgba(46, 42, 38, 0.06);
    transform: translateX(100%);
    transition: transform var(--duration-base) var(--ease-out-expo);
    overflow-y: auto;
  }

  .site-header__nav.active {
    transform: translateX(0);
  }

  .site-header__nav a {
    font-size: 1.05rem;
  }

  .header-cta {
    margin-top: var(--space-sm);
  }

  .mobile-menu-btn {
    display: flex;
    position: relative;
    z-index: 101;
  }

  /* Mobile menu overlay */
  .mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(46, 42, 38, 0.3);
    opacity: 0;
    transition: opacity var(--duration-base) var(--ease-out-expo);
  }

  .mobile-nav-overlay.active {
    display: block;
    opacity: 1;
  }

  .formats-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .topics-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .contra-list {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .timeline {
    max-width: 100%;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .hero__photo-wrapper {
    max-width: 280px;
  }
}

/* --- ≤ 480px --- */
@media (max-width: 480px) {
  :root {
    --space-section: 2.5rem;
    --space-xl: 1.5rem;
    --space-lg: 1.25rem;
    --border-radius-lg: 16px;
    --border-radius-xl: 22px;
  }

  .hero__photo-wrapper {
    max-width: 240px;
  }

  .format-card {
    padding: var(--space-lg);
  }

  .topic-card {
    padding: var(--space-lg) var(--space-md);
  }

  .final-cta__btn {
    width: 100%;
    justify-content: center;
  }

  .section-header {
    margin-bottom: var(--space-2xl);
  }
}

/* --- Print styles --- */
@media print {
  .site-header,
  .mobile-nav-overlay,
  .mobile-menu-btn {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding-top: var(--space-2xl);
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  body::before {
    display: none;
  }
}
