:root {
  --bg: #f3f3f1;
  --ink: #0a0a0b;
  --muted: rgba(10, 10, 11, 0.62);
  --soft: rgba(255, 255, 255, 0.58);
  --glass: rgba(255, 255, 255, 0.22);
  --glass-strong: rgba(255, 255, 255, 0.46);
  --border: rgba(255, 255, 255, 0.54);
  --dark-glass: rgba(12, 12, 14, 0.44);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.16);
  --radius-xl: 38px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100svh;
}

body.menu-open,
body.ai-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.page-shell {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Clean Apple frosted glass (used for content cards, etc.) */
.glass-panel,
.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100% - 64px, 1220px);
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  transform: translateX(-50%);
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease,
    backdrop-filter 0.4s ease, padding 0.3s ease, width 0.3s ease, top 0.3s ease;
  isolation: isolate;

  /* Верх страницы: едва заметное стекло поверх hero */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
}

/* Liquid Glass (iOS 26): прозрачность + сильный блюр + бликовая кромка + глубина */
.site-header.is-scrolled {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.32) 100%
  );
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -1px 2px rgba(255, 255, 255, 0.4),
    inset 0 0 14px rgba(255, 255, 255, 0.14),
    0 10px 34px rgba(0, 0, 0, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(22px) saturate(190%) brightness(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(190%) brightness(1.08);
}

/* Бликовая кромка (specular rim) — тонкое светящееся ребро стекла */
.site-header.is-scrolled::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(
    130deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0) 28%,
    rgba(255, 255, 255, 0) 68%,
    rgba(255, 255, 255, 0.6) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.brand {
  color: #ffffff;
  font-family: "Unbounded", "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transition: color 0.3s ease, opacity 0.2s ease;
}

.site-header.is-scrolled .brand {
  color: #1d1d1f;
}

.desktop-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78); /* Start as light */
  font-size: 13px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.site-header.is-scrolled .desktop-nav {
  color: rgba(29, 29, 31, 0.72); /* Becomes dark on scroll */
}

.desktop-nav a,
.header-link {
  color: inherit;
  transition: color 0.3s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.header-link:hover {
  color: #ffffff;
  opacity: 1;
}

.site-header.is-scrolled .desktop-nav a:hover,
.site-header.is-scrolled .header-link:hover {
  color: #000000;
  opacity: 1;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.header-link {
  color: rgba(255, 255, 255, 0.78); /* Start light */
  font-size: 13px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.site-header.is-scrolled .header-link {
  color: rgba(29, 29, 31, 0.72); /* Scroll dark */
}

.menu-button {
  display: none;
  border: 0;
  color: #ffffff; /* Start light */
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  transition: color 0.3s ease;
}

.site-header.is-scrolled .menu-button {
  color: #1d1d1f; /* Scroll dark */
}

.mobile-menu {
  position: fixed;
  top: 82px;
  left: 22px;
  right: 22px;
  z-index: 49;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border-radius: 24px;
}

.mobile-menu a {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.24);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: scale(1.025);
}

.btn-small {
  min-height: 34px;
  padding: 0 16px;
  font-size: 12px;
}

.btn-dark {
  color: #ffffff;
  background: #111112;
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.15),
    0 8px 22px rgba(0, 0, 0, 0.32);
}

.btn-light {
  color: #000000;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.btn-light:hover {
  background: #f5f5f7;
}

.btn-glass {
  color: #ffffff;
  background: #1d1d1f;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.btn-glass:hover {
  background: #2c2c2e;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  margin: 0;
  padding-bottom: 56px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  isolation: isolate;
  background-color: #050505;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

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

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.04) 30%, rgba(0, 0, 0, 0.82) 100%),
    radial-gradient(circle at 50% 58%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.06) 52%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(760px, calc(100% - 44px));
  color: #fff;
  text-align: center;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.glass-pill {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  color: #000000;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 8px 0 0;
  font-size: clamp(68px, 12vw, 176px);
  line-height: 0.82;
  font-weight: 800;
  letter-spacing: -0.09em;
  text-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.hero-lead {
  margin: 22px 0 0;
  font-size: clamp(27px, 4.4vw, 60px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.055em;
}

.hero-meta {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

/* ── Editorial sections ── */

.section {
  width: min(100% - 48px, var(--max));
  margin: 140px auto 0;
}

#about {
  margin-top: 180px;
}

.editorial-heading {
  display: grid;
  grid-template-columns: 0.35fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(10, 10, 11, 0.12);
}

.section-kicker {
  color: rgba(10, 10, 11, 0.48);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

/* Сетка концепта с карточками снизу */
.concept-layout {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.concept-layout .editorial-lead {
  max-width: 820px;
}

.concept-widget-section {
  margin-top: 96px;
  margin-bottom: 96px;
}

.concept-widget-section + .section {
  margin-top: 0;
}

.concept-widget {
  position: relative;
  width: 100%;
  height: 580px;
  border-radius: 36px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 24px 70px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: flex-end;
  padding: 56px 48px;
  isolation: isolate;
  background-color: #0c0c0e;
}

.concept-widget-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: -2;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.concept-widget:hover .concept-widget-bg {
  transform: scale(1.03);
}

.concept-widget-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.75) 100%);
  z-index: -1;
}

.concept-widget-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  z-index: 2;
}

