/* ═══════════════════════════════════════════════════════════
   НЕТВОРКИНГ УЛАН-УДЭ — style.css
   Строго по DESIGN_SYSTEM.md
═══════════════════════════════════════════════════════════ */


/* ───────────────────────────────────────────────────────────
   0. CSS-ПЕРЕМЕННЫЕ
─────────────────────────────────────────────────────────── */
:root {
  /* Цвета */
  --color-bg:          #FFFAF6;
  --color-bg-warm:     #FFF3E8;
  --color-surface:     #FFFFFF;
  --color-text:        #111827;
  --color-text-muted:  #6B6B6B;
  --color-accent:      #E8723A;
  --color-accent-dark: #C85A25;
  --color-accent-soft: #FDE8D8;
  --color-success:     #2D9E6B;
  --color-error:       #E84040;

  /* Тени */
  --shadow-card:   0 2px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-hover:  0 8px 32px rgba(232,114,58,0.18), 0 2px 8px rgba(0,0,0,0.10);
  --shadow-btn:    0 4px 0 #C85A25, 0 6px 16px rgba(232,114,58,0.35);
  --shadow-btn-active: 0 1px 0 #C85A25, 0 2px 8px rgba(232,114,58,0.20);

  /* Типографика */
  --font-body:    'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Пространство */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
}


/* ───────────────────────────────────────────────────────────
   1. СБРОС И БАЗА
─────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

blockquote {
  margin: 0;
}


/* ───────────────────────────────────────────────────────────
   2. ТИПОГРАФИКА
─────────────────────────────────────────────────────────── */
h1 {
  font-family: var(--font-display);
  font-size: clamp(3.45rem, 8.8vw, 6.6rem);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
  color: var(--color-text);
}

h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--color-text);
  text-wrap: balance;
}

p,
li,
blockquote {
  max-width: 65ch;
  text-wrap: pretty;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}


/* ───────────────────────────────────────────────────────────
   3. КОНТЕЙНЕР И СЕКЦИИ
─────────────────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: var(--space-2xl) 0;
}

.section--warm {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg,
      rgba(255,243,232,1) 0%,
      rgba(253,232,216,0.58) 34%,
      rgba(255,250,246,1) 58%,
      rgba(255,228,204,0.55) 100%);
  background-size: 220% 220%;
  animation: warm-section-flow 14s ease-in-out infinite;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    inset 0 -1px 0 rgba(232,114,58,0.08);
}

.section--warm .container {
  position: relative;
  z-index: 1;
}

.section-heading {
  margin-bottom: var(--space-xl);
}

.section-heading h2 {
  margin-bottom: 0.5rem;
}

.section-heading .eyebrow {
  margin-top: 0.5rem;
}

.section-heading--center {
  text-align: left;
}

@media (max-width: 768px) {
  .container  { padding: 0 1rem; }
  .section    { padding: var(--space-xl) 0; }
  .section-heading { margin-bottom: var(--space-lg); }
}

.section-divider {
  margin-bottom: -2px;
  line-height: 0;
}

.section-divider svg {
  width: 100%;
  height: 60px;
  display: block;
}

.section-divider path {
  fill: var(--color-bg-warm);
}


/* ───────────────────────────────────────────────────────────
   4. KEYFRAMES
─────────────────────────────────────────────────────────── */

/* Парящая иконка в карточках */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* Пульсирующее кольцо на главном CTA */
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(232,114,58,0.5), var(--shadow-btn); }
  70%  { box-shadow: 0 0 0 14px rgba(232,114,58,0), var(--shadow-btn); }
  100% { box-shadow: 0 0 0 0 rgba(232,114,58,0), var(--shadow-btn); }
}

/* Появление снизу вверх */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes warm-section-flow {
  0%, 100% {
    background-position: 0% 45%;
  }
  50% {
    background-position: 100% 55%;
  }
}


/* ───────────────────────────────────────────────────────────
   5. SCROLL-АНИМАЦИИ (IntersectionObserver)
─────────────────────────────────────────────────────────── */
[data-animate] .animate-item {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-animate].is-visible .animate-item {
  opacity: 1;
  transform: translateY(0);
}

