/* =========================
   INTER-LANG CHINESE LANDING
   Full standalone CSS for new Beget project
   File: css/style.css
   ========================= */

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

  --chinese-red: #C81E1E;
  --chinese-red-dark: #8F1515;
  --chinese-red-soft: rgba(200, 30, 30, 0.10);
  --chinese-gold: #D8A13A;
  --chinese-gold-soft: rgba(216, 161, 58, 0.14);
  --chinese-ink: #6F1D1D;

  --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(200, 30, 30, 0.18);
  --border-gold: rgba(216, 161, 58, 0.26);

  --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);
  --shadow-red: 0 18px 40px rgba(200, 30, 30, 0.16);

  --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;
}

/* =========================
   Reset
   ========================= */

*,
*::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;
}

body.menu-open {
  overflow: hidden;
}

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;
}

/* =========================
   Base layout
   ========================= */

.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-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 14px;
  color: var(--chinese-ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(200, 30, 30, 0.075), rgba(216, 161, 58, 0.10));
  border: 1px solid rgba(200, 30, 30, 0.14);
}

.section-label::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chinese-red);
  box-shadow: 0 0 0 4px rgba(200, 30, 30, 0.10);
}

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: 950;
}

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

h1 {
  max-width: 880px;
  margin-bottom: 22px;
  font-size: clamp(36px, 6.3vw, 70px);
}

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

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

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

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

.section-head {
  position: relative;
}

.section-head--with-mascot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}

.mascot {
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(13, 35, 84, 0.12));
}

/* =========================
   Decorative brand shapes
   ========================= */

.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(--chinese-red); }
.brand-shape--orange { background: var(--chinese-gold); }

.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;
}

/* =========================
   Buttons
   ========================= */

.btn,
.header__cta,
.carousel-btn {
  position: relative;
  overflow: hidden;
  overflow-wrap: anywhere;
  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,
.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);
}

/* =========================
   Header
   ========================= */

.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
   ========================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 76px;
  background:
    radial-gradient(circle at 8% 8%, rgba(41, 120, 241, 0.16), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(200, 30, 30, 0.13), transparent 30%),
    radial-gradient(circle at 74% 72%, rgba(216, 161, 58, 0.13), transparent 34%),
    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::after {
  content: "中文";
  position: absolute;
  z-index: 0;
  right: max(18px, calc((100vw - var(--container)) / 2));
  bottom: 30px;
  color: rgba(200, 30, 30, 0.055);
  font-family: var(--font-title);
  font-size: clamp(86px, 16vw, 190px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.hero__content,
.hero__form-card {
  position: relative;
  z-index: 2;
}

.hero__subtitle {
  max-width: 790px;
  margin: 0 0 28px;
  color: var(--neutral-muted);
  font-family: var(--font-subtitle);
  font-size: 19px;
}

.hero__facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 28px;
}

.fact-card {
  position: relative;
  min-height: 118px;
  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;
  right: 18px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(200, 30, 30, 0.16);
  transform: rotate(12deg);
  opacity: 0.42;
}

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

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

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 22px;
}

.hero__note {
  max-width: 740px;
  color: var(--neutral-muted);
  font-size: 14px;
}

.hero__form-card {
  padding: 24px;
  border: 1px solid rgba(41, 120, 241, 0.16);
  border-radius: var(--radius-lg);
  background: var(--neutral-white);
  box-shadow: var(--shadow-soft);
}

.hero__form-card h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 4vw, 36px);
}

.hero__form-card > p {
  margin-bottom: 18px;
  color: var(--neutral-muted);
}

.hero__form-mascot {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: -6px 0 18px;
  padding: 14px;
  border: 1px solid var(--border-gold);
  border-radius: 22px;
  background:
    radial-gradient(circle at 0% 0%, rgba(216, 161, 58, 0.20), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(200, 30, 30, 0.045));
}

.hero__form-mascot .mascot {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
}

.hero__form-mascot p {
  margin: 0;
  color: var(--brand-blue-dark);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
}

/* =========================
   Forms
   ========================= */

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

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

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

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

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

.request-form button {
  width: 100%;
}

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

.form-policy a {
  color: var(--brand-blue);
  font-weight: 800;
}

.form-error {
  padding: 14px;
  color: var(--brand-blue-dark);
  border-radius: 16px;
  background: rgba(200, 30, 30, 0.08);
  border: 1px solid rgba(200, 30, 30, 0.18);
  font-size: 13px;
}

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

.form-error__actions a {
  color: var(--brand-blue);
  font-weight: 800;
}

/* =========================
   Cards
   ========================= */

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.info-card,
.step-card,
.support-card,
.review-card,
.teacher-card,
.story-card__content,
.faq-item,
.success-map-card,
.branches {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--neutral-white);
  box-shadow: var(--shadow-card);
}

.info-card {
  position: relative;
  min-height: 210px;
  padding: 22px;
}

.info-card::before {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(200, 30, 30, 0.16);
  transform: rotate(12deg);
  opacity: 0.42;
}

.info-card h3 {
  padding-right: 34px;
}

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

.info-card--accent {
  border-color: rgba(216, 161, 58, 0.28);
  background: linear-gradient(135deg, rgba(216, 161, 58, 0.13), rgba(255, 255, 255, 0.96) 52%, rgba(200, 30, 30, 0.055));
}

/* =========================
   Section backgrounds and decorative circles
   ========================= */

.audience,
.program,
.advantages,
.about {
  background: #FFFFFF;
}

.results,
.process,
.formats,
.route,
.teachers,
.reviews,
.stories,
.faq,
.final-request {
  background: var(--neutral-bg);
}

.program::before,
.route::before,
.stories::before,
.faq::before,
.final-request::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(200, 30, 30, 0.08);
  background: repeating-conic-gradient(from 0deg, rgba(216, 161, 58, 0.09) 0deg 10deg, transparent 10deg 20deg);
  opacity: 0.58;
}

.program::before { top: 80px; right: -130px; }
.route::before { left: -150px; bottom: 80px; }
.stories::before { right: -140px; top: 90px; }
.faq::before { left: -150px; top: 80px; }
.final-request::before { right: -130px; bottom: 60px; }

/* =========================
   Process
   ========================= */

.steps-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.step-card {
  position: relative;
  padding: 22px;
}

.step-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  color: var(--neutral-white);
  border-radius: 17px;
  background: linear-gradient(135deg, var(--chinese-red), var(--brand-orange));
  box-shadow: 0 14px 26px rgba(200, 30, 30, 0.18);
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
  transform: rotate(-4deg);
}

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

.process-support {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 22px;
}

.support-card {
  position: relative;
  padding: 24px 24px 24px 64px;
}

.support-card::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 24px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--chinese-gold);
  transform: rotate(12deg);
  opacity: 0.90;
}

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

/* =========================
   Formats and branches
   ========================= */

.format-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.highlight-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--neutral-white);
  box-shadow: var(--shadow-card);
}

.highlight-card strong {
  display: block;
  color: var(--chinese-ink);
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

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

.branches {
  margin-top: 28px;
  padding: 34px;
  border: 1px solid rgba(200, 30, 30, 0.16);
  border-radius: 30px;
  background:
    radial-gradient(circle at 0% 0%, rgba(41, 120, 241, 0.15), transparent 34%),
    radial-gradient(circle at 100% 10%, rgba(216, 161, 58, 0.18), transparent 32%),
    radial-gradient(circle at 90% 95%, rgba(200, 30, 30, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(41, 120, 241, 0.06) 54%, rgba(216, 161, 58, 0.07) 100%);
  box-shadow: 0 18px 46px rgba(13, 35, 84, 0.10);
}

.branches h3 {
  margin-bottom: 22px;
  color: var(--brand-blue-dark);
  font-size: 24px;
  line-height: 1.12;
}

.branches > p:not(.branches__note) {
  display: none;
}

.branches__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}

.branch-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62px;
  width: 100%;
  padding: 17px 20px 26px;
  color: var(--brand-blue-dark);
  border: 1px solid rgba(200, 30, 30, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(13, 35, 84, 0.06);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.2;
  text-align: left;
  overflow-wrap: anywhere;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease, background 0.22s ease;
}

.branch-link::before {
  content: "Яндекс Карты";
  position: absolute;
  left: 20px;
  bottom: 9px;
  color: rgba(13, 35, 84, 0.42);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.branch-link::after {
  content: none !important;
  display: none !important;
}

.branch-link:hover {
  color: var(--neutral-white);
  border-color: rgba(25, 73, 175, 0.34);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  box-shadow: 0 16px 32px rgba(25, 73, 175, 0.18);
  transform: translateY(-2px);
}

.branch-link:hover::before {
  color: rgba(255, 255, 255, 0.68);
}

.branches__note {
  max-width: 850px;
  margin-top: 18px;
  color: rgba(108, 114, 128, 0.88);
  font-size: 13px;
  line-height: 1.45;
}

/* =========================
   Route
   ========================= */

.route__head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 32px;
}

.success-map-card {
  position: relative;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 161, 58, 0.20), transparent 38%),
    linear-gradient(135deg, rgba(41, 120, 241, 0.07), rgba(200, 30, 30, 0.045)),
    var(--neutral-white);
}

