* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1A2A3A;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
  width: 100%;
  font-size: 21px;
}
body{
  position: relative;
}

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

p {
  font-size: 21px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
  width: 100%;
}

.header {
  background: transparent;
  padding: 0px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  
}

.header .container {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: nowrap;
  position: absolute;
  gap: 0;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: 32px;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  display: flex;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.logo-img {
  width: 200px;
  height: auto;
  object-fit: contain;
  margin-right: 0;
  margin-left: 0;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: relative;
  width: 30px;
  height: 30px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #FFFFFF;
  margin: 4px 0;
  transition: opacity 0.3s ease;
}

.hamburger .close-icon {
  display: none;
  color: #FFFFFF;
  font-size: 22px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease;
}

.hamburger.active .close-icon {
  display: block;
}

.hamburger.active span {
  opacity: 0;
}

.main-menu {
  display: flex;
  flex: 1 1 0;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto;
  padding-top: 25px;
}

.main-menu ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 10px 32px;
  list-style: none;
  margin: 20px 0 0 0; /* add top margin for spacing from top */
  padding: 0;
  justify-items: center;
  align-items: center;
}

.main-menu li {
  margin: 0;
  padding: 0;
}
.main-content {
  position: relative;
  z-index: 2;
  padding: 0 160px; /* отступы под колонки */
}


.main-menu a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 6px 18px;
  border-radius: 8px;
  display: block;
  text-align: center;
}

.main-menu a:hover,
.main-menu a.active {
  color: #E6F3FA;
  background: rgba(255,255,255,0.08);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #66C2E8 0%, #F0E68C 80%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  padding: 80px 12px;
  z-index: 1;
}

.hero .hero-title {
  margin-top: 60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  z-index: 1;
}

@keyframes floatShapes {
  0% { transform: translateY(0) scale(1); opacity: 0.5; }
  50% { transform: translateY(-15px) scale(1.05); opacity: 0.7; }
  100% { transform: translateY(0) scale(1); opacity: 0.5; }
}

.hero-shapes .shape {
  position: absolute;
  background: rgba(255,255,255,0.3);
  animation: floatShapes 6s ease-in-out infinite;
}

/* Update hero section shapes (tripled from 4 to 12) */
.hero-shapes .shape {
  position: absolute;
  background: rgba(255,255,255,0.3);
  animation: floatShapes 6s ease-in-out infinite;
}

.hero-shapes .shape-star-1 { width: 30px; height: 30px; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); top: 5%; left: 10%; }
.hero-shapes .shape-circle-1 { width: 45px; height: 45px; border-radius: 50%; top: 30%; right: 15%; }
.hero-shapes .shape-triangle-1 { width: 37.5px; height: 37.5px; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); bottom: 10%; left: 35%; }
.hero-shapes .shape-hexagon-1 { width: 42px; height: 42px; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); bottom: 25%; right: 5%; }
.hero-shapes .shape-star-2 { width: 27px; height: 27px; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); top: 20%; left: 45%; }
.hero-shapes .shape-circle-2 { width: 48px; height: 48px; border-radius: 50%; top: 60%; right: 30%; }
.hero-shapes .shape-triangle-2 { width: 33px; height: 33px; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); bottom: 5%; left: 20%; }
.hero-shapes .shape-hexagon-2 { width: 39px; height: 39px; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); bottom: 40%; right: 25%; }
.hero-shapes .shape-star-3 { width: 36px; height: 36px; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); top: 40%; left: 5%; }
.hero-shapes .shape-circle-3 { width: 42px; height: 42px; border-radius: 50%; top: 15%; right: 40%; }
.hero-shapes .shape-triangle-3 { width: 30px; height: 30px; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); bottom: 30%; left: 50%; }
.hero-shapes .shape-hexagon-3 { width: 45px; height: 45px; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); bottom: 15%; right: 10%; }
/* General shapes for other sections */
.section-shapes .shape {
  position: absolute;
  background: #98a1c539;
  animation: floatShapes 6s ease-in-out infinite;
  z-index: 0;
}

/* Updated shapes for other sections (larger sizes, randomized positions) */
.section-shapes .shape-star-1 { width: 30px; height: 30px; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); top: 5%; left: 10%; }
.section-shapes .shape-circle-1 { width: 45px; height: 45px; border-radius: 50%; top: 30%; right: 15%; }
.section-shapes .shape-triangle-1 { width: 37.5px; height: 37.5px; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); bottom: 10%; left: 35%; }
.section-shapes .shape-hexagon-1 { width: 42px; height: 42px; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); bottom: 25%; right: 5%; }
.section-shapes .shape-star-2 { width: 27px; height: 27px; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); top: 20%; left: 45%; }
.section-shapes .shape-circle-2 { width: 48px; height: 48px; border-radius: 50%; top: 60%; right: 30%; }
.section-shapes .shape-triangle-2 { width: 33px; height: 33px; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); bottom: 5%; left: 20%; }
.section-shapes .shape-hexagon-2 { width: 39px; height: 39px; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); bottom: 40%; right: 25%; }
.section-shapes .shape-star-3 { width: 36px; height: 36px; clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); top: 40%; left: 5%; }
.section-shapes .shape-circle-3 { width: 42px; height: 42px; border-radius: 50%; top: 15%; right: 40%; }
.section-shapes .shape-triangle-3 { width: 30px; height: 30px; clip-path: polygon(50% 0%, 0% 100%, 100% 100%); bottom: 30%; left: 50%; }
.section-shapes .shape-hexagon-3 { width: 45px; height: 45px; clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%); bottom: 15%; right: 10%; }
.who-we-are, .about, .learning, .team, .parents, .faq, .enroll, .contacts, .school-life {
  position: relative;
  overflow: hidden;
}

