/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
  .hero-side-card {
    right: 20px;
    bottom: 110px;
    width: 180px;
  }

  .main-navigation .menu > li > a {
    padding: 8px 10px;
    font-size: 14px;
  }
}

@media (max-width: 900px) {

  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    height: 84px;
  }

  /* 1. Лого — слева */
  .site-branding {
    grid-column: 1;
    order: 1;
  }

  .site-branding .site-title,
  .site-branding .header-title {
    display: none; /* на мобилке только лого, без длинного текста */
  }

  /* 2. Поиск — по центру */
  .header-actions {
    grid-column: 2;
    order: 2;
    justify-content: center;
    width: 100%;
  }

  .header-search {
    width: 100%;
    max-width: 200px;
  }

  .header-search input[type="search"] {
    width: 100%;
  }

  /* Языки на мобилке скрываем */
  .header-lang {
    display: none;
  }

  /* 3. Бургер — справа */
  .menu-toggle {
    display: block;
    grid-column: 3;
    order: 3;
    margin-left: 0;
  }

  /* Меню выезжает справа */
  .main-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: #0a2a6b;
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 24px 24px;
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .main-navigation.is-open {
    right: 0;
  }

  .main-navigation .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .main-navigation .menu > li > a {
    padding: 12px 16px;
  }

  .main-navigation .menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 0 4px 12px;
    border-radius: 6px;
    pointer-events: auto;
  }

  .main-navigation .menu .sub-menu li a {
    color: #ffffff;
  }

  .hero-side-card {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  body.home .footer-contacts,
  body.front-page .footer-contacts {
    flex-direction: column;
    align-items: center;
  }

  body.home .footer-contacts .phone,
  body.front-page .footer-contacts .phone {
    margin-left: 0;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }
  .slider-dots{
    display: none;
    }
}

@media (max-width: 600px) {
  .header-inner {
    height: 84px;
  }

  .site-branding .site-title,
  .site-branding .header-title {
    font-size: 12px;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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