/* ============================================
   RESPONSIVE.CSS — EVOLUT (ИСПРАВЛЕННАЯ ВЕРСИЯ)
   Breakpoints: 1200px, 1024px, 768px, 600px, 480px
   ============================================ */

/* ---- Базовые отступы контейнера ---- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   HEADER & БУРГЕР
============================================================ */
.header-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 200;
}

.header-burger__line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

body.dark .header-burger__line {
  background: #F9F9F9;
}

/* Анимация открытого бургера */
.header-burger[aria-expanded="true"] .header-burger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header-burger[aria-expanded="true"] .header-burger__line:nth-child(2) {
  opacity: 0;
}
.header-burger[aria-expanded="true"] .header-burger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .header .container {
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-left {
    order: 1;
  }

  .header-burger {
    display: flex;
    order: 2;
    margin-left: auto;
  }

  .header-right {
    order: 3;
    gap: 12px;
  }

  .header-nav {
    order: 4;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 150;
    transform: translateX(-100%);
    transition: transform 0.35s ease;
    display: flex !important;
  }

  body.dark .header-nav {
    background: #141414;
  }

  .header-nav.header-nav--open {
    transform: translateX(0);
  }

  .header-nav a {
    font-size: 20px;
    font-weight: 600;
    padding: 12px;
  }

  .header-nav .semibold {
    max-width: none;
    text-align: center;
  }

  .header-right .btn-cta {
    display: none;
  }

  .theme-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .header .container {
    padding: 0 16px;
  }
  .logo {
    width: 100px;
  }
  .header-right {
    gap: 8px;
  }
  .phone-icon {
    max-width: 24px;
  }
  .theme-toggle img {
    width: 54px;
    height: 24px;
  }
}

/* ============================================================
   FIRST SECTION (hero)
============================================================ */
@media (max-width: 1200px) {
  .first-content {
    gap: 60px;
  }
  .first-image img {
    max-width: 500px;
  }
  .first h1 {
    font-size: 36px;
  }
}

