/* ============================================================
   МарусШкола — дизайн-система
   Концепция: «школьная пропись» — направляющая линия под
   заголовками, чернильный индиго, медовый и бирюзовый акценты.
   ============================================================ */

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

:root {
  /* Палитра */
  --ink: #1E1B4B;          /* чернильный индиго — основной текст */
  --ink-soft: #4B4869;     /* приглушённый текст */
  --muted: #8E8BA8;        /* подписи */
  --paper: #FFFFFF;        /* карточки */
  --bg: #FAFAFC;           /* фон страницы */
  --line: #ECEAF3;         /* разделители */

  --violet: #6C5CE7;       /* основной бренд-акцент */
  --violet-deep: #5848D4;
  --honey: #F2A91B;        /* тёплый медовый */
  --teal: #14B8A6;         /* бирюзовый */
  --coral: #FB6F6F;        /* детский коралл */

  --ring: rgba(108, 92, 231, 0.4);
  --shadow-sm: 0 4px 14px rgba(30, 27, 75, 0.06);
  --shadow-md: 0 14px 34px rgba(30, 27, 75, 0.10);
  --shadow-lg: 0 28px 64px rgba(30, 27, 75, 0.14);

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --container: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.display { font-family: 'Comfortaa', cursive; font-weight: 700; letter-spacing: -0.01em; }

/* Подпись бренда: направляющая линия прописи под заголовком */
.ruled {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}
.ruled::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(
    90deg, var(--honey) 0 18px, transparent 18px 26px
  );
  border-radius: 3px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 14px 24px;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--violet); color: #fff; box-shadow: 0 10px 22px rgba(108, 92, 231, 0.28); }
.btn-primary:hover { background: var(--violet-deep); }

.btn-ghost { background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); }

.btn-honey { background: var(--honey); color: #3A2A00; box-shadow: 0 10px 22px rgba(242, 169, 27, 0.3); }
.btn-honey:hover { filter: brightness(1.04); }

.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn-block { width: 100%; }

.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 252, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--violet), var(--teal));
  display: grid; place-items: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.brand__mark svg { width: 24px; height: 24px; }
.brand__name { font-family: 'Comfortaa', cursive; font-weight: 700; font-size: 21px; }
.brand__name b { color: var(--violet); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink-soft); font-weight: 500; font-size: 15px; transition: color 0.15s; }
.site-nav a:hover { color: var(--violet); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 84px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--violet);
  font-weight: 600; font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.hero__eyebrow svg { width: 16px; height: 16px; }
.hero h1 {
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  margin: 22px 0 18px;
}
.hero h1 .accent { color: var(--violet); }
.hero__lead { font-size: 18px; color: var(--ink-soft); max-width: 500px; margin: 0 0 30px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust { display: flex; gap: 30px; margin-top: 34px; }
.hero__trust .num { font-family: 'Comfortaa', cursive; font-weight: 700; font-size: 26px; color: var(--ink); }
.hero__trust .lbl { font-size: 13px; color: var(--muted); }

/* Декоративные пятна */
.hero__decor { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero__decor span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.18; }
.hero__decor .d1 { width: 280px; height: 280px; background: var(--violet); top: -60px; left: -60px; }
.hero__decor .d2 { width: 320px; height: 320px; background: var(--teal); bottom: -100px; right: -40px; }
.hero__decor .d3 { width: 180px; height: 180px; background: var(--honey); top: 90px; right: 220px; }

/* Карточка-превью кабинета */
.preview {
  background: var(--paper);
  border-radius: var(--r-xl);
  padding: 26px;
  box-shadow: var(--shadow-lg);
}
.preview__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.preview__avatar { width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(135deg, var(--honey), var(--coral)); display: grid; place-items: center; font-size: 26px; }
.preview__name { font-family: 'Comfortaa', cursive; font-weight: 700; font-size: 17px; }
.preview__sub { font-size: 13px; color: var(--muted); }
.preview__row { display: flex; align-items: center; gap: 13px; padding: 12px 0; }
.preview__dot { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; }
.preview__row .t { font-weight: 600; font-size: 14px; }
.preview__row .s { font-size: 12px; color: var(--muted); }
.preview__check { margin-left: auto; color: var(--teal); }
.preview__check svg { width: 20px; height: 20px; }

/* ---------- Секции ---------- */
.section { padding: 84px 0; }
.section--paper { background: var(--paper); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section__head h2 { font-family: 'Comfortaa', cursive; font-weight: 700; font-size: clamp(28px, 4vw, 40px); margin: 0 0 14px; }
.section__head p { font-size: 17px; color: var(--ink-soft); margin: 0; }

/* Преимущества */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
}
.feature__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; }
.feature__icon svg { width: 27px; height: 27px; }
.feature h3 { font-family: 'Comfortaa', cursive; font-weight: 600; font-size: 19px; margin: 0 0 9px; }
.feature p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* Шаги (это реальная последовательность — нумерация уместна) */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 30px; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.step__n { font-family: 'Comfortaa', cursive; font-weight: 700; font-size: 15px; color: var(--violet); letter-spacing: 0.08em; }
.step h3 { font-family: 'Comfortaa', cursive; font-weight: 600; font-size: 19px; margin: 12px 0 9px; }
.step p { font-size: 15px; color: var(--ink-soft); margin: 0; }