/* Задержки задаются через JS: index * 100ms */


/* ───────────────────────────────────────────────────────────
   6. КНОПКИ (3D)
─────────────────────────────────────────────────────────── */

/* PRIMARY */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-btn);
  transform: translateY(-2px);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.button:hover {
  background: var(--color-accent-dark);
  transform: translateY(-4px);
  box-shadow: 0 6px 0 #9E4820, 0 10px 24px rgba(232,114,58,0.45);
}

.button:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-btn-active);
}

/* Пульс (главный CTA) */
.button--pulse {
  animation: pulse-ring 2.2s infinite;
}

/* OUTLINE */
.button--outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  box-shadow: 4px 4px 0 var(--color-accent-soft);
  transform: none;
}

.button--outline:hover {
  background: var(--color-accent-soft);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--color-accent);
}

.button--outline:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

/* SMALL (в шапке) */
.button--small {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  border-radius: 8px;
  box-shadow: 0 3px 0 #C85A25, 0 4px 12px rgba(232,114,58,0.3);
  transform: translateY(-1px);
}

.button--small:hover {
  transform: translateY(-3px);
}


/* ───────────────────────────────────────────────────────────
   7. КАРТОЧКИ
─────────────────────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--color-surface);
  border-radius: 16px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(232,114,58,0.08);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Shine glare сверху-слева */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card__heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

/* Иконки в карточках */
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-accent-soft) 0%, rgba(232,114,58,0.15) 100%);
  border: 1px solid rgba(232,114,58,0.2);
  box-shadow:
    3px 3px 8px rgba(232,114,58,0.12),
    -1px -1px 4px rgba(255,255,255,0.9),
    inset 0 1px 0 rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: none;
  font-size: 0;
}

.card h3 {
  margin-bottom: 0;
}

.card p {
  position: relative;
  z-index: 2;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.card--featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
    linear-gradient(135deg, var(--color-accent), rgba(232,114,58,0.2)) border-box;
}

/* ЦА-карточки */
.audience-card {
  text-align: left;
}

/* ───────────────────────────────────────────────────────────
   8. HEADER
─────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255,250,246,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07), 0 4px 20px rgba(0,0,0,0.06);
  padding: 0.6rem 0;
}

.site-nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.site-nav__logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.3s ease;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.site-header.scrolled .site-nav__logo {
  color: var(--color-text);
  text-shadow: none;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
}

.site-nav__links a:not(.button) {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color 0.2s;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

.site-nav__links a:not(.button):hover {
  color: #fff;
}

.site-header.scrolled .site-nav__links a:not(.button) {
  color: var(--color-text-muted);
  text-shadow: none;
}

.site-header.scrolled .site-nav__links a:not(.button):hover {
  color: var(--color-accent);
}

/* CTA-кнопка в конце ряда навигации */
.site-nav__links .button--small {
  margin-left: auto;
}


/* ───────────────────────────────────────────────────────────
   9. БУРГЕР-МЕНЮ
─────────────────────────────────────────────────────────── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.site-header.scrolled .burger span {
  background: var(--color-text);
}

/* Анимация в крестик при открытом меню */
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .site-nav__links {
    /* Дропдаун под шапкой */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.25rem 1.5rem;
    gap: 0;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-top: 1px solid rgba(0,0,0,0.06);
  }

  .site-nav__links.is-open {
    display: flex;
  }

  /* Ссылки в мобильном меню */
  .site-nav__links a:not(.button) {
    padding: 0.75rem 0;
    font-size: 1rem;
    width: 100%;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--color-text-muted) !important;
    text-shadow: none !important;
  }

  .site-nav__links a:not(.button):hover {
    color: var(--color-accent) !important;
  }

  /* CTA в мобильном меню — полная ширина */
  .site-nav__links .button--small {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}


/* ───────────────────────────────────────────────────────────
   10. HERO
─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 0;
}

/* Статичное фоновое фото hero, с запасом для parallax */
.hero__media {
  position: absolute;
  inset: -15% -5%;
  z-index: 0;
  will-change: transform;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  will-change: transform;
  filter: contrast(1.05) saturate(1.1) brightness(1.02);
  transition: transform 0.1s linear;
}

