@import url("../fonts/golos.css");

:root {
  --ink: #485445;
  --ink-strong: #181c17;
  --green: #69a659;
  --green-dark: #3b7d2c;
  --green-darker: #245e19;
  --mint: #c3dbbd;
  --mint-light: #e4f3e0;
  --mint-lighter: #f6faf5;
  --orange: #e46742;
  --orange-dark: #c93f17;
  --peach: #e8bdb0;
  --gray: #f5f5f5;
  --gray-line: #dbdbdb;
  --white: #fff;

  --container: 1200px;
  --gutter: 20px;
  --radius-sm: 10px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow: 0 8px 30px rgba(72, 84, 69, .1);
  --shadow-hover: 0 14px 40px rgba(72, 84, 69, .18);
  --header-h: 70px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }

body {
  margin: 0;
  font-family: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; overflow-wrap: break-word; }
blockquote, figure { margin: 0; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 90px 0; }
.section--tight { padding: 60px 0; }
.section--gray { background: var(--gray); }
.section--mint { background: var(--mint-lighter); }

.section__title {
  font-size: 36px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-strong);
  margin-bottom: 40px;
}

.section__title--center { text-align: center; }

.lead { font-size: 20px; }
.muted { color: rgba(72, 84, 69, .7); }
.accent { color: var(--green-dark); font-weight: 600; }
.accent-orange { color: var(--orange); font-weight: 600; }
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 36px;
  border: 2px solid transparent;
  border-radius: 40px;
  background: var(--green);
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}

.btn:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--orange { background: var(--orange); }
.btn--orange:hover { background: var(--orange-dark); }

.btn--ghost {
  background: transparent;
  color: var(--ink-strong);
  border-color: var(--ink-strong);
}
.btn--ghost:hover { background: var(--ink-strong); color: var(--white); }

.btn--light { background: var(--white); color: var(--green-dark); }
.btn--light:hover { background: var(--mint-light); color: var(--green-darker); }

.btn--wide { width: 100%; }
.btn--sm { min-height: 46px; padding: 10px 26px; font-size: 16px; }

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: var(--header-h);
}

.header__logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
  white-space: nowrap;
}

.nav { margin-left: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  font-size: 16px;
  font-weight: 500;
  padding: 6px 0;
  transition: color .2s;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform .2s;
}

.nav__link:hover { color: var(--green-dark); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--green-dark); }

.burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.burger__bar {
  display: block;
  width: 26px; height: 2px;
  margin: 6px auto;
  background: var(--ink-strong);
  transition: transform .25s, opacity .2s;
}

.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--mint-lighter);
  padding: 60px 0 0;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: end;
}

.hero__content { align-self: center; padding-bottom: 40px; }

.hero__eyebrow {
  display: inline-block;
  max-width: 520px;
  margin: 24px 0 0;
  padding: 12px 22px;
  border-radius: var(--radius);
  background: var(--mint-light);
  font-size: 16px;
  line-height: 1.4;
  color: var(--green-darker);
}

.hero__title {
  font-size: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--ink-strong);
}

.hero__title b {
  display: block;
  margin-top: 4px;
  font-size: 76px;
  font-weight: 700;
  text-transform: none;
  color: var(--green-dark);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.hero__media { position: relative; align-self: end; }

.hero__photo {
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.hero__author {
  position: absolute;
  left: 0;
  bottom: 40px;
  max-width: 300px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero__author-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
}

.hero__author-name {
  margin: 4px 0 6px;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-strong);
}

.hero__author-note { font-size: 14px; line-height: 1.35; }

.hero__heading {
  width: fit-content;
  max-width: 100%;
}

.hero__deco {
  width: 112px;
  margin: 0 -20px 8px auto;
  pointer-events: none;
}

/* Reason cards */

.reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.reason {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.reason__title {
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--green-dark);
}

.reason__text { margin: 0; font-size: 17px; }

/* Included cards */

.included {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.included__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--mint-light);
}

