:root {
  color-scheme: light;
  --page-bg: #171717;
  --panel-bg: #202020;
  --black: #050505;
  --white: #ffffff;
  --text: #f7f7f7;
  --muted: #a5a5a5;
  --soft: #dedede;
  --accent: #ff038f;
  --accent-dark: #d10e7a;
  --accent-red: #ff1c1c;
  --border: rgba(255, 255, 255, 0.16);
  --dark-border: rgba(0, 0, 0, 0.18);
  --max-width: 1180px;
  --narrow-width: 760px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input {
  font: inherit;
}

.visually-hidden,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link:focus {
  z-index: 1000;
  top: 16px;
  left: 16px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: var(--white);
  background: var(--accent);
}

.site-shell {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

.site-shell.narrow,
.narrow {
  width: min(100% - 32px, var(--narrow-width));
  margin-inline: auto;
}

.centered {
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-height);
  padding: 0 64px;
  background: rgba(20, 20, 20, 0.96);
  backdrop-filter: blur(14px);
}

.site-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.site-logo img {
  width: 88px;
  height: auto;
}

.site-nav {
  flex: 1;
}

.nav-list,
.submenu,
.footer-links,
.feature-list,
.split-list,
.team-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  color: var(--white);
  font-size: 14px;
  text-transform: uppercase;
  opacity: 0.95;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.nav-item.is-active > a,
.nav-item > a:hover,
.nav-item > a:focus-visible {
  color: var(--white);
  border-bottom-color: var(--accent);
  opacity: 1;
}

.submenu {
  position: absolute;
  top: calc(100% - 1px);
  left: 50%;
  min-width: 260px;
  padding: 14px 0;
  background: #111111;
  border: 1px solid var(--border);
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.submenu a {
  display: block;
  padding: 10px 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
}

.submenu a:hover,
.submenu a:focus-visible,
.submenu a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 3, 143, 0.14);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  color: var(--white);
  background: transparent;
  border: 0;
}

.nav-toggle span:not(.visually-hidden) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.social-rail {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 80;
  display: grid;
  gap: 2px;
  transform: translateY(-50%);
}

.social-rail-link {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--accent);
  border: 0;
  cursor: pointer;
  transition: width 180ms ease, filter 180ms ease;
}

.social-rail-link:hover,
.social-rail-link:focus-visible {
  width: 50px;
  filter: brightness(1.12);
}

.social-rail-link svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.social-instagram {
  background: #dd3333;
}

.social-telegram {
  background: #1e73be;
}

.social-viber {
  background: #8224e3;
}

.section {
  padding: 88px 0;
}

.section-dark {
  background: var(--panel-bg);
}

.section-black {
  background: var(--black);
}

.section-light {
  background: #f2f2f2;
  color: #333333;
}

.section-light p,
.section-light li {
  color: #6c6c6c;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 400;
  line-height: 1.08;
  text-transform: uppercase;
}

h1 {
  font-size: 46px;
}

h2 {
  font-size: 38px;
}

h3 {
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
}

p,
li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.lead {
  color: var(--soft);
  font-size: 20px;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 54px;
  padding: 0 26px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-dark);
}

.button-small {
  min-width: 160px;
  min-height: 48px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
}

.home-hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
  background: var(--black);
}

.home-hero-track,
.home-hero-slide {
  position: absolute;
  inset: 0;
}

.home-hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms ease, visibility 600ms ease;
}

.home-hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
}

.home-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.home-hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.2) 48%, rgba(0, 0, 0, 0.66));
  pointer-events: none;
}

.home-hero-copy {
  position: absolute;
  right: 8%;
  top: 43%;
  z-index: 1;
  width: min(44vw, 640px);
  max-width: 640px;
  padding: 28px 34px;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 0 42px rgba(0, 0, 0, 0.72);
}

.home-hero-copy h1 {
  margin: 0 0 30px;
  color: var(--white);
  font-size: 50px;
}

