:root {
  --brand-light-blue: #2978F1;
  --brand-blue: #1949AF;
  --brand-blue-dark: #0D2354;
  --brand-red: #DE0000;
  --brand-red-soft: #E73A53;
  --brand-orange: #F28F22;

  --neutral-white: #FFFFFF;
  --neutral-bg: #F7F8FA;
  --neutral-bg-2: #EFEFEF;
  --neutral-text: #3C3C3B;
  --neutral-muted: #6C7280;
  --neutral-gray: #9D9D9C;

  --border-light: rgba(13, 35, 84, 0.10);
  --border-blue: rgba(41, 120, 241, 0.24);
  --border-red: rgba(222, 0, 0, 0.18);

  --shadow-soft: 0 20px 55px rgba(13, 35, 84, 0.10);
  --shadow-card: 0 12px 34px rgba(13, 35, 84, 0.08);
  --shadow-blue: 0 18px 40px rgba(25, 73, 175, 0.22);

  --radius-xs: 10px;
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 34px;
  --radius-xl: 44px;

  --container: 1180px;
  --container-padding: 18px;

  --font-title: "Days", "Arial Black", system-ui, sans-serif;
  --font-subtitle: "TTDaysSans", "Montserrat", system-ui, sans-serif;
  --font-accent: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-text: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  font-family: var(--font-text);
  color: var(--neutral-text);
  background: var(--neutral-bg);
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

p:last-child {
  margin-bottom: 0;
}

.nowrap {
  white-space: nowrap;
}

.container {
  width: min(100% - var(--container-padding) * 2, var(--container));
  margin: 0 auto;
}

.section {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
}

.section > .container,
.hero__inner,
.about__inner,
.final-request__inner {
  position: relative;
  z-index: 2;
}

.section-head {
  position: relative;
  margin-bottom: 32px;
}

.section-head .section-subtitle {
  margin-bottom: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 14px;
  color: var(--brand-blue);
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 999px;
  background: rgba(41, 120, 241, 0.08);
  border: 1px solid rgba(41, 120, 241, 0.14);
}

.section-label::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-red);
}

