* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9eef5 100%);
  color: #1a2a3a;
  line-height: 1.5;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ========== HEADER ========== */
.header {
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  flex-wrap: wrap;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, #a0c0e0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

.logo span {
  display: block;
  font-size: 0.75rem;
  color: #8ba0bc;
  font-weight: 400;
}

/* ========== БУРГЕР-МЕНЮ ========== */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.burger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 3px;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ========== НАВИГАЦИЯ ========== */
.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #e0e7ff;
  text-decoration: none;
  font-weight: 500;
  padding: 12px 0;
  display: inline-block;
  transition: color 0.3s;
  min-height: 48px;
}

.nav-link:hover {
  color: #fff;
}

/* ========== МЕГА-МЕНЮ ========== */
.dropdown-mega {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(15, 35, 60, 0.98);
  backdrop-filter: blur(12px);
  border-radius: 0 0 20px 20px;
  padding: 30px 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 35px -10px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  gap: 40px;
  justify-content: center;
}

.dropdown-mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-column {
  min-width: 220px;
}

.mega-menu-column h4 {
  color: #f39c12;
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  font-weight: 600;
}

.mega-menu-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-column ul li {
  margin-bottom: 10px;
}

.mega-menu-column ul li a {
  color: #e0e7ff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
  display: block;
  padding: 8px 0;
  min-height: 40px;
}

.mega-menu-column ul li a:hover {
  color: #f39c12;
  padding-left: 5px;
}

.contacts-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-link {
  color: #ff4444;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
  transition: color 0.3s;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.phone-link:hover {
  color: #ff8888;
}

.phone-link i {
  color: #ff4444;
  margin-right: 5px;
}

.btn-callback {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  border: none;
  padding: 12px 24px;
  border-radius: 40px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(230,126,34,0.3);
  white-space: nowrap;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-callback:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230,126,34,0.4);
}

.contacts-mobile {
  display: none;
}

.mobile-phone {
  color: #ff4444;
  text-decoration: none;
  font-size: 1rem;
  display: block;
  margin-bottom: 15px;
  font-weight: 600;
  min-height: 48px;
  padding: 8px 0;
}

.mobile-phone i {
  color: #ff4444;
  margin-right: 5px;
}

.mobile-callback {
  width: 100%;
}

/* ========== ОВЕРЛЕЙ ========== */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(120deg, #0a192f 0%, #0f2a44 100%);
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  transform: rotate(25deg);
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, #b8d0f0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.btn-primary {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  padding: 14px 36px;
  border-radius: 40px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  min-height: 52px;
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 28px rgba(0,0,0,0.3);
}

/* ========== СЕКЦИИ УСЛУГ ========== */
.service-section {
  padding: 70px 0;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-section.alt {
  background: linear-gradient(135deg, #f0f4fa, #ffffff);
}

.service-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.service-wrapper.reverse {
  flex-direction: row-reverse;
}

.service-content {
  flex: 1;
  min-width: 280px;
}

.service-icon {
  display: inline-block;
  font-size: 3rem;
  background: linear-gradient(135deg, #e67e22, #f39c12);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}

.service-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #1e2a3a;
}

.service-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: #334155;
  margin-bottom: 25px;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e67e22, #f39c12);
  color: white;
  padding: 12px 28px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(230,126,34,0.3);
  border: none;
  cursor: pointer;
  min-height: 48px;
}

.service-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230,126,34,0.4);
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.service-image {
  flex: 1;
  min-width: 280px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 35px -12px rgba(0,0,0,0.15);
}

.service-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.service-image:hover img {
  transform: scale(1.03);
}

/* ========== ЗАГОЛОВКИ СЕКЦИЙ (ЦЕНТРИРОВАНИЕ) ========== */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #1e2a3a, #2c3e50);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ========== ФОРМЫ ========== */
.form-section {
  background: linear-gradient(120deg, #f0f4fa, #ffffff);
}

.form-card {
  background: white;
  border-radius: 32px;
  padding: 2.5rem;
  max-width: 550px;
  margin: 0 auto;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.15);
}

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 14px 18px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 24px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
  min-height: 48px;
}

.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: #e67e22;
}