.hero-cta {
  min-width: 250px;
  border-radius: 5px;
  box-shadow: 0 0 25px rgba(255, 3, 143, 0.62);
}

.hero-controls {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  color: var(--white);
  background: transparent;
  border: 0;
  cursor: pointer;
  opacity: 0.9;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: color 180ms ease, opacity 180ms ease;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
  color: var(--accent);
  opacity: 1;
}

.hero-arrow svg {
  width: 30px;
  height: 54px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 3;
}

.hero-prev {
  left: 56px;
}

.hero-next {
  right: 56px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 12px;
  pointer-events: auto;
  transform: translateX(-50%);
}

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.34);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.two-column,
.hero-grid,
.section-heading-row,
.story-grid,
.contact-grid,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.cta-strip {
  position: relative;
  padding: 66px 0 78px;
  overflow: hidden;
  background-image: url("/assets/img/home-cta-background.jpg");
  background-position: center;
  background-size: cover;
}

.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.42));
}

.cta-strip .site-shell {
  position: relative;
}

.cta-strip h2,
.section-heading-row h2 {
  max-width: 520px;
  margin-bottom: 0;
  text-align: center;
}

.quick-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  margin-top: 30px;
}

.form-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.quick-form input,
.contact-form input {
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  color: var(--white);
  background: transparent;
  border: 2px solid var(--accent);
  outline: 0;
}

.quick-form input:focus,
.contact-form input:focus {
  border-color: var(--white);
}

.quick-form input.is-invalid,
.contact-form input.is-invalid {
  border-color: #ff8f8f;
}

.quick-form button[disabled],
.contact-form button[disabled] {
  cursor: progress;
  opacity: 0.7;
}

.quick-form .recaptcha-field,
.quick-form .lead-form-status {
  grid-column: 1 / -1;
}

.recaptcha-field {
  min-height: 78px;
}

.recaptcha-field.is-invalid {
  outline: 2px solid #ff8f8f;
  outline-offset: 4px;
}

.field-error {
  margin: 0;
  color: #ffb8b8;
  font-size: 14px;
  line-height: 1.35;
}

.lead-form-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.lead-form-status.is-error {
  color: #ffb8b8;
}

.lead-form-status.is-success {
  color: #bdf3c2;
}

.lead-form-status.is-pending {
  color: var(--white);
}

.section-heading-row {
  margin-bottom: 64px;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.direction-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.direction-card-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0d0d0d;
}

.direction-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: transform 300ms ease, opacity 300ms ease;
}

.direction-card:hover img {
  opacity: 1;
  transform: scale(1.04);
}

.direction-card p {
  flex: 1;
  margin-bottom: 4px;
}

.direction-card .button {
  align-self: flex-start;
}

.event-callout {
  display: grid;
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 2.25fr);
  overflow: hidden;
  padding: 0;
}

.event-callout-copy {
  display: flex;
  min-width: 0;
  min-height: clamp(320px, 25vw, 390px);
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 4vw, 70px);
  background: var(--accent);
}

.event-callout-copy p {
  color: var(--white);
}

.event-image-rail {
  display: grid;
  min-width: 0;
  grid-auto-columns: clamp(300px, 25vw, 390px);
  grid-auto-flow: column;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.event-image-rail img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  scroll-snap-align: start;
}

.founder-intro {
  position: relative;
  overflow: hidden;
  background-image: url("/assets/img/home-founder-dots.jpg");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: auto 100%;
}

.dot-field {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  opacity: 0.12;
  background: var(--accent);
  filter: blur(90px);
}

.founder-intro .site-shell {
  position: relative;
}

.founder-facts {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.founder-facts li {
  position: relative;
  padding-left: 16px;
  color: #8c8c8c;
}

.founder-facts li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #8c8c8c;
}