h1,
h2,
h3 {
  color: var(--brand-blue-dark);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h1,
h2 {
  font-family: var(--font-title);
  font-weight: 900;
}

h3 {
  font-family: var(--font-text);
  font-weight: 850;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(38px, 6.7vw, 72px);
}

h2 {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: clamp(30px, 4.7vw, 54px);
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.section-subtitle {
  max-width: 860px;
  margin: 0 0 32px;
  color: var(--neutral-muted);
  font-family: var(--font-subtitle);
  font-size: 18px;
}

.section-cta {
  margin-top: 30px;
}

.mascot,
.hero__form-mascot,
.section-head--with-mascot .mascot,
.success-map-card .mascot,
.final-request__mascot {
  display: none !important;
}

.brand-shapes {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.brand-shape {
  position: absolute;
  display: block;
  border-radius: 8px;
  opacity: 0.07;
  transform: rotate(-13deg);
}

.brand-shape--blue {
  background: var(--brand-light-blue);
}

.brand-shape--red {
  background: var(--brand-red);
}

.brand-shape--orange {
  background: var(--brand-orange);
}

.brand-shapes--hero .brand-shape--blue {
  width: 180px;
  height: 180px;
  top: 130px;
  right: -60px;
}

.brand-shapes--hero .brand-shape--red {
  width: 72px;
  height: 72px;
  top: 190px;
  right: 98px;
}

.brand-shapes--hero .brand-shape--orange {
  width: 120px;
  height: 120px;
  bottom: 70px;
  left: -52px;
}

.brand-shapes--audience .brand-shape--red {
  width: 110px;
  height: 110px;
  top: 80px;
  right: 4%;
}

.brand-shapes--audience .brand-shape--blue {
  width: 62px;
  height: 62px;
  top: 130px;
  right: 13%;
}

.brand-shapes--program .brand-shape--orange {
  width: 120px;
  height: 120px;
  top: 80px;
  right: 4%;
}

.brand-shapes--program .brand-shape--red {
  width: 52px;
  height: 52px;
  top: 178px;
  right: 14%;
}

.brand-shapes--program .brand-shape--blue {
  width: 74px;
  height: 74px;
  bottom: 60px;
  left: 3%;
}

.brand-shapes--advantages .brand-shape--blue {
  width: 160px;
  height: 160px;
  right: -70px;
  top: 80px;
}

.brand-shapes--advantages .brand-shape--red {
  width: 70px;
  height: 70px;
  right: 84px;
  top: 170px;
}

.brand-shapes--advantages .brand-shape--orange {
  width: 92px;
  height: 92px;
  left: -34px;
  bottom: 100px;
}

.brand-shapes--about .brand-shape--blue {
  width: 110px;
  height: 110px;
  right: 7%;
  bottom: 90px;
}

.brand-shapes--about .brand-shape--orange {
  width: 58px;
  height: 58px;
  right: 15%;
  bottom: 190px;
}

.brand-shapes--final .brand-shape--red {
  width: 120px;
  height: 120px;
  top: 82px;
  left: -45px;
}

.brand-shapes--final .brand-shape--orange {
  width: 70px;
  height: 70px;
  top: 150px;
  left: 90px;
}

.brand-shapes--final .brand-shape--blue {
  width: 160px;
  height: 160px;
  right: -70px;
  bottom: 80px;
}

.btn,
.header__cta,
.branch-link,
.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover,
.header__cta:hover,
.branch-link:hover,
.carousel-btn:hover {
  transform: translateY(-2px);
}

.btn--primary,
.header__cta {
  color: var(--neutral-white);
  background: linear-gradient(135deg, var(--brand-light-blue), var(--brand-blue));
  box-shadow: var(--shadow-blue);
}

.btn--primary:hover,
.header__cta:hover {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
}

.btn--secondary {
  color: var(--brand-blue);
  background: var(--neutral-white);
  border-color: var(--border-blue);
  box-shadow: 0 10px 24px rgba(13, 35, 84, 0.06);
}

.btn--secondary:hover {
  color: var(--neutral-white);
  background: var(--brand-blue);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(247, 248, 250, 0.94);
  border-bottom: 1px solid rgba(13, 35, 84, 0.08);
  backdrop-filter: blur(18px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 22px;
}

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

.logo {
  min-width: 170px;
}

.logo img {
  width: 150px;
  max-height: 48px;
  height: auto;
  object-fit: contain;
}

.main-nav {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: rgba(13, 35, 84, 0.70);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
}

.main-nav a {
  max-width: 104px;
  text-align: center;
  white-space: normal;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--brand-blue);
}

.header__cta {
  display: none;
  flex: 0 0 auto;
  min-width: 232px;
  max-width: 232px;
  min-height: 52px;
  padding: 12px 20px;
  font-size: 15px;
  line-height: 1.1;
}

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: var(--neutral-white);
  gap: 5px;
}

.burger span {
  width: 22px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: var(--brand-blue-dark);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 76px;
  background:
    radial-gradient(circle at 10% 10%, rgba(41, 120, 241, 0.18), transparent 34%),
    radial-gradient(circle at 92% 14%, rgba(222, 0, 0, 0.10), transparent 30%),
    linear-gradient(180deg, #FFFFFF 0%, #F7F8FA 100%);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 150px;
  left: -10%;
  width: 39%;
  height: 270px;
  background: linear-gradient(135deg, rgba(41, 120, 241, 0.12), rgba(25, 73, 175, 0.04));
  border-radius: 42px;
  transform: skewX(-12deg);
  opacity: 0.72;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 34px;
  align-items: start;
}

.hero__content {
  min-width: 0;
}

.hero .section-label {
  position: relative;
  z-index: 3;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(41, 120, 241, 0.20);
  box-shadow: 0 10px 26px rgba(13, 35, 84, 0.07);
}

.hero h1 {
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero__subtitle {
  max-width: 760px;
  margin-bottom: 30px;
  color: var(--neutral-muted);
  font-family: var(--font-subtitle);
  font-size: 20px;
}

.hero__facts {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  align-items: stretch;
}

.fact-card {
  position: relative;
  overflow: hidden;
  min-height: auto;
  padding: 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.fact-card::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--brand-red);
  opacity: 0.12;
  transform: rotate(14deg);
}

.fact-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-blue);
  font-size: 18px;
  font-weight: 900;
}

.fact-card span {
  color: var(--neutral-muted);
  font-size: 15px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero__actions .btn {
  white-space: normal;
}

.hero__form-card {
  position: relative;
  align-self: start;
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(41, 120, 241, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  overflow-wrap: break-word;
}

.hero__form-card::before {
  display: none;
}

.hero__form-card h2 {
  margin-bottom: 18px;
  font-size: 30px;
}

.request-form {
  display: grid;
  gap: 14px;
}

.request-form label {
  display: grid;
  gap: 7px;
}

.request-form label span {
  color: var(--brand-blue-dark);
  font-size: 14px;
  font-weight: 850;
}

.request-form input,
.request-form select {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  color: var(--neutral-text);
  border: 1px solid rgba(13, 35, 84, 0.14);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  outline: none;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.request-form input:focus,
.request-form select:focus {
  border-color: var(--brand-light-blue);
  background: var(--neutral-white);
  box-shadow: 0 0 0 4px rgba(41, 120, 241, 0.14);
}

.form-policy {
  color: var(--neutral-muted);
  font-size: 13px;
}

.form-policy a {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-error {
  padding: 16px;
  color: #8b1f25;
  border: 1px solid var(--border-red);
  border-radius: var(--radius-md);
  background: rgba(231, 58, 83, 0.08);
  font-size: 14px;
}

.form-error__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.form-error__actions a {
  padding: 9px 12px;
  color: var(--neutral-white);
  border-radius: 999px;
  background: var(--brand-red);
  font-weight: 800;
}

.cards-grid {
  display: grid;
  gap: 16px;
  margin-top: 0;
}

.cards-grid > *,
.steps-list > *,
.format-highlights > *,
.stats-grid > *,
.faq-list > * {
  min-width: 0;
}

.info-card,
.step-card,
.review-card,
.teacher-card,
.story-card,
.stat-card,
.highlight-card,
.support-card,
.success-map-card,
.yandex-review-card {
  min-width: 0;
  border: 1px solid var(--border-light);
  background: var(--neutral-white);
  box-shadow: var(--shadow-card);
  overflow-wrap: break-word;
}

.info-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 24px;
  border-radius: var(--radius-md);
}

.info-card::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--brand-light-blue);
  opacity: 0.12;
  transform: rotate(12deg);
}

.info-card h3 {
  color: var(--brand-blue);
}

.info-card p,
.step-card p {
  color: var(--neutral-muted);
}

.info-card--accent {
  border-color: rgba(242, 143, 34, 0.24);
  background:
    linear-gradient(135deg, rgba(242, 143, 34, 0.10), rgba(255, 255, 255, 0.95));
}

.info-card--accent::before {
  background: var(--brand-orange);
  opacity: 0.26;
}

.audience,
.process,
.formats,
.teachers,
.faq {
  background: var(--neutral-white);
}

.results,
.program,
.video-section,
.route,
.advantages,
.reviews,
.stories,
.about {
  background: var(--neutral-bg);
}

.results .info-card {
  padding: 26px 28px;
}

.results .info-card::before {
  display: none;
}

.results .info-card h3 {
  max-width: 100%;
  padding-right: 0;
  line-height: 1.08;
}

.steps-list {
  display: grid;
  gap: 16px;
}

.step-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-md);
}

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--neutral-white);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-light-blue), var(--brand-blue));
  font-weight: 900;
  transform: rotate(-6deg);
  box-shadow: 0 10px 20px rgba(41, 120, 241, 0.20);
}