.success-map-card .mascot {
  width: 120px;
  height: 120px;
  margin-bottom: 14px;
}

.success-map-card__label {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 7px 12px;
  color: var(--chinese-ink);
  border-radius: 999px;
  background: rgba(200, 30, 30, 0.075);
  font-size: 12px;
  font-weight: 900;
}

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

/* =========================
   Advantages
   ========================= */

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--neutral-white);
  box-shadow: var(--shadow-card);
}

.stat-card strong {
  display: block;
  color: var(--brand-blue);
  font-family: var(--font-title);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

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

/* =========================
   Teachers
   ========================= */

.teachers {
  overflow: hidden;
}

.teachers .container {
  margin-bottom: 42px;
}

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

.marquee-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0 max(18px, calc((100vw - var(--container)) / 2)) 10px;
}

.marquee-carousel__track {
  display: flex;
  align-items: stretch;
  gap: 18px;
  width: max-content;
  will-change: transform;
}

.teacher-card {
  position: relative;
  flex: 0 0 320px;
  overflow: hidden;
  background: var(--neutral-white);
}

.teacher-card__photo {
  position: relative;
  height: 250px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(216, 161, 58, 0.16), transparent 36%),
    linear-gradient(135deg, rgba(41, 120, 241, 0.08), rgba(200, 30, 30, 0.06)),
    #f2f4f8;
}

.teacher-card__photo::before {
  content: "Фото преподавателя";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(13, 35, 84, 0.42);
  font-weight: 850;
  text-align: center;
}

.teacher-card__photo:has(img)::before {
  content: none;
}

.teacher-card__photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-card__content {
  padding: 22px;
}

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

.teacher-card__content strong {
  color: var(--brand-blue-dark);
}

/* =========================
   Reviews
   ========================= */

.reviews-carousel {
  position: relative;
}

.reviews-carousel__viewport {
  overflow: hidden;
  width: 100%;
}

.reviews-carousel__track {
  display: flex;
  gap: 16px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.review-card {
  position: relative;
  flex: 0 0 100%;
  padding: 22px;
}

.review-card__source,
.story-card__type {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  color: var(--chinese-ink);
  border-radius: 999px;
  background: rgba(200, 30, 30, 0.075);
  font-size: 12px;
  font-weight: 900;
}

.review-card__branch {
  color: var(--brand-orange);
  font-weight: 850;
}

.review-card__text {
  color: var(--neutral-muted);
}

.reviews-carousel__controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.carousel-btn {
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  color: var(--brand-blue);
  border-color: rgba(41, 120, 241, 0.18);
  background: var(--neutral-white);
  box-shadow: var(--shadow-card);
}

.reviews__note {
  max-width: 760px;
  margin-top: 18px;
  color: var(--neutral-muted);
  font-size: 13px;
}

/* =========================
   Stories
   ========================= */

.stories {
  overflow: hidden;
}

.stories .container {
  margin-bottom: 42px;
}

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

.story-card {
  position: relative;
  flex: 0 0 430px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--neutral-white);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
}

.story-card__media {
  position: relative;
  height: 250px;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(216, 161, 58, 0.20), transparent 36%),
    radial-gradient(circle at 100% 0%, rgba(200, 30, 30, 0.10), transparent 36%),
    linear-gradient(135deg, rgba(41, 120, 241, 0.08), rgba(216, 161, 58, 0.08)),
    #f2f4f8;
}

.story-card__media::before {
  content: "中文";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(200, 30, 30, 0.16);
  font-family: var(--font-title);
  font-size: 72px;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.story-card__media img,
.story-card__media video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-card__content {
  padding: 22px;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

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

.story-card strong {
  display: block;
  margin-top: 12px;
  color: var(--brand-blue-dark);
}

/* =========================
   FAQ
   ========================= */

.faq-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.faq-item {
  position: relative;
  padding: 22px;
  border-left: 4px solid rgba(200, 30, 30, 0.62);
}

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

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

/* =========================
   About
   ========================= */

.about__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}

.about__content p {
  max-width: 760px;
  color: var(--neutral-muted);
}

.about__content .btn {
  margin-top: 22px;
}

.about__media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  background:
    radial-gradient(circle at 0% 0%, rgba(216, 161, 58, 0.16), transparent 36%),
    linear-gradient(135deg, rgba(41, 120, 241, 0.08), rgba(200, 30, 30, 0.05)),
    #f2f4f8;
}

.about__media::before {
  content: "Фото школы";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(13, 35, 84, 0.42);
  font-weight: 850;
}

.about__media:has(img)::before {
  content: none;
}

.about__media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================
   Final request
   ========================= */

.final-request {
  background:
    radial-gradient(circle at 0% 10%, rgba(200, 30, 30, 0.10), transparent 30%),
    radial-gradient(circle at 100% 20%, rgba(41, 120, 241, 0.13), transparent 32%),
    radial-gradient(circle at 70% 88%, rgba(216, 161, 58, 0.12), transparent 32%),
    var(--neutral-bg);
}

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

.final-request__content p {
  max-width: 700px;
  color: var(--neutral-muted);
  font-size: 17px;
}

.final-request__mascot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0;
  padding: 16px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 161, 58, 0.22), transparent 36%),
    rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-gold);
}

.final-request__mascot .mascot {
  width: 104px;
  height: 104px;
}

.final-request__mascot p {
  margin: 0;
  color: var(--brand-blue-dark);
  font-weight: 850;
}

.final-request__note {
  position: relative;
  margin-top: 24px;
  padding: 20px;
  color: var(--neutral-white) !important;
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 161, 58, 0.22), transparent 38%),
    linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  box-shadow: var(--shadow-blue);
}

.final-request .request-form {
  padding: 24px;
  border: 1px solid rgba(41, 120, 241, 0.16);
  border-radius: var(--radius-lg);
  background: var(--neutral-white);
  box-shadow: var(--shadow-soft);
}

/* =========================
   Footer
   ========================= */

.site-footer {
  position: relative;
  padding: 54px 0 26px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--brand-blue-dark);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-blue), var(--chinese-red), var(--chinese-gold));
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.footer-logo img {
  width: 150px;
  max-height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer__brand p {
  max-width: 360px;
  margin-top: 16px;
}

.footer__column {
  display: grid;
  gap: 10px;
}

.footer__column h3 {
  margin-bottom: 4px;
  color: var(--neutral-white);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.footer__column a,
.footer__branches span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.footer__column a:hover,
.developer-link a:hover {
  color: var(--chinese-gold);
}

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

.developer-link a {
  color: var(--neutral-white);
  font-weight: 800;
}

/* =========================
   Desktop / tablet layout
   ========================= */

@media (min-width: 560px) {
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .cards-grid--4 { grid-template-columns: 1fr 1fr; }
  .review-card { flex-basis: calc((100% - 16px) / 2); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .cards-grid--3 { grid-template-columns: 1fr 1fr; }
  .steps-list { grid-template-columns: 1fr 1fr; }
  .process-support { grid-template-columns: 1fr 1fr; }
  .format-highlights { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(5, 1fr); }
  .about__inner,
  .final-request__inner { grid-template-columns: 1fr 0.82fr; }
}

@media (min-width: 840px) {
  .review-card { flex-basis: calc((100% - 32px) / 3); }
}

@media (min-width: 980px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 410px;
    align-items: start;
  }

  .cards-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .route__head { grid-template-columns: 1fr 360px; }
  .format-highlights { grid-template-columns: repeat(6, 1fr); }
  .footer__inner { grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr 1fr; }

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

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

/* =========================
   Desktop hover animation
   ========================= */

.info-card,
.step-card,
.fact-card,
.support-card,
.review-card,
.teacher-card,
.story-card,
.success-map-card {
  background-size: 190% 190%;
  background-position: 0% 0%;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background-position 0.45s ease,
    background-color 0.28s ease;
}

.highlight-card,
.stat-card,
.faq-item {
  background-size: 190% 190%;
  background-position: 0% 0%;
  transition:
    border-color 0.28s ease,
    background-position 0.45s ease,
    background-color 0.28s ease;
}

@media (hover: hover) and (pointer: fine) {
  .info-card:not(.info-card--accent),
  .step-card,
  .fact-card,
  .support-card,
  .review-card,
  .teacher-card,
  .story-card,
  .success-map-card {
    background-image:
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 44%,
        rgba(41, 120, 241, 0.055) 72%,
        rgba(216, 161, 58, 0.065) 100%
      );
  }

  .info-card:hover,
  .step-card:hover,
  .fact-card:hover,
  .support-card:hover,
  .review-card:hover,
  .teacher-card:hover,
  .story-card:hover,
  .success-map-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 30, 30, 0.22);
    box-shadow: 0 18px 46px rgba(13, 35, 84, 0.12);
    background-position: 100% 100%;
  }

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

  .info-card:hover::before,
  .fact-card:hover::after,
  .support-card:hover::before {
    background: var(--chinese-red);
    opacity: 0.70;
    transform: rotate(14deg) scale(1.12);
    box-shadow: 0 8px 18px rgba(200, 30, 30, 0.18);
  }

  .step-card span {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  }

  .step-card:hover span {
    transform: rotate(0deg) scale(1.06);
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    box-shadow: 0 14px 26px rgba(25, 73, 175, 0.18);
  }

  .highlight-card,
  .stat-card,
  .faq-item {
    background-image:
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 48%,
        rgba(41, 120, 241, 0.045) 78%,
        rgba(216, 161, 58, 0.045) 100%
      );
  }

  .highlight-card:hover,
  .stat-card:hover,
  .faq-item:hover {
    background-position: 100% 100%;
  }

  .btn::after,
  .header__cta::after,
  .carousel-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.28) 45%, transparent 70%);
    transform: translateX(-130%);
    transition: transform 0.55s ease;
    pointer-events: none;
  }

  .btn:hover::after,
  .header__cta:hover::after,
  .carousel-btn:hover::after {
    transform: translateX(130%);
  }
}

