/* БАЗОВЫЕ НАСТРОЙКИ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-main: #020617;
  --bg-elevated: rgba(15, 23, 42, 0.85);
  --glass-bg: rgba(15, 23, 42, 0.35);
  --glass-border: rgba(148, 163, 184, 0.4);
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.18);
  --accent-strong: #0ea5e9;
  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --text-strong: #f9fafb;
  --danger: #fb7185;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-strong: 0 18px 45px rgba(15, 23, 42, 0.75);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.6);
  --border-subtle: rgba(148, 163, 184, 0.35);
  --transition-fast: 0.18s ease-out;
  --transition-mid: 0.25s ease-out;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  background-image:
    linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(168, 85, 247, 0.08)),
    linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url('./fon.png');
  background-attachment: fixed, fixed, fixed;
  background-size: auto, auto, cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--text-main);
  min-height: 100vh;
}

/* КОНТЕЙНЕР СТРАНИЦЫ */

.page {
  min-height: 100vh;
  background-color: transparent;
  color: var(--text-main);
}

/* ОБЩИЙ ЛЕЙАУТ ДЛЯ СЕКЦИЙ */

.section {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 72px;
}

 /* Reveal animation for blocks across the site */
 .reveal {
   opacity: 0;
   transform: translateY(20px);
   transition: opacity 0.72s ease-out, transform 0.72s ease-out;
   will-change: opacity, transform;
 }
 .reveal.is-visible {
   opacity: 1;
   transform: translateY(0);
 }
.section-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin: 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--accent);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.4);
  width: fit-content;
}

.section-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
}

.section-subtitle {
  max-width: 640px;
  margin: 0 0 28px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ГРИДЫ */

.grid-2,
.grid-3 {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-media {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.case-media img {
  width: 45%;
  flex: 0 0 45%;
  border-radius: 12px;
  margin-bottom: 0;
}

.case-media-text {
  flex: 1;
  min-width: 0;
}

.faq-list {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

/* КАРТОЧКИ */

.card,
.mechanic {
  position: relative;
  padding: 20px 20px 18px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.author-photo {
  width: auto;
  height: 300px;
  max-width: 100%;
  display: block;
  border-radius: 22px;
  object-fit: cover;
  margin-bottom: 0;
  border: 4px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25), 0 0 30px rgba(255, 255, 255, 0.35);
}

.author-card-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.author-card-meta {
  flex: 1;
}

.author-role {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.author-card-name {
  font-size: 30px;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .author-card-name { font-size: 22px; white-space: normal; }
}

.handwritten-note {
  transform: rotate(-2.5deg);
  transform-origin: left top;
  padding: 4px 6px 4px 0;
  margin-top: 32px;
}

.handwritten-line {
  font-family: "Marck Script", cursive;
  margin: 0;
  color: #2be8e0;
  text-shadow: 0 0 8px rgba(43, 232, 224, 0.65), 0 0 18px rgba(43, 232, 224, 0.35);
}

.handwritten-break {
  display: none;
}

.handwritten-line--bold {
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.3;
}

.handwritten-line--small {
  font-weight: 400;
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.4;
  margin-top: 10px;
  color: #c3f8f4;
  text-shadow: 0 0 6px rgba(195, 248, 244, 0.5), 0 0 14px rgba(195, 248, 244, 0.25);
}

@media (max-width: 480px) {
  .handwritten-note {
    transform: rotate(-1.5deg);
    margin-top: 16px;
  }
}

.card h3,
.mechanic-title {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
}

@media (min-width: 721px) {
  .list {
    font-size: 16px;
  }
}

.list li + li {
  margin-top: 4px;
}

.faq-card details {
  background: transparent;
  border: none;
  padding: 0;
}

.faq-card details[open] {
  border: 1px solid var(--accent);
  box-shadow:
    0 0 20px rgba(56, 189, 248, 0.3),
    0 18px 36px rgba(8, 14, 30, 0.45);
  border-radius: 12px;
  padding: 0 20px;
}

.faq-card summary {
  list-style: none;
  cursor: pointer;
  margin: 0;
  padding-right: 36px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-strong);
  position: relative;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

.faq-card details[open] summary::after {
  content: "−";
}

.faq-card .faq-answer {
  margin: 14px 0 12px;
  color: var(--text-soft);
}

.faq-card details[open] .faq-answer {
  margin-bottom: 12px;
}

.faq-card details > summary {
  padding-bottom: 10px;
}

.faq-card details > summary:hover {
  color: #ffffff;
}

.faq-card details[open] > summary {
  color: #ffffff;
}

/* МЕХАНИКА/ШАГИ */

.mechanic-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.mechanic-label {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.mechanic-body {
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 8px;
}

.mechanic-footer {
  font-size: 13px;
  color: var(--text-soft);
}

/* КНОПКИ: матовое стекло и переливы (из эксперимента) */

.btn-primary,
.btn-ghost,
.btn-footer,
.btn-top {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.45) 0, rgba(255, 255, 255, 0.05) 45%, transparent 75%),
    linear-gradient(135deg, rgba(13, 30, 55, 0.96), rgba(10, 24, 46, 0.96));
  color: #e5f1ff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  backdrop-filter: blur(22px);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.btn-ghost {
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.35) 0, transparent 45%),
    linear-gradient(135deg, rgba(7, 18, 38, 0.96), rgba(6, 16, 32, 0.96));
  font-weight: 500;
}

.btn-footer {
  width: 100%;
  justify-content: flex-start;
  font-weight: 500;
  padding: 8px 15px;
  font-size: 13px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.38) 0, transparent 45%),
    linear-gradient(145deg, rgba(7, 19, 40, 0.96), rgba(6, 14, 30, 0.98));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.8);
}

