:root {
  --blue: #45a7f5;
  --blue-dark: #2f8fe0;
  --blue-light: #eaf4ff;
  --ink: #1b2027;
  --gray: #667085;
  --gray-light: #eef2f7;
  --white: #ffffff;
  --radius: 26px;
  --radius-sm: 14px;
  --shadow: 0 16px 30px -20px rgba(27, 32, 39, 0.16);
  --container: 1160px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI Rounded", "SF Pro Rounded", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.test-banner {
  background: var(--ink);
  color: #ffd54a;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  letter-spacing: 0.02em;
}

h1, h2, h3 { font-weight: 800; line-height: 1.15; margin: 0 0 16px; color: var(--ink); }
h1 { font-size: clamp(30px, 4.4vw, 48px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 19px; margin-bottom: 8px; }
p { margin: 0 0 12px; color: var(--gray); }
a { color: var(--blue); text-decoration: none; }
.accent { color: var(--blue); }

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.scribble {
  display: inline-block;
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  color: var(--blue);
  font-size: 16px;
  transform: rotate(-2deg);
  margin: 0 0 10px;
  font-weight: 700;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.scribble-inline { margin: 0; font-size: 14px; }

.section { padding: 88px 0; }
.section:nth-of-type(even) { background: var(--gray-light); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 17px;
  padding: 18px 34px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.button-small { padding: 10px 20px; font-size: 14px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-color: #e6e9ef; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 24px;
}
.logo-img { height: 28px; display: block; }
.main-nav { display: flex; gap: 22px; margin-right: auto; flex-wrap: wrap; }
.main-nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.main-nav a:hover { color: var(--blue); }
.header-phone { color: var(--ink); font-weight: 700; white-space: nowrap; }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 56px; background: var(--gray-light); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-lead { font-size: 18px; max-width: 520px; }
.hero-actions { margin: 28px 0 32px; }
.hero-stats { display: flex; gap: 32px; }
.hero-stats strong { display: block; font-size: 24px; font-weight: 800; color: var(--ink); }
.hero-stats span { font-size: 13px; color: var(--gray); }
.hero-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
}

/* Proof strip */
.proof-strip { background: var(--white); padding: 40px 0; border-bottom: 1px solid #eef1f5; }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.proof-grid strong { display: block; font-size: 26px; font-weight: 800; color: var(--blue); }
.proof-grid span { font-size: 14px; color: var(--gray); }

/* Banner block */
.banner-block {
  background: var(--blue);
  padding: 40px 0;
  text-align: center;
}
.banner-block p {
  color: var(--white);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 800;
  margin: 0;
}

/* Technology */
.technology-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.tech-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.tech-card-head { border-bottom: 1px dashed #dfe4ec; padding-bottom: 16px; margin-bottom: 16px; }
.tech-card-head span { display: block; font-size: 13px; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.tech-card-head strong { font-size: 16px; color: var(--ink); }
.tech-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tech-stats strong { display: block; font-size: 20px; font-weight: 800; color: var(--ink); }
.tech-stats span { font-size: 13px; color: var(--gray); }
.platform-note { margin-top: 28px; }
.platform-note p { text-align: center; font-size: 15px; max-width: 640px; margin: 0 auto; }

/* Product cards */
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.product-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.product-step { font-weight: 800; color: #c9d3e0; font-size: 22px; }
.product-tag {
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.product-summary { font-size: 14.5px; }
.product-details p { font-size: 13.5px; border-top: 1px dashed #e4e8ee; padding-top: 10px; margin: 10px 0 0; }
.product-details span { color: var(--ink); font-weight: 700; }
.containerless-note {
  margin-top: 36px;
  text-align: center;
  font-size: 15px;
  color: var(--gray);
}
.containerless-note strong { color: var(--ink); }

/* Pain cards */
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.seller-pain-grid-short { grid-template-columns: repeat(3, 1fr); }
.mini-steps { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.mini-steps div { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; color: var(--ink); font-weight: 600; }
.mini-steps span {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.report-grid-short { grid-template-columns: 1fr 0.8fr; align-items: center; }
.report-grid-short .report-side { grid-column: auto; order: initial; }
.report-grid-short .report-copy .button { margin-top: 20px; display: inline-flex; }
.pain-card {
  background: var(--white);
  border: 1px solid #e9edf3;
  border-radius: var(--radius);
  padding: 24px;
}
.pain-card > span:first-child {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.pain-card p { font-size: 14px; }
.pain-card strong { display: block; color: var(--ink); font-size: 14.5px; margin-top: 8px; }

/* Quick lead form */
.quick-lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* Report teaser (text block before the second form) */
.check-list-center { max-width: 480px; margin: 24px auto 0; }

/* Second lead form ("получите пример отчёта") */
.sample-report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.second-lead-copy .lead-form { margin-top: 24px; }
.sample-report-grid .report-side { grid-column: auto; order: initial; }
.sample-report-grid .owner-report-preview { margin: 0; }
.lead-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.lead-form label span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.lead-form input[type="text"], .lead-form input[type="tel"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dbe1ea;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
}
.consent-check { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--gray); margin-bottom: 16px; }
.form-submit { width: 100%; }
.form-note { font-size: 12px; margin-top: 12px; }
.form-success { font-size: 14px; font-weight: 700; color: var(--blue-dark); margin-top: 10px; display: none; }
.form-success.is-visible { display: block; }
.form-success.is-error { color: #d64545; }

/* Timeline (zigzag, yasno-style) */
.timeline { display: flex; flex-direction: column; gap: 0; margin-top: 32px; }
.timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  grid-template-rows: auto auto;
  gap: 4px 20px;
  padding: 26px 0;
  border-top: 1px dashed #dfe4ec;
}
.timeline-item:first-child { border-top: none; }
.timeline-number { grid-column: 1; grid-row: 1 / span 2; font-size: 26px; font-weight: 800; color: var(--blue); }
.timeline-item h3 { grid-column: 2; margin-bottom: 4px; }
.timeline-item p { grid-column: 2; margin: 0; font-size: 14.5px; }

/* Report section */
.report-grid { display: grid; grid-template-columns: 1fr 0.9fr; gap: 40px; }
.check-list { list-style: none; padding: 0; margin: 16px 0 0; }
.check-list li { padding-left: 26px; position: relative; margin-bottom: 8px; font-size: 15px; color: var(--ink); }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 800;
}
.report-side { grid-column: 1 / -1; order: 3; }
.owner-report-preview {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  max-width: 420px;
  margin: 0 auto;
}
.owner-report-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.owner-report-head img { height: 20px; }
.owner-report-head span { font-size: 13px; color: var(--gray); }
.owner-report-object { border-bottom: 1px dashed #e4e8ee; padding-bottom: 12px; margin-bottom: 12px; }
.owner-report-object strong { display: block; font-size: 16px; }
.owner-report-object span { font-size: 13px; color: var(--gray); }
.owner-report-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.owner-report-metrics strong { display: block; font-size: 18px; font-weight: 800; color: var(--blue); }
.owner-report-metrics span { font-size: 11px; color: var(--gray); }
.owner-report-chart { margin-bottom: 16px; }
.report-chart-title { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; color: var(--gray); }
.platform-row { display: grid; grid-template-columns: 60px 1fr 40px; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 6px; }
.platform-row i { display: block; height: 6px; background: #e9edf3; border-radius: 4px; position: relative; overflow: hidden; }
.platform-row i::before { content: ""; position: absolute; inset: 0; width: var(--value); background: var(--blue); border-radius: 4px; }
.owner-report-result { background: var(--blue-light); border-radius: var(--radius-sm); padding: 14px; }
.owner-report-result span { font-size: 11px; color: var(--blue); font-weight: 700; text-transform: uppercase; }
.owner-report-result strong { display: block; margin: 4px 0; font-size: 14px; }
.owner-report-result p { font-size: 12px; margin: 0; }
.report-request-form { grid-column: 1 / -1; order: 4; }
.report-form-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.report-form-row label { flex: 1; min-width: 200px; }
.report-form-row .button { flex-shrink: 0; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
.faq-item { border-bottom: 1px solid #e9edf3; }
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.faq-item button span::after { content: "⌄"; font-size: 18px; color: var(--blue); display: inline-block; transition: transform 0.15s ease; }
.faq-item.is-open button span::after { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.2s ease; }
.faq-item.is-open .faq-answer { max-height: 400px; padding-bottom: 20px; }
.faq-answer p { font-size: 14.5px; }

/* Reviews */
.reviews-card {
  background: var(--blue);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  color: var(--white);
}
.rating-main strong { font-size: 34px; font-weight: 800; display: block; }
.rating-main span, .rating-main p { color: rgba(255,255,255,0.85); font-size: 13px; margin: 0; }
.rating-copy .eyebrow { color: #cfe1ff; }
.rating-copy h2, .rating-copy p { color: var(--white); }
.rating-link { background: var(--white); color: var(--blue); }
.rating-link:hover { background: #eaf2ff; }

/* Client stories carousel */
.stories-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.stories-nav { display: flex; justify-content: center; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.stories-nav-item {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 0;
  border: 3px solid transparent;
  background: none;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.45;
  transition: opacity 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.stories-nav-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.stories-nav-item:hover { opacity: 0.75; }
.stories-nav-item.is-active { opacity: 1; border-color: var(--blue); }
.stories-track { position: relative; }
.story-slide { display: none; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; }
.story-slide.is-active { display: grid; }
.story-photo img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
  display: block;
}
.story-text { font-size: 18px; color: var(--ink); line-height: 1.5; }
.story-author strong { display: block; font-size: 16px; color: var(--ink); }
.story-author span { font-size: 14px; color: var(--gray); }
.stories-arrows { display: flex; justify-content: flex-end; gap: 16px; margin-top: 24px; }
.stories-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #dbe1ea;
  background: var(--white);
  color: var(--blue);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.stories-arrow:hover { background: var(--blue-light); border-color: var(--blue); }
.stories-rating { text-align: center; margin: 32px 0 0; font-size: 14px; color: var(--gray); }
.stories-rating strong { color: var(--ink); }

/* Popup lead form modal */
.lead-modal { padding: 36px 32px; }
.lead-modal h2 { font-size: 22px; margin-bottom: 20px; max-width: 380px; }
.lead-modal .lead-form { box-shadow: none; padding: 0; }

/* Thank-you page */
.thanks-section { min-height: 62vh; display: flex; align-items: center; }
.thanks-content { max-width: 480px; margin: 0 auto; text-align: center; }
.thanks-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 30px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.thanks-content p { font-size: 17px; margin-bottom: 32px; }
.thanks-content .button { margin-bottom: 32px; }
.thanks-social { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.thanks-social a { font-weight: 700; font-size: 15px; color: var(--ink); }
.thanks-social a:hover { color: var(--blue); }

/* Contacts */
.contacts-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.contact-links { display: flex; flex-direction: column; gap: 14px; }
.contact-links a { font-weight: 700; font-size: 16px; color: var(--ink); }
.contact-links a:hover { color: var(--blue); }

/* Footer */
.site-footer { background: var(--ink); color: #b8c0cd; padding: 48px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 32px; }
.footer-logo .logo-img { height: 24px; margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #b8c0cd; font-size: 14px; }
.footer-links a:hover { color: var(--white); }
.requisites p { font-size: 12px; color: #8a93a3; margin: 0 0 4px; }

/* Modals */
.modal-backdrop { position: fixed; inset: 0; background: rgba(20,23,31,0.55); z-index: 60; }
.legal-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(680px, 92vw);
  max-height: 84vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  z-index: 61;
}
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--gray); }
.legal-content h3 { font-size: 15px; margin-top: 20px; }
.legal-content p { font-size: 13.5px; }
.legal-warning { font-style: italic; color: #b3873b; }

/* Cookie notice */
.cookie-notice {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  max-width: 480px;
  background: var(--ink);
  color: #d5dae2;
  border-radius: var(--radius);
  padding: 18px 20px;
  z-index: 50;
  font-size: 13px;
  box-shadow: var(--shadow);
}
.cookie-notice a { color: #9dc2ff; }
.cookie-button {
  margin-top: 10px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 700;
  cursor: pointer;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 16px; right: 16px;
  background: var(--blue);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
  z-index: 45;
  display: inline-flex;
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    padding: 16px 24px;
    box-shadow: var(--shadow);
  }
  .header-inner { position: relative; }
  .menu-toggle { display: flex; }
  .hero-grid, .technology-grid, .quick-lead-grid, .report-grid, .contacts-grid, .sample-report-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .reviews-card { grid-template-columns: 1fr; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .floating-cta { display: inline-flex; }
  .story-slide.is-active { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  /* На узких экранах баннер cookie перекрывал плавающую кнопку — поднимаем баннер выше кнопки. */
  .cookie-notice { bottom: 84px; }
}

@media (max-width: 560px) {
  .audience-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .section { padding: 48px 0; }
  .stories-nav-item { width: 52px; height: 52px; }
}