/* =========================
   Mobile touch mode
   ========================= */

@media (hover: none), (pointer: coarse) {
  .info-card:active,
  .step-card:active,
  .fact-card:active,
  .highlight-card:active,
  .support-card:active,
  .stat-card:active,
  .review-card:active,
  .teacher-card:active,
  .story-card:active,
  .faq-item:active,
  .success-map-card:active {
    transform: scale(0.992);
    border-color: rgba(41, 120, 241, 0.28);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(41, 120, 241, 0.055) 72%, rgba(216, 161, 58, 0.06) 100%);
  }

  .highlight-card:active,
  .stat-card:active,
  .faq-item:active {
    transform: none;
  }

  .info-card:active::before,
  .fact-card:active::after,
  .support-card:active::before {
    background: var(--chinese-red);
    opacity: 0.55;
  }

  .btn:active,
  .header__cta:active,
  .branch-link:active,
  .carousel-btn:active {
    transform: scale(0.985);
  }
}

/* =========================
   Infinite moving carousels
   ========================= */

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

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

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

/* =========================
   Mobile manual carousels
   ========================= */

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

@media (max-width: 680px) {
  .teachers-carousel.is-manual-mobile,
  .stories-carousel.is-manual-mobile {
    overflow: hidden;
    padding: 0 16px 8px;
  }

  .teachers-carousel.is-manual-mobile .marquee-carousel__track,
  .stories-carousel.is-manual-mobile .marquee-carousel__track {
    animation: none !important;
    transition: transform 0.42s ease;
    will-change: transform;
  }

  .teachers-carousel.is-manual-mobile .teacher-card {
    flex: 0 0 min(86vw, 360px);
  }

  .stories-carousel.is-manual-mobile .story-card {
    flex: 0 0 min(88vw, 420px);
  }

  .mobile-carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
  }

  .mobile-carousel-controls .carousel-btn {
    width: 46px;
    height: 46px;
    min-height: 46px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 20px;
  }
}

@media (min-width: 681px) {
  .mobile-carousel-controls {
    display: none !important;
  }
}

/* =========================
   Mobile menu animation
   ========================= */

@media (max-width: 1059px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 14px;
    right: 14px;
    z-index: 99;
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid rgba(41, 120, 241, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 46px rgba(13, 35, 84, 0.14);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .main-nav a {
    max-width: none;
    padding: 12px 14px;
    border-radius: 16px;
    text-align: left;
  }

  .main-nav a:hover,
  .main-nav a:active {
    background: rgba(41, 120, 241, 0.08);
  }

  body.menu-open .main-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .burger span {
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  body.menu-open .burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.menu-open .burger span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open .burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* =========================
   Mobile reading comfort
   ========================= */

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

@media (max-width: 680px) {
  .hero::after {
    right: -18px;
    bottom: 10px;
    font-size: 96px;
    opacity: 0.85;
  }

  .hero::before {
    opacity: 0.28;
  }

  .brand-shape {
    opacity: 0.035;
  }

  .section-head--with-mascot {
    grid-template-columns: 1fr;
  }

  .section-head--with-mascot .mascot {
    width: 104px;
    height: 104px;
    margin-top: -10px;
  }

  .hero__form-mascot {
    align-items: flex-start;
  }

  .hero__form-mascot .mascot {
    width: 78px;
    height: 78px;
  }

  .program::before,
  .route::before,
  .stories::before,
  .faq::before,
  .final-request::before {
    width: 180px;
    height: 180px;
    opacity: 0.36;
  }

  .marquee-carousel {
    padding-left: 16px;
    padding-right: 16px;
  }
  .teachers .container,
  .stories .container {
    margin-bottom: 22px;
  }
}

@media (max-width: 560px) {
  .branches {
    padding: 20px;
    border-radius: 24px;
  }

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

  .branches__list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .branch-link {
    min-height: 58px;
    padding: 16px 16px 25px;
    border-radius: 17px;
    font-size: 14px;
  }

  .branch-link::before {
    left: 16px;
    bottom: 8px;
  }
}

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

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

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

  h1 {
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.025em;
  }

  h2 {
    font-size: 27px;
    line-height: 1.1;
    letter-spacing: -0.025em;
  }

  h3 {
    font-size: 19px;
  }

  .section {
    padding: 58px 0;
  }

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

  .hero {
    padding: 42px 0 58px;
  }

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

  .hero::after {
    font-size: 78px;
  }

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

  .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;
  }

  .hero__form-mascot,
  .final-request__mascot {
    padding: 13px;
    border-radius: 20px;
  }

  .final-request__mascot .mascot {
    width: 78px;
    height: 78px;
  }

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

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

  .info-card p,
  .step-card p,
  .faq-item p,
  .support-card p,
  .review-card__text,
  .story-card p {
    line-height: 1.5;
  }

  .teacher-card {
    flex-basis: min(86vw, 340px);
  }

  .story-card {
    flex-basis: min(88vw, 380px);
  }
}

/* =========================
   Reduced motion
   ========================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .marquee-carousel.is-ready .marquee-carousel__track {
    animation: none !important;
  }
}

/* =========================
   FINAL CHINESE DECORATIVE FIXES
   Вставлено в полную standalone-версию css/style.css
   Задачи:
   1) убраны артефакты hero;
   2) убраны крестики/лишние декоративные элементы в карточках;
   3) квадратные маркеры заменены на маленькие китайские фонарики;
   4) добавлена более заметная, но аккуратная китайская атмосфера.
   ========================= */

/* ---------------------------------
   1. Hero: чистим артефакты и оставляем мягкий иероглифический фон
   --------------------------------- */

.hero__inner::before,
.hero__inner::after,
.hero__content::before,
.hero__content::after,
.final-request__content::before,
.final-request__content::after {
  content: none !important;
  display: none !important;
}

.hero::before {
  left: -5% !important;
  width: 28% !important;
  height: 210px !important;
  opacity: 0.34 !important;
  transform: skewX(-10deg) !important;
}

.hero::after {
  content: "福" !important;
  right: max(18px, calc((100vw - var(--container)) / 2)) !important;
  bottom: 26px !important;
  color: rgba(200, 30, 30, 0.060) !important;
  font-family: var(--font-title) !important;
  font-size: clamp(86px, 14vw, 172px) !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  transform: rotate(-7deg) !important;
  pointer-events: none !important;
}

/* ---------------------------------
   2. Убираем крестики и лишние псевдоэлементы, которые давали мусор
   --------------------------------- */

.info-card::after,
.step-card::after,
.teacher-card::after,
.story-card::after,
.faq-item::before,
.faq-item::after {
  content: none !important;
  display: none !important;
}

/* ---------------------------------
   3. Маленький китайский фонарик вместо квадратных маркеров
   --------------------------------- */

.fact-card,
.info-card,
.highlight-card,
.support-card {
  position: relative;
}

/* Основной фонарик в карточках справа сверху */
.fact-card::after,
.info-card::before,
.highlight-card::before {
  content: "" !important;
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  left: auto !important;
  bottom: auto !important;
  width: 17px !important;
  height: 25px !important;
  border-radius: 9px 9px 7px 7px !important;
  opacity: 1 !important;
  transform: none !important;
  background:
    linear-gradient(var(--chinese-gold), var(--chinese-gold)) center top 1px / 11px 3px no-repeat,
    linear-gradient(var(--chinese-gold), var(--chinese-gold)) center bottom 5px / 11px 3px no-repeat,
    linear-gradient(var(--chinese-gold), var(--chinese-gold)) center bottom / 2px 8px no-repeat,
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.22) 13%,
      transparent 13%,
      transparent 30%,
      rgba(255, 255, 255, 0.12) 30%,
      rgba(255, 255, 255, 0.12) 38%,
      transparent 38%,
      transparent 62%,
      rgba(255, 255, 255, 0.12) 62%,
      rgba(255, 255, 255, 0.12) 70%,
      transparent 70%,
      transparent 100%
    ),
    linear-gradient(180deg, #E94C4C 0%, var(--chinese-red) 100%) !important;
  border-radius: 9px 9px 7px 7px !important;
  box-shadow:
    0 7px 15px rgba(200, 30, 30, 0.16),
    inset 0 -2px 4px rgba(0, 0, 0, 0.09) !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

/* Фонарик в поддерживающих карточках слева, чтобы не ломать их композицию */
.support-card::before {
  content: "" !important;
  position: absolute !important;
  top: 26px !important;
  left: 24px !important;
  right: auto !important;
  bottom: auto !important;
  width: 17px !important;
  height: 25px !important;
  border-radius: 9px 9px 7px 7px !important;
  opacity: 1 !important;
  transform: none !important;
  background:
    linear-gradient(var(--chinese-gold), var(--chinese-gold)) center top 1px / 11px 3px no-repeat,
    linear-gradient(var(--chinese-gold), var(--chinese-gold)) center bottom 5px / 11px 3px no-repeat,
    linear-gradient(var(--chinese-gold), var(--chinese-gold)) center bottom / 2px 8px no-repeat,
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0.22) 13%,
      transparent 13%,
      transparent 30%,
      rgba(255, 255, 255, 0.12) 30%,
      rgba(255, 255, 255, 0.12) 38%,
      transparent 38%,
      transparent 62%,
      rgba(255, 255, 255, 0.12) 62%,
      rgba(255, 255, 255, 0.12) 70%,
      transparent 70%,
      transparent 100%
    ),
    linear-gradient(180deg, #E94C4C 0%, var(--chinese-red) 100%) !important;
  box-shadow:
    0 7px 15px rgba(200, 30, 30, 0.16),
    inset 0 -2px 4px rgba(0, 0, 0, 0.09) !important;
  z-index: 2 !important;
  pointer-events: none !important;
}