.form-card button {
  background: linear-gradient(135deg, #e67e22, #f39c12);
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 40px;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s;
  min-height: 52px;
}

.form-card button:hover {
  transform: scale(1.02);
}

.form-note {
  font-size: 0.75rem;
  text-align: center;
  margin-top: 12px;
  color: #4a5568;
}

.form-note a {
  color: #e67e22;
  text-decoration: underline;
  font-weight: 500;
}

.form-note a:hover {
  color: #f39c12;
}

/* ========== ОТЗЫВЫ ========== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: white;
  border-radius: 28px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
  cursor: pointer;
}

.review-card:hover {
  transform: translateY(-5px);
}

.review-card i {
  color: #f39c12;
  margin: 0 2px 15px 2px;
}

.review-card p {
  font-style: italic;
  margin: 15px 0;
}

/* ========== ФУТЕР ========== */
.footer {
  background: #0a192f;
  color: #b0c4de;
  padding: 40px 0;
  text-align: center;
  margin-top: 40px;
}

.footer a {
  color: #f39c12;
  text-decoration: none;
  padding: 8px 4px;
  display: inline-block;
}

/* ========== ФОНОВЫЕ SVG ========== */
.bg-grazhdanskie {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600' opacity='0.05'%3E%3Cpath fill='%23333' d='M400,100 L350,150 L450,150 L400,100 Z M400,80 L420,120 L380,120 L400,80 Z'/%3E%3Crect x='380' y='150' width='40' height='200' fill='%23333'/%3E%3C/svg%3E");
  background-position: 90% 50%;
  background-size: 300px;
}
.bg-ugolovnye {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600' opacity='0.05'%3E%3Crect x='390' y='150' width='20' height='250' fill='%23333'/%3E%3Cpath fill='%23333' d='M350,150 L450,150 L430,130 L370,130 L350,150 Z'/%3E%3C/svg%3E");
  background-position: 90% 50%;
  background-size: 250px;
}
.bg-semeynye {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600' opacity='0.05'%3E%3Cpath fill='%23e63946' d='M400,350 C400,350 360,300 320,320 C280,340 280,390 320,420 C360,450 400,480 400,480 C400,480 440,450 480,420 C520,390 520,340 480,320 C440,300 400,350 400,350 Z'/%3E%3C/svg%3E");
  background-position: 90% 50%;
  background-size: 200px;
}
.bg-nasledstvo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600' opacity='0.05'%3E%3Crect x='340' y='150' width='120' height='250' rx='10' fill='none' stroke='%23333' stroke-width='8'/%3E%3C/svg%3E");
  background-position: 90% 50%;
  background-size: 250px;
}
.bg-trudovye {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600' opacity='0.05'%3E%3Crect x='330' y='200' width='140' height='180' rx='15' fill='none' stroke='%23333' stroke-width='8'/%3E%3C/svg%3E");
  background-position: 90% 50%;
  background-size: 250px;
}
.bg-imuschestvennye {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600' opacity='0.05'%3E%3Cpath fill='%23333' d='M400,130 L300,220 L500,220 L400,130 Z'/%3E%3Crect x='340' y='220' width='120' height='150' fill='none' stroke='%23333' stroke-width='6'/%3E%3C/svg%3E");
  background-position: 90% 50%;
  background-size: 280px;
}
.bg-bankrotstvo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600' opacity='0.05'%3E%3Cpath fill='none' stroke='%23e63946' stroke-width='8' d='M400,150 L400,400'/%3E%3Cpolygon fill='%23e63946' points='380,380 420,380 400,420'/%3E%3C/svg%3E");
  background-position: 90% 50%;
  background-size: 200px;
}

