:root {
  --ink: #16212b;
  --ink-soft: #304554;
  --paper: #f6ecd7;
  --paper-strong: #f0dfba;
  --board: #1c5f7a;
  --board-deep: #0d3d55;
  --sky: #cbe7ff;
  --accent: #ff5b3d;
  --accent-soft: #ffd0b8;
  --mint: #a2ddc1;
  --shadow: 0 22px 60px rgba(20, 32, 41, 0.14);
  --radius-xl: 36px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.66)),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 38px,
      rgba(28, 95, 122, 0.08) 38px,
      rgba(28, 95, 122, 0.08) 40px
    ),
    var(--paper);
  min-height: 100vh;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 91, 61, 0.18) 0, transparent 18%),
    radial-gradient(circle at 88% 14%, rgba(162, 221, 193, 0.2) 0, transparent 16%),
    radial-gradient(circle at 78% 80%, rgba(28, 95, 122, 0.1) 0, transparent 20%);
}

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

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 3vw, 40px);
  background: rgba(246, 236, 215, 0.96);
  border-bottom: 2px solid rgba(22, 33, 43, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.brand__text {
  display: grid;
  gap: 3px;
}

.brand__text strong {
  font-family: "Arial Black", "Segoe UI Variable Display", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand__text small {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.topbar__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar__contacts {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(22, 33, 43, 0.1);
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.topbar__contacts a {
  color: inherit;
}

.topbar__contacts span {
  opacity: 0.45;
}

.topbar__nav a {
  position: relative;
  padding: 8px 2px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.topbar__nav a:hover::after,
.topbar__nav a:focus-visible::after {
  transform: scaleX(1);
}

.topbar__nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 0 16px 34px rgba(20, 32, 41, 0.22);
  background: var(--board-deep);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(22, 33, 43, 0.18);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.6);
}

.button--small {
  padding: 11px 18px;
  font-size: 0.92rem;
}

.version-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 33, 43, 0.12);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.version-toggle:hover,
.version-toggle:focus-visible {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 16px 34px rgba(20, 32, 41, 0.18);
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 33, 43, 0.12);
  font-weight: 800;
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 16px 34px rgba(20, 32, 41, 0.18);
}

.social-link img {
  width: 20px;
  height: 20px;
  display: block;
}

.social-link__icon--vk {
  width: 24px;
  height: auto;
}

.ticker {
  overflow: hidden;
  padding: 12px 0;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.ticker__track {
  display: inline-block;
  min-width: 200%;
  animation: marquee 24s linear infinite;
}

.ticker__track span {
  margin: 0 1.2rem;
}

main {
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(56px, 8vw, 112px) clamp(18px, 4vw, 56px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
  padding-top: clamp(48px, 8vw, 88px);
}

.hero__copy,
.hero__board,
.program-card,
.feature-card,
.contact-shell,
.contact-topics,
.contact-card,
.placeholder-card {
  animation: rise 700ms ease both;
}

.hero__copy h1,
.section-heading h2,
.feature-card h3,
.program-card h3,
.placeholder-card strong {
  font-family: "Arial Black", "Segoe UI Variable Display", sans-serif;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--board-deep);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--paper-strong));
}

.hero h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.lead {
  max-width: 60ch;
  margin: 26px 0 0;
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  line-height: 1.65;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero__tags li {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(22, 33, 43, 0.1);
  font-weight: 700;
}

.hero__board {
  position: relative;
  min-height: 540px;
  margin-top: 28px;
  padding: clamp(18px, 2vw, 24px);
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.42)),
    linear-gradient(120deg, var(--sky), rgba(162, 221, 193, 0.55));
  box-shadow: var(--shadow);
  border: 2px solid rgba(22, 33, 43, 0.08);
}

.hero__board::before,
.hero__board::after {
  content: "";
  position: absolute;
  border-radius: 24px;
}

.hero__board::before {
  inset: 14px;
  border: 2px dashed rgba(22, 33, 43, 0.18);
}

