/* ===== ПЛАНШЕТ (до 1024px) ===== */
@media (max-width: 1024px) {
  .directions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    padding: 56px 40px;
  }

  .directions-section,
  .FAQ,
  .partners {
    padding: 48px 40px;
  }
}

/* ===== МОБИЛКА (до 768px) ===== */
@media (max-width: 768px) {
    header {
    border-radius: 0 0 16px 16px;
    width: 100%;
    left: 0;
    right: 0;
  }

  .container {
    padding: 0 16px;
  }
  .header__inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
    position: relative;
  }
  .burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
  }

  .burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
  }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header__nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .header__nav.open {
    max-height: 400px;
  }

  .header__nav ul {
    flex-direction: column;
    gap: 4px;
    padding: 8px 0 16px;
  }

  .header__nav a {
    font-size: 18px;
    display: block;
  }

  /* Секции */
  .about {
    padding: 40px 20px;
  }

  .directions-section,
  .FAQ,
  .partners {
    padding: 40px 20px;
  }

  .directions-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 40px 20px;
    margin-top: 40px;
  }

  .faq-item {
    margin: 12px 0;
  }

  .faq-item summary {
    font-size: 17px;
  }

  .faq-item p {
    font-size: 15px;
  }
}

/* ===== МАЛЕНЬКИЕ ТЕЛЕФОНЫ (до 480px) ===== */
@media (max-width: 480px) {
  .logo {
    width: 70px;
    height: 70px;
  }

  .section-title {
    font-size: 26px;
  }

  .about p:first-of-type {
    font-size: 15px;
  }

  .header__nav a {
    font-size: 16px;
  }

  .footer .section-title {
    font-size: 1.5rem;
  }
}


/* ===== 425px ===== */
@media (max-width: 425px) {
    .container {
    padding: 0 12px;
  }
  .logo {
    width: 65px;
    height: 65px;
  }

  .section-title {
    font-size: 22px;
  }

  .header__nav a {
    font-size: 15px;
    padding: 8px 12px;
  }

  .about {
    padding: 32px 16px;
  }

  .about p {
    font-size: 14px;
  }

  .about p:first-of-type {
    font-size: 14px;
  }

  .directions-section,
  .FAQ{
    padding: 32px 16px;
  }
  .partners {
    padding: 32px 16px;
  }

  .direction-card__title {
    font-size: 14px;
  }

  .faq-item {
    padding: 10px 14px;
  }

  .faq-item summary {
    font-size: 15px;
  }

  .faq-item p {
    font-size: 14px;
  }

  .footer {
    padding: 32px 16px;
  }

  .footer .section-title {
    font-size: 1.3rem;
  }

  .footer__info {
    font-size: 0.85rem;
  }
  .partner {
    max-width: 140px;
    max-height: 140px;
    width: auto;
    height: auto;
  }
}

/* ===== 375px ===== */
@media (max-width: 375px) {
    .container {
    padding: 0 10px;
  }
  .logo {
    width: 58px;
    height: 58px;
  }

  .section-title {
    font-size: 20px;
  }

  .header__nav a {
    font-size: 14px;
    padding: 7px 10px;
  }

  .about {
    padding: 28px 14px;
  }

  .about p,
  .about p:first-of-type {
    font-size: 13.5px;
    line-height: 1.65;
  }

  .directions-section,
  .FAQ{
    padding: 28px 14px;
  }

  .direction-card__title {
    font-size: 13px;
    padding: 12px 14px 16px;
  }

  .faq-item summary {
    font-size: 14px;
  }

  .faq-item p {
    font-size: 13px;
  }

  .footer {
    padding: 28px 14px;
  }

  .footer .section-title {
    font-size: 1.2rem;
  }

  .footer__info {
    font-size: 0.8rem;
  }

  .partner img {
    max-width: 160px;
    max-height: 160px;
  }
}

/* ===== 320px ===== */
@media (max-width: 320px) {
  .logo {
    width: 50px;
    height: 50px;
  }

  .section-title {
    font-size: 18px;
  }

  .header__nav a {
    font-size: 13px;
    padding: 6px 8px;
  }

  .about {
    padding: 24px 12px;
  }

  .about p,
  .about p:first-of-type {
    font-size: 13px;
    line-height: 1.6;
  }

  .directions-section,
  .FAQ,
  .partners {
    padding: 24px 12px;
  }

  .direction-card__title {
    font-size: 12px;
    padding: 10px 12px 14px;
  }

  .faq-item {
    padding: 8px 12px;
    border-radius: 8px;
  }

  .faq-item summary {
    font-size: 13px;
  }

  .faq-item p {
    font-size: 12px;
  }

  .footer {
    padding: 24px 12px;
    margin-top: 24px;
  }

  .footer .section-title {
    font-size: 1.1rem;
  }

  .footer__info {
    font-size: 0.75rem;
  }

  .partner img {
    max-width: 160px;
  }
}