/* ========================================
   Гроші На Автопілоті — Landing Page Styles
   Mobile-first approach
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-primary-dark: #1B3C35;
  --color-primary: #2D6A4F;
  --color-accent: #52B788;
  --color-accent-hover: #40916C;
  --color-bg: #FAFAF7;
  --color-bg-alt: #F0F5F1;
  --color-white: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-secondary: #5A5A5A;
  --color-text-light: #8A8A8A;
  --color-border: #E0E0D8;
  --color-error: #D64045;
  --color-success: #2D6A4F;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 2px 16px rgba(27, 60, 53, 0.06);
  --shadow-card-hover: 0 4px 24px rgba(27, 60, 53, 0.1);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

input {
  font-family: inherit;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography --- */
.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-primary-dark);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-title--left {
  text-align: left;
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 14px 32px;
  transition: background-color var(--transition), transform var(--transition);
  min-height: 48px;
  text-align: center;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
}

.btn--primary:active {
  transform: scale(0.98);
}

.btn--full {
  width: 100%;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}

.header--scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

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

.header__logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

.header__nav {
  display: none;
  gap: 32px;
}

.header__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition);
}

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

.header__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-right: -8px;
}

.header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

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

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

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

/* Mobile nav overlay */
.header__nav.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--color-bg);
  padding: 32px 20px;
  gap: 24px;
  z-index: 99;
}

.header__nav.open .header__link {
  font-size: 1.25rem;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  padding: 108px 0 64px;
  background: linear-gradient(160deg, #0F2A23 0%, #1B3C35 40%, #234F44 100%);
  color: var(--color-white);
  overflow: hidden;
  min-height: 0;
}

/* Decorative background shapes */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
}

.hero__shape--1 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  top: -120px;
  right: -80px;
}

.hero__shape--2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #52B788 0%, transparent 70%);
  bottom: -80px;
  left: -60px;
}

.hero__shape--3 {
  width: 160px;
  height: 160px;
  border: 2px solid rgba(82, 183, 136, 0.3);
  top: 50%;
  right: 15%;
  transform: translateY(-50%);
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 620px;
}

.hero__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
  padding: 6px 14px;
  background: rgba(82, 183, 136, 0.12);
  border-radius: 100px;
}

.hero__title {
  font-size: clamp(1.85rem, 6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero__highlight {
  position: relative;
  white-space: nowrap;
}

.hero__highlight::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 6px;
  background: var(--color-accent);
  opacity: 0.35;
  border-radius: 3px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.65;
  opacity: 0.75;
  margin-bottom: 36px;
  max-width: 520px;
}

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

.btn--lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  min-height: 48px;
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
}

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

.hero__avatars {
  display: flex;
}

.hero__avatar-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-primary);
  border: 2px solid var(--color-primary-dark);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__avatar-dot + .hero__avatar-dot {
  margin-left: -8px;
}

.hero__proof-text {
  font-size: 0.85rem;
  opacity: 0.6;
}

.hero__proof-text strong {
  opacity: 1;
  color: var(--color-accent);
}

/* ========================================
   PAIN POINTS
   ======================================== */
.pains {
  padding: 64px 0;
}

.pains__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 40px;
}

.pain-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow var(--transition);
}

.pain-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.pain-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pain-card__text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text);
}

/* ========================================
   COURSE PROGRAM / TIMELINE
   ======================================== */
.program {
  padding: 64px 0;
  background-color: var(--color-bg-alt);
}

.timeline {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-accent), var(--color-primary));
  border-radius: 1px;
}

.timeline__item {
  position: relative;
  padding-bottom: 32px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: -40px;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 6px;
}

.timeline__text {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ========================================
   ABOUT AUTHOR
   ======================================== */
.author {
  padding: 64px 0;
}

.author__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.author__photo {
  flex-shrink: 0;
}

.author__image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--color-border);
  background-color: var(--color-bg-alt);
}

.author__content {
  text-align: center;
}

.author__content .section-title--left {
  text-align: center;
}

.author__text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.author__text:last-of-type {
  margin-bottom: 28px;
}

.author__stats {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.stat__number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat__label {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 2px;
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials {
  padding: 64px 0;
  background-color: var(--color-bg-alt);
  overflow: hidden;
}

.testimonials__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
}

.testimonials__track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 85%;
  scroll-snap-align: center;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
}

.testimonial-card__text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 20px;
}

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

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-card__name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.testimonial-card__role {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.testimonials__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-border);
  border: none;
  padding: 0;
  transition: background-color var(--transition), transform var(--transition);
  cursor: pointer;
}