.included__card:nth-child(2n) { background: var(--mint); }

.included__num {
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

.included__title {
  font-size: 20px;
  font-weight: 600;
  color: var(--green-darker);
}

.included__text { margin: 0; font-size: 16px; }
.included__list { margin: 0; padding-left: 18px; font-size: 16px; }
.included__list li + li { margin-top: 4px; }

/* Program */

.program {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.step-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: var(--radius);
  border: 2px solid var(--mint);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.step-card:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-3px); }
.step-card--wide { grid-column: 1 / -1; }
.step-card--locked { border-style: dashed; background: var(--gray); }

.step-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.step-card__num {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 30px;
  font-weight: 700;
}

.step-card--locked .step-card__num { background: var(--mint); color: var(--green-darker); }

.step-card__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-strong);
}

.step-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 5px 14px;
  border-radius: 30px;
  background: var(--mint-light);
  font-size: 13px;
  font-weight: 600;
  color: var(--green-darker);
}

.step-card--locked .step-card__badge { background: var(--peach); color: var(--orange-dark); }
.step-card__badge img { width: 14px; height: 14px; }

.step-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: topic;
}

.step-card__list li {
  position: relative;
  padding: 7px 0 7px 34px;
  font-size: 17px;
  border-bottom: 1px solid var(--gray-line);
}

.step-card__list li:last-child { border-bottom: 0; font-weight: 600; color: var(--green-dark); }

.step-card__list li::before {
  counter-increment: topic;
  content: counter(topic);
  position: absolute;
  left: 0; top: 9px;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--mint-light);
  font-size: 12px;
  font-weight: 600;
  color: var(--green-darker);
}

.step-card--wide .step-card__list { columns: 2; column-gap: 40px; }
.step-card--wide .step-card__list li { break-inside: avoid; }

/* Pricing */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.tariff {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 30px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.tariff--featured {
  background: var(--green-dark);
  color: var(--white);
}

.tariff--featured .tariff__name,
.tariff--featured .tariff__price { color: var(--white); }

.tariff__flag {
  position: absolute;
  top: -14px; left: 30px;
  padding: 6px 18px;
  border-radius: 30px;
  background: var(--orange);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.tariff__name {
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--green-darker);
}

.tariff__price {
  margin: 14px 0 20px;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-strong);
}

.tariff__price span { font-size: 24px; font-weight: 600; }

.tariff__list {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  font-size: 16px;
}

.tariff__list li {
  position: relative;
  padding: 6px 0 6px 26px;
}

.tariff__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 14px; height: 9px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

.tariff--featured .tariff__list li::before { border-color: var(--mint); }

.tariff__access {
  margin-top: auto;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(72, 84, 69, .18);
  font-size: 15px;
  font-weight: 600;
}

.tariff--featured .tariff__access { border-color: rgba(255, 255, 255, .3); }

.pricing__note {
  margin: 0 0 36px;
  font-size: 18px;
}

/* Order form */

.order {
  max-width: 760px;
  margin: 50px auto 0;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.order__title {
  margin-bottom: 22px;
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  color: var(--ink-strong);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }

.field__label { font-size: 14px; font-weight: 600; }

.field__input {
  width: 100%;
  min-height: 54px;
  padding: 14px 18px;
  border: 2px solid var(--gray-line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  font-size: 17px;
  color: var(--ink-strong);
  transition: border-color .2s;
}

.field__input:focus { border-color: var(--green); outline: none; }
.field__input[aria-invalid="true"] { border-color: var(--orange); }

.field__error {
  min-height: 18px;
  font-size: 13px;
  color: var(--orange-dark);
}

.choices { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 6px; }

.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }

.choice span {
  display: grid;
  place-items: center;
  width: 60px; height: 60px;
  border: 2px solid var(--mint);
  border-radius: var(--radius-sm);
  font-size: 22px;
  font-weight: 600;
  color: var(--green-darker);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}

.choice input:checked + span { background: var(--green); border-color: var(--green); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--green-dark); outline-offset: 2px; }
.choice input:disabled + span { opacity: .45; cursor: not-allowed; }

