/* ============================================================
   Посадочная /master-klass-shpagaty. Страница полностью изолирована:
   все классы начинаются с lp-shpagaty-.
   ============================================================ */

.lp-shpagaty {
  --lp-shpagaty-line: rgb(233 226 210 / 16%);
  --lp-shpagaty-muted: #b9aa8c;
  --lp-shpagaty-surface: rgb(42 48 27 / 48%);
  background:
    radial-gradient(circle at 12% 6%, rgb(200 168 90 / 12%), transparent 30rem),
    var(--color-olive-950);
  color: var(--color-bone-100);
  overflow: clip;
}

/* ---------- общие элементы страницы ---------- */

.lp-shpagaty-track {
  display: flex;
  flex-direction: column;
  gap: 14px;
  left: 28px;
  position: fixed;
  top: 50%;
  transform: translateY(-46%);
  z-index: 10;
}

.lp-shpagaty-track a {
  color: rgb(233 226 210 / 42%);
  font-size: .57rem;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--tr-fast), transform var(--tr-fast);
}

.lp-shpagaty-track a::before {
  background: currentColor;
  border-radius: 50%;
  content: '';
  display: inline-block;
  height: 5px;
  margin-right: 8px;
  vertical-align: middle;
  width: 5px;
}

.lp-shpagaty-track a:hover {
  color: var(--color-amber-400);
  transform: translateX(3px);
}

.lp-shpagaty-kicker, .lp-shpagaty-section-label {
  color: var(--color-amber-400);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.lp-shpagaty-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: .98;
  margin: 0 0 26px;
  text-transform: uppercase;
}

.lp-shpagaty-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 600;
  line-height: 1.06;
  margin: 0 0 22px;
  max-width: 20ch;
}

.lp-shpagaty-lead {
  color: var(--lp-shpagaty-muted);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.6;
  margin: 0 0 34px;
  max-width: 56ch;
}

.lp-shpagaty-text {
  color: var(--lp-shpagaty-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 38px;
  max-width: 74ch;
}

.lp-shpagaty-text--narrow {
  max-width: 62ch;
}

.lp-shpagaty-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-shpagaty-list li {
  border-left: 2px solid var(--color-amber-400);
  color: var(--lp-shpagaty-muted);
  line-height: 1.6;
  padding-left: 16px;
}

.lp-shpagaty-about,
.lp-shpagaty-benefits,
.lp-shpagaty-goals,
.lp-shpagaty-trainer,
.lp-shpagaty-episodes,
.lp-shpagaty-reviews,
.lp-shpagaty-difference,
.lp-shpagaty-why,
.lp-shpagaty-course,
.lp-shpagaty-cta {
  padding: clamp(72px, 9vw, 130px) max(10vw, 112px);
  position: relative;
}

/* ---------- первый экран ---------- */

.lp-shpagaty-hero {
  align-items: center;
  background: var(--color-olive-950);
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  padding: 170px max(10vw, 112px) 110px;
  position: relative;
}

/* Слой параллакса: картинка выше экрана на запас хода, сдвиг задаёт
   скрипт в Hero.astro через --lp-shpagaty-parallax */
.lp-shpagaty-hero-bg {
  background-image: var(--lp-shpagaty-hero-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  inset: -18% 0;
  position: absolute;
  transform: translate3d(0, var(--lp-shpagaty-parallax, 0px), 0);
  will-change: transform;
}

/* Затемнение поверх картинки: с фоном секции оно бы уехало вместе с ней */
.lp-shpagaty-hero-bg::after {
  background-image:
    linear-gradient(90deg, rgb(21 23 13 / 94%) 0%, rgb(21 23 13 / 74%) 38%, rgb(21 23 13 / 18%) 82%),
    linear-gradient(0deg, var(--color-olive-950) 0%, transparent 44%);
  content: '';
  inset: 0;
  position: absolute;
}

@media (prefers-reduced-motion: reduce) {
  .lp-shpagaty-hero-bg {
    transform: none;
  }
}

.lp-shpagaty-hero-inner {
  max-width: 660px;
  position: relative;
  z-index: 1;
}

.lp-shpagaty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.lp-shpagaty-hero-metrics {
  border-top: 1px solid var(--lp-shpagaty-line);
  bottom: 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  left: 0;
  padding: 22px max(10vw, 112px) 34px;
  position: absolute;
  right: 0;
  z-index: 1;
}

.lp-shpagaty-hero-metrics div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lp-shpagaty-hero-metrics strong {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
}

.lp-shpagaty-hero-metrics span {
  color: var(--lp-shpagaty-muted);
  font-size: .82rem;
}

/* ---------- о мастер-классе ---------- */

.lp-shpagaty-cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.lp-shpagaty-card {
  background: var(--lp-shpagaty-surface);
  border: 1px solid var(--lp-shpagaty-line);
  border-radius: var(--radius-m);
  padding: 28px;
  transition: border-color var(--tr-fast), transform var(--tr-fast);
}

.lp-shpagaty-card:hover {
  border-color: rgb(200 168 90 / 42%);
  transform: translateY(-3px);
}

.lp-shpagaty-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 12px;
}

.lp-shpagaty-card p {
  color: var(--lp-shpagaty-muted);
  line-height: 1.65;
  margin: 0;
}

/* ---------- три опоры ---------- */

.lp-shpagaty-benefits {
  background: rgb(30 35 20 / 55%);
  border-block: 1px solid var(--lp-shpagaty-line);
}

.lp-shpagaty-benefits-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.lp-shpagaty-benefit h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 12px;
}