.widget-card {
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  border-radius: 0;
  transition: transform 0.3s ease;
}

.widget-card:hover {
  transform: translateY(-4px);
  background: transparent;
  border-color: transparent;
}

.widget-card h3 {
  margin: 0 0 10px;
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
}

.widget-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.editorial-lead p {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.editorial-side {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.editorial-media {
  aspect-ratio: 4 / 5;
}

.editorial-note h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(10, 10, 11, 0.5);
}

.editorial-note p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
}

/* ── App Store Event Card (Дата и площадка) ── */

.event-card {
  background: #08080a;
  border-radius: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 30px 80px rgba(0, 0, 0, 0.28);
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.event-card-media {
  position: relative;
  width: 100%;
  height: 480px;
  background: #000;
  overflow: hidden;
}

.event-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.event-media-placeholder {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, #2a2a32 0%, #08080a 75%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 0;
}

.event-media-placeholder .spotlight {
  position: absolute;
  top: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.event-media-placeholder .placeholder-text {
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.22);
  text-transform: uppercase;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.event-card-body {
  padding: 48px;
  background: #08080a;
}

.event-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.44);
  margin-bottom: 12px;
  display: block;
}

.event-title {
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #ffffff;
  margin: 0 0 18px;
}

.event-description {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 38px;
  max-width: 680px;
}

.event-card-divider {
  height: 1.5px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
  width: 100%;
}

.event-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.event-footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.event-footer-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #222226, #0e0e11);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.event-footer-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.event-footer-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.event-footer-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.2;
}

.event-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.event-card-btn:hover {
  transform: scale(1.035);
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ── Image slots ── */

.image-slot {
  width: min(100% - 48px, var(--max));
  margin: 100px auto 0;
}

.image-slot.full-width {
  width: min(100% - 48px, 1360px);
}

.image-slot.full-width .image-container {
  aspect-ratio: 21 / 9;
  min-height: 320px;
}

.image-slot.half-width {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.image-slot.half-width .image-container {
  aspect-ratio: 4 / 5;
}

.image-container {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.image-container:hover {
  transform: scale(1.015);
}

.slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f0f0f0;
  border-radius: 0;
  overflow: hidden;
}

.image-placeholder.square {
  aspect-ratio: 1 / 1;
}

.image-placeholder::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(10, 10, 11, 0.35);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── Dark section panel ── */

.section-dark {
  width: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 0;
  padding-top: clamp(56px, 8vw, 120px);
  padding-bottom: clamp(56px, 8vw, 120px);
  padding-left: max(24px, calc((100% - var(--max)) / 2));
  padding-right: max(24px, calc((100% - var(--max)) / 2));
}

.section-dark .editorial-heading {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.section-dark .section-kicker {
  color: rgba(255, 255, 255, 0.5);
}

.section-dark .timeline-row {
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.section-dark .timeline-row:first-child {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.section-dark .timeline-date {
  color: #fff;
}

.section-dark .timeline-row p {
  color: rgba(255, 255, 255, 0.62);
}

.section-dark .video-req-list li {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.section-dark .video-req-list li:first-child {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.section-dark .req-text {
  color: rgba(255, 255, 255, 0.9);
}

.section-dark .req-num {
  width: 44px;
  height: 44px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ── Timeline ── */

.timeline-list {
  display: flex;
  flex-direction: column;
}

.timeline-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid rgba(10, 10, 11, 0.1);
}

.timeline-row:first-child {
  border-top: 1px solid rgba(10, 10, 11, 0.1);
}

.timeline-date {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.timeline-row h3 {
  margin: 0 0 6px;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.timeline-row p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* ── Calendar Accent Card (iOS Style) ── */

.calendar-accent-card {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: 36px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 24px 70px rgba(0, 0, 0, 0.15);
  isolation: isolate;
  background-color: #0c0c0e;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.calendar-accent-card:hover {
  transform: scale(1.015);
}

.calendar-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  z-index: -2;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.calendar-accent-card:hover .calendar-card-bg {
  transform: scale(1.03);
}

.calendar-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.8) 100%);
  z-index: -1;
}

.calendar-card-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 48px;
  z-index: 2;
}

.calendar-card-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.widget-date-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.calendar-card-main h2 {
  margin: 14px 0 12px;
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1.1;
}

.calendar-card-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  max-width: 440px;
}

.calendar-card-feature {
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  border-radius: 0;
}

.feature-badge {
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.54);
  margin-bottom: 12px;
}

.calendar-card-feature h3 {
  margin: 0 0 10px;
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.25;
}

.calendar-card-feature p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

/* ── Steps ── */

.steps-list {
  display: flex;
  flex-direction: column;
}

.step-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid rgba(10, 10, 11, 0.1);
}

.step-row:first-child {
  border-top: 1px solid rgba(10, 10, 11, 0.1);
}

.step-num {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(10, 10, 11, 0.4);
}

.step-row h3 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.step-row p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

/* ── Clean list ── */

.clean-list {
  display: grid;
  gap: 14px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.clean-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
}

.clean-list li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0a0a0b;
}

/* ── Video requirements list ── */

.video-req-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.video-req-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(10, 10, 11, 0.08);
}

