:root {
  --bg: #f3f0ea;
  --surface: #fbfaf7;
  --surface-2: #f1eee8;
  --ink: #101010;
  --muted: #4f4943;
  --accent: #c40010;
  --dark: #0b0b0c;
  --line: rgba(16, 16, 16, 0.08);
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --shadow: 0 24px 70px rgba(16, 16, 16, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Avenir Next Cyr", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(196, 0, 16, 0.1), transparent 18%),
    linear-gradient(180deg, #f8f6f1 0%, #efebe4 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(16, 16, 16, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 16, 16, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  content: "";
  opacity: 0.35;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent);
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

.layout {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.hero,
.section,
.pricing {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(251, 250, 247, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 360px;
  min-height: 740px;
}

.hero__main {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 48px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.66)),
    linear-gradient(90deg, transparent 0, transparent calc(50% - 0.5px), rgba(16, 16, 16, 0.06) calc(50% - 0.5px), rgba(16, 16, 16, 0.06) 50%, transparent 50%);
}

.hero__side {
  display: grid;
  grid-template-rows: auto 1fr;
}

.hero__price,
.hero__list {
  padding: 32px;
}

.hero__price {
  background: var(--dark);
  color: #f4efe6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.hero__price::after {
  position: absolute;
  right: -48px;
  top: -48px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(196, 0, 16, 0.9);
  filter: blur(12px);
  content: "";
  opacity: 0.9;
}

.eyebrow,
.section-kicker,
.hero__list-title,
.hero__price-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker,
.hero__list-title {
  color: var(--accent);
}

.hero__price-label {
  color: rgba(244, 239, 230, 0.64);
  position: relative;
  z-index: 1;
}

.hero h1,
.section h2,
.pricing h2,
.feature-card h3 {
  font-family: "Avenir Next Condensed", "Helvetica Neue Condensed Black",
    "Arial Narrow Bold", "Avenir Next", sans-serif;
  letter-spacing: -0.05em;
}

.hero h1 {
  margin: 24px 0 0;
  max-width: 760px;
  line-height: 0.88;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.hero__title {
  display: grid;
  gap: 0;
  align-content: start;
}

.hero__title-main {
  display: block;
  max-width: 7ch;
  font-size: clamp(4.8rem, 10vw, 8.8rem);
  line-height: 0.84;
}

.hero__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.hero__metric {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
}

.hero__metric--accent {
  background: var(--accent);
  border-color: transparent;
  color: #fff5f2;
}

.hero__metric-number,
.hero__metric-label {
  display: block;
  line-height: 1;
}

.hero__metric-number {
  font-family: "Avenir Next", "Avenir Next Cyr", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: clamp(2.5rem, 3.7vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero__metric-label {
  font-family: "Avenir Next", "Avenir Next Cyr", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: none;
}

.hero__lead {
  max-width: 620px;
  margin: 14px 0 0;
  font-size: 1.14rem;
  line-height: 1.65;
  color: var(--muted);
}

.hero__subscription {
  display: block;
  max-width: 640px;
  margin-top: 22px;
}

.hero-cta {
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.hero-cta__button {
  min-height: 58px;
  width: fit-content;
  min-width: 240px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff6f3;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: 0 16px 36px rgba(196, 0, 16, 0.18);
}

.hero-cta__button:hover {
  background: #a8000d;
}

.hero__price strong {
  display: block;
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  line-height: 0.96;
  position: relative;
  z-index: 1;
}

.hero__price p {
  margin: 12px 0 0;
  color: rgba(244, 239, 230, 0.72);
  font-size: 1rem;
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

.price-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.price-stack__old {
  display: inline-block;
  width: fit-content;
  color: rgba(244, 239, 230, 0.58);
  font-family: "Avenir Next", "Avenir Next Cyr", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(244, 239, 230, 0.48);
}

.hero__list {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 238, 232, 0.98));
}

.hero__list ul {
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.hero__list li {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1.45;
}

.section {
  padding: 34px;
}

.section__head {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.section h2,
.pricing h2 {
  margin: 0;
  font-size: clamp(2.9rem, 5vw, 4.8rem);
  line-height: 0.92;
}

.section--course {
  background: linear-gradient(180deg, rgba(251, 250, 247, 0.98), rgba(243, 239, 232, 0.98));
}

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

.course-card,
.course-note,
.feature-card,
.bonus-item {
  border-radius: var(--radius-lg);
}

.course-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.course-card p,
.course-card li,
.feature-card p,
.bonus-item,
.pricing p {
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.65;
}

.course-card--list ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.course-note {
  grid-column: 1 / -1;
  padding: 28px;
  background: linear-gradient(135deg, #c40010 0%, #a8000d 100%);
  color: #fff5f2;
  font-family: "Avenir Next", "Avenir Next Cyr", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: clamp(1.95rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  min-height: 320px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.feature-card--dark {
  background: linear-gradient(180deg, #151516, #0b0b0c);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f4efe6;
  box-shadow: none;
}

.feature-card--accent {
  background: linear-gradient(180deg, #f0e2dd, #fff8f6);
  border-color: rgba(196, 0, 16, 0.16);
}

.feature-card h3 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 2.3vw, 2.5rem);
  line-height: 0.95;
}

.feature-card p + p {
  margin-top: 12px;
}

.bonus-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.bonus-item {
  padding: 22px 24px;
  background: linear-gradient(180deg, #faf6ef, #f0e8dc);
  color: var(--ink);
  border: 1px solid rgba(16, 16, 16, 0.07);
  box-shadow: none;
  font-family: "Avenir Next", "Avenir Next Cyr", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.pricing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  background:
    radial-gradient(circle at right top, rgba(196, 0, 16, 0.22), transparent 28%),
    linear-gradient(180deg, #131314, #070708);
  color: #f4efe6;
}

.pricing__left,
.pricing__right {
  padding: 34px;
}

.pricing__left {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing__right {
  display: flex;
  align-items: end;
}

.pricing p {
  color: rgba(244, 239, 230, 0.72);
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.checkout-modal[hidden] {
  display: none;
}

.checkout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 12, 0.66);
  backdrop-filter: blur(8px);
}

.checkout-modal__dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  padding: 32px;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(251, 250, 247, 0.98), rgba(241, 238, 232, 0.98));
  box-shadow: 0 28px 90px rgba(11, 11, 12, 0.2);
}

.checkout-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  cursor: pointer;
}

.checkout-modal__close span {
  font-size: 1.6rem;
  line-height: 1;
  transform: rotate(45deg);
}

.checkout-modal__header {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.checkout-modal__header h2 {
  margin: 0;
  font-family: "Avenir Next Condensed", "Helvetica Neue Condensed Black",
    "Arial Narrow Bold", "Avenir Next", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.checkout-modal__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.checkout-form {
  display: grid;
  gap: 18px;
}

.checkout-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkout-form__field {
  display: grid;
  gap: 8px;
}

.checkout-form__field span {
  font-size: 0.95rem;
  font-weight: 600;
}

.checkout-form__field input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(16, 16, 16, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font: inherit;
}

.checkout-form__field input::placeholder {
  color: rgba(16, 16, 16, 0.42);
}

.checkout-form__field small,
.checkout-form > small {
  min-height: 1em;
  color: var(--accent);
  font-size: 0.8rem;
}

.checkout-form__providers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkout-provider {
  display: grid;
  gap: 6px;
  min-height: 110px;
  padding: 18px;
  border: 1px solid rgba(16, 16, 16, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.checkout-provider strong {
  font-size: 1rem;
}

.checkout-provider span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.checkout-provider.is-active {
  border-color: rgba(196, 0, 16, 0.26);
  background: linear-gradient(180deg, rgba(196, 0, 16, 0.08), rgba(255, 255, 255, 0.96));
}

.checkout-form__agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.checkout-form__agree input {
  margin-top: 3px;
}

.checkout-form__agree a {
  color: var(--ink);
}

.checkout-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}

.checkout-form__ghost,
.checkout-form__submit {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.checkout-form__ghost {
  border: 1px solid rgba(16, 16, 16, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.checkout-form__submit {
  border: 0;
  background: var(--accent);
  color: #fff6f3;
  box-shadow: 0 16px 36px rgba(196, 0, 16, 0.18);
}

.checkout-form__submit[disabled] {
  opacity: 0.68;
  cursor: wait;
}

body.modal-open {
  overflow: hidden;
}

.price-stack--large {
  gap: 10px;
}

.price-stack--large .price-stack__old {
  color: rgba(244, 239, 230, 0.52);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

@media (max-width: 1024px) {
  .hero,
  .pricing,
  .features-grid,
  .bonus-list,
  .course-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero__main,
  .pricing__left {
    border-right: 0;
  }

  .hero__main {
    border-bottom: 1px solid var(--line);
  }

  .pricing__left {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding: 10px 0 24px;
  }

  .layout {
    margin-top: 18px;
    gap: 18px;
  }

  .hero,
  .section,
  .pricing {
    border-radius: 26px;
  }

  .hero__main,
  .hero__price,
  .hero__list,
  .section,
  .pricing__left,
  .pricing__right {
    padding: 20px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero__title-main {
    max-width: 100%;
    font-size: clamp(3.8rem, 17vw, 5.8rem);
  }

  .hero__metrics {
    gap: 10px;
    margin-top: 18px;
  }

  .hero__metric {
    gap: 10px;
    min-height: 72px;
    padding: 12px 16px;
  }

  .hero__metric-number {
    font-size: clamp(2.1rem, 9vw, 2.8rem);
  }

  .hero__metric-label {
    max-width: 100%;
    font-size: clamp(0.96rem, 4vw, 1.08rem);
  }

  .hero__subscription {
    margin-top: 18px;
  }

  .hero-cta__button {
    min-height: 52px;
    width: 100%;
    min-width: 0;
  }

  .hero__price::after {
    right: -28px;
    top: auto;
    bottom: -34px;
    width: 128px;
    height: 128px;
    filter: blur(10px);
    opacity: 0.82;
  }

  .section h2,
  .pricing h2 {
    font-size: clamp(2.2rem, 12vw, 3.6rem);
  }

  .checkout-modal {
    align-items: end;
    padding: 0;
  }

  .checkout-modal__dialog {
    width: 100%;
    max-height: 92vh;
    padding: 22px 18px 18px;
    border-radius: 26px 26px 0 0;
  }

  .checkout-form__grid,
  .checkout-form__providers,
  .checkout-form__actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .checkout-form__actions {
    gap: 10px;
  }

  .checkout-form__ghost,
  .checkout-form__submit {
    width: 100%;
  }

  .section--bonus h2 {
    font-size: clamp(2rem, 10.5vw, 3.1rem);
  }

  .feature-card {
    min-height: auto;
    padding: 22px;
  }

  .feature-card h3 {
    font-size: 1.95rem;
  }

  .course-note {
    padding: 22px;
    font-size: 1.65rem;
  }

  .course-card p,
  .course-card li,
  .feature-card p,
  .bonus-item,
  .pricing p,
  .hero__lead,
  .hero__list li {
    font-size: 0.98rem;
  }
}