.step-card h3 {
  color: var(--brand-blue-dark);
}

.process-support {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.support-card {
  position: relative;
  padding: 24px 24px 24px 64px;
  border-color: rgba(41, 120, 241, 0.24);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(41, 120, 241, 0.10), #FFFFFF);
}

.support-card::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 24px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--brand-red);
  transform: rotate(14deg);
  box-shadow: 0 0 0 8px rgba(222, 0, 0, 0.08);
}

.support-card h3 {
  margin-bottom: 8px;
  color: var(--brand-blue);
  font-size: 21px;
}

.support-card p {
  color: var(--neutral-muted);
}

.video-section {
  position: relative;
  overflow: hidden;
  padding: 30px 0 82px;
}

.program + .video-section {
  margin-top: -24px;
}

.video-card {
  position: relative;
  width: min(100%, 860px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background: var(--brand-blue-dark);
  box-shadow: 0 22px 55px rgba(13, 35, 84, 0.12);
}

.video-card__media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--brand-blue-dark);
}

.video-card--custom::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(13, 35, 84, 0.08), rgba(13, 35, 84, 0.28));
  opacity: 1;
  transition: opacity 0.24s ease;
}

.video-card--custom.is-playing::after {
  opacity: 0;
}

.video-play-btn {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(41, 120, 241, 0.98), rgba(25, 73, 175, 0.98));
  box-shadow:
    0 18px 44px rgba(13, 35, 84, 0.28),
    0 0 0 12px rgba(255, 255, 255, 0.18);
  transform: translate(-50%, -50%);
  transition:
    transform 0.22s ease,
    opacity 0.22s ease,
    visibility 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background:
    linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  box-shadow:
    0 22px 52px rgba(13, 35, 84, 0.34),
    0 0 0 14px rgba(255, 255, 255, 0.22);
}

.video-play-btn__icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 25px solid #FFFFFF;
}

.video-card--custom.is-playing .video-play-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
}

.stats-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 26px 18px;
  border-radius: var(--radius-md);
  text-align: center;
  background:
    radial-gradient(circle at 20% 18%, rgba(41, 120, 241, 0.14), transparent 42%),
    #FFFFFF;
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--brand-orange);
  opacity: 0.28;
  transform: rotate(14deg);
}

.stat-card strong {
  display: block;
  color: var(--brand-blue);
  font-family: var(--font-title);
  font-size: clamp(34px, 8vw, 58px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat-card p {
  margin-top: 8px;
  color: var(--neutral-muted);
  font-weight: 850;
}

.teachers .section-subtitle {
  margin-bottom: 0;
}

.teachers .marquee-carousel {
  margin-top: 34px;
}

.marquee-carousel {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  margin-top: 28px;
}

.marquee-carousel__track {
  display: flex;
  align-items: stretch;
  width: max-content;
  max-width: none;
  gap: 16px;
  padding: 0 var(--container-padding) 12px;
}

.marquee-carousel.is-ready .marquee-carousel__track {
  animation: marquee var(--marquee-duration, 44s) linear infinite;
}

.marquee-carousel.is-ready:hover .marquee-carousel__track {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.teacher-card,
.story-card {
  flex: 0 0 auto;
}

.teacher-card {
  display: flex;
  flex-direction: column;
  width: min(82vw, 320px);
  height: auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--neutral-white);
}

.teacher-card__photo {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f2f4f8;
}

.teacher-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  user-select: none;
  -webkit-user-drag: none;
}

.teacher-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
}

