/* ==========================================
   CSS RESET & BASE STYLES
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --text-color: #1e293b;
  --text-muted: #64748b;
  --bg-gray: #f8fafc;
  --border-color: #e2e8f0;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  justify-content: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-white {
  background-color: var(--white);
  color: var(--primary-color);
}

.btn-white:hover {
  background-color: var(--bg-gray);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

/* ==========================================
   HEADER
   ========================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.header__top {
  background-color: var(--bg-gray);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  font-size: 14px;
}

.header__top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.header__city {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.city-selector-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
  transition: var(--transition);
}

.city-selector-btn:hover {
  transform: translateY(2px);
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.header__phone {
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__phone:hover {
  color: var(--primary-hover);
}

.header__schedule {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__main {
  padding: 15px 0;
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 24px;
  color: var(--text-color);
}

.header__logo img {
  height: 50px;
  width: auto;
}

.header__logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Mobile nav dropdown */
.header__nav.active {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  padding: 15px 20px;
  display: block;
  z-index: 1000;
}

.header__nav.active .nav-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.nav-list {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-item a {
  font-weight: 500;
  color: var(--text-color);
  position: relative;
  padding: 5px 0;
}

.nav-item a:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-item a:hover:after,
.nav-item.active a:after {
  width: 100%;
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.burger-menu span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  border-radius: 2px;
  transition: var(--transition);
}

.burger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
  opacity: 0;
}

.burger-menu.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero img { max-width: 100%; height: auto; }