/* Тёмный градиентный оверлей */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.50) 55%,
    rgba(0,0,0,0.75) 100%
  );
  z-index: 1;
}

/* Контент поверх оверлея */
.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 780px;
  padding-top: 7rem;
  padding-bottom: 4rem;
  width: 100%;
}

.hero__content .eyebrow {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
  margin-bottom: var(--space-md);
}

.hero__lead {
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 2vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: var(--space-sm);
  line-height: 1.6;
  background: linear-gradient(90deg, #fff 0%, #FFD4B0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0.85;
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: var(--space-lg);
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__facts {
  display: flex;
  gap: 0;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.hero__facts span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero__facts span::before {
  display: none;
}

.hero__facts span:not(:last-child)::after {
  content: ' · ';
  opacity: 0.5;
  margin: 0 0.5rem;
}

@media (max-width: 768px) {
  .hero__media {
    inset: -15% -5%;
  }
  .hero__content {
    padding-top: 8rem;
    padding-bottom: 3.5rem;
  }
  .hero__sub {
    max-width: 100%;
  }
}


/* ───────────────────────────────────────────────────────────
   11. БОЛЬ / РЕШЕНИЕ
─────────────────────────────────────────────────────────── */
.pain__intro {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  font-style: italic;
}

.pain,
.pain-gain {
  position: relative;
}

.pain::before,
.pain-gain::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(232,114,58,0.04) 0%,
    transparent 50%,
    rgba(232,114,58,0.04) 100%);
  pointer-events: none;
}

.pain > .container {
  position: relative;
  z-index: 1;
}

/* Внешний контейнер: текст + фото */
.pain-gain__outer {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-xl);
  align-items: start;
}

.pain-gain__main {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* Двухколоночная сетка сравнения */
.pain-gain__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.pain-gain__col-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

.pain-gain__col-label--bad  { color: var(--color-error); }
.pain-gain__col-label--good { color: var(--color-success); }

/* Разделитель растянут на обе колонки */
.pain-gain__divider {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.6vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--color-text);
  padding: 1rem 0 0.25rem;
  line-height: 1.05;
}

/* Pain/Gain списки */
.pain-list,
.gain-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pain-list li {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: #FFF0F0;
  border-left: 3px solid var(--color-error);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text);
  transform: translateX(-20px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.gain-list li {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  background: #F0FFF8;
  border-left: 3px solid var(--color-success);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text);
  transform: translateX(20px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.pain-list li::before,
.gain-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 0.15rem;
  background: currentColor;
}

.pain-list li::before {
  color: var(--color-error);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.gain-list li::before {
  color: var(--color-success);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

[data-animate].is-visible .pain-list li,
[data-animate].is-visible .gain-list li {
  transform: translateX(0);
  opacity: 1;
}

.pain-list li:nth-child(1), .gain-list li:nth-child(1) { transition-delay: 0.1s; }
.pain-list li:nth-child(2), .gain-list li:nth-child(2) { transition-delay: 0.2s; }
.pain-list li:nth-child(3), .gain-list li:nth-child(3) { transition-delay: 0.3s; }
.pain-list li:nth-child(4), .gain-list li:nth-child(4) { transition-delay: 0.4s; }

/* Декоративное фото справа */
.pain-gain__photo {
  position: sticky;
  top: 5.5rem;
}

.pain-gain__photo img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  max-height: 520px;
  box-shadow: var(--shadow-hover);
}

@media (max-width: 960px) {
  .pain-gain__outer {
    grid-template-columns: 1fr;
  }
  .pain-gain__photo {
    position: static;
    order: 3;
  }
  .pain-gain__photo img {
    max-height: 300px;
  }
}

@media (max-width: 640px) {
  .pain-gain__wrap {
    grid-template-columns: 1fr;
  }
  .pain-gain__divider {
    grid-column: 1;
  }
}


/* ───────────────────────────────────────────────────────────
   12. ФОРМАТ
─────────────────────────────────────────────────────────── */
.format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.format-grid .card {
  border-top: 3px solid var(--color-accent);
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: default;
}

.format-grid .card:hover {
  transform: translateY(-8px) rotateX(3deg);
  box-shadow:
    0 20px 40px rgba(232,114,58,0.2),
    0 8px 16px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.8);
}

.format-grid .card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1.5px solid transparent;
  background: linear-gradient(135deg,
    rgba(232,114,58,0.6),
    rgba(232,114,58,0.1) 50%,
    rgba(232,114,58,0.6)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box,
                linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.format-grid .card:hover::after { opacity: 1; }

.format__speaker-cta {
  text-align: left;
  padding: var(--space-lg);
  background: var(--color-accent-soft);
  border-radius: 16px;
  border: 1px dashed rgba(232,114,58,0.4);
}

.format__speaker-cta p {
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .format-grid {
    grid-template-columns: 1fr;
  }
  .format__speaker-cta {
    padding: 1.75rem 1.25rem;
  }
}


/* ───────────────────────────────────────────────────────────
   13. ПОРТРЕТЫ ЦА
─────────────────────────────────────────────────────────── */
.audience-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.94fr 0.94fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

[data-animate] .audience-card {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible .audience-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.audience-card:nth-child(1) {
  background: #FFF8F5;
  transition-delay: 0.1s;
}

.audience-card:nth-child(2) {
  background: #F5FFF9;
  transition-delay: 0.25s;
}

.audience-card:nth-child(3) {
  background: #F8F5FF;
  transition-delay: 0.4s;
}

/* Цитата */
.audience-quote {
  position: relative;
  padding: 2rem 2.5rem;
  background: var(--color-accent-soft);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 16px 16px 0;
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--color-text);
}

.audience-quote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--color-accent);
  opacity: 0.2;
  position: absolute;
  top: -1rem;
  left: 1rem;
  line-height: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }
  .audience-quote {
    font-size: 1rem;
    padding: 1.5rem 1.25rem;
  }
}