.video-req-list li:first-child {
  border-top: 1px solid rgba(10, 10, 11, 0.08);
}

.req-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.req-text {
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

/* ── Criteria grid ── */

.criteria-lead {
  margin: -8px 0 28px;
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.criteria-accordion {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(10, 10, 11, 0.12);
}

.criteria-item {
  border-bottom: 1px solid rgba(10, 10, 11, 0.12);
}

.criteria-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

.criteria-item summary::-webkit-details-marker {
  display: none;
}

.criteria-item h3 {
  margin: 0;
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.criteria-chevron {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: rgba(10, 10, 11, 0.5);
  transition: color 0.2s ease;
}

.criteria-chevron::before,
.criteria-chevron::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}

.criteria-chevron::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
}

.criteria-chevron::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.criteria-item[open] .criteria-chevron::after {
  opacity: 0;
  transform: translateX(-50%) rotate(90deg);
}

.criteria-item summary:hover .criteria-chevron {
  color: var(--ink);
}

.criteria-item > p {
  margin: 0;
  padding: 0 4px 24px;
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  animation: criteria-open 0.35s ease;
}

@keyframes criteria-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Placeholder block ── */

.placeholder-block {
  padding: 48px 32px;
  border: 1px dashed rgba(10, 10, 11, 0.2);
  text-align: center;
}

.placeholder-block p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

/* ── Категории ── */

.cat-lead {
  max-width: 720px;
  margin-bottom: 40px;
}

.cat-lead p {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
}

/* Полки категорий (App Store style shelves) */
.cat-shelf {
  margin-bottom: 44px;
}

.cat-shelf-head {
  margin-bottom: 20px;
}

.cat-group-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.cat-shelf-head h3 {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.cat-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: clamp(320px, 32vw, 440px);
  gap: 14px;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #1c1c1f 0%, #0a0a0b 100%);
  color: #fff;
  overflow: hidden;
  cursor: default;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.16);
}

.cat-card--wide {
  grid-column: span 2;
}

.cat-card--xwide {
  grid-column: span 3;
}

.cat-card--xwide img {
  object-position: center 35%;
}

.cat-bento--pair .cat-card:first-child img {
  object-position: right center;
}

.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.05) 0%, rgba(10, 10, 11, 0.55) 60%, rgba(10, 10, 11, 0.92) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cat-card:has(img)::after {
  opacity: 1;
}

.cat-card-num {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cat-card-pill {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cat-card-text {
  position: relative;
  z-index: 2;
}

.cat-card h4 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* Описание категории показываем только в текстовом списке на мобиле */
.cat-card-desc {
  display: none;
}

.cat-note {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.cat-new {
  margin-bottom: 32px;
}

.cat-new-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.cat-new-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 380px;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.cat-new-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.24);
}

.cat-new-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.cat-new-card.has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.15) 0%, rgba(10, 10, 11, 0.55) 55%, rgba(10, 10, 11, 0.9) 100%);
}

.cat-new-card.has-bg .cat-new-badge,
.cat-new-card.has-bg h3,
.cat-new-card.has-bg p {
  position: relative;
  z-index: 2;
}

.cat-new-badge {
  display: inline-flex;
  align-self: flex-start;
  width: auto;
  max-width: max-content;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0a0a0b;
  background: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.cat-new-card h3 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cat-new-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 34ch;
}

.cat-disclaimer {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 760px;
}

