/* ===================================================
   RESET & BASE
=================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: #111;
  background: #fff;
  line-height: 1.5;
}

img { display: block; max-width: 100%; height: auto; }

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

ul { list-style: none; }

button { cursor: pointer; border: none; background: none; font: inherit; }

/* ===================================================
   UTILITIES
=================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-title {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 40px;
  color: #111;
}

.section-title--white { color: #fff; }
.section-title--accent { color: #111; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn:hover { opacity: 0.85; }

.btn--dark {
  background: #111;
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: #111;
  border: 2px solid #111;
}

.btn--red {
  background: #EF3124;
  color: #fff;
}

/* ===================================================
   HEADER
=================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.header__logo { flex-shrink: 0; }
.header__logo-svg { width: 110px; height: 48px; }

.header__nav {
  display: flex;
  gap: 28px;
  flex: 1;
}

.header__nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #111;
  transition: color 0.2s;
}

.header__nav-link:hover { color: #EF3124; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.header__search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s;
}

.header__search:hover { background: #f0f0f0; }

.header__login {
  padding: 10px 24px;
  font-size: 15px;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  padding: 4px;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #111;
  border-radius: 2px;
}

/* ===================================================
   HERO
=================================================== */
.hero {
  background-color: #7FE000;
  background-image: url('images/hero-desktop.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 100%;
  overflow: hidden;
  min-height: 480px;
}

.hero__inner {
  display: block;
  padding-top: 48px;
  padding-bottom: 48px;
  min-height: 480px;
}

.hero__content {
  max-width: 560px;
}

.hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #111;
  margin-bottom: 24px;
}

.hero__back:hover { text-decoration: underline; }

.hero__title {
  font-size:56px;
  font-weight: 900;
  line-height: 1.0;
   margin-bottom: 20px;
}

.hero__subtitle {
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero__subtitle--mobile { display: none; }

.hero__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===================================================
   ABOUT
=================================================== */
.about {
  padding: 80px 0;
  background: #f5f5f5;
}

.about__layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

.about__text {
  font-size: 17px;
  line-height: 1.6;
  color: #111;
  margin-bottom: 40px;
}

.about__table { border-top: 1px solid #ddd; }

.about__row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid #ddd;
}

.about__label {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  min-width: 160px;
  flex-shrink: 0;
}

.about__value {
  font-size: 15px;
  color: #111;
}

/* ===================================================
   RESULTS
=================================================== */
.results {
  padding: 80px 0;
  background: #fff;
}

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

.results__card {
  border: 2px solid #ddd;
  border-radius: 16px;
  padding: 24px 20px;
  font-size: 15px;
  line-height: 1.5;
  color: #111;
}

/* ===================================================
   FOR YOU
=================================================== */
.for-you {
  padding: 80px 0;
  background: #EF3124;
}

.for-you__list { border-top: 1px solid rgba(255,255,255,0.3); }

.for-you__item {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  font-size: 17px;
  color: #fff;
  max-width: 700px;
  margin-left: auto;
}

/* ===================================================
   PROGRAM
=================================================== */
.program {
  padding: 80px 0;
  background: #7FE000;
}

/* ===================================================
   ACCORDION
=================================================== */
.accordion { display: flex; flex-direction: column; gap: 8px; }

.accordion__item {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.accordion__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  background: transparent;
}

.accordion__head:hover { background: rgba(0,0,0,0.02); }

.accordion__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.accordion__module {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #888;
  text-transform: uppercase;
}

.accordion__name {
  font-size: 17px;
  font-weight: 700;
  color: #111;
}

.accordion__icon {
  flex-shrink: 0;
  transition: transform 0.25s;
}

.accordion__item--open .accordion__icon,
.accordion__item[data-open] .accordion__icon {
  transform: rotate(180deg);
}

.accordion__body {
  display: none;
  padding: 0 24px 20px;
}

.accordion__item--open .accordion__body,
.accordion__item[data-open] .accordion__body {
  display: block;
}

.accordion__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion__list li {
  font-size: 15px;
  color: #333;
  padding-left: 16px;
  position: relative;
}

.accordion__list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #EF3124;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  top: 1px;
}

.accordion__body p {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}

