:root {
  --bg: #f6ffe9;
  --ink: #101a12;
  --accent: #8adf4f;
  --accent-dark: #4f9e22;
  --accent-alt: #ffd54a;
  --accent-soft: #e7ffd0;
  --sand: #ffffff;
  --forest: #e9f6d6;
  --steel: #4a6a4e;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(43, 82, 42, 0.16);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #ffffff, var(--bg) 40%, #f4ffe1 100%);
  line-height: 1.7;
  letter-spacing: 0.1px;
  overflow-x: hidden;
}


html {
  scroll-behavior: smooth;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  letter-spacing: 0.3px;
}

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

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #b8f06a, var(--accent-alt));
  z-index: 20;
  box-shadow: 0 6px 16px rgba(138, 223, 79, 0.35);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.25'/></svg>");
  mix-blend-mode: multiply;
  z-index: 0;
}

.hero {
  position: relative;
  padding: 48px 6vw 15px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 70%;
  background: radial-gradient(circle, rgba(138, 223, 79, 0.25), transparent 65%);
  filter: blur(12px);
  z-index: 0;
  animation: pulse 8s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(255, 255, 255, 0.6), transparent 55%),
    url("images/Обложка.png") no-repeat right center / 42vw;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.hero__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.5;
  z-index: 0;
  animation: float 10s ease-in-out infinite;
}

.hero__orb--one {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 213, 74, 0.35), transparent 70%);
  top: 12%;
  right: 8%;
}

.hero__orb--two {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(138, 223, 79, 0.3), transparent 70%);
  bottom: 18%;
  right: 20%;
  animation-delay: -4s;
}

.hero__orb--three {
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 213, 74, 0.3), transparent 70%);
  top: 30%;
  left: 6%;
  animation-delay: -2s;
}

.nav {
  position: relative;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 48px;
}

.logo {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  color: var(--accent-dark);
}

.nav__links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--steel);
}

.nav__burger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(138, 223, 79, 0.35);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(231, 255, 208, 0.9));
  box-shadow: 0 12px 22px rgba(43, 82, 42, 0.12);
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
}

.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent-dark);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__burger::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  border: 2px solid rgba(255, 213, 74, 0.4);
  opacity: 0.6;
}

.nav.is-open .nav__burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav.is-open .nav__burger span:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav__burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav__links a {
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent-dark);
  transition: width 0.3s ease;
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__cta {
  box-shadow: 0 10px 26px rgba(255, 213, 74, 0.3);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.hero__mobile-image {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: none;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin-bottom: 16px;
}

.hero__subtitle {
  font-size: clamp(20px, 2.6vw, 28px);
  margin-bottom: 20px;
  color: var(--steel);
}

.hero__lead {
  font-size: 18px;
  background: rgba(255, 255, 255, 0.8);
  padding: 18px 22px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(138, 223, 79, 0.2);
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 28px 0;
}

.btn {
  background: #8bcf63;
  color: var(--white);
  border: none;
  min-height: 44px;
  padding: 14px 30px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.4s ease;
  box-shadow: 0 12px 28px rgba(100, 160, 70, 0.3);
  background-image: linear-gradient(90deg, #8bcf63 0%, #8bcf63 60%, #a7df7a 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
}

.btn:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 16px 34px rgba(100, 160, 70, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(16, 26, 18, 0.25);
  box-shadow: none;
  background-image: none;
  position: relative;
  overflow: hidden;
}

.btn--ghost::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  padding: 2px;
  background: conic-gradient(
    from 0deg,
    rgba(138, 223, 79, 0.9),
    rgba(255, 213, 74, 0.9),
    rgba(138, 223, 79, 0.9)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transform: rotate(0deg);
  transition: opacity 0.2s ease, transform 0.6s ease;
}

.btn--ghost:hover::before {
  opacity: 1;
  transform: rotate(180deg);
}

.btn--yellow {
  background: #f0d064;
  color: #2d2b12;
  background-image: linear-gradient(90deg, #f0d064 0%, #f0d064 60%, #ffe08a 100%);
  box-shadow: 0 12px 26px rgba(255, 213, 74, 0.35);
}

.btn--yellow:hover {
  box-shadow: 0 16px 32px rgba(255, 213, 74, 0.4);
}

@media (min-width: 1025px) {
  .btn {
    min-height: 52px;
    padding: 16px 36px;
    font-size: 16px;
  }

  .btn--ghost {
    border-width: 2px;
  }
}

.hero__meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--steel);
}

.marquee {
  margin-top: 26px;
  overflow: hidden;
  border-top: 1px solid rgba(16, 26, 18, 0.1);
  border-bottom: 1px solid rgba(16, 26, 18, 0.1);
  padding: 12px 0;
  display: flex;
  gap: 40px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  gap: 28px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--accent-dark);
  text-shadow: 0 0 6px rgba(138, 223, 79, 0.2);
  animation: marquee 22s linear infinite;
  white-space: nowrap;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.marquee__track span {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(138, 223, 79, 0.25);
}

.marquee__track--fast {
  animation-duration: 18s;
}

.marquee__track--slow {
  animation-duration: 28s;
  opacity: 0.75;
}

.marquee__track--reverse {
  animation-direction: reverse;
}

main {
  position: relative;
  z-index: 1;
  padding: 0 6vw 0;
}

.section {
  margin: 70px 0;
  padding: 0;
  position: relative;
}

.section:last-of-type {
  margin-bottom: 35px;
}

.section::after {
  content: none;
}

.section__header {
  margin-bottom: 24px;
}

.section__header h2 {
  position: relative;
  display: inline-block;
}

.section__header h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 8px;
  background: rgba(255, 213, 74, 0.35);
  border-radius: 20px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 1.2s ease forwards;
}

