/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #D82020;
  --red-hover: #B81818;
  --black: #111111;
  --gray-dark: #444444;
  --gray-mid: #888888;
  --gray-light: #F5F5F5;
  --white: #FFFFFF;
  --border: #E0E0E0;
  --tg: #229ED9;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HERO PHOTO BACKGROUND ===== */
.hero__photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.18;
  animation: photoPan 20s ease-in-out infinite alternate;
  transform-origin: center;
}

@keyframes photoPan {
  0%   { transform: scale(1.08) translateX(-2%) translateY(-1%); }
  100% { transform: scale(1.14) translateX(2%)  translateY(1%);  }
}

/* ===== HERO FLOATING ICONS ===== */
.hero__icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hicon {
  position: absolute;
  color: var(--red);
  opacity: 0;
  animation-fill-mode: forwards;
  filter: drop-shadow(0 0 12px rgba(216,32,32,0.5));
}

/* Размеры — крупнее */
.hicon--1 { width: 100px; height: 100px; }
.hicon--2 { width: 120px; height: 120px; }
.hicon--3 { width: 90px;  height: 90px;  }
.hicon--4 { width: 80px;  height: 80px;  }
.hicon--5 { width: 110px; height: 110px; }
.hicon--6 { width: 92px;  height: 92px;  }
.hicon--7 { width: 96px;  height: 96px;  }

/* Позиции */
.hicon--1 { top: 10%;  left: 5%;   animation: float1 9s  ease-in-out 0.3s infinite; }
.hicon--2 { top: 6%;   right: 6%;  animation: float2 11s ease-in-out 1.0s infinite; }
.hicon--3 { top: 52%;  left: 2%;   animation: float3 10s ease-in-out 0.7s infinite; }
.hicon--4 { top: 62%;  right: 4%;  animation: float1 8s  ease-in-out 2.0s infinite; }
.hicon--5 { top: 28%;  left: 7%;   animation: float2 12s ease-in-out 0.5s infinite; }
.hicon--6 { top: 72%;  left: 13%;  animation: float3 9s  ease-in-out 1.5s infinite; }
.hicon--7 { top: 38%;  right: 10%; animation: float1 13s ease-in-out 3.0s infinite; }

@keyframes float1 {
  0%   { opacity: 0;    transform: translateY(0px)   rotate(0deg);  }
  10%  { opacity: 0.45; }
  50%  { opacity: 0.6;  transform: translateY(-20px) rotate(5deg);  }
  90%  { opacity: 0.45; }
  100% { opacity: 0;    transform: translateY(0px)   rotate(0deg);  }
}

@keyframes float2 {
  0%   { opacity: 0;    transform: translateY(0px)   rotate(0deg);  }
  10%  { opacity: 0.5;  }
  40%  { opacity: 0.65; transform: translateY(-26px) rotate(-6deg); }
  70%  { opacity: 0.5;  transform: translateY(-12px) rotate(3deg);  }
  90%  { opacity: 0.4;  }
  100% { opacity: 0;    transform: translateY(0px)   rotate(0deg);  }
}

@keyframes float3 {
  0%   { opacity: 0;    transform: translateY(0px)   rotate(0deg);  }
  15%  { opacity: 0.48; }
  55%  { opacity: 0.62; transform: translateY(-16px) rotate(7deg);  }
  85%  { opacity: 0.44; }
  100% { opacity: 0;    transform: translateY(0px)   rotate(0deg);  }
}

/* ===== SECTION FLOATING ICONS ===== */
.section--with-icons {
  position: relative;
  overflow: hidden;
}
.sicons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.section--with-icons .container {
  position: relative;
  z-index: 1;
}
.sicon {
  position: absolute;
  color: var(--red);
  opacity: 0;
  animation-fill-mode: forwards;
  filter: drop-shadow(0 2px 8px rgba(216,32,32,0.15));
}

/* Размеры — чуть мельче чем в hero */
.sicon--1 { width: 72px;  height: 72px;  }
.sicon--2 { width: 88px;  height: 88px;  }
.sicon--3 { width: 66px;  height: 66px;  }
.sicon--4 { width: 60px;  height: 60px;  }
.sicon--5 { width: 70px;  height: 70px;  }
.sicon--6 { width: 68px;  height: 68px;  }

