@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Syne:wght@700;800&display=swap');

:root {
  --primary: #072215;
  --primary-rgb: 7, 34, 21;
  --accent: #ecd06f;
  --accent-hover: #dfbc4e;
  --bg-light: #fbfaf8;
  --bg-white: #ffffff;
  --text-dark: #121614;
  --text-light: #fbfaf8;
  --text-muted: #67756e;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --border-radius: 16px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Сброс стилей и предотвращение горизонтальной прокрутки */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
  font-size: 1rem;
}

/* Доступность */
.skip-link {
  position: absolute;
  top: -100px;
  left: 15px;
  background: var(--accent);
  color: var(--primary);
  padding: 12px 24px;
  z-index: 9999;
  font-weight: bold;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Типографика */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.2rem, 6.5vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2rem); }

p {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-muted);
}

/* Навигация (Mobile-First) */
header {
  background-color: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid rgba(236, 208, 111, 0.15);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-light);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
}

.logo-link img {
  width: 38px;
  height: 38px;
  margin-right: 10px;
}

.nav-links {
  position: fixed;
  top: 68px;
  left: 0;
  width: 100%;
  height: calc(100vh - 68px);
  background-color: var(--primary);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  z-index: 999;
  padding: 40px;
}

.nav-links.active {
  display: flex;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

.burger-menu {
  display: block;
  background: none;
  border: none;
  color: var(--accent);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1000;
}

/* Декоративный бэкдроп */
.glow-sphere {
  position: absolute;
  width: min(80vw, 500px);
  height: min(80vw, 500px);
  background: radial-gradient(circle, rgba(236,208,111,0.18) 0%, rgba(7,34,21,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  top: -10%;
  right: -5%;
}

/* Героический блок */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, #030d08 100%);
  color: var(--text-light);
  padding: clamp(60px, 10vw, 120px) 20px;
  overflow: hidden;
}

.hero-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 750px;
}

.hero h1 span {
  color: var(--accent);
  display: block;
}

.hero p {
  margin: 25px 0 35px;
  color: #cad3cf;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  background-color: var(--accent);
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-display);
  border-radius: var(--border-radius);
  transition: var(--transition);
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background-color: var(--accent);
  color: var(--primary);
}

/* Сетки и структура (Mobile-First) */
.section-padding {
  padding: clamp(50px, 8vw, 100px) 20px;
}

.max-width-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

.grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

/* Статистика */
.stats-grid {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.stat-card {
  text-align: center;
  padding: 20px 0;
}

.stat-card:not(:last-child) {
  border-bottom: 1px solid #f1eeeb;
}

.stat-card h3 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  color: var(--primary);
  margin-bottom: 5px;
}

/* Карточки услуг */
.service-card {
  background-color: var(--bg-white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 40px rgba(0,0,0,0.02);
  transition: var(--transition);
  border: 1px solid rgba(7,34,21,0.03);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(7,34,21,0.08);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 25px;
}

.service-card h3 {
  margin-bottom: 15px;
}

/* Асимметричный блок */
.asymmetric-block {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.img-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Тарифы */
.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.price-card {
  background-color: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 45px 30px;
  text-align: center;
  position: relative;
  border: 1px solid rgba(7,34,21,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-card.featured {
  border: 2px solid var(--accent);
  box-shadow: 0 15px 40px rgba(7,34,21,0.1);
}

.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: bold;
}

.price-card h3 {
  font-size: 1.8rem;
}

.price-card .price {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary);
  margin: 20px 0;
}

.price-card ul {
  list-style: none;
  margin-bottom: 35px;
  text-align: left;
}

.price-card ul li {
  padding: 10px 0;
  border-bottom: 1px solid #f1eeeb;
  font-size: 1rem;
}

/* Форма захвата лидов */
.form-section {
  background: linear-gradient(135deg, var(--primary) 0%, #030d08 100%);
  color: var(--text-light);
}

.form-wrapper {
  max-width: 650px;
  margin: 0 auto;
}

.lead-form {
  background-color: rgba(255,255,255,0.04);
  padding: clamp(25px, 5vw, 45px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255,255,255,0.1);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background-color: rgba(255,255,255,0.06);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
}

.checkbox-group {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.checkbox-group input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* Слой доверия pre-footer */
.trust-layer {
  background-color: #f1efeb;
  border-top: 1px solid #e2ded9;
  text-align: center;
}

.trust-content {
  max-width: 900px;
  margin: 0 auto;
}

.trust-content h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

.trust-content p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Футер */
footer {
  background-color: #030d08;
  color: #cad3cf;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 40px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: var(--text-light);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #cad3cf;
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.6;
}

/* Куки-баннер */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 15px;
  left: 15px;
  right: 15px;
  background-color: #0c120f;
  color: var(--text-light);
  padding: 25px;
  border-radius: var(--border-radius);
  z-index: 10000;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
}

/* Контакты & Карта */
.contact-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.map-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* МЕДИА-ЗАПРОСЫ ДЛЯ ТАБЛЕТОК И ПК (БЕЗ ПУСТЫХ ПРОСТРАНСТВ) */
@media (min-width: 768px) {
  .btn-group {
    flex-direction: row;
  }
  
  .nav-links {
    position: static;
    width: auto;
    height: auto;
    display: flex;
    flex-direction: row;
    gap: 35px;
    padding: 0;
    background-color: transparent;
    border: none;
  }
  
  .nav-links a {
    font-size: 1.05rem;
    font-family: var(--font-body);
    font-weight: 500;
  }
  
  .burger-menu {
    display: none;
  }
  
  .grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    display: flex;
    justify-content: space-around;
  }
  
  .stat-card {
    flex: 1;
    border-bottom: none !important;
  }
  
  .stat-card:not(:last-child) {
    border-right: 1px solid #f1eeeb;
  }
  
  .asymmetric-block {
    flex-direction: row;
    align-items: center;
  }
  
  .asymmetric-block > * {
    flex: 1;
  }
  
  .pricing-grid {
    flex-direction: row;
  }
  
  .price-card {
    flex: 1;
  }
  
  .price-card.featured {
    transform: scale(1.05);
    z-index: 2;
  }
  
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .cookie-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .contact-container {
    flex-direction: row;
  }
  
  .contact-container > * {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .grid-layout {
    grid-template-columns: repeat(3, 1fr);
  }
}