.who-we-are::before, .about::before, .learning::before, .team::before, .parents::before, .faq::before, .enroll::before, .contacts::before, .school-life::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  z-index: 0;
}

.hero-title{
  font-family: 'Montserrat', sans-serif;
  font-size: 53px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #4682B4 0%, #BDB76B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  z-index: 3;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 16px;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: left;
}
.hero-subtitle-cyt {
  font-style: italic;
  color: #555;
  border-left: 4px solid #ccc;
  padding: 12px 20px;
  margin: 20px 0;
  background-color: rgba(249, 249, 249, 0.6);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  position: relative;
}
.hero-subtitle-cyt::before {
  content: "“";
  font-size: 32px;
  color: #bbb;
  position: absolute;
  left: 10px;
  top: 5px;
  font-family: serif;
}
.hero-subtitle-cyt::after {
  content: "”";
  font-size: 32px;
  color: #bbb;
  position: absolute;
  right: 10px;
  bottom: 5px;
  font-family: serif;
}

.hero-button {
  display: inline-block;
  padding: 15px 24px;
  background-color: #FFFFFF;
  color: #4A90E2;
  font-weight: 600;
  text-decoration: none;
  font-size: 18px;
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
  margin-top: 30px;
  z-index: 3;
}

.hero-button:hover {
  background-color: #4A90E2;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.cta-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FFB999;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  border-radius: 30px;
  margin: 16px 0;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #4A90E2;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.who-we-are {
  padding: 53px 0;
  background: linear-gradient(to bottom, #F0E68C 0%, #FFF8F1 100%);
  position: relative;
  z-index: 2;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  color: #1A2A3A;
  text-align: center;
  padding: 17px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background-color: #4A90E2;
  margin: 6px auto 0;
}

.who-we-are-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  color: #1A2A3A;
  max-width: 750px;
  margin: 0 auto 70px;
  text-align: center;
}

.who-we-are-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  max-width: 100%;
}

.who-we-are-item {
  background: #FFFFFF;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.who-we-are-item:hover {
  transform: translateY(-3px);
}

.who-we-are-icon {
  font-size: 24px;
  color: #4A90E2;
  margin-bottom: 8px;
}

.who-we-are-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.who-we-are-item p {
  font-size: 16px;
  color: #4A5666;
}

.about {
  padding: 53px 0;
  background: linear-gradient(to bottom, #FFF8F1 0%, #E6F3FA 100%);
  position: relative;
  z-index: 2;
}

.about-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  color: #1A2A3A;
  max-width: 750px;
  margin: 0 auto 70px;
  text-align: center;
  line-height: 1.5;
}

.about p {
  font-size: 21px;
  color: #4A5666;
  max-width: 750px;
  margin: 0 auto 16px;
  text-align: center;
}

.about-quote {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  color: #4A90E2;
  text-align: center;
  margin: 20px auto;
  max-width: 550px;
  padding: 10px;
  background: #FFFFFF;
  border-left: 2px solid #E6F3FA;
  border-radius: 5px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 850px;
  margin: 0 auto 90px;
  perspective: none;
}

.value-item {
  background: #FFFFFF;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s;
  min-height: 180px;
  cursor: default;
  position: relative;
  perspective: none;
}

.value-card-inner,
.value-card-front,
.value-card-back {
  position: static;
  width: 100%;
  height: auto;
  min-height: 0;
  backface-visibility: visible;
  box-shadow: none;
  border-radius: 10px;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  transform: none !important;
}

.value-card-front .value-icon {
  font-size: 38px;
  color: #66C2E8;
  margin-bottom: 8px;
}

.value-card-front h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1A2A3A;
  margin-bottom: 0;
}

.value-card-back {
  display: none !important;
}

/* --- Переваги навчання (benefits) — flip карточки --- */
/* Benefits grid with square blocks, tighter spacing, and centered */
/* Benefits grid with square blocks, tighter spacing, centered, and full-card images */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 100px; /* Tight spacing for cohesive look */
  max-width: 100%;
  margin: 0 auto 90px;
  justify-content: center; /* Center the grid items horizontally */
  perspective: 900px;
}