.testimonials__dot.active {
  background-color: var(--color-primary);
  transform: scale(1.3);
}

/* ========================================
   PRICING + FORM
   ======================================== */
.pricing {
  padding: 64px 0;
}

.pricing__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pricing__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
}

.pricing__amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.pricing__period {
  font-size: 1rem;
  color: var(--color-text-light);
}

.pricing__includes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing__includes li {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  padding-left: 28px;
  position: relative;
  line-height: 1.5;
}

.pricing__includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--color-bg-alt);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%232D6A4F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
}

/* Form */
.pricing__form-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-card);
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form__input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  min-height: 48px;
}

.form__input::placeholder {
  color: var(--color-text-light);
}

.form__input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.15);
}

.form__input.error {
  border-color: var(--color-error);
}

.form__input.error:focus {
  box-shadow: 0 0 0 3px rgba(214, 64, 69, 0.12);
}

.form__error {
  display: block;
  font-size: 0.8rem;
  color: var(--color-error);
  margin-top: 4px;
  min-height: 0;
}

.form__disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-align: center;
  margin-top: 12px;
  line-height: 1.4;
}

.form__success {
  text-align: center;
  padding: 24px 0;
}

.form__success-icon {
  color: var(--color-success);
  margin-bottom: 16px;
}

.form__success-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 8px;
}

.form__success-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

/* ========================================
   FAQ
   ======================================== */
.faq {
  padding: 64px 0;
  background-color: var(--color-bg-alt);
}

.faq__list {
  max-width: 680px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq__item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.faq__question {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color var(--transition);
}

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

.faq__chevron {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq__question[aria-expanded="true"] .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq__answer p {
  padding: 0 20px 18px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.faq__item.open .faq__answer {
  max-height: 300px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 48px 0 120px;
  background-color: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.footer__logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer__tagline {
  font-size: 0.85rem;
  margin-top: 4px;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__link {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__bottom {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ========================================
   STICKY MOBILE CTA
   ======================================== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

/* ========================================
   RESPONSIVE — Tablet (768px+)
   ======================================== */
@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }

  /* Header */
  .header__inner {
    height: 72px;
  }

  .header__nav {
    display: flex;
  }

  .header__burger {
    display: none;
  }

  /* Hero */
  .hero {
    padding: 140px 0 100px;
  }

  .hero__shape--1 {
    width: 550px;
    height: 550px;
    top: -160px;
    right: -100px;
  }

  .hero__shape--3 {
    width: 220px;
    height: 220px;
  }

  /* Pains */
  .pains {
    padding: 80px 0;
  }

  .pains__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

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

  /* Author */
  .author {
    padding: 80px 0;
  }

  .author__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .author__content {
    text-align: left;
  }

  .author__content .section-title--left {
    text-align: left;
  }

  .author__stats {
    justify-content: flex-start;
  }

  /* Testimonials */
  .testimonials {
    padding: 80px 0;
  }

  .testimonial-card {
    flex: 0 0 45%;
  }

  .testimonials__dots {
    display: none;
  }

  /* Pricing */
  .pricing {
    padding: 80px 0;
  }

  .pricing__inner {
    flex-direction: row;
    gap: 48px;
    align-items: flex-start;
  }

  .pricing__info {
    flex: 1;
  }

  .pricing__form-wrapper {
    flex: 1;
    max-width: 420px;
  }

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

  /* Footer */
  .footer {
    padding-bottom: 48px;
  }

  /* Hide sticky CTA on tablet+ */
  .sticky-cta {
    display: none;
  }
}

/* ========================================
   RESPONSIVE — Desktop (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .container {
    padding: 0 40px;
  }

  .hero {
    padding: 160px 0 120px;
  }

  .hero__shape--1 {
    width: 700px;
    height: 700px;
    top: -200px;
    right: -150px;
    opacity: 0.08;
  }

  .hero__shape--2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -100px;
  }

  .hero__shape--3 {
    width: 280px;
    height: 280px;
    right: 12%;
  }

  .pains {
    padding: 100px 0;
  }

  .program {
    padding: 100px 0;
  }

  .author {
    padding: 100px 0;
  }

  .author__image {
    width: 220px;
    height: 220px;
  }

  .testimonials {
    padding: 100px 0;
  }

  .testimonial-card {
    flex: 0 0 calc(33.333% - 11px);
  }

  .pricing {
    padding: 100px 0;
  }

  .faq {
    padding: 100px 0;
  }

  .pain-card {
    padding: 28px;
  }
}
