:root {
  --c-red: #206ea4;
  --c-red-2: #1976d2;
  --c-red-deep: #0d47a1;
  --c-band: #206ea4;
  --c-gold: #2bde88;
  --c-gold-2: #31c893;
  --c-gold-soft: #30b69f;
  --c-pink: #e3f2fd;
  --c-cream: #f8f7f3;
  --c-ink: #232323;
  --c-muted: #6e6e6e;
  --c-icon: #2bde88;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 14px 40px rgba(0, 0, 0, 0.1);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Be Vietnam Pro", sans-serif;
  color: var(--c-ink);
  background: var(--c-cream);
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container);
}

.section {
  padding: 72px 0;
}

.section__eyebrow {
  color: var(--c-red);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.section__title {
  font-weight: 800;
  font-size: 30px;
  color: var(--c-ink);
  margin: 0;
  line-height: 1.25;
}

.section__head--center {
  text-align: center;
  margin-bottom: 46px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(180deg, var(--c-red), var(--c-red-2));
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 40px;
  border: 0;
  box-shadow: 0 8px 18px rgba(17, 85, 174, 0.28);
  cursor: pointer;
}

.btn-pill:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(17, 85, 174, 0.28);
}

.btn-pill i {
  font-size: 13px;
  transition: 0.2s;
}

.btn-pill:hover i {
  transform: translateX(3px);
}

.btn-pill--ghost {
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
  box-shadow: none;
}

.btn-pill--ghost:hover {
  background: #fff;
  color: var(--c-red);
}

.btn-pill--outline {
  background: transparent;
  border: 1.5px solid var(--c-red);
  color: var(--c-red);
  box-shadow: none;
}

.btn-pill--outline:hover {
  background: var(--c-red);
  color: #fff;
}

/* ============================ HEADER ============================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 12px;
}

.site-header__brand {
  flex: 0 0 auto;
}

.site-header__brand img {
  height: 70px;
  width: auto;
}

.main-nav {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}

.main-nav__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 0;
}

.main-nav__viewport::-webkit-scrollbar {
  display: none;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  width: max-content;
}

.main-nav__arrow {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: var(--c-pink, #f4e3c9);
  color: #444;
  font-size: 12px;
  cursor: pointer;
  z-index: 2;
}

.main-nav__arrow:hover {
  background: var(--c-red);
  color: #fff;
}

.main-nav--overflow .main-nav__arrow.is-visible {
  display: inline-flex;
}

.main-nav--overflow .main-nav__arrow--prev {
  margin-right: 6px;
}

.main-nav--overflow .main-nav__arrow--next {
  margin-left: 6px;
}

.main-nav__item {
  position: relative;
}

.main-nav__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 26px 12px;
  font-size: 15px;
  font-weight: 500;
  color: #2a2a2a;
  white-space: nowrap;
  position: relative;
}

.main-nav__link:hover {
  color: var(--c-red);
}

.main-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 18px;
  height: 2px;
  background: var(--c-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.25s;
}

.main-nav__item:hover>.main-nav__link::after {
  transform: scaleX(1);
}

.main-nav__link .fa-chevron-down {
  font-size: 9px;
}

/* level 2 dropdown */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 262px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: 0.22s;
  border-top: 3px solid var(--c-red);
}

.main-nav__item:hover>.dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__item {
  position: relative;
}

.dropdown__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 14.5px;
  color: #3a3a3a;
}

.dropdown__link:hover {
  background: var(--c-pink);
  color: var(--c-red);
}

.dropdown__link .fa-chevron-right {
  font-size: 10px;
  opacity: 0.6;
}

/* level 3 flyout */
.dropdown--flyout {
  position: absolute;
  top: -11px;
  left: 100%;
  min-width: 240px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: 0.22s;
  border-top: 3px solid var(--c-gold-2);
}

.dropdown__item:hover>.dropdown--flyout {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.dropdown--flyout .dropdown__link:hover {
  background: #fdf3da;
  color: #b5860a;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.header-search-btn,
.header-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f4f1ea;
  color: #444;
  border: 0;
  font-size: 16px;
  cursor: pointer;
}

.header-search-btn:hover {
  background: var(--c-pink);
  color: var(--c-red);
}

.header-lang {
  width: auto;
  padding: 0 14px;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 40px;
}

.site-header__contact {
  width: 110px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, var(--c-red), var(--c-red-2));
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 24px;
  border-radius: 40px;
  box-shadow: 0 8px 18px rgba(17, 90, 174, 0.28);
}

