﻿*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  color: #364d33;
  background: #fafaf6;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}

.section__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #7fa87a;
  margin-bottom: 12px;
}

.section__title {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 400;
  color: #364d33;
  margin-bottom: 32px;
  line-height: 1.2;
}

.section__title--light {
  color: #fafbf8;
}

.section__label--light {
  color: #bdd4b8;
}

p {
  margin-bottom: 16px;
  color: #506a4d;
  font-size: 16px;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 15px 36px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--primary {
  background: #7fa87a;
  color: #fff;
}

.btn--primary:hover {
  background: #668f62;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107, 158, 107, 0.35);
}

.btn--full {
  width: 100%;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(250, 250, 246, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(107, 158, 107, 0.1);
  transition: box-shadow 0.3s ease;
}

.nav--scrolled {
  box-shadow: 0 2px 20px rgba(42, 61, 42, 0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #364d33;
  letter-spacing: 0.5px;
}

.nav__list {
  display: flex;
  gap: 32px;
}

.nav__list a {
  font-size: 14px;
  font-weight: 500;
  color: #506a4d;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
}

.nav__list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #7fa87a;
  transition: width 0.3s ease;
}

.nav__list a:hover {
  color: #7fa87a;
}

.nav__list a:hover::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #2a3d2a;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
    background: linear-gradient(135deg, #fafaf6 0%, #eaf0e8 50%, #d8e6d4 100%);
  background-size: cover;
  background-position: center 30%;
  padding-top: 72px;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(250, 250, 246, 0.7), rgba(250, 250, 246, 0.85)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237fa87a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__tag {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #7fa87a;
  margin-bottom: 20px;
}

.hero__title {
  font-family: 'Playfair Display', serif;
  font-size: 64px;
  font-weight: 400;
  color: #364d33;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: 17px;
  color: #5a7d56;
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about__image-frame {
  border-radius: 20px;
  overflow: hidden;
  background: #eaf0e8;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7fa87a;
  font-size: 14px;
}

.about__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__stats {
  display: flex;
  gap: 40px;
  margin-top: 32px;
}

.stat {
  text-align: center;
}

.stat__num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: #7fa87a;
  line-height: 1;
  margin-bottom: 6px;
}

.stat__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #7a9a72;
}

.philosophy {
  background: #2a3d2a;
  text-align: center;
}

.philosophy__quote p {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-style: italic;
  color: #eaf0e8;
  line-height: 1.5;
  max-width: 820px;
  margin: 0 auto 24px;
}

.philosophy__quote cite {
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7fa87a;
  font-style: normal;
}

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

.service-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  transition: all 0.3s ease;
  border: 1px solid rgba(107, 158, 107, 0.1);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(107, 158, 107, 0.15);
  border-color: rgba(107, 158, 107, 0.25);
}

.service-card--accent {
  background: linear-gradient(135deg, #fafbf8, #eaf0e8);
  border-color: #d8e6d4;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: #7fa87a;
  margin-bottom: 20px;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: #364d33;
  margin-bottom: 12px;
}

.service-card__desc {
  font-size: 14px;
  color: #506a4d;
  line-height: 1.7;
  margin-bottom: 12px;
}

.service-card__note {
  font-size: 13px;
  font-style: italic;
  color: #7fa87a;
  margin-bottom: 0;
}

.women {
  background: linear-gradient(135deg, #2a3d2a, #3a5438);
  color: #fafbf8;
}

.women__wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.women__content p {
  color: #bdd4b8;
}

.women__list {
  margin: 24px 0 0;
}

.women__list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: #d8e6d4;
  font-size: 15px;
}

.women__list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: #7fa87a;
  font-size: 12px;
  top: 10px;
}

.women__image-frame {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7fa87a;
  font-size: 14px;
}

.women__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.training__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.training__benefits {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefit {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.benefit__icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf0e8;
  border-radius: 12px;
}

.benefit h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #364d33;
  margin-bottom: 4px;
}

.benefit p {
  font-size: 14px;
  margin-bottom: 0;
  color: #5a7d56;
}

.training__image-frame {
  border-radius: 20px;
  overflow: hidden;
  background: #eaf0e8;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7fa87a;
  font-size: 14px;
}

.training__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.gallery__header {
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.gallery__header:hover .section__label {
  opacity: 0.7;
}

.gallery__hint { font-size: 13px; margin-top: -20px; margin-bottom: 0; opacity: 0.6; }

.gallery__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.5s ease, visibility 0.5s ease;
  opacity: 0;
  visibility: hidden;
  height: 0;
}

.gallery__body--open {
  max-height: 2000px;
  opacity: 1;
  visibility: visible;
  height: auto;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 30px auto 0;
}

.gallery__item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery__item:hover {
  transform: scale(1.03);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.graduates {
  background: #fff;
  text-align: center;
}

.graduates__intro {
  max-width: 560px;
  margin: -20px auto 40px;
  font-size: 16px;
  color: #7a9a72;
}

.graduates__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.graduate-card {
  background: #fafaf6;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(107, 158, 107, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.graduate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(107, 158, 107, 0.15);
}

.graduate-card__image {
  aspect-ratio: 1;
  overflow: hidden;
  background: #eaf0e8;
}

.graduate-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.graduate-card__info {
  padding: 16px 16px 20px;
  text-align: left;
}

.graduate-card__info h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #364d33;
  margin-bottom: 4px;
}

.graduate-card__cert {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #7fa87a;
  text-transform: uppercase;
}

.graduates__cta {
  margin-top: 40px;
}

.certs {
  background: #fafaf6;
  text-align: center;
}

.certs__intro {
  max-width: 560px;
  margin: -20px auto 40px;
  font-size: 16px;
  color: #7a9a72;
}

.certs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.certs__grid--single {
  max-width: 400px;
  margin: 0 auto;
}

.certs__item {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(107, 158, 107, 0.1);
  aspect-ratio: 1;
  display: flex;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certs__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(107, 158, 107, 0.12);
}

.certs__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gift {
  background: #fff;
  text-align: center;
}

.gift__intro {
  max-width: 480px;
  margin: -20px auto 36px;
  font-size: 16px;
  color: #7a9a72;
}

.gift__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 640px;
  margin: 0 auto;
}