/* Чтобы текст карточек не конфликтовал с фонариком */
.info-card h3,
.fact-card strong,
.highlight-card strong {
  padding-right: 32px;
}

/* ---------------------------------
   4. Если внутри карточек есть списки — вместо стандартных маркеров ставим фонарики
   --------------------------------- */

.info-card ul,
.support-card ul,
.highlight-card ul,
.fact-card ul,
.faq-item ul {
  padding-left: 0;
  list-style: none;
}

.info-card ul li,
.support-card ul li,
.highlight-card ul li,
.fact-card ul li,
.faq-item ul li {
  position: relative;
  padding-left: 28px;
}

.info-card ul li::before,
.support-card ul li::before,
.highlight-card ul li::before,
.fact-card ul li::before,
.faq-item ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.24em;
  width: 12px;
  height: 18px;
  border-radius: 6px 6px 5px 5px;
  background:
    linear-gradient(var(--chinese-gold), var(--chinese-gold)) center top 1px / 8px 2px no-repeat,
    linear-gradient(var(--chinese-gold), var(--chinese-gold)) center bottom 4px / 8px 2px no-repeat,
    linear-gradient(var(--chinese-gold), var(--chinese-gold)) center bottom / 1.5px 6px no-repeat,
    linear-gradient(180deg, #E94C4C 0%, var(--chinese-red) 100%);
  box-shadow: 0 4px 9px rgba(200, 30, 30, 0.14);
}

/* ---------------------------------
   5. Дополнительные китайские элементы без перегруза
   --------------------------------- */

.program .container::before,
.route .container::before,
.stories .container::before,
.faq .container::before,
.about__inner::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: 150px;
  height: 150px;
  opacity: 0.11;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 45%, rgba(200, 30, 30, 0.42) 46%, rgba(200, 30, 30, 0.42) 49%, transparent 50%),
    radial-gradient(circle at center, transparent 60%, rgba(216, 161, 58, 0.38) 61%, rgba(216, 161, 58, 0.38) 63%, transparent 64%),
    linear-gradient(45deg, transparent 47%, rgba(200, 30, 30, 0.32) 48%, rgba(200, 30, 30, 0.32) 52%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, rgba(216, 161, 58, 0.28) 48%, rgba(216, 161, 58, 0.28) 52%, transparent 53%);
}

.program .container::before {
  top: 8px;
  right: -18px;
}

.route .container::before {
  bottom: 34px;
  left: -42px;
}

.stories .container::before {
  top: 18px;
  right: -24px;
}

.faq .container::before {
  top: 14px;
  left: -34px;
}

.about__inner::before {
  bottom: 10px;
  right: -10px;
}

/* Мягкий орнамент в форме, филиалах и карте успеха */
.hero__form-card,
.final-request .request-form,
.branches,
.success-map-card {
  position: relative;
  overflow: hidden;
}

.hero__form-card::before,
.final-request .request-form::before,
.branches::before,
.success-map-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  right: -26px;
  bottom: -26px;
  width: 126px;
  height: 126px;
  opacity: 0.12;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 44%, rgba(216, 161, 58, 0.62) 45%, rgba(216, 161, 58, 0.62) 49%, transparent 50%),
    radial-gradient(circle at center, transparent 60%, rgba(200, 30, 30, 0.48) 61%, rgba(200, 30, 30, 0.48) 64%, transparent 65%);
}

.hero__form-card > *,
.final-request .request-form > *,
.branches > *,
.success-map-card > * {
  position: relative;
  z-index: 2;
}

/* FAQ — чистый ответный блок под SEO/AEO/GEO, без крестиков */
.faq-item {
  border-left: 4px solid rgba(200, 30, 30, 0.58);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(200, 30, 30, 0.030));
}

/* Футер — лёгкий китайский маркер */
.site-footer {
  position: relative;
  overflow: hidden;
}

.site-footer::after {
  content: "中";
  position: absolute;
  right: 26px;
  bottom: 12px;
  color: rgba(255, 255, 255, 0.050);
  font-family: var(--font-title);
  font-size: 72px;
  line-height: 1;
  pointer-events: none;
}

/* ---------------------------------
   6. Мобильная версия: декор меньше, без налезания на текст
   --------------------------------- */

@media (max-width: 680px) {
  .hero::after {
    right: 8px !important;
    bottom: 12px !important;
    font-size: 82px !important;
    opacity: 0.70 !important;
  }

  .fact-card::after,
  .info-card::before,
  .highlight-card::before {
    top: 14px !important;
    right: 14px !important;
    width: 14px !important;
    height: 21px !important;
  }

  .support-card::before {
    top: 20px !important;
    left: 16px !important;
    width: 14px !important;
    height: 21px !important;
  }

  .program .container::before,
  .route .container::before,
  .stories .container::before,
  .faq .container::before,
  .about__inner::before {
    width: 106px;
    height: 106px;
    opacity: 0.08;
  }

  .hero__form-card::before,
  .final-request .request-form::before,
  .branches::before,
  .success-map-card::before {
    width: 92px;
    height: 92px;
    opacity: 0.09;
  }
}

@media (max-width: 420px) {
  .hero::after {
    font-size: 64px !important;
  }

  .site-footer::after {
    font-size: 52px;
  }
}


/* =========================
   FINAL LANTERN + PROCESS OVERRIDE
   1) цифры шагов: синие по умолчанию, красные при наведении
   2) фонарики: более круглые, серые по умолчанию, загораются при наведении
   ========================= */

:root {
  --lantern-gray-body: #D3D6DE;
  --lantern-gray-line: #AEB4C1;
  --lantern-gray-mark: rgba(13, 35, 84, 0.24);

  --lantern-lit-body: #EF3F32;
  --lantern-lit-body-dark: #BF251F;
  --lantern-lit-line: #F5B740;
  --lantern-lit-mark: #FFE2A3;
}

/* ---------------------------------
   Шаги в блоке "Как начать":
   по умолчанию белые цифры на синем,
   при наведении — красный/оранжевый акцент
   --------------------------------- */

.step-card span {
  color: var(--neutral-white) !important;
  background: linear-gradient(135deg, var(--brand-light-blue), var(--brand-blue)) !important;
  box-shadow: var(--shadow-blue) !important;
  transform: rotate(-4deg) !important;
}

@media (hover: hover) and (pointer: fine) {
  .step-card:hover span {
    color: var(--neutral-white) !important;
    background: linear-gradient(135deg, var(--lantern-lit-body), var(--brand-orange)) !important;
    box-shadow:
      0 14px 28px rgba(200, 30, 30, 0.22),
      0 0 18px rgba(245, 183, 64, 0.20) !important;
    transform: rotate(0deg) scale(1.06) !important;
  }
}

