/* zhishi — стиль в духе BeLanguage3 (BeTheme) */
/* Шрифты BeTheme: Montserrat (заголовки), Lato (текст) */

@import url('https://fonts.googleapis.com/css2?family=Wix+Madefor+Display:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #da4452;   /* бордовый (красный оттенок) */
  --primary-dark: #b33843;
  --secondary-color: #f3f4f7; /* холодный светло‑серый */
  --bg-cream: #f5f6f9;
  --bg-light: #eef0f5;
  --text-dark: #1b1b23;
  --text-muted: #6b6f7a;
  --border-light: #dde0ea;
  --white: #ffffff;
  --shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 24px rgba(15, 23, 42, 0.12);
  --transition: 0.3s ease;
  --skillspace: #1eb194;
  --skillspace-dark: #179a80;
  --skillspace-focus: rgba(30, 177, 148, 0.15);
  /* Маскот (фоны) */
  --mascot-hero: url("../img/mascot-hero.png");
  --mascot-front: url("../img/mascot-front.png");
  --mascot-back: url("../img/mascot-back.png");
  --hero-scene: url("../img/hero-bg-mascot.jpg");
  --business-city-bg: url("../img/del-bg.jpg");
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  scroll-behavior: smooth;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

/* ===== NAVBAR (BeLanguage3 style) ===== */
.navbar {
  padding: 1rem 0;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-light) !important;
}

.navbar-brand {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-dark) !important;
}

.navbar-logo {
  display: block;
  height: auto;
  max-height: 4rem;
  width: auto;
  max-width: min(230px, 55vw);
  object-fit: contain;
}

.navbar-brand .text-muted {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted) !important;
}

.navbar .nav-link {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--text-dark) !important;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
}

.navbar .nav-link:hover {
  color: var(--primary-color) !important;
}

.navbar .btn-primary {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--primary-color) !important;
  border: none !important;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: var(--transition);
  width: auto;
}

.navbar .btn-primary:hover {
  background: var(--primary-dark) !important;
}

/* ===== HERO (сгенерированный фон + лёгкая подложка слева для текста) ===== */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 5.5rem 0 3.5rem;
  min-height: min(88vh, 920px);
  background-color: #e8eaef;
  background-image:
    linear-gradient(
      105deg,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.88) 22%,
      rgba(250, 248, 245, 0.55) 44%,
      rgba(255, 255, 255, 0) 70%
    ),
    var(--hero-scene);
  background-repeat: no-repeat;
  background-position: right center, right center;
  background-size: cover, cover;
}

/* Чуть плотнее зона под чтение на узких экранах */
@media (max-width: 991px) {
  .hero {
    min-height: min(78vh, 760px);
    padding-top: 4.25rem;
    padding-bottom: 2.5rem;
    background-image:
      linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.82) 50%,
        rgba(255, 255, 255, 0.35) 100%
      ),
      var(--hero-scene);
    background-position: center, 78% 50%;
  }
}

.hero .z-1 {
  z-index: 1;
}

