:root {
  --green: #235b39;
  --green-dark: #153d28;
  --green-soft: #dce9df;
  --cream: #e6dbb7;
  --cream-light: #f7f2e3;
  --ink: #172019;
  --muted: #5e685f;
  --white: #ffffff;
  --line: rgba(23, 32, 25, 0.16);
  --radius: 22px;
  --shadow: 0 24px 70px rgba(21, 61, 40, 0.14);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fbfaf5;
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button { color: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--white);
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 104px 0; }
.section-pattern {
  position: relative;
  overflow: hidden;
  background-color: var(--cream-light);
  background-image: url("assets/pattern.svg");
  background-size: 280px 280px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(35, 91, 57, 0.12);
  background: rgba(251, 250, 245, 0.92);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 104px; display: flex; align-items: center; gap: 28px; }
.brand { flex: 0 0 auto; padding: 8px 0; }
.brand img { width: 72px; height: 90px; object-fit: contain; border-radius: 8px; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.main-nav a { text-decoration: none; font-size: 15px; font-weight: 650; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--green); }
.header-cta { margin-left: 10px; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--green); transition: .2s ease; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 24px;
  border: 1px solid var(--green);
  border-radius: 12px;
  color: var(--cream-light);
  background: var(--green);
  box-shadow: 0 10px 24px rgba(35, 91, 57, .18);
  text-decoration: none;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); background: var(--green-dark); box-shadow: 0 14px 30px rgba(35, 91, 57, .24); }
.button-small { min-height: 44px; padding: 10px 18px; border-radius: 10px; font-size: 14px; }
.text-link, .text-button { color: var(--green); font-weight: 750; text-decoration: none; }
.text-link:hover, .text-link:focus-visible, .text-button:hover, .text-button:focus-visible { text-decoration: underline; }
.text-button { border: 0; padding: 0; background: transparent; cursor: pointer; }

.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -.035em; }
h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(44px, 6vw, 78px); }
h2 { margin-bottom: 20px; font-size: clamp(34px, 4.5vw, 58px); }
h3 { margin-bottom: 12px; font-size: 24px; }
p { margin-top: 0; }

.hero { padding: 86px 0 98px; }
.hero::before, .lead-section::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border: 96px solid rgba(35, 91, 57, .06);
  border-radius: 50%;
  top: -260px;
  right: -140px;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); align-items: center; gap: 68px; }
.hero-copy { position: relative; z-index: 2; }
.hero-text { max-width: 690px; margin-bottom: 32px; color: #39443b; font-size: clamp(18px, 2vw, 22px); }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 42px 0 0; padding: 0; list-style: none; }
.hero-facts li { padding-top: 16px; border-top: 1px solid rgba(35, 91, 57, .3); }
.hero-facts strong { display: block; margin-bottom: 3px; color: var(--green); font-size: 22px; }
.hero-facts span { display: block; max-width: 140px; color: var(--muted); font-size: 13px; line-height: 1.35; }

.hero-visual { position: relative; min-height: 620px; }
.photo { position: absolute; overflow: hidden; background: var(--green); box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--cream); background: radial-gradient(circle at 25% 20%, rgba(230,219,183,.3), transparent 30%), linear-gradient(145deg, #2d7049, #153d28); }
.photo-fallback::before, .photo-fallback::after { content: ""; position: absolute; width: 42%; height: 110%; top: -5%; border-radius: 50% 50% 0 0; border: 1px solid rgba(230,219,183,.32); }
.photo-fallback::before { left: -12%; transform: rotate(-9deg); }
.photo-fallback::after { right: -12%; transform: rotate(9deg); }
.photo-fallback span { position: relative; z-index: 1; font-size: clamp(28px, 4vw, 48px); line-height: .9; letter-spacing: .06em; font-weight: 900; text-align: center; }
.photo-main { inset: 30px 88px 48px 0; border-radius: 180px 22px 22px 22px; }
.photo-small { width: 205px; height: 210px; right: 0; border: 9px solid var(--cream-light); }
.photo-top { top: 0; border-radius: 22px 110px 22px 22px; }
.photo-bottom { bottom: 24px; border-radius: 22px 22px 110px 22px; }
.hero-note { position: absolute; z-index: 4; left: -32px; bottom: 0; max-width: 250px; padding: 18px 20px; border-radius: 14px; color: var(--cream-light); background: var(--green); box-shadow: var(--shadow); font-size: 14px; font-weight: 700; transform: rotate(-2deg); }

.section-heading { max-width: 800px; margin-bottom: 48px; }
.section-heading > p:last-child { max-width: 690px; margin-bottom: 0; color: var(--muted); font-size: 18px; }
.heading-split { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 80px; }
.heading-split p:last-child { padding-bottom: 7px; }

.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit-card { min-height: 220px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.72); }
.benefit-card:nth-child(2) { background: var(--green-soft); }
.benefit-card h3 { max-width: 280px; margin-top: 54px; }
.benefit-card p { margin-bottom: 0; color: var(--muted); }
.card-number { color: var(--green); font-size: 13px; font-weight: 900; }

.section-green { color: var(--cream-light); background: var(--green); }
.light-heading .eyebrow { color: var(--cream); }
.light-heading > p:last-child { color: rgba(255,255,255,.76); }
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.program-card { min-height: 270px; display: flex; flex-direction: column; padding: 28px; border: 1px solid rgba(230,219,183,.28); border-radius: var(--radius); background: rgba(255,255,255,.04); transition: transform .2s ease, background .2s ease; }
.program-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.08); }
.program-card h3 { margin-top: auto; color: var(--cream); }
.program-card p { margin-bottom: 0; color: rgba(255,255,255,.72); }
.program-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; color: var(--green); background: var(--cream); font-size: 28px; font-weight: 900; }

