/* ========== АДАПТИВНЫЕ СТИЛИ ========== */

/* Большие мобильные (576px+) */
@media (min-width: 576px) {
  .hero__title {
    font-size: 2.5rem;
  }
}

/* Планшеты (768px+) */
@media (min-width: 768px) {
  .hero__title {
    font-size: 3rem;
  }
  
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Маленькие десктопы (1024px+) */
@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .advantages__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .portfolio__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-form__wrapper {
    grid-template-columns: 1fr 1fr;
  }
}

/* Большие десктопы (1440px+) */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
}

/* Мобильные устройства (до 767px) */
@media (max-width: 767px) {
  /* Хедер */
  .header__nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    transition: left 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }
  
  .header__nav.active {
    left: 0;
  }
  
  .header__menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .header__menu-item {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }
  
  .header__menu-link {
    display: block;
    padding: 15px 0;
  }
  
  .header__phone {
    margin-top: 20px;
    font-size: 18px;
  }
  
  .header__burger {
    display: flex;
  }
  
  .header__burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }
  
  .header__burger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .header__burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  /* Hero */
  .hero {
    padding: 120px 0 60px;
  }
  
  .hero__title {
    font-size: 2rem;
  }
  
  .hero__subtitle {
    font-size: 1.1rem;
  }
  
  .hero__features {
    flex-direction: column;
    gap: 15px;
    text-align: left;
  }
  
  .hero__form {
    padding: 30px 20px;
  }
  
  /* Секции */
  .section {
    padding: 50px 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  /* Сетки */
  .services__grid,
  .advantages__grid,
  .portfolio__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Процесс */
  .process__timeline::before {
    left: 20px;
  }
  
  .process-item {
    gap: 20px;
  }
  
  .process-item__number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  /* Цены */
  .prices-table {
    font-size: 14px;
  }
  
  .prices-table th,
  .prices-table td {
    padding: 12px 8px;
  }
  
  /* Контактная форма */
  .contact-form__wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Футер */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  /* Кнопка наверх */
  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* Очень маленькие мобильные (до 320px) */
@media (max-width: 320px) {
  .hero__title {
    font-size: 1.5rem;
  }
  
  .hero__form {
    padding: 20px 15px;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
}