.hero-greetings {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.hero-greetings span {
  display: inline-block;
  margin-right: 1rem;
}

.hero-greetings--compact {
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-eyebrow {
  margin-bottom: 0.5rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: rgba(218, 68, 82, 0.12);
  border: 1px solid rgba(218, 68, 82, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 36rem;
  color: var(--text-muted);
}

.hero-webinar-meta,
.hero-trial-meta {
  font-size: 1rem;
  color: var(--text-dark);
}

.hero-chips {
  max-width: 36rem;
}

.hero-chip {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.hero-trust-note {
  max-width: 32rem;
}

.hero-trial-call {
  max-width: 34rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(218, 68, 82, 0.18);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.hero-trial-call-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.25rem;
  color: var(--white);
  background: var(--primary-color);
  border-radius: 10px;
  font-size: 1.1rem;
}

.hero-trial-call-title {
  font-weight: 800;
  line-height: 1.2;
}

.hero-trial-call-text {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.45;
}

.hero-trial-btn {
  box-shadow: 0 10px 22px rgba(179, 56, 67, 0.18);
}

.trial-cta-section {
  padding: 4rem 0;
  background: var(--white);
}

.trial-cta-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--white);
  background:
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(120deg, var(--primary-color) 0%, var(--primary-dark) 72%, #7f2630 100%);
  border-radius: 24px;
  box-shadow: 0 22px 58px rgba(179, 56, 67, 0.22);
}

.trial-cta-card.cta-animate {
  opacity: 0;
  transform: scale(0.92) translateY(24px);
}

.trial-cta-card.cta-animate.cta-bounce-in {
  animation: ctaBounceIn 0.85s cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

@keyframes ctaBounceIn {
  0% {
    opacity: 0;
    transform: scale(0.88) translateY(36px);
  }
  55% {
    opacity: 1;
    transform: scale(1.03) translateY(-8px);
  }
  75% {
    transform: scale(0.985) translateY(3px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .trial-cta-card.cta-animate {
    opacity: 1;
    transform: none;
  }

  .trial-cta-card.cta-animate.cta-bounce-in {
    animation: none;
  }
}

.trial-cta-card > .row {
  position: relative;
  z-index: 1;
}

.trial-cta-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
}

.trial-cta-title {
  max-width: 42rem;
  font-size: clamp(2rem, 2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.trial-cta-text {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
}

.trial-cta-bonus {
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.55;
}

.trial-cta-tags li {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.45rem 0.8rem;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(27, 27, 35, 0.08);
}

.cta-trial-form {
  max-width: 420px;
  margin-left: auto;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(27, 27, 35, 0.18);
}

.trial-cta-note {
  color: var(--text-muted);
}

.cta-trial-form .form-label,
.cta-trial-form .form-check-label,
.trial-modal-dialog .form-label,
.trial-modal-dialog .form-check-label {
  color: var(--text-dark);
}

.cta-trial-form .form-check-label a,
.trial-modal-dialog .form-check-label a {
  color: var(--primary-dark);
  text-decoration: underline;
}

.cta-trial-form .form-control,
.trial-form .form-control {
  border-color: var(--border-light);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
}

.cta-trial-form .form-control:focus,
.trial-form .form-control:focus {
  border-color: rgba(218, 68, 82, 0.65);
  box-shadow: 0 0 0 0.2rem rgba(218, 68, 82, 0.12);
}

.cta-trial-form .btn-primary {
  width: 100% !important;
}

.cta-trial-form .btn-primary,
.trial-modal-dialog .trial-form .btn-primary {
  background-color: #17a34a !important;
  border-color: #17a34a !important;
  box-shadow: 0 10px 22px rgba(23, 163, 74, 0.24);
}

.cta-trial-form .btn-primary:hover,
.cta-trial-form .btn-primary:focus-visible,
.trial-modal-dialog .trial-form .btn-primary:hover,
.trial-modal-dialog .trial-form .btn-primary:focus-visible {
  background-color: #12823b !important;
  border-color: #12823b !important;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

/* Индикатор «онлайн» сразу после слова «онлайн» в том же ряду (оффлайн — обычно #dc2626) */
.hero-status-dot {
  display: inline-block;
  vertical-align: 0.14em;
  margin-left: 0.22em;
  width: 0.42em;
  height: 0.42em;
  min-width: 10px;
  min-height: 10px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.35);
}

.hero-highlights {
  padding: 0;
  margin: 0;
  max-width: 32rem;
}

.hero-highlight {
  align-items: flex-start;
  color: var(--text-dark);
}

.hero-highlight-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(218, 68, 82, 0.14);
  color: var(--primary-color);
  font-size: 1.5rem;
}

.hero-highlight-title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.hero-price-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.25rem 0.55rem;
  color: var(--white);
  background: #16a34a;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.hero-highlight-desc {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-muted);
  font-weight: 400;
}

.hero .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 2rem;
}

.hero .btn-primary {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--primary-color) !important;
  border: none;
  padding: 0.9rem 2rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: var(--transition);
  width: auto;
}

.hero .btn-primary:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
}

/* Вторичная кнопка в герое (тёмный контур под светлый фон) */
.btn-outline-hero,
.hero .btn-outline-hero {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, sans-serif;
  border: 2px solid var(--text-dark);
  color: var(--text-dark);
  padding: 0.9rem 2rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px;
  background: transparent;
  width: auto;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
}

.btn-outline-hero:hover,
.hero .btn-outline-hero:hover {
  border-color: var(--primary-color);
  color: var(--white);
  background: var(--primary-color);
}

.hero-visual {
  background: var(--white);
  border-radius: 12px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  text-align: center;
}

.hero-visual .chinese {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-visual .pinyin {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ===== SECTION LABELS (BeLanguage3 — боковые подписи) ===== */
.section-label {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.section-padding {
  padding: 80px 0;
}

/* Узнаваемые фоны с маскотом (лёгкий силуэт, не перетягивает контент) */
.section-mascot {
  position: relative;
  overflow: hidden;
}

.section-mascot--back::before,
.section-mascot--front::after,
.section-mascot--club::before,
.section-mascot--business::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-repeat: no-repeat;
}

.formats-section.section-mascot--front::after {
  left: -3%;
  top: 5%;
  width: min(44vw, 360px);
  height: min(44vw, 360px);
  background-image: var(--mascot-front);
  background-position: left top;
  background-size: contain;
  opacity: 0.09;
}

#club.club-hero.section-mascot--club::before {
  right: 2%;
  top: 10%;
  width: min(38vw, 300px);
  height: min(38vw, 300px);
  background-image: var(--mascot-hero);
  background-position: right top;
  background-size: contain;
  opacity: 0.1;
  filter: saturate(0.95);
}

/* Деловой китайский: тёмный блок с фото города (маскот отключён, чтобы не конкурировал с фоном) */
#business.business-hero.section-mascot--business::after {
  content: none;
}

#formats .container,
#club .container,
#business .container {
  position: relative;
  z-index: 1;
}

/* ===== ABOUT (BeLanguage3 — цитата + год) ===== */
.about-quote {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.about-year {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, sans-serif;
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.about-divider {
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  margin: 1.5rem 0;
}

.about-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* «О школе» — речь маскота: фигура + пузырь */
.about-mascot-narration {
  position: relative;
  background: linear-gradient(180deg, #faf9f7 0%, #ffffff 35%);
  border-top: 1px solid var(--border-light);
}

.about-mascot-figure {
  position: relative;
  display: inline-block;
  max-width: 280px;
  margin: 0 auto;
}

.about-mascot-img {
  width: 100%;
  height: auto;
  max-width: 220px;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.12));
}

/* Логотип в блоке «О школе» — чуть крупнее и мягче тень, чем у маскота */
.about-brand-logo {
  max-width: 260px;
  filter: drop-shadow(0 10px 22px rgba(15, 23, 42, 0.08));
}

@media (min-width: 576px) {
  .about-mascot-img {
    max-width: 100%;
  }

  .about-brand-logo {
    max-width: min(100%, 300px);
  }
}

.about-mascot-title {
  color: var(--text-dark);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about-mascot-bubble {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

.about-mascot-bubble::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 18px;
  background: var(--white);
  border-left: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: -2px 2px 0 rgba(255, 255, 255, 0.6);
}

/* Хвостик пузыря: на десктопе — слева к маскоту; на мобиле — снизу */
@media (max-width: 575.98px) {
  .about-mascot-bubble::before {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    border-right: 1px solid var(--border-light);
    border-left: none;
    border-top: 1px solid var(--border-light);
    border-bottom: none;
  }
}

.about-mascot-lead {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-mascot-lead strong {
  color: var(--text-dark);
  font-weight: 600;
}

.about-cards-intro {
  max-width: 40rem;
}

.skillspace-card {
  padding: 1.75rem;
  background: linear-gradient(135deg, rgba(218, 68, 82, 0.08), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(218, 68, 82, 0.18);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.skillspace-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.skillspace-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text-dark);
  font-size: 0.93rem;
  line-height: 1.45;
}

.skillspace-list i {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* ===== CARDS (BeLanguage3 — минималистичные карточки) ===== */
.card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  transition: var(--transition);
  background: var(--white);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card-title {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  color: var(--text-dark);
}

.card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.format-card {
  padding: 2.25rem 2rem;
}

.format-card .card-title {
  margin-bottom: 1rem;
}

.card-intro {
  margin-bottom: 0.75rem;
}

.card-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.format-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.format-list li {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.scroll-anchor-prices {
  scroll-margin-top: 5.5rem;
}

.format-price-block {
  border-color: var(--border-light) !important;
}

.format-price-info {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Секция форматов (включая тарифы в карточках) */
.formats-section {
  background: var(--bg-cream);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* ===== COURSES / PRICING (BeLanguage3 — карточки тарифов) ===== */
.course-card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2rem;
  height: 100%;
  background: var(--white);
  transition: var(--transition);
  position: relative;
}

.course-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.course-card .age-badge {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.course-card .age-label {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.course-card .price {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1rem 0;
}

.course-card .price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.course-card .features {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1rem 0;
  line-height: 1.7;
}

.course-card .btn {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, sans-serif;
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 0.9rem 1.75rem;
  width: auto;
}

/* ===== PRICE CARD (тарифы) ===== */
.price-card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.75rem;
  height: 100%;
  background: var(--white);
  transition: var(--transition);
}

.price-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.price-card h5 {
  font-weight: 600;
  color: var(--text-dark);
}

.price-card .btn-primary {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--primary-color) !important;
  border: none;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 0.9rem 1.5rem;
  width: auto;
}

/* ===== TEACHERS (BeLanguage3 — сетка преподавателей) ===== */
.teacher-card {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  transition: var(--transition);
}

.teacher-card:hover {
  box-shadow: var(--shadow-md);
}

.teacher-photo {
  aspect-ratio: 1;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}

/* Крупное фото сверху карточки (портретная зона под реальное фото) */
.teacher-card .teacher-photo.teacher-photo-slot {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  aspect-ratio: 4 / 5;
  min-height: 220px;
  max-height: 380px;
  font-size: clamp(2.25rem, 7vw, 4rem);
  flex-shrink: 0;
}

.teacher-photo-slot .teacher-photo-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Видеоприветствие: кнопка поверх фото (тот же кадр 4:5, что у карточки) */
.teacher-photo--has-video .teacher-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: background 0.2s ease;
}

.teacher-photo--has-video .teacher-video-overlay:hover {
  background: rgba(0, 0, 0, 0.42);
}

.teacher-video-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(218, 68, 82, 0.92);
  font-size: 1.65rem;
  line-height: 1;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, background 0.2s ease;
}

.teacher-video-overlay:hover .teacher-video-play {
  transform: scale(1.06);
  background: rgba(255, 255, 255, 0.58);
}

.teacher-video-dialog {
  max-width: min(460px, 98vw);
}

.teacher-video-dialog .modal-body {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.teacher-video-embed-wrap {
  position: relative;
  margin: 0 auto;
  /* Как у VK 333×592, не выше экрана: ширина подстраивается под высоту */
  width: min(440px, 98vw, calc(min(86vh, 760px) * 333 / 592));
  aspect-ratio: 333 / 592;
  background: #000;
  border-radius: 0.35rem;
  overflow: hidden;
}

.teacher-video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.trial-modal-dialog {
  max-width: min(1040px, 94vw);
}

.trial-modal-dialog .modal-content {
  color: var(--white);
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(120deg, var(--primary-color) 0%, var(--primary-dark) 72%, #7f2630 100%);
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(179, 56, 67, 0.28);
}

.trial-modal-dialog .modal-header {
  background: transparent;
  border-bottom: 0;
  color: var(--white);
  padding: 1.35rem 1.5rem 0;
}

.trial-modal-dialog .modal-title {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.trial-modal-dialog .modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: 1.25rem clamp(1.5rem, 4vw, 3rem) 2rem;
  background: transparent;
  text-align: left !important;
}

.trial-modal-copy {
  grid-column: 1;
  align-self: center;
}

.trial-modal-side {
  grid-column: 2;
  align-self: center;
}

.trial-modal-title-main {
  max-width: 36rem;
  color: var(--white);
  font-size: clamp(2rem, 1.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.trial-modal-lead {
  max-width: 34rem;
  margin-left: 0;
  margin-right: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
}

.trial-modal-bonus {
  max-width: 34rem;
  margin-left: 0;
  margin-right: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.5;
}

.trial-modal-tags {
  max-width: 34rem;
  margin-left: 0;
  margin-right: 0;
  justify-content: flex-start !important;
}

.trial-form {
  max-width: 360px;
}

.trial-modal-dialog .trial-form {
  margin-top: 0;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(27, 27, 35, 0.18);
  max-width: 100%;
}

.trial-form .btn-primary {
  min-width: 100%;
  width: 100% !important;
}

.trial-boost {
  max-width: 360px;
  margin: 0 auto;
  padding: 0.75rem 0.875rem;
  border: 1px solid rgba(218, 68, 82, 0.22);
  background: linear-gradient(135deg, rgba(218, 68, 82, 0.12), rgba(179, 56, 67, 0.08));
  border-radius: 0.75rem;
  color: var(--text-dark);
}

.trial-modal-messengers-title {
  color: rgba(255, 255, 255, 0.8) !important;
  text-align: center;
  font-size: 0.78rem;
}

.trial-modal-messengers {
  max-width: 100%;
}

.trial-modal-messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.42rem 0.65rem;
  color: var(--white) !important;
  color: var(--white) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
}

.trial-modal-messenger .vk-icon {
  width: 0.9em;
  height: 0.9em;
}

.trial-modal-messenger:hover {
  color: var(--primary-dark) !important;
  border-color: var(--white) !important;
  background: var(--white) !important;
}

.teacher-card .teacher-lead {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.teacher-card .teacher-subhead {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.teacher-card .teacher-list {
  font-size: 0.875rem;
  line-height: 1.55;
  padding-left: 1.1rem;
  margin-bottom: 0.75rem;
}

.teacher-card .teacher-list li {
  margin-bottom: 0.45rem;
}

.teacher-list--compact {
  font-size: 0.8125rem;
  line-height: 1.45;
  padding-left: 1rem;
}

.teacher-list--compact li {
  margin-bottom: 0.3rem;
}

.teacher-card .teacher-outro {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-dark);
  margin-bottom: 0;
}

.teacher-docs-block {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  text-align: left;
}

.teacher-docs-caption {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}

.teacher-card .teacher-docs-open {
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

.teacher-card .teacher-docs-open:hover {
  text-decoration: underline;
}

/* Lightbox документов преподавателя */
.teacher-doc-modal-body {
  background: #0f1218;
}

.teacher-doc-modal-body .teacher-doc-counter {
  color: rgba(255, 255, 255, 0.65);
}

.teacher-doc-viewport {
  min-height: 200px;
}

.teacher-doc-img {
  max-height: min(82vh, 900px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.teacher-doc-pdf {
  min-height: min(82vh, 900px);
  background: #1a1f2a;
}

.teacher-info {
  padding: 1.25rem;
}

.teacher-name {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.teacher-lang {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-color);
}

/* ===== ICONS SECTION (BeLanguage3 — иконки преимуществ) ===== */
.icon-block {
  text-align: center;
  padding: 2rem 1rem;
}

.icon-block .icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: var(--bg-cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.icon-block h6 {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.icon-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Разговорный клуб */
.club-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.club-hero {
  background: linear-gradient(180deg, #fffcfa 0%, #f5f2ef 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.business-hero {
  position: relative;
  overflow: hidden;
  background-color: #0a0d12;
  color: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

#business.business-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(118deg, rgba(6, 9, 14, 0.92) 0%, rgba(10, 14, 22, 0.78) 40%, rgba(14, 18, 28, 0.52) 100%),
    var(--business-city-bg);
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
  pointer-events: none;
}

.business-hero .section-label {
  color: #ffb4bc;
}

.business-hero h2,
.business-hero h5,
.business-hero p,
.business-hero li,
.business-hero .about-text {
  color: rgba(255, 255, 255, 0.94);
}

.business-hero .format-list li {
  color: rgba(255, 255, 255, 0.78);
}

.business-hero .card-note {
  color: rgba(255, 255, 255, 0.68) !important;
}

.business-panel {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #111;
}

/* Панель поверх тёмного фона: явно чёрный текст (перебивает .business-hero h5 / li / p) */
.business-hero .business-panel,
.business-hero .business-panel h5,
.business-hero .business-panel p,
.business-hero .business-panel li,
.business-hero .business-panel .list-unstyled,
.business-hero .business-panel .list-unstyled li {
  color: #111;
}

.business-hero .business-panel .text-primary-custom {
  color: var(--primary-color);
}

.club-panel {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

/* ===== TABS ===== */
.nav-tabs {
  border-bottom: 1px solid var(--border-light);
}

.nav-tabs .nav-link {
  font-family: 'Montserrat', sans-serif;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.5rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
}

.nav-tabs .nav-link:hover {
  color: var(--primary-color);
}

.nav-tabs .nav-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background: transparent;
}

/* ===== FOOTER ===== */
footer {
  background: var(--text-dark);
  color: #aaa;
  padding: 60px 0 30px;
  font-size: 0.875rem;
}

footer a, footer a:visited {
  color: #aaa !important;
  transition: var(--transition);
}

footer a:hover {
  color: var(--primary-color) !important;
}

.footer-logo-main {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #ffffff;
}

.footer-logo-sub {
  color: #dddddd;
}

.footer-logo-img {
  display: inline-block;
  width: auto;
  max-height: 4rem;
}

/* ===== BUTTONS (BeTheme — все кнопки; перебиваем синий Bootstrap) ===== */
.btn-primary {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border-radius: 8px !important;
  border: none !important;
  padding: 0.9rem 1.5rem !important;
  width: auto !important;
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  color: #fff !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
  opacity: 0.65;
}

.btn-outline-primary {
  font-family: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border-radius: 8px !important;
  border-width: 2px !important;
  padding: 0.9rem 1.5rem !important;
  width: auto !important;
  color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  background-color: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible,
.btn-outline-primary:active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: #fff !important;
}

/* ===== UTILITIES ===== */
.bg-primary-custom {
  background-color: var(--primary-color) !important;
}

/* ВКонтакте: в Bootstrap Icons нет bi-vk — SVG как у .bi по размеру */
.vk-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

.text-primary-custom {
  color: var(--primary-color) !important;
}

.bg-light {
  background: var(--bg-light) !important;
}

.contact-icons a {
  font-size: 1.5rem;
  margin-right: 12px;
  color: var(--primary-color);
  transition: var(--transition);
}

.contact-icons a:hover {
  opacity: 0.8;
  color: var(--primary-dark);
}

/* Юридические страницы (политика, оферта) */
.legal-page h1 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}
.legal-page h2.h5 {
  font-weight: 600;
}
.legal-page ul li {
  margin-bottom: 0.35rem;
}
.payment-page-intro {
  margin-bottom: 0;
}

.payment-page .form-check-label a {
  color: var(--primary-color);
  text-decoration: underline;
}
.payment-page .form-check-label a:hover {
  color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 991px) {
  .hero {
    padding: 3.5rem 0 1.5rem;
    min-height: auto;
  }

  .cta-trial-form {
    max-width: 100%;
    margin: 1rem 0 0;
  }

  .trial-modal-dialog .modal-body {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .trial-modal-copy,
  .trial-modal-side {
    grid-column: 1;
  }

  .trial-modal-dialog .trial-form {
    max-width: 100%;
  }

  .section-padding {
    padding: 50px 0;
  }

  .formats-section.section-mascot--front::after,
  #club.club-hero.section-mascot--club::before {
    opacity: 0.05;
  }
}

@media (max-width: 575.98px) {
  .trial-cta-card,
  .cta-trial-form,
  .skillspace-card {
    padding: 1.25rem;
    border-radius: 14px;
  }

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