.order__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 24px 0;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: var(--mint-lighter);
  font-size: 18px;
  font-weight: 600;
}

.order__total b { font-size: 28px; color: var(--green-dark); }

.form__note {
  margin: 14px 0 0;
  font-size: 14px;
  text-align: center;
  color: rgba(72, 84, 69, .75);
}

.form__note a { text-decoration: underline; }

.form__success {
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: var(--mint-light);
  font-weight: 600;
  color: var(--green-darker);
}

.form__failure {
  margin-top: 18px;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: var(--peach);
  font-weight: 600;
  color: var(--orange-dark);
}

/* Lesson flow */

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.flow__item {
  position: relative;
  padding: 30px 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.flow__num {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
}

.flow__title {
  margin-bottom: 10px;
  font-size: 19px;
  font-weight: 600;
  color: var(--green-darker);
}

.flow__text { margin: 0; font-size: 16px; }

/* About */

.about {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 50px;
  align-items: start;
}

.about--plain { grid-template-columns: 1fr; max-width: 900px; }

.about__photo { border-radius: var(--radius); box-shadow: var(--shadow); }
.about__text p { margin: 0 0 18px; }
.about__text p:last-child { margin-bottom: 0; }

.about__quote {
  margin-top: 30px;
  padding: 26px 30px;
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--mint-lighter);
  font-size: 19px;
}

.creds {
  margin: 0;
  padding: 0;
  list-style: none;
}

.creds li {
  position: relative;
  padding: 10px 0 10px 34px;
  border-bottom: 1px solid var(--gray-line);
}

.creds li:last-child { border-bottom: 0; }

.creds li::before {
  content: "";
  position: absolute;
  left: 0; top: 18px;
  width: 16px; height: 10px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}

/* Gallery */

/* Masonry columns keep every screenshot at its own aspect ratio — the reviews
   come in wildly different shapes and cropping them to a common box makes the
   text unreadable. */
.gallery {
  columns: 3;
  column-gap: 20px;
}

.gallery--main { columns: 4; }

.gallery__item {
  display: block;
  width: 100%;
  margin: 0 0 20px;
  break-inside: avoid;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .2s, box-shadow .2s;
}

.gallery__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.gallery__item img { width: 100%; height: auto; }

.gallery--docs { columns: 3; }

/* CTA banners */

.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 50px 60px;
  border-radius: var(--radius-lg);
  background: var(--mint-light);
}

.cta--dark { background: var(--green-dark); color: var(--white); }
.cta--dark .cta__title { color: var(--white); }

.cta__title {
  font-size: 34px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--green-darker);
}

.cta__title em { font-style: normal; color: var(--orange); }
.cta--dark .cta__title em { color: var(--peach); }
.cta__text { margin: 14px 0 0; font-size: 19px; }

/* FAQ */

.faq { max-width: 900px; margin: 0 auto; }

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

.faq__button {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 24px 0;
  border: 0;
  background: transparent;
  font-size: 20px;
  font-weight: 600;
  text-align: left;
  color: var(--ink-strong);
  cursor: pointer;
  transition: color .2s;
}

.faq__button:hover { color: var(--green-dark); }

.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 24px; height: 24px;
  margin-top: 4px;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: var(--green);
  transform: translate(-50%, -50%);
  transition: transform .25s;
}

.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__button[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(0); }

.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}

.faq__panel[data-open="true"] { grid-template-rows: 1fr; }
.faq__panel > div { overflow: hidden; }
.faq__panel p { margin: 0 0 18px; }
.faq__panel p:first-child { padding-top: 4px; }

/* Text page */

.prose { max-width: 900px; }
.prose h2 { margin: 40px 0 16px; font-size: 26px; color: var(--green-darker); }
.prose h3 { margin: 28px 0 12px; font-size: 21px; }
.prose p { margin: 0 0 16px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }

.page-hero {
  padding: 60px 0;
  background: var(--mint-lighter);
}

.page-hero__title {
  font-size: 44px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-strong);
}

.page-hero__subtitle { margin: 16px 0 0; font-size: 20px; max-width: 760px; }

/* Footer */

.footer {
  padding: 60px 0 40px;
  background: var(--green-dark);
  color: var(--white);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__logo { font-size: 22px; font-weight: 700; }
.footer__tagline { margin: 10px 0 0; font-size: 16px; opacity: .85; }
.footer__heading { margin-bottom: 14px; font-size: 16px; font-weight: 600; text-transform: uppercase; opacity: .8; }
.footer__list { margin: 0; padding: 0; list-style: none; }
.footer__list li { margin-bottom: 10px; }
.footer__list a:hover { text-decoration: underline; }

.footer__socials { display: flex; gap: 12px; }

.footer__social {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  transition: background-color .2s, transform .2s;
}

.footer__social:hover { background: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.footer__social img { width: 22px; height: 22px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .25);
  font-size: 14px;
  opacity: .85;
}

/* Floating messengers */

.messengers {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.messengers__btn {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: var(--shadow-hover);
  transition: transform .2s;
}

.messengers__btn:hover { transform: scale(1.08); }
.messengers__btn img { width: 28px; height: 28px; }
.messengers__btn--wa { background: linear-gradient(135deg, #3d8bff, #7c4dff); }
.messengers__btn--tg { background: #29a9eb; }

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 28, 23, .7);
}

.modal[data-open="true"] { display: flex; }

.modal__box {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 44px 40px;
  border-radius: var(--radius);
  background: var(--white);
}

.modal__box--wide { max-width: 860px; }

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--gray);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s;
}

.modal__close:hover { background: var(--mint-light); }

.modal__title { font-size: 26px; text-align: center; color: var(--ink-strong); }
.modal__subtitle { margin: 10px 0 26px; text-align: center; }

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(24, 28, 23, .92);
}

.lightbox[data-open="true"] { display: flex; }

.lightbox__img {
  max-width: min(92vw, 1000px);
  max-height: 88vh;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  transition: background-color .2s;
}

.lightbox__nav:hover { background: rgba(255, 255, 255, .32); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

.lightbox__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

.lightbox__counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .8);
  font-size: 15px;
}

/* Reveal on scroll */

.has-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.has-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .has-reveal .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Responsive */