/* ── Взносы ── */

.fees-intro {
  max-width: 62ch;
  margin: -32px 0 48px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--muted);
}

.fees-wrap {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

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

/* Шаг с сеткой тарифов: описание сверху, карточки во всю ширину */
.pricing-step:has(.plans) {
  grid-template-columns: 1fr;
  gap: 28px;
}

.pricing-step:has(.plans) .pricing-step-head {
  max-width: 720px;
}

.pricing-step-num {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(10, 10, 11, 0.42);
}

.pricing-step-head h3 {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.pricing-step-head p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

/* Generic price card */
.price-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(10, 10, 11, 0.08);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.06);
}

.price-amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  font-variant-numeric: tabular-nums;
}

.price-old {
  font-size: 18px;
  font-weight: 600;
  color: rgba(10, 10, 11, 0.35);
  text-decoration: line-through;
}

.price-now {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

/* Step 1 accent card (light) */
.price-card-accent {
  gap: 4px;
}

.price-badge {
  align-self: flex-start;
  margin-bottom: 20px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.price-card-accent .price-amount {
  margin-top: 0;
}

.price-desc {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.price-card-cta {
  margin-top: 24px;
  align-self: flex-start;
}

/* Step 2: subscription-style plan columns (desktop) */
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border-radius: 22px;
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
}

.plan-top h4 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.plan-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-variant-numeric: tabular-nums;
}

.plan-amount {
  font-size: clamp(30px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.plan-per {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.plan-features {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-features li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px 11px;
  background-repeat: no-repeat;
  background-position: center;
}

.plan-cta {
  margin-top: auto;
  width: 100%;
}

/* Shared mobile CTA (hidden on desktop) */
.plans-cta {
  display: none;
  width: 100%;
  margin-top: 16px;
}

/* ── Организаторы ── */

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

.team-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.1);
}

.team-photo {
  position: relative;
  height: 360px;
  flex-shrink: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1d, #0a0a0b);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo::after {
  content: attr(data-label);
  position: absolute;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

.team-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.team-info {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 30px;
}

.team-info h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.team-role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.team-info p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.team-awards {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-awards li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.team-awards li::before {
  content: "★";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink);
}

/* ── Final CTA ── */

.final-cta {
  width: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px;
  background: #08080a;
  color: #fff;
  text-align: center;
  border-radius: 0;
  margin: 140px 0 0 0;
  isolation: isolate;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.final-cta-content {
  width: min(100%, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-cta .section-kicker {
  color: rgba(255, 255, 255, 0.5);
}

.final-cta h2 {
  max-width: 760px;
  margin: 12px 0 18px;
  font-family: "Unbounded", "Inter", sans-serif;
  font-size: clamp(36px, 6vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.final-cta p {
  max-width: 520px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1.5;
}

/* ── Footer ── */

.site-footer {
  width: 100%;
  background: #08080a;
  color: #ffffff;
  padding: 80px 0 32px;
  margin: 0;
  border-top: none;
}

.footer-container {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-brand .footer-logo {
  font-family: "Unbounded", "Inter", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  display: block;
}

.footer-brand p {
  margin: 12px 0 20px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 14px;
  line-height: 1.45;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.social-icon-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.social-icon-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.footer-col h4 {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.footer-col a {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-contact-info {
  margin: 0 0 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.5;
}

.footer-contact-info strong {
  color: #ffffff;
  font-size: 14px;
}

.footer-date {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-weight: 600;
}

.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: #ffffff;
}

.simple-page {
  padding-top: 108px;
}

.form-shell,
.rules-page {
  max-width: 920px;
  padding: 38px;
}

.form-shell h1,
.rules-page h1 {
  margin: 10px 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.form-shell > p,
.page-lead {
  max-width: 720px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.apply-form {
  display: grid;
  gap: 16px;
}

.apply-form label {
  display: grid;
  gap: 8px;
  color: rgba(10, 10, 11, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="url"],
.apply-form input[type="tel"],
.apply-form select {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  padding: 0 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
  font: inherit;
}

.apply-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  padding: 14px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
  font: inherit;
  resize: vertical;
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.field-opt {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
}

/* honeypot: скрыт от людей, доступен ботам */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  margin: 0;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.form-status--success {
  background: rgba(20, 130, 70, 0.12);
  color: #14713c;
}

.form-status--error {
  background: rgba(192, 57, 43, 0.1);
  color: #c0392b;
}

.checkbox-list {
  display: grid;
  gap: 10px;
  margin: 10px 0;
}

.checkbox-list label {
  display: block;
  position: relative;
  padding-left: 32px;
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}

.checkbox-list label input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ink);
  cursor: pointer;
}

.checkbox-list label a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rules-blocks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.rules-blocks article {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.35);
}

.rules-blocks h2 {
  margin: 0 0 10px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.rules-blocks p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

/* ── Inner pages ── */

body.inner-page {
  background: var(--bg);
}

body.inner-page .site-header {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.32) 100%
  );
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -1px 2px rgba(255, 255, 255, 0.4),
    inset 0 0 14px rgba(255, 255, 255, 0.14),
    0 10px 34px rgba(0, 0, 0, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(22px) saturate(190%) brightness(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(190%) brightness(1.08);
}

body.inner-page .site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(
    130deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0) 28%,
    rgba(255, 255, 255, 0) 68%,
    rgba(255, 255, 255, 0.6) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

body.inner-page .brand,
body.inner-page .desktop-nav,
body.inner-page .header-link,
body.inner-page .menu-button {
  color: #1d1d1f;
}

body.inner-page .desktop-nav {
  color: rgba(29, 29, 31, 0.72);
}

body.inner-page .desktop-nav a:hover,
body.inner-page .header-link:hover {
  color: #000000;
}

/* Стеклянная кнопка в шапке внутренних страниц (glass-on-glass, iOS-стиль) */
body.inner-page .header-actions .btn-dark {
  color: #1d1d1f;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(255, 255, 255, 0.34) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    inset 0 -1px 2px rgba(255, 255, 255, 0.35),
    0 6px 18px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(16px) saturate(190%) brightness(1.06);
  -webkit-backdrop-filter: blur(16px) saturate(190%) brightness(1.06);
}

body.inner-page .header-actions .btn-dark:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0.45) 100%
  );
}

.inner-hero {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
  padding: 132px 0 40px;
}

.inner-hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.doc-layout {
  width: min(100% - 48px, var(--max));
  margin: 0 auto 100px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.doc-toc {
  position: sticky;
  top: 110px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.doc-toc h2 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-toc a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid rgba(10, 10, 11, 0.08);
  transition: color 0.2s ease;
}

.doc-toc a:last-child {
  border-bottom: none;
}

.doc-toc a:hover {
  color: var(--ink);
}

.doc-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.doc-section {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.06);
  scroll-margin-top: 120px;
}

.doc-section > h2 {
  margin: 0 0 20px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.doc-section h3 {
  margin: 22px 0 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.doc-section h3:first-of-type {
  margin-top: 0;
}

.doc-section p,
.doc-section li {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  font-size: 16px;
}

.doc-section p + p,
.doc-section p + ul,
.doc-section ul + p {
  margin-top: 12px;
}

.doc-section ul {
  margin: 0;
  padding-left: 20px;
}

.doc-section li + li {
  margin-top: 8px;
}

.apply-layout {
  width: min(100% - 48px, var(--max));
  margin: 0 auto 100px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}

.apply-layout .form-shell {
  max-width: none;
  margin: 0;
}

.doc-section a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.apply-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.apply-info-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.06);
}

.apply-info-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.apply-info-card p,
.apply-info-card li {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.apply-info-card ul {
  margin: 0;
  padding-left: 18px;
}

.apply-info-card li + li {
  margin-top: 8px;
}

.apply-info-card .fee-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(10, 10, 11, 0.08);
  font-weight: 600;
  color: var(--ink);
}

.status-page {
  width: min(100% - 48px, var(--max));
  margin: 0 auto 100px;
}

.status-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 36px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.06);
}

.status-card h1 {
  margin: 10px 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.status-card p {
  margin: 0 auto 28px;
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.status-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-link {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .menu-button {
    display: inline-flex;
  }

  body.menu-open .mobile-menu {
    display: flex;
  }

  .editorial-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .pricing-step {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid .team-card:nth-child(3) {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .team-grid .team-card:nth-child(3) .team-photo {
    width: 42%;
    height: 360px;
    flex-shrink: 0;
  }
}

@media (max-width: 720px) {
  :root {
    --radius-xl: 30px;
    --radius-lg: 24px;
  }

  body {
    background: #ffffff;
  }

  /* Скрыть плейсхолдер "Фото / визуал правил" только на мобиле */
  .editorial-side:has(.image-placeholder) {
    display: none;
  }

  /* В чёрном блоке видеоотбора картинку поднять над списком */
  .section-dark .editorial-grid .editorial-side {
    order: -1;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .site-header {
    top: 14px;
    width: calc(100% - 28px);
    min-height: 56px;
    padding: 8px 8px 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
  }

  .site-header.is-scrolled {
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.58) 0%,
      rgba(255, 255, 255, 0.34) 100%
    );
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.95),
      inset 0 -1px 2px rgba(255, 255, 255, 0.4),
      inset 0 0 14px rgba(255, 255, 255, 0.14),
      0 14px 40px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(22px) saturate(190%) brightness(1.08);
    -webkit-backdrop-filter: blur(22px) saturate(190%) brightness(1.08);
  }

  .brand {
    color: #ffffff;
    font-size: 16px;
    letter-spacing: 0.11em;
  }

  .site-header.is-scrolled .brand {
    color: #1d1d1f;
  }

  .menu-button {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    width: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    gap: 5px;
    border-radius: 0;
    color: #ffffff;
    background: transparent;
    box-shadow: none;
  }

  .menu-button span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .menu-button span:nth-child(1) {
    width: 22px;
  }

  .menu-button span:nth-child(2) {
    width: 16px;
  }

  .menu-button span:nth-child(3) {
    width: 22px;
  }

  .site-header.is-scrolled .menu-button {
    color: #1d1d1f;
    background: transparent;
  }

  .header-actions .btn-small {
    display: none;
  }

  .mobile-menu {
    top: 82px;
    left: 14px;
    right: 14px;
  }

  .hero {
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: auto;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding-bottom: 34px;
    justify-content: flex-end;
  }

  .hero-media img {
    object-position: center top;
  }

  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.05) 42%, rgba(0, 0, 0, 0.94) 100%),
      radial-gradient(circle at 50% 40%, transparent 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0.48) 100%);
  }

  .hero-content {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    align-items: center;
    width: calc(100% - 28px);
    text-align: center;
  }

  .hero-pills {
    justify-content: flex-start;
    margin-bottom: 14px;
  }

  .glass-pill {
    min-height: 31px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: clamp(70px, 28vw, 116px);
  }

  .hero-lead {
    max-width: 330px;
    margin-top: 16px;
    font-size: clamp(36px, 11vw, 56px);
  }

  .hero-meta {
    max-width: 300px;
    margin-inline: auto;
    font-size: 15px;
    text-align: center;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    margin-top: 28px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    width: calc(100% - 28px);
    margin-top: 74px;
  }

  .section-dark {
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  #about {
    margin-top: 110px;
  }

  .section h2 {
    font-size: clamp(36px, 12vw, 54px);
  }

  .editorial-heading {
    gap: 12px;
    margin-bottom: 28px;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .concept-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .concept-card {
    padding: 24px;
  }

  /* Адаптивность для нового концепт-виджета */
  .concept-widget-section {
    margin-top: 64px;
    margin-bottom: 64px;
  }

  .concept-widget {
    height: auto;
    min-height: 480px;
    padding: 32px 24px;
    align-items: stretch;
    justify-content: flex-end;
  }

  .concept-widget-cards {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .widget-card {
    padding: 0;
  }

  /* Адаптивность для карточки App Store Event */
  .event-card {
    border-radius: 24px;
  }

  .event-card-media {
    height: 280px;
  }

  .event-card-body {
    padding: 28px 24px;
  }

  .event-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .event-footer-left {
    align-items: flex-start;
  }

  .event-card-btn {
    width: 100%;
    min-height: 42px;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .step-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .image-slot.half-width {
    grid-template-columns: 1fr;
  }

  /* Соло-категории — аккуратный текстовый список на мобиле (без картинок и скролла) */
  .cat-bento:not(.cat-bento--pair) {
    display: flex;
    flex-direction: column;
    grid-auto-rows: auto;
    gap: 0;
    width: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .cat-bento:not(.cat-bento--pair) .cat-card {
    grid-column: auto;
    flex: none;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 16px 2px;
    background: transparent;
    color: var(--ink);
    border-radius: 0;
    border-bottom: 1px solid rgba(10, 10, 11, 0.09);
    box-shadow: none;
    overflow: visible;
  }

  .cat-bento:not(.cat-bento--pair) .cat-card:last-child {
    border-bottom: 0;
  }

  .cat-bento:not(.cat-bento--pair) .cat-card > img,
  .cat-bento:not(.cat-bento--pair) .cat-card::after {
    display: none;
  }

  .cat-bento:not(.cat-bento--pair) .cat-card-num {
    position: static;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    background: var(--ink);
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #fff;
    font-size: 13px;
  }

  .cat-bento:not(.cat-bento--pair) .cat-card-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .cat-bento:not(.cat-bento--pair) .cat-card h4 {
    font-size: 17px;
  }

  .cat-bento:not(.cat-bento--pair) .cat-card-desc {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
  }

  /* Групповые — горизонтальная лента с заметным peek на мобиле */
  .cat-bento--pair {
    display: flex;
    grid-auto-rows: auto;
    gap: 14px;
    width: calc(100% + 28px);
    margin-left: -14px;
    margin-right: -14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 14px 6px;
  }

  .cat-bento--pair::-webkit-scrollbar {
    display: none;
  }

  .cat-bento--pair .cat-card,
  .cat-bento--pair .cat-card--wide {
    grid-column: auto;
    flex: 0 0 min(80vw, 300px);
    height: clamp(360px, 100vw, 460px);
    scroll-snap-align: start;
    padding: 20px 22px;
  }

  /* У дуэтов показываем правый край снимка */
  .cat-bento--pair .cat-card:first-child img {
    object-position: right center;
  }

  .cat-new {
    width: calc(100% + 28px);
    margin-left: -14px;
    margin-right: -14px;
  }

  .cat-new-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 14px 6px;
  }

  .cat-new-rail::-webkit-scrollbar {
    display: none;
  }

  .cat-new-card {
    flex: 0 0 min(86vw, 340px);
    scroll-snap-align: center;
    min-height: 420px;
    padding: 30px 26px;
    transform: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  }

  .cat-new-card:hover {
    transform: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  }

  .cat-new-card h3 {
    font-size: 32px;
  }

  .cat-new-card p {
    font-size: 16px;
    max-width: none;
  }

  .fees-intro {
    margin: -16px 0 36px;
  }

  .fees-wrap {
    gap: 44px;
  }

  .price-card {
    padding: 24px;
  }

  .price-card-cta {
    align-self: stretch;
  }

  /* Step 2 → iOS grouped list on mobile, кнопка на том же чёрном фоне */
  .plans-group {
    border-radius: 22px;
    overflow: hidden;
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
  }

  .plans {
    grid-template-columns: 1fr;
    gap: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    box-shadow: none;
  }

  .plan {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    box-shadow: none;
  }

  .plan:last-child {
    border-bottom: none;
  }

  .plan-price {
    margin: 0;
    padding: 0;
    border-bottom: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
    flex-shrink: 0;
  }

  .plan-amount {
    font-size: 22px;
  }

  .plan-features,
  .plan-cta {
    display: none;
  }

  .plans-cta {
    display: flex;
    width: auto;
    margin: 16px;
    min-height: 52px;
    border-radius: 999px;
    padding: 0 24px;
    background: #fff;
    color: var(--ink);
    font-weight: 700;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-grid .team-card:nth-child(3) {
    flex-direction: column;
  }

  .team-grid .team-card:nth-child(3) .team-photo {
    width: 100%;
    height: 360px;
  }

  /* Адаптивность для акцентного календаря */
  .calendar-accent-card {
    height: auto;
    min-height: 520px;
    padding: 32px 24px;
    margin-top: 32px;
  }

  .calendar-card-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0;
    align-items: stretch;
  }

  .calendar-card-feature {
    padding: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .site-footer {
    padding: 56px 0 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 48px;
  }

  .footer-legal {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }

  .final-cta {
    min-height: 420px;
    padding: 64px 20px;
    margin-top: 80px;
  }

  .simple-page {
    padding-top: 82px;
  }

  .form-shell,
  .rules-page {
    padding: 24px;
  }

  .rules-blocks {
    grid-template-columns: 1fr;
  }

  .inner-hero {
    width: calc(100% - 28px);
    padding-top: 100px;
    padding-bottom: 28px;
  }

  .doc-layout,
  .apply-layout,
  .status-page {
    width: calc(100% - 28px);
    margin-bottom: 64px;
  }

  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-toc {
    position: static;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 16px;
    scrollbar-width: none;
  }

  .doc-toc h2 {
    display: none;
  }

  .doc-toc a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid rgba(10, 10, 11, 0.1);
    border-radius: 999px;
    white-space: nowrap;
    font-size: 13px;
  }

  .apply-layout {
    grid-template-columns: 1fr;
  }

  .doc-section,
  .form-shell {
    padding: 24px;
  }

  .video-req-list li {
    padding: 16px 0;
    gap: 14px;
  }

  .req-text {
    font-size: 16px;
  }
}

/* ══ AI-консультант (визуальная заглушка) ══ */
.ai-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 22px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: #0a0a0b;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.24s ease;
}

.ai-fab:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.4);
}

.ai-fab svg {
  width: 22px;
  height: 22px;
}

.ai-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(10, 10, 11, 0.32);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
}

/* Атрибут hidden должен реально прятать слои (иначе перехватывают тапы) */
.ai-overlay[hidden],
.ai-panel[hidden] {
  display: none !important;
}

body.ai-open .ai-overlay {
  opacity: 1;
}

.ai-panel {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 44px));
  border-radius: 26px;
  overflow: hidden;
  background: rgba(20, 20, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  color: #fff;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom right;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.28s ease;
}

body.ai-open .ai-overlay,
body.ai-open .ai-panel {
  pointer-events: auto;
}

body.ai-open .ai-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-head-id {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.ai-avatar svg {
  width: 20px;
  height: 20px;
}

.ai-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ai-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.ai-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: ai-pulse 1.8s infinite;
}

@keyframes ai-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.ai-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ai-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.ai-close svg {
  width: 16px;
  height: 16px;
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
}

.ai-msg {
  max-width: 84%;
  padding: 12px 15px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  animation: ai-msg-in 0.25s ease;
}

@keyframes ai-msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ai-msg--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  border-bottom-left-radius: 6px;
}

.ai-msg--user {
  align-self: flex-end;
  background: #fff;
  color: #0a0a0b;
  font-weight: 500;
  border-bottom-right-radius: 6px;
}

.ai-typing {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.ai-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: ai-bounce 1.2s infinite;
}

.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ai-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.ai-suggests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 12px;
}

.ai-chip {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.ai-chip:hover {
  background: rgba(255, 255, 255, 0.12);
}

.ai-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-input input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 14px;
}

.ai-input input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.ai-input input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
}