/* ---------------------------------
   Главный фонарик на карточках.
   Круглая форма, рёбра, верх/низ, кисточка и иероглиф 福.
   --------------------------------- */

.fact-card::after,
.info-card::before,
.highlight-card::before,
.support-card::before {
  content: "福" !important;
  position: absolute !important;
  display: grid !important;
  place-items: start center !important;
  top: 14px !important;
  right: 16px !important;
  left: auto !important;
  bottom: auto !important;

  width: 46px !important;
  height: 60px !important;
  padding-top: 22px !important;

  color: var(--lantern-gray-mark) !important;
  font-family: var(--font-title) !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;

  border: 0 !important;
  border-radius: 0 !important;
  opacity: 0.92 !important;
  transform: none !important;
  pointer-events: none !important;
  z-index: 3 !important;

  background:
    radial-gradient(circle at 50% 5px, transparent 0 4px, var(--lantern-gray-line) 4.5px 6px, transparent 6.5px) 50% 0 / 18px 12px no-repeat,

    linear-gradient(var(--lantern-gray-line), var(--lantern-gray-line)) 50% 12px / 22px 5px no-repeat,
    linear-gradient(var(--lantern-gray-line), var(--lantern-gray-line)) 50% 43px / 23px 5px no-repeat,

    linear-gradient(var(--lantern-gray-line), var(--lantern-gray-line)) 50% 48px / 2px 10px no-repeat,
    linear-gradient(var(--lantern-gray-line), var(--lantern-gray-line)) 43% 50px / 1.5px 10px no-repeat,
    linear-gradient(var(--lantern-gray-line), var(--lantern-gray-line)) 57% 50px / 1.5px 10px no-repeat,

    linear-gradient(90deg,
      transparent 0 16%,
      var(--lantern-gray-line) 16% 19%,
      transparent 19% 37%,
      var(--lantern-gray-line) 37% 40%,
      transparent 40% 60%,
      var(--lantern-gray-line) 60% 63%,
      transparent 63% 81%,
      var(--lantern-gray-line) 81% 84%,
      transparent 84% 100%
    ) 50% 17px / 41px 28px no-repeat,

    radial-gradient(ellipse at 21% 50%, var(--lantern-gray-body) 0 38%, transparent 39%) 50% 15px / 43px 31px no-repeat,
    radial-gradient(ellipse at 79% 50%, var(--lantern-gray-body) 0 38%, transparent 39%) 50% 15px / 43px 31px no-repeat,

    radial-gradient(ellipse at center, var(--lantern-gray-body) 0 61%, transparent 62%) 50% 15px / 43px 31px no-repeat !important;

  box-shadow: none !important;
  filter: drop-shadow(0 6px 10px rgba(13, 35, 84, 0.08)) !important;

  transition:
    color 0.24s ease,
    filter 0.24s ease,
    transform 0.24s ease,
    opacity 0.24s ease !important;
}

.support-card::before {
  top: 16px !important;
  left: 18px !important;
  right: auto !important;
}

.support-card {
  padding-left: 76px !important;
}

.info-card h3,
.fact-card strong,
.highlight-card strong {
  padding-right: 54px !important;
}

/* ---------------------------------
   Эффект загорания фонарика
   --------------------------------- */

@media (hover: hover) and (pointer: fine) {
  .fact-card:hover::after,
  .info-card:hover::before,
  .highlight-card:hover::before,
  .support-card:hover::before {
    color: var(--lantern-lit-mark) !important;
    background:
      radial-gradient(circle at 50% 5px, transparent 0 4px, var(--lantern-lit-line) 4.5px 6px, transparent 6.5px) 50% 0 / 18px 12px no-repeat,

      linear-gradient(var(--lantern-lit-line), var(--lantern-lit-line)) 50% 12px / 22px 5px no-repeat,
      linear-gradient(var(--lantern-lit-line), var(--lantern-lit-line)) 50% 43px / 23px 5px no-repeat,

      linear-gradient(var(--lantern-lit-line), var(--lantern-lit-line)) 50% 48px / 2px 10px no-repeat,
      linear-gradient(var(--lantern-lit-line), var(--lantern-lit-line)) 43% 50px / 1.5px 10px no-repeat,
      linear-gradient(var(--lantern-lit-line), var(--lantern-lit-line)) 57% 50px / 1.5px 10px no-repeat,

      linear-gradient(90deg,
        transparent 0 16%,
        var(--lantern-lit-line) 16% 19%,
        transparent 19% 37%,
        var(--lantern-lit-line) 37% 40%,
        transparent 40% 60%,
        var(--lantern-lit-line) 60% 63%,
        transparent 63% 81%,
        var(--lantern-lit-line) 81% 84%,
        transparent 84% 100%
      ) 50% 17px / 41px 28px no-repeat,

      radial-gradient(ellipse at 21% 50%, var(--lantern-lit-body) 0 38%, transparent 39%) 50% 15px / 43px 31px no-repeat,
      radial-gradient(ellipse at 79% 50%, var(--lantern-lit-body) 0 38%, transparent 39%) 50% 15px / 43px 31px no-repeat,

      radial-gradient(ellipse at center, var(--lantern-lit-body) 0 40%, var(--lantern-lit-body-dark) 70%, transparent 71%) 50% 15px / 43px 31px no-repeat !important;

    filter:
      drop-shadow(0 0 7px rgba(255, 117, 79, 0.50))
      drop-shadow(0 0 18px rgba(239, 63, 50, 0.34))
      drop-shadow(0 10px 18px rgba(200, 30, 30, 0.18)) !important;

    transform: translateY(-2px) scale(1.08) !important;
    opacity: 1 !important;
  }
}

@media (hover: none), (pointer: coarse) {
  .fact-card:active::after,
  .info-card:active::before,
  .highlight-card:active::before,
  .support-card:active::before {
    color: var(--lantern-lit-mark) !important;
    filter:
      drop-shadow(0 0 7px rgba(255, 117, 79, 0.42))
      drop-shadow(0 0 14px rgba(239, 63, 50, 0.28)) !important;
    opacity: 1 !important;
  }
}

/* ---------------------------------
   Маленькие фонарики в списках, если списки появятся внутри карточек
   --------------------------------- */

.info-card ul li::before,
.support-card ul li::before,
.highlight-card ul li::before,
.fact-card ul li::before,
.faq-item ul li::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.18em !important;
  width: 18px !important;
  height: 24px !important;
  border-radius: 0 !important;
  background:
    linear-gradient(var(--lantern-gray-line), var(--lantern-gray-line)) 50% 4px / 10px 2px no-repeat,
    linear-gradient(var(--lantern-gray-line), var(--lantern-gray-line)) 50% 17px / 10px 2px no-repeat,
    linear-gradient(var(--lantern-gray-line), var(--lantern-gray-line)) 50% 19px / 1.5px 5px no-repeat,
    linear-gradient(90deg, transparent 20%, var(--lantern-gray-line) 22% 25%, transparent 27% 73%, var(--lantern-gray-line) 75% 78%, transparent 80%) 50% 7px / 17px 12px no-repeat,
    radial-gradient(ellipse at center, var(--lantern-gray-body) 0 62%, transparent 63%) 50% 6px / 17px 14px no-repeat !important;
  box-shadow: none !important;
  filter: none !important;
  transition: background 0.24s ease, filter 0.24s ease !important;
}

@media (hover: hover) and (pointer: fine) {
  .fact-card:hover ul li::before,
  .info-card:hover ul li::before,
  .highlight-card:hover ul li::before,
  .support-card:hover ul li::before,
  .faq-item:hover ul li::before {
    background:
      linear-gradient(var(--lantern-lit-line), var(--lantern-lit-line)) 50% 4px / 10px 2px no-repeat,
      linear-gradient(var(--lantern-lit-line), var(--lantern-lit-line)) 50% 17px / 10px 2px no-repeat,
      linear-gradient(var(--lantern-lit-line), var(--lantern-lit-line)) 50% 19px / 1.5px 5px no-repeat,
      linear-gradient(90deg, transparent 20%, var(--lantern-lit-line) 22% 25%, transparent 27% 73%, var(--lantern-lit-line) 75% 78%, transparent 80%) 50% 7px / 17px 12px no-repeat,
      radial-gradient(ellipse at center, var(--lantern-lit-body) 0 48%, var(--lantern-lit-body-dark) 72%, transparent 73%) 50% 6px / 17px 14px no-repeat !important;
    filter:
      drop-shadow(0 0 5px rgba(255, 117, 79, 0.40))
      drop-shadow(0 0 11px rgba(239, 63, 50, 0.24)) !important;
  }
}

@media (max-width: 680px) {
  .fact-card::after,
  .info-card::before,
  .highlight-card::before,
  .support-card::before {
    width: 36px !important;
    height: 48px !important;
    padding-top: 18px !important;
    font-size: 8px !important;
  }

  .fact-card::after,
  .info-card::before,
  .highlight-card::before {
    top: 12px !important;
    right: 12px !important;
  }

  .support-card::before {
    top: 16px !important;
    left: 14px !important;
  }

  .support-card {
    padding-left: 58px !important;
  }

  .info-card h3,
  .fact-card strong,
  .highlight-card strong {
    padding-right: 42px !important;
  }
}
/* =========================
   COMPACT LANTERN SIZE FIX
   Фонарик меньше, не занимает много места в карточках
   ========================= */