.founder-profile {
  position: relative;
  display: grid;
  min-height: 620px;
  align-items: center;
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(20, 20, 20, 0.98), rgba(20, 20, 20, 0.78) 48%, rgba(20, 20, 20, 0.26)), url("/assets/img/home-founder-slastya.jpg");
  background-position: center;
  background-size: cover;
}

.founder-profile p {
  max-width: 1120px;
  color: var(--white);
}

.instagram-link {
  display: inline-grid;
  grid-template-columns: 64px auto;
  gap: 20px;
  align-items: center;
  margin-top: 28px;
  color: var(--white);
  font-size: 20px;
}

.instagram-link svg {
  width: 64px;
  height: 64px;
  fill: currentColor;
}

.instagram-link span {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 16px;
}

.instagram-link strong {
  color: var(--white);
  font-size: 20px;
  font-weight: 400;
}

.founder-mark {
  width: 100px;
  height: auto;
  margin-top: 34px;
}

.testimonial-grid {
  display: grid;
  grid-auto-columns: minmax(360px, 1fr);
  grid-auto-flow: column;
  gap: 42px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--accent) transparent;
}

.testimonial {
  display: grid;
  min-height: 430px;
  align-content: end;
  margin: 0;
  padding: 44px 34px 36px;
  background: #212121;
  text-align: center;
  scroll-snap-align: center;
}

.testimonial blockquote {
  margin: 0 auto 42px;
  color: var(--white);
  font-size: 16px;
  line-height: 1.72;
}

.testimonial figcaption img {
  display: block;
  width: 61px;
  height: 42px;
  margin: 0 auto 26px;
  object-fit: contain;
}

.testimonial strong,
.testimonial span {
  display: block;
}

.testimonial span {
  margin-top: 8px;
  color: var(--accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  text-align: center;
}

.stat-card {
  display: grid;
  min-height: 170px;
  align-content: center;
  justify-items: center;
  padding: 18px 14px;
}

.stat-icon {
  display: block;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  color: var(--accent);
  fill: currentColor;
}

.stats-grid strong {
  display: block;
  color: var(--accent);
  font-size: 44px;
}

.stats-grid span {
  display: block;
  margin-top: 6px;
  text-transform: uppercase;
}

.home-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: #f2f2f2;
}

.home-gallery img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  filter: grayscale(0.08);
  transition: filter 240ms ease, transform 240ms ease;
}

.home-gallery img:hover {
  filter: grayscale(0);
  transform: scale(1.02);
}

.page-hero {
  min-height: 280px;
  padding: 70px 0;
  background-color: var(--black);
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.45)), var(--hero-image);
  background-position: center;
  background-size: cover;
}

.page-hero h1 {
  margin: 0;
  color: var(--white);
}

.page-hero p {
  margin: 0;
  color: var(--white);
}

.hero-grid-reversed h1 {
  order: 2;
}

.feature-list {
  display: grid;
  max-width: 760px;
  gap: 12px;
  margin-top: 26px;
}

.feature-list li,
.split-list li,
.team-copy li {
  position: relative;
  padding-left: 22px;
}

.feature-list li::before,
.split-list li::before,
.team-copy li::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--muted);
  border-radius: 50%;
}

.image-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--panel-bg);
}

.image-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.about-story .story-grid {
  align-items: start;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.direction-feature-list {
  display: grid;
  gap: 72px;
  margin-top: 72px;
}

.direction-feature,
.team-member,
.event-founder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 70px;
  align-items: center;
}

.direction-feature.is-reversed img,
.team-member.is-reversed img {
  order: 2;
}

.direction-feature img,
.team-member img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.team-section {
  padding-top: 0;
}

.team-list {
  display: grid;
  gap: 0;
}

.team-member {
  min-height: 680px;
  background: #181818;
}

.team-copy {
  width: min(100% - 64px, 560px);
  margin-inline: auto;
}

.team-role {
  color: var(--muted);
  font-weight: 700;
}

.team-copy ul {
  display: grid;
  gap: 8px;
  margin: 22px 0;
}

