/* ===== DESIGN TOKENS ===== */
:root {
  --primary: #1B365D;
  --primary-light: #8D9AAE;
  --primary-dark: #0F1F3D;
  --accent: #FF6B35;
  --accent-hover: #E55A25;
  --accent-light: #FFF0E8;
  --success: #00B894;
  --warning: #FDCB6E;
  --danger: #E74C3C;

  --text: #2D3436;
  --text-secondary: #636E72;
  --border: #DFE6E9;
  --bg: #F8F9FA;
  --surface: #FFFFFF;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 100px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --shadow-accent: 0 4px 12px rgba(255,107,53,0.3);

  --header-h: 64px;
  --container: 1200px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ===== ACCESSIBILITY ===== */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--primary); color: white;
  padding: 8px 16px; border-radius: var(--radius-md);
  z-index: 1000;
}
.skip-link:focus { top: 8px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ===== LAYOUT ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 800px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===== SECTIONS ===== */
.section { padding: 48px 0; }
.section--alt { background: var(--bg); }
.section--cta { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; }
.section--cta .section__title { color: white; }
.section--cta .section__subtitle { color: rgba(255,255,255,0.8); }
.section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700; text-align: center;
  margin-bottom: 16px; color: var(--primary);
}
.section__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  text-align: center; color: var(--text-secondary);
  max-width: 700px; margin: 0 auto 40px;
}
.section__cta { text-align: center; margin-top: 40px; }
.section__micro-cta { text-align: center; margin-top: 32px; font-size: 15px; color: var(--text-secondary); }
.section__micro-cta a { color: var(--accent); font-weight: 600; }
.section__note { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-secondary); }
@media (min-width: 768px) { .section { padding: 80px 0; } }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 16px; font-weight: 600;
  padding: 14px 32px; border-radius: var(--radius-md);
  min-height: 48px; transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: white; }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-accent); }
.btn--primary:active { transform: translateY(0); }
.btn--secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn--secondary:hover { background: var(--primary); color: white; }
.section--cta .btn--secondary { color: white; border-color: white; }
.section--cta .btn--secondary:hover { background: white; color: var(--primary); }
.btn--text { color: var(--accent); font-weight: 600; padding: 14px 0; min-height: auto; }
.btn--text:hover { opacity: 0.8; }
.btn--sm { padding: 8px 20px; font-size: 14px; min-height: 40px; }
.btn--lg { padding: 16px 40px; font-size: 17px; }
.btn--full { width: 100%; }

@keyframes subtle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,53,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255,107,53,0); }
}
.pulse { animation: subtle-pulse 3s infinite; }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h); background: rgba(255,255,255,0.95);
  transition: all 0.3s ease; border-bottom: 1px solid transparent;
}
.header.scrolled { backdrop-filter: blur(12px); border-bottom-color: var(--border); box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.header__logo { font-size: 20px; font-weight: 700; color: var(--primary); }
.header__logo span { color: var(--accent); }
.header__nav { display: none; gap: 32px; }
.header__link { font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; }
.header__link:hover { color: var(--primary); }
.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone { display: none; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text); }
.header__phone svg { color: var(--accent); }

.header__burger { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
.header__burger span { display: block; width: 22px; height: 2px; background: var(--text); transition: all 0.3s; }
.header__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (min-width: 1024px) {
  .header__nav { display: flex; }
  .header__phone { display: flex; }
  .header__burger { display: none; }
  .header__actions .btn { display: inline-flex; }
}
@media (max-width: 1023px) {
  .header__actions .btn { display: none; }
  .header__nav.open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: white; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); padding: 8px 0;
  }
  .header__nav.open .header__link { padding: 12px 24px; display: block; }
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; padding: 8px 16px;
  border-radius: var(--radius-full); margin-bottom: 24px;
}
.badge--warning { background: #FFF3E0; color: #E65100; border: 1px solid #FFE0B2; }

/* ===== HERO ===== */
.hero { padding: calc(var(--header-h) + 40px) 0 48px; }
.hero__inner { display: grid; gap: 40px; align-items: center; }
.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700; line-height: 1.15;
  color: var(--primary); margin-bottom: 20px;
}
.hero__title em { font-style: normal; color: var(--accent); }
.hero__subtitle { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-secondary); margin-bottom: 12px; }
.hero__text { font-size: 15px; color: var(--text-secondary); margin-bottom: 28px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.trust-item svg { color: var(--success); flex-shrink: 0; }

@media (min-width: 1024px) {
  .hero { padding: calc(var(--header-h) + 64px) 0 80px; }
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; }
}