/* Предметы */
.subjects { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.subject {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.subject:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.subject__icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 16px; color: #fff; }
.subject__icon svg { width: 28px; height: 28px; }
.subject h3 { font-family: 'Comfortaa', cursive; font-weight: 600; font-size: 17px; margin: 0 0 5px; }
.subject p { font-size: 13px; color: var(--muted); margin: 0; }

/* Блок заявки */
.lead-band { background: linear-gradient(135deg, var(--violet), var(--violet-deep)); }
.lead-band .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lead-band__text h2 { font-family: 'Comfortaa', cursive; font-weight: 700; font-size: clamp(28px, 4vw, 38px); color: #fff; margin: 0 0 16px; }
.lead-band__text p { color: rgba(255, 255, 255, 0.88); font-size: 17px; margin: 0 0 12px; }
.lead-band__text ul { list-style: none; padding: 0; margin: 22px 0 0; }
.lead-band__text li { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 13px; font-weight: 500; }
.lead-band__text li svg { width: 22px; height: 22px; color: var(--honey); flex-shrink: 0; }

.lead-form {
  background: var(--paper);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.lead-form h3 { font-family: 'Comfortaa', cursive; font-weight: 700; font-size: 22px; margin: 0 0 6px; }
.lead-form .hint { font-size: 14px; color: var(--muted); margin: 0 0 22px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 4px var(--ring);
}
.field-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-msg { padding: 12px 15px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.form-msg--error { background: #FFEDED; color: #D64545; }
.form-msg--success { background: #E6F8F3; color: #0E9384; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 14px; overflow: hidden; }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; text-align: left; padding: 20px 24px; background: none; border: none; cursor: pointer; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 16px; color: var(--ink); }
.faq__q svg { width: 20px; height: 20px; color: var(--violet); transition: transform 0.2s; flex-shrink: 0; }
.faq__item[open] .faq__q svg { transform: rotate(45deg); }
.faq__a { padding: 0 24px 20px; color: var(--ink-soft); font-size: 15px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--ink); color: #C7C4DE; padding: 56px 0 28px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer__grid h4 { color: #fff; font-family: 'Comfortaa', cursive; font-size: 16px; margin: 0 0 16px; }
.site-footer__grid a { display: block; color: #C7C4DE; font-size: 14px; margin-bottom: 10px; transition: color 0.15s; }
.site-footer__grid a:hover { color: #fff; }
.site-footer__brand .brand__name { color: #fff; }
.site-footer__about { font-size: 14px; line-height: 1.7; margin-top: 14px; max-width: 320px; }
.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--muted); }

/* ---------- Статические страницы (юр.) ---------- */
.legal { padding: 64px 0; }
.legal__inner { max-width: 760px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 48px; }
.legal h1 { font-family: 'Comfortaa', cursive; font-size: 32px; margin: 0 0 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal h2 { font-family: 'Comfortaa', cursive; font-size: 21px; margin: 32px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--violet); text-decoration: underline; }

/* ---------- Утилиты ---------- */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ---------- Преподаватели ---------- */
.teachers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.teacher-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.teacher-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.teacher-card__photo {
  height: 200px;
  background: linear-gradient(135deg, var(--violet), var(--teal));
  display: grid;
  place-items: center;
  position: relative;
}
.teacher-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-card__initials { font-family: 'Comfortaa', cursive; font-weight: 700; font-size: 48px; color: #fff; }
.teacher-card__exp {
  position: absolute; bottom: 12px; right: 12px;
  background: var(--honey); color: #3A2A00;
  font-weight: 700; font-size: 13px;
  padding: 6px 13px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
}
.teacher-card__exp svg { width: 15px; height: 15px; }
.teacher-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.teacher-card__subject { font-size: 13px; font-weight: 600; color: var(--violet); margin-bottom: 6px; }
.teacher-card__name { font-family: 'Comfortaa', cursive; font-weight: 700; font-size: 20px; margin: 0 0 8px; }
.teacher-card__tagline { font-size: 14px; color: var(--ink-soft); margin: 0 0 18px; flex: 1; }
.teacher-card__link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--violet); }
.teacher-card__link svg { width: 16px; height: 16px; transition: transform 0.15s; }
.teacher-card:hover .teacher-card__link svg { transform: translateX(3px); }

/* Детальная страница преподавателя */
.teacher-hero { padding: 56px 0; }
.teacher-hero__grid { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.teacher-hero__photo {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--violet), var(--teal));
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
}
.teacher-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.teacher-hero__initials { font-family: 'Comfortaa', cursive; font-weight: 700; font-size: 80px; color: #fff; }
.teacher-hero__subject { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); color: var(--violet); font-weight: 600; font-size: 14px; padding: 7px 16px; border-radius: 999px; }
.teacher-hero h1 { font-family: 'Comfortaa', cursive; font-weight: 700; font-size: clamp(30px, 4vw, 42px); margin: 18px 0 10px; }
.teacher-hero__tagline { font-size: 19px; color: var(--ink-soft); margin: 0 0 24px; }
.teacher-hero__meta { display: flex; gap: 28px; margin-bottom: 28px; flex-wrap: wrap; }
.teacher-hero__meta .item { display: flex; align-items: center; gap: 11px; }
.teacher-hero__meta .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(108,92,231,0.1); color: var(--violet); }
.teacher-hero__meta .ic svg { width: 22px; height: 22px; }
.teacher-hero__meta .num { font-family: 'Comfortaa', cursive; font-weight: 700; font-size: 20px; }
.teacher-hero__meta .lbl { font-size: 13px; color: var(--muted); }
.teacher-bio { font-size: 16px; line-height: 1.8; color: var(--ink-soft); }
.teacher-bio p { margin: 0 0 16px; }

/* Блок «зачем родителям» — преимущества с акцентом на пользу */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.value-card { display: flex; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.value-card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.value-card__icon svg { width: 24px; height: 24px; }
.value-card h3 { font-family: 'Comfortaa', cursive; font-weight: 600; font-size: 17px; margin: 0 0 7px; }
.value-card p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* ---------- Адаптив преподавателей ---------- */
@media (max-width: 760px) {
  .teacher-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .teacher-hero__photo { max-width: 280px; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .lead-band .container { grid-template-columns: 1fr; gap: 36px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 10px 0; width: 100%; }
  .site-nav .btn { width: 100%; margin-top: 8px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .hero__trust { gap: 22px; }
  .legal__inner { padding: 28px; }
  .site-footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Екран подяки після заявки ---------- */
.lead-thanks { text-align: center; padding: 24px 8px; animation: thanksIn 0.5s ease; }
.lead-thanks__check {
  width: 88px; height: 88px; margin: 0 auto 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), #0FA594);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 14px 34px rgba(20, 184, 166, 0.4);
  animation: thanksPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
.lead-thanks__check svg { width: 46px; height: 46px; }
.lead-thanks__title {
  font-family: 'Comfortaa', cursive; font-weight: 700;
  font-size: 28px; color: var(--ink); margin: 0 0 12px;
}
.lead-thanks__text { font-size: 16px; color: var(--ink-soft); margin: 0 auto 16px; max-width: 380px; line-height: 1.6; }
.lead-thanks__hint { font-size: 14px; color: var(--muted); margin: 0; }

@keyframes thanksIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes thanksPop { 0% { transform: scale(0); } 100% { transform: scale(1); } }

/* Beautiful lead thank-you modal */
.lead-thanks-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(25, 19, 63, .46);
    backdrop-filter: blur(8px);
    animation: leadThanksFadeIn .18s ease-out;
}

.lead-thanks-modal.is-closing {
    animation: leadThanksFadeOut .22s ease-in forwards;
}

.lead-thanks-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 28px;
    padding: 32px 28px 28px;
    text-align: center;
    box-shadow: 0 28px 90px rgba(25, 19, 63, .28);
    transform: translateY(0) scale(1);
    animation: leadThanksPop .28s cubic-bezier(.2,.9,.25,1.2);
}

.lead-thanks-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #6C5CE7, #26C6DA);
    color: #fff;
    font-size: 42px;
    font-weight: 900;
    box-shadow: 0 16px 32px rgba(108, 92, 231, .32);
}

.lead-thanks-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #19133F;
}

.lead-thanks-card p {
    margin: 0 0 10px;
    color: #5F5A72;
    font-size: 15px;
    line-height: 1.55;
}

.lead-thanks-main {
    font-weight: 800;
    color: #19133F !important;
}

.lead-thanks-note {
    margin: 18px 0 20px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #F4F2FB;
    color: #4F46E5;
    font-weight: 800;
}

.lead-thanks-btn {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 13px 24px;
    background: linear-gradient(135deg, #6C5CE7, #7C4DFF);
    color: #fff;
    font-weight: 900;
    font-size: 15px;
    box-shadow: 0 12px 26px rgba(108, 92, 231, .32);
}

.lead-thanks-btn:hover {
    transform: translateY(-1px);
}

@keyframes leadThanksFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes leadThanksFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes leadThanksPop {
    from { opacity: 0; transform: translateY(16px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
    .lead-thanks-card {
        padding: 28px 22px 24px;
        border-radius: 24px;
    }

    .lead-thanks-card h2 {
        font-size: 24px;
    }

    .lead-thanks-icon {
        width: 64px;
        height: 64px;
        font-size: 36px;
    }
}

.lead-thanks-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(25, 19, 63, .46);
    backdrop-filter: blur(8px);
}

.lead-thanks-card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-radius: 28px;
    padding: 32px 28px 28px;
    text-align: center;
    box-shadow: 0 28px 90px rgba(25, 19, 63, .28);
}

.lead-thanks-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #6C5CE7, #26C6DA);
    color: #fff;
    font-size: 42px;
    font-weight: 900;
}

.lead-thanks-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #19133F;
}

.lead-thanks-card p {
    margin: 0 0 10px;
    color: #5F5A72;
    font-size: 15px;
    line-height: 1.55;
}

.lead-thanks-main {
    font-weight: 800;
    color: #19133F !important;
}

.lead-thanks-note {
    margin: 18px 0 20px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #F4F2FB;
    color: #4F46E5;
    font-weight: 800;
}

.lead-thanks-btn {
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 13px 24px;
    background: linear-gradient(135deg, #6C5CE7, #7C4DFF);
    color: #fff;
    font-weight: 900;
    font-size: 15px;
}

/* Force white text on primary buttons */
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color:#fff!important;
}

.btn-primary svg{
    color:#fff!important;
    fill:currentColor;
}


/* ==========================================================
   Final teacher card photo style
   Keeps photo and placeholder blocks same height
   ========================================================== */
.teacher-card__photo {
    height:250px !important;
    min-height:250px !important;
    max-height:250px !important;
    background: linear-gradient(135deg, var(--violet), var(--teal)) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.teacher-card__photo img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center 15% !important;
}

.teacher-card__initials {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 768px) {
    .teacher-card__photo {
        height:250px !important;
        min-height:250px !important;
        max-height:250px !important;
    }
}