/* Позиции по углам — не перекрывают карточки */
.sicon--1 { top: 5%;   left: 3%;   animation: sfloat1 10s ease-in-out 0.5s infinite; }
.sicon--2 { top: 8%;   right: 4%;  animation: sfloat2 12s ease-in-out 1.2s infinite; }
.sicon--3 { top: 55%;  left: 1%;   animation: sfloat3 11s ease-in-out 0.8s infinite; }
.sicon--4 { bottom: 8%; right: 3%; animation: sfloat1 9s  ease-in-out 2.5s infinite; }
.sicon--5 { top: 30%;  right: 1%;  animation: sfloat2 13s ease-in-out 1.8s infinite; }
.sicon--6 { bottom: 5%; left: 6%;  animation: sfloat3 10s ease-in-out 3.0s infinite; }

@keyframes sfloat1 {
  0%   { opacity: 0;    transform: translateY(0px)   rotate(0deg);   }
  12%  { opacity: 0.12; }
  50%  { opacity: 0.18; transform: translateY(-18px) rotate(6deg);   }
  88%  { opacity: 0.12; }
  100% { opacity: 0;    transform: translateY(0px)   rotate(0deg);   }
}
@keyframes sfloat2 {
  0%   { opacity: 0;    transform: translateY(0px)   rotate(0deg);   }
  12%  { opacity: 0.14; }
  45%  { opacity: 0.20; transform: translateY(-22px) rotate(-5deg);  }
  72%  { opacity: 0.14; transform: translateY(-10px) rotate(3deg);   }
  88%  { opacity: 0.10; }
  100% { opacity: 0;    transform: translateY(0px)   rotate(0deg);   }
}
@keyframes sfloat3 {
  0%   { opacity: 0;    transform: translateY(0px)   rotate(0deg);   }
  15%  { opacity: 0.13; }
  55%  { opacity: 0.19; transform: translateY(-14px) rotate(8deg);   }
  85%  { opacity: 0.11; }
  100% { opacity: 0;    transform: translateY(0px)   rotate(0deg);   }
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}

.reveal-up    { transform: translateY(40px); }
.reveal-left  { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s var(--ease-out), box-shadow 0.2s;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
  text-decoration: none !important;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: scale(0.97) translateY(0); }

