/* =====================================================================
   Salsa Social — дизайн-система поверх Bootstrap 5.3
   Палитра: красный акцент / белый фон / чёрный текст
   ===================================================================== */

:root {
  --ss-red: #E01B24;
  --ss-red-dark: #B3141C;
  --ss-red-deep: #8A0F15;
  --ss-red-soft: #FFF1F2;
  --ss-black: #0B0B0B;
  --ss-ink: #111111;
  --ss-ink-2: #3D3D3D;
  --ss-muted: #6B6B6B;
  --ss-line: #E7E7E7;
  --ss-bg: #FFFFFF;
  --ss-bg-2: #F7F7F8;
  --ss-radius: 20px;
  --ss-radius-sm: 14px;
  --ss-radius-lg: 28px;
  --ss-shadow: 0 10px 30px rgba(17, 17, 17, .08);
  --ss-shadow-lg: 0 24px 60px rgba(17, 17, 17, .14);
  --ss-shadow-red: 0 14px 34px rgba(224, 27, 36, .32);

  --bs-primary: #E01B24;
  --bs-primary-rgb: 224, 27, 36;
  --bs-body-color: #111111;
  --bs-body-bg: #FFFFFF;
  --bs-border-radius: 14px;
  --bs-font-sans-serif: 'Onest', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-link-color: #E01B24;
  --bs-link-hover-color: #B3141C;
}

/* --------------------------- База ---------------------------------- */
* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--bs-font-sans-serif);
  color: var(--ss-ink);
  background: var(--ss-bg);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .display-1, .display-2, .display-3 {
  font-family: 'Onest', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
  color: var(--ss-ink);
}

