@font-face { font-family: "Onest"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("fonts/onest-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("fonts/onest-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #263b4d;
  --muted: #5b6671;
  --paper: #eef1f4;
  --white: #ffffff;
  --line: rgba(38, 59, 77, .16);
  --navy: #0a578f;
  /* Фирменный оранжевый — для декора: точки, рамки, тени */
  --orange: #f47b20;
  /* Акценты в заголовках */
  --orange-accent: #f47b20;
  /* Мелкий оранжевый текст на светлом фоне */
  --orange-text: #d8610d;
  /* Фон кнопок и плашки контактов */
  --orange-strong: #f47b20;
  --orange-strong-hover: #d8610d;
  --orange-light: #ffc899;
  --grey: #d7dce1;
  --sky: #d7e8f5;
  --max: 1180px;
  --header-h: 112px;
  --display: "Onest", "Trebuchet MS", sans-serif;
  --body: "Manrope", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.55; }
body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.container { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.section-pad { padding: 112px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 20; color: var(--white); background-color: var(--navy); background-image: linear-gradient(112deg, rgba(6, 70, 124, .9) 0%, rgba(18, 110, 181, .78) 48%, rgba(10, 87, 143, .9) 100%), url("images/fon_top.webp"); background-position: center; background-size: cover; border-bottom: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 8px 28px rgba(6, 70, 124, .2); transition: border-color .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled { border-color: rgba(255, 255, 255, .28); box-shadow: 0 10px 34px rgba(6, 70, 124, .3); }
.header-inner, .footer-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: block; width: 240px; flex: 0 0 auto; }
.brand img { width: 100%; height: 108px; object-fit: contain; filter: drop-shadow(0 0 11px rgba(255, 255, 255, .42)) drop-shadow(0 0 22px rgba(88, 190, 255, .5)); }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 700; }
.site-nav a { color: var(--white); transition: color .2s ease; }
.site-nav a:hover { color: var(--orange-light); }
.site-header :focus-visible { outline-color: var(--white); }
.nav-cta { padding: 11px 17px; background: var(--orange-strong); color: var(--white); border-radius: 999px; transition: background .2s ease; }
.site-nav .nav-cta:hover { color: var(--white); background: var(--orange-strong-hover); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 11px 9px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; background: rgba(6, 70, 124, .88); box-shadow: 0 3px 12px rgba(6, 33, 60, .28); cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 4px 0; background: var(--white); transition: transform .2s ease, opacity .2s ease; }

.hero { padding-top: 76px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(440px, .88fr); align-items: center; gap: 70px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 20px; color: var(--orange-text); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow-dot, .pulse { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1; letter-spacing: -.035em; }
h1 { max-width: 650px; margin-bottom: 28px; font-size: clamp(3rem, 5.6vw, 5.2rem); font-weight: 700; }
h1 em, h2 em, h2 span { color: var(--orange-accent); font-style: normal; }
.hero-lead { max-width: 510px; margin-bottom: 34px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; }
.button { display: inline-flex; align-items: center; gap: 17px; padding: 16px 21px; border-radius: 3px; font-size: 13px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { color: var(--white); background: var(--orange-strong); }
.button-primary:hover { background: var(--orange-strong-hover); }
.text-link { padding-bottom: 4px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 800; }
.text-link:hover { color: var(--orange-text); border-color: var(--orange-text); }
.hero-facts { display: flex; gap: 34px; margin-top: 70px; }
.hero-facts > * { display: grid; gap: 2px; }
.hero-facts .hero-fact-link:hover { color: var(--orange-text); }
.hero-facts strong { font: 700 23px/1 var(--display); }
.hero-facts span { color: var(--muted); font-size: 11px; }
.hero-visual { position: relative; min-height: 600px; }
.hero-image-wrap { position: absolute; inset: 0 26px 34px 0; overflow: hidden; border-radius: 190px 190px 6px 6px; background: var(--sky); }
.hero-image-wrap::after { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, transparent 60%, rgba(32, 37, 34, .32)); }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.image-label { position: absolute; right: 24px; bottom: 20px; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: var(--white); background: rgba(32, 37, 34, .82); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.image-label .pulse { background: var(--grey); }
.hero-note { position: absolute; z-index: 2; padding: 18px; font: 700 12px/1.05 var(--display); letter-spacing: .08em; }
.note-top { top: 48px; right: 0; color: var(--ink); background: var(--grey); transform: rotate(6deg); }
.note-bottom { bottom: 0; left: -32px; color: var(--white); background: var(--orange-strong); transform: rotate(-7deg); }

.section-heading { display: flex; justify-content: space-between; gap: 70px; align-items: end; margin-bottom: 48px; }
.section-heading h2, .method-copy h2, .teacher-heading h2, .contact-panel h2 { margin-bottom: 0; font-size: clamp(2.6rem, 4.6vw, 4.4rem); }
.section-intro { max-width: 350px; margin-bottom: 5px; color: var(--muted); font-size: 15px; }
.programs { background-color: var(--white); background-image: linear-gradient(rgba(255, 255, 255, .9), rgba(238, 241, 244, .94)), url("images/background_01.webp"); background-position: center; background-size: cover; }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.program-card { position: relative; min-height: 400px; padding: 20px 20px 24px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.program-card:hover { transform: translateY(-7px); box-shadow: 12px 15px 0 rgba(32, 37, 34, .08); }
.program-card:focus-visible { outline-offset: 4px; }
.card-number { display: block; margin-bottom: 26px; font: 700 12px var(--display); opacity: .7; }
.program-card img { width: 100%; height: 132px; margin-bottom: 26px; object-fit: contain; mix-blend-mode: multiply; }
.program-card h3 { margin-bottom: 12px; font-size: 27px; letter-spacing: -.03em; }
.program-card p { max-width: 300px; margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.age { display: inline-block; padding: 5px 9px; border: 1px solid currentColor; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; }

.method { background-color: var(--sky); background-image: linear-gradient(rgba(215, 232, 245, .88), rgba(238, 241, 244, .92)), url("images/background_02.webp"); background-position: center; background-size: cover; }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 110px; }
.method-media { position: relative; padding: 0 35px 35px 0; }
.method-media::after { position: absolute; right: 0; bottom: 0; width: 78%; height: 78%; content: ""; background: var(--grey); z-index: 0; }
.photo-carousel { position: relative; z-index: 1; overflow: hidden; aspect-ratio: 1 / 1; background: var(--ink); touch-action: pan-y; }
.carousel-track { display: flex; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.carousel-track.is-dragging { transition: none; }
.photo-carousel.is-dragging { cursor: grabbing; }
.carousel-slide { position: relative; flex: 0 0 100%; display: grid; margin: 0; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.82); user-select: none; -webkit-user-drag: none; pointer-events: none; }
.carousel-slide figcaption { position: absolute; right: 16px; bottom: 15px; padding: 7px 10px; color: var(--white); background: rgba(38, 59, 77, .78); font-size: 11px; font-weight: 700; }
.carousel-button { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; color: var(--white); background: rgba(38, 59, 77, .65); font-size: 21px; line-height: 1; cursor: pointer; transform: translateY(-50%); transition: background .2s ease, color .2s ease; }
.carousel-button:hover { color: var(--ink); background: var(--white); }
.carousel-button-prev { left: 14px; }
.carousel-button-next { right: 14px; }
.carousel-dots { position: absolute; left: 10px; bottom: 9px; z-index: 2; display: flex; }
.carousel-dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.carousel-dot::before { position: absolute; inset: 8px; content: ""; border: 1px solid var(--white); border-radius: 50%; }
.carousel-dot.is-active::before { background: var(--orange); border-color: var(--orange); }
.method-sticker { position: absolute; right: -22px; top: 48px; z-index: 2; padding: 16px; color: var(--white); background: var(--ink); font: 11px/1.1 var(--display); text-transform: uppercase; transform: rotate(8deg); }
.method-sticker strong { color: var(--grey); font-size: 16px; }
.method-copy > p:not(.eyebrow) { max-width: 410px; margin: 27px 0 36px; color: var(--muted); }
.steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 20px; padding: 15px 0; border-top: 1px solid rgba(32, 37, 34, .2); }
.steps li:last-child { border-bottom: 1px solid rgba(32, 37, 34, .2); }
.steps li > span { color: var(--orange-text); font: 700 12px var(--display); }
.steps strong, .steps small { display: block; }
.steps strong { font: 700 18px var(--display); }
.steps small { color: var(--muted); font-size: 11px; }

.teacher { color: var(--white); background-color: var(--ink); background-image: linear-gradient(rgba(38, 59, 77, .93), rgba(6, 70, 124, .9)), url("images/background_03.webp"); background-position: center; background-size: cover; }
.teacher .eyebrow { color: var(--orange-light); }
.teacher h2 span { color: var(--orange); }
/* Desktop: имя и описание слева, по центру высоты фото. Mobile: имя → фото → описание */
.teacher-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr auto auto 1fr; grid-template-areas: ". photo" "heading photo" "details photo" ". photo"; column-gap: 110px; }
.teacher-heading { grid-area: heading; }
.teacher-photo { grid-area: photo; position: relative; min-width: 0; padding: 0 24px 24px 0; }
.teacher-details { grid-area: details; padding-top: 27px; }
.teacher-details p { max-width: 410px; margin: 0 0 24px; color: rgba(255, 253, 249, .78); }
.credentials { display: flex; flex-wrap: wrap; gap: 7px; max-width: 390px; margin: 0; padding: 0; list-style: none; }
.credentials li { padding: 6px 10px; border: 1px solid rgba(255, 253, 249, .3); border-radius: 999px; color: var(--grey); font-size: 11px; }
.teacher-photo::after { position: absolute; inset: 24px 0 0 24px; content: ""; border: 1px solid var(--orange); }
.teacher-photo img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: var(--paper); filter: contrast(1.08) saturate(1.05); }
.teacher-caption { position: absolute; right: -20px; bottom: 2px; z-index: 2; display: grid; gap: 4px; padding: 14px; color: var(--ink); background: var(--grey); font-size: 10px; text-transform: uppercase; transform: rotate(-4deg); }
.teacher-caption strong { font: 700 15px var(--display); }

.contact { padding-top: 80px; padding-bottom: 80px; background-color: var(--paper); background-image: linear-gradient(rgba(238, 241, 244, .9), rgba(238, 241, 244, .94)), url("images/background_04.webp"); background-position: center; background-size: cover; }
.contact-panel { display: grid; grid-template-columns: 1fr .82fr; gap: 90px; padding: 58px 64px; color: var(--white); background: var(--orange-strong); }
.contact-panel .eyebrow { color: var(--white); }
.contact-panel h2 em { color: var(--ink); }
.contact-panel p:not(.eyebrow) { max-width: 430px; margin: 26px 0 0; color: rgba(255, 253, 249, .92); font-size: 14px; }
.contact-actions { display: grid; align-content: center; }
.contact-line { display: grid; gap: 4px; padding: 17px 0; border-top: 1px solid rgba(255, 253, 249, .4); }
.contact-line:last-child { border-bottom: 1px solid rgba(255, 253, 249, .4); }
.contact-line span { color: rgba(255, 253, 249, .85); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-line strong { font: 600 17px var(--display); }
.contact-line b { float: right; color: var(--white); font-size: 22px; transition: transform .2s ease; }
a.contact-line:hover b { transform: translate(2px, -2px); }
.contact-panel :focus-visible { outline-color: var(--white); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { font-size: 11px; }
.footer-inner p { margin: 0; color: var(--muted); }
.footer-year { text-align: right; }

.program-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: opacity .25s ease, visibility .25s ease; }
.program-modal.is-open { visibility: visible; opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(38, 59, 77, .72); }
.modal-dialog { position: relative; z-index: 1; width: min(100%, 620px); max-height: min(680px, calc(100vh - 48px)); overflow: auto; padding: 48px 52px 52px; background: var(--white); box-shadow: 18px 18px 0 var(--orange); transform: translateY(12px); transition: transform .25s ease; }
.program-modal.is-open .modal-dialog { transform: translateY(0); }
.modal-dialog .eyebrow { margin-bottom: 18px; }
.modal-dialog h2 { max-width: 470px; margin-bottom: 22px; font-size: clamp(2.3rem, 5.5vw, 4rem); }
.modal-description { margin-bottom: 24px; color: var(--muted); font-size: 16px; }
.modal-points { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.modal-points li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.modal-points li::before { content: "→"; margin-right: 12px; color: var(--orange-text); font-weight: 800; }
.modal-close { position: absolute; top: 14px; right: 18px; z-index: 2; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; font-size: 27px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--white); background: var(--orange-strong); border-color: var(--orange-strong); }

/* Анимация появления включается только при работающем JavaScript — без него контент виден сразу */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: .12s; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }

@media (max-width: 900px) {
  .section-pad { padding: 84px 0; }
  .hero-grid, .method-grid { grid-template-columns: 1fr; gap: 55px; }
  .method-grid > * { min-width: 0; }
  .hero-visual { min-height: 540px; }
  .method-grid, .teacher-grid { max-width: 650px; }
  .teacher-grid { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "heading" "photo" "details"; row-gap: 55px; }
  .teacher-details { padding: 0 22px 0 0; margin-top: -31px; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-panel { gap: 50px; }
}

@media (max-width: 680px) {
  :root { --header-h: 88px; }
  .container { width: min(calc(100% - 32px), var(--max)); }
  .brand { width: 200px; }
  .brand img { height: 80px; }
  .menu-toggle { display: block; position: relative; z-index: 22; }
  .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: fixed; inset: 0; z-index: 21; display: grid; align-content: center; gap: 24px; padding: 32px; background-color: var(--navy); background-image: linear-gradient(145deg, rgba(6, 70, 124, .95) 0%, rgba(18, 110, 181, .9) 52%, rgba(10, 87, 143, .95) 100%), url("images/fon_top.webp"); background-position: center; background-size: cover; font: 700 28px/1 var(--display); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s ease, transform .25s ease, visibility .25s ease; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav .nav-cta { width: max-content; margin-top: 12px; font-size: 14px; }
  .hero { padding-top: 60px; }
  h1 { font-size: clamp(2.6rem, 12.5vw, 4.2rem); }
  .hero-lead { font-size: 16px; }
  .hero-facts { gap: 18px; margin-top: 50px; }
  .hero-facts strong { font-size: 19px; }
  .hero-facts span { max-width: 75px; font-size: 10px; line-height: 1.3; }
  .hero-visual { min-height: 430px; }
  .hero-image-wrap { inset: 0 15px 25px 0; border-radius: 120px 120px 4px 4px; }
  .note-top { top: 22px; }
  .note-bottom { left: -8px; }
  .section-heading { display: block; margin-bottom: 34px; }
  .section-intro { margin-top: 24px; }
  .program-grid { grid-template-columns: 1fr; }
  .program-card { min-height: 0; }
  .program-card img { height: 150px; }
  .method-media { padding-right: 22px; }
  .method-sticker { right: -3px; }
  .teacher-caption { right: 0; }
  .contact-panel { grid-template-columns: 1fr; gap: 35px; padding: 38px 24px; }
  .modal-dialog { padding: 42px 24px 30px; box-shadow: 8px 8px 0 var(--orange); }
  .footer-inner { flex-wrap: wrap; gap: 14px; padding: 24px 0; }
  .footer-inner p { flex: 1 1 170px; }
  .footer-year { flex-basis: 100% !important; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