/* ───────────────────────────────────────────────────────────
   14. ОРГАНИЗАТОР + ОТЗЫВЫ
─────────────────────────────────────────────────────────── */

/* Карточка организатора */
.organizer {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--color-surface);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--color-accent-soft);
  max-width: 540px;
  margin: 0 auto 3rem;
}

.organizer__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--color-accent);
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 6px var(--color-accent),
    0 8px 24px rgba(232,114,58,0.3);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.organizer__photo:hover {
  transform: scale(1.04);
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 6px var(--color-accent),
    0 12px 32px rgba(232,114,58,0.45);
}

.organizer__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.organizer__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--color-text);
}

.organizer__role {
  color: var(--color-accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.organizer__label {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: 0.1rem;
}

/* Сетка отзывов */
.reviews-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr;
  gap: var(--space-md);
}

/* Карточка-заглушка */
.review-card {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(232,114,58,0.25);
  background: rgba(253,232,216,0.15);
}

.testimonial-card {
  background: var(--color-surface);
  border-radius: 20px;
  padding: var(--space-lg);
  min-height: 220px;
  box-shadow:
    0 16px 46px rgba(232,114,58,0.16),
    0 4px 14px rgba(0,0,0,0.07);
  border: 1px solid rgba(232,114,58,0.08);
}

.testimonial-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.testimonial-card__photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--color-accent-soft);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--color-text);
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.testimonial-card__text {
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text);
  font-size: 1.02rem;
  margin: 0;
  border: none;
  padding: 0;
}

.review-card:hover {
  transform: none;
}

.review-card__placeholder {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  text-align: center;
  font-style: italic;
}

@media (max-width: 768px) {
  .organizer {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    max-width: 100%;
  }
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .organizer__photo {
    width: 96px;
    height: 96px;
  }
}


/* ───────────────────────────────────────────────────────────
   15. ИНСТРУКЦИЯ (TIMELINE)
─────────────────────────────────────────────────────────── */

/* Двухколоночная сетка: шаги слева, фото справа */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.how__photo img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  max-height: 480px;
  box-shadow: var(--shadow-hover);
}

/* Вертикальный timeline */
.steps {
  position: relative;
  padding-left: 4.25rem;
  max-width: 620px;
}

