/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #f59e0b;
  --text: #0f172a;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
.section-label {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 18px;
  margin-bottom: 48px;
}

section { padding: 96px 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn--primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,99,235,.3); }

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover { background: var(--primary-light); transform: translateY(-1px); }

.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--full { width: 100%; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
}
.logo span { color: var(--primary); }

.nav {
  display: flex;
  gap: 24px;
  flex: 1;
}
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}
.nav a:hover { color: var(--primary); }

.burger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin-left: auto;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}
.mobile-nav a {
  padding: 12px 0;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: flex; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 50%, #f0f7ff 100%);
  padding: 80px 0 96px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.hero__title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero__title span { color: var(--primary); }

.hero__sub {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero__btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  gap: 32px;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat span { font-size: 13px; color: var(--text-muted); }

/* Hero Visual */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}

.map-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  width: 280px;
  position: relative;
  z-index: 2;
}

.map-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.map-pin { font-size: 28px; }
.map-card__name { font-weight: 700; font-size: 16px; }
.map-card__stars { color: var(--accent); font-size: 14px; }
.map-card__stars span { color: var(--text); font-weight: 600; }

.map-card__img {
  height: 120px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 12px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.map-card__img::after {
  content: '🏢';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 40px;
}

.map-card__stats { display: flex; flex-direction: column; gap: 8px; }
.map-stat { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }

.map-card__badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}

.floating-card {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  animation: float 3s ease-in-out infinite;
}
.fc1 { top: 20px; right: 0; animation-delay: 0s; }
.fc2 { bottom: 60px; right: -10px; animation-delay: 1s; }
.fc3 { bottom: 20px; left: 0; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ===== PROBLEMS ===== */
.problems { background: var(--bg); }
.problems__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.problem-card {
  background: #F3F3FC;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all .2s;
}
.problem-card img {margin: .5em auto;}
.problem-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.problem-card__icon { font-size: 36px; margin-bottom: 16px; }
.problem-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.2;}
.problem-card p { color: var(--text-muted); font-size: 15px; }

.problems__cta { text-align: center; }