.site-header__contact:hover {
  color: #fff;
  transform: translateY(-2px);
}

.site-header__burger {
  display: none;
  background: none;
  border: 0;
  font-size: 24px;
  color: var(--c-red);
  cursor: pointer;
  padding: 6px;
}

/* header search panel */
.header-search {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: 0.3s;
}

.header-search.is-open {
  max-height: 120px;
  padding: 20px 0;
}

.header-search__form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-search__input {
  flex: 1;
  border: 1.5px solid #e6e2da;
  border-radius: 40px;
  padding: 13px 22px;
  font-size: 16px;
  outline: none;
}

.header-search__input:focus {
  border-color: var(--c-red);
}

.header-search__submit {
  background: var(--c-red);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 17px;
  cursor: pointer;
  flex: 0 0 48px;
}

.header-search__close {
  background: none;
  border: 0;
  font-size: 22px;
  color: #999;
  cursor: pointer;
}

/* ====================== MOBILE MENU ====================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(20, 8, 10, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 86%;
  max-width: 380px;
  background: #fff;
  padding: 18px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: 0.3s;
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.mobile-menu__head img {
  height: 40px;
}

.mobile-menu__close {
  background: none;
  border: 0;
  font-size: 26px;
  color: var(--c-red);
  cursor: pointer;
}

.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f1ea;
  border-radius: 40px;
  padding: 6px 6px 6px 18px;
  margin-bottom: 16px;
}

.mobile-search input {
  flex: 1;
  border: 0;
  background: none;
  outline: none;
  font-size: 15px;
}

.mobile-search button {
  background: var(--c-red);
  color: #fff;
  border: 0;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
}

.mobile-menu__list,
.m-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.m-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  border-bottom: 1px solid #f0eee9;
}

.m-row__link {
  font-size: 16px;
  font-weight: 600;
  color: #2a2a2a;
  flex: 1;
}

.m-toggle {
  background: var(--c-pink);
  color: var(--c-red);
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  flex: 0 0 32px;
}

.m-sub {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s;
  padding-left: 10px;
}

.m-sub.is-open {
  max-height: 1200px;
}

.m-sub .m-row {
  border-bottom: 1px dashed #eee;
}

.m-sub .m-row__link {
  font-size: 15px;
  font-weight: 500;
  color: #444;
}

.m-sub .m-toggle {
  background: #fdf3da;
  color: #b5860a;
}

.m-sub .m-sub .m-row__link {
  font-size: 14px;
  color: #666;
}

.mobile-menu__cta {
  margin-top: 18px;
  width: 100%;
  justify-content: center;
}

/* ============================ HERO ============================ */
.hero {
  background: linear-gradient(180deg, #e3f2fd 0%, #e3f2fd 100%);
  overflow: hidden;
  position: relative;
}

.hero__swiper {
  width: 100%;
}

.hero__swiper .swiper-slide {
  height: auto;
}

.hero__slide {
  position: relative;
}

.hero__grid {
  display: flex;
  align-items: center;
  min-height: 560px;
}

.hero__left {
  flex: 0 0 47%;
  max-width: 47%;
  padding: 30px 30px 60px 0;
  position: relative;
  z-index: 3;
}

.hero__title {
  font-size: 48px;
  font-weight: 800;
  color: var(--c-red);
  line-height: 1.14;
  margin: 0 0 18px;
}

.hero__desc {
  font-size: 17px;
  color: #5a4a2a;
  max-width: 440px;
  margin: 0 0 26px;
}

.hero__right {
  flex: 1;
  position: relative;
  align-self: flex-end;
  min-height: 560px;
}

.hero__person {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 90%;
  height: auto;
  max-height: 90%;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 20px 30px rgba(120, 80, 0, 0.18));
}

.hero__decor {
  position: absolute;
  z-index: 1;
  animation: floaty 5s ease-in-out infinite;
}