.btn--primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 4px 20px rgba(216,32,32,0.25);
}
.btn--primary:hover {
  background: var(--red-hover);
  border-color: var(--red-hover);
  box-shadow: 0 8px 28px rgba(216,32,32,0.35);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--secondary:hover { background: var(--white); color: var(--black); border-color: var(--white); }

.btn--outline {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn--outline:hover { background: var(--red); color: var(--white); box-shadow: 0 4px 16px rgba(216,32,32,0.25); }

.header__btn { color: var(--red); border-color: var(--red); }
.header__btn:hover { background: var(--red); color: var(--white); }

.btn--tg {
  background: var(--tg);
  color: var(--white);
  border-color: var(--tg);
  box-shadow: 0 4px 16px rgba(34,158,217,0.25);
}
.btn--tg:hover { background: #1a8bbf; border-color: #1a8bbf; box-shadow: 0 8px 24px rgba(34,158,217,0.35); }

.btn--large { padding: 16px 36px; font-size: 17px; }

/* ===== HEADER ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo { flex-shrink: 0; }
.logo__img { height: 30px; width: auto; display: block; }
.logo__text {
  font-size: 24px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -1px;
  transition: opacity 0.2s;
}
.logo__text:hover { opacity: 0.8; }
.logo__text--footer { font-size: 20px; }
.footer__logo { height: 28px; width: auto; max-width: 120px; display: block; margin-bottom: 12px; object-fit: contain; filter: brightness(0) invert(1); }

.header__contacts {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 14px;
  color: var(--gray-dark);
}
.header__contacts a { transition: color 0.2s; color: var(--gray-dark); }
.header__contacts a:hover { color: var(--red); text-decoration: none; }

/* ===== SECTION BASE ===== */
.section { padding: 80px 0; }
.section--gray { background: var(--gray-light); }

.section--dark { background: var(--black); color: var(--white); }

.section__title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.15;
}
.section__title--light { color: var(--white); }
.section__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--red); text-transform: uppercase; margin-bottom: 12px; }
.section__label--light { color: rgba(216,32,32,0.85); }
.section__sub { color: var(--gray-mid); margin-bottom: 36px; font-size: 15px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a0505 55%, #2a0808 100%);
  color: var(--white);
  padding: 80px 0 90px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(216,32,32,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(216,32,32,0.12) 0%, transparent 45%);
  pointer-events: none;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(216,32,32,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(216,32,32,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
  0%   { background-position: 0 0; }
  100% { background-position: 64px 64px; }
}

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

.hero__badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 10px 28px;
  border-radius: 30px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(216,32,32,0.4);
}

.hero__title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.accent {
  color: var(--red);
  position: relative;
  display: inline-block;
}

.hero__pretitle {
  font-size: 18px;
  color: #BBBBBB;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.hero__subtitle {
  font-size: 18px;
  color: #BBBBBB;
  margin-bottom: 40px;
}

/* ===== COUNTDOWN ===== */
.countdown {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 16px 28px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}

.countdown__num {
  font-size: 40px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
  transition: transform 0.15s var(--ease-out);
}

.countdown__num.tick {
  animation: numTick 0.2s var(--ease-out);
}

@keyframes numTick {
  0%   { transform: translateY(-6px); opacity: 0.6; }
  100% { transform: translateY(0);    opacity: 1; }
}

.countdown__label {
  font-size: 11px;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 6px;
  display: block;
}

.countdown__sep {
  font-size: 32px;
  font-weight: 900;
  color: var(--red);
  padding: 0 4px;
  padding-bottom: 18px;
  flex-shrink: 0;
  align-self: center;
  opacity: 0.8;
}

/* ===== HERO BOTTOM ROW (две колонки: спикеры | счётчик+кнопка) ===== */
.hero__bottom-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.hero__bottom-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* Анимированный значок под спикерами */
.hero__inline-icon {
  width: 72px;
  height: 72px;
  margin-left: calc(80px + 4cm);
  color: var(--red);
  filter: drop-shadow(0 0 12px rgba(216,32,32,0.5));
  animation: float2 11s ease-in-out 0.5s infinite;
}
.hero__bottom-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.hero__bottom-right .countdown {
  margin-bottom: 0;
}
.hero__bottom-right .hero__cta {
  margin-bottom: 0;
  width: 100%;
}

/* ===== HERO SPEAKER ===== */
.hero__speaker {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 16px 24px;
  margin-bottom: 28px;
  text-align: left;
  backdrop-filter: blur(8px);
  transition: background 0.3s, border-color 0.3s;
}
.hero__speaker:hover { background: rgba(255,255,255,0.1); border-color: rgba(216,32,32,0.4); }

.hero__speaker-avatars {
  display: flex;
  flex-direction: row;
  gap: 0;
  flex-shrink: 0;
}
.hero__avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--red);
  flex-shrink: 0;
}
.hero__avatar-img:not(:first-child) {
  margin-left: -10px;
}
.hero__speaker-avatars .speaker-avatar-placeholder:not(:first-child) {
  margin-left: -10px;
}

.speaker-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(216,32,32,0.5), rgba(216,32,32,0.25));
  border: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.hero__speaker-info { display: flex; flex-direction: column; gap: 2px; }