/* Вертикальная линия */
.steps::before {
  content: '';
  position: absolute;
  left: 1.35rem;
  top: 0.5rem;
  bottom: 1rem;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--color-accent),
    var(--color-accent-soft)
  );
  border-radius: 2px;
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.2s ease;
}

[data-animate].is-visible .steps::before {
  transform: scaleY(1);
}

.step {
  position: relative;
  margin-bottom: 2.5rem;
}

.step:last-child {
  margin-bottom: 0;
}

/* Кружок с номером */
.step__num {
  position: absolute;
  left: -4.25rem;
  top: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(232,114,58,0.45);
  flex-shrink: 0;
  z-index: 1;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-animate].is-visible .step__num {
  transform: scale(1);
}

.step:nth-child(1) .step__num { transition-delay: 0.1s; }
.step:nth-child(2) .step__num { transition-delay: 0.2s; }
.step:nth-child(3) .step__num { transition-delay: 0.3s; }
.step:nth-child(4) .step__num { transition-delay: 0.4s; }
.step:nth-child(5) .step__num { transition-delay: 0.5s; }

.step__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.035em;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  line-height: 1.12;
}

.step__text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

@media (max-width: 768px) {
  .how-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  /* Шаги сверху, фото снизу */
  .steps    { order: 1; max-width: 100%; }
  .how__photo { order: 2; }
  .how__photo img { max-height: 280px; }
}


/* ───────────────────────────────────────────────────────────
   16. БРОНИРОВАНИЕ
─────────────────────────────────────────────────────────── */
@keyframes booking-glow {
  0%, 100% { box-shadow: 0 0 40px rgba(232,114,58,0.1); }
  50%       { box-shadow: 0 0 80px rgba(232,114,58,0.25); }
}

.booking {
  background: var(--color-bg);
}

.booking .section-heading--center {
  text-align: center;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.booking-card {
  background: var(--color-surface);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-hover);
  border: 2px solid var(--color-accent-soft);
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: booking-glow 3s ease-in-out infinite;
}

.booking-grid .booking-card {
  max-width: none;
  margin: 0;
}

/* Карточка "вдвоём" — выделить как рекомендуемую */
.booking-card--featured {
  border: 2px solid var(--color-accent);
  position: relative;
}

.booking-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.booking-kicker {
  color: var(--color-accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.booking-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: var(--color-accent);
  line-height: 1;
  background: linear-gradient(135deg, var(--color-accent), #FF9F5A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.booking-price-note {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: none;
}

.booking-button {
  margin-top: 1.25rem;
  justify-content: center;
  width: 100%;
}

.booking-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 320px;
}

.booking-note--wide {
  margin: 1.5rem auto 0;
  max-width: 520px;
  text-align: center;
}

.booking-note a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 768px) {
  .booking-card {
    padding: 2rem 1.5rem;
  }
  .booking-price {
    font-size: 2.25rem;
  }
}

@media (max-width: 640px) {
  .booking-grid { grid-template-columns: 1fr; }
}


/* ───────────────────────────────────────────────────────────
   17. FOOTER
─────────────────────────────────────────────────────────── */
footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 2rem;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer__logo:hover {
  opacity: 0.8;
}

.footer__socials {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
  transition: transform 200ms ease, background 200ms ease;
}

.footer__social-link:hover {
  transform: scale(1.1);
}

.footer__social-link svg {
  width: 32px;
  height: 32px;
  display: block;
}

.footer__social-link--telegram svg {
  fill: #229ED9;
  stroke: none;
}

.footer__social-link--max svg {
  fill: initial;
  stroke: none;
}

.footer__copy {
  font-size: 0.8rem;
  opacity: 0.45;
  width: 100%;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 0.5rem;
}

/* Юридический блок */
.footer__legal {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.52;
  line-height: 1.8;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 1rem;
}

.footer__legal p,
.footer__copy,
.booking-price,
.booking-kicker,
.organizer__name,
.organizer__role,
.organizer__label,
.testimonial-card__name,
.testimonial-card__role {
  max-width: none;
}

.footer__legal p:nth-child(3) {
  color: rgba(255,255,255,0.82);
  font-weight: 700;
}

