:root {
  --color-bg: #fffaf3;
  --color-primary: #f5d28e;
  --color-secondary: #ffe6a1;
  --color-accent: #a1d29e;
  --color-text: #333333;
  --color-muted: #666666;

  --font-sans: "Inter", sans-serif;
  --font-serif: "Roboto Slab", serif;

  --max-width: 1200px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}
a {
  text-decoration: none;
  color: inherit;
}

#preloader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loader-logo {
  width: 60px;
  height: 60px;
  animation: loader-spin 1.2s linear infinite;
}
.loader-text {
  margin-left: 1rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--color-accent);
}
@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 250, 243, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  z-index: 1000;
  transition: background var(--transition);
}
.site-header.scrolled {
  background: var(--color-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--color-accent);
  position: relative;
}
.logo::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40%;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
}
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.site-nav a {
  position: relative;
  padding: 0.25rem 0;
  font-weight: 500;
  transition: color var(--transition);
}
.site-nav a:hover,
.site-nav .active {
  color: var(--color-accent);
}
.site-nav a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 50%;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition);
}
.site-nav a:hover::after,
.site-nav .active::after {
  transform: translateX(-50%) scaleX(1);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    background: var(--color-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: right var(--transition);
  }
  .site-nav.open {
    right: 0;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 1.5rem;
  }
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-accent);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}
.scroll-to-top.visible {
  opacity: 1;
}

button,
.btn {
  font-family: var(--font-sans);
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
button:hover,
.btn:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

.cookies-banner {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: var(--color-secondary);
  color: var(--color-text);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  z-index: 2000;
}
.cookies-banner p {
  flex: 1 1 100%;
  font-size: 0.9rem;
}
.cookies-button {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.site-footer {
  background: var(--color-bg);
  padding: 3rem 0 1rem;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-logo img {
  max-width: 100px;
  margin-bottom: 0.5rem;
}
.footer-logo p {
  font-family: var(--font-serif);
  color: var(--color-muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--color-text);
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--color-accent);
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.site-footer::before,
.site-footer::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px dotted var(--color-primary);
  border-radius: 50%;
  opacity: 0.2;
}
.site-footer::before {
  top: 20%;
  left: -60px;
}
.site-footer::after {
  bottom: 20%;
  right: -60px;
}

.text-center {
  text-align: center;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }
  .footer-inner {
    gap: 0.5rem;
  }
}

.hero-section {
  position: relative;
  margin-top: 4rem;
}
#hero-slider {
  height: 80vh;
}
#hero-slider .splide__slide {
  position: relative;
  overflow: hidden;
}
#hero-slider .splide__slide img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
}
#hero-slider .slide-content {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  color: var(--color-text);
  max-width: 40%;
}
#hero-slider .slide-content h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
#hero-slider .slide-content p {
  font-size: 1.125rem;
  color: var(--color-muted);
}
.splide__arrow {
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-text);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.splide__arrow--prev {
  left: 1rem;
}
.splide__arrow--next {
  right: 1rem;
}
.splide__pagination__page {
  background: var(--color-primary);
  opacity: 0.7;
}
@media (max-width: 768px) {
  #hero-slider .slide-content {
    max-width: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
  #hero-slider .slide-content h2 {
    font-size: 2rem;
  }
  #hero-slider .slide-content p {
    font-size: 1rem;
  }
}

.about-section {
  padding: 4rem 0;
  background: var(--color-secondary);
  text-align: center;
}
.about-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--color-accent);
  margin-bottom: 2rem;
}
.flip-card {
  width: 300px;
  height: 400px;
  perspective: 1000px;
  margin: 0 auto;
}
.flip-card-inner {
  width: 100%;
  height: 100%;
  transition: transform var(--transition);
  transform-style: preserve-3d;
  position: relative;
}
.flip-card:hover .flip-card-inner,
.flip-card.active .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.flip-card-back {
  background: var(--color-bg);
  transform: rotateY(180deg);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flip-card-back h3 {
  font-family: var(--font-serif);
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.flip-card-back p {
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .about-section {
    padding: 2rem 0;
  }
  .about-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
  .flip-card {
    width: 90%;
    height: auto;
  }
  .flip-card-front img,
  .flip-card-back {
    height: auto;
  }
}

.courses-section {
  position: relative;
  padding: 6rem 0;
  background: var(--color-bg);
}
.courses-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.courses-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}
.course-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.course-card::before,
.course-card::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--color-secondary);
  border-radius: 50%;
  opacity: 0.3;
}
.course-card::before {
  top: -20px;
  left: -20px;
}
.course-card::after {
  bottom: -20px;
  right: -20px;
}
.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.course-image img {
  width: 100%;
  display: block;
  height: 180px;
  object-fit: cover;
}
.course-card h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-accent);
  margin: 1rem;
}
.course-card p {
  color: var(--color-text);
  font-size: 1rem;
  margin: 0 1rem 1.5rem;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .courses-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .course-image img {
    height: 140px;
  }
}