.btn-primary::before,
.btn-ghost::before,
.btn-footer::before,
.btn-top::before {
  content: "";
  position: absolute;
  top: -140%;
  left: -140%;
  width: 280%;
  height: 280%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 46%,
    rgba(255, 255, 255, 0.8) 52%,
    rgba(255, 255, 255, 0.3) 58%,
    transparent 100%
  );
  opacity: 0;
  transform: translate3d(-30%, 30%, 0) rotate(10deg);
  transition:
    opacity 0.5s ease,
    transform 0.7s ease;
  pointer-events: none;
}
.btn-primary:hover::before,
.btn-ghost:hover::before,
.btn-footer:hover::before,
.btn-top:hover::before {
  opacity: 1;
  transform: translate3d(25%, -25%, 0) rotate(10deg);
}
.btn-primary:hover,
.btn-ghost:hover,
.btn-footer:hover,
.btn-top:hover {
  transform: translate3d(0, -2px, 6px) scale(1.01);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.95),
    0 0 16px rgba(43, 183, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.9);
}

.btn-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, #ffffff 0, #2bb7ff 55%, #0b1220 100%);
  box-shadow: 0 0 8px rgba(43, 183, 255, 0.9);
}

/* Плавающая стрелка вверх */
.btn-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
  z-index: 999;
  font-size: 20px;
  line-height: 1;
}

.btn-top svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: var(--accent);
  stroke-width: 6;
  color: var(--accent);
  filter: drop-shadow(0 6px 14px rgba(43,183,255,0.35));
}

/* ШАПКА */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.6));
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
}

.header-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-accent {
  position: absolute;
  left: -2px;
  top: 0;
  width: 4px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(to bottom, #22c55e, var(--accent-strong));
}

.header-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-avatar {
  position: relative;
  flex-shrink: 0;
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.25), 0 0 30px rgba(56, 189, 248, 0.35);
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.brand-avatar:hover {
  transform: scale(1.3);
  z-index: 5;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.45), 0 0 44px rgba(56, 189, 248, 0.6);
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid rgba(148, 163, 184, 0.35);
  padding-left: 18px;
}

.brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.tagline {
  font-size: 13px;
  color: var(--text-soft);
}

.author-line {
  font-size: 12px;
  color: var(--text-soft);
  opacity: 0.85;
}

.header-actions {
  display: flex;
  align-items: center;
}

/* HERO: матовый фон, световые переливы */

.hero {
  max-width: 1200px;
  border-radius: var(--radius-lg);
  padding: 26px 24px 40px;
  background: linear-gradient(135deg, rgba(4, 13, 31, 0.6), rgba(6, 20, 43, 0.6));
  color: #ffffff;
  box-shadow: 0 22px 60px rgba(1, 9, 26, 0.85);
  margin: 0 auto 32px;
  position: relative;
  overflow: visible;
  transform-style: preserve-3d;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.6), transparent 30%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.6), transparent 35%);
  transform: translateZ(0);
  z-index: 0;
  opacity: 0.6;
  filter: brightness(0.9);
}