.hero__speaker-info strong { font-size: 15px; color: var(--white); }
.hero__speaker-info span  { font-size: 12px; color: #999; }
.hero__speaker-stat { color: var(--red) !important; font-weight: 600 !important; }

.hero__cta { margin-bottom: 0; }
.hero__seats { font-size: 13px; color: #f59e0b; letter-spacing: 0.3px; }

/* ===== FINES ===== */
.fines { background: linear-gradient(to bottom, #111111 0%, #3d3d3d 100%); color: var(--white); padding: 72px 0; }

.fines__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 48px;
}

.fines__pretitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 14px;
}

.fines__title { font-size: 32px; font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.fines__sub   { font-size: 14px; color: #888; line-height: 1.8; }

.fines__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.fines__card {
  background: #181818;
  border: 1px solid #2a2a2a;
  border-top: 3px solid var(--red);
  border-radius: 10px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.fines__card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 12px 32px rgba(216,32,32,0.15);
}

.fines__amount { display: flex; align-items: baseline; }
.fines__prefix { font-size: 12px; color: #666; }
.fines__sum    { font-size: 32px; font-weight: 900; color: var(--red); line-height: 1; }
.fines__currency { font-size: 28px; font-weight: 900; color: var(--red); }
.fines__desc   { font-size: 15px; color: #bbb; line-height: 1.65; }

.fines__cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #1f1f1f;
  padding-top: 36px;
  font-size: 15px;
  color: #888;
}

/* ===== CHECK LIST ===== */
.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.check-list li {
  border-left: 4px solid var(--red);
  padding: 28px 28px;
  border-radius: 0 12px 12px 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
  display: flex;
  align-items: center;
  min-height: 90px;
}
.check-list li:nth-child(1),
.check-list li:nth-child(4) { background: var(--white); }
.check-list li:nth-child(2),
.check-list li:nth-child(3) { background: #EFEFEF; }
.check-list li:hover { transform: translateX(4px); box-shadow: 0 4px 20px rgba(0,0,0,0.1); }

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  border-radius: 10px;
  padding: 30px 26px;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); }
.card__icon { width: 52px; height: 52px; background: rgba(216,32,32,0.07); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }

/* ===== SECTION PRETITLE ===== */
.section__pretitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 8px;
}

/* ===== SPEAKERS GRID (3 спикера) ===== */
.speakers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 44px;
}

.spk {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border: 1px solid var(--border);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.spk:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.spk__photo-wrap {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(160deg, #f0f0f0, #e0e0e0);
  position: relative;
}

.spk__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s var(--ease-out);
}
.spk:hover .spk__photo { transform: scale(1.04); }

.spk__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  background: linear-gradient(135deg, #c0392b, #8b0000);
  letter-spacing: 2px;
}

.spk__body {
  padding: 24px 22px 26px;
  border-top: 3px solid var(--red);
}

.spk__name {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.2;
}

.spk__title {
  font-size: 13px;
  color: var(--gray-mid);
  margin-bottom: 16px;
  line-height: 1.55;
}

.spk__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.spk__list li {
  font-size: 13px;
  color: var(--gray-dark);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.spk__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 11px;
  top: 2px;
}

@media (max-width: 900px) {
  .speakers__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .speakers__grid { grid-template-columns: 1fr; }
}

/* ===== SPEAKER SECTION (старый, оставлен для совместимости) ===== */
.speaker__inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}

.speaker__photo-col { display: flex; flex-direction: column; gap: 20px; }

.speaker__photo-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid var(--red);
  box-shadow: 0 16px 48px rgba(216,32,32,0.15);
  transition: box-shadow 0.3s;
}
.speaker__photo-wrap:hover { box-shadow: 0 20px 60px rgba(216,32,32,0.25); }
.speaker__photo-wrap img { width: 100%; display: block; }

.speaker__photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #e8e8e8 0%, #d4d4d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #999;
  text-align: center;
  line-height: 1.4;
}

.speaker__stats { display: flex; flex-direction: column; gap: 10px; }

.speaker__stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--gray-dark);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.speaker__stat:hover { transform: translateX(4px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.speaker__stat span {
  font-size: 22px;
  font-weight: 900;
  color: var(--red);
  display: block;
  line-height: 1.2;
}

.speaker__pretitle {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 10px;
}

.speaker__name { font-size: 40px; font-weight: 900; margin-bottom: 10px; line-height: 1.1; }

.speaker__title { font-size: 15px; color: var(--gray-dark); margin-bottom: 28px; line-height: 1.7; }

.speaker__list { list-style: none; display: flex; flex-direction: column; gap: 14px; }

.speaker__list li {
  padding-left: 22px;
  position: relative;
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-dark);
  transition: color 0.2s;
}
.speaker__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
  transition: transform 0.2s var(--ease-out);
}
.speaker__list li:hover { color: var(--black); }
.speaker__list li:hover::before { transform: translateX(3px); }

/* ===== AGENDA ===== */
.agenda { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }

.agenda li {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 24px 28px;
  border-radius: 10px;
  font-size: 16px;
  border-left: 3px solid transparent;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
/* Нечётные — светлые */
.agenda li:nth-child(odd) {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  color: #111;
}
/* Чётные — серые (цвет фона секции спикеров выше) */
.agenda li:nth-child(even) {
  background: var(--gray-light);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  color: #111;
}
.agenda li:hover {
  border-left-color: var(--red);
  transform: translateX(6px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

.agenda__num {
  font-size: 32px;
  font-weight: 900;
  color: var(--red);
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
  opacity: 0.35;
  transition: opacity 0.3s;
}
.agenda li:hover .agenda__num { opacity: 1; }

/* ===== BONUS ===== */
.bonus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
  margin-bottom: 48px;
}

.bonus-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 28px 28px 32px;
  transition: background 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bonus-card:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.18); }

