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

:root {
    --primary-color: #0066cc;
    --secondary-color: #004999;
    --accent-color: #ff9800;
    --call-red: #e53e3e;
    --call-red-dark: #c53030;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --success: #10b981;
    --error: #ef4444;
}

/* ============================================
   MOBILE VERSION - ПРАВИЛЬНАЯ АДАПТАЦИЯ
   Ничего не обрезается, всё видно
   ============================================ */

/* ----- ОБЩИЕ СБРОСЫ ----- */
* {
  box-sizing: border-box !important;
}

body {
  overflow-x: hidden !important;
  font-size: 16px !important;
}

/* ----- HEADER ----- */
/* ----- HEADER ----- */
header {
  height: auto !important;
  min-height: 70px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: var(--white) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  padding: 1rem 1.25rem !important;
}

nav {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  height: auto !important;
  min-height: 50px !important;
  padding: 0 !important;
}

/* Логотип */
.logo {
  display: flex !important;
  align-items: center !important;
  gap: 0.75rem !important;
  height: auto !important;
  flex-shrink: 0 !important;
}

.logo-img {
  width: 55px !important;
  height: 55px !important;
  object-fit: contain !important;
}

.logo h1 {
  font-size: 1.3rem !important;
  color: var(--primary-color) !important;
  margin: 0 !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
}

/* Скрываем локацию и кнопки в header на мобильных */
.header-location {
  display: none !important;
}

.nav-cta {
  display: none !important;
}

/* Гамбургер меню */
.hamburger {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  cursor: pointer !important;
  z-index: 1001 !important;
  padding: 8px !important;
  flex-shrink: 0 !important;
}

.hamburger span {
  width: 32px !important;
  height: 3.5px !important;
  background: var(--text-dark) !important;
  transition: all 0.3s ease !important;
  border-radius: 2px !important;
  display: block !important;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(9px, 9px) !important;
}

.hamburger.active span:nth-child(2) {
  opacity: 0 !important;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px) !important;
}

/* Мобильное меню */
.nav-menu {
  position: fixed !important;
  left: -100% !important;
  top: 70px !important;
  flex-direction: column !important;
  background: var(--white) !important;
  width: 100% !important;
  text-align: center !important;
  transition: left 0.3s ease !important;
  box-shadow: 0 10px 27px rgba(0,0,0,0.1) !important;
  padding: 2rem 0 !important;
  gap: 0 !important;
  z-index: 999 !important;
  max-height: calc(100vh - 70px) !important;
  overflow-y: auto !important;
  display: flex !important;
}

.nav-menu.active {
  left: 0 !important;
}