.teacher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.teacher-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.teacher-photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--green-soft); }
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: transform .35s ease; }
.teacher-card:hover .teacher-photo img { transform: scale(1.025); }
.teacher-maria img { object-position: 50% 23%; }
.teacher-varvara img { object-position: 50% 30%; }
.teacher-irina img { object-position: 50% 35%; }
.teacher-body { padding: 26px; }
.teacher-role { min-height: 44px; margin-bottom: 16px; color: var(--green); font-size: 14px; font-weight: 800; }

.lead-section { padding: 92px 0; }
.lead-grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.lead-copy { padding-top: 28px; }
.lead-copy > p:not(.eyebrow) { max-width: 520px; color: var(--muted); font-size: 18px; }
.lead-contact { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(35,91,57,.22); }
.lead-contact span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.lead-contact a { color: var(--green); font-weight: 800; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.social-links-column { align-items: flex-start; flex-direction: column; gap: 8px; }
.lead-form { padding: 34px; border-radius: 24px; background: var(--white); box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
.form-row label, .form-row-half label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 800; }
.form-row-half { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input, select { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid rgba(35,91,57,.24); border-radius: 10px; color: var(--ink); background: #fbfaf6; outline: none; }
input:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(35,91,57,.1); }
input[aria-invalid="true"] { border-color: #a43f3f; }
.field-error { display: block; min-height: 16px; margin-top: 4px; color: #8f3030; font-size: 12px; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0 20px; color: var(--muted); font-size: 12px; cursor: pointer; }
.consent input { flex: 0 0 18px; width: 18px; min-height: 18px; margin: 1px 0 0; accent-color: var(--green); }
.form-submit { width: 100%; }
.form-submit[disabled] { cursor: wait; opacity: .7; transform: none; }
.form-status { min-height: 24px; margin: 12px 0 0; color: var(--green); font-size: 14px; font-weight: 750; text-align: center; }
.form-status.error { color: #8f3030; }
.honeypot { position: absolute !important; left: -9999px !important; }

.contacts-section { padding-bottom: 80px; }
.contacts-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 16px; }
.contact-card { min-height: 175px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.contact-card span { color: var(--muted); font-size: 13px; font-weight: 700; }
.contact-card strong { font-size: 22px; line-height: 1.25; }
.contact-primary { color: var(--cream-light); background: var(--green); }
.contact-primary span { color: rgba(255,255,255,.7); }
.contact-primary .text-link { color: var(--cream); }
.contact-link { font-weight: 850; text-decoration: none; }
.contact-link:hover { color: var(--green); }

.site-footer { padding: 34px 0; color: rgba(255,255,255,.8); background: var(--green-dark); }
.footer-inner { display: flex; align-items: center; gap: 30px; }
.footer-inner img { width: 76px; height: 95px; object-fit: contain; border-radius: 8px; }
.footer-inner p { margin: 0 auto 0 0; font-size: 13px; }
.footer-inner a { color: var(--cream); font-size: 13px; font-weight: 800; text-decoration: none; }

.teacher-dialog { width: min(calc(100% - 32px), 640px); padding: 40px; border: 0; border-radius: 22px; color: var(--ink); box-shadow: 0 28px 90px rgba(0,0,0,.28); }
.teacher-dialog::backdrop { background: rgba(10,25,16,.72); backdrop-filter: blur(4px); }
.teacher-dialog h2 { font-size: clamp(32px, 5vw, 50px); }
.teacher-dialog p:last-child { margin-bottom: 0; color: var(--muted); font-size: 17px; }
.dialog-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--cream-light); cursor: pointer; font-size: 26px; line-height: 1; }

@media (max-width: 1020px) {
  .header-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 780px; }
  .hero-visual { width: min(100%, 670px); margin: 0 auto; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .contacts-grid { grid-template-columns: repeat(2, 1fr); }
  .heading-split { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 760px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 72px 0; }
  .header-inner { min-height: 82px; }
  .brand img { width: 54px; height: 68px; }
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 82px 0 auto; display: none; margin: 0; padding: 24px 20px 32px; flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--line); background: #fbfaf5; box-shadow: 0 24px 40px rgba(21,61,40,.12); }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding: 60px 0 74px; }
  h1 { font-size: clamp(42px, 13vw, 64px); }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts li:last-child { grid-column: span 2; }
  .hero-visual { min-height: 510px; }
  .photo-main { inset: 30px 50px 42px 0; border-radius: 110px 18px 18px 18px; }
  .photo-small { width: 145px; height: 160px; border-width: 6px; }
  .hero-note { left: 8px; max-width: 220px; }
  .benefit-grid, .teacher-grid { grid-template-columns: 1fr; }
  .benefit-card { min-height: auto; }
  .benefit-card h3 { margin-top: 32px; }
  .teacher-body > p:not(.teacher-role), .teacher-role { min-height: auto; }
  .lead-grid { grid-template-columns: 1fr; gap: 34px; }
  .lead-form { padding: 24px 18px; }
  .form-row-half { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .contact-card { min-height: 160px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 16px; }
  .footer-inner p { margin: 0; }
}

@media (max-width: 520px) {
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-link { text-align: center; }
  .hero-visual { min-height: 430px; }
  .photo-main { inset: 26px 34px 40px 0; }
  .photo-small { width: 112px; height: 128px; }
  .hero-note { bottom: 4px; padding: 14px; font-size: 12px; }
  .program-grid { grid-template-columns: 1fr; }
  .program-card { min-height: 250px; }
  .teacher-dialog { padding: 34px 22px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.photo-fallback-empty::after {
  content: "";
}
