/* ---------- Tokens ---------- */
:root {
  --green: #5D822D;
  --green-dark: #4c6b23;
  --text: #111;
  --white: #fff;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ink: #2D3426;
  --container: 1200px;
  --gutter: 24px;
  --section-gap: 120px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

/* Headings */
h2 { font-size: 48px; font-weight: 500; line-height: 1.2; }
h3 { font-size: 30px; font-weight: 500; line-height: 1.2; }

/* Vertical rhythm: 120px between blocks on desktop */
main { padding-bottom: 0; }
main > section + section { margin-top: var(--section-gap); }

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

/* ---------- Header ---------- */
.header {
  position: relative;
  z-index: 10;
  background: var(--white);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}
.logo img { width: 205px; height: auto; }

.nav { display: flex; gap: 40px; }
.nav__link {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  transition: color .2s;
}
.nav__link:hover { color: var(--green); }

.burger {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: transform .25s, opacity .25s;
}
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 16px 0 0; }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
}
.hero__content { padding: 24px 0; }

.hero__title {
  font-size: clamp(32px, 4.1vw, 54px);
  font-weight: 500;
  line-height: 1.2;
}
.hero__title-accent {
  display: block;
  color: var(--green);
  font-size: clamp(52px, 8vw, 98px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hero__text {
  margin-top: 40px;
  max-width: 480px;
  font-size: 20px;
  line-height: 1.5;
}

.btn {
  display: inline-block;
  margin-top: 56px;
  padding: 18px 32px;
  background: var(--green);
  color: var(--white);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }

.hero__image {
  border-radius: 10px;
  overflow: hidden;
}
.hero__image img {
  width: 100%;
  aspect-ratio: 585 / 558;
  object-fit: cover;
}

/* ---------- Stats ---------- */
.stats { padding: 0; }
.stats__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.stats__value {
  color: var(--green);
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stats__label {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ---------- Benefits (Why take this course?) ---------- */
.benefits { color: var(--ink); }
.benefits__title {
  margin-bottom: 64px;
  text-align: center;
}
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.card {
  padding: 48px 40px;
  border-radius: 24px;
}
.card--before { background: #F5F5F5; }
.card--after { background: #E8F0D9; }

.card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 21px;
  border-bottom: 1px solid rgba(45, 52, 38, .2);
}
.card--after .card__head { border-bottom-color: rgba(93, 130, 45, .3); }
.card__head img { flex: none; width: 60px; height: 60px; }

.card__list {
  display: grid;
  gap: 29px;
  margin-top: 32px;
  padding: 0 54px 0 28px;
  font-size: 20px;
  line-height: 1.5;
}
.card__list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.card__list li::before {
  content: '';
  flex: none;
  width: 29px;
  height: 29px;
  margin-top: 1px;
  background: url('images/icon-check.svg') center / contain no-repeat;
}
.card--after .card__list li::before { background-image: url('images/icon-check-green.svg'); }
.card__list strong { font-weight: 500; }

/* ---------- Testimonials ---------- */
.testimonials {
  padding: 80px 0;
  background: #F5F5F5;
  color: var(--ink);
  overflow: hidden;
}
.testimonials__inner {
  display: grid;
  grid-template-columns: 410px minmax(0, 690px);
  align-items: start;
}

.testimonials__title { max-width: 340px; }

.slider { position: relative; }
.slider__quote {
  position: absolute;
  top: -17px;
  right: -30px;
  width: 217px;
  height: auto;
  pointer-events: none;
}
.slider__eyebrow,
.slider__slides,
.slider__controls { position: relative; } /* above the quote mark */

.slider__eyebrow {
  font-size: 14px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--green);
}

.slider__slides {
  display: grid;
  margin-top: 40px;
}
.slide {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
.slide.is-active { opacity: 1; visibility: visible; }

.slide__text { margin: 0; max-width: 680px; }
.slide__text p {
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 400;
  line-height: 1.4;
}

.slide__author { display: flex; flex-direction: column; gap: 4px; margin-top: 32px; }
.slide__name { font-size: 18px; font-weight: 500; line-height: 1.4; }
.slide__company { font-size: 16px; line-height: 1.4; color: rgba(45, 52, 38, .7); }

.slider__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
}
.slider__arrows { display: flex; gap: 4px; }
.slider__btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--green);
  cursor: pointer;
  transition: opacity .2s;
}
.slider__btn:hover:not(:disabled) { opacity: .7; }
.slider__btn:disabled { color: rgba(45, 52, 38, .4); cursor: default; }
.slider__btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.slider__counter { font-size: 20px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.slider__total { color: rgba(45, 52, 38, .5); }

/* ---------- Our Course ---------- */
.course { color: var(--ink); }
.course__head { text-align: center; }
.course__lead {
  max-width: 600px;
  margin: 32px auto 0;
  font-size: 20px;
  line-height: 1.5;
}

.course__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 40px clamp(20px, 2.1vw, 30px);
  background: #F5F5F5;
  border-radius: 24px;
}
.plan--featured { background: #E8F0D9; }

.plan__for {
  font-size: 14px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--green);
}
.plan__title {
  margin-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--green);
  font-size: clamp(22px, 2.1vw, 30px);
  font-weight: 400;
  line-height: 1.15;
  text-transform: uppercase;
}

.plan__list {
  display: grid;
  gap: 20px;
  flex: 1;
  margin-top: 32px;
  font-size: 16px;
  line-height: 22px;
}
.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.plan__list li::before {
  content: '';
  flex: none;
  width: 21px;
  height: 21px;
  margin-top: 1px;
  background: url('images/icon-check-circle.svg') center / contain no-repeat;
}

.plan__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  margin-top: 40px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.plan__btn:hover { background: var(--green); color: var(--white); }
.plan--featured .plan__btn { background: var(--green); color: var(--white); }
.plan--featured .plan__btn:hover { background: var(--green-dark); border-color: var(--green-dark); }

/* ---------- About Our Training ---------- */
.about { color: var(--ink); }
.center { text-align: center; }

.about__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
}
.feature__icon { width: 60px; height: 60px; }
.feature__title {
  margin-top: 32px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}