.lp-shpagaty-benefit p {
  color: var(--lp-shpagaty-muted);
  line-height: 1.65;
  margin: 0;
}

.lp-shpagaty-benefit-num {
  color: var(--color-amber-400);
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  opacity: .55;
}

/* ---------- видео ---------- */

.lp-shpagaty-video {
  aspect-ratio: 16 / 9;
  background: #11130a;
  border: 1px solid var(--lp-shpagaty-line);
  border-radius: var(--radius-m);
  cursor: pointer;
  margin: 0 0 46px;
  overflow: hidden;
  position: relative;
}

.lp-shpagaty-video img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--tr-base), transform var(--tr-base);
  width: 100%;
}

.lp-shpagaty-video iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.lp-shpagaty-video:hover img {
  opacity: .8;
  transform: scale(1.02);
}

.lp-shpagaty-video-play {
  align-items: center;
  background: rgb(200 168 90 / 92%);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  height: 76px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: background var(--tr-fast), transform var(--tr-fast);
  width: 76px;
}

.lp-shpagaty-video:hover .lp-shpagaty-video-play {
  background: var(--color-amber-400);
  transform: translate(-50%, -50%) scale(1.07);
}

.lp-shpagaty-video-play-icon {
  border-bottom: 11px solid transparent;
  border-left: 19px solid var(--color-olive-900);
  border-top: 11px solid transparent;
  display: block;
  margin-left: 5px;
}

.lp-shpagaty-video-title {
  background: linear-gradient(0deg, rgb(21 23 13 / 88%), transparent);
  bottom: 0;
  color: var(--color-bone-100);
  font-size: .9rem;
  left: 0;
  padding: 34px 20px 16px;
  position: absolute;
  right: 0;
}

/* ---------- цели ---------- */

.lp-shpagaty-goals-body {
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

.lp-shpagaty-goals-text p {
  color: var(--lp-shpagaty-muted);
  line-height: 1.7;
  margin: 0 0 18px;
}

.lp-shpagaty-goals-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 30px 0 16px;
}

.lp-shpagaty-goals-figure {
  margin: 0;
}

.lp-shpagaty-goals-figure img {
  border-radius: var(--radius-m);
  display: block;
  height: auto;
  width: 100%;
}

.lp-shpagaty-goals-figure figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 14px;
}

.lp-shpagaty-goals-figure strong {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
}

.lp-shpagaty-goals-figure span {
  color: var(--lp-shpagaty-muted);
  font-size: .88rem;
}

/* ---------- преподаватель ---------- */

.lp-shpagaty-trainer {
  background: rgb(30 35 20 / 55%);
  border-block: 1px solid var(--lp-shpagaty-line);
}

.lp-shpagaty-trainer-top {
  align-items: start;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  margin-bottom: 44px;
}

.lp-shpagaty-trainer-photo {
  margin: 0;
}

.lp-shpagaty-trainer-photo img {
  border-radius: var(--radius-m);
  display: block;
  height: auto;
  width: 100%;
}

.lp-shpagaty-quote {
  border-left: 2px solid var(--color-amber-400);
  margin: 0 0 34px;
  max-width: 82ch;
  padding-left: 26px;
}

.lp-shpagaty-quote p {
  color: var(--color-bone-100);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 16px;
}

.lp-shpagaty-bio {
  border-top: 1px solid var(--lp-shpagaty-line);
  margin-bottom: 44px;
  padding-top: 20px;
}