.teacher-card__content h3 {
  min-height: 72px;
  margin-bottom: 12px;
  color: var(--brand-blue);
  overflow-wrap: break-word;
}

.teacher-card__content p {
  margin: 0 0 8px;
  color: var(--neutral-muted);
  font-size: 14px;
}

.teacher-card__content p:last-child {
  margin-bottom: 0;
}

.marquee-carousel.is-manual,
.marquee-carousel.is-manual-mobile {
  overflow: hidden;
  padding-bottom: 12px;
  touch-action: pan-y;
  cursor: grab;
}

.marquee-carousel.is-manual.is-dragging,
.marquee-carousel.is-manual-mobile.is-dragging {
  cursor: grabbing;
}

.marquee-carousel.is-manual .marquee-carousel__track,
.marquee-carousel.is-manual-mobile .marquee-carousel__track {
  width: max-content;
  max-width: none;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  animation: none !important;
  transition: transform 0.32s ease;
  will-change: transform;
  user-select: none;
}

.mobile-carousel-controls {
  display: none;
}

.marquee-carousel.is-manual .mobile-carousel-controls,
.marquee-carousel.is-manual-mobile .mobile-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100% - var(--container-padding) * 2, var(--container));
  margin: 22px auto 0;
}

.mobile-carousel-controls .carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  min-height: 52px;
  padding: 0;
  border: 1px solid rgba(41, 120, 241, 0.24);
  border-radius: 50%;
  background: var(--brand-light-blue);
  color: var(--neutral-white);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 26px rgba(13, 35, 84, 0.14);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
}

.mobile-carousel-controls .carousel-btn:hover {
  transform: translateY(-2px);
  background: var(--brand-blue);
}

.mobile-carousel-controls .carousel-btn:disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 680px) {
  .marquee-carousel.is-manual .teacher-card,
  .marquee-carousel.is-manual .story-card,
  .marquee-carousel.is-manual-mobile .teacher-card,
  .marquee-carousel.is-manual-mobile .story-card {
    width: calc(100vw - var(--container-padding) * 2);
    max-width: 420px;
  }

  .teacher-card__photo {
    flex-basis: auto;
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .teacher-card__content h3 {
    min-height: 64px;
  }

  .marquee-carousel.is-manual .mobile-carousel-controls,
  .marquee-carousel.is-manual-mobile .mobile-carousel-controls {
    margin-top: 18px;
  }

  .mobile-carousel-controls .carousel-btn {
    width: 48px;
    height: 48px;
    min-height: 48px;
    font-size: 23px;
  }
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 22px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--neutral-bg);
}

.faq-item h3 {
  margin-bottom: 8px;
  font-size: 20px;
  color: var(--brand-blue);
}

.faq-item p {
  color: var(--neutral-muted);
}

.about__inner {
  display: grid;
  gap: 28px;
  align-items: stretch;
}

.about__content p {
  max-width: 780px;
  color: var(--neutral-muted);
  font-size: 17px;
}

.about__media {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 320px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  background: #f2f4f8;
}

.about__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
}

.final-request {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(41, 120, 241, 0.18), transparent 36%),
    radial-gradient(circle at 90% 30%, rgba(222, 0, 0, 0.10), transparent 34%),
    linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
}

.final-request .section-label {
  color: var(--neutral-white);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.final-request .section-label::before {
  background: var(--brand-orange);
}

.final-request h2,
.final-request__content p {
  color: var(--neutral-white);
}

.final-request__inner {
  display: grid;
  gap: 28px;
  align-items: start;
}

.final-request__content p {
  font-size: 18px;
}

.final-request .request-form {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
  overflow-wrap: break-word;
}

.site-footer {
  padding: 58px 0 24px;
  color: rgba(255, 255, 255, 0.84);
  background: #0D2354;
}

.footer__inner {
  display: grid;
  gap: 28px;
}

.footer__brand p {
  max-width: 360px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-logo {
  width: fit-content;
  padding: 10px 12px;
  border-radius: 18px;
  background: var(--neutral-white);
}

.footer-logo img {
  width: 154px;
  height: auto;
  object-fit: contain;
}

.footer__column {
  display: grid;
  gap: 9px;
  align-content: start;
}

.footer__column h3 {
  margin-bottom: 6px;
  color: var(--neutral-white);
  font-size: 18px;
}

.footer__column a,
.footer__column span {
  color: rgba(255, 255, 255, 0.70);
  transition: color 0.2s ease;
}

.footer__column a:hover {
  color: var(--neutral-white);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer__bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.60);
}

.developer-link {
  position: relative;
}

.developer-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--neutral-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.developer-link a::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--brand-orange);
  transform: rotate(12deg);
}

