:root {
  --black: #030303;
  --white: #ffffff;
  --muted: #686868;
  --line: #e9e9e9;
  --pink: #ef2f68;
  --green: #8bd33f;
  --lime-dark: #4f8d18;
  --panel: #f5f5f2;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--black);
  background: var(--white);
}

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

.topbar {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  background: var(--black);
  color: var(--white);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand span {
  color: var(--pink);
}

.nav {
  display: flex;
  gap: 24px;
  color: #222;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.phone {
  font-size: clamp(13px, 1.25vw, 16px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.hero {
  position: relative;
  min-height: 690px;
  padding: 54px max(20px, calc((100vw - var(--max)) / 2)) 86px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 34px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 42%, rgba(255,255,255,0.36) 74%),
    radial-gradient(circle at 82% 32%, rgba(139,211,63,0.26), transparent 24%),
    radial-gradient(circle at 74% 62%, rgba(239,47,104,0.22), transparent 22%),
    linear-gradient(135deg, #fff 0%, #f7f7f3 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.92));
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  align-self: start;
  max-width: 650px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow--pink {
  color: var(--pink);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 24px;
  font-size: clamp(46px, 5.25vw, 76px);
  line-height: 0.96;
  font-weight: 950;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
}

h3 {
  font-size: 24px;
  line-height: 1.05;
  font-weight: 950;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 560px;
  margin-bottom: 30px;
  color: #343434;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.45;
  overflow-wrap: break-word;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--green);
  color: #173000;
  box-shadow: 0 12px 24px rgba(139, 211, 63, 0.28);
}

.btn--secondary {
  background: var(--black);
  color: var(--white);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 650px;
  gap: 10px;
}

.hero__stats div {
  padding: 18px;
  background: rgba(255,255,255,0.84);
  border: 1px solid var(--line);
}

.hero__stats strong {
  display: block;
  font-size: 36px;
  line-height: 1;
  font-weight: 950;
}

.hero__stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero__visual {
  position: relative;
  z-index: 1;
  min-height: 510px;
  align-self: stretch;
  min-width: 0;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 34px 0 0 8%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.72)),
    repeating-linear-gradient(90deg, rgba(3,3,3,0.08) 0 1px, transparent 1px 82px),
    repeating-linear-gradient(0deg, rgba(3,3,3,0.06) 0 1px, transparent 1px 82px);
  border: 1px solid rgba(0,0,0,0.12);
  transform: skewY(-3deg);
}

.terminal-card {
  position: absolute;
  right: 3%;
  top: 90px;
  width: min(520px, 88%);
  padding: 22px;
  background: rgba(3,3,3,0.94);
  color: var(--white);
  box-shadow: 0 28px 80px rgba(0,0,0,0.24);
}

.terminal-card__top {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.terminal-card__top span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pink);
}

.terminal-card__top span:nth-child(2) {
  background: var(--green);
}

.terminal-card__top span:nth-child(3) {
  background: #f7c744;
}

.prompt-line {
  margin-bottom: 22px;
  color: #f2f2f2;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.signal-grid i {
  min-height: 58px;
  background:
    radial-gradient(circle at 30% 30%, rgba(139,211,63,0.88), transparent 18%),
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(239,47,104,0.38));
  border: 1px solid rgba(255,255,255,0.12);
}

.price-tag,
.floating-note {
  position: absolute;
  z-index: 2;
  right: 16%;
  padding: 18px 28px;
  color: var(--white);
  font-size: 18px;
  font-weight: 950;
  text-transform: uppercase;
}

.price-tag {
  top: 18px;
  background: var(--pink);
  transform: rotate(-4deg);
}

.floating-note {
  bottom: 64px;
  left: 0;
  right: auto;
  max-width: 360px;
  background: var(--green);
  color: #173000;
}

.black-section {
  padding: 88px max(20px, calc((100vw - var(--max)) / 2)) 100px;
  background: var(--black);
  color: var(--white);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.8fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 44px;
}

.section-intro p:last-child {
  color: #d5d5d5;
  line-height: 1.5;
}

.audience-grid,
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.audience-grid article {
  min-height: 250px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.12)),
    #181818;
  border: 1px solid rgba(255,255,255,0.12);
}

.audience-grid span {
  margin-bottom: auto;
  color: var(--pink);
  font-size: 44px;
  font-weight: 950;
}

.audience-grid p,
.module-card p {
  margin-bottom: 0;
  color: #d9d9d9;
  line-height: 1.42;
}

.program {
  padding: 94px max(20px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr);
  gap: 42px;
  align-items: start;
}

.program__copy {
  position: sticky;
  top: 24px;
}