.benefit-item {
  background: #FFFFFF;
  padding: 0; /* No padding to maintain square shape */
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  width: 300px; /* Fixed square size */
  height: 200px; /* Fixed square size */
  position: relative;
  perspective: 900px;
}

.benefit-item:hover {
  transform: translateY(-3px);
}

.benefit-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px; /* Match square size */
  transition: transform 0.6s cubic-bezier(.4,2,.6,1);
  transform-style: preserve-3d;
}

.benefit-item.flipped .benefit-card-inner {
  transform: rotateY(180deg);
}

.benefit-card-front, .benefit-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.benefit-card-front {
  padding: 18px 8px; /* Padding for front content */
}

.benefit-card-back  {
  font-size: 10px;
  transform: rotateY(180deg);
  background: #fff;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  padding: 0; /* No padding to maximize image space */
}
.benefit-card-back p{
  font-size: 15px;
  text-align: left;
  margin-left: 12px;
  color: #4A5666;
}

.benefit-card-front .benefit-icon {
  font-size: 38px;
  color: #66C2E8;
  margin-bottom: 8px;
}

.benefit-card-front h3 {
  font-size: 14px;
  font-weight: 600;
  color: #1A2A3A;
  margin-bottom: 0;
}

.benefit-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Image fills entire card, may crop slightly */
  border-radius: 15px;
}


/* Responsive adjustments */
@media (max-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px; /* Consistent with desktop */
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 3px; /* Tight spacing */
    justify-content: center;
  }
  .benefit-item {
    width: 150px; /* Square size for mobile */
    height: 150px;
  }
  .benefit-card-inner {
    min-height: 150px;
  }
  .benefit-card-front {
    padding: 10px 4px;
  }
  .benefit-card-front .benefit-icon {
    font-size: 28px;
    margin-bottom: 6px;
  }
  .benefit-card-front h3 {
    font-size: 15px;
  }
}

@media (max-width: 480px) {

}

.learning {
  padding: 53px 0 0 0;
  margin-top: 0;
  background: linear-gradient(to bottom, #FFF8F1 0%, #E6F3FA 100%);
  position: relative;
  z-index: 2;
}

.learning h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #1A2A3A;
  margin-bottom: 16px;
  text-align: center;
}

.learning .school-day {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  max-width: 750px;
  margin: 0 auto 20px;
  line-height: 1.6;
  color: #1A2A3A;
  text-align: left !important;
}

.learning .adaptation-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  max-width: 750px;
  margin: 0 auto 16px;
  line-height: 1.5;
  color: #1A2A3A;
  text-align: center;
}

.learning .enroll-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 850px;
  margin: 0 auto 50px;
  padding: 0 12px;
}

.learning .step-item {
  background: #FFFFFF;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.learning .step-item:hover {
  transform: translateY(-3px);
}

.learning .step-icon {
  font-size: 24px;
  color: #4A90E2;
  margin-bottom: 8px;
}

.learning .step-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #1A2A3A;
  margin-bottom: 6px;
}

.learning .step-item p {
  font-size: 21px;
  color: #4A5666;
}

.learning .learn-day {
  font-size: 23px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 20px;
  text-align: center;
  color: #1A2A3A;
}

.learning .learn-day + .learn-day {
  margin-top: 40px;
}

.learning .learn-day + .adaptation-description {
  margin-top: 24px;
}

.learning .adaptation-description + .section-title {
  margin-top: 40px;
}

.day-timeline {
  list-style: none;
  max-width: 750px;
  margin: 0 auto 16px;
  border-left: 2px solid #4A90E2;
  padding-left: 16px;
  text-align: left;
}

.day-timeline li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 6px 0;
  position: relative;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
  flex-direction: column;
  align-items: flex-start;
}

.day-timeline li .day-plus {
  margin-left: 8px;
  font-size: 20px;
  color: #4A90E2;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
  display: inline-block;
  vertical-align: middle;
}

.day-timeline li .day-plus.open {
  color: #BDB76B;
}

.day-timeline-img-wrap {
  width: 100%;
  max-width: 420px;
  margin: 8px 0 12px 0;
  display: none;
  animation: fadeInDayImg 0.4s;
  position: relative;
}

.day-timeline-img-wrap.open {
  display: block;
}

.day-timeline-img-wrap img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

.day-timeline-img-close {
  position: absolute;
  top: 4px;
  right: 8px;
  background: #fff;
  border: none;
  color: #4A90E2;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  z-index: 2;
  transition: background 0.2s;
}

.day-timeline-img-close:hover {
  background: #E6F3FA;
}

@keyframes fadeInDayImg {
  from { opacity: 0; transform: translateY(10px);}
  to { opacity: 1; transform: translateY(0);}
}