.footer__legal a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
  }
  .footer__copy {
    margin-top: 0;
    padding-top: 1rem;
  }
}


/* ───────────────────────────────────────────────────────────
   18. УТИЛИТЫ
─────────────────────────────────────────────────────────── */

/* Тонкий акцентный скроллбар */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb {
  background: var(--color-accent);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* Выделение текста */
::selection {
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

.card,
.faq__question {
  cursor: pointer;
}

/* Отступ для якорных ссылок (под фиксированной шапкой) */
[id] {
  scroll-margin-top: 5rem;
}


/* ───────────────────────────────────────────────────────────
   20. VIEW TRANSITIONS
─────────────────────────────────────────────────────────── */
/* View Transitions API — плавный переход */
@view-transition {
  navigation: auto;
}

/* Фон остаётся, контент меняется */
::view-transition-old(root) {
  animation: page-out 0.25s cubic-bezier(0.4, 0, 1, 1) forwards;
}
::view-transition-new(root) {
  animation: page-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes page-out {
  to { opacity: 0; transform: translateY(-12px) scale(0.98); }
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(16px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}


/* ───────────────────────────────────────────────────────────
   21. ПРОФЕССИОНАЛЬНАЯ ГЛУБИНА И 3D-ОБВОДКИ
─────────────────────────────────────────────────────────── */
/* ── GRADIENT BORDER (светящаяся обводка) ── */
/* Принцип: два фона — один для заливки, второй для обводки-градиента */
:root {
  --shadow-btn:
    0 4px 0 #C85A25,
    0 6px 20px rgba(232,114,58,0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);
  --shadow-btn-active:
    0 1px 0 #C85A25,
    0 2px 8px rgba(232,114,58,0.3),
    inset 0 2px 4px rgba(0,0,0,0.1);
}

.card {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
    linear-gradient(
      135deg,
      rgba(232,114,58,0.5) 0%,
      rgba(255,200,150,0.15) 50%,
      rgba(232,114,58,0.4) 100%
    ) border-box;
  position: relative;
  box-shadow:
    /* ближняя тень — резкая */
    0 1px 2px rgba(0,0,0,0.07),
    /* средняя — мягкая */
    0 4px 16px rgba(0,0,0,0.06),
    /* дальняя акцентная — тёплая */
    0 8px 32px rgba(232,114,58,0.08),
    /* inset highlight сверху */
    inset 0 1px 0 rgba(255,255,255,0.9);
}

/* ── ВНУТРЕННИЙ СВЕТ (inset glow) ── */
/* Имитирует свет изнутри — дорогой эффект */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(
    160deg,
    rgba(255,255,255,0.25) 0%,
    transparent 40%
  );
  pointer-events: none;
}

/* ── 3D ТЕНИ (многослойные) ── */
/* Три слоя теней = глубина и объём */
.card:hover {
  box-shadow:
    0 2px 4px rgba(0,0,0,0.08),
    0 8px 24px rgba(0,0,0,0.08),
    0 16px 48px rgba(232,114,58,0.16),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

/* ── КНОПКИ — 3D ОБЪЁМ ── */
/* Принцип: нижняя тень = "толщина" кнопки */
.button {
  box-shadow:
    /* дно кнопки — создаёт высоту */
    0 4px 0 #C85A25,
    /* боковое свечение */
    0 6px 20px rgba(232,114,58,0.4),
    /* glare сверху */
    inset 0 1px 0 rgba(255,255,255,0.2);
}
.button:hover {
  box-shadow:
    0 6px 0 #9E4820,
    0 10px 28px rgba(232,114,58,0.5),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transform: translateY(-3px);
}
.button:active {
  box-shadow:
    0 1px 0 #C85A25,
    0 2px 8px rgba(232,114,58,0.3),
    inset 0 2px 4px rgba(0,0,0,0.1);
  transform: translateY(2px);
}
.button:hover:active,
.button--outline:hover:active,
.button--small:hover:active {
  transform: translateY(2px) !important;
}

/* ── ИКОНКИ В КАРТОЧКАХ — 3D КРУГ ── */
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-accent-soft) 0%, rgba(232,114,58,0.15) 100%);
  border: 1px solid rgba(232,114,58,0.2);
  box-shadow:
    3px 3px 8px rgba(232,114,58,0.12),
    -1px -1px 4px rgba(255,255,255,0.9),
    inset 0 1px 0 rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: none;
  font-size: 0;
}

.format-grid .card:nth-child(1) .card__icon::before {
  content: '';
  width: 24px; height: 24px;
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center/contain no-repeat;
  display: block;
}

.format-grid .card:nth-child(2) .card__icon::before {
  content: '';
  width: 24px; height: 24px;
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4L16.5 3.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  display: block;
}

.format-grid .card:nth-child(3) .card__icon::before {
  content: '';
  width: 24px; height: 24px;
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z'/%3E%3Cpath d='M19 10v2a7 7 0 0 1-14 0v-2'/%3E%3Cline x1='12' y1='19' x2='12' y2='23'/%3E%3Cline x1='8' y1='23' x2='16' y2='23'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z'/%3E%3Cpath d='M19 10v2a7 7 0 0 1-14 0v-2'/%3E%3Cline x1='12' y1='19' x2='12' y2='23'/%3E%3Cline x1='8' y1='23' x2='16' y2='23'/%3E%3C/svg%3E") center/contain no-repeat;
  display: block;
}

.format-grid .card:nth-child(4) .card__icon::before {
  content: '';
  width: 24px; height: 24px;
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M18 8h1a4 4 0 0 1 0 8h-1'/%3E%3Cpath d='M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z'/%3E%3Cline x1='6' y1='1' x2='6' y2='4'/%3E%3Cline x1='10' y1='1' x2='10' y2='4'/%3E%3Cline x1='14' y1='1' x2='14' y2='4'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M18 8h1a4 4 0 0 1 0 8h-1'/%3E%3Cpath d='M2 8h16v9a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8z'/%3E%3Cline x1='6' y1='1' x2='6' y2='4'/%3E%3Cline x1='10' y1='1' x2='10' y2='4'/%3E%3Cline x1='14' y1='1' x2='14' y2='4'/%3E%3C/svg%3E") center/contain no-repeat;
  display: block;
}

.audience-card:nth-child(1) .card__icon::before {
  content: '';
  width: 24px; height: 24px;
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='7' width='20' height='14' rx='2' ry='2'/%3E%3Cpath d='M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16'/%3E%3C/svg%3E") center/contain no-repeat;
  display: block;
}

.audience-card:nth-child(2) .card__icon::before {
  content: '';
  width: 24px; height: 24px;
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 22V12'/%3E%3Cpath d='M5 12H2a10 10 0 0 0 20 0h-3'/%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3Cpath d='M12 12V8'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 22V12'/%3E%3Cpath d='M5 12H2a10 10 0 0 0 20 0h-3'/%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3Cpath d='M12 12V8'/%3E%3C/svg%3E") center/contain no-repeat;
  display: block;
}

.audience-card:nth-child(3) .card__icon::before {
  content: '';
  width: 24px; height: 24px;
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") center/contain no-repeat;
  display: block;
}

/* ── СЕКЦИЯ HERO — рамка-свечение внизу ── */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-accent) 30%,
    rgba(255,200,100,0.8) 50%,
    var(--color-accent) 70%,
    transparent 100%
  );
  z-index: 3;
}