.ai-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #0a0a0b;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.ai-send:hover {
  transform: scale(1.06);
}

.ai-send svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 560px) {
  .ai-fab {
    right: 16px;
    bottom: 16px;
    height: 52px;
  }

  .ai-panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 82vh;
    height: 82dvh;
    border-radius: 24px 24px 0 0;
    transform-origin: bottom center;
  }
}

/* ══ Reveal-анимации при скролле ══ */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .editorial-heading,
  .reveal-ready .fees-intro,
  .reveal-ready .price-card,
  .reveal-ready .plan,
  .reveal-ready .concept-card,
  .reveal-ready .timeline-row,
  .reveal-ready .video-req-list li,
  .reveal-ready .cat-card,
  .reveal-ready .criteria-item,
  .reveal-ready .team-card,
  .reveal-ready .calendar-accent-card,
  .reveal-ready .image-slot,
  .reveal-ready .final-cta-content > *,
  .reveal-ready .hero-content > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
      transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
  }

  .reveal-ready .is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ══ Мобильная стеклянная навигация (iOS tab bar) ══ */
.tabbar {
  display: none;
}

@media (max-width: 720px) {
  .tabbar {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 58;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    gap: 2px;
    padding: 8px 8px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.38) 0%,
      rgba(255, 255, 255, 0.24) 100%
    );
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.85),
      0 10px 30px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    /* Скрыт в стартовой позиции — появляется после hero */
    transform: translateY(calc(100% + 24px));
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
  }

  body.tabbar-shown .tabbar {
    transform: none;
    opacity: 1;
  }

  .tabbar::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(
      130deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(255, 255, 255, 0) 32%,
      rgba(255, 255, 255, 0) 68%,
      rgba(255, 255, 255, 0.4) 100%
    );
    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }

  .tab {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    padding: 4px 0 2px;
    border: 0;
    background: transparent;
    color: rgba(10, 10, 11, 0.5);
    font: inherit;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, transform 0.18s ease;
  }

  .tab svg {
    width: 23px;
    height: 23px;
  }

  .tab span {
    line-height: 1;
  }

  .tab.is-active {
    color: var(--ink);
  }

  .tab:active {
    transform: scale(0.9);
  }

  /* Навигация теперь в таб-баре — прячем бургер и AI-кнопку-пузырь */
  .menu-button {
    display: none !important;
  }

  .ai-fab {
    display: none !important;
  }

  /* Место под фиксированный таб-бар, чтобы контент футера не перекрывался */
  .site-footer {
    padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }
}

/* ══ Немного уменьшенная типографика на мобиле ══ */
@media (max-width: 720px) {
  .hero h1 {
    font-size: clamp(56px, 23vw, 100px);
  }

  .section h2 {
    font-size: clamp(26px, 7.4vw, 34px);
  }

  .final-cta h2 {
    font-size: 30px;
  }

  .inner-hero h1 {
    font-size: 32px;
  }

  .form-shell h1,
  .rules-page h1 {
    font-size: 34px;
  }

  .cat-new-card h3 {
    font-size: 23px;
  }

  .pricing-step-head h3 {
    font-size: 22px;
  }

  .editorial-lead,
  .page-lead {
    font-size: 15.5px;
  }

  .section-kicker {
    font-size: 11px;
  }
}
