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

:root {
  --color-primary: #5CBA3C;
  --color-primary-dark: #4A9E30;
  --color-primary-light: #E8F5E0;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5FAF3;
  --color-text: #333333;
  --color-text-secondary: #6B7280;
  --color-border: #E5E7EB;
  --color-surface: #FFFFFF;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-section: 5rem;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);

  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1 !important; transform: none !important; transition: none !important; }
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ===== Utilities ===== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-section) 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-lg);
  line-height: 1.3;
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.section__lead {
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: var(--space-lg);
}

/* ===== Fade-in Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--telegram {
  background: #2AABEE;
  color: #fff;
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn--telegram:hover {
  background: #229ED9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--whatsapp {
  background: #25D366;
  color: #fff;
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn--whatsapp:hover {
  background: #1DA851;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  padding: var(--space-sm) 0;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header--scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--color-border);
}

.header--scrolled .header__logo {
  color: var(--color-text);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  transition: color 0.3s ease;
}

.header__logo span {
  color: var(--color-primary);
}

/* ===== Nav ===== */
.nav {
  display: none;
  gap: var(--space-sm);
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}

.nav__link:hover {
  color: #fff;
}

.header--scrolled .nav__link {
  color: var(--color-text-secondary);
}

.header--scrolled .nav__link:hover {
  color: var(--color-text);
}

/* ===== Language Switcher ===== */
.lang-switcher {
  display: flex;
  gap: 2px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  padding: 2px;
}

.lang-switcher__link {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}

.lang-switcher__link:hover {
  color: #fff;
}

.lang-switcher__link--active {
  background: var(--color-primary);
  color: #fff;
}

.header--scrolled .lang-switcher {
  background: rgba(0,0,0,0.06);
}

.header--scrolled .lang-switcher__link {
  color: var(--color-text-secondary);
}

.header--scrolled .lang-switcher__link:hover {
  color: var(--color-text);
}

.header--scrolled .lang-switcher__link--active {
  background: var(--color-primary);
  color: #fff;
}

/* ===== Burger ===== */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.header--scrolled .burger span {
  background: var(--color-text);
}

.burger--active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger--active span:nth-child(2) {
  opacity: 0;
}

.burger--active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Mobile Menu ===== */
@media (max-width: 767px) {
  .nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    z-index: 105;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav--open {
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    font-size: 1.25rem;
    color: var(--color-text);
  }

  .nav__link:hover {
    color: var(--color-primary);
  }

  .nav--open ~ .lang-switcher {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 106;
    background: rgba(0,0,0,0.06);
  }

  .nav--open ~ .lang-switcher .lang-switcher__link {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
  }

  .nav--open ~ .lang-switcher .lang-switcher__link--active {
    background: var(--color-primary);
    color: #fff;
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .burger {
    display: none;
  }
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--space-section) + 60px) var(--space-md) var(--space-section);
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%),
              url('../img/hero-bg.webp') center right/cover no-repeat;
  background-color: #2d4a3e;
  color: #fff;
}

.hero__content {
  max-width: 60%;
  text-align: left;
}

.hero__title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-md);
  color: #fff;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
}

/* ===== About ===== */
.about__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  max-width: 1100px;
  margin: 0 auto;
}

.about__photo-img {
  width: 420px;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

.about__text {
  max-width: 550px;
}

.about__text .section__title {
  text-align: left;
  margin-bottom: var(--space-md);
}

.about__text p {
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.about__text p:last-child {
  color: var(--color-text);
}

/* ===== Benefits ===== */
.benefits {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 900px;
  margin: 0 auto;
}

.benefit {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.benefit:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.benefit__icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: 12px;
}

.benefit__text {
  font-size: 1rem;
  font-weight: 500;
}

/* ===== Video ===== */
.video__wrapper {
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.video__wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video__wrapper lite-youtube {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-lg);
}

/* ===== Path Cards ===== */
.paths__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: 960px;
  margin: 0 auto;
}

.path-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.path-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.path-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.path-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.path-card:nth-child(2) .path-card__image img {
  object-position: top;
}

.path-card:hover .path-card__image img {
  transform: scale(1.05);
}

.path-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  background: var(--color-bg-alt);
}

.path-card__body {
  padding: var(--space-lg);
}

.path-card__title {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.path-card__desc {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

/* ===== Steps ===== */
.steps__timeline {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  position: relative;
}

.steps__timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 48px;
  bottom: 24px;
  width: 2px;
  background: var(--color-primary-light);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  position: relative;
}

.step__number {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.step__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.step__desc {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq__list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq__item[open] {
  box-shadow: var(--shadow-sm);
}

.faq__question {
  padding: var(--space-md);
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-primary);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: var(--space-sm);
}

.faq__item[open] .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 var(--space-md) var(--space-md);
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===== Contact ===== */
.contact {
  text-align: center;
}

.contact__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

/* ===== Footer ===== */
.footer {
  padding: var(--space-lg) 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer__disclaimer {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
}

.footer__credit {
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-sm);
}

.footer__credit a {
  color: var(--color-primary);
  font-weight: 600;
  transition: color var(--transition);
}

.footer__credit a:hover {
  color: var(--color-primary-dark);
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  color: #fff;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  font-size: 0.875rem;
  z-index: 9999;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner__link {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.cookie-banner__btn--decline {
  background: transparent;
  color: #ccc;
  border: 1px solid #555;
}

.cookie-banner__btn--decline:hover {
  background: rgba(255,255,255,0.1);
}

@media (max-width: 767px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
  }
}

/* ===== Mobile (< 768px) ===== */
@media (max-width: 767px) {
  .hero {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.55) 100%
      ),
      url('../img/hero-bg-mobile.webp') center center/cover no-repeat;
    min-height: 100svh;
    align-items: center;
  }

  .hero__content {
    max-width: 100%;
    text-align: center;
  }

  .hero__title {
    font-size: 2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  }

  .hero__subtitle {
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  }

  .hero__badges {
    justify-content: center;
  }
}

/* ===== Tablet (768px) ===== */
@media (min-width: 768px) {
  .hero__title {
    font-size: 3rem;
  }

  .section__title {
    font-size: 2.25rem;
  }

  .about__inner {
    flex-direction: row;
    align-items: center;
  }

  .about__photo-img {
    width: 440px;
    height: 500px;
  }

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

  .paths__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact__buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* ===== Desktop (1024px) ===== */
@media (min-width: 1024px) {
  .hero__title {
    font-size: 3.5rem;
  }

  .section__title {
    font-size: 2.5rem;
  }

  .about__photo-img {
    width: 480px;
    height: 540px;
  }

  .about__text .section__title {
    font-size: 2rem;
  }

  .benefits {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .step {
    gap: var(--space-lg);
  }
}