.hero__board::after {
  width: 180px;
  height: 180px;
  right: -42px;
  top: -34px;
  background: rgba(255, 91, 61, 0.18);
  filter: blur(6px);
}

.note {
  position: absolute;
  width: min(280px, calc(100% - 56px));
  padding: 22px;
  border-radius: 24px;
  background: rgba(246, 236, 215, 0.96);
  box-shadow: 0 18px 40px rgba(20, 32, 41, 0.16);
  border: 2px solid rgba(22, 33, 43, 0.08);
}

.note span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
  font-size: 0.86rem;
}

.note strong {
  display: block;
  margin-top: 14px;
  font-size: 1.12rem;
}

.note p {
  margin: 8px 0 0;
  line-height: 1.55;
  color: var(--ink-soft);
}

.note:nth-of-type(1) {
  top: 42px;
  left: 34px;
  transform: rotate(-4deg);
}

.note:nth-of-type(2) {
  top: 218px;
  right: 34px;
  transform: rotate(5deg);
}

.note:nth-of-type(3) {
  left: 68px;
  bottom: 42px;
  transform: rotate(-2deg);
}

.note--accent {
  background: linear-gradient(180deg, var(--accent-soft), rgba(246, 236, 215, 0.96));
}

.note--tilt {
  background: linear-gradient(180deg, rgba(162, 221, 193, 0.72), rgba(255, 255, 255, 0.92));
}

.hero__grid {
  position: absolute;
  inset: auto 32px 28px auto;
  display: grid;
  grid-template-columns: repeat(3, 18px);
  gap: 10px;
}

.hero__grid i {
  display: block;
  width: 18px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.82;
}

.teachers-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.88fr);
  gap: 34px;
  align-items: center;
  padding-top: clamp(48px, 8vw, 88px);
}

.teachers-hero__copy h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.95;
  text-transform: uppercase;
  font-family: "Arial Black", "Segoe UI Variable Display", sans-serif;
}

.teachers-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
  border-radius: 34px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.8), rgba(203, 231, 255, 0.62)),
    linear-gradient(120deg, rgba(162, 221, 193, 0.35), rgba(255, 208, 184, 0.35));
  border: 2px solid rgba(22, 33, 43, 0.08);
  box-shadow: var(--shadow);
}

.teachers-collage__item {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  margin: 0;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
}

.teachers-collage__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teachers-collage__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 33, 43, 0.06) 0%, rgba(22, 33, 43, 0.7) 100%);
}

.teachers-collage__item figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  color: #fff;
  font-family: "Arial Black", "Segoe UI Variable Display", sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.teachers-collage__item--large {
  min-height: 320px;
}

.teachers-collage__item--wide {
  grid-column: span 2;
  min-height: 220px;
}

.section-heading {
  max-width: 920px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  text-transform: uppercase;
}

.section-heading--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: end;
  max-width: 1240px;
  text-align: left;
}

.section-heading__aside,
.section-subtitle {
  margin: 18px auto 0;
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.7;
}

.section-heading__aside {
  margin: 0;
}

.program,
.exams {
  position: relative;
}

.teachers-roster {
  position: relative;
}

.teachers-roster::before {
  content: "";
  position: absolute;
  inset: 24px clamp(12px, 3vw, 42px);
  z-index: -1;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(28, 95, 122, 0.12), rgba(28, 95, 122, 0.03));
}

.program::before,
.exams::before {
  content: "";
  position: absolute;
  inset: 24px clamp(12px, 3vw, 42px);
  z-index: -1;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(28, 95, 122, 0.12), rgba(28, 95, 122, 0.04));
}

.table-wrap {
  max-width: 1240px;
  margin: 0 auto;
  overflow-x: auto;
}

.price-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.88);
}

.price-table th,
.price-table td {
  padding: 26px 20px;
  border: 2px solid rgba(28, 95, 122, 0.36);
  text-align: center;
}