/* FAQ accordion */
.accordion--faq .accordion__head { padding: 22px 0; }
.accordion--faq .accordion__item { background: transparent; border-radius: 0; border-bottom: 1px solid #ddd; }
.accordion--faq .accordion__item:first-child { border-top: 1px solid #ddd; }
.accordion--faq .accordion__body { padding: 0 0 20px; }
.accordion--faq .accordion__head:hover { background: transparent; }

/* ===================================================
   FAQ
=================================================== */
.faq {
  padding: 80px 0;
  background: #fff;
}

/* ===================================================
   CONTACTS
=================================================== */
.contacts {
  padding: 80px 0;
  background: #fff;
}

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

.contacts__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
  transition: opacity 0.2s;
}

.contacts__item:hover { opacity: 0.75; }

.contacts__arrow { flex-shrink: 0; }

.contacts__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contacts__name {
  font-size: 17px;
  font-weight: 700;
  color: #111;
}

.contacts__url {
  font-size: 14px;
  color: #666;
}

/* ===================================================
   FOOTER
=================================================== */
.footer {
  background: #f5f5f5;
  padding: 60px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.footer__heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer__subheading {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  margin-top: 16px;
}

.footer__subheading--mt { margin-top: 24px; }

.footer__link {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.footer__link:hover { color: #EF3124; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid #ddd;
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
}

.footer__legal p {
  font-size: 12px;
  color: #888;
  line-height: 1.6;
}

.footer__legal a {
  color: #888;
  text-decoration: underline;
}

.footer__socials {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.footer__social { transition: opacity 0.2s; }
.footer__social:hover { opacity: 0.8; }

.footer__back-top {
  display: none;
  width: 100%;
  padding: 18px;
  border: 2px solid #ddd;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  background: transparent;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  transition: background 0.2s;
}

.footer__back-top:hover { background: #ebebeb; }

/* ===================================================
   POPUP
=================================================== */
.popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.popup.is-open {
  opacity: 1;
  pointer-events: all;
}

.popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.popup__window {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px 40px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  transform: translateY(20px);
  transition: transform 0.25s;
}

.popup.is-open .popup__window { transform: translateY(0); }

.popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0f0f0;
  transition: background 0.2s;
}

.popup__close:hover { background: #e0e0e0; }

.popup__title {
  font-size: 24px;
  font-weight: 900;
  color: #111;
  margin-bottom: 28px;
}

/* ===================================================
   LEAD FORM
=================================================== */
.lead-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lead-form__field {
  display: flex;
  flex-direction: column;
}

.lead-form__field--full { grid-column: 1 / -1; }

.lead-form__field input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  color: #111;
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s;
}

.lead-form__field input:focus { border-color: #111; background: #fff; }

.lead-form__field input::placeholder { color: #aaa; }

.lead-form__submit {
  grid-column: 1 / -1;
  padding: 16px;
  background: #EF3124;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
  margin-top: 4px;
}

.lead-form__submit:hover { opacity: 0.88; }

/* ===================================================
   RESPONSIVE — TABLET (max 1024px)
=================================================== */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }

  .hero__title { font-size: 48px; }

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

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

  .contacts__grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ===================================================
   RESPONSIVE — MOBILE (max 768px)
=================================================== */
@media (max-width: 768px) {
  .container { padding: 0 16px; }

  /* Header */
  .header__nav { display: none; }
  .header__search { display: none; }
  .header__burger { display: flex; }
  .header__login { padding: 8px 18px; font-size: 14px; }
  .header__inner { gap: 12px; }

  /* Hero */
  .hero {
    min-height: auto;
    background-image: url('images/hero-mobile.png');
    background-position: center top;
    background-size: 100% auto;
    padding-top: 220px;
  }

  .hero__inner {
    display: block;
    padding-top: 24px;
    padding-bottom: 40px;
    min-height: auto;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__back { display: none; }

  .hero__title { font-size: 36px; }

  .hero__subtitle { display: none; }
  .hero__subtitle--mobile {
    display: block;
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { width: 100%; text-align: center; border-radius: 14px; }

  /* Section titles */
  .section-title { font-size: 28px; margin-bottom: 24px; }

  /* About */
  .about { padding: 48px 0; border-radius: 20px 20px 0 0; margin-top: -20px; position: relative; }

  .about__layout { grid-template-columns: 1fr; gap: 0; }
  .about__left { display: none; }

  .about__row { flex-direction: column; gap: 4px; }
  .about__label { min-width: auto; font-size: 13px; color: #888; font-weight: 500; }
  .about__value { font-size: 16px; font-weight: 700; }

  /* Results */
  .results { padding: 48px 0; }
  .results__grid { grid-template-columns: 1fr; }

  /* For you */
  .for-you { padding: 48px 0; }
  .for-you__item { margin-left: 0; }

  /* Program */
  .program { padding: 48px 0; }

  /* FAQ */
  .faq { padding: 48px 0; }

  /* Contacts */
  .contacts { padding: 48px 0; }

  /* Footer */
  .footer { padding: 32px 0 24px; }
  .footer__grid { display: none; }
  .footer__back-top { display: flex; }
  .footer__bottom { flex-direction: column; gap: 16px; }
  .footer__socials { flex-direction: row; }

  /* Popup */
  .popup__window {
    padding: 40px 20px 28px;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    transform: translateY(100%);
  }

  .popup.is-open .popup__window { transform: translateY(0); }

  .lead-form__grid { grid-template-columns: 1fr; }
  .lead-form__field--full { grid-column: 1; }
}

/* ===================================================
   MOBILE NAV OPEN STATE
=================================================== */
.header__nav.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 24px 16px;
  border-bottom: 1px solid #e8e8e8;
  z-index: 99;
  gap: 20px;
}

.header__nav.is-open .header__nav-link {
  font-size: 18px;
}
