:root {
  --blue: #294895;
  --blue-dark: #182f70;
  --blue-soft: #e9efff;
  --green: #2c7457;
  --green-soft: #e6f3ec;
  --yellow: #f3c65c;
  --ink: #172033;
  --muted: #5e6676;
  --line: #dfe5f0;
  --soft: #f5f7fc;
  --white: #fff;
  --shadow: 0 18px 55px rgba(30, 52, 105, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.55 "Open Sans", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p, dl, dd, figure, blockquote { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(48px, 6.4vw, 82px); line-height: .98; letter-spacing: -.052em; }
h2 { margin-bottom: 0; font-size: clamp(34px, 4.3vw, 52px); line-height: 1.08; letter-spacing: -.04em; }
h3 { margin-bottom: 10px; font-size: 23px; line-height: 1.18; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(223, 229, 240, .86); background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); }
.site-header__inner { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.site-logo { flex: 0 0 auto; }
.site-logo img { width: 94px; height: 62px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.site-nav a { position: relative; text-decoration: none; font-size: 14px; font-weight: 650; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--blue); transition: right .2s; }
.site-nav a:hover::after { right: 0; }
.site-header__phone { padding: 10px 14px; color: var(--blue); background: var(--blue-soft); border-radius: 13px; text-decoration: none; font-size: 14px; font-weight: 800; white-space: nowrap; }
.site-menu { display: none; width: 40px; height: 40px; padding: 9px 7px; border: 0; background: transparent; cursor: pointer; }
.site-menu span { display: block; height: 2px; margin: 5px 0; background: var(--blue-dark); border-radius: 2px; transition: transform .2s, opacity .2s; }

.hero { overflow: hidden; padding: 72px 0 80px; background: radial-gradient(circle at 80% 18%, #e8efff 0, #e8efff 18%, transparent 41%), var(--soft); }
.hero__grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 56px; }
.hero__lead { max-width: 640px; margin-bottom: 30px; color: var(--muted); font-size: 21px; }
.hero__actions { display: flex; align-items: center; gap: 24px; margin-bottom: 48px; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 14px 25px; border: 1px solid var(--blue); border-radius: 16px; color: var(--white); background: var(--blue); box-shadow: 0 10px 25px rgba(41, 72, 149, .23); font-weight: 750; text-align: center; text-decoration: none; transition: transform .2s, background .2s, color .2s; }
.button:hover { background: var(--blue-dark); transform: translateY(-2px); }
.button--secondary { color: var(--blue); background: transparent; box-shadow: none; }
.button--secondary:hover { color: var(--white); }
.button--light { border-color: var(--white); color: var(--blue-dark); background: var(--white); box-shadow: none; }
.button--light:hover { border-color: var(--blue-dark); color: var(--white); }
.text-link { color: var(--blue); font-weight: 750; text-decoration: none; }
.text-link span { display: inline-block; transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }
.hero__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; }
.hero__facts div { padding-left: 15px; border-left: 3px solid var(--yellow); }
.hero__facts strong, .hero__facts span { display: block; }
.hero__facts strong { font-weight: 800; }
.hero__facts span { margin-top: 2px; color: var(--muted); font-size: 13px; }
.hero__visual { position: relative; max-width: 480px; margin-left: auto; }
.hero__photo { padding: 18px; border-radius: 36px; background: var(--white); box-shadow: var(--shadow); transform: rotate(1.5deg); }
.hero__photo img { width: 100%; aspect-ratio: 1/1; border-radius: 26px; object-fit: cover; }
.hero__shape { position: absolute; z-index: 2; display: grid; place-items: center; font-weight: 300; line-height: 1; }
.hero__shape--one { left: -40px; bottom: 42px; color: var(--yellow); font-size: 86px; transform: rotate(14deg); }
.hero__shape--two { right: -25px; top: 28px; color: var(--blue); font-size: 56px; }

.advantages { color: var(--white); background: var(--blue-dark); }
.advantages__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.advantages__grid div { min-height: 118px; display: flex; flex-direction: column; justify-content: center; padding: 24px 28px; border-right: 1px solid rgba(255,255,255,.15); }
.advantages__grid div:last-child { border-right: 0; }
.advantages strong { margin-bottom: 5px; color: var(--yellow); font-size: 24px; }
.advantages span { color: #e6ebff; font-size: 14px; }

.section { padding: 96px 0; scroll-margin-top: 78px; }
.section--soft { background: var(--soft); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); align-items: end; gap: 60px; margin-bottom: 42px; }
.section-heading > p { margin-bottom: 4px; color: var(--muted); }
.section-heading > .text-link { justify-self: end; margin-bottom: 8px; }

.program-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.program-card { position: relative; overflow: hidden; min-height: 400px; padding: 38px; border-radius: 30px; }
.program-card::after { content: ""; position: absolute; right: -80px; bottom: -110px; width: 300px; height: 300px; border: 1px solid currentColor; border-radius: 50%; opacity: .12; }
.program-card--blue { color: var(--white); background: linear-gradient(145deg, var(--blue-dark), var(--blue)); }
.program-card--green { color: #153c2d; background: var(--green-soft); }
.program-card__number { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; margin-bottom: 60px; border: 1px solid currentColor; border-radius: 50%; font-weight: 800; }
.program-card h3 { max-width: 430px; margin-bottom: 24px; font-size: 32px; letter-spacing: -.02em; }
.program-card ul { columns: 2; margin: 0; padding: 0; list-style: none; }
.program-card li { position: relative; margin-bottom: 10px; padding-left: 20px; }
.program-card li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; }

.about-grid { display: grid; grid-template-columns: .78fr 1.22fr; align-items: center; gap: 76px; }
.about-photo { max-width: 410px; padding: 14px; border-radius: 34px; background: var(--white); box-shadow: var(--shadow); }
.about-photo img { width: 100%; max-height: 530px; border-radius: 25px; object-fit: cover; object-position: center top; }
.about-lead { margin: 26px 0; color: var(--muted); font-size: 20px; }
.about-content blockquote { margin-bottom: 28px; padding: 25px 28px; border-left: 4px solid var(--yellow); border-radius: 0 20px 20px 0; background: var(--white); font-size: 18px; font-style: italic; }
.about-signature { margin-bottom: 0; }
.about-signature strong, .about-signature span { display: block; }
.about-signature span { margin-top: 3px; color: var(--muted); font-size: 14px; }

.gallery { display: grid; grid-template-columns: 1.3fr .7fr; grid-template-rows: 245px 245px; gap: 16px; }
.gallery img { width: 100%; height: 100%; border-radius: 24px; object-fit: cover; }
.gallery__wide { grid-row: 1 / 3; }

.teachers { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(245px, 1fr); gap: 16px; overflow-x: auto; padding: 3px 3px 18px; scroll-snap-type: x mandatory; scrollbar-color: #bdc7df transparent; }
.teacher { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: 0 8px 26px rgba(30, 52, 105, .07); scroll-snap-align: start; }
.teacher img { width: 100%; height: 310px; object-fit: cover; object-position: center top; }
.teacher div { min-height: 150px; padding: 22px; }
.teacher h3 { font-size: 18px; }
.teacher p { margin-bottom: 0; color: var(--muted); font-size: 14px; }

.stories-section { background: var(--white); }
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stories figure { min-height: 260px; margin: 0; padding: 30px; border-radius: 26px; color: var(--white); background: linear-gradient(145deg, var(--blue-dark), var(--blue)); }
.stories img { width: 76px; height: 76px; margin-bottom: 32px; border: 3px solid rgba(255,255,255,.7); border-radius: 50%; object-fit: cover; }
.stories blockquote { margin: 0; color: #f2f5ff; font-size: 18px; font-style: italic; }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.price-card { display: flex; min-height: 390px; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: 26px; background: var(--white); }
.price-card--featured { color: var(--white); background: linear-gradient(145deg, var(--blue-dark), var(--blue)); transform: translateY(-10px); box-shadow: var(--shadow); }
.price-card__label { margin-bottom: 28px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.price-card--featured .price-card__label { color: var(--yellow); }
.price-card h3 { font-size: 28px; }
.price-card > p:not(.price-card__label) { min-height: 54px; color: var(--muted); }
.price-card--featured > p:not(.price-card__label) { color: #dce4ff; }
.price-card strong { margin: auto 0 25px; color: var(--blue-dark); font-size: 32px; }
.price-card--featured strong { color: var(--white); }
.price-card .button { width: 100%; }
.price-card--featured .button { border-color: var(--white); background: var(--white); color: var(--blue-dark); box-shadow: none; }
.price-card--featured .button:hover { border-color: var(--yellow); background: var(--yellow); }
.price-note { margin: 24px 0 0; color: var(--muted); font-size: 13px; }

.final-cta { padding: 0 0 96px; background: var(--soft); }
.final-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 52px; border-radius: 32px; color: var(--white); background: linear-gradient(135deg, var(--blue-dark), var(--blue)); box-shadow: var(--shadow); }
.final-cta .eyebrow { color: var(--yellow); }
.final-cta h2 { margin-bottom: 12px; }
.final-cta p:last-child { margin-bottom: 0; color: #dce4ff; }
.final-cta .button { flex: 0 0 auto; min-width: 190px; }

.site-footer { padding: 55px 0 65px; border-top: 1px solid var(--line); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1fr; gap: 42px; }
.site-footer h2 { margin-bottom: 14px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer a { display: block; margin-bottom: 8px; color: var(--blue); text-decoration: none; }
.site-footer address, .site-footer p { margin: 8px 0 0; color: var(--muted); font-size: 14px; font-style: normal; }
.site-footer__brand img { width: 110px; height: 74px; object-fit: contain; }

@media (max-width: 980px) {
  .site-nav { position: fixed; inset: 78px 0 auto; display: grid; gap: 0; max-height: 0; overflow: hidden; background: var(--white); box-shadow: 0 18px 35px rgba(20, 37, 80, .12); opacity: 0; transition: max-height .28s, opacity .2s; }
  .site-nav.is-open { max-height: 420px; opacity: 1; }
  .site-nav a { padding: 17px 24px; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .site-header__phone { margin-left: auto; }
  .site-menu { display: block; }
  .site-menu.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-menu.is-open span:nth-child(2) { opacity: 0; }
  .site-menu.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .hero__facts { grid-template-columns: 1fr; }
  .advantages__grid { grid-template-columns: 1fr 1fr; }
  .advantages__grid div:nth-child(2) { border-right: 0; }
  .advantages__grid div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.15); }
  .about-grid { gap: 44px; }
  .prices { grid-template-columns: 1fr; }
  .price-card { min-height: 330px; }
  .price-card--featured { transform: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .container { width: min(1120px, calc(100% - 32px)); }
  .site-header__inner { min-height: 66px; gap: 12px; }
  .site-logo img { width: 72px; height: 48px; }
  .site-nav { inset: 66px 0 auto; }
  .site-header__phone { padding: 8px 10px; font-size: 13px; }
  .hero { padding: 42px 0 58px; }
  .hero__grid { grid-template-columns: 1fr; }
  h1 { font-size: 47px; }
  h2 { font-size: 34px; }
  .hero__lead { font-size: 18px; }
  .hero__actions { align-items: stretch; flex-direction: column; gap: 17px; margin-bottom: 38px; }
  .hero__actions .text-link { text-align: center; }
  .hero__facts { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero__facts div { padding-left: 10px; }
  .hero__facts strong { font-size: 13px; }
  .hero__facts span { font-size: 11px; }
  .hero__visual { max-width: 520px; margin: 0; }
  .hero__photo { transform: none; }
  .hero__shape--one { left: -8px; }
  .hero__shape--two { right: -4px; }
  .advantages__grid div { min-height: 105px; padding: 20px 18px; }
  .section { padding: 68px 0; scroll-margin-top: 66px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; margin-bottom: 30px; }
  .section-heading > p { margin: 0; }
  .section-heading > .text-link { justify-self: start; margin: 0; }
  .program-grid { grid-template-columns: 1fr; }
  .program-card { min-height: 360px; padding: 30px; }
  .program-card__number { margin-bottom: 42px; }
  .program-card h3 { font-size: 29px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 100%; }
  .about-lead { font-size: 18px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 170px; }
  .gallery__wide { grid-column: 1 / 3; grid-row: auto; }
  .teachers { grid-auto-columns: 82%; margin-right: -16px; }
  .stories { grid-template-columns: 1fr; }
  .stories figure { min-height: 230px; }
  .price-card { min-height: 350px; }
  .final-cta { padding-bottom: 68px; }
  .final-cta__inner { display: block; padding: 36px 26px; }
  .final-cta .button { width: 100%; margin-top: 28px; }
  .site-footer { padding: 42px 0; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 420px) {
  .site-header__phone { font-size: 12px; }
  h1 { font-size: 42px; }
  .hero__facts { grid-template-columns: 1fr; }
  .advantages strong { font-size: 21px; }
  .advantages span { font-size: 12px; }
  .program-card ul { columns: 1; }
}

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