.program__copy p:last-child {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

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

.module-card {
  min-height: 210px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #2f2f2f;
  color: var(--white);
}

.module-card--hot {
  background: var(--pink);
}

.module-card--green {
  background: var(--green);
  color: #173000;
}

.module-card--green p {
  color: #214100;
}

.outcomes {
  padding: 90px max(20px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 58px;
  background: var(--panel);
}

.outcomes__list {
  display: grid;
  gap: 12px;
}

.outcomes__list p {
  margin: 0;
  padding: 22px 24px;
  background: var(--white);
  border-left: 8px solid var(--pink);
  font-size: 20px;
  font-weight: 800;
}

.format {
  padding: 92px max(20px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 18px;
  background: var(--black);
  color: var(--white);
}

.format__card,
.offer-card {
  padding: 38px;
  border: 1px solid rgba(255,255,255,0.14);
  background: #111;
}

.format__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.format__items div {
  padding: 18px;
  background: #1e1e1e;
}

.format__items strong,
.format__items span {
  display: block;
}

.format__items span {
  margin-top: 8px;
  color: #cfcfcf;
  line-height: 1.35;
}

.offer-card {
  background:
    linear-gradient(145deg, rgba(239,47,104,0.24), transparent 42%),
    #fff;
  color: var(--black);
}

.author-photo {
  width: min(100%, 280px);
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  margin-bottom: 26px;
  border: 8px solid var(--black);
  box-shadow: 18px 18px 0 var(--pink);
}

.offer-card__label {
  display: inline-block;
  margin-bottom: 22px;
  padding: 10px 16px;
  background: var(--pink);
  color: var(--white);
  font-weight: 950;
  text-transform: uppercase;
}

.offer-card p {
  color: #3d3d3d;
  line-height: 1.5;
}

.lead {
  padding: 86px max(20px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 40px;
  align-items: start;
  background:
    radial-gradient(circle at 8% 20%, rgba(239,47,104,0.12), transparent 22%),
    radial-gradient(circle at 90% 70%, rgba(139,211,63,0.18), transparent 20%),
    var(--black);
  color: var(--white);
}

.lead__text p:last-child {
  color: #d8d8d8;
  line-height: 1.5;
  font-size: 18px;
}

.lead-form {
  padding: 28px;
  background: var(--white);
  color: var(--black);
  display: grid;
  gap: 16px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.lead-form input {
  width: 100%;
  border: 1px solid #d8d8d8;
  padding: 16px;
  font: inherit;
}

.lead-form input:focus {
  outline: 3px solid rgba(139,211,63,0.36);
  border-color: var(--lime-dark);
}

.lead-form--popup {
  margin-top: 22px;
  padding: 0;
  background: transparent;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--lime-dark);
  font-weight: 800;
}

.legal {
  padding: 86px max(20px, calc((100vw - var(--max)) / 2));
  background: var(--panel);
}

.legal-spoiler {
  border: 1px solid var(--line);
  background: var(--white);
}

.legal-spoiler summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  cursor: pointer;
  list-style: none;
}

.legal-spoiler summary::-webkit-details-marker {
  display: none;
}

.legal-spoiler summary span {
  font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
}

.legal-spoiler summary strong {
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--green);
  color: #173000;
  font-size: 14px;
  text-transform: uppercase;
}

.legal-spoiler[open] summary strong {
  background: var(--black);
  color: var(--white);
}

.legal-spoiler[open] summary strong::before {
  content: "Закрити";
  font-size: 14px;
}

.legal-spoiler[open] summary strong {
  font-size: 0;
}

.legal-spoiler__content {
  padding: 0 28px 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 42px;
}

.legal__intro {
  position: sticky;
  top: 24px;
  align-self: start;
}

.legal__intro p:last-child {
  color: #424242;
  font-size: 18px;
  line-height: 1.5;
}

.legal__intro .btn {
  margin-top: 12px;
}

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

.legal__grid article {
  min-height: 220px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
}

.legal__grid h3 {
  margin-bottom: 18px;
  font-size: 22px;
}

.legal__grid p {
  margin-bottom: 10px;
  color: #343434;
  line-height: 1.48;
}

.legal__grid p:last-child {
  margin-bottom: 0;
}

.legal__grid a {
  color: var(--pink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.offer-page {
  padding: 70px max(20px, calc((100vw - var(--max)) / 2)) 96px;
  background: var(--panel);
}

.offer-page__head {
  max-width: 920px;
  margin-bottom: 38px;
}

.offer-page__head h1 {
  max-width: 900px;
  font-size: clamp(40px, 5vw, 72px);
}

.offer-page__head p {
  max-width: 760px;
  color: #343434;
  font-size: 20px;
  line-height: 1.5;
}

.offer-doc {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.offer-doc section {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
}

.offer-doc h2 {
  margin-bottom: 16px;
  font-size: clamp(24px, 3vw, 34px);
}

.offer-doc p {
  color: #343434;
  font-size: 17px;
  line-height: 1.62;
}

.offer-doc p:last-child {
  margin-bottom: 0;
}

.offer-doc a {
  color: var(--pink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.footer {
  min-height: 82px;
  padding: 0 max(20px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--black);
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.footer span {
  font-weight: 950;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
}

.footer__links a {
  color: #e7e7e7;
  font-size: 14px;
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 3, 3, 0.76);
}

.popup.is-open {
  display: flex;
}

.popup__panel {
  position: relative;
  width: min(100%, 560px);
  padding: 34px;
  background: var(--white);
  color: var(--black);
  box-shadow: 18px 18px 0 var(--pink);
}

.popup__panel h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 46px);
}

.popup__panel p {
  color: #343434;
  font-size: 18px;
  line-height: 1.5;
}

.popup__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

body.popup-open {
  overflow: hidden;
}

@media (max-width: 920px) {
  .topbar {
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .program,
  .outcomes,
  .format,
  .lead,
  .legal,
  .legal-spoiler__content,
  .section-intro {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__content {
    max-width: none;
    width: min(100%, calc(100vw - 40px));
  }

  .hero__visual {
    min-height: 430px;
  }

  .program__copy {
    position: static;
  }

  .legal__intro {
    position: static;
  }

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

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero {
    width: 100vw;
    max-width: 100vw;
    padding-left: 20px;
    padding-right: 20px;
    overflow-x: hidden;
  }

  .black-section,
  .program,
  .outcomes,
  .format,
  .lead,
  .legal,
  .offer-page,
  .footer {
    width: 100vw;
    max-width: 100vw;
    padding-left: 20px;
    padding-right: 20px;
    overflow-x: hidden;
  }

  .hero__content {
    inline-size: calc(100vw - 72px) !important;
    max-inline-size: calc(100vw - 72px) !important;
  }

  .topbar {
    align-items: flex-start;
  }

  .phone {
    order: 2;
    width: 100%;
    font-size: 13px;
  }

  .nav {
    order: 3;
    gap: 10px;
    font-size: 12px;
    flex-wrap: wrap;
  }

  h1 {
    font-size: clamp(40px, 13vw, 58px);
  }

  h2 {
    max-inline-size: 300px !important;
    font-size: clamp(28px, 9vw, 38px);
    overflow-wrap: anywhere;
  }

  .hero__stats,
  .audience-grid,
  .module-grid,
  .format__items,
  .legal__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    display: none;
    min-height: 0;
    width: min(100%, calc(100vw - 40px));
    max-width: calc(100vw - 40px);
    overflow: hidden;
  }

  h1,
  .hero__lead,
  .hero__actions,
  .hero__stats {
    inline-size: 100% !important;
    max-inline-size: 100% !important;
  }

  .section-intro,
  .program__copy,
  .outcomes__headline,
  .outcomes__list,
  .format__card,
  .offer-card,
  .lead__text,
  .lead-form,
  .legal__intro,
  .legal__grid,
  .legal-spoiler,
  .offer-page__head,
  .offer-doc {
    max-inline-size: calc(100vw - 72px);
  }

  .hero__lead {
    inline-size: 300px !important;
    max-inline-size: 300px !important;
    font-size: 17px;
    line-height: 1.42;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero__actions .btn {
    inline-size: 300px !important;
    max-inline-size: 300px !important;
  }

  .terminal-card {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    padding: 22px;
    overflow: hidden;
  }

  .signal-grid {
    gap: 8px;
  }

  .signal-grid i {
    min-height: 48px;
  }

  .floating-note {
    left: 0;
    right: 0;
    bottom: 22px;
    max-width: none;
    font-size: 14px;
  }

  .price-tag {
    left: 24px;
    right: auto;
    max-width: calc(100% - 48px);
    font-size: 14px;
  }

  .format__card,
  .offer-card,
  .lead-form {
    padding: 24px;
  }

  .author-photo {
    width: min(100%, 220px);
    box-shadow: 12px 12px 0 var(--pink);
  }

  .legal__grid article {
    min-height: auto;
    padding: 22px;
  }

  .legal-spoiler summary {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .legal-spoiler__content {
    padding: 0 22px 22px;
  }

  .offer-doc section {
    padding: 22px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .popup {
    align-items: flex-end;
    padding: 20px;
  }

  .popup__panel {
    max-inline-size: calc(100vw - 40px);
    padding: 28px 22px;
    box-shadow: 8px 8px 0 var(--pink);
  }

  .popup__panel h2 {
    max-inline-size: 100% !important;
  }

  .popup__actions,
  .popup__actions .btn {
    width: 100%;
  }
}