.price-table th {
  background: rgba(255, 255, 255, 0.96);
  font-family: "Arial Black", "Segoe UI Variable Display", sans-serif;
  font-size: 1.05rem;
}

.price-table td {
  font-size: 1.1rem;
  line-height: 1.45;
}

.price-table--compact th,
.price-table--compact td {
  padding: 22px 18px;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1240px;
  margin: 28px auto 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1fr;
  gap: 22px;
  max-width: 1240px;
  margin: 28px auto 0;
}

.photo-card {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  margin: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 2px solid rgba(22, 33, 43, 0.08);
}

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 33, 43, 0.04) 0%, rgba(22, 33, 43, 0.68) 100%);
  pointer-events: none;
}

.photo-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 22px;
  color: #fff;
}

.photo-card figcaption span {
  display: inline-block;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-card figcaption strong {
  display: block;
  margin-top: 12px;
  font-size: 1.42rem;
  font-family: "Arial Black", "Segoe UI Variable Display", sans-serif;
}

.photo-card figcaption p {
  margin: 10px 0 0;
  max-width: 28ch;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
}

.photo-card--tall {
  min-height: 560px;
}

.photo-card--tall img {
  min-height: 560px;
}

.photo-card--wide {
  min-height: 320px;
}

.photo-card--wide img {
  min-height: 320px;
}

.photo-card--accent {
  transform: translateY(30px) rotate(-1.2deg);
}

.photo-card--project::after {
  background: linear-gradient(180deg, rgba(22, 33, 43, 0.05) 0%, rgba(22, 33, 43, 0.72) 100%);
}

.photo-card--dark-fill::after {
  background: linear-gradient(180deg, rgba(22, 33, 43, 0.08) 0%, rgba(22, 33, 43, 0.78) 100%);
}

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
}

.teacher-card {
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.84);
  border: 2px solid rgba(22, 33, 43, 0.08);
  box-shadow: var(--shadow);
}

.teacher-card__media {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(22, 33, 43, 0.06);
}

.teacher-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-card__media--landscape {
  aspect-ratio: 16 / 10;
}

.teacher-card__body {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.teacher-card__label {
  margin: 0;
  color: var(--board-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.teacher-card h3 {
  margin: 0;
  font-size: 1.7rem;
  font-family: "Arial Black", "Segoe UI Variable Display", sans-serif;
}

.teacher-card__role {
  margin: 0;
  line-height: 1.65;
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.teacher-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.teacher-card__chips li {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(28, 95, 122, 0.1);
  border: 1px solid rgba(28, 95, 122, 0.14);
  font-weight: 700;
}

.teacher-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 16px;
  background: rgba(255, 120, 88, 0.14);
  border: 1px solid rgba(255, 120, 88, 0.24);
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.teacher-card__link img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.teacher-card__link:hover,
.teacher-card__link:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 120, 88, 0.22);
  box-shadow: 0 14px 28px rgba(20, 32, 41, 0.12);
}


.teacher-principles__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
}

.teacher-principle {
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(22, 33, 43, 0.08);
  box-shadow: var(--shadow);
}

.teacher-principle strong {
  display: block;
  margin-bottom: 12px;
  font-family: "Arial Black", "Segoe UI Variable Display", sans-serif;
  font-size: 1.25rem;
}

.teacher-principle p {
  margin: 0;
  line-height: 1.7;
  color: var(--ink-soft);
}

.faq-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.88fr);
  gap: 34px;
  align-items: end;
  padding-top: clamp(44px, 7vw, 84px);
}

.faq-hero__copy h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2.8rem, 5.4vw, 5rem);
  line-height: 0.96;
  text-transform: uppercase;
  font-family: "Arial Black", "Segoe UI Variable Display", sans-serif;
}