/* Главный фонарик в карточках — компактнее */
.fact-card::after,
.info-card::before,
.highlight-card::before,
.support-card::before {
  width: 32px !important;
  height: 44px !important;
  padding-top: 16px !important;

  color: var(--lantern-gray-mark) !important;
  font-size: 8px !important;

  background:
    radial-gradient(circle at 50% 4px, transparent 0 3px, var(--lantern-gray-line) 3.4px 4.6px, transparent 5px) 50% 0 / 13px 9px no-repeat,

    linear-gradient(var(--lantern-gray-line), var(--lantern-gray-line)) 50% 9px / 16px 4px no-repeat,
    linear-gradient(var(--lantern-gray-line), var(--lantern-gray-line)) 50% 31px / 17px 4px no-repeat,

    linear-gradient(var(--lantern-gray-line), var(--lantern-gray-line)) 50% 35px / 1.6px 7px no-repeat,
    linear-gradient(var(--lantern-gray-line), var(--lantern-gray-line)) 43% 36px / 1.2px 7px no-repeat,
    linear-gradient(var(--lantern-gray-line), var(--lantern-gray-line)) 57% 36px / 1.2px 7px no-repeat,

    linear-gradient(90deg,
      transparent 0 16%,
      var(--lantern-gray-line) 16% 19%,
      transparent 19% 37%,
      var(--lantern-gray-line) 37% 40%,
      transparent 40% 60%,
      var(--lantern-gray-line) 60% 63%,
      transparent 63% 81%,
      var(--lantern-gray-line) 81% 84%,
      transparent 84% 100%
    ) 50% 12px / 29px 21px no-repeat,

    radial-gradient(ellipse at 21% 50%, var(--lantern-gray-body) 0 38%, transparent 39%) 50% 11px / 31px 23px no-repeat,
    radial-gradient(ellipse at 79% 50%, var(--lantern-gray-body) 0 38%, transparent 39%) 50% 11px / 31px 23px no-repeat,

    radial-gradient(ellipse at center, var(--lantern-gray-body) 0 61%, transparent 62%) 50% 11px / 31px 23px no-repeat !important;

  filter: drop-shadow(0 4px 7px rgba(13, 35, 84, 0.07)) !important;
}

.fact-card::after,
.info-card::before,
.highlight-card::before {
  top: 16px !important;
  right: 16px !important;
}

/* В поддерживающих карточках фонарик слева тоже уменьшаем */
.support-card::before {
  top: 20px !important;
  left: 20px !important;
}

.support-card {
  padding-left: 58px !important;
}

/* Возвращаем больше места заголовкам */
.info-card h3,
.fact-card strong,
.highlight-card strong {
  padding-right: 42px !important;
}

/* Hover: загорается тем же компактным фонариком */
@media (hover: hover) and (pointer: fine) {
  .fact-card:hover::after,
  .info-card:hover::before,
  .highlight-card:hover::before,
  .support-card:hover::before {
    color: var(--lantern-lit-mark) !important;

    background:
      radial-gradient(circle at 50% 4px, transparent 0 3px, var(--lantern-lit-line) 3.4px 4.6px, transparent 5px) 50% 0 / 13px 9px no-repeat,

      linear-gradient(var(--lantern-lit-line), var(--lantern-lit-line)) 50% 9px / 16px 4px no-repeat,
      linear-gradient(var(--lantern-lit-line), var(--lantern-lit-line)) 50% 31px / 17px 4px no-repeat,

      linear-gradient(var(--lantern-lit-line), var(--lantern-lit-line)) 50% 35px / 1.6px 7px no-repeat,
      linear-gradient(var(--lantern-lit-line), var(--lantern-lit-line)) 43% 36px / 1.2px 7px no-repeat,
      linear-gradient(var(--lantern-lit-line), var(--lantern-lit-line)) 57% 36px / 1.2px 7px no-repeat,

      linear-gradient(90deg,
        transparent 0 16%,
        var(--lantern-lit-line) 16% 19%,
        transparent 19% 37%,
        var(--lantern-lit-line) 37% 40%,
        transparent 40% 60%,
        var(--lantern-lit-line) 60% 63%,
        transparent 63% 81%,
        var(--lantern-lit-line) 81% 84%,
        transparent 84% 100%
      ) 50% 12px / 29px 21px no-repeat,

      radial-gradient(ellipse at 21% 50%, var(--lantern-lit-body) 0 38%, transparent 39%) 50% 11px / 31px 23px no-repeat,
      radial-gradient(ellipse at 79% 50%, var(--lantern-lit-body) 0 38%, transparent 39%) 50% 11px / 31px 23px no-repeat,

      radial-gradient(ellipse at center, var(--lantern-lit-body) 0 40%, var(--lantern-lit-body-dark) 70%, transparent 71%) 50% 11px / 31px 23px no-repeat !important;

    filter:
      drop-shadow(0 0 5px rgba(255, 117, 79, 0.46))
      drop-shadow(0 0 12px rgba(239, 63, 50, 0.30))
      drop-shadow(0 7px 12px rgba(200, 30, 30, 0.14)) !important;

    transform: translateY(-1px) scale(1.06) !important;
  }
}

/* На мобильной версии ещё компактнее */
@media (max-width: 680px) {
  .fact-card::after,
  .info-card::before,
  .highlight-card::before,
  .support-card::before {
    width: 26px !important;
    height: 37px !important;
    padding-top: 14px !important;
    font-size: 7px !important;

    background:
      radial-gradient(circle at 50% 3px, transparent 0 2.4px, var(--lantern-gray-line) 2.8px 3.8px, transparent 4.2px) 50% 0 / 11px 8px no-repeat,

      linear-gradient(var(--lantern-gray-line), var(--lantern-gray-line)) 50% 8px / 13px 3px no-repeat,
      linear-gradient(var(--lantern-gray-line), var(--lantern-gray-line)) 50% 26px / 14px 3px no-repeat,

      linear-gradient(var(--lantern-gray-line), var(--lantern-gray-line)) 50% 29px / 1.3px 6px no-repeat,
      linear-gradient(var(--lantern-gray-line), var(--lantern-gray-line)) 43% 30px / 1px 6px no-repeat,
      linear-gradient(var(--lantern-gray-line), var(--lantern-gray-line)) 57% 30px / 1px 6px no-repeat,

      linear-gradient(90deg,
        transparent 0 16%,
        var(--lantern-gray-line) 16% 19%,
        transparent 19% 37%,
        var(--lantern-gray-line) 37% 40%,
        transparent 40% 60%,
        var(--lantern-gray-line) 60% 63%,
        transparent 63% 81%,
        var(--lantern-gray-line) 81% 84%,
        transparent 84% 100%
      ) 50% 11px / 24px 17px no-repeat,

      radial-gradient(ellipse at 21% 50%, var(--lantern-gray-body) 0 38%, transparent 39%) 50% 10px / 25px 19px no-repeat,
      radial-gradient(ellipse at 79% 50%, var(--lantern-gray-body) 0 38%, transparent 39%) 50% 10px / 25px 19px no-repeat,

      radial-gradient(ellipse at center, var(--lantern-gray-body) 0 61%, transparent 62%) 50% 10px / 25px 19px no-repeat !important;
  }

  .fact-card::after,
  .info-card::before,
  .highlight-card::before {
    top: 14px !important;
    right: 14px !important;
  }

  .support-card::before {
    top: 17px !important;
    left: 16px !important;
  }

  .support-card {
    padding-left: 50px !important;
  }

  .info-card h3,
  .fact-card strong,
  .highlight-card strong {
    padding-right: 34px !important;
  }
}

/* =========================
   REMOVE LANTERNS FROM FORMAT HIGHLIGHTS
   Блок: Форматы и филиалы
   Убираем фонарики из верхних карточек с цифрами
   ========================= */
.formats .format-highlights .highlight-card::before,
.formats .format-highlights .highlight-card::after {
  content: none !important;
  display: none !important;
}

.formats .format-highlights .highlight-card strong {
  padding-right: 0 !important;
}

.formats .format-highlights .highlight-card {
  overflow: hidden;
}

/* =========================
   TEACHER PHOTO SMART CROP
   Блок: Преподаватели
   Пробуем сохранить красивую заливку карточек без замены фото
   ========================= */

/*
  Логика:
  - возвращаем cover, чтобы не было пустых полей сверху/сбоку;
  - ставим object-position ближе к верху, чтобы не резало лица;
  - для 5 преподавателей задаём индивидуальные позиции через 5n,
    чтобы настройки повторялись и на клонах бесконечной карусели.
*/