.section__content {
  font-size: 17px;
  position: relative;
  z-index: 1;
  color: var(--ink);
}

.section__content p,
.text-panel p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.text-panel {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  padding: 22px;
  border: 1px solid rgba(138, 223, 79, 0.15);
  box-shadow: var(--shadow);
}

.cards,
.word-grid,
.stat-grid,
.myths,
.insight-grid,
.boundary-grid,
.summary-grid {
  display: grid;
  gap: 20px;
  margin: 24px 0;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.experts {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.expert-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--sand);
  border-radius: 22px;
  padding: 18px;
  border: 1px solid rgba(138, 223, 79, 0.2);
  box-shadow: 0 14px 28px rgba(43, 82, 42, 0.12);
}

.expert-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(138, 223, 79, 0.25);
}

.card,
.word-card,
.myth,
.stat,
.insight-card,
.contrast-card,
.summary-card {
  background: var(--sand);
  border-radius: 22px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(138, 223, 79, 0.2);
}

.card:hover,
.word-card:hover,
.myth:hover,
.stat:hover,
.insight-card:hover,
.contrast-card:hover,
.summary-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(43, 82, 42, 0.18);
}

.section--myths .myth {
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.section--myths .myth:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(43, 82, 42, 0.16);
}

.myth-table {
  display: grid;
  gap: 14px;
}

.myth-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  position: relative;
}

.myth-cell {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(138, 223, 79, 0.2);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.7s ease;
  position: relative;
  overflow: hidden;
}

.myth-cell--left {
  transform: translateX(-24px);
}

.section--myths.is-visible .myth-cell {
  opacity: 1;
  transform: translateX(0);
}

.myth-cell h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.myth-cell p {
  color: var(--steel);
}

.myth-cell--left {
  background: linear-gradient(135deg, rgba(255, 213, 74, 0.1), rgba(255, 255, 255, 0.95));
}

.myth-cell--right {
  background: linear-gradient(135deg, rgba(138, 223, 79, 0.1), rgba(255, 255, 255, 0.95));
}

.section--myths.is-visible .myth-row:nth-child(1) .myth-cell {
  animation: waveIn 0.7s ease forwards;
}

.section--myths.is-visible .myth-row:nth-child(2) .myth-cell {
  animation: waveIn 0.7s ease 0.15s forwards;
}

.section--myths.is-visible .myth-row:nth-child(3) .myth-cell {
  animation: waveIn 0.7s ease 0.3s forwards;
}

.myth-cell::after {
  content: "";
  position: absolute;
  inset: auto -20% -50% -20%;
  height: 60%;
  background: linear-gradient(120deg, rgba(255, 213, 74, 0.18), transparent 70%);
  opacity: 0.6;
}

.section--myths.is-visible .myth-row:nth-child(1) .myth-cell {
  transition-delay: 0.05s;
}