.team {
  padding: 53px 0;
  background: linear-gradient(to bottom, #E6F3FA 0%, #FFF8F1 100%);
  position: relative;
  z-index: 2;
}

.team-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  color: #1A2A3A;
  max-width: 750px;
  margin: 0 auto 16px;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-width: 100%;
  margin: 0 auto 16px;
}

.team-item {
  text-align: center;
  background: #FFFFFF;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.team-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 6px;
}

.team-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #1A2A3A;
  margin-bottom: 4px;
}

.team-item p {
  font-size: 21px;
  color: #4A5666;
}

.team-quote {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  color: #4A90E2;
  text-align: center;
  margin: 16px auto;
  max-width: 550px;
}

.parents {
  padding: 80px 0;
  background: linear-gradient(to bottom, #FFF8F1 0%, #E6F3FA 100%);
  position: relative;
  z-index: 2;
}

.parents-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  color: #1A2A3A;
  max-width: 750px;
  margin: 0 auto 16px;
  text-align: center;
}

.faq {
  padding: 80px 0;
  background: linear-gradient(to bottom, #E6F3FA 0%, #FFF8F1 100%);
  position: relative;
  z-index: 2;
}

.faq-list {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  background: #FFFFFF;
  border-radius: 14px;
  margin-bottom: 32px;
  box-shadow: 0 5px 8px rgba(0,0,0,0.1);
}

.faq-question {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: #1A2A3A;
  padding: 10px 13px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #E6F3FA;
}

.faq-question::after {
  content: '➕';
  position: absolute;
  right: 12px;
  font-size: 18px;
  color: #4A90E2;
}

.faq-item.active .faq-question::after {
  content: '➖';
}

.faq-answer {
  font-size: 19px;
  color: #4A5666;
  padding: 8px 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 160px;
  padding: 2px 16px;
}

.enroll {
  padding: 80px 0;
  background: linear-gradient(to bottom, #FFF8F1 0%, #E6F3FA 100%);
  position: relative;
  z-index: 2;
}

.enroll .enroll-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 400px;
  margin: 0 auto 50px;
  padding: 0 12px;
}

.enroll .how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 850px;
  margin: 0 auto 50px;
  padding: 0 12px;
}

.enroll .adaptation-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  line-height: 1.5;
  color: #1A2A3A;
  text-align: center;
  margin: 0 auto 16px;
  max-width: 750px;
}

.how-steps .adaptation-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  line-height: 1.5;
  color: #1A2A3A;
  text-align: center;
  margin: 0 auto 16px;
  max-width: 750px;
}

.enroll .text-cont {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  line-height: 1.5;
  color: #1A2A3A;
  text-align: center;
  margin: 0;
}

.enroll .text-cont h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1A2A3A;
  text-align: center;
  margin: 0;
}

.step-item {
  background: #FFFFFF;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.step-item:hover {
  transform: translateY(-3px);
}

.step-icon {
  font-size: 24px;
  color: #4A90E2;
  margin-bottom: 8px;
}

.step-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #1A2A3A;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 21px;
  color: #4A5666;
}

.contacts {
  padding: 80px 0;
  background: linear-gradient(to bottom, #E6F3FA 0%, #FFF8F1 100%);
  position: relative;
  z-index: 2;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 100%;
}

.contacts-form h3,
.contacts-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #1A2A3A;
  margin-bottom: 10px;
}

.contacts-form form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #FFFFFF;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.contacts-form input,
.contacts-form textarea {
  padding: 8px;
  border: 1px solid #4A90E2;
  border-radius: 5px;
  font-size: 21px;
  color: #1A2A3A;
  background-color: #F8FAFE;
  transition: all 0.3s ease;
}

.contacts-form input:focus,
.contacts-form textarea:focus {
  border-color: #FFB999;
  box-shadow: 0 0 5px rgba(255,185,153,0.2);
  outline: none;
}

.contacts-form textarea {
  height: 80px;
  resize: vertical;
}

.form-button {
  padding: 8px 16px;
  background-color: #4A90E2;
  color: #FFFFFF;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-button:hover {
  background-color: #BDB76B;
  transform: translateY(-2px);
}

.contacts-info ul {
  list-style: none;
  margin-bottom: 16px;
}

.contacts-info li {
  font-size: 21px;
  color: #4A5666;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-icon {
  font-size: 16px;
  color: #4A90E2;
}