/* ===== MOCKUP ===== */
.hero__mockup, .solution__mockup {
  background: var(--primary-dark); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.mockup-header {
  display: flex; gap: 6px; padding: 12px 16px;
  background: rgba(255,255,255,0.05);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--red { background: #ff5f57; }
.dot--yellow { background: #ffbd2e; }
.dot--green { background: #28ca42; }
.mockup-body { padding: 20px; color: white; }
.mockup-title { font-size: 14px; font-weight: 600; margin-bottom: 16px; opacity: 0.7; }
.mockup-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.mockup-stat { text-align: center; padding: 12px; background: rgba(255,255,255,0.06); border-radius: var(--radius-md); font-size: 12px; color: rgba(255,255,255,0.6); }
.mockup-stat span { display: block; font-size: 24px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.mockup-chart { height: 80px; background: linear-gradient(to right, rgba(255,107,53,0.1), rgba(255,107,53,0.3)); border-radius: var(--radius-sm); }
.mockup-list { display: flex; flex-direction: column; gap: 8px; }
.mockup-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm); font-size: 13px;
}
.status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status--done { background: var(--success); }
.status--progress { background: var(--accent); }
.status--pending { background: var(--text-secondary); }
.tag {
  margin-left: auto; font-size: 11px; padding: 2px 8px;
  border-radius: var(--radius-full); background: rgba(0,184,148,0.2); color: var(--success);
}
.tag--blue { background: rgba(116,185,255,0.2); color: #74B9FF; }
.tag--gray { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); }

/* ===== CARDS ===== */
.card {
  background: white; border-radius: var(--radius-lg);
  padding: 28px; border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 56px; height: 56px; border-radius: var(--radius-md);
  background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card__icon--danger { background: #FDEDEC; color: var(--danger); }
.card__title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card__text { font-size: 15px; color: var(--text-secondary); line-height: 1.5; }

/* ===== SOLUTION ===== */
.solution__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .solution__grid { grid-template-columns: 1fr 1fr; } }
.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-list li {
  display: flex; gap: 14px; align-items: flex-start;
}
.feature-list li svg { flex-shrink: 0; margin-top: 2px; }
.feature-list li strong { display: block; font-size: 16px; margin-bottom: 2px; }
.feature-list li span { font-size: 14px; color: var(--text-secondary); }

/* ===== METRICS ===== */
.metric { text-align: center; padding: 24px 16px; }
.metric__prefix { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.metric__number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700; color: var(--primary); line-height: 1;
  display: inline;
}
.metric__suffix { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--primary); }
.metric__label { font-size: 15px; font-weight: 600; margin-top: 8px; }
.metric__desc { font-size: 13px; color: var(--text-secondary); margin-top: 8px; max-width: 260px; margin-left: auto; margin-right: auto; }

/* ===== TIMELINE ===== */
.timeline { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 40px; }
.timeline__step {
  position: relative; padding: 0 0 32px 24px;
  border-left: 2px solid var(--border);
}
.timeline__step:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline__number {
  position: absolute; left: -41px; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--primary); color: white;
  font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.timeline__title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.timeline__text { font-size: 15px; color: var(--text-secondary); margin-bottom: 8px; }
.timeline__duration {
  display: inline-block; font-size: 12px; font-weight: 600;
  background: var(--accent-light); color: var(--accent);
  padding: 4px 10px; border-radius: var(--radius-full);
}

@media (min-width: 1024px) {
  .timeline { flex-direction: row; padding-left: 0; gap: 0; }
  .timeline__step {
    flex: 1; border-left: none; padding: 60px 16px 0 16px;
    text-align: center; border-top: 2px solid var(--border);
  }
  .timeline__step:last-child { border-top: 2px solid var(--border); }
  .timeline__number {
    left: 50%; top: -20px; transform: translateX(-50%);
  }
}

/* ===== LOGOS ===== */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 40px; }
.logos__item {
  padding: 10px 20px; background: white; border: 1px solid var(--border);
  border-radius: var(--radius-md); font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
}

/* ===== TESTIMONIALS ===== */
.testimonial {
  background: white; border-radius: var(--radius-lg);
  padding: 28px; border: 1px solid var(--border);
}
.testimonial__text {
  font-size: 15px; font-style: italic; color: var(--text);
  margin-bottom: 16px; line-height: 1.6;
}
.testimonial__author { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.testimonial__info strong { display: block; font-size: 14px; }
.testimonial__info span { font-size: 13px; color: var(--text-secondary); }
.testimonial__result {
  font-size: 13px; font-weight: 600; color: var(--success);
  padding: 6px 12px; background: rgba(0,184,148,0.08);
  border-radius: var(--radius-sm); display: inline-block;
}

/* ===== PRICING ===== */
.pricing-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  text-align: center; position: relative;
  transition: all 0.3s ease;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card--featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.pricing-card__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: white;
  font-size: 12px; font-weight: 600; padding: 4px 16px;
  border-radius: var(--radius-full);
}
.pricing-card__name { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.pricing-card__desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.pricing-card__price { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 24px; }
.pricing-card__features { text-align: left; margin-bottom: 24px; }
.pricing-card__features li { padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--bg); }
.pricing-card .btn { width: 100%; }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__question {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 20px 0; text-align: left;
  font-size: 16px; font-weight: 600;
}
.faq__question svg { flex-shrink: 0; transition: transform 0.3s; }
.faq__item.open .faq__question svg { transform: rotate(45deg); }
.faq__answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq__item.open .faq__answer { max-height: 500px; }
.faq__answer p { padding-bottom: 20px; font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* ===== FORM ===== */
.form { max-width: 560px; margin: 0 auto; }
.form__group { margin-bottom: 16px; }
.form__row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: rgba(255,255,255,0.9); }
.form__input {
  width: 100%; height: 48px; padding: 12px 16px;
  font-size: 16px; border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md); background: rgba(255,255,255,0.1);
  color: white; transition: border-color 0.2s;
}
.form__input::placeholder { color: rgba(255,255,255,0.4); }
.form__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,107,53,0.2); }
.form__input.error { border-color: var(--danger); }
.form__select { appearance: none; cursor: pointer; }
.form__select option { color: var(--text); background: white; }
.form .btn { margin-top: 8px; }
.form__privacy {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 12px; font-size: 13px; color: rgba(255,255,255,0.6);
}
.form__error { font-size: 13px; color: #ff6b6b; margin-top: 4px; display: none; }
.form__input.error + .form__error { display: block; }

/* ===== FOOTER ===== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 48px 0 24px; }
.footer__inner { display: grid; gap: 32px; margin-bottom: 32px; }
@media (min-width: 768px) { .footer__inner { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer__logo { font-size: 20px; font-weight: 700; color: white; display: block; margin-bottom: 8px; }
.footer__logo span { color: var(--accent); }
.footer__desc { font-size: 14px; }
.footer__contacts, .footer__legal { display: flex; flex-direction: column; gap: 8px; }
.footer__link { font-size: 14px; transition: color 0.2s; }
.footer__link:hover { color: white; }
.footer__copy { font-size: 13px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }

/* ===== MOBILE CTA ===== */
.mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  padding: 8px 16px; background: white;
  border-top: 1px solid var(--border); box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
  z-index: 99;
}
@media (max-width: 1023px) {
  .mobile-cta.visible { display: block; }
  body { padding-bottom: 64px; }
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