.hero__decor--pen {
  top: 50px;
  left: 6%;
  width: 74px;
  transform: rotate(-12deg);
  animation-delay: 0.3s;
}

.hero__decor--bag {
  top: 110px;
  right: 1%;
  width: 100px;
  animation-delay: 0.9s;
}

.hero__decor--book {
  bottom: 30px;
  left: -30px;
  width: 120px;
  animation-delay: 0.6s;
}

@keyframes floaty {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}

.hero__card {
  position: absolute;
  z-index: 4;
  background: #fffdf6;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  animation: floaty 6s ease-in-out infinite;
}

.hero__card--programs {
  top: 120px;
  left: 34%;
}

.hero__card--programs strong {
  color: var(--c-red);
  font-size: 15px;
  display: block;
}

.hero__card--programs span {
  color: #9a8a6a;
  font-size: 13px;
}

.hero__card--user {
  top: 300px;
  right: 5%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fbe9bd;
  animation-delay: 1.2s;
}

.hero__card--user img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.hero__card--user strong {
  font-size: 14px;
  display: block;
}

.hero__card--user span {
  font-size: 12px;
  color: #8a7a55;
}

.hero__card--avatars {
  bottom: 120px;
  left: 20%;
  max-width: 250px;
  animation-delay: 0.5s;
}

.hero__avatars {
  display: flex;
  margin-bottom: 6px;
}

.hero__avatars img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  object-fit: cover;
}

.hero__avatars img:first-child {
  margin-left: 0;
}

.hero__card--avatars p {
  font-size: 13px;
  color: #8a7a55;
  margin: 0;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  color: #7a5e15;
  font-size: 13px;
  font-weight: 500;
}

.hero__scroll i {
  display: block;
  font-size: 18px;
  margin-bottom: 2px;
  animation: bob 1.6s infinite;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(6px);
  }
}

.hero__nav {
  position: absolute;
  right: 24px;
  bottom: 20px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__nav button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(120, 80, 0, 0.3);
  background: rgba(255, 255, 255, 0.6);
  color: #7a5e15;
  font-size: 16px;
  cursor: pointer;
  transition: 0.2s;
}

.hero__nav button:hover {
  background: var(--c-red);
  color: #fff;
  border-color: var(--c-red);
}

.hero__counter {
  font-size: 15px;
  font-weight: 600;
  color: #7a5e15;
  min-width: 34px;
  text-align: center;
}

/* ============================ ABOUT ============================ */
.about {
  padding: 80px 0;
  background: var(--c-cream);
}

.about__media {
  position: relative;
  padding-bottom: 30px;
}

.about__img--main {
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  width: 100%;
  margin-left: auto;
}

.about__img--teacher {
  position: absolute;
  left: 0;
  bottom: 60px;
  width: 46%;
  border-radius: 18px;
  border: 6px solid var(--c-cream);
  box-shadow: var(--shadow-md);
}

.about__img--students {
  position: absolute;
  left: 30%;
  bottom: -10px;
  width: 46%;
  border-radius: 18px;
  border: 6px solid var(--c-cream);
  box-shadow: var(--shadow-md);
}

.about__lead {
  font-size: 16px;
  color: var(--c-muted);
  margin: 14px 0 28px;
}

.about__feature {
  display: flex;
  gap: 16px;
  margin-bottom: 22px;
}

.about__feature-icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--c-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: 0.3s;
}

.about__feature:hover .about__feature-icon {
  transform: rotate(8deg) scale(1.08);
}

.about__feature-title {
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 4px;
}

.about__feature-desc {
  font-size: 14.5px;
  color: var(--c-muted);
  margin: 0;
}

/* ============================ STATS ============================ */
.stats {
  background: var(--c-band);
  position: relative;
  overflow: hidden;
  padding: 46px 0;
}

.stats::before,
.stats::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  width: 280px;
  height: 120px;
  border-radius: 14px;
  transform: skewX(-12deg);
}

.stats::before {
  top: -30px;
  left: 30%;
}

.stats::after {
  bottom: -30px;
  right: 18%;
  width: 200px;
}

.stats__item {
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 2;
}