.team-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
  color: #02d9b9;
  font-size: 14px;
  font-weight: 700;
}

.page-hero-events {
  display: grid;
  min-height: 280px;
  place-items: center;
  background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.36)), var(--hero-image);
}

.hero-panel {
  width: min(100% - 32px, 340px);
  padding: 24px 30px;
  background: rgba(91, 6, 52, 0.72);
  text-align: center;
}

.hero-panel h1 {
  margin-bottom: 8px;
}

.accent-title,
.tab-panel h2,
.course-body h2 {
  color: var(--accent);
  font-weight: 700;
}

.event-founder {
  margin-top: 58px;
}

.event-founder img {
  width: min(100%, 360px);
  margin-inline: auto;
}

.wide-photo {
  width: 100%;
  max-height: 420px;
  margin: 44px auto 0;
  object-fit: cover;
}

.event-years {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 42px;
  text-align: left;
}

.event-years.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  text-align: center;
}

.event-years strong,
.event-years span {
  display: block;
}

.event-years strong {
  color: var(--accent);
  text-transform: uppercase;
}

.event-years span {
  margin-top: 12px;
  color: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px;
}

.service-card img {
  width: 100%;
  max-width: 225px;
  margin: 0 auto 18px;
}

.service-card h3 {
  color: var(--accent);
}

.education-hero {
  position: relative;
  display: grid;
  min-height: 360px;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(90deg, #10000a, #531739);
}

.education-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.education-hero .site-shell {
  position: relative;
  z-index: 1;
}

.education-hero img {
  position: absolute;
  right: 10%;
  bottom: -60px;
  max-height: 430px;
  opacity: 0.72;
}

.education-courses {
  padding-top: 94px;
}

.education-intro {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: center;
  background: var(--accent-red);
}

.education-intro h2,
.education-intro p {
  margin: 0;
  padding: 48px 36px;
  color: var(--white);
}

.course-card-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  overflow-x: auto;
}

.course-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
}

.course-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 300ms ease;
}

.course-card span {
  position: absolute;
  right: 26px;
  bottom: 26px;
  left: 26px;
  padding: 14px 18px;
  color: var(--white);
  background: rgba(20, 20, 20, 0.88);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.course-card:hover img {
  transform: scale(1.04);
}

.course-hero {
  padding-top: 64px;
  background: var(--black);
}

.title-line {
  display: grid;
  grid-template-columns: 36px minmax(0, auto) 36px;
  gap: 32px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.title-line span {
  height: 2px;
  background: var(--accent);
}

.title-line h1 {
  margin: 0;
  font-size: 32px;
}

.course-gallery {
  display: grid;
  grid-template-columns: repeat(3, 177px);
  justify-content: center;
  gap: 52px;
  margin-top: 60px;
}

.course-gallery img {
  width: 177px;
  height: 267px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 70px rgba(255, 3, 143, 0.28);
}

.course-body {
  padding-top: 18px;
  text-align: center;
}

.section-kicker {
  color: var(--accent);
  font-size: 28px;
  line-height: 1.25;
  text-transform: uppercase;
}

.split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 80px;
  margin: 46px 0 56px;
  text-align: left;
}

.single-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  justify-content: center;
  gap: 62px;
  margin-top: 48px;
}

.single-price-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #1b1b1b;
}

.single-price-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.single-price-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.78));
}

.single-price-card div {
  position: absolute;
  right: 14px;
  bottom: 16px;
  left: 14px;
  z-index: 1;
}

.single-price-card h3,
.single-price-card span,
.single-price-card strong {
  display: block;
  margin: 0 0 8px;
  color: var(--white);
}

.single-price-card h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
}

.single-price-card span {
  font-size: 12px;
}

.single-price-card .button {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  font-size: 12px;
  border-radius: 18px;
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 46px;
}

.tab-list button {
  min-height: 44px;
  color: var(--white);
  background: transparent;
  border: 1px solid var(--white);
  border-radius: 24px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
}