.nav-menu li {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.nav-menu a {
  display: block !important;
  padding: 1.1rem 2rem !important;
  text-decoration: none !important;
  color: var(--text-dark) !important;
  font-weight: 500 !important;
  font-size: 1.15rem !important;
  border-bottom: 1px solid #f0f0f0 !important;
  transition: background 0.2s ease !important;
  width: 100% !important;
}

.nav-menu a:hover {
  background: var(--bg-light) !important;
  color: var(--primary-color) !important;
}

/* ----- HERO ----- */
.hero {
  display: block !important;
  width: 100% !important;
}

.hero-split {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  grid-template-columns: none !important;
}

.hero-left {
  width: 100% !important;
  padding: 2.5rem 1.5rem !important;
  order: 1 !important;
  box-sizing: border-box !important;
}

.hero-right {
  width: 100% !important;
  order: 2 !important;
  min-height: 350px !important;
  height: auto !important;
  overflow: hidden !important;
}

.hero-content {
  width: 100% !important;
  max-width: 100% !important;
}

.hero-content h2 {
  font-size: 1.8rem !important;
  line-height: 1.3 !important;
  margin-bottom: 1rem !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.hero-description {
  font-size: 1rem !important;
  margin-bottom: 1.5rem !important;
  line-height: 1.6 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.hero-badge {
  font-size: 0.85rem !important;
  padding: 0.5rem 1rem !important;
  margin-bottom: 1.2rem !important;
  display: inline-block !important;
  width: auto !important;
}

.hero-features {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.75rem !important;
  margin-bottom: 1.5rem !important;
  width: 100% !important;
}

.feature-item {
  font-size: 0.95rem !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.hero-buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
  margin-bottom: 1.5rem !important;
  width: 100% !important;
}

.btn-call-pulse,
.btn-whatsapp {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 1.1rem 2rem !important;
  font-size: 1.1rem !important;
  box-sizing: border-box !important;
  display: block !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

.hero-image {
  width: 100% !important;
  height: 100% !important;
  min-height: 350px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.hero-overlay-badge {
  position: absolute !important;
  left: 1.5rem !important;
  bottom: 1.5rem !important;
  padding: 1.2rem 1.5rem !important;
  font-size: 0.9rem !important;
}

.badge-number {
  font-size: 2rem !important;
}

.badge-text {
  font-size: 0.8rem !important;
}

.location-text {
  font-size: 0.9rem !important;
  word-wrap: break-word !important;
}

/* ----- SERVICES ----- */
.services {
  padding: 3.5rem 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.services-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
  width: 100% !important;
}

.service-card {
  width: 100% !important;
  max-width: 500px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

.section-title {
  font-size: 2rem !important;
  margin-bottom: 1rem !important;
  word-wrap: break-word !important;
}

.section-subtitle {
  font-size: 1rem !important;
  margin-bottom: 2rem !important;
  word-wrap: break-word !important;
}

/* ----- ABOUT ----- */
.about {
  padding: 3.5rem 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.about-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
  width: 100% !important;
}

.about-card {
  width: 100% !important;
  max-width: 500px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

/* ----- CONTACT ----- */
.contact {
  padding: 3.5rem 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.contact-wrapper {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2rem !important;
  width: 100% !important;
}

.contact-info {
  gap: 1.5rem !important;
}

.contact-icon {
  font-size: 1.5rem !important;
  min-width: 40px !important;
}

.contact-form-wrapper {
  padding: 1.5rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.form-group {
  width: 100% !important;
  margin-bottom: 1rem !important;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100% !important;
  font-size: 16px !important;
  padding: 0.75rem !important;
  box-sizing: border-box !important;
}

/* ----- MAP ----- */
.map-section {
  padding: 3.5rem 1rem 0 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.map-container {
  width: 100% !important;
  box-sizing: border-box !important;
}

.map-container iframe {
  height: 350px !important;
  width: 100% !important;
  border: 0 !important;
}

/* ----- FOOTER ----- */
footer {
  padding: 2.5rem 1rem 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.footer-content {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
  text-align: center !important;
  width: 100% !important;
}

.footer-bottom {
  flex-direction: column !important;
  text-align: center !important;
  gap: 1rem !important;
}

.footer-links {
  justify-content: center !important;
  flex-wrap: wrap !important;
}

/* ----- BUTTONS ----- */
.btn {
  padding: 0.75rem 1.5rem !important;
  font-size: 0.95rem !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

.btn-large {
  padding: 1rem 2rem !important;
  font-size: 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ----- Маленькие телефоны (до 480px) ----- */
@media (max-width: 480px) {
  header {
    min-height: 65px !important;
    padding: 0.9rem 1rem !important;
  }

  nav {
    min-height: 45px !important;
  }

  .logo h1 {
    font-size: 1.15rem !important;
  }

  .logo-img {
    width: 50px !important;
    height: 50px !important;
  }

  .hamburger span {
    width: 30px !important;
    height: 3px !important;
  }

  .nav-menu {
    top: 65px !important;
    max-height: calc(100vh - 65px) !important;
  }

  .nav-menu a {
    font-size: 1.1rem !important;
    padding: 1rem 1.75rem !important;
  }

  .hero-left {
    padding: 2rem 1.25rem !important;
  }

  .hero-right,
  .hero-image {
    min-height: 300px !important;
  }

  .hero-content h2 {
    font-size: 1.6rem !important;
  }

  .hero-description {
    font-size: 0.95rem !important;
  }

  .btn-call-pulse,
  .btn-whatsapp {
    font-size: 1rem !important;
    padding: 1rem 1.75rem !important;
  }

  .section-title {
    font-size: 1.75rem !important;
  }

  .section-subtitle {
    font-size: 0.95rem !important;
  }
}

/* ----- Очень маленькие экраны (до 360px) ----- */
@media (max-width: 360px) {
  header {
    min-height: 60px !important;
    padding: 0.8rem 0.9rem !important;
  }

  .logo h1 {
    font-size: 1.05rem !important;
  }

  .logo-img {
    width: 46px !important;
    height: 46px !important;
  }

  .hamburger span {
    width: 28px !important;
  }

  .nav-menu {
    top: 60px !important;
    max-height: calc(100vh - 60px) !important;
  }

  .hero-content h2 {
    font-size: 1.4rem !important;
  }

  .hero-right,
  .hero-image {
    min-height: 280px !important;
  }

  .btn-call-pulse,
  .btn-whatsapp {
    font-size: 0.95rem !important;
    padding: 0.95rem 1.5rem !important;
  }

  .section-title {
    font-size: 1.5rem !important;
  }
}