.teacher-card__photo {
  height: 300px !important;
  padding: 0 !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 18% 12%, rgba(216, 161, 58, 0.10), transparent 36%),
    radial-gradient(circle at 86% 10%, rgba(200, 30, 30, 0.055), transparent 34%),
    linear-gradient(135deg, rgba(41, 120, 241, 0.05), rgba(255, 255, 255, 0.92)),
    #f3f4f7 !important;
}

/* Главное: фото снова заполняет карточку, но фокус держим выше центра */
.teacher-card__photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 18% !important;
  background: transparent !important;
}

/* Убираем заглушку, если фото загрузилось */
.teacher-card__photo:has(img)::before {
  content: none !important;
  display: none !important;
}

/* Индивидуальные настройки под 5 фото.
   Работает и на клонах карусели, потому что используется цикл 5n. */

/* 1 — Новоселова Виктория Сергеевна */
.teachers-carousel .teacher-card:nth-child(5n + 1) .teacher-card__photo img {
  object-position: center 16% !important;
}

/* 2 — Белозор Елизавета Васильевна */
.teachers-carousel .teacher-card:nth-child(5n + 2) .teacher-card__photo img {
  object-position: center 14% !important;
}

/* 3 — Кукликова Анастасия Леонидовна */
.teachers-carousel .teacher-card:nth-child(5n + 3) .teacher-card__photo img {
  object-position: center 12% !important;
}

/* 4 — Серенков Владимир Юрьевич */
.teachers-carousel .teacher-card:nth-child(5n + 4) .teacher-card__photo img {
  object-position: center 10% !important;
}

/* 5 — Сотова Ульяна Павловна */
.teachers-carousel .teacher-card:nth-child(5n + 5) .teacher-card__photo img {
  object-position: center 16% !important;
}

/* Чуть улучшаем визуальный стык фото и текста */
.teacher-card__content {
  padding-top: 24px !important;
}

/* Планшеты */
@media (max-width: 980px) {
  .teacher-card__photo {
    height: 290px !important;
  }
}

/* Мобильная версия */
@media (max-width: 680px) {
  .teacher-card__photo {
    height: 280px !important;
  }

  .teacher-card__photo img {
    object-position: center 14% !important;
  }
}

@media (max-width: 420px) {
  .teacher-card__photo {
    height: 260px !important;
  }
}

/* =========================
   YANDEX REVIEWS WIDGETS CAROUSEL
   Блок: Отзывы
   Официальные iframe-виджеты Яндекс Карт в формате карусели
   ========================= */

.reviews-yandex {
  position: relative;
  overflow: hidden;
}

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

.yandex-reviews-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 18px;
  scrollbar-width: none;
}

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

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

.yandex-review-card {
  position: relative;
  flex: 0 0 calc((100% - 24px) / 2);
  min-width: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 32px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background:
    radial-gradient(circle at 12% 0%, rgba(200, 30, 30, 0.08), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(216, 161, 58, 0.13), transparent 32%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 70px rgba(25, 50, 90, 0.10);
}

.yandex-review-card__head {
  padding: 24px 24px 18px;
}

.yandex-review-card__head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 204, 0, 0.18);
  color: #3a3a3a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.yandex-review-card__head span::before {
  content: "★";
  color: #f5b400;
  font-size: 14px;
  line-height: 1;
}

.yandex-review-card__head h3 {
  margin: 0 0 8px;
  color: var(--text-color, #101828);
  font-size: 22px;
  line-height: 1.18;
}

.yandex-review-card__head p {
  margin: 0;
  color: var(--muted-color, #667085);
  font-size: 15px;
  line-height: 1.55;
}

.yandex-review-widget {
  position: relative;
  height: 560px;
  margin: 0 18px 18px;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(16, 24, 40, 0.08);
}

.yandex-review-widget iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 24px;
  background: #fff;
}

.yandex-review-widget > a {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 2;
  display: block;
  padding: 0 18px;
  text-align: center;
  color: #9a9a9a;
  font-family: "YS Text", Arial, sans-serif;
  font-size: 10px;
  line-height: 1.25;
  text-decoration: none;
}

.yandex-review-widget > a:hover {
  color: var(--accent-color, #c81e1e);
}

.yandex-reviews-carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--accent-color, #c81e1e);
  color: #fff;
  box-shadow: 0 18px 42px rgba(200, 30, 30, 0.22);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.yandex-reviews-carousel__btn:hover {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 22px 52px rgba(200, 30, 30, 0.28);
}

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

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

.reviews-yandex .reviews__note {
  max-width: 860px;
  margin: 24px auto 0;
  text-align: center;
  color: var(--muted-color, #667085);
}

/* Планшеты */
@media (max-width: 980px) {
  .yandex-review-card {
    flex-basis: calc((100% - 20px) / 2);
  }

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

  .yandex-review-widget {
    height: 540px;
  }

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

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

/* Мобильная версия */
@media (max-width: 760px) {
  .yandex-reviews-carousel {
    margin-top: 32px;
  }

  .yandex-review-card {
    flex-basis: 88%;
    border-radius: 26px;
  }

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

  .yandex-review-card__head {
    padding: 20px 18px 14px;
  }

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

  .yandex-review-widget {
    height: 520px;
    margin: 0 12px 12px;
    border-radius: 20px;
  }

  .yandex-review-widget iframe {
    border-radius: 20px;
  }

  .yandex-reviews-carousel__btn {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

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

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

@media (max-width: 420px) {
  .yandex-review-card {
    flex-basis: 92%;
  }

  .yandex-review-widget {
    height: 500px;
  }
}


/* =========================
   HERO PHOTO + FORM SELECT FIX
   1) Фото в форме первого экрана вместо маскота
   2) Филиал снова select-полем
   ========================= */

/* Сбрасываем старые ограничения, которые были нужны только для маскота-стикера */
.hero__form-card {
  overflow: hidden !important;
}

.hero__form-card > h2 {
  max-width: none !important;
  margin-top: 0 !important;
}

.hero__form-card > h2 + p {
  max-width: none !important;
}

/* Фото над формой */
.hero__form-photo {
  position: relative !important;
  display: block !important;
  margin: -4px 0 22px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--border-gold) !important;
  border-radius: 26px !important;
  background: var(--neutral-white) !important;
  box-shadow: 0 16px 38px rgba(13, 35, 84, 0.08) !important;
}

.hero__form-photo img {
  display: block !important;
  width: 100% !important;
  height: 230px !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.hero__form-photo p {
  position: relative !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 16px 18px !important;
  color: var(--brand-blue-dark) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 161, 58, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(200, 30, 30, 0.045)) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1.35 !important;
}

/* Если фото в блоке "Кому подойдёт" используется вместо маскота */
.section-photo--audience {
  width: min(280px, 24vw) !important;
  height: 210px !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 28px !important;
  box-shadow: 0 18px 44px rgba(13, 35, 84, 0.12) !important;
  border: 1px solid rgba(13, 35, 84, 0.08) !important;
}

/* Select филиала: обычное поле формы, без кастомного списка */
.request-form select[name="branch"] {
  appearance: auto !important;
  cursor: pointer;
}

/* Убираем стили для старого списка филиалов в форме, если где-то остался */
.form-branches {
  display: none !important;
}

/* Планшет */
@media (max-width: 980px) {
  .hero__form-photo img {
    height: 210px !important;
  }

  .section-photo--audience {
    width: 240px !important;
    height: 185px !important;
  }
}

/* Мобильная версия */
@media (max-width: 680px) {
  .hero__form-photo {
    margin-bottom: 18px !important;
    border-radius: 22px !important;
  }

  .hero__form-photo img {
    height: 190px !important;
  }

  .hero__form-photo p {
    padding: 14px 16px !important;
    font-size: 14px !important;
  }

  .section-photo--audience {
    width: 100% !important;
    height: 210px !important;
    margin-top: 12px !important;
  }
}

@media (max-width: 420px) {
  .hero__form-photo img {
    height: 170px !important;
  }
}

/* =========================
   AUDIENCE PHOTO COMPOSITION FIX
   Блок: "Кому подойдёт"
   1) фото крупнее и полноценнее
   2) подзаголовок отделён от карточек
   3) сетка не сжимает левую текстовую часть
   ========================= */

.audience .section-head--with-mascot {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px) !important;
  align-items: center !important;
  gap: 56px !important;
  min-height: auto !important;
  padding-right: 0 !important;
  margin-bottom: 54px !important;
}

.audience .section-head--with-mascot > div {
  max-width: 720px !important;
}

.audience .section-subtitle {
  margin-bottom: 0 !important;
}

.audience .section-photo--audience {
  display: block !important;
  width: 100% !important;
  height: 320px !important;
  min-height: 320px !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 34px !important;
  border: 1px solid rgba(13, 35, 84, 0.08) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(216, 161, 58, 0.16), transparent 38%),
    linear-gradient(135deg, rgba(41, 120, 241, 0.06), rgba(200, 30, 30, 0.04)),
    #f2f4f8 !important;
  box-shadow: 0 24px 62px rgba(13, 35, 84, 0.12) !important;
}

/* Дополнительный воздух между верхней частью блока и карточками */
.audience .cards-grid {
  margin-top: 0 !important;
}

/* Планшеты */
@media (max-width: 1100px) {
  .audience .section-head--with-mascot {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
    gap: 36px !important;
    margin-bottom: 44px !important;
  }

  .audience .section-photo--audience {
    height: 280px !important;
    min-height: 280px !important;
    border-radius: 30px !important;
  }
}

/* Мобильная версия */
@media (max-width: 760px) {
  .audience .section-head--with-mascot {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    margin-bottom: 34px !important;
    padding-bottom: 0 !important;
  }

  .audience .section-head--with-mascot > div {
    max-width: none !important;
  }

  .audience .section-photo--audience {
    width: 100% !important;
    height: 240px !important;
    min-height: 240px !important;
    margin: 0 !important;
    border-radius: 26px !important;
  }
}

@media (max-width: 420px) {
  .audience .section-photo--audience {
    height: 210px !important;
    min-height: 210px !important;
  }
}

/* =========================
   PHOTO GALLERY
   Блок: фотокарусель между "Как попасть" и "Китайский язык — это"
   ========================= */

.photo-gallery {
  padding: 42px 0 50px;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 10%, rgba(41, 120, 241, 0.10), transparent 30%),
    radial-gradient(circle at 100% 16%, rgba(216, 161, 58, 0.12), transparent 34%),
    #FFFFFF;
}

.photo-gallery-carousel {
  position: relative;
  margin-top: 0;
}

.photo-gallery-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0 2px 22px;
  scrollbar-width: none;
}

.photo-gallery-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.photo-gallery-carousel__track {
  display: flex;
  align-items: stretch;
  gap: 22px;
}

.photo-gallery-card {
  position: relative;
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 0;
  height: 245px;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid rgba(13, 35, 84, 0.09);
  border-radius: 28px;
  background:
    radial-gradient(circle at 0% 0%, rgba(216, 161, 58, 0.16), transparent 36%),
    linear-gradient(135deg, rgba(41, 120, 241, 0.08), rgba(200, 30, 30, 0.05)),
    #f2f4f8;
  box-shadow: 0 22px 58px rgba(13, 35, 84, 0.12);
}

.photo-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.photo-gallery-carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 8;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-light-blue), var(--brand-blue));
  color: #fff;
  box-shadow: 0 18px 42px rgba(25, 73, 175, 0.22);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.photo-gallery-carousel__btn:hover {
  transform: translateY(-50%) scale(1.06);
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  box-shadow: 0 22px 52px rgba(25, 73, 175, 0.28);
}