.hero::after {
  border-radius: inherit;
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(circle at bottom left, rgba(43, 183, 255, 0.12), transparent 60%);
  pointer-events: none;
}

.hero:hover {
  transform: translate3d(0, -4px, 0);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 22px;
  align-items: stretch;
}

.hero-left,
.hero-right {
  grid-column: 1 / -1;
}

/* ГЛАВНЫЕ СТЕКЛЯННЫЕ БЛОКИ */

.glass-block {
  background: rgba(6, 12, 24, 0.82);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(94, 154, 255, 0.14);
  box-shadow:
    0 16px 36px rgba(8, 14, 30, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-left.glass-block {
  padding: 28px 26px 22px;
}

.hero-right .glass-block {
  padding: 22px 22px 18px;
}

/* ТЕКСТЫ В HERO */

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px 4px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.5);
  margin-bottom: 12px;
}

.hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent-strong), transparent 70%);
}

.hero-title {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}

.hero-subtitle {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}

.hero-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.hero-note {
  font-size: 12px;
  color: var(--text-soft);
  opacity: 0.9;
}

/* БЛОК МАРШРУТА */

.flight-card {
  position: relative;
}

.flight-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 6px;
}

.flight-title {
  font-size: 20px;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.flight-sub {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.flight-map {
  position: relative;
  height: 120px;
  margin-bottom: 10px;
}

.flight-path {
  position: absolute;
  inset: 0;
}

.flight-path path {
  fill: none;
  stroke: rgba(148, 163, 184, 0.6);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 6;
}

.flight-plane {
  position: absolute;
  width: 24px;
  height: 24px;
  top: 48px;
  left: 20px;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.7));
  animation: plane-move 6s ease-in-out infinite alternate;
}

.flight-footer {
  font-size: 12px;
  color: var(--text-soft);
}

/* Простой диаграммный блок вместо 3D-карточки */
.simple-diagram .diagram {
  padding: 6px 0 8px;
}
.simple-diagram .diagram-svg {
  width: 100%;
  height: 140px;
  display: block;
}

@media (max-width: 720px) {
  .diagram-svg {
    height: 110px;
  }
  .hero-title {
    font-size: 22px;
  }
}

/* Новая схема шагов */
.diagram-steps {
  display: flex;
  gap: 18px;
  align-items: stretch;
  position: relative;
  padding: 12px 6px;
}
.diagram-steps::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(148,163,184,0.12), rgba(148,163,184,0.22));
  z-index: 0;
}
.diagram-steps .step {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  background: linear-gradient(135deg, rgba(10,14,24,0.72), rgba(12,18,32,0.6));
  border: 1px solid rgba(148,163,184,0.12);
  padding: 14px 12px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.diagram-steps .step-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #081127;
  background: linear-gradient(135deg, #2bb7ff, #1d4ed8);
  box-shadow: 0 8px 20px rgba(29,78,216,0.24);
}
.diagram-steps .step-title {
  font-size: 15px;
  color: var(--text-strong);
  margin-bottom: 6px;
}
.diagram-steps .step-sub {
  font-size: 13px;
  color: var(--text-soft);
}

/* Стили для иконки у ghost-кнопки: повторить синий шарик */
.btn-ghost .btn-icon {
  background: radial-gradient(circle at 30% 30%, #ffffff 0, #2bb7ff 55%, #04243a 100%);
  box-shadow: 0 0 8px rgba(43, 183, 255, 0.6);
}

@media (max-width: 720px) {
  .diagram-steps { flex-direction: column; gap: 12px; }
  .diagram-steps::before { display: none; }
}

/* Прогресс-бар и micro-actions */
.progress-bar {
  padding: 10px 6px 6px;
}
.progress-track {
  position: relative;
  height: 14px;
  background: linear-gradient(90deg, rgba(148,163,184,0.06), rgba(148,163,184,0.03));
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: visible;
}

.progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, #2bb7ff, #1d4ed8);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(29,78,216,0.12);
}
.progress-fill { z-index: 10 }
.progress-point {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,#2bb7ff,#1d4ed8);
  color: #081127; font-weight: 700; box-shadow: 0 8px 18px rgba(29,78,216,0.2);
  border: 3px solid rgba(255,255,255,0.06);
  z-index: 40;
}
.progress-actions { display:flex; gap:10px; flex-wrap:wrap; justify-content:space-between }
.progress-actions .micro { background: rgba(255,255,255,0.03); padding:8px 10px; border-radius:999px; font-size:13px; color:var(--text-main); border:1px solid rgba(148,163,184,0.06); position:relative }
.micro-note { font-size:12px; color:var(--text-soft); margin-top:8px }

/* Tooltip for micro labels */
.progress-actions .micro::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6,12,24,0.96);
  color: var(--text-main);
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.12s ease;
  z-index: 60;
  box-shadow: 0 8px 22px rgba(2,6,20,0.6);
  border: 1px solid rgba(148,163,184,0.06);
}
.progress-actions .micro:hover::after { opacity: 1; transform: translateX(-50%) translateY(-4px); }