.stats__num {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.stats__num small {
  font-size: 30px;
}

.stats__label {
  font-size: 14px;
  margin-top: 8px;
  opacity: 0.92;
}

.stats__label strong {
  font-weight: 700;
}

/* ============================ COURSES ============================ */
.courses {
  padding: 78px 0;
  background: var(--c-cream);
}

.course-card {
  background: var(--c-pink);
  border-radius: 20px;
  padding: 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  border: 1px solid transparent;
}

.course-card:hover {
  background: var(--c-red);
  box-shadow: 0 20px 40px rgba(17, 85, 174, 0.28);
  transform: translateY(-4px);
}

.course-card__media {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  background: #c9152b;
}

.course-card__media img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: 0.4s;
}

.course-card:hover .course-card__media img {
  transform: scale(1.04);
}

.course-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-red);
  margin: 0 6px 10px;
  line-height: 1.35;
  transition: 0.3s;
}

.course-card:hover .course-card__title {
  color: #fff;
}

.course-card__desc {
  font-size: 14.5px;
  color: #6a5a5a;
  margin: 0 6px 18px;
  flex: 1;
  transition: 0.3s;
}

.course-card:hover .course-card__desc {
  color: #ffe1e1;
}

.course-card__cta {
  margin: 0 6px 6px;
  align-self: flex-start;
  transition: 0.3s;
}

.course-card:hover .course-card__cta {
  background: #fff;
  color: var(--c-red);
  box-shadow: none;
}

.course-card:hover .course-card__cta i {
  color: var(--c-red);
}

/* ============================ WHY ============================ */
.why {
  padding: 30px 0 90px;
  background: var(--c-cream);
  position: relative;
}

.why__inner {
  position: relative;
  display: flex;
  align-items: stretch;
}

.why__panel {
  flex: 0 0 46%;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  padding: 50px 44px;
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.why__panel::before {
  content: "";
  position: absolute;
  left: -130px;
  top: -50px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle,
      rgba(201, 21, 43, 0.06) 0 1.5px,
      transparent 1.5px 14px);
}

.why__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 30px;
}

.why__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  color: #555;
  font-size: 15.5px;
}

.why__list i {
  color: var(--c-red);
  font-size: 18px;
}

.why__media {
  flex: 1;
  margin-left: -60px;
  display: flex;
}

.why__media img {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

/* ============================ TESTIMONIALS ============================ */
.testi {
  background: var(--c-band);
  position: relative;
  overflow: hidden;
  padding: 64px 0 80px;
}

.testi::before {
  content: "";
  position: absolute;
  top: 40px;
  right: 10%;
  width: 260px;
  height: 120px;
  background: rgba(255, 255, 255, 0.05);
  transform: skewX(-12deg);
  border-radius: 12px;
}

.testi__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.testi__eyebrow {
  color: var(--c-gold);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}

.testi__title {
  color: #fff;
  font-weight: 800;
  font-size: 28px;
  margin: 0;
}

.testi-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.testi-card__photo {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.testi-card__body {
  padding: 18px 20px 22px;
}

.testi-card__stars {
  color: var(--c-gold-2);
  font-size: 14px;
  margin-bottom: 10px;
}

.testi-card__quote {
  font-size: 14.5px;
  color: #555;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testi-card__more {
  color: var(--c-red);
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1.5px solid var(--c-red);
  display: inline-block;
  padding-bottom: 2px;
  margin-bottom: 14px;
}

.testi-card__name {
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}

.testi-card__role {
  font-size: 13px;
  color: #999;
}

.testi__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
  gap: 24px;
}

.testi__scrollbar.swiper-scrollbar {
  flex: 1;
  position: relative;
  height: 7px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 7px;
  cursor: grab;
}

.testi__scrollbar .swiper-scrollbar-drag {
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  cursor: grab;
}

.testi__scrollbar .swiper-scrollbar-drag:active {
  cursor: grabbing;
}

.testi__avatars {
  display: flex;
}

.testi__avatars img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #fff;
  margin-left: -12px;
  object-fit: cover;
}

.testi__avatars img:first-child {
  margin-left: 0;
}

/* ============================ GALLERY ============================ */
.gallery {
  padding: 78px 0;
  background: var(--c-cream);
}