.faq-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 20px;
  border-radius: 34px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.84), rgba(203, 231, 255, 0.68)),
    linear-gradient(120deg, rgba(162, 221, 193, 0.28), rgba(255, 208, 184, 0.28));
  border: 2px solid rgba(22, 33, 43, 0.08);
  box-shadow: var(--shadow);
}

.faq-overview__card {
  min-height: 180px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid rgba(22, 33, 43, 0.06);
}

.faq-overview__card--accent {
  transform: rotate(-2deg);
  background: linear-gradient(180deg, rgba(255, 208, 184, 0.84), rgba(255, 250, 240, 0.96));
}

.faq-overview__card--soft {
  grid-column: span 2;
  background: linear-gradient(180deg, rgba(162, 221, 193, 0.72), rgba(255, 255, 255, 0.94));
}

.faq-overview__card strong {
  display: block;
  margin-bottom: 12px;
  font-family: "Arial Black", "Segoe UI Variable Display", sans-serif;
  font-size: 1.3rem;
}

.faq-overview__card p {
  margin: 0;
  max-width: 28ch;
  color: var(--ink-soft);
  line-height: 1.65;
}

.faq-section {
  position: relative;
}

.faq-section::before {
  content: "";
  position: absolute;
  inset: 24px clamp(12px, 3vw, 42px);
  z-index: -1;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(28, 95, 122, 0.1), rgba(28, 95, 122, 0.03));
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  border: 2px solid rgba(22, 33, 43, 0.08);
  box-shadow: var(--shadow);
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 24px 72px 24px 24px;
  cursor: pointer;
  list-style: none;
  font-family: "Arial Black", "Segoe UI Variable Display", sans-serif;
  font-size: 1.1rem;
  line-height: 1.35;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 20px;
  width: 38px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(28, 95, 122, 0.12);
  color: var(--board-deep);
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 180ms ease, background-color 180ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: rgba(255, 120, 88, 0.18);
}

.faq-item__answer {
  padding: 0 24px 24px;
}

.faq-item__answer p {
  margin: 0;
  max-width: 52ch;
  color: var(--ink-soft);
  line-height: 1.72;
}

.faq-item__answer a {
  color: var(--board-deep);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
}

.faq-help__card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: 24px 34px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(22, 33, 43, 0.96), rgba(13, 61, 85, 0.94));
  box-shadow: var(--shadow);
  color: #fff;
}

.faq-help__card h2 {
  margin: 6px 0 0;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.faq-help__card .eyebrow {
  color: #fff;
}

.faq-help__card > p {
  margin: 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.faq-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  grid-column: 1 / -1;
}

.placeholder-grid--wide {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.placeholder-card {
  position: relative;
  min-height: 250px;
  padding: 24px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(203, 231, 255, 0.8)),
    repeating-linear-gradient(
      135deg,
      rgba(28, 95, 122, 0.06) 0,
      rgba(28, 95, 122, 0.06) 12px,
      rgba(255, 255, 255, 0.1) 12px,
      rgba(255, 255, 255, 0.1) 24px
    );
  box-shadow: var(--shadow);
  border: 2px solid rgba(22, 33, 43, 0.08);
}

.placeholder-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  border: 2px dashed rgba(22, 33, 43, 0.14);
  pointer-events: none;
}

.placeholder-card span {
  display: inline-block;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(22, 33, 43, 0.08);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.placeholder-card strong {
  display: block;
  max-width: 14ch;
  font-size: 1.45rem;
}

.placeholder-card p {
  max-width: 34ch;
  margin: 12px 0 0;
  line-height: 1.65;
  color: var(--ink-soft);
}

.placeholder-card--dark {
  background:
    linear-gradient(135deg, rgba(13, 61, 85, 0.96), rgba(28, 95, 122, 0.92)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.08) 0,
      rgba(255, 255, 255, 0.08) 12px,
      transparent 12px,
      transparent 24px
    );
  color: #fff;
}

.placeholder-card--dark span {
  background: rgba(255, 255, 255, 0.16);
}