/* ===== SERVICES ===== */
.services { background: var(--bg-alt); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-block {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: all .2s;
}
.service-block:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-block__icon {}
.service-block__icon img {margin: 1em auto; width: 128px;}
.service-block h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; line-height: 1.2;}
.service-block ul { display: flex; flex-direction: column; gap: 10px; }
.service-block li {
  font-size: 15px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.service-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* ===== PLATFORMS ===== */
.platforms { background: var(--bg); }
.platforms__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.platform-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all .2s;
}
.platform-card img {margin: .5em auto; width:128px; border-radius: 16px;}
.platform-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.platform-card__logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  margin: 0 auto 16px;
}
.yandex { background: #fc3f1d; }
.gis { background: #00b956; }
.zoon { background: #7c3aed; }
.flamp { background: #f59e0b; }

.platform-card__name { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.platform-card__desc { font-size: 14px; color: var(--text-muted); }

/* ===== CASES ===== */
.cases { background: var(--bg-alt); }
.cases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: none;
  transition: all .2s;
}
.case-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.case-card__tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.case-card__before-after {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.ba-block {
  flex: 1;
  padding: 16px;
  border-radius: 12px;
  font-size: 13px;
}
.ba-before { background: #fef2f2; border: 1px solid #fecaca; }
.ba-after { background: #f0fdf4; border: 1px solid #bbf7d0; }
.ba-label { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; color: var(--text-muted); }
.ba-rating { font-size: 14px; margin-bottom: 4px; }
.ba-calls { font-weight: 600; margin-bottom: 4px; }
.ba-pos { font-size: 12px; color: var(--text-muted); }
.ba-arrow { font-size: 20px; color: var(--primary); flex-shrink: 0; }

.case-card__result {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
}

/* ===== PROCESS ===== */
.process { background: var(--bg); }
.process__steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 160px;
  text-align: center;
  padding: 0 16px;
}

.step img {margin: 0 auto;}

.step__num {
  width: 24px;
  height: 24px;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  margin: 0 auto 16px;
}
.step:nth-child(1) .step__num {background: #306FF7;}
.step:nth-child(2) .step__num  {background: #9B90F3;}
.step:nth-child(3) .step__num {background: #4EA651;}
.step:nth-child(4) .step__num {background: #FDC061;}
.step:nth-child(5) .step__num {background: #5090FC;}

.step__content h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step__content p { font-size: 14px; color: var(--text-muted); }

.step__line {
  flex: 0 0 40px;
  height: 2px;
  background: var(--border);
  margin-top: 28px;
  position: relative;
}
.step__line::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--border);
  border-right: 2px solid var(--border);
  transform: rotate(45deg);
}

/* ===== PRICING ===== */
.pricing { background: var(--bg-alt); }
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
  align-items: start;
}

.pricing-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  transition: all .2s;
}
.pricing-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.pricing-card--popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__name { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.pricing-card__price {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 24px;
}
.pricing-card__price span { font-size: 16px; font-weight: 500; color: var(--text-muted); }

.pricing-card__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.pricing-card__list li { font-size: 15px; }
.pricing-card__list li.disabled { color: var(--text-muted); }

.pricing__custom {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.pricing__custom p { font-size: 18px; margin-bottom: 20px; color: var(--text-muted); }

/* ===== WHY ===== */
.why { background: var(--bg); }
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.why-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .2s;
}
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.why-card__icon { font-size: 36px; margin-bottom: 16px; }
.why-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.why-card p { font-size: 15px; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq { background: var(--bg-alt); }
.faq__list {margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  gap: 16px;
  transition: background .2s;
}
.faq-item__q:hover { background: var(--bg-alt); }
.faq-item__arrow { flex-shrink: 0; transition: transform .3s; font-size: 12px; color: var(--text-muted); }
.faq-item__q[aria-expanded="true"] .faq-item__arrow { transform: rotate(180deg); }

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s;
}
.faq-item__a.open {
  max-height: 300px;
  padding: 0 24px 20px;
}
.faq-item__a p { color: var(--text-muted); font-size: 15px; line-height: 1.7; }

/* ===== AUDIT FORM ===== */
.audit {
  background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
  color: #fff;
}

.audit__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.audit .section-label {
  background: rgba(255,255,255,.2);
  color: #fff;
}

.audit h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  margin-bottom: 16px;
}

.audit p { font-size: 17px; opacity: .85; margin-bottom: 24px; }

.audit__benefits {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.audit__benefits li { font-size: 15px; opacity: .9; }

.audit__form {
  background: #fff;
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.form-group input {
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s;
  outline: none;
  color: var(--text);
}
.form-group input:focus { border-color: var(--primary); }
.form-group input.error { border-color: #ef4444; }

.form-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}
.form-note a { color: var(--primary); text-decoration: underline; }

/* ===== CONTACTS ===== */
.contacts { background: var(--bg); }
.contacts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contacts__info { display: flex; flex-direction: column; gap: 28px; }

.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-item__icon { font-size: 28px; flex-shrink: 0; }
.contact-item__label { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.contact-item__value { font-size: 17px; font-weight: 600; }
a.contact-item__value:hover { color: var(--primary); }

.messengers { display: flex; gap: 12px; margin-top: 4px; }
.messenger-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  transition: opacity .2s;
}
.messenger-btn:hover { opacity: .85; }
.tg { background: #2aabee; }
.wa { background: #25d366; }

.contacts__map {
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
}
.map-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
}
.map-placeholder span { font-size: 48px; }
.map-placeholder p { font-size: 18px; font-weight: 700; }
.map-placeholder small { color: var(--text-muted); }

/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.7);
  padding: 40px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer .logo { color: #fff; }
.footer p { font-size: 14px; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { font-size: 14px; color: rgba(255,255,255,.5); transition: color .2s; }
.footer__links a:hover { color: #fff; }

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal.open { display: flex; }
.modal__box {
  background: #fff;
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}
.modal__icon { font-size: 56px; margin-bottom: 16px; }
.modal__box h3 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.modal__box p { color: var(--text-muted); margin-bottom: 28px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .audit__inner { grid-template-columns: 1fr; }
  .contacts__grid { grid-template-columns: 1fr; }
  .process__steps { flex-direction: column; align-items: center; }
  .step__line { width: 2px; height: 32px; flex: 0 0 32px; margin: 0; }
  .step__line::after { display: none; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav { display: none; }
  .header__inner .btn--sm { display: none; }
  .burger { display: block; }
  .hero__btns { flex-direction: column; }
  .hero__stats { gap: 20px; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .pricing__grid { grid-template-columns: 1fr; }
  .cases__grid { grid-template-columns: 1fr; }
  .audit__form { padding: 24px; }
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 999;
  width: calc(100% - 48px);
  max-width: 860px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,.14);
  padding: 20px 24px;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .3s;
  opacity: 0;
  pointer-events: none;
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 240px;
}

.cookie-banner__icon { font-size: 28px; flex-shrink: 0; line-height: 1; }

.cookie-banner__text p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.cookie-banner__text p strong { color: var(--text); }
.cookie-banner__text a { color: var(--primary); text-decoration: underline; }
.cookie-banner__text a:hover { opacity: .8; }

.cookie-banner__btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .cookie-banner { bottom: 12px; padding: 16px; }
  .cookie-banner__inner { flex-direction: column; gap: 16px; }
  .cookie-banner__btns { width: 100%; }
  .cookie-banner__btns .btn { flex: 1; }
}