.gallery__swiper {
  padding-bottom: 46px;
}

.gallery__page {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}

.gallery__item {
  overflow: hidden;
  border-radius: 16px;
  position: relative;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.45s;
}

.gallery__item::after {
  content: "\f00e";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  background: rgba(17, 85, 174, 0.28);
  opacity: 0;
  transition: 0.3s;
}

.gallery__item:hover::after {
  opacity: 1;
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__pagination {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.gallery__pagination .swiper-pagination-bullet {
  width: 11px;
  height: 11px;
  background: #d8d2c6;
  opacity: 1;
  border-radius: 50%;
  transition: 0.25s;
  margin: 0 !important;
}

.gallery__pagination .swiper-pagination-bullet-active {
  background: var(--c-red);
  width: 28px;
  border-radius: 6px;
}

/* ============================ NEWS ============================ */
.news {
  padding: 30px 0 84px;
  background: var(--c-cream);
}

.news__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}

.news-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: 0.3s;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.news-card__photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: 0.4s;
}

.news-card:hover .news-card__photo {
  transform: scale(1.05);
}

.news-card__body {
  background: var(--c-gold);
  padding: 20px 22px 24px;
  transition: 0.3s;
}

.news-card:hover .news-card__body {
  background: var(--c-red);
}

.news-card__title {
  font-size: 17px;
  font-weight: 700;
  color: #3a2c0a;
  margin: 0 0 10px;
  line-height: 1.35;
  transition: 0.3s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__excerpt {
  font-size: 14px;
  color: #6a5b30;
  margin: 0 0 14px;
  transition: 0.3s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__meta {
  font-size: 13px;
  color: #7a6a3a;
  transition: 0.3s;
}

.news-card:hover .news-card__title {
  color: #fff;
}

.news-card:hover .news-card__excerpt {
  color: #ffe1e1;
}

.news-card:hover .news-card__meta {
  color: #ffd0d0;
}

/* ============================ CONTACT ============================ */
.contact {
  background: var(--c-gold-soft);
  position: relative;
  padding: 70px 0 80px;
  overflow: hidden;
}

.contact__deco {
  position: absolute;
  top: 0;
  bottom: 0;
  background: var(--c-red);
  z-index: 0;
}

.contact__deco--left {
  left: 0;
  width: 130px;
  clip-path: polygon(0 0, 100% 14%, 60% 50%, 100% 86%, 0 100%);
}

.contact__deco--right {
  right: 0;
  width: 170px;
  clip-path: polygon(40% 0, 100% 0, 100% 100%, 40% 100%, 0 50%);
}

.contact__panel {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  padding: 46px 44px;
}

.contact__lead {
  font-size: 15px;
  color: var(--c-muted);
  margin: 10px 0 26px;
}

.contact__form .form-control {
  border: 1px solid #e6e2da;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 15px;
  height: auto;
  margin-bottom: 16px;
}

.contact__form textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.contact__form .form-control:focus {
  border-color: var(--c-red);
  box-shadow: none;
}

.contact__illus {
  max-width: 300px;
  margin: 0 auto 26px;
}

.contact__info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.contact__info-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.contact__info-label {
  font-weight: 700;
  margin: 0;
  font-size: 15px;
}

.contact__info-text {
  margin: 0;
  color: #555;
  font-size: 14.5px;
}

.contact__social {
  position: absolute;
  right: -20px;
  top: 60px;
  z-index: 3;
  background: var(--c-red);
  border-radius: 14px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact__social a {
  color: #fff;
  font-size: 18px;
}

.contact__social a:hover {
  color: var(--c-gold);
  transform: scale(1.15);
}

.contact__branch {
  position: absolute;
  top: 30px;
  right: 46px;
  z-index: 3;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  max-width: 280px;
}

.contact__branch i {
  color: var(--c-red);
  font-size: 18px;
}

/* ============================ FOOTER ============================ */
.site-footer {
  background: var(--c-red-deep);
  color: #f3dede;
  padding: 70px 0 30px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer__brand-shield {
  width: 160px;
  height: auto;
}

.site-footer__brand-text {
  font-weight: 800;
  color: var(--c-gold);
  line-height: 1.05;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.site-footer__brand-text small {
  display: block;
  font-size: 22px;
}

.site-footer__desc {
  font-size: 14.5px;
  color: #e7c9cd;
  max-width: 340px;
  margin: 0 0 22px;
}

.site-footer__social {
  display: flex;
  gap: 12px;
}

.site-footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
}

.site-footer__social a:hover {
  background: var(--c-gold);
  border-color: var(--c-gold);
  color: var(--c-red-deep);
}

.site-footer__col-title {
  font-weight: 700;
  color: #fff;
  font-size: 17px;
  margin: 0 0 20px;
}

.site-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__links li {
  margin-bottom: 13px;
}

.site-footer__links a {
  font-size: 14.5px;
  color: #e7c9cd;
}

.site-footer__links a:hover,
.site-footer__links a.is-active {
  color: var(--c-gold);
}

.site-footer__map {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 22px;
}

.site-footer__map iframe {
  display: block;
  width: 100%;
  height: 170px;
  border: 0;
}

.site-footer__contact-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.site-footer__contact-row i {
  color: var(--c-gold);
  font-size: 16px;
  margin-top: 3px;
}

.site-footer__contact-row strong {
  display: block;
  color: #fff;
  font-size: 14.5px;
}

.site-footer__contact-row span {
  font-size: 14px;
  color: #e7c9cd;
}

.float-help {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--c-gold);
  color: #5a3d00;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 18px;
  border-radius: 40px;
  box-shadow: var(--shadow-md);
}

.float-help:hover {
  transform: translateY(-3px);
  color: #5a3d00;
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 80px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eee;
  color: var(--c-red);
  box-shadow: var(--shadow-md);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

.scroll-top.is-visible {
  display: flex;
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1199px) {
  .hero__title {
    font-size: 40px;
  }

  .main-nav__link {
    padding: 26px 8px;
    font-size: 14px;
  }
}

@media (max-width: 991px) {

  .main-nav,
  .header-lang,
  .site-header__contact,
  .header-search-btn {
    display: none;
  }

  .site-header__burger {
    display: block;
  }

  .hero__grid {
    flex-direction: column;
    align-items: flex-start;
    min-height: auto;
  }

  .hero__left {
    flex: none;
    max-width: 100%;
    padding: 40px 0 10px;
  }

  .hero__right {
    width: 100%;
    min-height: 440px;
  }

  .hero__card--programs {
    left: 4%;
  }

  .hero__card--user {
    right: 4%;
  }

  .hero__card--avatars {
    left: 4%;
    bottom: 90px;
  }

  .hero__nav {
    right: 14px;
  }

  .about__media {
    margin-bottom: 40px;
  }

  .about__img--main {
    width: 100%;
  }

  .why__inner {
    flex-direction: column;
  }

  .why__panel {
    flex: none;
    width: 100%;
  }

  .why__media {
    margin: 24px 0 0;
  }

  .gallery__page {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .gallery__item--tall {
    grid-row: span 1;
  }

  .contact__social,
  .contact__branch {
    position: static;
    margin: 18px 0 0;
  }

  .contact__social {
    flex-direction: row;
    width: max-content;
    border-radius: 40px;
  }
}

@media (max-width: 767px) {

  .section,
  .about,
  .courses,
  .gallery {
    padding: 54px 0;
  }

  .hero__title {
    font-size: 30px;
  }

  .hero__desc {
    font-size: 15.5px;
  }

  .section__title,
  .testi__title {
    font-size: 23px;
  }

  .testi__head,
  .news__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .about__img--teacher,
  .about__img--students {
    position: static;
    width: 48%;
    display: inline-block;
    margin: 10px 1% 0;
    border: 0;
  }

  .about__img--main {
    width: 100%;
  }

  .gallery__page {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .gallery__item--wide {
    grid-column: span 1;
  }

  .stats__num {
    font-size: 34px;
  }

  .stats__item {
    margin-bottom: 18px;
  }

  .contact__panel {
    padding: 30px 22px;
  }

  .why__panel {
    padding: 34px 24px;
  }

  .testi__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .float-help span {
    display: none;
  }

  .float-help {
    padding: 14px;
    border-radius: 50%;
  }
}