.bonus-card--white {
  background: #ffffff;
  border-color: transparent;
}
.bonus-card--white:hover { background: #f5f5f5; }

.bonus-card--dark {
  background: #111111;
  border-color: var(--red);
  border-width: 1.5px;
}

.bonus-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bonus-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(216,32,32,0.10);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bonus-card__icon--dark {
  background: rgba(255,255,255,0.12);
}

.bonus-card__badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 20px;
}
.bonus-card__badge--red { background: var(--red); color: #fff; }
.bonus-card__badge--outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.35);
}

.bonus-card__text {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.65;
  color: rgba(255,255,255,0.90);
  margin: 0;
}
.bonus-card__text--dark { color: #111111; }

.bonus__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ===== FORM ===== */
/* ===== REGISTER LAYOUT ===== */
.register__layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}
.register__form-col .section__title,
.register__form-col .section__sub { text-align: left; }

.register__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== CERTIFICATE ANIMATION ===== */
.cert-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cert {
  position: relative;
  width: 300px;
  background: #fff;
  border: 2px solid #D82020;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(216,32,32,0.15), 0 4px 16px rgba(0,0,0,0.08);
  animation: certFloat 5s ease-in-out infinite;
  overflow: visible;
}
.cert::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(216,32,32,0.3);
  border-radius: 4px;
  pointer-events: none;
}

@keyframes certFloat {
  0%, 100% { transform: translateY(0px) rotate(-0.5deg); }
  50%       { transform: translateY(-12px) rotate(0.5deg); }
}

.cert__inner {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cert__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.cert__logo-line {
  width: 28px;
  height: 3px;
  background: #D82020;
  border-radius: 2px;
}
.cert__org {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #D82020;
}

.cert__label {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #111;
  margin: 0;
}
.cert__sublabel {
  font-size: 11px;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

.cert__name-line {
  width: 180px;
  height: 1px;
  background: #ddd;
  margin: 8px 0 2px;
}
.cert__name-hint {
  font-size: 15px;
  font-weight: 600;
  color: #ccc;
  margin: 0;
  letter-spacing: 0.5px;
}

.cert__topic {
  font-size: 11px;
  color: #555;
  text-align: center;
  line-height: 1.5;
  margin: 6px 0 4px;
  padding: 0 12px;
}

.cert__footer {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}
.cert__footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: #aaa;
  letter-spacing: 0.5px;
}
.cert__line-short {
  width: 60px;
  height: 1px;
  background: #ddd;
}

/* Печать — шлёпается с задержкой */
.cert__stamp {
  position: absolute;
  bottom: -18px;
  right: 20px;
  width: 72px;
  height: 72px;
  opacity: 0;
  transform: rotate(-15deg) scale(1.4);
  animation: stampDrop 0.35s cubic-bezier(0.22,1,0.36,1) 1.2s forwards,
             stampIdle 4s ease-in-out 2s infinite;
}
@keyframes stampDrop {
  0%   { opacity: 0; transform: rotate(-15deg) scale(1.4) translateY(-20px); }
  60%  { opacity: 1; transform: rotate(-12deg) scale(0.92); }
  80%  { transform: rotate(-13deg) scale(1.03); }
  100% { opacity: 1; transform: rotate(-13deg) scale(1); }
}
@keyframes stampIdle {
  0%, 100% { transform: rotate(-13deg) scale(1)    translateY(0px); }
  50%       { transform: rotate(-13deg) scale(1.03) translateY(-6px); }
}

.cert__caption {
  font-size: 13px;
  font-weight: 500;
  color: #999;
  text-align: center;
  line-height: 1.5;
}

.form {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.10);
  padding: 40px 44px;
  border: 1px solid var(--border);
}

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

.form__field { display: flex; flex-direction: column; gap: 8px; }

.form__field label { font-size: 14px; font-weight: 700; color: var(--black); letter-spacing: 0.2px; }

.form__field input {
  padding: 15px 18px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  background: #FAFAFA;
  color: var(--black);
}
.form__field input::placeholder { color: #aaa; }
.form__field input:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(216,32,32,0.08);
}

.required { color: var(--red); }
.optional  { color: var(--gray-mid); font-weight: 400; }

.form__consent { margin-bottom: 26px; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-dark);
}
.checkbox input[type="checkbox"] { display: none; }

.checkbox__mark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.checkbox input:checked + .checkbox__mark { background: var(--red); border-color: var(--red); }
.checkbox input:invalid + .checkbox__mark { border-color: var(--red); box-shadow: 0 0 0 3px rgba(216,32,32,0.15); }
.checkbox input:checked + .checkbox__mark::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 7px; height: 11px;
  border: 2px solid white;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}
