/* --- Модальное окно реферальной программы --- */
#modal-referral .modal-window ul {
  margin-bottom: 1.1rem;
  padding-left: 1.2rem;
}
#modal-referral .modal-window li {
  margin-bottom: 0.4rem;
}
/* --- Современный cookie consent banner --- */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
}
.cookie-consent-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-consent-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.13);
  padding: 1.3rem 1.7rem 1.1rem 1.7rem;
  margin: 1.2rem;
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 1rem;
}
.cookie-consent-title {
  font-weight: 700;
  font-size: 1.13rem;
  margin-bottom: 0.4rem;
}
.cookie-consent-text {
  color: #444;
  margin-bottom: 1.1rem;
  font-size: 0.98rem;
}
.cookie-consent-actions {
  display: flex;
  gap: 0.7rem;
  width: 100%;
}
.cookie-btn {
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  background: #f3f4f6;
  color: #222;
}
.cookie-btn.accept {
  background: var(--accent-dark);
  color: #fff;
}
.cookie-btn.accept:hover {
  background: var(--accent-sky);
}
.cookie-btn.decline {
  background: #e2e8f0;
  color: #444;
}
.cookie-btn.decline:hover {
  background: #cbd5e1;
}
.cookie-btn.settings {
  background: #f3f4f6;
  color: #222;
}
.cookie-btn.settings:hover {
  background: #e2e8f0;
}
.cookie-consent-content a {
  color: var(--accent-dark);
  text-decoration: underline;
}
@media (max-width: 600px) {
  .cookie-consent-content {
    padding: 1rem 0.7rem 0.9rem 0.7rem;
    font-size: 0.97rem;
    max-width: 98vw;
  }
  .cookie-consent-title {
    font-size: 1.01rem;
  }
}
/* --- Cookie consent --- */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: rgba(255,255,255,0.98);
  box-shadow: 0 -2px 16px rgba(0,0,0,0.07);
  z-index: 1200;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0 0 18px 0;
}
.cookie-box {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 1.1rem 1.5rem;
  font-size: 1rem;
  max-width: 540px;
}
.cookie-box button {
  background: var(--accent-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.cookie-box button:hover {
  background: var(--accent-sky);
}
.cookie-box a {
  color: var(--accent-dark);
  text-decoration: underline;
}
/* --- Модальные окна оферты и политики --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.35);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-window {
  background: #fff;
  border-radius: 18px;
  max-width: 540px;
  width: 92vw;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  position: relative;
}

.modal-window h2 {
  margin-top: 0;
  margin-bottom: 1.1rem;
  font-size: 1.35rem;
}
.modal-window h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.7rem;
  font-size: 1.08rem;
}
.modal-window ul {
  margin-bottom: 1.1rem;
  padding-left: 1.2rem;
}
.modal-window p {
  margin-bottom: 0.8rem;
}
.modal-close {
  margin-top: 1.2rem;
  background: var(--accent-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.modal-close:hover {
  background: var(--accent-sky);
}
:root {
  --bg-main: #f8fafc;
  --bg-white: #ffffff;
  --accent-dark: #17a589;
  --accent-sky: #14b8a6;
  --accent-soft: #5eead4;
  --accent-gold: #fdbe30;
  --success: #10b981;
  --text-main: #1f2937;
  --text-title: #0f172a;
  --line: #e2e8f0;
  --card-shadow: 0 12px 24px rgba(23, 165, 137, 0.08);
  --radius-lg: 22px;
  --radius-md: 14px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf9 100%);
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  color: var(--text-title);
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.4rem);
  text-align: center;
  margin-bottom: 0.8rem;
}

h3 {
  font-size: 1.12rem;
}

p {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.bg-layer {
  position: fixed;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  filter: blur(55px);
  z-index: -2;
  opacity: 0.5;
}

.bg-layer-top {
  right: -180px;
  top: -120px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.3), rgba(94, 234, 212, 0));
}

.bg-layer-bottom {
  left: -180px;
  bottom: -150px;
  background: radial-gradient(circle, rgba(23, 165, 137, 0.18), rgba(94, 234, 212, 0));
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-row {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: 1rem;
  color: var(--accent-dark);
  position: relative;
}

.brand::before {
  content: "★ ★ ★ ★ ★";
  display: block;
  position: absolute;
  top: -1.05rem;
  left: -0.15rem;
  font-size: 0.55rem;
  color: var(--accent-gold);
  letter-spacing: 0.4rem;
  line-height: 1;
}

.brand.brand-image::before {
  content: none;
}

.brand-logo {
  display: block;
  width: 165px;
  height: auto;
}

.brand-star {
  color: var(--accent-gold);
  font-size: 1.1rem;
  line-height: 1;
}

.brand-accent {
  color: inherit;
}

.nav {
  display: flex;
  gap: 1.2rem;
  font-weight: 600;
  color: #334155;
}

.nav a:hover {
  color: var(--accent-dark);
}

.header-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.25rem;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px) scale(1.03);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #17a589, #14b8a6);
  box-shadow: 0 12px 25px rgba(23, 165, 137, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(20, 184, 166, 0.35);
}

.btn-ghost {
  background: #edf2f7;
  color: #334155;
}

.btn-light {
  background: #ccf7f1;
  color: #0d6b5e;
}

.hero {
  padding: 5.8rem 0 4.2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  background: #ccf7f1;
  color: #0d6b5e;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-lead {
  max-width: 64ch;
  font-size: 1.06rem;
  color: #334155;
}

.hero-actions {
  margin: 1.8rem 0 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.hero-points li::before {
  content: "●";
  color: var(--accent-sky);
  margin-right: 0.5rem;
}

.dashboard-mockup {
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--card-shadow);
  border: 1px solid #e6eef8;
  overflow: hidden;
}

.mockup-head {
  min-height: 42px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 0.45rem;
  border-bottom: 1px solid #e2e8f0;
}

.mockup-head span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #cbd5e1;
}

.mockup-body {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.mockup-card {
  background: #f8fafc;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 1rem;
}

.mockup-card p {
  margin-bottom: 0.55rem;
  color: #64748b;
}

.mockup-card strong {
  font-size: 1.2rem;
}

.mockup-card.large {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #f0fdf9, #ccf7f1);
}

.section {
  padding: 4.5rem 0;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 2rem;
  color: #475569;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card,
.price-card,
.result-card,
.audience-card {
  background: var(--bg-white);
  border: 1px solid #e7edf6;
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.price-card:hover,
.result-card:hover,
.audience-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 36px rgba(23, 165, 137, 0.12);
}

.why {
  background: linear-gradient(180deg, #f0fdf9, #ffffff);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.why-grid h2,
#pricing h2,
#results h2 {
  text-align: left;
}

.why-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.metric-card {
  background: linear-gradient(135deg, #ccf7f1, #a7f3d0);
  border: 1px solid #a7f3d0;
  border-radius: 18px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(20, 184, 166, 0.15);
}

.metric-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(13, 107, 94, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d6b5e;
  box-shadow: 0 8px 18px rgba(13, 107, 94, 0.12);
  margin-bottom: 16px;
}

.metric-icon svg {
  width: 32px;
  height: 32px;
}

.metric-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.metric-label {
  font-size: 14px;
  color: #0d6b5e;
  font-weight: 500;
}

.growth-line {
  display: none;
}

.growth-dot {
  display: none;
}

.period-toggle {
  margin: 1.1rem 0 1.8rem;
  display: inline-flex;
  gap: 0.45rem;
  background: #f0fdf9;
  padding: 0.3rem;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
}

.period-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  background: transparent;
  color: #0d6b5e;
  font-weight: 700;
  cursor: pointer;
}

.period-btn.active {
  background: #ffffff;
  box-shadow: 0 6px 15px rgba(15, 23, 42, 0.1);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.price {
  margin: 0.3rem 0;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent-dark);
}

.price-note {
  color: #64748b;
  margin-bottom: 1rem;
}

.price-features {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: #334155;
  display: grid;
  gap: 0.38rem;
}

.price-card.highlight {
  border: 2px solid #5eead4;
  position: relative;
}

.badge {
  position: absolute;
  top: -12px;
  right: 12px;
  background: var(--accent-sky);
  color: #fff;
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.counter {
  color: var(--accent-dark);
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cta {
  padding: 4.5rem 0;
}

.cta-box {
  background: linear-gradient(135deg, #f0fdf9, #ccf7f1);
  border: 1px solid #a7f3d0;
  box-shadow: var(--card-shadow);
  border-radius: 22px;
  padding: 2rem;
  text-align: center;
}

.cta-form {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.cta-form input {
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 0.86rem 1.1rem;
  min-width: 260px;
  font: inherit;
}

.footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding-top: 1.3rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-links a {
  color: #17a589;
  font-weight: 600;
}

.copyright {
  margin: 1.15rem auto 0;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  padding: 0 0 1.1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1020px) {
  .nav {
    display: none;
  }

  .hero-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-grid,
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .why-grid h2,
  #pricing h2,
  #results h2 {
    text-align: center;
  }

  .period-toggle {
    display: flex;
    width: fit-content;
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .header-row {
    min-height: 70px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.65rem 0;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
  }

  .features-grid,
  .pricing-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    padding: 1.3rem;
  }

  .cta-form input,
  .cta-form button {
    width: 100%;
  }
}