/* ── НАВИГАЦИЯ — стеклянная обводка ── */
.site-header.scrolled {
  border-bottom: 1px solid rgba(232,114,58,0.12);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8),
    0 4px 24px rgba(0,0,0,0.06),
    0 1px 8px rgba(232,114,58,0.06);
}

/* ── БЛОК ОРГАНИЗАТОРА ── */
.organizer {
  background:
    linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
    linear-gradient(135deg,
      var(--color-accent) 0%,
      rgba(255,200,100,0.3) 50%,
      var(--color-accent) 100%
    ) border-box;
  border: 2px solid transparent;
  box-shadow:
    0 4px 24px rgba(232,114,58,0.12),
    0 1px 0 rgba(255,255,255,0.9) inset;
}

/* ── ПЕРЕНОС ИЗ CLAUDE DESIGN: ФОРМАТ, ОТЗЫВЫ, РАЗДЕЛИТЕЛИ ── */
.section-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, #E8713C44, transparent);
}

.format {
  background: #1C1410;
  color: #fff;
}

.format .section-heading h2,
.org-section .section-heading h2 {
  color: #fff;
}

.format .section-heading .eyebrow,
.org-section .section-heading .eyebrow {
  color: #E8713C;
}

.format-grid .card {
  background: #251810;
  border: 1.5px solid #E8713C55;
  border-radius: 14px;
  box-shadow: none;
  overflow: hidden;
}

