* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --bg-2: #f7f8fc;
  --bg-3: #eef1f8;
  --border: #e2e6f0;
  --text: #0a0e1a;
  --text-dim: #5a6485;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-glow: rgba(37, 99, 235, 0.25);
  --header-bg: rgba(255, 255, 255, 0.85);
  --hero-grad-from: #0a0e1a;
  --hero-grad-to: #5a6485;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============ HEADER ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex; align-items: center; gap: 40px;
  padding: 20px 32px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 22px; letter-spacing: 0.5px;
  color: var(--text);
}
.logo__mark { color: var(--accent); font-size: 20px; }
.logo__text { font-weight: 800; }
.logo--light { color: var(--text); }

.nav { display: flex; gap: 32px; margin-left: auto; }
.nav__link {
  font-weight: 500; font-size: 15px;
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
}
.nav__link:hover { color: var(--text); }
.nav__link--active { color: var(--text); }
.nav__link--active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -26px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.header__right { display: flex; align-items: center; gap: 24px; }
.header__phone {
  font-weight: 600; font-size: 15px;
  color: var(--text);
  white-space: nowrap;
}
.header__phone:hover { color: var(--accent); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600; font-size: 14px;
  cursor: pointer; border: none;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px 0 var(--accent-glow);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn--lg { padding: 16px 32px; font-size: 16px; }

/* ============ HERO (главный баннер) ============ */
.hero {
  padding: 120px 0 100px;
  background:
    radial-gradient(circle at 20% 0%, rgba(79,124,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(79,124,255,0.08) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,124,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,124,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid rgba(79,124,255,0.3);
  border-radius: 100px;
  background: rgba(79,124,255,0.05);
}
.hero__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  background: linear-gradient(180deg, var(--hero-grad-from) 0%, var(--hero-grad-to) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__lead {
  font-size: 20px;
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.6;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ PAGE HERO (внутренние страницы) ============ */
.page-hero {
  padding: 100px 0 60px;
  background: radial-gradient(circle at 50% 0%, rgba(79,124,255,0.12) 0%, transparent 60%);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 640px;
}

/* ============ SECTIONS ============ */
.section { padding: 100px 0; }
.section--gray { background: var(--bg-2); }
.section__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
}

/* ============ STATS ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}
.stat {
  padding-left: 24px;
  border-left: 2px solid var(--accent);
}
.stat__value {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--text);
}
.stat__label { color: var(--text-dim); font-size: 15px; }

/* ============ FEATURES ============ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature {
  padding: 32px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s;
}
.feature:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px var(--accent-glow);
}
.feature__icon {
  font-size: 36px;
  margin-bottom: 20px;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(79,124,255,0.1);
  border-radius: 14px;
  border: 1px solid rgba(79,124,255,0.2);
}
.feature h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.feature p { color: var(--text-dim); font-size: 15px; }

/* ============ SERVICES (список услуг) ============ */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.service {
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s;
}
.service:hover { border-color: var(--accent); }
.service h3 {
  font-size: 20px; font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.service p { color: var(--text-dim); font-size: 15px; }

/* ============ TEXT BLOCK ============ */
.text-block { max-width: 800px; }
.text-block h2 {
  font-size: 28px; font-weight: 800;
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}
.text-block h2:first-child { margin-top: 0; }
.text-block p {
  color: var(--text-dim);
  margin-bottom: 16px;
  font-size: 17px;
}
.text-block ul {
  list-style: none;
  margin: 16px 0;
}
.text-block ul li {
  padding: 12px 0 12px 32px;
  position: relative;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
}
.text-block ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============ CONTACTS ============ */
.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.contact {
  padding: 32px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.contact h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 16px;
}
.contact p { color: var(--text); line-height: 1.7; }
.contact a:hover { color: var(--accent); }

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  margin-top: 80px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer__col p { color: var(--text-dim); font-size: 15px; margin-bottom: 8px; }
.footer__col a:hover { color: var(--accent); }
.footer__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  margin-bottom: 20px;
}
.footer__desc { margin-top: 20px; max-width: 300px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__bottom a:hover { color: var(--accent); }

/* ============ MAIN ============ */
.main { min-height: calc(100vh - 500px); }

/* ============ BURGER ============ */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.burger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .header__inner { padding: 16px 20px; gap: 16px; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-2);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav--open { display: flex; }
  .nav__link--active::after { display: none; }
  .burger { display: flex; }
  .header__phone { display: none; }
  .header__right .btn { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 80px 0 60px; }
  .section { padding: 60px 0; }
  .stat__value { font-size: 36px; }
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.4);
  padding: 20px 24px;
  animation: cookieSlideUp 0.4s ease-out;
}

@keyframes cookieSlideUp {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1 1 400px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner__btn {
  flex-shrink: 0;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.cookie-banner__btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 20px var(--accent-glow);
}

@media (max-width: 640px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px 18px;
  }
  .cookie-banner__inner { gap: 14px; }
  .cookie-banner__btn { width: 100%; }
}