@media (max-width: 1100px) {
  .hero__title b { font-size: 60px; }
  .included { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .gallery--main { columns: 2; }
  .about { grid-template-columns: 320px 1fr; gap: 34px; }
  .about--plain { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  body { font-size: 17px; }
  .section { padding: 60px 0; }
  .section__title { font-size: 30px; margin-bottom: 30px; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    margin: 0;
    padding: 20px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform .3s ease;
  }

  .nav[data-open="true"] { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav__link { display: block; width: 100%; padding: 12px 0; font-size: 18px; }
  .burger { display: block; }

  .hero { padding-top: 40px; }
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__content { padding-bottom: 40px; }
  .hero__title { font-size: 24px; }
  .hero__title b { font-size: 48px; }
  .hero__photo { max-width: 420px; margin: 0 auto; }
  .hero__author { position: static; max-width: none; margin-bottom: 16px; }
  .hero__deco { width: 100px; margin-right: -6px; }

  .reasons { grid-template-columns: 1fr; }
  .program { grid-template-columns: 1fr; }
  .step-card--wide .step-card__list { columns: 1; }
  .pricing { grid-template-columns: 1fr; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__photo { max-width: min(380px, 100%); }
  .gallery--docs { columns: 2; }

  .cta { grid-template-columns: 1fr; padding: 36px 28px; text-align: center; }
  .cta__title { font-size: 26px; }
  .cta .btn { justify-self: center; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .page-hero__title { font-size: 32px; }
  .order { padding: 28px 22px; }
  .modal__box { padding: 36px 22px; }
}

@media (max-width: 560px) {
  .included { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; }
  .gallery,
  .gallery--main,
  .gallery--docs { columns: 1; }
  .form__row { grid-template-columns: 1fr; }
  .page-hero__title { font-size: 26px; }
  .step-card { padding: 24px 20px; }
  .tariff { padding: 30px 22px; }
  .btn { width: 100%; }
  .hero__actions .btn { width: 100%; }
  .messengers { right: 12px; bottom: 12px; }
  .messengers__btn { width: 50px; height: 50px; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* Decorative artwork */

.pricing { position: relative; }

/* The artwork bleeds 70px outside the tariff grid, so it stays hidden until the
   viewport is wide enough to hold that bleed without a horizontal scrollbar. */
.pricing__deco {
  display: none;
  position: absolute;
  width: 120px;
  opacity: .6;
  pointer-events: none;
}

.pricing__deco--left { left: -70px; top: -50px; }
.pricing__deco--right { right: -70px; bottom: -50px; }

@media (min-width: 1360px) {
  .pricing__deco { display: block; }
}

@media (max-width: 900px) {
  .cta {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
  }
}

/* Course materials */

.access {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.access__title {
  font-size: 26px;
  font-weight: 600;
  color: var(--ink-strong);
}

.access__hint { margin: 10px 0 24px; color: rgba(72, 84, 69, .75); }

.access__form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.access__form .field__input { flex: 1; min-width: 0; }

.access .field__error { margin-top: 14px; }

.materials-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.materials-tab {
  padding: 12px 26px;
  border: 2px solid var(--gray-line);
  border-radius: 40px;
  background: var(--white);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}

.materials-tab:hover { border-color: var(--green); }
.materials-tab.is-active { background: var(--green); border-color: var(--green); color: var(--white); }

.materials-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}

.lesson-nav {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lesson-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 640px;
  overflow-y: auto;
}

.lesson-list__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-line);
  cursor: pointer;
  transition: background-color .2s;
}

.lesson-list__item:last-child { border-bottom: 0; }
.lesson-list__item:hover { background: var(--mint-lighter); }
.lesson-list__item.is-active { background: var(--mint-light); }

.lesson-list__num {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--mint);
  font-size: 16px;
  font-weight: 600;
  color: var(--green-darker);
}

.lesson-list__item.is-active .lesson-list__num { background: var(--green); color: var(--white); }

.lesson-list__title { font-size: 16px; line-height: 1.3; }

.materials-detail {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.player {
  position: relative;
  border-radius: var(--radius-sm);
  background: #eef1ea;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.player video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #eef1ea;
}

/* The crossfade buffer stays visible (2px corner) so the browser decodes its
   frames while the next video loads; a hidden buffer renders black on reveal. */
.player video.is-buffer {
  position: fixed;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  pointer-events: none;
}

.player__title {
  padding: 12px 4px 0;
  font-size: 14px;
  color: rgba(72, 84, 69, .75);
}

.video-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.video-tab {
  padding: 10px 20px;
  border: 2px solid var(--gray-line);
  border-radius: 30px;
  background: var(--white);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}

.video-tab:hover { border-color: var(--green); }
.video-tab.is-active { background: var(--green); border-color: var(--green); color: var(--white); }

.attachments__title {
  margin: 24px 0 14px;
  font-size: 18px;
  font-weight: 600;
  color: var(--green-darker);
}

.attachment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-line);
}

.attachment-row:last-child { border-bottom: 0; }

.attachment-row__name {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.attachment-row__actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .materials-layout { grid-template-columns: 1fr; }
  .lesson-list { max-height: 260px; }
  .materials-detail { padding: 20px; }
  .access { padding: 28px 22px; }
}

@media (max-width: 560px) {
  .access__form { flex-direction: column; }
  .access__form .field__input { width: 100%; }
  .attachment-row { flex-direction: column; align-items: stretch; }
  .attachment-row__actions .btn { flex: 1; }
}