.section--myths.is-visible .myth-row:nth-child(2) .myth-cell {
  transition-delay: 0.2s;
}

.section--myths.is-visible .myth-row:nth-child(3) .myth-cell {
  transition-delay: 0.35s;
}

.section--myths.is-visible .myth-row .myth-cell:nth-child(2) {
  transition-delay: 0.12s;
}

.word-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.word-grid--scroll {
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  grid-template-columns: unset;
}

.h-scroll {
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.h-scroll::-webkit-scrollbar {
  height: 8px;
}

.h-scroll::-webkit-scrollbar-thumb {
  background: rgba(138, 223, 79, 0.35);
  border-radius: 999px;
}

.word-card {
  scroll-snap-align: start;
}

.word-card h3 {
  margin-bottom: 10px;
}

.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat {
  background: linear-gradient(135deg, rgba(255, 213, 74, 0.12), rgba(138, 223, 79, 0.18));
  color: var(--ink);
  border-radius: 20px;
  border: 1px solid rgba(255, 213, 74, 0.35);
}

.stat span {
  font-size: 32px;
  font-weight: 700;
  display: block;
  color: var(--accent-dark);
}

.insight-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.insight-card__value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-dark);
}

.insight-card__bar {
  height: 6px;
  background: rgba(16, 26, 18, 0.08);
  border-radius: 999px;
  margin-top: 12px;
  overflow: hidden;
}

.insight-card__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent-alt));
  border-radius: 999px;
}

.pulse-line {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.pulse-line span {
  height: 6px;
  flex: 1;
  background: rgba(138, 223, 79, 0.2);
  border-radius: 999px;
  animation: pulseLine 2.4s ease-in-out infinite;
}

.pulse-line span:nth-child(2) { animation-delay: 0.2s; }
.pulse-line span:nth-child(3) { animation-delay: 0.4s; }
.pulse-line span:nth-child(4) { animation-delay: 0.6s; }
.pulse-line span:nth-child(5) { animation-delay: 0.8s; }

.stepper {
  display: grid;
  gap: 14px;
  margin: 20px 0 8px;
}

.stepper__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: start;
  gap: 12px;
  background: rgba(138, 223, 79, 0.08);
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(138, 223, 79, 0.25);
}

.stepper__item span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 213, 74, 0.35);
  color: #3f3a14;
  font-weight: 700;
}

.boundary-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contrast-card {
  background: linear-gradient(135deg, rgba(255, 213, 74, 0.16), rgba(255, 255, 255, 0.95));
}

.contrast-card--light {
  background: linear-gradient(135deg, rgba(138, 223, 79, 0.16), rgba(255, 255, 255, 0.95));
}

.contrast-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: var(--steel);
}

.contrast-card li::before {
  content: "•";
  color: var(--accent-dark);
  margin-right: 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tag-list span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 213, 74, 0.18);
  color: #5d540e;
  border: 1px solid rgba(255, 213, 74, 0.35);
}

.quote-card {
  margin: 18px 0 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(138, 223, 79, 0.12);
  border-left: 4px solid var(--accent-dark);
  color: var(--steel);
  font-style: italic;
}

.chat-image {
  width: 100%;
  max-width: 760px;
  height: auto;
  display: block;
  margin: 30px auto 30px auto;
  border-radius: 16px;
  box-shadow: var(--shadow);
  object-fit: contain;
}

.micro-steps {
  display: grid;
  gap: 10px;
}

.micro-steps div {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 213, 74, 0.18);
  padding: 10px 12px;
  border-radius: 12px;
}

.micro-steps span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(138, 223, 79, 0.3);
  color: #2f5f16;
  font-weight: 700;
}

.balance {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
}

.balance__core {
  font-size: 32px;
}

.balance__side {
  background: rgba(255, 213, 74, 0.18);
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 213, 74, 0.35);
}

.balance__side--accent {
  background: rgba(138, 223, 79, 0.18);
  border-color: rgba(138, 223, 79, 0.3);
}

.summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.summary-card {
  text-align: center;
  font-weight: 600;
  color: var(--accent-dark);
}

.timeline {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}

.timeline__item {
  border-left: 3px solid var(--accent);
  padding-left: 18px;
}

.section--test {
  background: none;
}