.feature__text {
  max-width: 330px;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.4;
}

/* ---------- Real People, Real Results (carousel) ---------- */
.reviews { --gap: 30px; color: var(--ink); }

.reviews__track {
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2));
  display: flex;
  gap: var(--gap);
  margin-top: 52px;
  padding: 12px var(--edge) 28px;
  scroll-padding-inline: var(--edge);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }

.review {
  display: flex;
  flex: 0 0 calc((100% - 2 * var(--gap)) / 3);
  flex-direction: column;
  padding: 40px 30px;
  background: #F5F5F5;
  border-radius: 24px;
  scroll-snap-align: start;
}
.review__stars {
  flex: none;
  width: 152px;
  height: 24px;
  background: url('images/stars.svg') no-repeat center / contain;
}
.review__text {
  flex: 1;
  margin-top: 22px;
  font-size: 16px;
  line-height: 22px;
}
.review__author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
}
.review__g { position: relative; flex: none; width: 40px; height: 40px; }
.review__g img {
  position: absolute;
  inset: 0;
  width: 40px;
  height: 40px;
  transition: opacity .25s;
}
.review__g .review__g-hover { inset: -2px; width: 44px; height: 44px; opacity: 0; }
.review:hover .review__g-hover { opacity: 1; }
.review:hover .review__g img:first-child { opacity: 0; }

.review__name { font-size: 20px; font-weight: 500; line-height: 1.25; }
.review__date { font-size: 14px; line-height: 1.4; color: rgba(45, 52, 38, .7); }

.carousel__nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;
}

/* ---------- Consultation ---------- */
[hidden] { display: none !important; }

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

.consult {
  padding: 80px 0;
  background: #E8F0D9;
  color: var(--ink);
}
.consult__inner {
  display: grid;
  grid-template-columns: 585px minmax(0, 450px);
  align-items: center;
  justify-content: center;
  gap: 123px;
}
.consult__image { border-radius: 24px; overflow: hidden; }
.consult__image img { width: 100%; aspect-ratio: 585 / 625; object-fit: cover; }

.consult__content h2 { max-width: 450px; }

