/* ================================================================
   RESPONSIVE.CSS — Адаптивні стилі для сайту "Знання+"
   Mobile-first підхід. Цей файл містить ЛИШЕ @media запити.
   Основні стилі знаходяться у style.css
   ================================================================ */


/* ================================================================
   BASE MOBILE STYLES (< 480px)
   Мінімальні розміри екранів — смартфони (iPhone SE, 375px тощо)
   ================================================================ */

/* --- Container --- */
.container {
  padding-left: 15px;
  padding-right: 15px;
}

/* --- Sections --- */
.section {
  padding: 40px 0;
}

/* --- Typography --- */
h1, .hero__title {
  font-size: 28px;
  line-height: 1.2;
}

h2, .section__title, .section-title {
  font-size: 24px;
  line-height: 1.3;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
}

.section__subtitle, .section-subtitle {
  font-size: 15px;
}

/* --- Hero --- */
.hero {
  min-height: 60vh;
}

.hero--home {
  min-height: 70vh;
}

.hero__subtitle {
  font-size: 16px;
}

/* --- Hero Buttons --- */
.hero__buttons {
  flex-direction: column;
  gap: 12px;
}

.hero__buttons .btn {
  width: 100%;
  text-align: center;
}

/* --- Header --- */
.nav {
  display: none;
}

.header__cta {
  display: none;
}

.burger-menu {
  display: flex;
}

/* --- Buttons (mobile full width) --- */
.btn-lg {
  width: 100%;
  text-align: center;
}

.btn-submit {
  width: 100%;
}

/* --- Advantages Grid --- */
.advantages__grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

/* --- Subjects Grid --- */
.subjects__grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

/* --- Stats Grid --- */
.stats__grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stats__number,
.stat-item__number {
  font-size: 32px;
}

.stats__label,
.stat-item__label {
  font-size: 13px;
}

/* --- Reviews Grid --- */
.reviews-preview__grid,
.reviews__grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

/* --- Teachers Grid --- */
.teachers__grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

.teacher-card__photo {
  width: 120px;
  height: 120px;
}

/* --- Services Grid --- */
.services__grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

/* --- Footer --- */
.footer__inner {
  grid-template-columns: 1fr;
  gap: 30px;
}

/* --- CTA Banner --- */
.cta-banner__title {
  font-size: 24px;
}

.cta-banner__subtitle {
  font-size: 15px;
}

/* --- Enrollment Form --- */
.enrollment-form {
  gap: 16px;
}

.enrollment-form__input,
.enrollment-form__select,
.enrollment-form__textarea {
  width: 100%;
}

/* --- About Page: History Section --- */
.about-history__grid {
  grid-template-columns: 1fr;
  gap: 30px;
}

/* --- About Page: Approach Section --- */
.approach__grid {
  grid-template-columns: 1fr;
  gap: 24px;
}

/* --- About Page: Values Section --- */
.values__grid {
  grid-template-columns: 1fr;
  gap: 20px;
}

/* --- Contacts Page --- */
.contacts__grid {
  grid-template-columns: 1fr;
  gap: 30px;
}

.map-placeholder {
  min-height: 280px;
}

/* --- Steps Section (Services page) --- */
.steps {
  flex-direction: column;
  gap: 24px;
}

.steps::before {
  display: none;
}

/* --- Reviews Page: Overall Rating --- */
.reviews-overall {
  flex-direction: column;
  text-align: center;
  gap: 8px;
}

.reviews-overall__number {
  font-size: 48px;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 12px 0;
}

.breadcrumbs__list {
  font-size: 13px;
}


/* ================================================================
   SMALL MOBILE (min-width: 480px)
   Трохи більші смартфони
   ================================================================ */

@media (min-width: 480px) {

  /* --- Container --- */
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* --- Typography --- */
  h1, .hero__title {
    font-size: 32px;
  }

  /* --- Stats Grid --- */
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .stats__number {
    font-size: 36px;
  }

  /* --- Advantages Grid (2 columns) --- */
  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* --- Reviews Grid (still 1 column) --- */
  .reviews-preview__grid,
  .reviews__grid {
    grid-template-columns: 1fr;
  }

  /* --- Subjects Grid (still 1 column on small mobile) --- */
  .subjects__grid {
    grid-template-columns: 1fr;
  }

  /* --- Teachers Grid (still 1 column) --- */
  .teachers__grid {
    grid-template-columns: 1fr;
  }

  /* --- CTA Banner --- */
  .cta-banner__title {
    font-size: 28px;
  }
}


/* ================================================================
   TABLET (min-width: 768px)
   iPad та подібні планшетні пристрої
   ================================================================ */