.gift__item {
  border-radius: 12px;
  overflow: hidden;
  background: #fafaf6;
  border: 1px solid rgba(107, 158, 107, 0.1);
  transition: transform 0.3s ease;
}

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

.gift__item img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gift__label {
  font-size: 14px;
  font-weight: 500;
  color: #506a4d;
  padding: 14px 16px;
  margin: 0;
}

.gift__cta {
  margin-top: 32px;
}

.video {
  background: #eaf0e8;
  text-align: center;
}

.video__header {
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.video__header:hover .section__title {
  opacity: 0.7;
}

.video__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.5s ease, visibility 0.5s ease;
  opacity: 0;
  visibility: hidden;
  height: 0;
}

.video__body--open {
  max-height: 2000px;
  opacity: 1;
  visibility: visible;
  height: auto;
}

.video__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.video__wrapper {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(42, 61, 42, 0.12);
}

.video__wrapper video {
  display: block;
  width: 100%;
  height: auto;
}

.contacts {
  background: #eaf0e8;
}

.contacts__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contacts__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #364d33;
  transition: color 0.3s ease;
  width: fit-content;
}

.contact-link:hover {
  color: #7fa87a;
}

.contact-link__icon {
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
}

.contacts__note {
  font-size: 14px;
  font-style: italic;
  color: #7a9a72;
  margin-top: 8px;
}

.contacts__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contacts__form input,
.contacts__form select,
.contacts__form textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  color: #364d33;
  background: #fff;
  border: 1px solid #c6d8c2;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.3s ease;
}

