/* ========================================
   Адаптивные стили
   Breakpoints: 1024px, 768px, 480px
   ======================================== */

/* ---------- Планшет (до 1024px) ---------- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 60px 0;
  }

  .section-title {
    font-size: 30px;
  }

  /* Header */
  .header__menu {
    gap: 20px;
  }

  .header__link {
    font-size: 13px;
  }

  .header__actions {
    gap: 14px;
  }

  .header__btn {
    padding: 10px 18px;
    font-size: 12px;
  }

  .header__phone span {
    font-size: 13px;
  }

  /* Hero */
  .hero__title {
    font-size: 40px;
  }

  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    padding: 50px 20px;
  }

  .hero__card {
    max-width: 100%;
  }
}

/* ---------- Мобильный (до 768px) ---------- */
@media (max-width: 768px) {
  :root {
    --section-padding: 50px 0;
    --header-height: 70px;
  }

  .section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  /* Header */
  .header__nav {
    position: fixed;
    top: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: min(320px, 85vw);
    height: 100vh;
    margin-left: 0;
    padding: calc(var(--header-height) + 32px) 32px 32px;
    background-color: var(--color-navy-dark);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }

  .header__nav.is-open {
    transform: translateX(0);
  }

  .header__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .header__menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header__link {
    display: block;
    width: 100%;
    padding: 16px 0;
    font-size: 15px;
  }

  .header__link::after {
    display: none;
  }

  .header__actions--desktop {
    display: none;
  }

  .header__actions--mobile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    width: 100%;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .header__actions--mobile .header__phone {
    justify-content: center;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
  }

  .header__actions--mobile .header__phone span {
    display: inline;
  }

  .header__actions--mobile .header__btn {
    width: 100%;
    text-align: center;
  }

  .header__burger {
    display: flex;
  }

  .header__logo-name {
    font-size: 18px;
  }

  .header__logo-tagline {
    font-size: 9px;
  }

  /* Hero */
  .hero__inner {
    align-items: center;
    text-align: center;
    padding: 40px 20px;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
  }

  .hero__text {
    max-width: 100%;
  }

  .hero__title {
    font-size: 32px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero__btn {
    width: 100%;
    max-width: 320px;
  }

  .hero__card {
    text-align: center;
  }

  .hero__card-icon {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- Малый экран (до 480px) ---------- */
@media (max-width: 480px) {
  :root {
    --section-padding: 40px 0;
  }

  .container {
    padding: 0 16px;
  }

  .section-title {
    font-size: 22px;
    margin-bottom: 24px;
  }

  /* Header */
  .header__nav {
    width: 100%;
    padding: calc(var(--header-height) + 24px) 24px 24px;
  }

  .header__logo-name {
    font-size: 16px;
  }

  .header__logo-tagline {
    font-size: 8px;
    letter-spacing: 0.5px;
  }

  /* Hero */
  .hero__title {
    font-size: 28px;
  }

  .hero__text {
    font-size: 16px;
  }

  .hero__inner {
    padding: 32px 16px;
  }

  .hero__card {
    padding: 24px;
  }

  .hero__card-phone {
    font-size: 24px;
  }
}
/* ===== SERVICES ===== */

@media (max-width: 992px) {

  .services__grid {
      grid-template-columns: repeat(2,1fr);
  }

}

@media (max-width: 768px) {

  .services {
      padding: 80px 0;
  }

  .section-title {
      font-size: 34px;
  }

  .services__grid {
      grid-template-columns: 1fr;
  }

}
/* WHY CHOOSE */

@media (max-width:992px){

  .advantages__grid{
  grid-template-columns:repeat(2,1fr);
  }
  
  }
  
  @media (max-width:768px){
  
  .advantages__grid{
  grid-template-columns:1fr;
  }
  
  }
  @media(max-width:900px){

    .reviews__box{
    
    flex-direction:column;
    text-align:center;
    
    }
    
    .reviews__qr img{
    
    width:220px;
    
    }
    
    }
    /*=========================
    CONTACTS
=========================*/

@media (max-width: 992px) {

  .contacts__wrapper {
      grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {

  .contacts {
      padding: 80px 0;
  }

  .contact-form {
      padding: 30px 20px;
  }

}

/*=========================
        FOOTER
=========================*/

@media (max-width:992px){

  .footer__grid{
  
  grid-template-columns:repeat(2,1fr);
  
  }
  
  }
  
  @media (max-width:768px){
  
  .footer{
  
  padding:60px 0 25px;
  
  }
  
  .footer__grid{
  
  grid-template-columns:1fr;
  
  text-align:center;
  
  }
  
  .footer__social{
  
  justify-content:center;
  
  }
  
  }
  /*=========================
        PROJECTS
=========================*/

@media (max-width:992px){

  .projects__grid{
  
  grid-template-columns:repeat(2,1fr);
  
  }
  
  }
  
  @media (max-width:768px){
  
  .projects{
  
  padding:80px 0;
  
  }
  
  .projects__grid{
  
  grid-template-columns:1fr;
  
  }
  
  .projects__item img{
  
  height:260px;
  
  }
  
  }