.photo-gallery-carousel__btn--prev {
  left: -25px;
}

.photo-gallery-carousel__btn--next {
  right: -25px;
}

@media (max-width: 980px) {
  .photo-gallery-card {
    flex-basis: calc((100% - 22px) / 2);
    height: 230px;
    border-radius: 26px;
  }

  .photo-gallery-carousel__btn--prev {
    left: -14px;
  }

  .photo-gallery-carousel__btn--next {
    right: -14px;
  }
}

@media (max-width: 680px) {
  .photo-gallery {
    padding: 36px 0 42px;
  }

  .photo-gallery-carousel__track {
    gap: 16px;
  }

  .photo-gallery-card {
    flex-basis: 86%;
    height: 205px;
    border-radius: 24px;
  }

  .photo-gallery-carousel__btn {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .photo-gallery-carousel__btn--prev {
    left: 6px;
  }

  .photo-gallery-carousel__btn--next {
    right: 6px;
  }
}

@media (max-width: 420px) {
  .photo-gallery-card {
    flex-basis: 90%;
    height: 185px;
  }
}

/* =========================
   ABOUT PHOTO
   Блок: "О школе"
   Фото полностью заполняет плашку без пустой нижней зоны
   ========================= */

.about__media {
  min-height: 0;
  height: clamp(360px, 34vw, 480px);
  overflow: hidden;
  border-radius: 34px;
  background: #f2f4f8;
}

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

.about__media:has(img)::before {
  content: none;
  display: none;
}

@media (max-width: 980px) {
  .about__media {
    height: 390px;
  }
}

@media (max-width: 680px) {
  .about__media {
    height: 320px;
    border-radius: 28px;
  }
}

@media (max-width: 420px) {
  .about__media {
    height: 280px;
    border-radius: 24px;
  }
}/* =========================
   SERVICE PAGES
   Страницы thanks.php / error.php
   ========================= */

.service-page {

  min-height: 100vh;

  margin: 0;

  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__actions .btn {

  width: auto;

  min-width: 0;

}

.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;

  text-decoration: none;

  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;

}

@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__logo img {

    max-width: 150px;

  }

  .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%;

  }

}/* =========================
   SINGLE CUSTOM VIDEO BLOCK
   Видео-блок с обложкой и кастомной кнопкой Play
   ========================= */

.video-section {
  position: relative;
  overflow: hidden;
  padding: 34px 0 44px;
  background:
    radial-gradient(circle at 8% 12%, rgba(41, 120, 241, 0.08), transparent 34%),
    radial-gradient(circle at 92% 10%, rgba(216, 161, 58, 0.12), transparent 30%),
    #F7F8FA;
}

.video-section__grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

.video-section--single .video-card {
  width: min(100%, 920px);
  max-width: 920px;
}

.video-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(41, 120, 241, 0.18);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(41, 120, 241, 0.10), rgba(216, 161, 58, 0.08)),
    #ffffff;
  box-shadow: 0 22px 55px rgba(13, 35, 84, 0.12);
}

.video-card video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 24px;
  background: #000;
}

.video-card--custom {
  position: relative;
}

.video-card--custom::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 10px;
  z-index: 2;
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(13, 35, 84, 0.02) 0%,
    rgba(13, 35, 84, 0.10) 58%,
    rgba(13, 35, 84, 0.42) 100%
  );
  opacity: 1;
  transition: opacity 0.25s ease;
}

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

.video-play-btn {
  position: absolute;
  z-index: 5;
  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.96), rgba(25, 73, 175, 0.96));
  box-shadow:
    0 18px 44px rgba(13, 35, 84, 0.34),
    0 0 0 10px rgba(255, 255, 255, 0.18);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.video-play-btn span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 25px solid #ffffff;
}

.video-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow:
    0 22px 52px rgba(13, 35, 84, 0.40),
    0 0 0 12px rgba(255, 255, 255, 0.22);
}

.video-card--custom.is-playing .video-play-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 760px) {
  .video-section {
    padding: 28px 0 36px;
  }

  .video-card {
    padding: 8px;
    border-radius: 24px;
  }

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

  .video-card--custom::after {
    inset: 8px;
    border-radius: 18px;
  }

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

  .video-play-btn span {
    border-top-width: 14px;
    border-bottom-width: 14px;
    border-left-width: 21px;
  }
}

@media (max-width: 420px) {
  .video-section {
    padding: 24px 0 32px;
  }

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

  .video-card video {
    border-radius: 16px;
  }
}/* =========================
   FINAL GRID + VIDEO FIXES
   Финальные правки после добавления видео-блока
   ========================= */

/* 1. Статистика: в HTML 4 карточки, поэтому делаем 4 колонки */
@media (min-width: 720px) {
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* 2. Футер: после удаления лишнего блока осталось 4 колонки */
@media (min-width: 980px) {
  .footer__inner {
    grid-template-columns: 1.35fr 0.85fr 1.15fr 1.15fr !important;
  }
}

/* 3. Видео-блок: финальная страховка от конфликтов с общими карточками */
.video-section .video-card {
  position: relative !important;
  overflow: hidden !important;
  width: min(100%, 920px) !important;
  max-width: 920px !important;
  padding: 10px !important;
  border: 1px solid rgba(41, 120, 241, 0.18) !important;
  border-radius: 34px !important;
  background:
    linear-gradient(135deg, rgba(41, 120, 241, 0.10), rgba(216, 161, 58, 0.08)),
    #ffffff !important;
  box-shadow: 0 22px 55px rgba(13, 35, 84, 0.12) !important;
}

.video-section .video-card video {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  border-radius: 24px !important;
  background: #000 !important;
}

.video-section .video-play-btn {
  width: 86px !important;
  height: 86px !important;
}

.video-card--custom.is-playing .video-play-btn {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

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

@media (max-width: 760px) {
  .video-section .video-card {
    padding: 8px !important;
    border-radius: 24px !important;
  }

  .video-section .video-card video {
    border-radius: 18px !important;
  }

  .video-section .video-play-btn {
    width: 70px !important;
    height: 70px !important;
  }
}

@media (max-width: 420px) {
  .video-section .video-card {
    border-radius: 22px !important;
  }

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