.tab-list button.is-active {
  color: var(--accent);
  border-color: var(--accent);
}

.tab-panel h2 {
  margin: 44px 0 24px;
  text-align: center;
  font-size: 24px;
}

.price-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 34px;
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--white);
}

.price-row:hover .price-row-title,
.price-row:focus-visible .price-row-title {
  color: var(--accent);
}

.price-row-title,
.price-row strong {
  color: var(--white);
  font-size: 22px;
  font-weight: 700;
}

.price-row span:last-child {
  grid-column: 1 / -1;
  color: var(--white);
  font-size: 16px;
}

.custom-pay {
  margin-top: 90px;
  text-align: center;
}

.custom-pay h2 {
  color: var(--accent);
  font-weight: 700;
}

.schedule-wrap {
  overflow-x: auto;
}

.schedule-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.schedule-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.schedule-table th {
  color: var(--white);
  font-weight: 400;
  text-align: left;
}

.schedule-table thead th {
  padding: 14px 12px;
  background: var(--accent-dark);
}

.schedule-table thead th:first-child {
  width: 84px;
  border-radius: 24px 0 0 24px;
}

.schedule-table thead th:last-child {
  border-radius: 0 24px 24px 0;
}

.schedule-table tbody th,
.schedule-table td {
  height: 62px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  vertical-align: middle;
}

.schedule-event {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--event-color);
}