.photo-strip,
.photo-wide {
  position: relative;
  overflow: hidden;
  background: var(--neutral-bg);
}

.photo-strip {
  padding: 42px 0 34px;
  background:
    radial-gradient(circle at 8% 12%, rgba(41, 120, 241, 0.08), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(242, 143, 34, 0.08), transparent 30%),
    var(--neutral-bg);
}

.photo-strip .container,
.photo-wide .container {
  position: relative;
  z-index: 2;
}

.photo-strip__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.1fr;
  gap: 18px;
  align-items: stretch;
}

.photo-strip__grid img {
  display: block;
  width: 100%;
  height: 290px;
  object-fit: cover;
  background: #f2f4f8;
  border-radius: 30px;
  box-shadow: 0 18px 44px rgba(13, 35, 84, 0.12);
}

.photo-strip__grid img:nth-child(1) {
  object-position: center center;
}

.photo-strip__grid img:nth-child(2) {
  height: 330px;
  object-position: center 35%;
  transform: translateY(-20px);
}

.photo-strip__grid img:nth-child(3) {
  object-position: center center;
}

.photo-wide {
  padding: 40px 0 52px;
  background:
    linear-gradient(180deg, #FFFFFF 0%, var(--neutral-bg) 100%);
}

.photo-wide__image {
  position: relative;
  overflow: hidden;
  width: min(100%, 960px);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 36px;
  background: #f2f4f8;
  box-shadow: 0 24px 60px rgba(13, 35, 84, 0.14);
}

.photo-wide__image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(13, 35, 84, 0.02), rgba(13, 35, 84, 0.10));
}

.photo-wide__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.branches-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(41, 120, 241, 0.08), transparent 32%),
    radial-gradient(circle at 92% 18%, rgba(242, 143, 34, 0.08), transparent 30%),
    var(--neutral-bg);
}

.branches-section .section-subtitle {
  margin-bottom: 32px;
}

.branches-card {
  position: relative;
  overflow: hidden;
  padding: 42px;
  border: 1px solid rgba(222, 0, 0, 0.16);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(41, 120, 241, 0.09), rgba(242, 143, 34, 0.10)),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 22px 55px rgba(13, 35, 84, 0.10);
}

.branches-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  border: 9px solid rgba(242, 143, 34, 0.14);
  border-radius: 50%;
}

.branches-card h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 28px;
  font-size: 26px;
  color: var(--neutral-text);
}

.branches-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.branch-item {
  display: grid;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid rgba(222, 0, 0, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(13, 35, 84, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.branch-item strong {
  color: var(--neutral-text);
  font-size: 17px;
  line-height: 1.25;
}

.branch-item span {
  color: var(--neutral-muted);
  font-size: 13px;
  font-weight: 800;
}

.branch-item:hover {
  transform: translateY(-3px);
  border-color: rgba(41, 120, 241, 0.26);
  box-shadow: 0 18px 36px rgba(13, 35, 84, 0.10);
}

.branches-card__action {
  position: relative;
  z-index: 2;
  margin-top: 28px;
}

.service-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(41, 120, 241, 0.14), transparent 34%),
    radial-gradient(circle at 90% 16%, rgba(222, 0, 0, 0.08), transparent 30%),
    linear-gradient(180deg, #FFFFFF 0%, #F7F8FA 100%);
}

.service-screen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 18px;
  overflow: hidden;
}

.service-card {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  padding: 42px;
  border: 1px solid rgba(41, 120, 241, 0.14);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 55px rgba(13, 35, 84, 0.12);
}

.service-card__logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  max-width: 190px;
  margin-bottom: 30px;
}

.service-card__logo img {
  display: block;
  width: 100%;
  max-width: 190px;
  height: auto;
  object-fit: contain;
}

.service-card h1 {
  max-width: 660px;
  margin: 0 0 18px;
  color: var(--neutral-text);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.service-card__text {
  max-width: 670px;
  margin: 0 0 30px;
  color: var(--neutral-muted);
  font-size: 18px;
  line-height: 1.55;
}

.service-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.service-card__contacts {
  padding-top: 22px;
  border-top: 1px solid rgba(13, 35, 84, 0.10);
}

.service-card__contacts p {
  margin: 0 0 12px;
  color: var(--neutral-muted);
  font-size: 15px;
  line-height: 1.4;
}

.service-card__contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-card__contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(41, 120, 241, 0.18);
  border-radius: 999px;
  background: rgba(41, 120, 241, 0.07);
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.service-card__contact-links a::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--brand-red);
}

.service-card__contact-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(41, 120, 241, 0.34);
  background: var(--brand-blue);
  color: #FFFFFF;
}

.service-card__contact-links a:hover::before {
  background: #FFFFFF;
}

.yandex-reviews-carousel {
  position: relative;
  margin-top: 30px;
}

.yandex-reviews-carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.yandex-reviews-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.yandex-reviews-carousel__track {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.yandex-review-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  padding: 24px;
  border-radius: var(--radius-lg);
  scroll-snap-align: start;
  overflow: hidden;
}