.process-section {
  padding: 5rem 0;
  background: var(--color-secondary);
}
.process-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}
.process-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}
.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.process-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.process-list li:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.process-icon {
  font-size: 2rem;
  line-height: 1;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.process-list li:hover .process-icon {
  transform: rotate(15deg);
}
.process-text h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.process-text p {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .process-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .process-list {
    gap: 1.5rem;
  }
}

.gallery-section {
  padding: 6rem 0;
  background: var(--color-bg);
}
.gallery-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  text-align: center;
  color: var(--color-accent);
  margin-bottom: 2rem;
}
#gallery-slider {
  max-width: 100%;
}
#gallery-slider .splide__slide {
  padding: 0.5rem;
  opacity: 0.8;
  transition: opacity var(--transition), transform var(--transition);
}
#gallery-slider .splide__slide.is-active {
  opacity: 1;
  transform: scale(1.05);
}
#gallery-slider img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}
.splide__arrow {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.splide__pagination__page {
  background: var(--color-accent);
}
@media (max-width: 768px) {
  .gallery-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
}

.teachers-section {
  padding: 5rem 0;
  background: var(--color-secondary-light);
}
.teachers-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  text-align: center;
  color: var(--color-accent);
  margin-bottom: 3rem;
  position: relative;
}
.teachers-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: var(--color-accent-light);
  border-radius: 2px;
}
.teachers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.teacher-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.teacher-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.teacher-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.teacher-info {
  padding: 1.5rem;
}
.teacher-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}
.teacher-role {
  font-style: italic;
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.teacher-bio {
  color: var(--color-text);
  line-height: 1.5;
  font-size: 0.95rem;
}
@media (max-width: 768px) {
  .teachers-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .teacher-photo img {
    height: 180px;
  }
}

.parallax-section {
  position: relative;
  height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: translateY(-10%);
  transition: transform 0.2s ease-out;
}

.parallax-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-primary);
  animation: fadeInUp 1s ease both;
}

.parallax-content h2 {
  font-family: var(--font-serif);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.parallax-content p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  color: var(--color-text);
}

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

@media (max-width: 768px) {
  .parallax-content h2 {
    font-size: 2rem;
  }
  .parallax-content p {
    font-size: 1rem;
  }
}

.contact-section {
  padding: 5rem 0;
  background: var(--pastel-yellow);
}
.contact-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  text-align: center;
  color: var(--warm-orange);
  margin-bottom: 2.5rem;
  position: relative;
}
.contact-title::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--soft-green);
  border-radius: 2px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.contact-info,
.contact-schedule {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}
.contact-info:hover,
.contact-schedule:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.contact-info h3,
.contact-schedule h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--warm-orange);
  margin-bottom: 1rem;
}
.info-list,
.schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.info-list li {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--text-dark);
  line-height: 1.4;
}
.info-list a {
  color: var(--soft-green);
  text-decoration: none;
  transition: color var(--transition);
}
.info-list a:hover {
  color: var(--warm-orange);
}
.social {
  display: inline-block;
  margin-right: 0.5rem;
}
.schedule-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 1rem;
}
.schedule-list li:last-child {
  border-bottom: none;
}
.schedule-list .day {
  font-weight: 500;
  color: var(--text-dark);
}
.schedule-list .time {
  color: var(--muted-gray);
}

.contact-section::before,
.contact-section::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--soft-green);
  border-radius: 50%;
  opacity: 0.2;
  z-index: 0;
}
.contact-section::before {
  top: 10%;
  left: 5%;
}
.contact-section::after {
  bottom: 10%;
  right: 5%;
}

@media (max-width: 768px) {
  .contact-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .contact-grid {
    gap: 1.5rem;
  }
}

.title_background {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--pastel-yellow) 0%,
    var(--soft-green) 100%
  );
  padding: 6rem 0;
  overflow: hidden;
}
.title_background::before,
.title_background::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 183, 77, 0.2);
  border-radius: 50%;
  z-index: 1;
}
.title_background::before {
  top: -50px;
  left: -50px;
}
.title_background::after {
  bottom: -50px;
  right: -50px;
}
.title_background .container {
  position: relative;
  z-index: 2;
}
.title_background .title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--warm-orange);
  text-align: center;
  margin: 0;
}
@media (max-width: 768px) {
  .title_background .title {
    font-size: 2rem;
  }
}

.text_background {
  background: #fff;
  padding: 4rem 0;
}
.text_background .container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.text_background .text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dark);
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 1rem;
}
.text_background .text::before {
  position: absolute;
  top: -10px;
  left: 0;
  font-size: 4rem;
  color: var(--soft-green);
  font-family: serif;
  line-height: 1;
}
@media (max-width: 768px) {
  .text_background .text {
    font-size: 0.95rem;
    padding-left: 0.5rem;
  }
}