.lp-shpagaty-bio summary {
  color: var(--color-amber-400);
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lp-shpagaty-bio-body {
  padding-top: 20px;
}

.lp-shpagaty-bio-body p {
  color: var(--lp-shpagaty-muted);
  line-height: 1.7;
  margin: 0 0 16px;
  max-width: 82ch;
}

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

.lp-shpagaty-gallery img {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-s);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

/* ---------- эпизоды ---------- */

.lp-shpagaty-days {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.lp-shpagaty-day {
  background: var(--lp-shpagaty-surface);
  border: 1px solid var(--lp-shpagaty-line);
  border-radius: var(--radius-m);
  padding: 28px;
}

.lp-shpagaty-day h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 10px;
}

.lp-shpagaty-day p {
  color: var(--lp-shpagaty-muted);
  line-height: 1.65;
  margin: 0;
}

.lp-shpagaty-day-num {
  color: var(--color-amber-400);
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* ---------- отзывы ---------- */

.lp-shpagaty-reviews-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.lp-shpagaty-reviews-grid .lp-shpagaty-video {
  margin: 0;
}

/* ---------- отличия ---------- */

.lp-shpagaty-difference {
  background: rgb(30 35 20 / 55%);
  border-block: 1px solid var(--lp-shpagaty-line);
}

.lp-shpagaty-points {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.lp-shpagaty-point {
  border-top: 2px solid var(--color-amber-400);
  padding-top: 18px;
}

.lp-shpagaty-point h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 10px;
}

.lp-shpagaty-point p {
  color: var(--lp-shpagaty-muted);
  line-height: 1.65;
  margin: 0;
}

.lp-shpagaty-note {
  border-left: 2px solid var(--color-amber-400);
  color: var(--color-bone-100);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 44px 0 0;
  max-width: 68ch;
  padding-left: 22px;
}

/* ---------- зачем шпагаты ---------- */

.lp-shpagaty-why-list {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.lp-shpagaty-why-item {
  background: var(--lp-shpagaty-surface);
  border: 1px solid var(--lp-shpagaty-line);
  border-radius: var(--radius-m);
  padding: 30px;
}

.lp-shpagaty-why-item h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 14px;
}

.lp-shpagaty-why-item p {
  color: var(--lp-shpagaty-muted);
  line-height: 1.7;
  margin: 0 0 14px;
}

.lp-shpagaty-why-item p:last-child {
  margin-bottom: 0;
}

/* ---------- что входит ---------- */

.lp-shpagaty-course-card {
  background: var(--lp-shpagaty-surface);
  border: 1px solid rgb(200 168 90 / 32%);
  border-radius: var(--radius-l);
  padding: clamp(28px, 4vw, 46px);
}

.lp-shpagaty-course-list {
  display: grid;
  gap: 18px;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.lp-shpagaty-course-list li {
  border-bottom: 1px solid var(--lp-shpagaty-line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
  padding-bottom: 16px;
}

.lp-shpagaty-course-list strong {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.lp-shpagaty-course-list span {
  color: var(--lp-shpagaty-muted);
  max-width: 46ch;
}

.lp-shpagaty-course-btn {
  width: 100%;
}

/* ---------- финальный блок ---------- */

.lp-shpagaty-cta {
  border-top: 1px solid var(--lp-shpagaty-line);
  text-align: center;
}

.lp-shpagaty-cta .lp-shpagaty-subtitle {
  margin-inline: auto;
  max-width: 24ch;
}

.lp-shpagaty-cta .lp-shpagaty-text {
  margin-inline: auto;
}

.lp-shpagaty-cta-btn {
  margin-bottom: 34px;
}

.lp-shpagaty-guarantee {
  color: var(--lp-shpagaty-muted);
  font-size: .95rem;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 62ch;
}

.lp-shpagaty-guarantee strong {
  color: var(--color-bone-100);
}

/* ---------- форма в модалке ---------- */

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

.lp-shpagaty-form-text {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.lp-shpagaty-field {
  display: grid;
  gap: 6px;
}

.lp-shpagaty-field span {
  color: var(--text-secondary);
  font-size: .82rem;
  letter-spacing: .04em;
}

.lp-shpagaty-field input, .lp-shpagaty-field textarea {
  background: var(--surface-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-s);
  color: var(--text-primary);
  font: inherit;
  padding: 11px 14px;
  transition: border-color var(--tr-fast);
  width: 100%;
}

.lp-shpagaty-field input:focus, .lp-shpagaty-field textarea:focus {
  border-color: var(--accent-primary);
  outline: none;
}

.lp-shpagaty-field textarea {
  resize: vertical;
}

.lp-shpagaty-form-btn {
  justify-self: start;
}

/* ---------- адаптив ---------- */

@media (max-width: 1100px) {
  .lp-shpagaty-track {
    display: none;
  }

  .lp-shpagaty-goals-body, .lp-shpagaty-trainer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-shpagaty-hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .lp-shpagaty-about,
  .lp-shpagaty-benefits,
  .lp-shpagaty-goals,
  .lp-shpagaty-trainer,
  .lp-shpagaty-episodes,
  .lp-shpagaty-reviews,
  .lp-shpagaty-difference,
  .lp-shpagaty-why,
  .lp-shpagaty-course,
  .lp-shpagaty-cta {
    padding-inline: 20px;
  }

  .lp-shpagaty-hero {
    padding: 130px 20px 220px;
  }

  .lp-shpagaty-hero-metrics {
    padding-inline: 20px;
  }

  .lp-shpagaty-actions .btn {
    width: 100%;
  }

  .lp-shpagaty-video-play {
    height: 58px;
    width: 58px;
  }
}