.yandex-review-card__head {
  margin-bottom: 18px;
}

.yandex-review-card__head span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--neutral-muted);
  font-size: 14px;
  font-weight: 800;
}

.yandex-review-card__head h3 {
  margin-bottom: 8px;
  color: var(--brand-blue-dark);
  font-size: 24px;
  line-height: 1.1;
}

.yandex-review-card__head p {
  margin: 0;
  color: var(--neutral-muted);
  font-size: 14px;
}

.yandex-review-widget {
  position: relative;
  display: grid;
  gap: 14px;
}

.yandex-review-widget iframe {
  display: block;
  width: 100%;
  height: 680px;
  border: 1px solid rgba(13, 35, 84, 0.10);
  border-radius: 20px;
  background: #fff;
}

.yandex-review-widget a {
  display: inline-flex;
  width: fit-content;
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.yandex-reviews-carousel__btn {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(41, 120, 241, 0.24);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-blue-dark);
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(13, 35, 84, 0.12);
  transform: translateY(-50%);
}

.yandex-reviews-carousel__btn--prev {
  left: -18px;
}

.yandex-reviews-carousel__btn--next {
  right: -18px;
}

.yandex-reviews-carousel__btn:hover {
  background: var(--brand-blue);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .info-card,
  .fact-card,
  .step-card,
  .support-card,
  .stat-card,
  .teacher-card,
  .story-card,
  .yandex-review-card,
  .branch-item,
  .photo-strip__grid img,
  .photo-wide__image,
  .photo-carousel__track img,
  .video-card {
    transition:
      transform 0.22s ease,
      box-shadow 0.22s ease,
      border-color 0.22s ease,
      background 0.22s ease,
      color 0.22s ease;
  }

  .info-card::before,
  .fact-card::after,
  .stat-card::after,
  .support-card::before {
    transition:
      background 0.22s ease,
      opacity 0.22s ease,
      transform 0.22s ease,
      box-shadow 0.22s ease;
  }

  .info-card:hover,
  .fact-card:hover,
  .step-card:hover,
  .support-card:hover,
  .stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(41, 120, 241, 0.30);
    background:
      radial-gradient(circle at 92% 12%, rgba(222, 0, 0, 0.08), transparent 26%),
      linear-gradient(135deg, rgba(41, 120, 241, 0.08), rgba(255, 255, 255, 0.98) 48%, rgba(242, 143, 34, 0.07));
    box-shadow: 0 22px 48px rgba(13, 35, 84, 0.13);
  }

  .info-card:hover::before,
  .fact-card:hover::after,
  .stat-card:hover::after,
  .support-card:hover::before {
    background: var(--brand-red);
    opacity: 1;
    transform: rotate(12deg) scale(1.08);
    box-shadow: 0 10px 22px rgba(222, 0, 0, 0.22);
  }

  .teacher-card:hover,
  .story-card:hover,
  .yandex-review-card:hover,
  .branch-item:hover {
    transform: translateY(-5px);
    border-color: rgba(41, 120, 241, 0.24);
    box-shadow: 0 22px 48px rgba(13, 35, 84, 0.12);
  }

  .photo-strip__grid img:hover,
  .photo-wide__image:hover,
  .photo-carousel__track img:hover,
  .video-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 24px 56px rgba(13, 35, 84, 0.14);
  }

  .btn:hover,
  .header__cta:hover,
  .service-card__contact-links a:hover {
    transform: translateY(-2px);
  }

  .branch-item,
  .story-card__media--video-link,
  .yandex-review-card a,
  .btn,
  .header__cta,
  .main-nav a,
  .footer__column a,
  .developer-link a {
    cursor: pointer;
  }
}

@media (hover: none) {
  .fact-card,
  .info-card,
  .step-card,
  .support-card,
  .stat-card,
  .teacher-card,
  .story-card,
  .yandex-review-card,
  .branch-item,
  .photo-strip__grid img,
  .photo-wide__image,
  .photo-carousel__track img,
  .video-card {
    transform: none;
  }
}

@media (min-width: 560px) {
  :root {
    --container-padding: 24px;
  }

  .hero__facts,
  .format-highlights,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 760px) {
  .route__head {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
}

@media (min-width: 840px) {
  .section {
    padding: 96px 0;
  }

  .hero {
    padding: 68px 0 86px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1.24fr) minmax(340px, 0.76fr);
    gap: 36px;
    align-items: start;
  }

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

  .cards-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .teacher-card {
    width: 320px;
  }

  .story-card {
    width: 500px;
  }

  .about__inner,
  .final-request__inner {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.8fr);
  }

  .about__media {
    align-self: stretch;
    height: 100%;
    min-height: 520px;
  }

  .footer__inner {
    grid-template-columns: 1.35fr 0.8fr 0.8fr 1fr 1.2fr;
  }
}

@media (min-width: 1060px) {
  .main-nav {
    display: flex;
  }

  .header__cta {
    display: inline-flex;
  }

  .burger {
    display: none;
  }
}