.test {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  border: 1px solid rgba(138, 223, 79, 0.2);
}

.test__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 16px 0 24px;
  align-items: stretch;
}

.test__grid label {
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--steel);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(138, 223, 79, 0.18);
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  box-shadow: 0 10px 18px rgba(43, 82, 42, 0.08);
}

.test__grid label:hover {
  transform: translateY(-2px);
  background: rgba(255, 213, 74, 0.2);
  color: var(--ink);
}

.test__result {
  margin-top: 16px;
  font-weight: 600;
  color: var(--accent-dark);
  min-height: 0;
}

.survey-pies {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pie-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(138, 223, 79, 0.2);
  box-shadow: 0 14px 28px rgba(43, 82, 42, 0.12);
}

.pie {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background:
    conic-gradient(var(--color) calc(var(--p) * 1%), rgba(16, 26, 18, 0.08) 0);
  display: grid;
  place-items: center;
  position: relative;
  --p: 0;
  transition: --p 1.2s ease;
}

.pie::after {
  content: "";
  position: absolute;
  inset: 10px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(138, 223, 79, 0.12);
}

.pie.is-animated {
  --p: var(--value);
}

.pie-card__value {
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 4px;
}

.section--media {
  background: none;
}

.media-grid {
  display: grid;
  gap: 18px;
  margin-top: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.media-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  padding: 18px;
  border: 1px solid rgba(138, 223, 79, 0.2);
  box-shadow: 0 12px 24px rgba(43, 82, 42, 0.1);
  display: grid;
  gap: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.media-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(43, 82, 42, 0.14);
}

.media-poster {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(138, 223, 79, 0.2);
}

.media-box {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  padding: 26px;
  border-radius: 24px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(138, 223, 79, 0.2);
}

.video-embed {
  margin-top: 16px;
  position: relative;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(138, 223, 79, 0.25);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.95);
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.media-box::after {
  content: "";
  position: absolute;
  inset: -40% auto auto -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 213, 74, 0.25), transparent 70%);
}

.section--final,
.section--feedback {
  background: none;
}

.form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.form__row {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--steel);
}

input,
textarea {
  border-radius: 16px;
  border: 1px solid rgba(138, 223, 79, 0.3);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-alt);
  box-shadow: 0 0 0 3px rgba(255, 213, 74, 0.2);
}

.form__note {
  font-size: 13px;
  color: var(--steel);
}

.footer {
  height: 100px;
  min-height: 100px;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000 !important;
  width: 100%;
  position: static;
  z-index: 5;
  transform: none;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 30;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 26, 18, 0.3);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  max-width: 420px;
  width: calc(100% - 32px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(138, 223, 79, 0.25);
  display: grid;
  gap: 12px;
}

.footer__tilda img {
  height: 80px;
  width: auto;
  display: block;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
}

.back-to-top.is-light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
}

.back-to-top.is-light::before {
  background: conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 213, 74, 0.9),
    rgba(255, 255, 255, 0.9)
  );
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

@property --p {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 0.9; }
}

@keyframes underline {
  to { transform: scaleX(1); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@keyframes pulseLine {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes waveIn {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav__links {
    flex-wrap: wrap;
  }

  .hero::after {
    background:
      radial-gradient(circle at 70% 35%, rgba(255, 255, 255, 0.6), transparent 55%),
      url("images/Обложка.png") no-repeat right center / 46vw;
  }
}

@media (max-width: 900px) {
  .hero__lead {
    font-size: 16px;
  }
}

@media (max-width: 700px) {
  .balance {
    grid-template-columns: 1fr;
  }

  .balance__core {
    justify-self: center;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 28px 6vw 56px;
  }

  .hero__actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .nav {
    position: relative;
  }

  .nav__burger {
    display: inline-flex;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100;
  }

  .nav__links {
    position: fixed;
    top: 64px;
    right: 16px;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(138, 223, 79, 0.2);
    box-shadow: 0 14px 28px rgba(43, 82, 42, 0.12);
    min-width: 200px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 90;
  }

  .nav.is-open .nav__links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav__links a {
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(138, 223, 79, 0.12);
  }

  .hero::after {
    display: none;
  }

  .hero__mobile-image {
    display: block;
    margin-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .marquee__track {
    animation: marquee 22s linear infinite !important;
  }
}