/* Interactive progress points */
.progress-point { transition: transform 0.18s ease, box-shadow 0.18s ease; cursor: default }
.progress-point:hover { transform: translateY(-6%) scale(1.06); box-shadow: 0 18px 40px rgba(29,78,216,0.28); z-index:50 }
.progress-point::after { content: attr(data-tooltip); position: absolute; top: calc(-100% - 10px); left: 50%; transform: translateX(-50%); background: rgba(6,12,24,0.96); color: var(--text-main); padding:6px 8px; border-radius:8px; font-size:12px; opacity:0; pointer-events:none; transition: opacity 0.12s ease; white-space: nowrap; z-index:60; border:1px solid rgba(148,163,184,0.06) }
.progress-point:hover::after { opacity:1 }

/* soft-niches page tweaks */
main.page { max-width:980px }

@media (max-width:720px){
  .progress-bar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    padding: 8px 4px 4px;
  }
  .progress-track {
    width: 14px;
    min-height: 260px;
    height: auto;
    background: linear-gradient(180deg, rgba(148,163,184,0.06), rgba(148,163,184,0.03));
    margin: 0;
    border-radius: 999px;
  }
  .progress-fill {
    width: 100% !important;
    height: 96% !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 0 !important;
    background: linear-gradient(180deg, #2bb7ff, #1d4ed8);
  }
  .progress-point {
    width: 28px;
    height: 28px;
    font-size: 11px;
    left: 50% !important;
    transform: translate(-50%, -50%);
  }
  .progress-point span { font-size: 11px; }
  /* .progress-fill – это тоже <span>, поэтому нумерация nth-of-type сдвинута на 1: точки идут 2-м...8-м span в .progress-track */
  .progress-point:nth-of-type(2) { top: 4%; }
  .progress-point:nth-of-type(3) { top: 20%; }
  .progress-point:nth-of-type(4) { top: 36%; }
  .progress-point:nth-of-type(5) { top: 52%; }
  .progress-point:nth-of-type(6) { top: 68%; }
  .progress-point:nth-of-type(7) { top: 84%; }
  .progress-point:nth-of-type(8) { top: 96%; }
  .progress-point::after {
    left: 175px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 9px;
    max-width: calc(100vw - 220px);
    white-space: normal;
    word-wrap: break-word;
    z-index: 80;
  }
  .progress-point:hover { transform: translate(-50%, -50%) scale(1.04); }
  .progress-actions {
    flex-direction: column;
    gap: 10px;
    justify-content: flex-start;
    font-size: 12px;
    max-width: 96px;
  }
  .progress-actions .micro {
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 700;
    width: 100%;
    text-align: left;
  }
  .progress-actions .micro::after {
    font-size: 11px;
    padding: 4px 6px;
    bottom: calc(100% + 8px);
    white-space: normal;
    max-width: 160px;
    word-wrap: break-word;
  }
  .micro-note { font-size: 11px; margin-top: 6px; }
}

/* АНИМАЦИЯ МАРКЕРА ПО МАРШРУТУ (упрощённая) */
@keyframes plane-move {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(80px, -18px) scale(1.02);
  }
  100% {
    transform: translate(150px, -40px) scale(1.04);
  }
}

/* FOMO‑БЛОК */