.contacts-social {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.contacts-social .social-icon {
  font-size: 18px;
  color: #4A90E2;
  transition: all 0.3s ease;
}

.contacts-social .social-icon:hover {
  color: #BDB76B;
  transform: scale(1.1);
}

.contacts-map iframe {
  border-radius: 8px;
  width: 100%;
  height: 200px;
}

.footer {
  background: linear-gradient(90deg, #1A2A3A, #2A3B4C);
  padding: 24px 0 12px;
  color: #FFFFFF;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 16px;
}

.footer-logo .logo-text {
  font-family: 'Montserrat', sans-serif;
  color: #FFFFFF;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-logo .logo-text i {
  font-size: 18px;
}

.footer-slogan {
  font-size: 21px;
  color: #E6F3FA;
  margin-top: 6px;
}

.footer-links h3,
.footer-contacts h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  margin-bottom: 6px;
}

.footer-links ul,
.footer-contacts ul {
  list-style: none;
}

.footer-links li,
.footer-contacts li {
  margin-bottom: 6px;
}

.footer-links a {
  color: #E6F3FA;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #FFB999;
}

.footer-contacts li {
  font-size: 21px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-bottom {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid #E6F3FA;
  font-size: 21px;
}

.quick-contact {
  position: fixed;
  bottom: 70px;
  right: 12px;
  background-color: #4A90E2;
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  z-index: 1000;
}
.quick-contact-instagram {
  position: fixed;
  bottom: 150px;
  right: 12px;
  background-color: #4A90E2;
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  z-index: 1000;
}
.quick-contact:hover,
.quick-contact-instagram:hover {
  background-color: #BDB76B;
  transform: scale(1.1);
}

.scroll-top {
  position: fixed;
  bottom: 12px;
  right: 12px;
  background-color: #4A90E2;
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-top.visible {
  opacity: 1;
}

.scroll-top:hover {
  background-color: #BDB76B;
  transform: scale(1.1);
}

.school-life {
  padding: 40px 0 80px 0;
  background: linear-gradient(to bottom, #E6F3FA 0%, #FFF8F1 100%);
  position: relative;
  z-index: 2;
}

.school-life-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  color: #1A2A3A;
  text-align: center;
  margin-bottom: 16px;
  font-weight: 600;
}

.school-life-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 21px;
  color: #1A2A3A;
  max-width: 750px;
  margin: 0 auto 16px;
  text-align: center;
}

.carousel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  touch-action: pan-y;
}

.carousel-item {
  min-width: 100%;
  padding: 8px;
}

.carousel-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.carousel-item:hover img {
  transform: scale(1.03);
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #E6F3FA;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  cursor: pointer;
  font-size: 28px;
  color: #1A2A3A;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.carousel-button:hover {
  background-color: #BDB76B;
}

#prevBtn {
  left: 6px;
}

#nextBtn {
  right: 6px;
}