.schedule-event img {
  grid-row: 1 / 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.schedule-event span,
.schedule-event strong {
  overflow: hidden;
  color: var(--white);
  font-size: 11px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-slot {
  display: block;
  min-height: 30px;
}

.contact-grid {
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.contact-card span {
  color: var(--white);
  font-weight: 700;
}

.contact-card strong {
  color: var(--muted);
  font-weight: 400;
}

.contact-card:hover strong,
.contact-card:focus-visible strong {
  color: var(--white);
}

.contact-form-panel {
  padding: 36px;
  background: #151515;
  border: 1px solid var(--border);
}

.contact-form {
  display: grid;
  gap: 22px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label span {
  color: var(--white);
}

.site-footer {
  background: #1a1a1a;
}

.footer-grid {
  padding: 92px 0;
  align-items: start;
}

.site-footer h2 {
  margin-bottom: 36px;
}

.footer-links {
  display: grid;
  gap: 16px;
}

.footer-links a {
  display: inline-grid;
  grid-template-columns: 24px minmax(0, auto);
  gap: 14px;
  align-items: start;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.link-icon {
  display: grid;
  width: 24px;
  height: 28px;
  place-items: center;
  color: var(--accent);
}

.link-icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent-red);
}

.copyright {
  margin: 0;
  padding: 28px 16px;
  color: var(--muted);
  background: #2a2a2a;
  text-align: center;
}

.contact-dialog {
  width: min(100% - 32px, 640px);
  padding: 42px;
  color: var(--white);
  background: #151515;
  border: 1px solid var(--border);
}

.contact-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.dialog-close-form {
  position: absolute;
  top: 10px;
  right: 10px;
}

.dialog-close {
  width: 36px;
  height: 36px;
  color: var(--white);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.not-found {
  min-height: 60vh;
  display: grid;
  align-items: center;
}

@media (max-width: 1100px) {
  .site-header {
    padding-inline: 28px;
  }

  .nav-list {
    gap: 12px;
  }

  .nav-item > a {
    font-size: 12px;
  }

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

  .course-card-row {
    grid-template-columns: repeat(5, minmax(260px, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 66px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  p,
  li {
    font-size: 16px;
  }

  .site-header {
    padding-inline: 18px;
  }

  .site-logo img {
    width: 76px;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 110;
    display: none;
    width: 100vw;
    height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px;
    background: #111111;
  }

  .nav-open {
    overflow: hidden;
  }

  .nav-open .site-nav {
    display: block;
  }

  .nav-list {
    display: grid;
    gap: 0;
  }

  .nav-item > a {
    min-height: 48px;
    font-size: 18px;
    border-bottom: 1px solid var(--border);
  }

  .submenu {
    position: static;
    min-width: 0;
    padding: 0 0 10px 18px;
    border: 0;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .submenu a {
    padding: 8px 0;
  }

  .social-rail {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .home-hero {
    min-height: 620px;
  }

  .home-hero-slide img {
    object-position: 36% top;
  }

  .home-hero-copy {
    right: 16px;
    left: 16px;
    top: auto;
    bottom: 44px;
    width: auto;
    max-width: none;
  }

  .home-hero-copy h1 {
    font-size: 36px;
  }

  .two-column,
  .hero-grid,
  .section-heading-row,
  .story-grid,
  .contact-grid,
  .footer-grid,
  .direction-feature,
  .team-member,
  .event-founder,
  .education-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .quick-form {
    grid-template-columns: 1fr;
  }

  .direction-grid,
  .price-list,
  .single-price-grid,
  .split-list,
  .service-grid,
  .event-years,
  .event-years.compact {
    grid-template-columns: 1fr;
  }

  .single-price-grid {
    justify-items: center;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }

  .stat-card {
    min-height: 140px;
    padding: 14px 8px;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
  }

  .stats-grid strong {
    font-size: 34px;
  }

  .stats-grid span {
    font-size: 12px;
  }

  .single-price-card {
    width: 180px;
  }

  .event-callout {
    grid-template-columns: 1fr;
  }

  .event-callout-copy {
    min-height: auto;
    padding: 46px 28px;
  }

  .event-image-rail {
    grid-auto-columns: min(82vw, 340px);
  }

  .testimonial-grid {
    grid-auto-columns: minmax(300px, 86vw);
  }

  .founder-profile {
    min-height: 560px;
    background-position: 58% center;
  }

  .founder-intro {
    background-position: left top;
    background-size: auto 260px;
  }

  .home-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dot-field {
    width: 100%;
    opacity: 0.28;
  }

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

  .direction-feature.is-reversed img,
  .team-member.is-reversed img,
  .hero-grid-reversed h1 {
    order: initial;
  }

  .team-member {
    min-height: auto;
    padding-bottom: 42px;
  }

  .team-copy {
    width: min(100% - 32px, 560px);
  }

  .education-hero img {
    right: -30px;
    max-height: 320px;
  }

  .education-intro h2,
  .education-intro p {
    padding: 30px 22px;
  }

  .course-gallery {
    grid-template-columns: repeat(3, minmax(86px, 140px));
    gap: 14px;
  }

  .course-gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
  }

  .title-line {
    grid-template-columns: 24px minmax(0, auto) 24px;
    gap: 14px;
  }

  .title-line h1 {
    font-size: 26px;
  }

  .tab-list {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    padding: 66px 0;
  }
}

@media (max-width: 520px) {
  .page-hero,
  .education-hero {
    min-height: 320px;
  }

  .home-hero {
    min-height: 560px;
  }

  .home-hero-copy {
    padding: 22px 22px;
  }

  .home-hero-copy h1 {
    font-size: 32px;
  }

  .hero-cta {
    width: 100%;
    min-width: 0;
  }

  .hero-arrow {
    width: 44px;
    height: 52px;
  }

  .hero-arrow svg {
    width: 20px;
    height: 38px;
  }

  .hero-prev {
    left: 12px;
  }

  .hero-next {
    right: 12px;
  }

  .page-hero {
    padding: 54px 0;
  }

  .direction-grid,
  .direction-feature-list {
    gap: 34px;
  }

  .course-card-row {
    grid-template-columns: 1fr;
  }

  .course-card,
  .course-card img {
    min-height: 240px;
  }

  .contact-form-panel,
  .contact-dialog {
    padding: 28px 20px;
  }

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