.fomo-note {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

/* ФУТЕР */

.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px 40px;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.footer-title {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.footer-caption {
  font-size: 14px;
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 0 18px;
}

.footer-buttons {
  display: grid;
  gap: 12px;
  width: min(420px, 100%);
  max-width: 420px;
  margin: 0 0 18px 0;
  justify-items: start;
}

.footer-form {
  margin-top: 18px;
}

.footer-form-frame {
  width: 100%;
  min-height: 560px;
  border: none;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  background: transparent;
}

.btn-footer-large {
  padding: 16px 24px;
  font-size: 15px;
  width: 100%;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 0 30px rgba(43, 183, 255, 0.3);
}

/* ТЕКСТЫ ВО ВТОРОЙ ПОЛОВИНЕ */

.footer-note {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 6px;
}

/* АДАПТИВ */

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    order: 0;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .section {
    padding: 60px 16px 54px;
  }

  .hero {
    padding: 68px 16px 54px;
  }

  .header-shell {
    padding: 8px 16px;
  }

  .brand {
    font-size: 16px;
  }

  .section-title {
    font-size: 26px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-left.glass-block,
  .hero-right .glass-block {
    padding: 20px 18px 18px;
  }

  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    display: none;
  }

  .case-media {
    flex-direction: column;
  }

  .case-media img {
    width: 100%;
    flex-basis: auto;
  }

  .author-line {
    display: none;
  }

  .author-card-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .author-card-meta {
    display: contents;
  }

  .author-card-name {
    order: 1;
  }

  .author-photo {
    order: 2;
    height: 180px;
    width: auto;
    flex-shrink: 0;
    margin: 4px 0 0;
  }

  .handwritten-note {
    order: 3;
    text-align: center;
    margin-top: 16px;
  }

  .handwritten-break {
    display: inline;
  }

  .btn-top {
    right: 14px;
    bottom: 18px;
  }
}
/* QUIZ (форма "Связаться с Яной") */

.quiz-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  max-width: 620px;
  margin: 0;
  backdrop-filter: blur(10px);
}

.quiz-progress {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.quiz-question {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  color: var(--text-strong);
  margin-bottom: 20px;
}

.quiz-input {
  width: 100%;
  font-family: var(--font-main);
  font-size: 16px;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
}

.quiz-input::placeholder { color: var(--text-soft); }

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text-main);
  font-size: 15px;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.quiz-option:hover { border-color: var(--accent); background: var(--accent-soft); }

.quiz-option input { accent-color: var(--accent); flex-shrink: 0; }

.quiz-bullets {
  list-style: none;
  color: var(--text-soft);
  font-size: 15px;
  margin: 0 0 12px;
  padding-left: 20px;
}

.quiz-bullets li { position: relative; margin-bottom: 6px; }
.quiz-bullets li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.quiz-note {
  color: var(--text-soft);
  font-size: 14px;
  margin-bottom: 20px;
}

.quiz-field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.quiz-field-row label {
  font-size: 14px;
  color: var(--text-soft);
  flex-shrink: 0;
  width: 180px;
}

.quiz-required { color: var(--accent); font-size: 12px; }

.quiz-input--inline { margin-bottom: 0; }

.quiz-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 8px;
}

.quiz-consent input { accent-color: var(--accent); flex-shrink: 0; margin-top: 3px; }

.quiz-status { margin-top: 16px; font-size: 14px; min-height: 20px; }
.quiz-status[data-state="error"] { color: var(--danger); }
.quiz-status[data-state="success"] { color: var(--accent); }

.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.quiz-nav .quiz-submit { margin-left: auto; }

@media (max-width: 600px) {
  .quiz-card { padding: 28px 24px; }
  .quiz-field-row { flex-direction: column; align-items: stretch; gap: 6px; }
  .quiz-field-row label { width: auto; }
}

.quiz-title {
  font-size: clamp(22px, 2.6vw, 28px);
  max-width: 720px;
  margin-bottom: 28px;
}

/* МОДАЛКА "СПАСИБО ЗА ОТВЕТЫ" */

.thank-you-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(6px);
  padding: 24px;
}

.thank-you-overlay[hidden] {
  display: none;
}

.thank-you-card {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  max-width: 480px;
  text-align: left;
  box-shadow: var(--shadow-strong);
}

.thank-you-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 16px;
}

.thank-you-card p { color: #dde4f2; font-size: 15px; margin-bottom: 16px; }

.thank-you-list {
  list-style: none;
  color: #dde4f2;
  font-size: 15px;
  margin: 0 0 16px;
  padding-left: 20px;
}

.thank-you-list li { position: relative; margin-bottom: 8px; }
.thank-you-list li::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.thank-you-card .btn-footer { margin-top: 8px; }
