/* Общие стили всех вариантов. Макет: 1440 px, колонка 1140 px. */
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; src: url("../fonts/montserrat-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Forum"; src: url("../fonts/forum-cyrillic.woff2") format("woff2"); font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Forum"; src: url("../fonts/forum-latin.woff2") format("woff2"); font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --blue: #9dafea;
  --blue-light: #aebdee;
  --blue-dark: #6f86d6;
  --text: #666;
  --white: #fff;
  --radius: 10px;
  --corner: 56px;       /* скругление верхних углов секции */
  --notch-w: 240px;     /* выемка сверху */
  --notch-h: 94px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 "Montserrat", system-ui, sans-serif; color: var(--text); background: var(--blue); overflow-x: hidden; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.5em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--blue-dark); outline-offset: 3px; }
.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 64px; width: min(360px, 100%); padding: 12px 24px; border: 0; border-radius: var(--radius); background: #fff; color: #8ea2e6; font: 600 18px/1.3 "Montserrat", sans-serif; text-align: center; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgb(60 80 160 / .22); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--small { width: 240px; max-width: 100%; min-height: 54px; font-size: 16px; }

/* ---------- Шапка ---------- */
.header { position: relative; z-index: 20; background: var(--blue); color: #fff; }
.header__in { display: flex; align-items: center; gap: 40px; min-height: 96px; width: min(1360px, 100% - 40px); margin-inline: auto; }
.logo { flex: none; display: block; width: 72px; }
.logo img { width: 100%; height: auto; }
.nav { display: flex; gap: 40px; font-size: 16px; }
.nav a:hover, .contacts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contacts { display: flex; align-items: center; gap: 24px; margin-left: auto; white-space: nowrap; }
.contacts__item { display: flex; align-items: center; gap: 8px; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; padding: 10px; background: none; border: 0; color: inherit; cursor: pointer; }
.lang { order: 3; margin-left: auto; display: grid; place-items: center; min-width: 44px; height: 36px; border: 1px solid currentColor; border-radius: 18px; font-size: 14px; font-weight: 600; }
.lang + .burger { margin-left: 0; }
.burger span { display: block; height: 2px; margin: 5px 0; background: currentColor; border-radius: 2px; }

.header--light { background: #f1f4fd; color: #666; }

/* ---------- Первый экран ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 20px; align-items: center; }
.hero__text { padding: 80px 0 calc(var(--notch-h) + 40px); }
.hero h1 { margin: 0 0 24px; font-size: clamp(27px, 3vw, 38px); line-height: 1.25; text-transform: uppercase; font-weight: 700; }
.hero__role { max-width: 460px; margin-bottom: 48px; font-size: 20px; line-height: 1.5; }
.roles { margin: 0 0 40px; padding: 0; list-style: none; font-size: 20px; line-height: 1.7; }
.roles li { padding-left: 18px; text-indent: -18px; }
.roles li::before { content: "•"; display: inline-block; width: 18px; text-indent: 0; }
.hero .btn { width: min(464px, 100%); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 480px; margin: 56px 0 0; padding: 0; list-style: none; text-align: center; font-size: 15px; font-weight: 600; line-height: 1.35; }
.features .icon { width: 52px; height: 52px; margin: 0 auto 12px; stroke-width: 1; display: block; }

/* A: фото без фона на градиенте */
.hero--cutout { background: linear-gradient(35deg, #9dafea 10%, #c2cef6 60%, #e0e7ff 100%); }
.hero--cutout h1 { font-family: "Forum", serif; font-weight: 400; font-size: clamp(32px, 3.9vw, 50px); }
.hero__cutout { align-self: end; justify-self: end; width: min(480px, 100%); height: auto; aspect-ratio: 440 / 740; object-fit: contain; object-position: bottom; margin-top: 40px; }

/* B и C: круглое фото на акварели */
.hero--round { background: #a9b9ee url("../decor/hero-bg.jpg") right center / cover no-repeat; }
.hero__round { justify-self: center; width: min(592px, 100%); height: auto; aspect-ratio: 1; margin: 56px 0 calc(var(--notch-h) + 24px); border-radius: 50%; object-fit: cover; }

/* ---------- Секции с выемкой ---------- */
.section { position: relative; z-index: 1; margin-top: calc(-1 * var(--notch-h)); padding: calc(var(--notch-h) - 20px) 0 calc(var(--notch-h) + 72px); scroll-margin-top: -20px; }
.section--notch {
  --m: linear-gradient(#000 0 0);
  -webkit-mask-image: url("../decor/notch.svg"), radial-gradient(circle at 100% 100%, #000 calc(var(--corner) - 1px), #0000 var(--corner)), radial-gradient(circle at 0 100%, #000 calc(var(--corner) - 1px), #0000 var(--corner)), var(--m), var(--m), var(--m), var(--m), var(--m);
          mask-image: url("../decor/notch.svg"), radial-gradient(circle at 100% 100%, #000 calc(var(--corner) - 1px), #0000 var(--corner)), radial-gradient(circle at 0 100%, #000 calc(var(--corner) - 1px), #0000 var(--corner)), var(--m), var(--m), var(--m), var(--m), var(--m);
  /* выемка, левый угол, правый угол, верх слева, верх справа, левая колонка, правая колонка, центр */
  -webkit-mask-position: top center, left top, right top, var(--corner) 0, calc(100% - var(--corner)) 0, left bottom, right bottom, center bottom;
          mask-position: top center, left top, right top, var(--corner) 0, calc(100% - var(--corner)) 0, left bottom, right bottom, center bottom;
  -webkit-mask-size: var(--notch-w) var(--notch-h), var(--corner) var(--corner), var(--corner) var(--corner),
    calc(50% - var(--notch-w) / 2 - var(--corner) + 1px) calc(var(--corner) + 1px), calc(50% - var(--notch-w) / 2 - var(--corner) + 1px) calc(var(--corner) + 1px),
    calc(50% - var(--notch-w) / 2 + 1px) calc(100% - var(--corner)), calc(50% - var(--notch-w) / 2 + 1px) calc(100% - var(--corner)), var(--notch-w) calc(100% - var(--notch-h) + 1px);
          mask-size: var(--notch-w) var(--notch-h), var(--corner) var(--corner), var(--corner) var(--corner),
    calc(50% - var(--notch-w) / 2 - var(--corner) + 1px) calc(var(--corner) + 1px), calc(50% - var(--notch-w) / 2 - var(--corner) + 1px) calc(var(--corner) + 1px),
    calc(50% - var(--notch-w) / 2 + 1px) calc(100% - var(--corner)), calc(50% - var(--notch-w) / 2 + 1px) calc(100% - var(--corner)), var(--notch-w) calc(100% - var(--notch-h) + 1px);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.section--white { background: #fdfdff url("../decor/waves.webp") top center / 757px; }
.section--blue { background: var(--blue-light); color: #fff; }
.section--deep { background: var(--blue); color: #fff; }
.section--last { margin-bottom: 0; padding-top: calc(var(--notch-h) + 32px); padding-bottom: 88px; }
.title { margin: 0 0 80px; font-size: clamp(24px, 2.7vw, 32px); line-height: 1.3; font-weight: 700; text-transform: uppercase; }
.section--white .title { color: var(--blue); }
.section--white .title--grey { color: var(--text); }

/* ---------- Цитата ---------- */
.quote { position: relative; width: min(945px, 100% - 96px); margin: 40px auto 24px; padding: 72px 72px 64px; background: #fff; border: 4px solid var(--blue); border-radius: var(--radius); text-align: center; line-height: 1.9; }
.quote::before, .quote::after { content: ""; position: absolute; width: 112px; height: 92px; background: #fff url("../decor/quote.svg") center / 90px no-repeat; }
.quote::before { left: -48px; top: -42px; }
.quote::after { right: -48px; bottom: -42px; transform: rotate(180deg); }
.education { width: min(945px, 100% - 96px); margin: 88px auto 0; padding: 40px 56px; background: #fff; border-radius: var(--radius); box-shadow: 0 6px 24px rgb(30 45 110 / .1); line-height: 1.7; }
.education h3 { margin: 0 0 20px; color: var(--blue-dark); font-size: clamp(18px, 2vw, 22px); line-height: 1.4; text-align: center; }
.education ul { margin: 0; padding-left: 22px; }
.education li + li { margin-top: 12px; }
.education li::marker { color: var(--blue-dark); }
.quote--left { width: min(820px, 100% - 96px); text-align: left; font-size: 20px; line-height: 1.5; color: #555; }

/* ---------- Услуги ---------- */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 56px 35px; margin: 0; padding: 0; list-style: none; }
.card { display: flex; flex-direction: column; width: 356px; max-width: 100%; border: 2px solid rgb(255 255 255 / .75); border-radius: var(--radius); overflow: hidden; text-align: center; }
.card img { width: 100%; height: auto; aspect-ratio: 360 / 347; object-fit: cover; }
.card h3 { flex: 1; margin: 0; padding: 32px 22px; min-height: 152px; font-size: 17px; font-weight: 500; line-height: 1.55; text-transform: uppercase; }
.card__action { display: flex; justify-content: center; align-items: center; min-height: 86px; padding: 0 16px 16px; }
.card__link { padding: 10px; background: none; border: 0; color: #fff; font: 600 16px "Montserrat", sans-serif; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.cards--lined .card__action { padding: 0 16px; border-top: 1px solid rgb(255 255 255 / .6); }
.center { margin-top: 72px; text-align: center; }

/* ---------- Формат работы ---------- */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 0; padding: 0; list-style: none; }
.formats li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; min-height: 260px; padding: 32px 24px; background: #fff; border: 2px solid var(--blue); border-radius: var(--radius); text-align: center; font-size: 18px; line-height: 1.55; }
.formats .icon { width: 72px; height: 72px; stroke-width: 1; }

/* ---------- Дипломы ---------- */
.slider { position: relative; height: 540px; overflow: hidden; touch-action: pan-y pinch-zoom; }
.slider__slide { position: absolute; top: 50%; left: 50%; width: min(720px, 72%); aspect-ratio: 3 / 2; margin: 0; padding: 8px; background: #fff; box-shadow: 0 12px 40px rgb(30 45 110 / .28); transform: translate(-50%, -50%) scale(.6); opacity: 0; visibility: hidden; transition: transform .45s, opacity .45s, filter .45s, visibility .45s; }
.slider__slide a { position: absolute; inset: 8px; display: block; }
.slider__slide img { width: 100%; height: 100%; object-fit: contain; }
.slider__slide.is-current { transform: translate(-50%, -50%); opacity: 1; visibility: visible; z-index: 2; }
.slider__slide.is-prev, .slider__slide.is-next { opacity: .85; visibility: visible; filter: blur(2px); z-index: 1; }
.slider__slide.is-prev { transform: translate(-128%, -50%) scale(.72); }
.slider__slide.is-next { transform: translate(28%, -50%) scale(.72); }
.slider__btn { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 66px; height: 66px; margin-top: -33px; border: 0; border-radius: 50%; background: #fff; color: #7d7d7d; box-shadow: 0 6px 20px rgb(30 45 110 / .25); cursor: pointer; }
.slider__btn--prev { left: max(0px, calc(50% - min(360px, 36%) - 33px)); }
.slider__btn--next { right: max(0px, calc(50% - min(360px, 36%) - 33px)); }
.slider__btn[hidden] { display: none; }

/* ---------- Запись ---------- */
.booking { text-align: center; }
.booking .title { margin-bottom: 32px; }
.booking__box { max-width: 760px; margin: 0 auto; padding: 48px 32px; background: #fff; border: 2px dashed var(--blue); border-radius: 20px; }
.booking__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 28px; }
.booking__actions:not(:has(> :not([hidden]))) { display: none; }
.booking__box p { margin-bottom: 0; }
.booking__box--embed { max-width: 1060px; padding: 0 0 16px; overflow: hidden; border-style: solid; }
.booking__frame { display: block; width: 100%; height: 720px; border: 0; }
.booking__fallback { font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) {
  /* Calendly нужно не меньше 320 px: на телефоне растягиваем на всю ширину экрана */
  .booking__box.booking__box--embed { max-width: none; margin-inline: calc(50% - 50vw); border-width: 2px 0; border-radius: 0; }
  .booking__frame { height: 1000px; }
  .form { padding: 24px 18px; }
}
.booking__actions .btn { width: 300px; font-size: 16px; }
.booking__actions .btn--outline { border: 2px solid var(--blue); }

/* ---------- Подвал ---------- */
.footer { position: relative; z-index: 2; background: var(--blue); color: #fff; padding: 56px 0 40px; }
.footer__top { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: end; padding-bottom: 28px; border-bottom: 1px solid rgb(255 255 255 / .55); }
.footer .logo { width: 88px; margin-bottom: 40px; }
.footer .nav { flex-wrap: wrap; gap: 16px 56px; }
.footer__contacts { display: grid; gap: 20px; justify-items: start; }
.footer__contacts a { display: flex; align-items: center; gap: 10px; }
.social { display: flex; gap: 14px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--blue-dark); }
.footer__copy { margin: 40px 0 0; text-align: center; font-size: 13px; }

/* ---------- Попапы ---------- */
.popup { width: min(945px, 100% - 32px); max-height: min(90vh, 90dvh); padding: 0; border: 0; border-radius: var(--radius); color: #333; box-shadow: 0 30px 80px rgb(0 0 0 / .3); }
.popup::backdrop { background: rgb(30 35 50 / .68); backdrop-filter: blur(4px); }
.popup__in { position: relative; padding: 96px 56px 80px; text-align: center; font-size: 18px; line-height: 1.8; }
.popup h3 { margin: 0 0 32px; color: var(--blue); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.35; text-transform: uppercase; overflow-wrap: break-word; hyphens: auto; }
.popup--long .popup__in { padding-top: 28px; padding-bottom: 48px; text-align: left; }
.popup--long h3 { text-align: center; }
.popup--long h4 { margin: 32px 0 8px; color: var(--blue-dark); font-size: 1.1em; }
.popup--long p { margin: 0 0 14px; }
.popup--long ul { margin: 0; padding-left: 22px; }
.popup--long .popup__action { margin: 32px 0 0; text-align: center; }
.popup__close { position: absolute; top: 28px; right: 28px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: #666; cursor: pointer; }
.popup--long .popup__close { position: sticky; top: 14px; z-index: 1; margin: 0 -28px 24px auto; border-radius: 50%; background: #fff; }
body:has(dialog[open]) { overflow: hidden; }

/* ---------- Список вариантов ---------- */
.index { min-height: 100vh; padding: 64px 20px; background: #f1f4fd; }
.index main { max-width: 720px; margin: 0 auto; }
.index h1 { font-size: 28px; line-height: 1.3; color: #444; }
.index ul { padding: 0; list-style: none; display: grid; gap: 16px; }
.index li a { display: block; padding: 24px 28px; background: #fff; border: 2px solid var(--blue); border-radius: 16px; }
.index li a:hover { background: var(--blue); color: #fff; }
.index strong { display: block; font-size: 20px; }

.feedback { margin-top: 72px; text-align: center; }
.feedback .title { margin-bottom: 32px; }
.form { display: grid; gap: 18px; max-width: 760px; margin: 0 auto; padding: 36px 32px; background: #fff; border-radius: 20px; box-shadow: 0 6px 24px rgb(30 45 110 / .1); text-align: left; }
.form label { display: grid; gap: 6px; font-size: 15px; }
.form input:not([type="checkbox"]), .form textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 2px solid #d5ddf6; border-radius: 10px; background: #fff; color: inherit; font: inherit; font-size: 16px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--blue-dark); outline-offset: 1px; }
.form textarea { resize: vertical; }
.form label.form__consent { grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.form__consent input { width: 20px; height: 20px; margin: 1px 0 0; }
.form__consent a { text-decoration: underline; text-underline-offset: 3px; }
.form .btn { justify-self: center; }
.form .btn:disabled { opacity: .6; cursor: default; }
.form__status { margin: 0; min-height: 1.5em; text-align: center; }
.form .form__extra { position: absolute; left: -9999px; width: 1px !important; height: 1px; padding: 0; border: 0; opacity: 0; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .header__in { gap: 24px; flex-wrap: wrap; }
  .nav { gap: 24px; }
  .header .contacts__email span { display: none; }
}
@media (max-width: 960px) {
  :root { --corner: 36px; --notch-w: 160px; --notch-h: 60px; }
  .header__in { min-height: 76px; gap: 16px; }
  .logo { width: 56px; }
  .js .burger { display: block; }
  .lang { order: 0; }
  .js .header .nav, .js .header .contacts { display: none; }
  .header .nav, .header .contacts { width: 100%; flex-direction: column; align-items: flex-start; gap: 16px; margin: 0; }
  .header .contacts { padding-bottom: 24px; white-space: normal; }
  .header .nav { padding-bottom: 24px; }
  .header .contacts__email span { display: inline; }
  .js .header.is-open .nav, .js .header.is-open .contacts { display: flex; }
  .hero__in { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero__text { order: 2; padding: 32px 0 calc(var(--notch-h) + 40px); }
  .hero__role, .features { margin-inline: auto; }
  .roles { display: inline-block; text-align: left; }
  .hero .btn { margin-inline: auto; display: flex; }
  .hero__cutout { order: 1; justify-self: center; width: min(360px, 80%); margin-top: 24px; -webkit-mask-image: linear-gradient(#000 82%, #0000); mask-image: linear-gradient(#000 82%, #0000); }
  .hero--cutout .hero__text { padding-top: 32px; }
  .hero__round { order: 1; width: min(440px, 88%); margin: 32px 0 0; }
  .section { padding-top: calc(var(--notch-h) + 16px); }
  .title { margin-bottom: 40px; }
  .section--white { background-size: 520px; }
  .formats { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; gap: 20px; }
  .formats li { min-height: 200px; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .tiles li { min-height: 150px; }
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .features { gap: 8px; font-size: 11.5px; margin-top: 40px; }
  .features .icon { width: 40px; height: 40px; }
  .hero__role, .roles { font-size: 17px; margin-bottom: 32px; }
  .btn { font-size: 16px; min-height: 56px; }
  .quote { padding: 48px 20px 44px; border-width: 3px; width: calc(100% - 16px); line-height: 1.75; }
  .quote::before, .quote::after { width: 72px; height: 60px; background-size: 56px; }
  .quote::before { left: -12px; top: -30px; }
  .quote::after { right: -12px; bottom: -30px; }
  .quote--left { font-size: 16px; }
  .education { width: 100%; box-sizing: border-box; margin-top: 56px; padding: 28px 20px; }
  .card h3 { min-height: 0; padding: 24px 16px; }
  .slider { height: calc((100vw - 56px) * 2 / 3 + 96px); }
  .slider__slide { top: calc(50% - 36px); width: calc(100% - 16px); padding: 4px; }
  .slider__slide a { inset: 4px; }
  .slider__slide.is-prev { transform: translate(-150%, -50%) scale(.9); }
  .slider__slide.is-next { transform: translate(50%, -50%) scale(.9); }
  .slider__btn { top: auto; bottom: 4px; width: 48px; height: 48px; margin: 0; }
  .slider__btn--prev { left: calc(50% - 60px); }
  .slider__btn--next { right: calc(50% - 60px); }
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tiles li { min-height: 76px; padding: 16px; font-size: 15px; border-radius: 16px; }
  .pill { padding: 20px; font-size: 15px; border-radius: 28px; }
  .booking__box { padding: 32px 18px; }
  .popup__in { padding: 76px 20px 40px; font-size: 16px; line-height: 1.7; }
  .popup__close { top: 14px; right: 14px; }
  .popup--long .popup__in { padding-top: 14px; padding-bottom: 32px; }
  .popup--long .popup__close { margin: 0 -6px 16px auto; }
}
@media (max-width: 420px) {
  .popup h3 { font-size: 16px; hyphens: manual; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