.format-grid .card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 18px 42px rgba(0,0,0,0.26),
    0 0 0 1px rgba(232,113,60,0.25);
}

.format-grid .card::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent 58%);
  z-index: 1;
}

.format-grid .card::after {
  display: none;
}

.format-grid .card > * {
  position: relative;
  z-index: 2;
}

.format-card__num {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,0.06);
  pointer-events: none;
}

.format-grid .card h3 {
  color: #fff;
  padding-right: 3.5rem;
}

.format-grid .card p {
  color: #A08070;
}

.format-grid .card .card__icon {
  background: #E8713C22;
  border: 1.5px solid #E8713C44;
  box-shadow: none;
}

.format-grid .card .card__icon::before {
  background: #E8713C;
}

.format__speaker-cta {
  background: #E8713C1A;
  border: 1.5px solid #E8713C33;
  color: rgba(255,255,255,0.78);
}

.format__speaker-cta p {
  color: rgba(255,255,255,0.78);
}

.format__speaker-cta .button--outline {
  color: #fff;
  border-color: #E8713C;
  box-shadow: 4px 4px 0 rgba(232,113,60,0.28);
}

.org-section {
  background: #1C1410;
  color: #fff;
}

.org-section .organizer {
  background: #fff;
  border: 2px solid #E8713C;
  box-shadow: none;
}

.org-section .organizer__name {
  color: #1C1410;
}

.org-section .organizer__role {
  color: #E8713C;
}

.org-section .organizer__label {
  color: #7a6358;
}

.reviews-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.org-section .review-card {
  position: relative;
  display: block;
  min-height: 0;
  padding: 24px 22px;
  overflow: hidden;
  border: 1.5px solid;
  border-radius: 16px;
}

.org-section .review-card.v1 { background: #251810; border-color: #3a2820; }
.org-section .review-card.v2 { background: #E8713C; border-color: #E8713C; }
.org-section .review-card.v3 { background: #2a1e16; border-color: #3a2820; }
.org-section .review-card.v4 { background: #1e1510; border-color: #2e2018; }
.org-section .review-card.v5 { background: #2e1810; border-color: #E8713C33; }

.review-quote-mark {
  position: absolute;
  top: 6px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 900;
  line-height: 1;
  color: rgba(255,255,255,0.1);
  pointer-events: none;
}

.review-card.v2 .review-quote-mark {
  color: rgba(255,255,255,0.22);
}

.review-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 12px;
  color: #E8713C;
  font-size: 12px;
  line-height: 1;
}

.review-card.v2 .review-stars {
  color: rgba(255,255,255,0.92);
}

.review-text {
  max-width: none;
  margin: 0 0 18px;
  color: rgba(255,255,255,0.82);
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.65;
}

.review-card.v2 .review-text {
  color: rgba(255,255,255,0.95);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #E8713C33;
  color: #E8713C;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1;
}

.review-avatar--photo {
  display: block;
  object-fit: cover;
  object-position: center top;
  border: 1.5px solid #E8713C55;
}

.review-card.v2 .review-avatar {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

.review-card.v4 .review-avatar {
  background: #E8713C1A;
}

.review-name {
  max-width: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.25;
}

.review-role {
  max-width: none;
  margin-top: 1px;
  color: #E8713C;
  font-size: 0.76rem;
  line-height: 1.3;
}

.review-card.v2 .review-role {
  color: rgba(255,255,255,0.72);
}

.review-card.v4 .review-role {
  color: rgba(255,255,255,0.55);
}

@media (max-width: 960px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}