@media (max-width: 1024px) {
  .first-content {
    gap: 40px;
    margin-top: 0;
    padding-bottom: 20px;
  }
  .first-image img {
    max-width: 450px;
  }
  .first h1 {
    font-size: 32px;
  }
  .first .red {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .first-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 16px 40px;
  }
  .first-text {
    max-width: 100%;
    margin-top: 0;
  }
  .first h1 {
    font-size: 28px;
  }
  .first .red {
    font-size: 20px;
  }
  .first-image {
    width: 100%;
    justify-content: center;
  }
  .first-image img {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .first h1 {
    font-size: 24px;
  }
  .first .red {
    font-size: 18px;
  }
  .first-text p {
    font-size: 14px;
  }
  .btn.primary {
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }
}

/* ============================================================
   ZANATKI SECTION
============================================================ */
@media (max-width: 1100px) {
  .zanatki-columns {
    width: auto;
    padding: 0 20px;
  }
  [class^="line"] {
    display: none;
  }
}

@media (max-width: 768px) {
  .zanatki-columns {
    flex-direction: column;
    gap: 24px;
    padding: 0 16px;
  }
  .zanatki-title {
    font-size: 26px;
    max-width: 100%;
    text-align: center;
  }
  .zanatki-card {
    max-width: 100%;
  }
  .zanatki-card .li_second,
  .zanatki-card .li_second2 {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .zanatki {
    padding: 40px 0;
  }
  .zanatki-title {
    font-size: 22px;
  }
  .zanatki-card h3 {
    font-size: 20px;
  }
  .zanatki-card li p {
    font-size: 14px;
  }
}

/* ============================================================
   VIDEO REVIEWS (отзывы)
============================================================ */
@media (max-width: 1024px) {
  .video-reviews__slider-wrapper {
    max-width: 90%;
  }
  .video-reviews__arrow--prev {
    left: -30px;
  }
  .video-reviews__arrow--next {
    right: -30px;
  }
}

@media (max-width: 768px) {
  .video-reviews__title {
    font-size: 26px;
  }
  .video-reviews__arrow--prev {
    left: -10px;
  }
  .video-reviews__arrow--next {
    right: -10px;
  }
  .video-reviews__arrow img {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 600px) {
  .video-reviews__slider-wrapper {
    padding: 0 20px;
  }
  .video-reviews__arrow {
    display: none;
  }
  .video-reviews__swiper .swiper-slide-active {
    transform: scale(1) !important;
  }
}

/* ============================================================
   TEACHERS PAGE (карточки преподавателей)
============================================================ */
@media (max-width: 1100px) {
  .evolut-folders__wrapper {
    margin: 0 16px;
    border-radius: 30px;
  }
  .teacher-card {
    flex-wrap: wrap;
    padding: 30px 20px;
    gap: 24px;
  }
  .teacher-card__photo img {
    width: 280px;
  }
  .teacher-card__sub {
    font-size: 32px;
  }
  .folder-card h3 {
    font-size: 26px;
  }
}

@media (max-width: 860px) {
  .evolut-folders__tabs {
    gap: 10px;
    padding: 0 16px;
  }
  .evolut-folders__tabs button {
    font-size: 16px;
    padding: 8px 16px;
  }
  .teacher-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 16px;
  }
  .teacher-card__info {
    max-width: 100%;
    align-items: center;
  }
  .teacher-card__vertical {
    flex-direction: row;
    min-height: auto;
    margin-left: 0;
    gap: 16px;
    order: -1;
  }
  .teacher-card__sub {
    transform: none;
    font-size: 24px;
  }
  .teacher-card__socials {
    flex-direction: row;
    max-width: none;
  }
  .teacher-card__facts ul {
    text-align: left;
  }
}

@media (max-width: 600px) {
  .evolut-folders__tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 8px;
  }
  .evolut-folders__tabs button {
    font-size: 14px;
    white-space: nowrap;
  }
  .teacher-card__photo img {
    max-width: 240px;
  }
  .coming-soon-card {
    padding: 40px 20px;
  }
  .coming-soon-card__title {
    font-size: 24px;
  }
}

/* ============================================================
   PRICE PAGE
============================================================ */
@media (max-width: 768px) {
  .pricing-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 16px;
  }
  .pricing-card {
    width: 100%;
    max-width: 360px;
    height: auto;
    padding: 30px 20px;
    border-radius: 36px;
  }
  .pricing-title {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .pricing-title {
    font-size: 26px;
  }
  .pricing-card h3 {
    font-size: 20px;
  }
  .price {
    font-size: 24px;
  }
}

/* Modal2 (форма на странице цены) */
@media (max-width: 900px) {
  .modal2-content {
    padding: 40px 24px !important;
    border-radius: 40px;
    max-width: calc(100% - 32px) !important;
  }
  .modal2-form {
    flex-direction: column !important;
    gap: 16px;
  }
  .modal2-input {
    max-width: 100%;
    width: 100%;
  }
  .modal2 h2 {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .modal2-content {
    padding: 30px 16px !important;
    border-radius: 30px;
  }
  .modal2 h2 {
    font-size: 22px;
  }
  .modal2-submit {
    width: 100%;
    padding: 12px 20px;
  }
}

/* ============================================================
   CONTACTS PAGE
============================================================ */
@media (max-width: 900px) {
  .contacts-wrapper {
    flex-direction: column;
    gap: 30px;
    padding: 30px 16px !important;
  }
  .contacts-image img {
    max-width: 100%;
    height: auto;
  }
  .contacts-title {
    text-align: center;
  }
  .contacts ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .contacts li {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .contacts-title {
    font-size: 28px;
  }
  .contacts li p {
    font-size: 14px;
  }
  .contacts li img {
    width: 24px;
    height: 24px;
  }
}

/* ============================================================
   ABOUT PAGE
============================================================ */
@media (max-width: 992px) {
  .evolut-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 16px;
  }
}

@media (max-width: 600px) {
  .evolut-stats__grid {
    grid-template-columns: 1fr;
  }
  .evolut-stats__title,
  .evolut-video__title {
    font-size: 26px;
  }
  .stat-card {
    min-height: 140px;
    padding: 16px;
  }
  .stat-card__number {
    font-size: 36px;
  }
  .stat-card__text {
    font-size: 14px;
  }
  .evolut-banner__title {
    font-size: 32px;
  }
  .evolut-banner__logo {
    max-width: 120px;
  }
  .evolut-video__placeholder {
    height: 220px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .evolut-banner__title {
    font-size: 24px;
  }
  .evolut-banner__logo {
    max-width: 100px;
  }
  .evolut-stats__title {
    font-size: 22px;
  }
}

/* ============================================================
   MODAL (форма заявки)
============================================================ */
@media (max-width: 600px) {
  .modal-content {
    max-width: calc(100vw - 32px) !important;
    padding: 30px 20px 24px !important;
    border-radius: 32px;
    margin: 16px;
    max-height: 90vh;
    overflow-y: auto;
  }
  .close-modal {
    top: 16px;
    right: 16px;
  }
  .close-modal img {
    width: 28px;
    height: 28px;
  }
  .modal-content h2 {
    font-size: 20px;
    margin-bottom: 8px;
  }
  .modal-content p {
    font-size: 13px;
  }
  .checkbox-label p {
    min-width: auto !important;
    font-size: 14px;
    margin-left: 10px;
  }
  .radio-label {
    padding-left: 28px;
    font-size: 14px;
  }
  .submit-btn.btn-cta {
    padding: 12px 20px;
    font-size: 14px;
    margin-top: 20px;
  }
}

/* ============================================================
   TRIAL BANNER (нижняя форма)
============================================================ */
@media (max-width: 1200px) {
  .trial-banner__img--left,
  .trial-banner__img--right {
    width: 130px;
  }
}

@media (max-width: 992px) {
  .trial-banner__img {
    width: 100px;
  }
  .trial-form {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
  }
  .trial-btn {
    grid-column: span 2;
  }
  .trial-banner__title {
    margin-left: 16px;
  }
}

@media (max-width: 768px) {
  .trial-banner {
    padding: 40px 0 30px;
  }
  .trial-banner__title {
    font-size: 24px;
    margin-left: 0;
    text-align: center;
  }
  .trial-banner__img {
    display: none;
  }
  .trial-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .trial-btn {
    grid-column: span 1;
  }
  .trial-input,
  .multi-select,
  .single-select {
    font-size: 14px;
    padding: 12px 16px;
  }
}

/* ============================================================
   FAQ
============================================================ */
@media (max-width: 768px) {
  .faq {
    padding: 20px 16px 40px;
  }
  .faq__title {
    font-size: 28px;
  }
  .faq__question {
    font-size: 15px;
    gap: 12px;
  }
  .faq__arrow {
    width: 24px;
    height: 24px;
  }
  .faq__answer p {
    font-size: 14px;
  }
}

/* ============================================================
   FOOTER
============================================================ */
@media (max-width: 1100px) {
  .footer .menu {
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
  }
  .footer-top {
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 40px 16px 50px;
  }
  .footer .menu {
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
  }
  .footer-top {
    max-width: 100%;
    align-items: center;
  }
  .footer-links {
    align-items: center;
  }
  .footer-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-logo img {
    width: 140px;
  }
  .footer-top p {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .footer-links a {
    font-size: 14px;
  }
  .footer-social img {
    width: 28px;
    height: 28px;
  }
  .payments {
    height: 80px;
  }
}

/* ============================================================
   CONTRACT SECTION
============================================================ */
@media (max-width: 768px) {
  .contract {
    padding: 60px 20px !important;
    background-size: cover;
  }
  .contract h2 {
    font-size: 24px !important;
  }
  .contract p {
    font-size: 14px;
  }
  .contract .btn {
    padding: 12px 30px;
  }
}

/* ============================================================
   LEGENDS SECTION
============================================================ */
@media (max-width: 768px) {
  .legends-section {
    overflow-x: hidden;
  }
  .circle {
    transform: scale(0.8);
  }
  .circle:hover {
    transform: scale(0.88);
  }
}

/* ============================================================
   404 PAGE
============================================================ */
@media (max-width: 600px) {
  .hero-404__number {
    font-size: 80px;
  }
  .hero-404__title {
    font-size: 16px;
  }
  .hero-404__btn {
    padding: 12px 28px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero-404__number {
    font-size: 60px;
  }
  .hero-404__title {
    font-size: 14px;
  }
}

/* ============================================================
   TAPES / MARQUEE
============================================================ */
@media (max-width: 768px) {
  .tapes {
    height: 80px;
  }
  .tape {
    height: 32px;
  }
  .marquee span {
    font-size: 12px;
    padding-right: 20px;
  }
  .marquee img {
    max-width: 35px;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .tape span p {
    font-size: 12px;
  }
  .marquee span {
    padding-right: 15px;
  }
  .marquee img {
    padding-right: 15px;
    max-width: 30px;
  }
}

/* ============================================================
   SUBJECT NAV BUTTONS
============================================================ */
@media (max-width: 768px) {
  .subject-nav-buttons {
    gap: 10px;
    padding: 16px;
  }
  .subject-nav-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
  .subject-nav-section h2 {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .subject-nav-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
  .subject-nav-section h2 {
    font-size: 22px;
  }
}

/* ============================================================
   GLOBAL HELPERS
============================================================ */
@media (max-width: 768px) {
  h2 {
    font-size: 26px !important;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 22px !important;
  }
  body {
    font-size: 14px;
  }
}