@media (max-width: 768px) {
  html, body {
    font-size: 16px;
  }
  .day-timeline {
    text-align: left;
  }
  .day-timeline li {
    text-align: left;
  }
  .day-timeline p {
    text-align: left;
  }
  .day-timeline p.school-day {
    text-align: left !important;
  }
  p {
    font-size: 16px;
  }
  .container {
    padding: 0 10px;
  }

  .header {
    padding: 4px 0;
  }

  .logo-text {
    font-size: 18px;
  }

  .logo-img {
    width: 100px;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    margin: 0;
    z-index: 1001;
  }

  .hamburger .close-icon {
    font-size: 20px;
  }

  .main-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 220px;
    background: linear-gradient(90deg, #66C2E8, #4A90E2);
    transition: right 0.3s ease;
    padding-top: 50px;
  }

  .main-menu.active {
    right: 0;
  }

  .main-menu ul {
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .main-menu a {
    font-size: 16px;
    text-align: left;
  }

  .hero {
    min-height: 50vh;
    padding: 60px 10px;
  }

  .hero-title {
    font-size: 21px;
  }

  .hero-subtitle {
    font-size: 14px;
    max-width: 90%;
  }

  .hero-button {
    padding: 10px 20px;
    font-size: 16px;
  }

  .section-title {
    font-size: 21px;
  }

  .who-we-are, .about, .learning, .parents, .faq, .enroll, .contacts, .school-life, .team {
    padding: 40px 0;
  }

  .who-we-are-description, .about-description, .learning .school-day, .learning .adaptation-description, .team-description, .parents-description, .school-life-subtitle {
    font-size: 16px;
    max-width: 90%;
  }

  .values-grid, .benefits-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 100%;
    padding: 0 6px;
  }
  .value-item,
  .benefit-item {
    min-height: 120px;
    padding: 10px;
    border-radius: 8px;
  }
  .value-card-front .value-icon,
  .benefit-card-front .benefit-icon {
    font-size: 28px;
    margin-bottom: 6px;
  }
  .value-card-front h3,
  .benefit-card-front h3 {
    font-size: 15px;
  }
  .benefit-card-back img {
    height: 90px;
    border-radius: 8px;
  }
  .benefit-card-inner,
  .value-card-inner {
    min-height: 90px;
    padding: 0;
  }
  .benefit-card-front,
  .benefit-card-back,
  .value-card-front {
    padding: 10px 4px;
    border-radius: 8px;
  }
  .who-we-are-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 6px;
  }
  .who-we-are-item {
    padding: 10px;
    border-radius: 8px;
  }
  .who-we-are-icon {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .who-we-are-item h3 {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .main-content {
    padding: 0;
  }
  .container {
    padding: 0 6px;
  }
  .section-title {
    font-size: 18px;
    padding: 10px 0;
    margin-bottom: 12px;
  }
  .about-description,
  .team-description,
  .parents-description,
  .school-life-subtitle,
  .who-we-are-description,
  .learning .adaptation-description,
  .learning .school-day,
  .enroll .adaptation-description,
  .how-steps .adaptation-description {
    font-size: 13px;
    margin-bottom: 18px;
    max-width: 99%;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 6px;
  }
  .team-item {
    max-width: 100%;
    padding: 8px;
    border-radius: 8px;
  }
  .team-photo {
    border-radius: 6px;
  }
  .carousel {
    max-width: 100%;
  }
  .carousel-item {
    min-width: 100%;
    padding: 2px;
  }
  .carousel-item img {
    aspect-ratio: 4/3;
    border-radius: 4px;
  }
  .carousel-button {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .day-timeline {
    padding-left: 8px;
    margin-bottom: 8px;
  }
  .day-timeline li {
    margin-bottom: 4px;
    padding: 2px 0;
  }
  .timeline-icon {
    font-size: 13px;
    margin-right: 3px;
  }
  .day-timeline p {
    font-size: 12px;
  }
  .day-timeline p.school-day {
    font-size: 12px;
  }
  .day-timeline-img-wrap img {
    border-radius: 6px;
  }
  .day-timeline-img-close {
    width: 22px;
    height: 22px;
    font-size: 14px;
    top: 2px;
    right: 2px;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 6px; /* Reduced from 12px for tighter spacing */
  }
  .benefit-item {
    width: 150px; /* Square size for mobile */
    height: 150px;
  }
  .benefit-card-inner {
    min-height: 150px;
  }
  .benefit-card-front, .benefit-card-back {
    padding: 10px 4px;
  }
  .benefit-card-front .benefit-icon {
    font-size: 28px;
    margin-bottom: 6px;
  }
  .benefit-card-front h3 {
    font-size: 15px;
  }
  .enroll .how-steps,
  .learning .enroll-steps,
  .enroll .enroll-steps {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 100%;
    padding: 0 6px;
  }
  .step-item {
    padding: 8px;
    border-radius: 8px;
  }
  .step-icon {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .step-item h3 {
    font-size: 13px;
    margin-bottom: 2px;
  }
  .step-item p {
    font-size: 13px;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .contacts-form,
  .contacts-info {
    padding: 8px;
  }
  .contacts-form input,
  .contacts-form textarea {
    font-size: 13px;
    padding: 5px;
  }
  .who-we-are .section-title
  .section-title,
  .school-life-title,
  .learning .section-title,
  .parents .section-title,
  .faq .section-title,
  .enroll .section-title,
  .contacts .section-title,
  .team .section-title,
  .about .section-title,
  .who-we-are .section-title {
    font-size: 30px;

  }
  .contacts-info li {
    font-size: 13px;
  }
  .contacts-social .social-icon {
    font-size: 14px;
  }
  .contacts-map iframe {
    height: 100px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }
  .footer-logo .logo-text {
    font-size: 13px;
  }
  .footer-slogan,
  .footer-contacts li,
  .footer-bottom,
  .about p,
  .about-quote,
  .faq-answer,
  .enroll .text-cont {
    font-size: 12px;
  }
  .quick-contact {
    width: 32px;
    height: 32px;
    font-size: 14px;
    bottom: 50px;
    right: 6px;
  }
  .scroll-top {
    width: 24px;
    height: 24px;
    font-size: 12px;
    bottom: 6px;
    right: 6px;
  }
}

@media (max-width: 480px) {


  
  html, body {
    font-size: 14px;
  }
  .container {
    padding: 0 6px;
  }
  .header {
    padding: 0  0;
  }
  .logo-text {
    font-size: 14px;
  }
  .logo-img {
    width: 60px;
  }
  .main-menu {
    width: 150px;
    padding-top: 30px;
  }
  .main-menu ul {
    padding: 6px;
    gap: 4px;
  }
  .main-menu a {
    font-size: 13px;
  }
  .hero {
    min-height: 65vh;
    padding: 1px 4px;
    background: linear-gradient(180deg, #66C2E8 0%, #FFF9D1 80%);
    /* #FFF9D1 — мягкий пастельный желтый */
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
  }
  .who-we-are {
    background: linear-gradient(to bottom, #FFF9D1 0%, #FFF8F1 100%);

  }
  .hero-title {
    font-size: 30px;
  }
  .hero-subtitle {
    font-size: 12px;
    max-width: 98%;
  }
  .hero-button, .cta-button, .form-button {
    padding: 7px 12px;
    font-size: 12px;
  }
  .who-we-are .section-title
  .section-title,
  .school-life-title,
  .learning .section-title,
  .parents .section-title,
  .faq .section-title,
  .enroll .section-title,
  .contacts .section-title,
  .team .section-title,
  .about .section-title,
  .who-we-are .section-title {
    font-size: 18px;
    padding: 10px 0;
    margin-bottom: 12px;
  }
  .who-we-are, .about, .learning, .parents, .faq, .enroll, .contacts, .school-life, .team {
    padding: 10px 0;
  }
  .who-we-are-description,
  .about-description,
  .learning .school-day,
  .learning .adaptation-description,
  .team-description,
  .parents-description,
  .school-life-subtitle {
    font-size: 13px;
    max-width: 99%;
    margin-bottom: 12px;
  }
  .values-grid,
  .benefits-grid,
  .enroll .how-steps,
  .learning .enroll-steps,
  .enroll .enroll-steps,
  .team-grid,
  .who-we-are-grid {
    grid-template-columns: 2fr;
    grid-auto-rows: auto;
    gap: 8px;
    max-width: 100%;
    padding: 0 4px;
  }
  .faq-answer{
    font-size: 15px;
    padding: 2px 18px;
  }
  .faq-question{
    font-size: 17px;
  }
  .values-grid .value-item,
  .benefits-grid .benefit-item,
  .enroll .how-steps .step-item,
  .learning .enroll-steps .step-item,
  .enroll .enroll-steps .step-item,
  .team-grid .team-item,
  .who-we-are-grid .who-we-are-item {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .value-item,
  .benefit-item,
  .team-item,
  .who-we-are-item {
    padding: 8px;
  }
  .value-item h3,
  .benefit-item h3,
  .who-we-are-item h3 {
    font-size: 14px;
    margin-bottom: 4px;
  }
  .value-item p,
  .benefit-item p,
  .who-we-are-item p {
    font-size: 12px;
  }
  .benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 5px; /* Tight spacing for cohesive look */
  max-width: 100%;
  margin: 0 auto 90px;
  justify-content: center; /* Center the grid items horizontally */
  perspective: 900px;
}

.benefit-item {
  background: #FFFFFF;
  padding: 0; /* No padding to maintain square shape */
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  width: 250px; /* Fixed square size */
  height: 200px; /* Fixed square size */
  position: relative;
  perspective: 900px;
}

.benefit-item:hover {
  transform: translateY(-3px);
}

.benefit-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 200px; /* Match square size */
  transition: transform 0.6s cubic-bezier(.4,2,.6,1);
  transform-style: preserve-3d;
}

.benefit-item.flipped .benefit-card-inner {
  transform: rotateY(180deg);
}

.benefit-card-front, .benefit-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.benefit-card-front {
  padding: 18px 8px; /* Padding for front content */
}

.benefit-card-back {
  transform: rotateY(180deg);
  background: #fff;
  overflow: hidden;
  justify-content: center;
  align-items: center;
  padding: 0; /* No padding to maximize image space */
}

.benefit-card-front .benefit-icon {
  font-size: 38px;
  color: #66C2E8;
  margin-bottom: 8px;
}

.benefit-card-front h3 {
  font-size: 14px;
  font-weight: 600;
  color: #1A2A3A;
  margin-bottom: 0;
}

.benefit-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Image fills entire card, may crop slightly */
  border-radius: 15px;
}

.learning .learn-day {
  font-size: 15px;
  margin-top: 18px;
  margin-bottom: 10px;
  text-align: center;
  color: #1A2A3A;
}
  .learning .learn-day + .learn-day {
    margin-top: 18px;
  }
  .learning .learn-day + .adaptation-description {
    margin-top: 10px;
  }
  .learning .adaptation-description + .section-title {
    margin-top: 18px;
  }
  .day-timeline {
    padding-left: 8px;
    margin-bottom: 8px;
  }
  .day-timeline li {
    margin-bottom: 4px;
    padding: 2px 0;
  }
  .timeline-icon {
    font-size: 13px;
    margin-right: 3px;
  }
  .day-timeline p {
    font-size: 12px;
  }
  .day-timeline p.school-day {
    font-size: 12px;
  }
  .team-photo {
    aspect-ratio: 4/3;
    border-radius: 6px;
  }
  .team-quote{
    font-size: 14px;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .contacts-form,
  .contacts-info {
    padding: 8px;
  }
  .contacts-form input,
  .contacts-form textarea {
    font-size: 13px;
    padding: 5px;
  }
  .contacts-info li {
    font-size: 13px;
  }
  .contacts-social .social-icon {
    font-size: 14px;
  }
  .contacts-map iframe {
    height: 100px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }
  .footer-logo .logo-text {
    font-size: 13px;
  }
  .footer-slogan,
  .footer-contacts li,
  .footer-bottom,
  .about p,
  .about-quote,
  .enroll .text-cont {
    font-size: 12px;
  }
  .quick-contact {
    width: 50px;
    height: 50px;
    font-size: 30px;
    bottom: 70px;
    right: 6px;
  }
  .quick-contact-instagram {
    width: 50px;
    height: 50px;
    font-size: 30px;
    bottom: 150px;
    right: 6px;
  }
  .scroll-top {
    width: 40px;
    height: 40px;
    font-size: 20px;
    bottom: 5px;
    right: 12px;
  }
  .main-menu ul{
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(8, auto);
    justify-items: left;
  }
  .logo-img{
    width: 80px;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (prefers-contrast: high) {
  .header, .footer {
    background: #1A2A3A;
  }

  .hero, .who-we-are, .about, .learning, .parents, .faq, .enroll, .contacts, .school-life, .team {
    background: #FFFFFF;
  }

  a, button, .hero-title, .section-title, h3 {
    color: #000000;
  }
  .learning .section-title{
    font-size: 23px;
  }
}

/* Универсальный стиль для всех секционных заголовков, кроме первого блока */
.section-title,
.school-life-title,
.learning .section-title,
.parents .section-title,
.faq .section-title,
.enroll .section-title,
.contacts .section-title,
.team .section-title,
.about .section-title,
.who-we-are .section-title {
  font-size: 30px;
  padding: 16px 0;
  margin-bottom: 24px;
  text-align: center;
}

/* Первый блок (hero) — оставляем как есть, не затрагиваем .hero-title */

/* Унифицировать отступы между секциями */
.who-we-are,
.about,
.learning,
.parents,
.faq,
.enroll,
.contacts,
.school-life,
.team {
  padding: 40px 0;
}

/* Унифицировать отступы между заголовками и текстом внутри секций */
.section-title + *,
.school-life-title + *,
.learning .section-title + *,
.parents .section-title + *,
.faq .section-title + *,
.enroll .section-title + *,
.contacts .section-title + *,
.team .section-title + *,
.about .section-title + *,
.who-we-are .section-title + * {
  margin-top: 0;
}

/* Унифицировать отступы между текстовыми блоками внутри секций */
.about-description,
.team-description,
.parents-description,
.school-life-subtitle,
.who-we-are-description,
.learning .adaptation-description,
.learning .school-day,
.enroll .adaptation-description,
.how-steps .adaptation-description {
  margin-bottom: 40px;
}

/* Убрать индивидуальные font-size для .learning .section-title */
.learning .section-title {
  font-size: 30px;
}




@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* New styles for additional classes */
.styled-text {
  font-size: 20px;
  color: #1A2A3A;
  line-height: 1.7;
  letter-spacing: 0.01em;
  text-align: left;
  margin: 0 auto 32px auto;
  max-width: 800px;
  background: rgba(255,255,255,0.7);
  border-radius: 12px;
  padding: 18px 24px 14px 24px;
  box-shadow: 0 2px 12px rgba(102,194,232,0.07);
}
.styled-text ul {
  margin: 18px 0 18px 32px;
  padding-left: 0;
  list-style: disc inside;
  font-size: 1em;
  line-height: 1.6;
}
.styled-text ul ul {
  margin: 8px 0 8px 24px;
  font-size: 0.95em;
  list-style: circle inside;
}
.styled-text li {
  margin-bottom: 8px;
}
.styled-text strong {
  color: #4A90E2;
  font-weight: 700;
  background: #e6f3fa;
  border-radius: 4px;
  padding: 2px 6px;
}
.styled-text em {
  color: #BDB76B;
  font-style: italic;
}
.styled-subtitle {
  font-size: 22px;
  font-weight: 700;
  margin: 18px 0 10px 0;
  color: #4A90E2;
}
.note-quote {
  font-family: 'Montserrat', cursive;
  font-size: 20px;
  color: #4A90E2;
  background: #f8fafc;
  border-left: 4px solid #BDB76B;
  border-radius: 8px 18px 18px 8px;
  padding: 12px 18px 12px 28px;
  margin: 18px 0 18px 0;
  position: relative;
}
.note-quote::before {
  content: "“";
  font-family: 'Montserrat', cursive;
  font-size: 32px;
  color: #BDB76B;
  position: absolute;
  left: 8px;
  top: 0;
  line-height: 1;
}
.note-quote::after {
  content: "”";
  font-family: 'Montserrat', cursive;
  font-size: 32px;
  color: #BDB76B;
  position: absolute;
  right: 8px;
  bottom: 0;
  line-height: 1;
}
@media (max-width: 768px) {
  .styled-text {
    font-size: 14px;
    padding: 8px 6px 6px 6px;
    margin-bottom: 12px;
    border-radius: 8px;
    max-width: 99%;
  }
  .styled-subtitle {
    font-size: 15px;
    margin: 10px 0 6px 0;
  }
  .note-quote {
    font-size: 13px;
    padding: 6px 8px 6px 14px;
    border-radius: 6px 10px 10px 6px;
  }
  .note-quote::before,
  .note-quote::after {
    font-size: 18px;
    left: 4px;
    right: 4px;
  }
}