h1 { font-size: clamp(2rem, 5.2vw, 4.25rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

a { text-decoration: none; transition: color .2s ease, opacity .2s ease; }

.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section-sm { padding: clamp(1.5rem, 3vw, 2.4rem) 0; }
.section-dark { background: var(--ss-black); color: #fff; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-soft { background: var(--ss-bg-2); }
.section-red { background: var(--ss-red); color: #fff; }
.section-red h1, .section-red h2, .section-red h3 { color: #fff; }

/* Уменьшенные боковые отступы до края экрана */
@media (min-width: 576px) {
  .container, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
    --bs-gutter-x: 1.5rem;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
  }
}
@media (min-width: 1400px) {
  .container, .container-lg, .container-xl, .container-xxl { max-width: 1320px; }
}

.text-muted-2 { color: var(--ss-muted) !important; }
.text-red { color: var(--ss-red) !important; }
.fw-800 { font-weight: 800; }
.fw-900 { font-weight: 900; }

.lead-2 { font-size: clamp(1rem, 1.5vw, 1.175rem); color: var(--ss-ink-2); line-height: 1.7; }

/* Заголовок секции */
.section-head { max-width: 780px; margin-bottom: clamp(1.75rem, 3.5vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ss-red); margin-bottom: .85rem;
}
.eyebrow::before {
  content: ''; width: 26px; height: 3px; border-radius: 3px; background: var(--ss-red);
}
.section-head--center .eyebrow::before { display: none; }
.section-dark .eyebrow { color: #FF6B72; }
.section-dark .eyebrow::before { background: #FF6B72; }

/* --------------------------- Кнопки -------------------------------- */
.btn {
  --bs-btn-padding-y: .8rem;
  --bs-btn-padding-x: 1.5rem;
  font-weight: 700;
  border-radius: 100px;
  font-size: .97rem;
  transition: transform .18s ease, box-shadow .22s ease, background-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-ss-red {
  background: var(--ss-red); color: #fff; border: 2px solid var(--ss-red);
  box-shadow: var(--ss-shadow-red);
}
.btn-ss-red:hover, .btn-ss-red:focus { background: var(--ss-red-dark); border-color: var(--ss-red-dark); color: #fff; transform: translateY(-2px); }

.btn-ss-dark { background: var(--ss-black); color: #fff; border: 2px solid var(--ss-black); }
.btn-ss-dark:hover { background: #000; color: #fff; transform: translateY(-2px); }

.btn-ss-outline { background: transparent; color: var(--ss-ink); border: 2px solid var(--ss-ink); }
.btn-ss-outline:hover { background: var(--ss-ink); color: #fff; transform: translateY(-2px); }

.btn-ss-white { background: #fff; color: var(--ss-ink); border: 2px solid #fff; }
.btn-ss-white:hover { background: #f2f2f2; color: var(--ss-ink); transform: translateY(-2px); }

.btn-ss-ghost-light { background: rgba(255,255,255,.1); color: #fff; border: 2px solid rgba(255,255,255,.35); }
.btn-ss-ghost-light:hover { background: #fff; color: var(--ss-ink); border-color: #fff; }

.btn-lg { --bs-btn-padding-y: 1rem; --bs-btn-padding-x: 2rem; font-size: 1.03rem; }
.btn-sm { --bs-btn-padding-y: .5rem; --bs-btn-padding-x: 1rem; font-size: .86rem; }

/* --------------------------- Плашки / бейджи ----------------------- */
.badge-ss {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .85rem; border-radius: 100px;
  font-size: .76rem; font-weight: 800; letter-spacing: .02em;
  background: var(--ss-red-soft); color: var(--ss-red-dark);
}
.badge-ss--red { background: var(--ss-red); color: #fff; }
.badge-ss--dark { background: var(--ss-black); color: #fff; }
.badge-ss--glass { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(6px); }

.badge-level {
  display: inline-block; padding: .2rem .6rem; border-radius: 8px;
  font-size: .72rem; font-weight: 800; background: #EFEFEF; color: var(--ss-ink-2);
  white-space: nowrap;
}
.badge-level.is-new { background: #E8F4FF; color: #0A5AA8; }
.badge-level.is-mid { background: #FFF4E0; color: #9A6100; }
.badge-level.is-pro { background: #F0E9FF; color: #5B2BC4; }

/* --------------------------- Карточки ------------------------------ */
.card-ss {
  background: #fff; border: 1px solid var(--ss-line); border-radius: var(--ss-radius);
  overflow: hidden; height: 100%;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.card-ss:hover { transform: translateY(-6px); box-shadow: var(--ss-shadow-lg); border-color: transparent; }

.card-media {
  position: relative; overflow: hidden; background: var(--ss-bg-2);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.card-ss:hover .card-media img { transform: scale(1.06); }

.ratio-ss-4x3 { aspect-ratio: 4/3; }
.ratio-ss-3x4 { aspect-ratio: 3/4; }
.ratio-ss-1x1 { aspect-ratio: 1/1; }
.ratio-ss-16x9 { aspect-ratio: 16/9; }

.card-media--dark::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.78) 100%);
}

/* --------------------------- Hero ---------------------------------- */
.hero {
  position: relative; background: var(--ss-black); color: #fff;
  min-height: clamp(600px, 88vh, 860px);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
/* Фон — цветной и контрастный, без размытия */
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 1; filter: saturate(1.28) contrast(1.12) brightness(1.03);
}
/* Затемнение только под текстом: слева плотнее, справа картинка открыта */
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(760px 480px at 80% 18%, rgba(224,27,36,.26), transparent 66%),
    linear-gradient(96deg,
      rgba(8,8,8,.93) 0%,
      rgba(8,8,8,.85) 30%,
      rgba(8,8,8,.52) 56%,
      rgba(8,8,8,.12) 80%,
      rgba(8,8,8,.04) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: #FF3B44; }
.hero__sub { color: rgba(255,255,255,.88); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 620px; }

/* Лого + название школы в hero */
.hero-brand {
  display: flex; align-items: center; gap: clamp(.75rem, 2vw, 1.25rem);
  margin-bottom: clamp(1rem, 2.5vw, 1.75rem);
}
.hero-brand__logo {
  height: clamp(46px, 7vw, 80px); width: auto; display: block;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.6));
}
.hero-brand__text { line-height: 1.15; }
.hero-brand__text strong {
  display: block; color: #fff; font-weight: 900;
  font-size: clamp(1.3rem, 3.2vw, 2.3rem); letter-spacing: -.02em;
}
.hero-brand__text span {
  display: block; color: rgba(255,255,255,.75);
  font-size: clamp(.7rem, 1.25vw, .92rem); font-weight: 600; margin-top: .15rem;
}

/* На мобильных текст по всей ширине — затемняем равномернее */
@media (max-width: 991.98px) {
  .hero__bg::after {
    background:
      radial-gradient(520px 420px at 72% 14%, rgba(224,27,36,.28), transparent 68%),
      linear-gradient(180deg, rgba(8,8,8,.52) 0%, rgba(8,8,8,.74) 45%, rgba(8,8,8,.92) 100%);
  }
}

/* На мобильных увеличиваем боковые отступы контента hero */
@media (max-width: 767.98px) {
  .hero__inner { padding-left: 1.35rem; padding-right: 1.35rem; }
  .hero h1 { font-size: clamp(1.75rem, 8.5vw, 2.4rem); }
  .hero__sub { font-size: 1rem; }
  .hero-stats { gap: 1.1rem 1.6rem; }
}

.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.75rem); }
.hero-stat__value { font-family: 'Onest', sans-serif; font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.35rem); color: #fff; line-height: 1; }
.hero-stat__label { font-size: .82rem; color: rgba(255,255,255,.62); margin-top: .4rem; }

/* Плашка-«стикер» на hero */
.hero-sticker {
  position: absolute; right: clamp(1rem, 5vw, 4rem); top: clamp(3.5rem, 9vw, 6rem);
  width: clamp(120px, 13vw, 168px); height: clamp(120px, 13vw, 168px); z-index: 3;
  border-radius: 50%; background: var(--ss-red); color: #fff;
  display: grid; place-items: center; text-align: center;
  font-weight: 800; font-size: clamp(.72rem, 1.1vw, .86rem); line-height: 1.25;
  box-shadow: var(--ss-shadow-red);
  animation: ss-float 6s ease-in-out infinite;
}
@keyframes ss-float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }

/* Блок «Школа в цифрах» — с отступом от hero */
.stats-section { padding-top: clamp(1.5rem, 3.5vw, 2.75rem); padding-bottom: clamp(1.5rem, 3.5vw, 2.75rem); }

/* --------------------------- Навигация ----------------------------- */
.site-header { position: sticky; top: 0; z-index: 1030; }

/* Реальная высота шапки — нужна для расчёта «влезает в экран» */
body { --ss-header-h: 76px; }
@media (min-width: 992px) { body { --ss-header-h: 84px; } }
.topbar {
  background: var(--ss-black); color: rgba(255,255,255,.75);
  font-size: .76rem; padding: .12rem 0; line-height: 1.5;
}
.topbar a { color: rgba(255,255,255,.82); }
.topbar a:hover { color: #fff; }
.topbar .vk-round-sm { width: 16px; height: 16px; font-size: .48rem; }

.navbar-ss {
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ss-line);
  padding: 0;
  min-height: 52px;
  transition: box-shadow .25s ease;
}
.navbar-ss .container { min-height: 52px; align-items: center; }
.navbar-ss .navbar-collapse { align-items: center; }
.navbar-ss .navbar-nav { align-items: center; }

/* Логотип + подпись «Школа Танцев СПБ» справа от лого */
.brand-logo { height: 30px; width: auto; display: block; }
.brand-sub {
  font-size: .7rem; line-height: 1.15; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ss-ink); white-space: nowrap;
}
.brand-sub span { display: block; color: var(--ss-red); }
/* Подпись в шапке на мобильном: справа от лого */
.brand-sub-mobile {
  display: block; font-size: .62rem; line-height: 1.1; font-weight: 800;
  text-transform: uppercase; letter-spacing: .03em; color: var(--ss-ink);
}
.brand-sub-mobile span { display: block; color: var(--ss-red); }
.footer-logo { height: 44px; width: auto; display: block; }
.navbar-brand-ss { display: flex; align-items: center; gap: .55rem; }

/* Круглые иконочные кнопки */
.btn-round {
  width: 36px; height: 36px; padding: 0 !important; border-radius: 50% !important;
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; font-size: .98rem; line-height: 1;
}
.btn-round-sm { width: 32px; height: 32px; font-size: .88rem; }

/* Цветные круглые кнопки кабинета и корзины */
.btn-round-account {
  background: linear-gradient(135deg, #2B2B2B, #0B0B0B); color: #fff !important;
  border: 0 !important; box-shadow: 0 6px 16px rgba(11,11,11,.28);
}
.btn-round-account:hover { background: linear-gradient(135deg, #3A3A3A, #161616); color: #fff !important; transform: translateY(-2px); }
.btn-round-cart {
  background: linear-gradient(135deg, #FF3B44, #C4141C); color: #fff !important;
  border: 0 !important; box-shadow: 0 6px 16px rgba(224,27,36,.34); position: relative;
}
.btn-round-cart:hover { background: linear-gradient(135deg, #FF4E56, #D01820); color: #fff !important; transform: translateY(-2px); }
.btn-round-cart__count {
  position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 100px; background: #fff; color: var(--ss-red);
  font-size: .62rem; font-weight: 800; display: none; align-items: center; justify-content: center;
}
.btn-round-cart__count.is-visible { display: inline-flex; }

/* Компактная кнопка «Пробное занятие» в хедере — в одну строку, вдвое ниже */
.btn-trial-header {
  --bs-btn-padding-y: .34rem; --bs-btn-padding-x: 1rem;
  font-size: .84rem; line-height: 1.2; white-space: nowrap;
  display: inline-flex; align-items: center; height: 34px;
}

/* Иконка ВК (текстовая, без внешних файлов) */
.icon-vk { font-weight: 800; font-style: normal; line-height: 1; letter-spacing: -.02em; }
.vk-round {
  width: 36px; height: 36px; border-radius: 50%; background: #0077FF; color: #fff !important;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .7rem; flex: 0 0 auto;
  transition: transform .18s ease, background-color .2s ease;
}
.vk-round:hover { background: #0060CC; transform: translateY(-2px); color: #fff; }
.vk-round-sm { width: 32px; height: 32px; font-size: .64rem; }
.navbar-ss.is-scrolled { box-shadow: 0 8px 26px rgba(17,17,17,.08); }

.navbar-ss .nav-link {
  font-weight: 700; color: var(--ss-ink); font-size: .9rem;
  padding: .45rem .7rem !important; border-radius: 100px;
}
.navbar-ss .nav-link:hover { color: var(--ss-red); }
.navbar-ss .nav-link.active { color: var(--ss-red); background: var(--ss-red-soft); }

/* Мобильное меню */
.offcanvas-ss { width: min(88vw, 380px); }
.offcanvas-ss .nav-link { font-size: 1.02rem; font-weight: 700; padding: .6rem .25rem; border-bottom: 1px solid var(--ss-line); }

/* Мобильное нижнее меню: 5 иконок-кнопок, компактное по высоте */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
  background: rgba(255,255,255,.98); backdrop-filter: blur(14px);
  border-top: 1px solid var(--ss-line);
  padding: .16rem .2rem calc(.16rem + env(safe-area-inset-bottom));
  display: none;
  box-shadow: 0 -4px 18px rgba(17,17,17,.08);
}
.mobile-nav {
  display: flex; width: 100%; align-items: flex-end; justify-content: space-between;
}
.mobile-nav__item {
  flex: 1 1 0; min-width: 0; border: 0; background: transparent;
  display: flex; flex-direction: column; align-items: center; gap: .06rem;
  padding: .14rem .08rem; color: var(--ss-muted); text-decoration: none;
  font-size: .56rem; font-weight: 700; line-height: 1.05;
}
.mobile-nav__item i { font-size: 1.02rem; line-height: 1; }
.mobile-nav__item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mobile-nav__item.is-active { color: var(--ss-red); }

/* Центральная кнопка — запись на пробное */
.mobile-nav__item--cta { flex: 0 0 auto; margin-top: -13px; }
.mobile-nav__item--cta .mobile-nav__circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #FF3B44, #C4141C); color: #fff;
  display: grid; place-items: center; font-size: 1.1rem;
  box-shadow: 0 5px 14px rgba(224,27,36,.4);
  border: 2.5px solid #fff;
}
.mobile-nav__item--cta span { color: var(--ss-red); margin-top: .06rem; }
@media (max-width: 991.98px) {
  .mobile-cta { display: block; }
  body { padding-bottom: 52px; }
}

/* --------------------------- Расписание ---------------------------- */
/* Табы филиалов: на schedule.php — селектор .sched-studios, на главной — #schedule */
.sched-studios, #schedule .sched-studios { scrollbar-width: none; padding-bottom: .1rem; }
.sched-studios::-webkit-scrollbar, #schedule .sched-studios::-webkit-scrollbar { display: none; }
.sched-studios .nav-item, #schedule .sched-studios .nav-item { flex: 0 0 auto; }
.sched-studios .btn, #schedule .sched-studios .btn { border-radius: 100px; }
@media (max-width: 575.98px) {
  .sched-studios .btn, #schedule .sched-studios .btn { font-size: .8rem; padding: .38rem .7rem; }
}

/* Кнопки дней недели — переключают слайды */
.sched-days { display: flex; flex-wrap: nowrap; gap: .3rem; overflow-x: auto; padding-bottom: .2rem; }
.sched-days__btn {
  flex: 1 1 0; min-width: 0; border: 1px solid var(--ss-line); background: #fff;
  border-radius: 100px; padding: .45rem .6rem; font-weight: 700; font-size: .84rem;
  color: var(--ss-ink); white-space: nowrap; transition: all .2s ease;
}
.sched-days__btn:hover { border-color: var(--ss-red); color: var(--ss-red); }
.sched-days__btn.active { background: var(--ss-red); border-color: var(--ss-red); color: #fff; }
.sched-days__short { display: none; }

/* Панель одного дня */
.sched-day-panel { background: #fff; border: 1px solid var(--ss-line); border-radius: var(--ss-radius); padding: 1.15rem; }

/* Мобильные: 1 день в слайде, сокращённые подписи дней */
@media (max-width: 767.98px) {
  .sched-days { gap: .22rem; }
  .sched-days__btn { padding: .42rem .1rem; font-size: .76rem; }
  .sched-days__full { display: none; }
  .sched-days__short { display: inline; }
  .sched-day-panel { padding: .9rem; }
}
/* Десктоп: 2 дня в слайде */
@media (min-width: 768px) {
  .sched-slider .carousel-item .sched-day-panel { min-height: 380px; }
}

/* Счётчик занятий */
.schedule-top { padding-top: clamp(.9rem, 2vw, 1.4rem); }

.lesson-row {
  display: grid; grid-template-columns: 84px 1fr auto; gap: .75rem; align-items: center;
  padding: .7rem .85rem; border: 1px solid var(--ss-line); border-radius: var(--ss-radius-sm);
  background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.lesson-row:hover { border-color: var(--ss-red); box-shadow: var(--ss-shadow); }
.lesson-row__time { font-weight: 800; font-size: .92rem; letter-spacing: -.02em; }
/* Название занятия + тег уровня справа сверху */
.lesson-row__head { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.lesson-row__head .lesson-row__tags { margin-top: 0; flex: 0 0 auto; justify-content: flex-end; }
.lesson-row__title { font-weight: 700; font-size: .92rem; line-height: 1.3; min-width: 0; }
.lesson-row__meta { display: flex; flex-wrap: wrap; gap: .2rem .75rem; font-size: .78rem; color: var(--ss-muted); margin-top: .2rem; overflow-wrap: anywhere; }
.lesson-row__meta i { color: var(--ss-red); }
.lesson-row__tags { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-top: .3rem; }
.tag-new { background: var(--ss-red); color: #fff; padding: .16rem .5rem; border-radius: 7px; font-size: .68rem; font-weight: 800; }
.lesson-row__btn { white-space: nowrap; }

@media (max-width: 767.98px) {
  .lesson-row { grid-template-columns: 1fr auto; gap: .5rem; padding: .65rem .7rem; }
  .lesson-row__time { grid-column: 1 / -1; font-size: .85rem; color: var(--ss-red); }
}

/* Фильтры */
.filter-bar { background: #fff; border: 1px solid var(--ss-line); border-radius: var(--ss-radius); padding: 1rem; }
.form-control-ss, .form-select-ss {
  border: 1.5px solid var(--ss-line); border-radius: 12px; padding: .65rem .9rem;
  font-size: .93rem; font-weight: 600; color: var(--ss-ink);
}
.form-control-ss:focus, .form-select-ss:focus {
  border-color: var(--ss-red); box-shadow: 0 0 0 4px rgba(224,27,36,.12);
}

/* --------------------------- Преподаватели ------------------------- */
.teacher-card .card-media { aspect-ratio: 3/4; }
.teacher-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.15rem; z-index: 2; color: #fff; }
.teacher-card__name { font-weight: 800; font-size: 1.05rem; color: #fff; }
.teacher-card__styles { font-size: .8rem; color: rgba(255,255,255,.78); }

/* Мобильные: компактнее сетка и кнопки стилей */
@media (max-width: 767.98px) {
  .teachers-grid { --bs-gutter-x: .5rem; --bs-gutter-y: .5rem; }
  .teachers-grid > [class*="col-"] { padding-right: .25rem; padding-left: .25rem; }
  .teacher-card .card-media { aspect-ratio: 3/4; }
  .teacher-card__body { padding: .5rem .55rem; }
  .teacher-card__name { font-size: .78rem; line-height: 1.2; }
  .teacher-card__styles { font-size: .64rem; line-height: 1.25; }
  /* Кнопки фильтра по стилям — меньше на 20% */
  .style-chips .btn {
    --bs-btn-padding-y: .3rem; --bs-btn-padding-x: .62rem;
    font-size: .72rem; line-height: 1.2;
  }
  .style-chips { gap: .3rem !important; }
}
.style-chips .btn { white-space: nowrap; }

/* Блок основателя — первым в разделе */
.founder-block {
  display: grid; grid-template-columns: 300px 1fr; gap: 1.75rem;
  align-items: start; margin-bottom: 2.25rem;
  border: 1.5px solid var(--ss-line); border-radius: 18px;
  padding: 1.5rem; background: #fff;
}
.founder-block__media { border-radius: 14px; overflow: hidden; aspect-ratio: 3/4; background: #f1f1f1; }
.founder-block__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-block__badge {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #fff; background: var(--ss-red);
  border-radius: 999px; padding: .3rem .75rem; margin-bottom: .6rem;
}
.founder-block__name { font-size: 1.6rem; font-weight: 800; margin-bottom: .5rem; }
.founder-block__text { color: var(--ss-muted, #5b5b5b); margin-bottom: 1rem; }
@media (max-width: 767.98px) {
  .founder-block { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
  .founder-block__media { max-width: 220px; }
  .founder-block__name { font-size: 1.25rem; }
  .founder-block__text { font-size: .92rem; }
}

/* --------------------------- Цены ---------------------------------- */
.price-card { position: relative; }
.price-card--featured { border: 2px solid var(--ss-red); box-shadow: var(--ss-shadow-red); }
.price-card__ribbon {
  position: absolute; top: 14px; right: 14px; z-index: 3;
}
.price-card__value { font-family: 'Onest', sans-serif; font-weight: 800; font-size: clamp(1.65rem, 3.2vw, 2.3rem); letter-spacing: -.03em; }
.price-card__list { list-style: none; padding: 0; margin: 1rem 0 0; }
.price-card__list li { display: flex; gap: .6rem; align-items: flex-start; font-size: .89rem; color: var(--ss-ink-2); padding: .3rem 0; }
.price-card__list i { color: var(--ss-red); margin-top: .18rem; }

.per-lesson { font-size: .8rem; color: var(--ss-muted); }

/* --------------------------- Мероприятия --------------------------- */
.event-card__date {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  background: #fff; border-radius: 12px; padding: .45rem .7rem; text-align: center;
  box-shadow: var(--ss-shadow);
}
.event-card__date strong { display: block; font-family: 'Onest', sans-serif; font-size: 1.15rem; line-height: 1; }
.event-card__date span { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ss-muted); font-weight: 800; }

/* Вертикальный постер мероприятия */
.poster-card { position: relative; display: block; height: 100%; color: var(--ss-ink); }
.poster-card__media {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--ss-radius);
  overflow: hidden; background: #111;
}
.poster-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.poster-card:hover .poster-card__media img { transform: scale(1.05); }
.poster-card__grad {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,.82) 100%);
}
.poster-card__top { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 3; display: flex; justify-content: space-between; gap: .5rem; }
.poster-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 1.1rem; color: #fff; }
.poster-card__title { font-weight: 800; font-size: 1.02rem; line-height: 1.25; color: #fff; margin-bottom: .4rem; }
.poster-card__meta { font-size: .78rem; color: rgba(255,255,255,.78); line-height: 1.5; }
.poster-card__price { font-weight: 800; font-size: 1.1rem; color: #fff; }
.poster-card__date-chip {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--ss-red); color: #fff; border-radius: 12px; padding: .4rem .6rem; min-width: 52px;
  font-weight: 800; line-height: 1;
}
.poster-card__date-chip b { font-size: 1.15rem; }
.poster-card__date-chip i { font-style: normal; font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; opacity: .9; }
.poster-card__type {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  background: var(--ss-red); color: #fff; border-radius: 8px;
  padding: .22rem .55rem; font-size: .68rem; font-weight: 800; text-transform: lowercase;
  max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Мобильная карточка мероприятия: постер сверху, текст чёрным под ним */
@media (max-width: 767.98px) {
  .poster-card { display: flex; flex-direction: column; height: 100%; }
  .poster-card__media { aspect-ratio: 1 / 1; border-radius: var(--ss-radius-sm) var(--ss-radius-sm) 0 0; }
  .poster-card__grad { display: none; }
  .poster-card__body {
    position: static; padding: .7rem .15rem 0; color: var(--ss-ink);
    display: flex; flex-direction: column; flex-grow: 1;
  }
  .poster-card__title { color: var(--ss-ink); font-size: .88rem; margin-bottom: .3rem; }
  .poster-card__meta { color: var(--ss-muted); font-size: .72rem; line-height: 1.45; }
  .poster-card__meta i { color: var(--ss-red); }
  .poster-card__price { color: var(--ss-ink); font-size: .95rem; }
  /* Дата — обычная плашка, не поверх картинки */
  .poster-card__top { position: absolute; top: 8px; left: 8px; right: 8px; }
  .poster-card__date-chip { min-width: 40px; padding: .26rem .4rem; border-radius: 9px; }
  .poster-card__date-chip b { font-size: .92rem; }
  .poster-card__date-chip i { font-size: .54rem; }
  /* Кнопка «Билет» — в одну строку с иконкой, ниже на 40% */
  .poster-card__body .btn {
    --bs-btn-padding-y: .24rem; --bs-btn-padding-x: .6rem;
    font-size: .74rem; height: 26px; line-height: 1;
    display: inline-flex; align-items: center; white-space: nowrap;
  }
  .poster-card__body .btn i { font-size: .8rem; }
  .poster-card__body .d-flex { margin-top: auto !important; padding-top: .5rem; }
}
@media (min-width: 768px) {
  .poster-card__type { top: 12px; right: 12px; font-size: .72rem; }
}

/* --------------------------- Галерея ------------------------------- */
/*
  Плитка без обрезки: фото вписывается целиком (object-fit: contain),
  фон — размытая копия, поэтому пустот не видно.
  Сетка квадратная: ячейки 1:1, вертикальные фото занимают 2 ряда.
*/
.gallery-tile { position: relative; overflow: hidden; border-radius: var(--ss-radius-sm); display: block; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .6rem;
}
/* Каждая ячейка — квадрат */
.gallery-grid > .g-cell { aspect-ratio: 1 / 1; }

/* Вертикальные фото занимают 2 ряда (2 квадрата в высоту, 1 в ширину) */
.gallery-grid > .g-cell.is-portrait { grid-row: span 2; aspect-ratio: auto; }

/* Главная: картинки кратно 4 — 8 или 12 плиток, ровные ряды */
.gallery-grid--home > .g-cell:nth-child(n+9) { display: none; }

@media (max-width: 991.98px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid--home > .g-cell:nth-child(n+7) { display: none; }
}
@media (max-width: 575.98px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .4rem; }
  .gallery-grid--home > .g-cell:nth-child(n+5) { display: none; }
}

/* Фото целиком, без обрезки; фон — размытая копия того же кадра */
.g-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(22px) saturate(1.2); transform: scale(1.15); opacity: .55; }
.g-full { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; display: block; }

.g-cell { position: relative; border-radius: var(--ss-radius-sm); overflow: hidden; background: #111; }
.g-cell img { transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.g-cell:hover img.g-full { transform: scale(1.04); }

/* --------------------------- Инфографика (цифры) ------------------- */
.stats-panel {
  background: var(--ss-black); color: #fff;
  border-radius: var(--ss-radius-lg);
  padding: clamp(1.75rem, 4vw, 3rem);
  position: relative; overflow: hidden;
}
.stats-panel::before {
  content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(224,27,36,.42), transparent 68%);
}
.stats-panel__grid {
  display: grid; gap: 1px; background: rgba(255,255,255,.1);
  border-radius: var(--ss-radius); overflow: hidden; position: relative; z-index: 2;
  grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 1199.98px) { .stats-panel__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px)  { .stats-panel__grid { grid-template-columns: repeat(2, 1fr); } }

.stat-tile {
  background: #101010; padding: clamp(1.1rem, 2.4vw, 1.9rem) 1rem;
  text-align: center; transition: background-color .25s ease;
}
.stat-tile:hover { background: #171717; }
.stat-tile__icon {
  width: 46px; height: 46px; margin: 0 auto .8rem; border-radius: 14px;
  display: grid; place-items: center; font-size: 1.25rem;
  background: rgba(224,27,36,.16); color: #FF5A61;
}
.stat-tile__value {
  font-family: 'Onest', sans-serif; font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1; color: #fff; letter-spacing: -.03em;
}
.stat-tile__value small { font-size: .5em; font-weight: 700; color: #FF5A61; }
.stat-tile__label { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: .5rem; line-height: 1.35; }

/* --------------------------- Филиалы ------------------------------- */
.studio-card { border-radius: var(--ss-radius); border: 1px solid var(--ss-line); background: #fff; padding: 1.4rem; height: 100%; }
.studio-card__icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--ss-red-soft); color: var(--ss-red);
  display: grid; place-items: center; font-size: 1.3rem; margin-bottom: .9rem;
}

/* --------------------------- Формы --------------------------------- */
.form-ss label { font-weight: 700; font-size: .87rem; margin-bottom: .35rem; color: var(--ss-ink); }
.form-ss .form-control, .form-ss .form-select {
  border: 1.5px solid var(--ss-line); border-radius: 13px; padding: .8rem 1rem;
  font-size: .95rem; background: #fff;
}
.form-ss .form-control:focus, .form-ss .form-select:focus {
  border-color: var(--ss-red); box-shadow: 0 0 0 4px rgba(224,27,36,.12);
}
.form-ss .form-control::placeholder { color: #AFAFAF; }
.form-check-input:checked { background-color: var(--ss-red); border-color: var(--ss-red); }
.form-check-input:focus { border-color: var(--ss-red); box-shadow: 0 0 0 4px rgba(224,27,36,.12); }
.form-hint { font-size: .78rem; color: var(--ss-muted); }

.form-card { background: #fff; border-radius: var(--ss-radius-lg); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--ss-shadow-lg); }
.form-card--dark { background: #141414; color: #fff; }
.form-card--dark h3 { color: #fff; }
.form-card--dark .form-hint { color: rgba(255,255,255,.55); }

/* Компактная форма (страница пробного занятия): всё влезает в высоту экрана */
.form-card--compact { padding: clamp(1.1rem, 2vw, 1.6rem); border-radius: var(--ss-radius); }
.form-card--compact .form-control, .form-card--compact .form-select { padding: .55rem .8rem; font-size: .9rem; border-radius: 11px; }
.form-card--compact label { margin-bottom: .25rem; font-size: .83rem; }
.form-card--compact .form-hint { font-size: .74rem; }
.form-card--compact .btn { --bs-btn-padding-y: .65rem; }
.form-card--compact textarea.form-control { min-height: 62px; }

/* Страница пробного занятия: высота первой секции = остаток экрана */
.trial-section { padding-top: clamp(1.1rem, 2.4vw, 1.8rem); padding-bottom: clamp(1.1rem, 2.4vw, 1.8rem); }
@media (min-width: 992px) {
  .trial-section { min-height: calc(100vh - var(--ss-header-h, 76px)); display: flex; align-items: center; }
  .trial-section > .container { width: 100%; }
  .trial-aside .trial-steps li { margin-bottom: .7rem !important; }
  .trial-aside .trial-list li { margin-bottom: .3rem; }
}
@media (min-width: 1400px) and (min-height: 900px) {
  .trial-section { min-height: calc(100vh - var(--ss-header-h, 76px)); }
}

/* --------------------------- Преимущества --------------------------- */
/* Инфоблок: иконка и заголовок строго в одну строку */
.feature-item { display: flex; gap: .85rem; align-items: center; }
.feature-item__icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 15px;
  display: grid; place-items: center; font-size: 1.25rem;
  background: var(--ss-red-soft); color: var(--ss-red);
}
.section-dark .feature-item__icon { background: rgba(224,27,36,.18); color: #FF5A61; }
.feature-item__head { display: flex; align-items: center; gap: .5rem; }
.feature-item__head h3, .feature-item__head h4, .feature-item__head strong { margin-bottom: 0; }

/* Карточка-инфоблок: иконка + заголовок в одну строку, затем текст */
.info-card { background: #fff; border: 1px solid var(--ss-line); border-radius: var(--ss-radius); padding: 1.25rem; height: 100%; }
.info-card__head { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.info-card__head .bi { font-size: 1.35rem; color: var(--ss-red); flex: 0 0 auto; }
.info-card__head h3, .info-card__head h4 { margin: 0; font-size: 1.02rem; font-weight: 800; }

/* --------------------------- FAQ ----------------------------------- */
.accordion-ss .accordion-item { border: 1px solid var(--ss-line); border-radius: var(--ss-radius-sm) !important; margin-bottom: .7rem; overflow: hidden; }
.accordion-ss .accordion-button {
  font-weight: 800; font-size: 1rem; color: var(--ss-ink); background: #fff;
  padding: 1.15rem 1.25rem; box-shadow: none;
}
.accordion-ss .accordion-button:not(.collapsed) { background: var(--ss-red-soft); color: var(--ss-red-dark); }
.accordion-ss .accordion-button:focus { box-shadow: none; border-color: transparent; }
.accordion-ss .accordion-body { color: var(--ss-ink-2); font-size: .94rem; padding-top: 0; }

/* --------------------------- Отзывы -------------------------------- */
.review-card { background: #fff; border: 1px solid var(--ss-line); border-radius: var(--ss-radius); padding: 1.5rem; height: 100%; }
.review-card__stars { color: #FFB400; font-size: .95rem; letter-spacing: .1em; }
.review-card__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--ss-red-soft); color: var(--ss-red-dark); display: grid; place-items: center; font-weight: 800; }
.review-card__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

/* Слайдер отзывов: 3 на десктопе, 1 на мобильном */
.reviews-slider .carousel-item > .row { align-items: stretch; }
.review-quote {
  background: #fff; border: 1px solid var(--ss-line); border-radius: var(--ss-radius);
  padding: 1.5rem; height: 100%; display: flex; flex-direction: column;
}
.review-quote__text {
  font-size: .93rem; line-height: 1.65; color: var(--ss-ink-2); flex-grow: 1;
  display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden;
}
.review-quote__foot { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--ss-line); }
.review-quote__name { font-weight: 800; font-size: .9rem; }
.review-quote__date { font-size: .74rem; color: var(--ss-muted); }
.reviews-rating-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--ss-line); border-radius: 100px;
  padding: .4rem 1rem; font-weight: 800; font-size: .9rem;
}
.reviews-rating-badge .bi { color: #FFB400; }

/* --------------------------- Хлебные крошки ------------------------ */
.breadcrumb-ss { font-size: .84rem; color: var(--ss-muted); margin-bottom: 1rem; }
.breadcrumb-ss a { color: var(--ss-muted); }
.breadcrumb-ss a:hover { color: var(--ss-red); }
.breadcrumb-ss span { color: var(--ss-ink); font-weight: 700; }

/* --------------------------- Страница-заголовок -------------------- */
.page-hero { background: var(--ss-black); color: #fff; padding: clamp(1.1rem, 2.4vw, 1.9rem) 0; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 2.6rem); margin-bottom: .5rem; }
.page-hero p { color: rgba(255,255,255,.72); max-width: 820px; margin-bottom: 0; }
.page-hero::after {
  content: ''; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(224,27,36,.55), transparent 68%);
}

/* Компактный отступ от хедера до контента (в 3 раза меньше) */
.page-hero + .section { padding-top: clamp(1rem, 2.2vw, 1.6rem); }
.page-hero + .section-sm { padding-top: .8rem; }

/* --------------------------- Футер --------------------------------- */
.site-footer { background: var(--ss-black); color: rgba(255,255,255,.7); padding-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.footer-brand { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.footer-brand__logo { height: clamp(38px, 5vw, 52px); width: auto; display: block; }
/* Подпись справа от логотипа в подвале */
.footer-brand__link { display: inline-flex; align-items: center; gap: .7rem; }
.footer-brand__text {
  font-size: clamp(.82rem, 1.4vw, 1rem); line-height: 1.15; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; color: #fff;
}
.footer-brand__text span { display: block; color: var(--ss-red); }
.site-footer h6 { color: #fff; font-size: .88rem; letter-spacing: .04em; margin-bottom: .9rem; }
.site-footer a { color: rgba(255,255,255,.7); font-size: .9rem; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-list { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-list li { margin-bottom: .5rem; }
.footer-social { display: flex; gap: .6rem; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; font-size: 1.1rem;
}
.footer-social a:hover { background: var(--ss-red); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding: 1.25rem 0; font-size: .82rem; }

/* --------------------------- Анимации ------------------------------ */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------- Новости ------------------------------- */
/* Квадратная картинка: горизонтальные заполняют кадр, вертикальные центрируются */
.news-media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--ss-bg-2); display: block;
}
.news-media img { width: 100%; height: 100%; display: block; transition: transform .5s ease; }
.news-media img.news-cover { object-fit: cover; }
.news-media img.news-contain { object-fit: contain; background: #F2F2F3; }
.card-ss:hover .news-media img { transform: scale(1.04); }
.news-media .event-card__date { z-index: 3; }
.news-item-media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--ss-radius-lg);
  background: var(--ss-bg-2);
}
.news-item-media img { width: 100%; height: 100%; display: block; }
.news-item-media img.news-cover { object-fit: cover; }
.news-item-media img.news-contain { object-fit: contain; background: #F2F2F3; }

/* --------------------------- Документы (политика, оферта) ---------- */
.content-doc { font-size: 1rem; line-height: 1.75; color: var(--ss-ink-2); }
.content-doc h2 {
  font-size: clamp(1.05rem, 1.9vw, 1.35rem); margin-top: 2.1rem; margin-bottom: .85rem;
  color: var(--ss-ink); padding-bottom: .5rem; border-bottom: 2px solid var(--ss-red-soft);
}
.content-doc h2:first-child { margin-top: 0; }
.content-doc h3 { font-size: 1.05rem; margin-top: 1.5rem; margin-bottom: .6rem; color: var(--ss-ink); }
.content-doc p { margin-bottom: .9rem; }
.content-doc ul, .content-doc ol { margin-bottom: 1rem; padding-left: 1.3rem; }
.content-doc li { margin-bottom: .45rem; }
.content-doc a { color: var(--ss-red); text-decoration: underline; text-decoration-color: rgba(224,27,36,.35); }
.content-doc a:hover { text-decoration-color: var(--ss-red); }
.content-doc strong { color: var(--ss-ink); font-weight: 800; }
.content-doc p.lead { font-size: 1.08rem; color: var(--ss-ink); }

/* --------------------------- Утилиты ------------------------------- */
.rounded-ss { border-radius: var(--ss-radius) !important; }
.rounded-ss-lg { border-radius: var(--ss-radius-lg) !important; }
.shadow-ss { box-shadow: var(--ss-shadow) !important; }
.shadow-ss-lg { box-shadow: var(--ss-shadow-lg) !important; }
.obj-cover { object-fit: cover; }
/* Кадрирование по верху: верх изображения сохраняется, обрезка снизу */
.obj-top { object-fit: cover; object-position: 50% 0%; }
.divider-red { width: 56px; height: 4px; border-radius: 4px; background: var(--ss-red); }
.sticky-side { position: sticky; top: 100px; }
.hover-lift { transition: transform .25s ease; }
.hover-lift:hover { transform: translateY(-4px); }

/* Кастомный скроллбар для горизонтальных лент */
.hscroll { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; }
.hscroll > * { scroll-snap-align: start; flex: 0 0 auto; }
.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-thumb { background: #DADADA; border-radius: 6px; }

/* Корзина / оплата */
.cart-line { display: flex; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--ss-line); }
.pay-method { border: 1.5px solid var(--ss-line); border-radius: 14px; padding: .9rem 1rem; display: flex; align-items: center; gap: .75rem; cursor: pointer; }
.pay-method:hover { border-color: var(--ss-red); }
.pay-method input { margin: 0; }

/* Таблица → карточки на мобильных */
@media (max-width: 767.98px) {
  .table-stack thead { display: none; }
  .table-stack tr { display: block; border: 1px solid var(--ss-line); border-radius: var(--ss-radius-sm); margin-bottom: .75rem; padding: .75rem; }
  .table-stack td { display: flex; justify-content: space-between; gap: 1rem; border: 0 !important; padding: .3rem 0 !important; font-size: .9rem; }
  .table-stack td::before { content: attr(data-label); font-weight: 700; color: var(--ss-muted); }
}

/* Кнопка «Купить» после добавления в корзину */
.btn.is-added { background: #1B9E4B !important; border-color: #1B9E4B !important; color: #fff !important; }
.added-hint { font-size: .74rem; color: #1B9E4B; font-weight: 700; }