@media (max-width: 1180px) and (min-width: 1060px) {
  .header__inner {
    gap: 14px;
  }

  .main-nav {
    gap: 14px;
    font-size: 12px;
  }

  .main-nav a {
    max-width: 88px;
  }

  .header__cta {
    min-width: 208px;
    max-width: 208px;
    font-size: 14px;
  }

  .logo {
    min-width: 154px;
  }

  .logo img {
    width: 138px;
  }
}

@media (max-width: 1059px) {
  .logo {
    min-width: auto;
  }

  .header__inner {
    min-height: 72px;
  }

  .logo img {
    width: 150px;
  }

  body.menu-open {
    overflow: hidden;
  }

  body.menu-open .site-header {
    background: rgba(247, 248, 250, 0.98);
  }

  body.menu-open .main-nav {
    position: fixed;
    z-index: 99;
    top: 72px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 18px;
    background: rgba(247, 248, 250, 0.98);
    border-bottom: 1px solid rgba(13, 35, 84, 0.10);
    box-shadow: 0 18px 36px rgba(13, 35, 84, 0.10);
  }

  body.menu-open .main-nav a {
    max-width: none;
    width: 100%;
    padding: 14px 16px;
    text-align: left;
    color: var(--brand-blue-dark);
    border-bottom: 1px solid rgba(13, 35, 84, 0.08);
  }

  body.menu-open .main-nav a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 980px) {
  .branches-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .yandex-review-card {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@media (max-width: 839px) {
  .section {
    padding: 68px 0;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .hero::before {
    top: 132px;
    left: -22%;
    width: 78%;
    height: 230px;
    opacity: 0.45;
  }

  .hero h1 {
    letter-spacing: -0.055em;
    line-height: 1.04;
  }

  .hero__inner,
  .about__inner,
  .final-request__inner,
  .route__head {
    grid-template-columns: 1fr;
  }

  .hero__facts,
  .cards-grid,
  .steps-list,
  .format-highlights,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section-subtitle {
    margin-bottom: 26px;
  }

  .success-map-card {
    display: none;
  }

  .about__media {
    aspect-ratio: 4 / 3;
    min-height: 240px;
  }

  .about__media img {
    height: 100%;
  }

  .video-section {
    padding: 20px 0 62px;
  }

  .program + .video-section {
    margin-top: -18px;
  }

  .video-card {
    width: 100%;
    border-radius: 24px;
  }

  .video-play-btn {
    width: 74px;
    height: 74px;
  }

  .video-play-btn__icon {
    margin-left: 6px;
    border-top-width: 14px;
    border-bottom-width: 14px;
    border-left-width: 22px;
  }
}

@media (max-width: 820px) {
  .photo-strip {
    padding: 32px 0 28px;
  }

  .photo-strip__grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 12px;
  }

  .photo-strip__grid::-webkit-scrollbar {
    display: none;
  }

  .photo-strip__grid img {
    flex: 0 0 78%;
    height: 240px;
    border-radius: 24px;
    scroll-snap-align: start;
    transform: none;
  }

  .photo-strip__grid img:nth-child(2) {
    height: 240px;
    transform: none;
  }

  .photo-wide {
    padding: 30px 0 42px;
  }

  .photo-wide__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 28px;
  }
}

@media (max-width: 720px) {
  .service-screen {
    align-items: flex-start;
    padding: 28px 14px;
  }

  .service-card {
    padding: 28px 20px;
    border-radius: 28px;
  }

  .service-card__logo {
    max-width: 150px;
    margin-bottom: 24px;
  }

  .service-card h1 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .service-card__text {
    font-size: 16px;
  }

  .service-card__actions {
    flex-direction: column;
  }

  .service-card__actions .btn {
    width: 100%;
  }

  .service-card__contact-links {
    flex-direction: column;
  }

  .service-card__contact-links a {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .brand-shape {
    opacity: 0.05;
  }

  .section-head {
    margin-bottom: 26px;
  }

  .section-subtitle {
    margin-bottom: 26px;
  }

  .section-cta {
    margin-top: 24px;
  }

  .teachers .marquee-carousel {
    margin-top: 28px;
  }

  .yandex-reviews-carousel {
    margin-top: 24px;
  }

  .yandex-reviews-carousel__track {
    gap: 14px;
  }

  .yandex-review-card {
    flex: 0 0 88%;
    padding: 18px;
    border-radius: 24px;
  }

  .yandex-review-card__head h3 {
    font-size: 20px;
  }

  .yandex-review-widget iframe {
    height: 680px;
    border-radius: 18px;
  }

  .yandex-reviews-carousel__btn {
    display: none;
  }

  .yandex-review-widget a {
    font-size: 13px;
  }
}

@media (max-width: 620px) {
  .branches-card {
    padding: 24px 18px;
    border-radius: 26px;
  }

  .branches-card h3 {
    margin-bottom: 18px;
    font-size: 22px;
  }

  .branches-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .branch-item {
    padding: 18px;
    border-radius: 16px;
  }

  .branches-card__action .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .photo-strip,
  .photo-wide,
  .photo-carousel {
    padding: 24px 0;
  }

  .photo-strip__grid img {
    flex-basis: 86%;
    height: 220px;
    border-radius: 22px;
  }

  .photo-strip__grid img:nth-child(2) {
    height: 220px;
  }

  .photo-wide__image {
    aspect-ratio: 4 / 3;
    border-radius: 24px;
  }

  .video-section {
    padding: 18px 0 54px;
  }

  .video-card {
    border-radius: 20px;
  }

  .video-play-btn {
    width: 62px;
    height: 62px;
    box-shadow:
      0 14px 32px rgba(13, 35, 84, 0.24),
      0 0 0 9px rgba(255, 255, 255, 0.16);
  }

  .video-play-btn__icon {
    margin-left: 5px;
    border-top-width: 12px;
    border-bottom-width: 12px;
    border-left-width: 18px;
  }
}

@media (max-width: 420px) {
  :root {
    --container-padding: 16px;
  }

  html {
    scroll-padding-top: 78px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  h1 {
    font-size: 31px;
    line-height: 1.08;
  }

  h2 {
    font-size: 27px;
    line-height: 1.1;
  }

  h3 {
    font-size: 19px;
  }

  .section {
    padding: 66px 0;
  }

  .section-label {
    padding: 7px 12px;
    font-size: 12px;
  }

  .hero {
    padding: 46px 0 62px;
  }

  .hero::before {
    top: 122px;
    left: -30%;
    width: 92%;
    height: 210px;
  }

  .hero .section-label {
    margin-bottom: 18px;
  }

  .hero h1 {
    letter-spacing: -0.045em;
  }

  .hero__subtitle,
  .section-subtitle,
  .final-request__content p {
    font-size: 15px;
  }

  .hero__actions,
  .form-error__actions {
    flex-direction: column;
  }

  .btn,
  .header__cta {
    width: 100%;
    min-height: 48px;
    padding: 13px 18px;
    font-size: 14px;
  }

  .hero__form-card,
  .final-request .request-form,
  .info-card,
  .step-card,
  .review-card,
  .story-card__content,
  .branches,
  .support-card,
  .success-map-card {
    padding: 16px;
    border-radius: 20px;
  }

  .results .info-card {
    padding: 18px;
  }

  .support-card {
    padding-left: 48px;
  }

  .support-card::before {
    top: 20px;
    left: 16px;
  }

  .teacher-card {
    width: 82vw;
  }

  .story-card {
    width: 88vw;
  }

  .yandex-review-card {
    flex-basis: 92%;
    padding: 16px;
  }

  .yandex-review-widget iframe {
    height: 660px;
  }
}

.photo-carousel-section {
  padding: 58px 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(41, 120, 241, 0.08), transparent 34%),
    radial-gradient(circle at 92% 10%, rgba(242, 143, 34, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  overflow: hidden;
}

.photo-carousel {
  position: relative;
  padding: 0 68px;
}

.photo-carousel__viewport {
  overflow: hidden;
  width: 100%;
  border-radius: 30px;
  touch-action: pan-y;
  cursor: grab;
}

.photo-carousel__viewport:active {
  cursor: grabbing;
}

.photo-carousel__track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s ease;
  will-change: transform;
  user-select: none;
}

.photo-carousel__track.is-dragging {
  transition: none;
}

.photo-carousel__slide {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(13, 35, 84, 0.10);
}

.photo-carousel__slide img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.photo-carousel__btn {
  position: absolute;
  z-index: 10;
  top: 50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #2978f1;
  color: #ffffff;
  font-family: inherit;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(41, 120, 241, 0.28);
  transform: translateY(-50%);
  appearance: none;
  -webkit-appearance: none;
}

.photo-carousel__btn:hover {
  background: #1949af;
  box-shadow: 0 18px 40px rgba(41, 120, 241, 0.34);
}

.photo-carousel__btn--prev {
  left: 0;
}

.photo-carousel__btn--next {
  right: 0;
}

.photo-carousel__btn:disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 900px) {
  .photo-carousel-section {
    padding: 42px 0;
  }

  .photo-carousel {
    padding: 0 54px;
  }

  .photo-carousel__track {
    gap: 16px;
  }

  .photo-carousel__slide {
    flex: 0 0 calc((100% - 16px) / 2);
    border-radius: 22px;
  }

  .photo-carousel__slide img {
    height: 240px;
  }

  .photo-carousel__btn {
    width: 48px;
    height: 48px;
    font-size: 26px;
  }
}

@media (max-width: 560px) {
  .photo-carousel {
    padding: 0 44px;
  }

  .photo-carousel__viewport {
    border-radius: 24px;
  }

  .photo-carousel__track {
    gap: 0;
  }

  .photo-carousel__slide {
    flex: 0 0 100%;
    border-radius: 22px;
  }

  .photo-carousel__slide img {
    height: 220px;
  }

  .photo-carousel__btn {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }
}
/* Honeypot-поле против ботов: держим вне экрана, не display:none (боты это распознают) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