/* ========== ВНУТРЕННИЕ СТРАНИЦЫ ========== */
.page-header {
  background: linear-gradient(120deg, #0a192f 0%, #0f2a44 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.content-section {
  padding: 60px 0;
}

.content-card {
  background: white;
  border-radius: 28px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

/* ========== НОВОСТИ ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.news-card {
  background: white;
  border-radius: 28px;
  padding: 1.8rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.03);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -10px rgba(0,0,0,0.1);
}

.news-date {
  font-size: 0.85rem;
  color: #e67e22;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.news-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.news-card h2 a {
  color: #1e2a3a;
  text-decoration: none;
  transition: color 0.2s;
}

.news-card h2 a:hover {
  color: #e67e22;
}

.news-card p {
  color: #4a5568;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.read-more {
  color: #e67e22;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
}

.read-more:hover {
  gap: 10px;
  color: #f39c12;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.pagination a {
  background: white;
  color: #1e2a3a;
  border: 1px solid #e2e8f0;
}

.pagination a:hover {
  background: #e67e22;
  color: white;
  border-color: #e67e22;
}

.pagination span.current {
  background: linear-gradient(135deg, #e67e22, #f39c12);
  color: white;
  border: none;
}

/* ========== КОНТАКТЫ ========== */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  background: white;
  border-radius: 28px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
  cursor: pointer;
}

.contact-card i {
  font-size: 2rem;
  color: #e67e22;
  margin-bottom: 1rem;
}

.map-container {
  margin-top: 2rem;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}

/* ========== МОДАЛЬНОЕ ОКНО ========== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: linear-gradient(135deg, #ffffff, #f5f7fa);
  border-radius: 32px;
  max-width: 450px;
  width: 90%;
  padding: 2rem;
  position: relative;
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #e67e22;
}

.modal-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #1e2a3a, #2c3e50);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: center;
}

.modal-content .modal-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 1.8rem;
  font-size: 0.9rem;
}

.modal-form input {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  border-radius: 24px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
  min-height: 48px;
}

.modal-form input:focus {
  outline: none;
  border-color: #e67e22;
}

.modal-form button {
  background: linear-gradient(135deg, #e67e22, #f39c12);
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 40px;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s;
  min-height: 52px;
}

.modal-form button:hover {
  transform: scale(1.02);
}

.modal-note {
  font-size: 0.7rem;
  text-align: center;
  margin-top: 1rem;
  color: #888;
}

.modal-note a {
  color: #e67e22;
  text-decoration: none;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  /* Бургер-меню показываем только на мобильных */
  .burger {
    display: flex;
  }

  .contacts-header {
    display: none;
  }

  .contacts-mobile {
    display: block;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85%;
    height: 100vh;
    background: #0a192f;
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 20px 40px;
    transition: right 0.3s ease;
    z-index: 1001;
    gap: 0;
    align-items: stretch;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
  }

  .nav.active {
    right: 0;
  }

  .nav-item {
    width: 100%;
    margin: 4px 0;
  }

  .nav-link {
    display: block;
    padding: 14px 0;
    font-size: 1.1rem;
    color: white;
  }

  .dropdown-mega {
    position: relative;
  }

  .mega-menu {
    position: static;
    flex-direction: column;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    gap: 15px;
    margin-left: 15px;
  }

  .dropdown-mega.active .mega-menu {
    max-height: 800px;
    padding: 15px 0;
  }

  .mega-menu-column h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #f39c12;
  }

  .mega-menu-column ul li a {
    font-size: 0.85rem;
    padding: 10px 0;
    color: #ddd;
  }

  .dropdown-toggle i {
    transition: transform 0.3s;
  }

  .dropdown-mega.active .dropdown-toggle i {
    transform: rotate(180deg);
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .service-section {
    padding: 50px 0;
    background-position: center bottom;
    background-size: 150px;
  }

  .service-wrapper,
  .service-wrapper.reverse {
    flex-direction: column;
    gap: 30px;
  }

  .service-content {
    text-align: center;
  }

  .service-content h2 {
    font-size: 1.6rem;
  }

  .service-btn {
    padding: 12px 24px;
    width: 100%;
    text-align: center;
  }

  .service-image {
    max-width: 100%;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 2rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    padding: 1.5rem;
  }

  .modal-content h3 {
    font-size: 1.5rem;
  }

  .page-header h1 {
    font-size: 1.8rem;
  }

  .footer {
    padding: 30px 0;
    font-size: 0.85rem;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .error-buttons {
    gap: 16px;
  }

  .error-buttons .btn-primary,
  .error-buttons .btn-outline {
    width: 100%;
    text-align: center;
    min-height: 52px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .btn-primary {
    padding: 12px 24px;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .btn-callback,
  .service-btn {
    width: 100%;
    text-align: center;
    padding: 14px 16px;
  }

  .form-card button {
    padding: 16px;
  }

  .reviews-grid {
    gap: 24px;
  }

  .service-grid {
    gap: 24px;
  }
}