@media (min-width: 768px) {

  /* --- Sections --- */
  .section {
    padding: 60px 0;
  }

  /* --- Typography --- */
  h1, .hero__title {
    font-size: 40px;
  }

  h2, .section__title, .section-title {
    font-size: 32px;
  }

  .section__subtitle, .section-subtitle {
    font-size: 17px;
  }

  /* --- Hero --- */
  .hero {
    min-height: 75vh;
  }

  .hero__subtitle {
    font-size: 18px;
    max-width: 600px;
  }

  /* --- Hero Buttons (horizontal on tablet) --- */
  .hero__buttons {
    flex-direction: row;
    gap: 16px;
  }

  .hero__buttons .btn {
    width: auto;
  }

  /* --- Nav: still hidden on tablet (shown at 1024px) --- */
  .nav {
    display: none;
  }

  .burger-menu {
    display: flex;
  }

  /* --- Buttons: auto width on tablet --- */
  .btn-lg {
    width: auto;
  }

  .btn-submit {
    width: auto;
  }

  /* --- Advantages Grid (2 columns) --- */
  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* --- Subjects Grid (2 columns) --- */
  .subjects__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* --- Services Grid (2 columns) --- */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* --- Stats Grid (4 columns in a row) --- */
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .stats__number {
    font-size: 40px;
  }

  .stats__label {
    font-size: 14px;
  }

  /* --- Teachers Grid (2 columns) --- */
  .teachers__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .teacher-card__photo {
    width: 140px;
    height: 140px;
  }

  /* --- Reviews Grid (2 columns) --- */
  .reviews-preview__grid,
  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* --- Footer (2x2 grid) --- */
  .footer__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  /* --- About Page: History (2 columns) --- */
  .about-history__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
  }

  /* --- About Page: Approach (3 columns) --- */
  .approach__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  /* --- About Page: Values (2 columns) --- */
  .values__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* --- Contacts (2 columns) --- */
  .contacts__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }

  .map-placeholder {
    min-height: 400px;
  }

  /* --- CTA Banner --- */
  .cta-banner__title {
    font-size: 32px;
  }

  .cta-banner__subtitle {
    font-size: 17px;
  }

  /* --- Enrollment Form (inline layout) --- */
  .enrollment-form {
    gap: 20px;
  }

  .enrollment__inner {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  /* --- Reviews Page: Overall Rating --- */
  .reviews-overall {
    flex-direction: row;
    gap: 16px;
  }

  /* --- Breadcrumbs --- */
  .breadcrumbs {
    padding: 16px 0;
  }

  .breadcrumbs__list {
    font-size: 14px;
  }
}


/* ================================================================
   DESKTOP (min-width: 1024px)
   Ноутбуки та настільні комп'ютери
   ================================================================ */

@media (min-width: 1024px) {

  /* --- Sections --- */
  .section {
    padding: 80px 0;
  }

  /* --- Typography --- */
  h1, .hero__title {
    font-size: 48px;
  }

  h2, .section__title, .section-title {
    font-size: 36px;
  }

  h3 {
    font-size: 22px;
  }

  .section__subtitle, .section-subtitle {
    font-size: 18px;
  }

  /* --- Hero --- */
  .hero--home {
    min-height: 85vh;
  }

  .hero__subtitle {
    font-size: 20px;
    max-width: 700px;
  }

  /* --- Navigation: show desktop nav --- */
  .nav {
    display: flex;
  }

  /* --- Burger: hide on desktop --- */
  .burger-menu {
    display: none;
  }

  /* --- Header CTA: show on desktop --- */
  .header__cta {
    display: inline-flex;
  }

  /* --- Advantages Grid (4 columns) --- */
  .advantages__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  /* --- Subjects Grid (3 columns) --- */
  .subjects__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  /* --- Services Grid (2 columns) --- */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  /* --- Teachers Grid (4 columns) --- */
  .teachers__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }

  .teacher-card__photo {
    width: 150px;
    height: 150px;
  }

  /* --- Reviews Grid (3 columns) --- */
  .reviews-preview__grid,
  .reviews__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  /* --- Stats --- */
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }

  .stats__number {
    font-size: 48px;
  }

  .stats__label {
    font-size: 16px;
  }

  /* --- Footer (4 columns) --- */
  .footer__inner {
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 40px;
  }

  /* --- About Page: Values (4 columns) --- */
  .values__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }

  /* --- Steps Section (horizontal on desktop) --- */
  .steps {
    flex-direction: row;
    gap: 0;
    justify-content: space-between;
    align-items: flex-start;
  }

  .steps::before {
    display: block;
  }

  /* --- CTA Banner --- */
  .cta-banner__title {
    font-size: 36px;
  }

  .cta-banner__subtitle {
    font-size: 18px;
  }

  /* --- Enrollment Form --- */
  .enrollment__inner {
    max-width: 640px;
  }

  .enrollment-form {
    gap: 24px;
  }

  /* --- Contacts Page --- */
  .contacts__grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  .map-placeholder {
    min-height: 450px;
  }
}


/* ================================================================
   LARGE DESKTOP (min-width: 1280px)
   Великі монітори — фінальне доведення відступів та розмірів
   ================================================================ */

@media (min-width: 1280px) {

  /* --- Container --- */
  .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
  }

  /* --- Typography --- */
  h1, .hero__title {
    font-size: 56px;
  }

  h2, .section__title, .section-title {
    font-size: 40px;
  }

  .section__subtitle, .section-subtitle {
    font-size: 19px;
  }

  /* --- Hero --- */
  .hero--home {
    min-height: 85vh;
  }

  .hero__subtitle {
    font-size: 22px;
    max-width: 750px;
  }

  /* --- Sections Spacing --- */
  .section {
    padding: 100px 0;
  }

  /* --- Advantages --- */
  .advantages__grid {
    gap: 32px;
  }

  /* --- Subjects --- */
  .subjects__grid {
    gap: 32px;
  }

  /* --- Services --- */
  .services__grid {
    gap: 32px;
  }

  /* --- Teachers --- */
  .teachers__grid {
    gap: 32px;
  }

  /* --- Reviews --- */
  .reviews-preview__grid,
  .reviews__grid {
    gap: 32px;
  }

  /* --- Stats --- */
  .stats__number {
    font-size: 56px;
  }

  /* --- Footer --- */
  .footer__inner {
    gap: 48px;
  }

  /* --- CTA Banner --- */
  .cta-banner__title {
    font-size: 40px;
  }

  /* --- Enrollment --- */
  .enrollment__inner {
    max-width: 700px;
  }

  /* --- About Page: History --- */
  .about-history__grid {
    gap: 60px;
  }

  /* --- Contacts --- */
  .contacts__grid {
    gap: 80px;
  }

  .map-placeholder {
    min-height: 500px;
  }
}