.form { display: grid; gap: 20px; margin-top: 40px; }
.form__input {
  width: 100%;
  height: 60px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.form__input::placeholder { color: #777; }
.form__input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(93, 130, 45, .2); }
.form__input:user-invalid { border-color: #c0392b; }

.form__note {
  margin-top: -4px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(45, 52, 38, .8);
}
.form__note a { text-decoration: underline; }
.form__note a:hover { color: var(--green); }

.btn--block {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 0;
  height: 60px;
  border: 0;
  font-family: inherit;
  font-size: 16px;
  cursor: pointer;
}

.consult__thanks {
  margin-top: 40px;
  padding: 28px 30px;
  border-left: 4px solid var(--green);
  border-radius: 6px;
  background: var(--white);
  font-size: 20px;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.footer {
  padding: 64px 0 32px;
  background: #F5F5F5;
  color: var(--ink);
}
.footer__top {
  display: grid;
  grid-template-columns: 303fr 426fr 205fr 190fr auto;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(93, 130, 45, .6);
}
.footer__logo img { width: 175px; height: auto; }

.footer__contact { font-style: normal; font-size: 16px; line-height: 29px; }
.footer__contact a { display: block; margin-bottom: 10px; transition: color .2s; }
.footer__contact a:hover { color: var(--green); }
.footer__contact p { max-width: 330px; }

.footer__nav {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  grid-template-columns: 205fr 190fr;
  gap: 16px 0;
  grid-column: 3 / 5;
}
.footer__social { display: grid; gap: 14px; }
.footer__link { font-size: 16px; line-height: 1.4; transition: color .2s; }
.footer__link:hover { color: var(--green); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.4;
}
.footer__note {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(45, 52, 38, .7);
}
.footer__privacy { color: var(--text); transition: color .2s; }
.footer__privacy:hover { color: var(--green); }

/* ---------- Animations ---------- */
/* Scroll reveal (see script at the end of index.html) */
.reveal-ready [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-ready [data-reveal].is-visible:not(.is-revealed) {
  opacity: 1;
  transform: none;
}

/* Cards: lift + soft shadow on hover */
.card, .plan, .review {
  transition: transform .25s ease, box-shadow .25s ease;
}
@media (hover: hover) {
  .card:hover,
  .plan:hover,
  .review:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(45, 52, 38, .12);
  }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover, .plan:hover, .review:hover { transform: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .course__grid { grid-template-columns: repeat(2, 1fr); }
  .plan__title { font-size: 30px; }

  .reviews { --gap: 24px; }
  .review { flex-basis: calc((100% - var(--gap)) / 2); }
  .about__grid { gap: 32px; }
}

@media (max-width: 960px) {
  .nav { gap: 24px; }
  .hero__inner { gap: 24px; }

  .compare { grid-template-columns: 1fr; }
  .card__list { padding-right: 0; }

  .testimonials__inner { grid-template-columns: 1fr; gap: 32px; }
  .slider__quote { right: 0; }
}

@media (max-width: 960px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer__nav { grid-column: auto; grid-template-columns: 1fr 1fr; }
  .consult__inner { grid-template-columns: 1fr; gap: 40px; }
  .consult__image { max-width: 585px; }
  .consult__content h2 { max-width: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  :root { --gutter: 16px; --section-gap: 64px; }

  h2 { font-size: 32px; }
  h3 { font-size: 22px; }

  .logo img { width: 160px; }
  .header__inner { padding-top: 16px; padding-bottom: 16px; }

  .burger { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 12px 0; font-size: 16px; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__image { order: -1; }
  .hero__content { padding: 8px 0 0; }
  .hero__text { margin-top: 24px; }
  .btn { margin-top: 32px; width: 100%; text-align: center; }

  .stats__list { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }

  .benefits__title { margin-bottom: 32px; }
  .card { padding: 24px 20px; border-radius: 16px; }
  .card__head { gap: 4px; padding-bottom: 16px; }
  .card__head img { width: 44px; height: 44px; }
  .card__list { gap: 20px; margin-top: 24px; padding-left: 0; font-size: 16px; }
  .card__list li { gap: 12px; }
  .card__list li::before { width: 24px; height: 24px; }

  .testimonials { padding: 48px 0; }
  .testimonials__inner { gap: 24px; }
  .slider__quote { top: -12px; width: 90px; }
  .slider__eyebrow { font-size: 12px; }
  .slider__slides { margin-top: 24px; }
  .slide__text p { font-size: 20px; }
  .slide__author { margin-top: 24px; }
  .slide__name { font-size: 16px; }
  .slide__company { font-size: 14px; }
  .slider__controls { margin-top: 32px; }
  .slider__counter { font-size: 16px; }

  .course__lead { margin-top: 16px; font-size: 16px; }
  .course__grid { grid-template-columns: 1fr; gap: 16px; margin-top: 32px; }
  .plan { padding: 28px 20px; border-radius: 16px; }
  .plan__title { margin-top: 16px; padding-bottom: 16px; font-size: 24px; }
  .plan__list { margin-top: 24px; }
  .plan__btn { height: 52px; margin-top: 32px; }

  .about__grid { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
  .feature__icon { width: 48px; height: 48px; }
  .feature__title { margin-top: 20px; font-size: 18px; }
  .feature__text { margin-top: 12px; font-size: 16px; }

  .reviews { --gap: 16px; }
  .reviews__track { margin-top: 20px; }
  .review { flex-basis: 86%; padding: 28px 20px; border-radius: 16px; }
  .review__name { font-size: 18px; }
  .carousel__nav { margin-top: 0; }

  .consult { padding: 48px 0; }
  .consult__inner { gap: 28px; }
  .consult__image { border-radius: 16px; }
  .consult__image img { aspect-ratio: 4 / 3; }
  .form { gap: 16px; margin-top: 24px; }
  .form__input, .btn--block { height: 52px; }
  .consult__thanks { margin-top: 24px; padding: 20px; font-size: 16px; }

  .footer { padding: 40px 0 24px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .footer__logo img { width: 160px; }
  .footer__nav { grid-template-columns: 1fr 1fr; }
  .footer__social { grid-auto-flow: row; }
}