.placeholder-card--dark p {
  color: rgba(255, 255, 255, 0.82);
}

.placeholder-card--accent {
  background:
    linear-gradient(135deg, rgba(255, 208, 184, 0.92), rgba(255, 255, 255, 0.92)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 91, 61, 0.08) 0,
      rgba(255, 91, 61, 0.08) 12px,
      transparent 12px,
      transparent 24px
    );
}

.placeholder-card--wide {
  min-height: 320px;
}

.section--cta {
  padding-top: 18px;
  padding-bottom: 18px;
}

.section-cta {
  display: flex;
  justify-content: center;
  max-width: 1240px;
  margin: 0 auto;
}

.prep .dual-cards,
.exams .dual-cards {
  margin-top: 26px;
}

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

.program-card {
  padding: 26px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.76);
  border: 2px solid rgba(22, 33, 43, 0.08);
  box-shadow: var(--shadow);
}

.program-card--offset {
  transform: translateY(20px) rotate(-1deg);
}

.program-card h3 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  text-transform: uppercase;
}

.benefits {
  position: relative;
}

.benefits::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 220px;
  background: linear-gradient(180deg, rgba(28, 95, 122, 0.16), transparent);
  z-index: -1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
}

.feature-card {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  border: 2px solid rgba(22, 33, 43, 0.08);
  box-shadow: var(--shadow);
}

.feature-card:nth-child(2n) {
  transform: translateY(18px);
}

.feature-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.feature-card h3 {
  margin: 18px 0 12px;
  font-size: 1.5rem;
}

.feature-card p {
  margin: 0;
  line-height: 1.7;
  color: var(--ink-soft);
}

.video-section {
  position: relative;
}

.video-section::before {
  content: "";
  position: absolute;
  inset: 24px clamp(12px, 3vw, 42px);
  z-index: -1;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(255, 208, 184, 0.16), rgba(203, 231, 255, 0.08));
}

.video-card {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(203, 231, 255, 0.72)),
    linear-gradient(120deg, rgba(255, 208, 184, 0.18), rgba(162, 221, 193, 0.18));
  border: 2px solid rgba(22, 33, 43, 0.08);
  box-shadow: var(--shadow);
}

.video-card--double {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.video-card__frame {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(22, 33, 43, 0.92);
  aspect-ratio: 16 / 9;
}

.video-card__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.contact {
  padding-bottom: clamp(56px, 8vw, 96px);
}

.contact-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(13, 61, 85, 0.96), rgba(28, 95, 122, 0.94)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06) 0,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px,
      transparent 24px
    );
  color: #fff;
  box-shadow: var(--shadow);
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 26px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-hero__copy {
  display: grid;
  gap: 14px;
}

.contact-hero__copy .eyebrow {
  color: #fff;
}

.contact-hero__copy h2 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 0.95;
  text-transform: uppercase;
  font-family: "Arial Black", "Segoe UI Variable Display", sans-serif;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 0.56fr);
  gap: 24px;
  padding-top: 26px;
}

.contact-topics {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-topics strong {
  font-family: "Arial Black", "Segoe UI Variable Display", sans-serif;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.contact-topic-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-topic-list li {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-weight: 700;
  line-height: 1.5;
}

.contact-topics__meta {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 91, 61, 0.14);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.contact-card {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact-card__header {
  display: grid;
  gap: 8px;
  padding-bottom: 8px;
}

.contact-card__header strong {
  font-family: "Arial Black", "Segoe UI Variable Display", sans-serif;
  font-size: 1.4rem;
  text-transform: uppercase;
}

.contact-card__header p {
  margin: 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.contact-card__list {
  display: grid;
  gap: 12px;
}

.contact-card__item {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.contact-card__item:hover,
.contact-card__item:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 28px rgba(20, 32, 41, 0.12);
}

.contact-card__item span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
}

.contact-card__item strong {
  margin: 0;
  line-height: 1.45;
  font-size: 1rem;
}

.contact-card__note {
  margin: 0;
  padding-top: 6px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.94rem;
}

.map-section {
  padding-top: 24px;
}

.map-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.82);
  border: 2px solid rgba(22, 33, 43, 0.08);
  box-shadow: var(--shadow);
}

.map-card__embed {
  position: relative;
  min-height: 451px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(203, 231, 255, 0.9), rgba(162, 221, 193, 0.72)),
    repeating-linear-gradient(
      45deg,
      rgba(28, 95, 122, 0.08) 0,
      rgba(28, 95, 122, 0.08) 12px,
      transparent 12px,
      transparent 24px
    );
}