.hero__title {
  font-size: clamp(28px, 5vw + 8px, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero__title-highlight {
  color: #fbbf24;
}

.hero__subtitle {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.95;
}

.hero__actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero__features {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.hero__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.hero__feature i {
  color: #10b981;
  font-size: 20px;
}

.hero__image img {
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
}

/* ==========================================
   SECTIONS
   ========================================== */
.section {
  padding: 80px 0;
}

.section--gray {
  background-color: var(--bg-gray);
}

.section--primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
  color: var(--white);
}

.section__header {
  text-align: center;
  margin-bottom: 50px;
}

.section__title {
  font-size: clamp(22px, 3.5vw + 8px, 40px);
  font-weight: 700;
  margin-bottom: 15px;
}

.section__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section__footer {
  text-align: center;
  margin-top: 50px;
}

/* ==========================================
   SERVICE CARDS
   ========================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.service-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 28px;
  color: var(--white);
}

.service-card__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

.service-card__title a {
  color: var(--text-color);
}

.service-card__title a:hover {
  color: var(--primary-color);
}

.service-card__description {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.service-card__price {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-color);
}

/* ==========================================
   BENEFITS
   ========================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.benefit-card {
  text-align: center;
  padding: 30px;
}

.benefit-card__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
  color: var(--white);
}

.benefit-card__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.benefit-card__description {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   STEPS
   ========================================== */
.steps {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.step__number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.step__description {
  color: var(--text-muted);
  font-size: 14px;
}

/* ==========================================
   CTA
   ========================================== */
.cta {
  text-align: center;
}

.cta__title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta__subtitle {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.95;
}

.cta__phone {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 700;
}

.cta__phone a {
  color: var(--white);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background-color: #1e293b;
  color: #94a3b8;
  padding: 60px 0 20px;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__logo img {
  height: 45px;
  margin-bottom: 20px;
}

.footer__description {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer__socials {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

.social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer__title {
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer__links li {
  margin-bottom: 12px;
}

.footer__links a {
  color: #94a3b8;
  font-size: 14px;
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.footer__contacts li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 14px;
}

.footer__contacts i {
  color: var(--primary-color);
  width: 20px;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__legal {
  display: flex;
  gap: 20px;
}

.footer__legal a {
  color: #94a3b8;
}

.footer__legal a:hover {
  color: var(--white);
}

/* ==========================================
   FLOATING BUTTONS
   ========================================== */
.floating-buttons {
  position: fixed;
  bottom: 24px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-btn--phone {
  background-color: var(--primary-color);
}

.floating-btn--whatsapp {
  background-color: #25d366;
}

.floating-btn--telegram {
  background-color: #0088cc;
}

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 90px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-5px);
}

/* ==========================================
   MODAL
   ========================================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

.modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal__content {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
}

.modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-gray);
  border: none;
  cursor: pointer;
  font-size: 20px;
  transition: var(--transition);
}

.modal__close:hover {
  background-color: var(--danger-color);
  color: var(--white);
}

.modal h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

/* ==========================================
   FORMS
   ========================================== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-privacy {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 15px;
}

.form-privacy a {
  color: var(--primary-color);
}

/* ==========================================
   PAGE HEADER
   ========================================== */
.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

.page-header--small {
  padding: 40px 0;
}

.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.page-header__title {
  font-size: clamp(24px, 4.5vw + 6px, 42px);
  font-weight: 700;
  margin-bottom: 15px;
}

.page-header__description {
  font-size: clamp(14px, 1.8vw + 8px, 18px);
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.95;
}

/* Универсальные сетки для мелких экранов */
@media (max-width: 480px) {
  .breadcrumbs { flex-wrap: wrap; gap: 6px; }
  .services-list { gap: 20px; }
  .service-item__price { font-size: 22px; }
  .contact-cards { grid-template-columns: 1fr; }
  .org-benefits { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
}

/* Убираем горизонтальный скролл на мелких экранах */
html, body { max-width: 100%; overflow-x: hidden; }

/* ==========================================
   CHECK LIST
   ========================================== */
.check-list {
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.check-list i {
  color: var(--success-color);
  font-size: 20px;
  margin-top: 2px;
}

/* ==========================================
   ERROR PAGES
   ========================================== */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-content {
  text-align: center;
  max-width: 600px;
}

.error-code {
  font-size: 120px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 20px;
}

.error-title {
  font-size: 32px;
  margin-bottom: 15px;
}

.error-text {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.error-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================
   CITY GRID
   ========================================== */
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.city-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: var(--transition);
}

.city-card:hover {
  border-color: var(--primary-color);
  background-color: var(--bg-gray);
}

.city-card.active {
  border-color: var(--primary-color);
  background-color: var(--primary-color);
  color: var(--white);
}

.city-card i {
  font-size: 20px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  
  .hero__image {
    order: -1;
  }
  
  .nav-list {
    gap: 20px;
  }
  
  .footer__top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .header__top-content {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  
  .header__contacts {
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .header__schedule {
    font-size: 14px;
  }
  
  .header__logo {
    gap: 8px;
  }
  
  .header__logo img {
    height: 40px;
  }
  
  .header__logo-text {
    font-size: 20px;
  }
  
  .header__nav {
    display: none;
  }
  
  .header__cta {
    display: none;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .hero {
    padding: 40px 0;
  }
  
  .hero__content {
    text-align: center;
  }
  .hero .container { gap: 16px; }
  
  .hero__title {
    font-size: 32px;
    line-height: 1.2;
  }
  
  .hero__subtitle {
    font-size: 16px;
  }
  
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  
  .hero__actions .btn {
    width: 100%;
  }
  
  .hero__features {
    flex-direction: column;
    gap: 10px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section__title {
    font-size: 28px;
  }
  
  .section__subtitle {
    font-size: 16px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card {
    padding: 20px;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .steps {
    flex-direction: column;
  }
  
  .step {
    text-align: center;
  }
  
  .step:not(:last-child)::after {
    display: none;
  }
  
  .cta {
    padding: 40px 0;
  }
  
  .cta__title {
    font-size: 24px;
  }
  
  .cta__phone a {
    font-size: 20px;
  }
  
  .footer__top {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .floating-buttons {
    bottom: 20px;
    right: 20px;
  }
  
  .scroll-top {
    display: none;
  }
  
  .modal__content {
    max-width: 90%;
    margin: 20px;
  }
  
  .city-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  .hero { padding: 32px 0; }
  .hero .container { grid-template-columns: 1fr; gap: 24px; }
  .hero__subtitle { font-size: 15px; }
  .hero__actions { gap: 10px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-item { grid-template-columns: 1fr; gap: 20px; }
  .service-item__aside { flex-direction: row; }
}

/* Wide screens */
@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}

@media (min-width: 1536px) {
  .container { max-width: 1440px; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