.checkbox a { color: var(--red); }

.form__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.form__success {
  display: none;
  margin-top: 22px;
  background: #f0fff4;
  border: 1px solid #86efac;
  color: #166534;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 15px;
}
.form__success.visible { display: block; }

/* ===== FOOTER ===== */
.footer { background: #141414; color: #AAAAAA; font-size: 14px; }

.footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px;
  padding: 52px 20px 40px;
}

.footer__col { display: flex; flex-direction: column; gap: 9px; }

.footer__heading {
  color: var(--white);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.footer__col a { transition: color 0.2s; }
.footer__col a:hover { color: var(--white); text-decoration: none; }
.footer__requisites { line-height: 1.7; color: #666; font-size: 13px; }
.footer__socials { display: flex; flex-direction: column; gap: 7px; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s var(--ease-out), color 0.2s;
}
.social-link::before { content: '→'; color: var(--red); transition: transform 0.2s var(--ease-out); }
.social-link:hover::before { transform: translateX(3px); }
.social-link:hover { gap: 12px; }

.footer__bottom {
  border-top: 1px solid #222;
  padding: 18px 20px;
  font-size: 13px;
  color: #444;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .fines__inner { grid-template-columns: 1fr; gap: 32px; }
  .fines__cards { grid-template-columns: 1fr 1fr; }
  .speaker__inner { grid-template-columns: 1fr; }
  .speaker__photo-col { flex-direction: row; align-items: flex-start; }
  .speaker__photo-wrap { width: 160px; flex-shrink: 0; }
  .speaker__stats { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  .header__contacts { display: none; }
  .header__inner { gap: 12px; }
  .hero { padding: 52px 0 64px; }
  .countdown { padding: 14px 20px; }
  .countdown__num { font-size: 28px; }
  .countdown__item { min-width: 48px; }
  .form__row { grid-template-columns: 1fr; }
  .register__layout { grid-template-columns: 1fr; }
  .register__visual { display: none; }
  .fines__cards { grid-template-columns: 1fr; }
  .fines__cta-row { flex-direction: column; align-items: flex-start; }
  .bonus__actions, .form__actions { flex-direction: column; align-items: center; }
  .bonus__actions .btn, .form__actions .btn { width: 100%; max-width: 360px; }
  .bonus-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 52px 0; }
  .section__title { font-size: 26px; }
  .agenda li { flex-direction: column; gap: 8px; }
  .hero__bottom-row { flex-direction: column; gap: 16px; }
  .hero__bottom-left { align-items: center; width: 100%; }
  .hero__bottom-right { align-items: center; width: 100%; }
  .hero__speaker { flex-direction: column; border-radius: 16px; padding: 16px 20px; text-align: center; width: 100%; box-sizing: border-box; }
  .hero__bottom-right .countdown { justify-content: center; }

  /* Скрыть плавающие иконки на мобильном */
  .hero__icons { display: none; }
  .sicons { display: none; }

  /* Значок под спикерами — сбросить отступ и центрировать */
  .hero__inline-icon { margin-left: 0; }
  .hero__speaker-row { flex-direction: column; align-items: center; gap: 12px; }

  /* Чеклист — 1 колонка на мобильном */
  .check-list { grid-template-columns: 1fr; }
  .check-list li { font-size: 15px; padding: 16px 18px; }

  /* Бонусы — 1 колонка на мобильном */
  .bonus-grid { grid-template-columns: 1fr; }
  .check-list { max-width: 100%; }

  /* Форма — убрать лишние отступы */
  .form { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .btn--large { padding: 14px 24px; font-size: 16px; }
  .countdown { gap: 0; padding: 12px 14px; }
  .countdown__item { min-width: 38px; }
  .countdown__num { font-size: 22px; }
  .fines__sum, .fines__currency { font-size: 24px; }
  .speaker__name { font-size: 30px; }
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.modal__box {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  padding: 40px 40px 32px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  animation: modalIn 0.25s cubic-bezier(0.22,1,0.36,1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: var(--gray);
  padding: 4px 8px;
  transition: color 0.15s;
}
.modal__close:hover { color: var(--red); }

.modal__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 6px;
}

.modal__sub {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .modal__box { padding: 32px 20px 24px; }
  .modal__title { font-size: 20px; }
}