.map-card__embed::before {
  content: "Карта загружается…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--board-deep);
  font-family: "Arial Black", "Segoe UI Variable Display", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-card__embed.is-loaded::before {
  display: none;
}

.map-card__meta {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(22, 33, 43, 0.95), rgba(13, 61, 85, 0.95));
  color: #fff;
}

.map-card__meta strong {
  font-family: "Arial Black", "Segoe UI Variable Display", sans-serif;
  font-size: 1.45rem;
  text-transform: uppercase;
}

.map-card__meta p {
  margin: 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
}

.footer {
  padding: 0 18px 26px;
  text-align: center;
  color: var(--ink-soft);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    filter: blur(6px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@media (max-width: 1100px) {
  .hero,
  .teachers-hero,
  .faq-hero,
  .section-heading--split,
  .contact-hero,
  .contact-layout,
  .map-card,
  .faq-help__card {
    grid-template-columns: 1fr;
  }

  .hero__board {
    min-height: 500px;
  }

  .feature-grid,
  .photo-grid,
  .teacher-grid,
  .faq-grid,
  .video-card--double,
  .teacher-principles__grid,
  .placeholder-grid,
  .dual-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .placeholder-grid--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .topbar {
    flex-wrap: wrap;
  }

  .topbar__nav {
    justify-content: flex-start;
  }

  .topbar__actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .topbar__contacts {
    white-space: normal;
  }

  .hero h1,
  .teachers-hero__copy h1,
  .faq-hero__copy h1,
  .section-heading h2,
  .contact-hero__copy h2 {
    max-width: none;
  }

  .hero__board {
    min-height: 620px;
  }

  .note:nth-of-type(1) {
    top: 26px;
    left: 20px;
  }

  .note:nth-of-type(2) {
    top: 208px;
    right: 20px;
  }

  .note:nth-of-type(3) {
    left: 20px;
    bottom: 28px;
  }

  .feature-grid,
  .photo-grid,
  .teacher-grid,
  .faq-grid,
  .video-card--double,
  .teacher-principles__grid,
  .placeholder-grid,
  .placeholder-grid--wide,
  .dual-cards {
    grid-template-columns: 1fr;
  }

  .teachers-collage {
    grid-template-columns: 1fr;
  }

  .faq-overview {
    grid-template-columns: 1fr;
  }

  .faq-overview__card--soft {
    grid-column: auto;
  }

  .teachers-collage__item--wide {
    grid-column: auto;
  }

  .photo-card--accent,
  .program-card--offset,
  .feature-card:nth-child(2n) {
    transform: none;
  }

  .price-table {
    min-width: 640px;
  }
}

@media (max-width: 560px) {
  .section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand__text small {
    display: none;
  }

  .hero__board {
    min-height: 690px;
  }

  .photo-card,
  .photo-card img,
  .photo-card--tall,
  .photo-card--tall img {
    min-height: 320px;
  }

  .faq-item summary {
    padding: 20px 64px 20px 20px;
    font-size: 1rem;
  }

  .faq-item__answer {
    padding: 0 20px 20px;
  }

  .faq-help__card {
    padding: 22px;
  }

  .note {
    width: calc(100% - 40px);
    padding: 18px;
  }

  .note:nth-of-type(2) {
    top: 248px;
  }
}