.contacts__form input:focus,
.contacts__form select:focus,
.contacts__form textarea:focus {
  border-color: #7fa87a;
}

.contacts__form input::placeholder,
.contacts__form textarea::placeholder {
  color: #8cae86;
}

.footer {
  background: #2a3d2a;
  text-align: center;
  padding: 32px 0;
}

.footer__inner p {
  font-size: 13px;
  color: #8cae86;
  margin-bottom: 4px;
}

.footer__inner p:last-child {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #7a9a72;
  margin-bottom: 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
  50% { box-shadow: 0 6px 30px rgba(0,0,0,0.25); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* Hero title entrance */
.hero__title {
  animation: fade-up 1s ease-out 0.3s both;
}

.hero__tag {
  animation: fade-up 0.8s ease-out 0.1s both;
}

.hero__sub {
  animation: fade-up 1s ease-out 0.5s both;
}

.hero .btn {
  animation: fade-up 1s ease-out 0.7s both;
}

/* Stat numbers shimmer on reveal */
.stat__num.animated {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-out;
}

/* Pulse on primary button hover */
.btn--primary:hover {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* Gentle float on service card icons */
.service-card__icon {
  animation: float 4s ease-in-out infinite;
}

.service-card:nth-child(2) .service-card__icon {
  animation-delay: 1s;
}

.service-card:nth-child(3) .service-card__icon {
  animation-delay: 2s;
}

.service-card:nth-child(4) .service-card__icon {
  animation-delay: 3s;
}

/* Fade-in upgrade with scale */
.fade-in.visible {
  animation: fade-up 0.8s ease-out both;
}

/* Gallery body open animation */
.gallery__body--open {
  animation: fade-up 0.6s ease-out both;
}

/* Heartbeat on contact icon hover */
.contact-link:hover .contact-link__icon {
  animation: breathe 0.6s ease-in-out 2;
}

/* Graduates card stagger */
.graduate-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* Color Switcher */
.color-switcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.color-switcher__toggle {
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  background: #2a3d2a;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s ease, background 0.2s ease;
}

.color-switcher__toggle:hover {
  transform: scale(1.05);
  background: #4a5e48;
}

.color-switcher__palette {
  display: none;
  flex-direction: row;
  gap: 8px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  padding: 10px 14px;
  border-radius: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.color-switcher__palette.open {
  display: flex;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.color-swatch:hover {
  transform: scale(1.2);
  border-color: rgba(0,0,0,0.3);
}

.color-swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px #333;
}

@media (max-width: 968px) {
  .section { padding: 64px 0; }
  .section__title { font-size: 32px; }
  .hero__title { font-size: 42px; }
  .about__grid,
  .women__wrapper,
  .training__grid,
  .contacts__wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about__image-frame,
  .women__image-frame,
  .training__image-frame {
    max-width: 400px;
    margin: 0 auto;
  }
  .about__stats { justify-content: center; }
  .services__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .graduates__grid { grid-template-columns: repeat(2, 1fr); }
  .gift__grid { max-width: 400px; }
  .video__grid { grid-template-columns: 1fr; }
  .video__wrapper { max-width: 100%; }
  .philosophy__quote p { font-size: 22px; }
  .nav__list {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(250, 250, 246, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 20px 0;
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    box-shadow: 0 4px 20px rgba(42, 61, 42, 0.08);
    border-bottom: 1px solid rgba(107, 158, 107, 0.1);
  }
  .nav__list.open { transform: translateY(0); }
  .nav__list a { display: block; padding: 14px 24px; font-size: 15px; }
  .nav__toggle { display: flex; }
}

@media (max-width: 568px) {
  .hero__title { font-size: 32px; }
  .hero__sub { font-size: 15px; }
  .section__title { font-size: 28px; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gift__grid { grid-template-columns: 1fr; max-width: 320px; }
  .graduates__grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
  .about__stats { flex-direction: column; gap: 20px; }
}
