
/* Fix container padding */
.container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}
.hero__content {
  padding-left: 24px !important;
  padding-right: 24px !important;
}
@media (max-width: 768px) {
  .container, .hero__content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ═══════ AMBIENT BACKGROUND — тихая роскошь ═══════
   Тёплый кремовый базовый фон + два «дышащих» blob'а (лёд+пламя),
   которые лениво следуют за курсором на десктопе и сами дрейфуют на мобильных.
   На мобильных JS отключён — работает только CSS-анимация (cheap). */
body {
  background: #FAF8F5 !important;
  min-height: 100vh;
}
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}
.ambient-bg__fire,
.ambient-bg__ice {
  position: absolute;
  width: 80vmax;
  height: 80vmax;
  border-radius: 50%;
  left: 0;
  top: 0;
  filter: blur(48px);
  will-change: transform;
}
.ambient-bg__fire {
  background: radial-gradient(circle, rgba(218,61,38,0.18) 0%, rgba(239,125,83,0.10) 35%, rgba(218,61,38,0) 65%);
  transform: translate(calc(70vw - 50%), calc(25vh - 50%));
}
.ambient-bg__ice {
  background: radial-gradient(circle, rgba(93,152,188,0.20) 0%, rgba(129,195,224,0.12) 35%, rgba(93,152,188,0) 65%);
  transform: translate(calc(25vw - 50%), calc(75vh - 50%));
}
/* Мобильные + устройства без hover — простая CSS-анимация дрейфа.
   На десктопе с курсором анимацию отключает JS (см. app.js / ambient.js). */
@media (hover: none), (max-width: 1024px) {
  .ambient-bg__fire { animation: ambientFireDrift 38s ease-in-out infinite alternate; }
  .ambient-bg__ice  { animation: ambientIceDrift 44s ease-in-out infinite alternate; }
}
@keyframes ambientFireDrift {
  0%   { transform: translate(calc(75vw - 50%), calc(20vh - 50%)); }
  50%  { transform: translate(calc(60vw - 50%), calc(45vh - 50%)); }
  100% { transform: translate(calc(85vw - 50%), calc(65vh - 50%)); }
}
@keyframes ambientIceDrift {
  0%   { transform: translate(calc(20vw - 50%), calc(75vh - 50%)); }
  50%  { transform: translate(calc(40vw - 50%), calc(55vh - 50%)); }
  100% { transform: translate(calc(15vw - 50%), calc(30vh - 50%)); }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-bg__fire, .ambient-bg__ice { animation: none !important; }
}
/* ═══════ PREMIUM VISUAL LAYER ═══════ */

/* --- TEXTURED BACKGROUNDS ---
   Секции остаются прозрачными для ambient-bg, но с собственной
   лёгкой «дымкой» — чтобы зона не выглядела пустым белым полем
   когда ambient blob'ы уплыли в другую часть страницы. */

#services {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 92% 8%, rgba(129,195,224,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 8% 92%, rgba(239,125,83,0.07) 0%, transparent 60%),
    transparent;
}
#promotions {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 85% 20%, rgba(250,206,193,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 15% 80%, rgba(216,238,250,0.14) 0%, transparent 55%),
    transparent;
}
#subscriptions {
  position: relative;
  background:
    radial-gradient(ellipse 75% 60% at 25% 30%, rgba(216,238,250,0.18) 0%, transparent 55%),
    transparent;
}

/* О нас — тёплая «земляная» секция, держит ритм между прозрачными зонами */
#about {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(218,61,38,0.05) 0%, transparent 30%),
    radial-gradient(ellipse at 100% 100%, rgba(93,152,188,0.05) 0%, transparent 30%),
    #F5EDE0;
}

/* CTA форма — глубже, богаче */
.cta-banner {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(239,125,83,0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 70%, rgba(37,89,114,0.2) 0%, transparent 50%),
    linear-gradient(135deg, #3A1A10 0%, #2C1810 40%, #1A2A35 100%) !important;
}

/* --- ANIMATED DECORATIVE ELEMENTS --- */

/* Парящие частицы в hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.4) 50%, transparent 100%),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,0.3) 50%, transparent 100%),
    radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,0.3) 50%, transparent 100%),
    radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,0.2) 50%, transparent 100%),
    radial-gradient(2px 2px at 10% 80%, rgba(218,61,38,0.15) 50%, transparent 100%),
    radial-gradient(2px 2px at 90% 40%, rgba(129,195,224,0.15) 50%, transparent 100%);
  animation: floatParticles 20s ease-in-out infinite alternate;
}
@keyframes floatParticles {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-15px) scale(1.02); }
}

/* Секции — мягкая волна по краям */
.services::after,
.promotions::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(245,237,224,0.6), transparent);
  pointer-events: none;
  z-index: 0;
}

/* --- UNIFIED ICON SYSTEM --- */

/* Стиль 01/02/03 — единая линия-акцент */
.why-us__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: #DA3D26;
  display: flex;
  align-items: center;
  gap: 16px;
}
.why-us__num::after {
  content: '';
  display: block;
  width: 40px;
  height: 1.5px;
  background: linear-gradient(90deg, #DA3D26, transparent);
}
.why-us__item:nth-child(2) .why-us__num { color: #5D98BC; }
.why-us__item:nth-child(2) .why-us__num::after {
  background: linear-gradient(90deg, #5D98BC, transparent);
}
.why-us__item:nth-child(3) .why-us__num { color: #D4A84B; }
.why-us__item:nth-child(3) .why-us__num::after {
  background: linear-gradient(90deg, #D4A84B, transparent);
}

/* Заголовки причин — цвет по теме */
.why-us__item:nth-child(1) .why-us__item-title { color: #7C2413; }
.why-us__item:nth-child(2) .why-us__item-title { color: #275972; }
.why-us__item:nth-child(3) .why-us__item-title { color: #8B6B2A; }
.why-us__item:nth-child(1):hover .why-us__item-title { color: #DA3D26; }
.why-us__item:nth-child(2):hover .why-us__item-title { color: #5D98BC; }
.why-us__item:nth-child(3):hover .why-us__item-title { color: #D4A84B; }

/* Разделитель причин — градиент fire→ice */
.why-us__item {
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(218,61,38,0.15), rgba(93,152,188,0.15)) 1;
}
.why-us__item:first-child {
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(218,61,38,0.15), rgba(93,152,188,0.15)) 1;
}

/* --- FILTER BUTTONS — полированный стиль --- */
.filter-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.filter-btn::before { content: none !important; }
.filter-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: #DA3D26;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
  transform: translateX(-50%);
  border-radius: 2px;
}
.filter-btn:hover::after {
  width: 60%;
}
.filter-btn--active::after {
  width: 80%;
  background: white;
}

/* --- CTA BUTTONS — ripple эффект --- */
.btn--fire {
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn--fire span { position: relative; z-index: 2; }

/* Плавающая кнопка "Записаться" */
.floating-cta {
  box-shadow: 0 8px 32px rgba(218,61,38,0.35);
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.floating-cta:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px rgba(218,61,38,0.5);
}

/* --- КАРТОЧКИ — выразительнее --- */
.service-card {
  border: 1px solid rgba(236,217,198,0.5);
  transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
}
.service-card:hover {
  border-color: rgba(218,61,38,0.15);
}

/* Фото — тёплый оверлей при hover */
.service-card__photo {
  position: relative;
}
.service-card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(124,36,19,0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  border-radius: 24px 24px 0 0;
}
.service-card:hover .service-card__photo::after {
  opacity: 1;
}

/* --- ПРОМО-КАРТОЧКИ С ИЛЛЮСТРАЦИЯМИ --- */
.promotions__grid {
  grid-template-columns: 1fr 1fr !important;
  gap: 28px;
}
.promo-card--with-photo {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(124,36,19,0.12);
  transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
  overflow: hidden;
  padding: 0 !important;
}
.promo-card--with-photo:hover {
  border-color: rgba(218,61,38,0.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(124,36,19,0.08);
}
.promo-card__photo {
  height: 220px;
  overflow: hidden;
}
.promo-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.promo-card--with-photo:hover .promo-card__photo img {
  transform: scale(1.05);
}
.promo-card__content {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px) {
  .promotions__grid { grid-template-columns: 1fr !important; }
  .promo-card__photo { height: 180px; }
}

/* --- SCROLL PROGRESS — шире, контрастнее --- */
.scroll-progress {
  height: 3px;
  background: linear-gradient(90deg, #DA3D26 0%, #E9512B 25%, #D4A84B 50%, #81C3E0 75%, #275972 100%);
  box-shadow: 0 0 8px rgba(218,61,38,0.3);
}

/* --- FOOTER — рефайнмент --- */
.footer {
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, #DA3D26, #D4A84B, #81C3E0, #275972) 1;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
  .hero::before { animation: none; }
  .services::after, .promotions::after { display: none; }
  .why-us__num::after { width: 24px; }
}

/* WHY-US BACKGROUND */
#features {
  background:
    linear-gradient(rgba(44,24,16,0.82), rgba(44,24,16,0.78)),
    url(/assets/img/7941d2bee3a11c53611820c03c437c9b.jpg) center/cover no-repeat fixed !important;
  color: #F5EDE0;
}
.why-us__title { color: #FFFBF7 !important; }
.why-us__subtitle { color: rgba(255,251,247,0.7) !important; }
.why-us__item { border-image: linear-gradient(90deg, rgba(218,61,38,0.3), rgba(129,195,224,0.2)) 1 !important; }
.why-us__item-title { color: #FFFBF7 !important; }
.why-us__item:nth-child(1) .why-us__item-title { color: #FACEC1 !important; }
.why-us__item:nth-child(2) .why-us__item-title { color: #D8EEFA !important; }
.why-us__item:nth-child(3) .why-us__item-title { color: #F5DFA0 !important; }
.why-us__item:hover .why-us__item-title { color: #fff !important; }
.why-us__item-text { color: rgba(245,237,224,0.75) !important; }
.why-us__num { color: #EF7D53 !important; }
.why-us__num::after { background: linear-gradient(90deg, #EF7D53, transparent) !important; }
.why-us__item:nth-child(2) .why-us__num { color: #81C3E0 !important; }
.why-us__item:nth-child(2) .why-us__num::after { background: linear-gradient(90deg, #81C3E0, transparent) !important; }
.why-us__item:nth-child(3) .why-us__num { color: #D4A84B !important; }
.why-us__item:nth-child(3) .why-us__num::after { background: linear-gradient(90deg, #D4A84B, transparent) !important; }

/* ═══════ CATEGORY CARDS ═══════ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.category-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(124,36,19,0.15);
}
.category-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.category-card:hover .category-card__img {
  transform: scale(1.06);
}
.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,24,16,0.7) 0%, rgba(44,24,16,0.15) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: background 0.4s;
}
.category-card:hover .category-card__overlay {
  background: linear-gradient(to top, rgba(44,24,16,0.8) 0%, rgba(44,24,16,0.2) 60%);
}
.category-card__name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  color: white;
  line-height: 1.2;
  margin-bottom: 4px;
}
.category-card__count {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

/* Карточка "Сертификаты" — особый стиль */
.category-card--gift {
  background: linear-gradient(135deg, #7C2413 0%, #DA3D26 50%, #EF7D53 100%);
}
.category-card__gift-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-card--gift .category-card__overlay {
  background: linear-gradient(to top, rgba(44,24,16,0.5) 0%, transparent 60%);
}
.category-card--gift:hover .category-card__overlay {
  background: linear-gradient(to top, rgba(44,24,16,0.65) 0%, transparent 60%);
}

/* Каталог — кнопка назад */
.catalog-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  color: #DA3D26;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 24px;
  padding: 8px 0;
  transition: gap 0.3s;
}
.catalog-back:hover { gap: 12px; }

.catalog-category-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(28px, 3vw, 40px);
  color: #7C2413;
  margin-bottom: 32px;
}

/* Партнёры */
.partners {
  padding: clamp(60px, 6vw, 100px) 0;
  background: #F5EDE0;
}
.partners__grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 48px;
}
.partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 32px;
  min-width: 220px;
  flex: 1;
  max-width: 320px;
  background: rgba(255,251,247,0.8);
  border: 1px solid rgba(236,217,198,0.5);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}
.partner:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(124,36,19,0.08);
  border-color: rgba(218,61,38,0.15);
}
.partner__logo-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(218,61,38,0.08), rgba(129,195,224,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner__logo-text {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1.2;
}
.partner__desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: #8B6B5A;
  text-align: center;
}

/* Квадратные фото в карточках услуг */
.service-card__img {
  height: auto !important;
  aspect-ratio: 1 / 1;
}

/* Дисклеймер под каталогом */
.services-disclaimer {
  margin-top: 40px;
  padding: 16px 24px;
  font-family: var(--font-body);
  font-size: 12px;
  color: #8B6B5A;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.6;
  border-top: 1px solid rgba(236,217,198,0.4);
}

/* Дисклеймер в модальном окне */
.modal__disclaimer {
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 11px;
  color: #8B6B5A;
  background: rgba(245,237,224,0.5);
  border-radius: 8px;
  text-align: center;
  line-height: 1.5;
}

/* Форма согласия */
.cta-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 600px;
  margin: 12px auto 0;
}
.cta-form__consent input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #DA3D26;
}
.cta-form__consent label {
  font-size: 13px;
  opacity: 0.7;
  text-align: left;
  line-height: 1.5;
}
.cta-form__consent a {
  text-decoration: underline;
  color: inherit;
}

/* Контакты — двухколоночная раскладка */
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contacts__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.contacts__item strong {
  display: block;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #DA3D26;
  margin-bottom: 8px;
}
.contacts__item p {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.7;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}
.contacts__item a {
  color: #7C2413;
  text-decoration: none;
  transition: color 0.3s;
}
.contacts__item a:hover { color: #DA3D26; }
.contacts__socials {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}
.contacts__social {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(218,61,38,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7C2413;
  transition: all 0.3s;
}
.contacts__social:hover {
  background: #DA3D26;
  color: white;
  transform: translateY(-2px);
}
.contacts__map {
  border-radius: 24px;
  overflow: hidden;
  height: 400px;
  border: 1px solid rgba(236,217,198,0.5);
}
.contacts__map iframe {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  /* Предотвращаем горизонтальный скролл */
  html, body { overflow-x: hidden; }

  /* Шапка — компактная на мобильном */
  .header__logo-img { width: 40px !important; height: 40px !important; }
  .header__logo { font-size: 20px !important; gap: 10px !important; }
  .header__actions .btn { padding: 8px 16px !important; font-size: 13px !important; }
  .header__inner { padding: 0 !important; }

  /* Категории */
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .category-card__name { font-size: 18px; }
  .category-card__overlay { padding: 16px; }

  /* Акции */
  .promotions__grid { grid-template-columns: 1fr !important; }
  .promo-card__photo { height: 160px; }

  /* Партнёры — вертикально на мобильном */
  .partners__grid {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  .partner {
    min-width: 0;
    padding: 20px 16px;
    flex-direction: row;
    max-width: none;
  }
  .partner__logo-wrap { width: 56px; height: 56px; flex-shrink: 0; }
  .partner__logo-text { font-size: 13px; }
  .partner__desc { font-size: 12px; text-align: left; }

  /* Контакты */
  .contacts__inner { grid-template-columns: 1fr; gap: 24px; }
  .contacts__details { grid-template-columns: 1fr; gap: 20px; }
  .contacts__map { height: 250px; border-radius: 16px; }

  /* CTA форма */
  .cta-form__consent { max-width: 100%; }

  /* Каталог назад */
  .catalog-category-title { font-size: 24px !important; margin-bottom: 20px; }
}

@media (max-width: 480px) {
  .header__logo { font-size: 18px !important; }
  .header__logo-img { width: 36px !important; height: 36px !important; }
  .category-card__name { font-size: 16px; }
  .category-card__count { font-size: 12px; }
}



/* Дополнительно: гарантируем квадрат в карточках услуг */
.service-card__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.service-card__photo .service-card__img {
  width: 100%;
  height: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}


/* ═══════ MODAL ACTIONS ═══════ */
.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.btn--outline {
  background: transparent;
  border: 1.5px solid rgba(124,36,19,0.25);
  color: #7C2413;
  transition: all 0.3s;
}
.btn--outline:hover {
  border-color: #DA3D26;
  color: #DA3D26;
  background: rgba(218,61,38,0.04);
}
.modal__description {
  flex: 1;
}

/* ═══════ MODAL MOBILE — stack vertically ═══════ */
@media (max-width: 768px) {
  .modal__layout {
    grid-template-columns: 1fr !important;
  }
  .modal__img-panel {
    aspect-ratio: 16 / 9;
    min-height: unset !important;
    border-radius: var(--radius-lg, 24px) var(--radius-lg, 24px) 0 0 !important;
    max-height: 200px;
  }
  .modal__body {
    max-height: 60vh;
    padding: 24px 20px 24px !important;
  }
  .modal__content {
    max-height: 94vh !important;
    width: 96% !important;
  }
  .modal__actions {
    flex-direction: column;
  }
}

/* ═══════ SERVICE CARD QUICK ACTIONS ═══════ */
.service-card__img-wrap {
  position: relative;
  overflow: hidden;
}
.service-card__img-wrap .service-card__img {
  width: 100%;
  height: 100% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,24,16,0.75) 0%, rgba(44,24,16,0.1) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16,1,0.3,1);
}
.service-card:hover .service-card__overlay {
  opacity: 1;
}
.service-card__quick-btn {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border-radius: 50px;
  font-family: var(--font-body, 'Nunito Sans', sans-serif);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: none;
  transition: all 0.3s;
}
.service-card__quick-btn--book {
  background: #DA3D26;
  color: white;
  box-shadow: 0 4px 16px rgba(218,61,38,0.35);
}
.service-card__quick-btn--book:hover {
  background: #E9512B;
  transform: translateY(-1px);
}
.service-card__quick-btn--apply {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(8px);
}
.service-card__quick-btn--apply:hover {
  background: rgba(255,255,255,0.28);
}

/* На тачскринах — всегда показываем кнопки */
@media (hover: none) {
  .service-card__overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(44,24,16,0.65) 0%, transparent 50%);
  }
}




/* ═══════ ОПИСАНИЕ УСЛУГ — ТИПОГРАФИКА ═══════ */

/* Модальное окно — описание */
.modal__description {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 15px !important;
  line-height: 1.85 !important;
  color: #3D2E24 !important;
  letter-spacing: 0.01em;
}
.modal__description p {
  margin: 0 0 14px;
}
.modal__description p:last-child {
  margin-bottom: 0;
}

/* Заголовки секций внутри описания */
.modal__section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: #7C2413;
  margin: 24px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(218,61,38,0.12);
}
.modal__description .modal__section-title:first-child {
  margin-top: 0;
}

/* Списки буллетов */
.modal__suitable {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
}
.modal__suitable li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #4A3728;
}
.modal__suitable li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #DA3D26;
}

/* Название и цена */
.modal__title {
  font-size: 24px !important;
  line-height: 1.3 !important;
}
.modal__price {
  font-size: 26px !important;
  margin-bottom: 20px !important;
}
.modal__category {
  margin-bottom: 8px !important;
}

/* Карточка в каталоге — описание крупнее */
.service-card__desc {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #5A4A3E !important;
}
.service-card__name {
  font-size: 20px !important;
  line-height: 1.3 !important;
}

/* Мобильные */
@media (max-width: 768px) {
  .modal__description {
    font-size: 14px !important;
  }
  .modal__section-title {
    font-size: 16px;
  }
  .modal__suitable li {
    font-size: 13px;
  }
  .modal__title {
    font-size: 22px !important;
  }
  .service-card__name {
    font-size: 18px !important;
  }
}


/* ═══════ BRAND NAME «ЛЁД И ПЛАМЯ» ═══════ */

/* --- Core --- */
.brand-name {
  display: inline-flex;
  align-items: baseline;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
}

.brand-name__ice,
.brand-name__fire {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
}

/* ЛЁД — ледяной градиент */
.brand-name__ice {
  background-image: linear-gradient(
    90deg, #81C3E0 0%, #D8EEFA 25%, #5D98BC 50%, #81C3E0 75%, #D8EEFA 100%
  );
  filter: drop-shadow(0 0 30px rgba(129,195,224,0.4)) drop-shadow(0 0 60px rgba(129,195,224,0.2));
  animation: brandIceShift 8s ease-in-out infinite, brandIceGlow 8s ease-in-out 4s infinite;
}

/* ПЛАМЯ — огненный градиент */
.brand-name__fire {
  background-image: linear-gradient(
    90deg, #DA3D26 0%, #EF7D53 25%, #E9512B 50%, #DA3D26 75%, #EF7D53 100%
  );
  filter: drop-shadow(0 0 30px rgba(218,61,38,0.4)) drop-shadow(0 0 60px rgba(218,61,38,0.2));
  animation: brandFireShift 8s ease-in-out infinite, brandFireGlow 8s ease-in-out 4s infinite;
}

/* И — нейтральный мостик */
.brand-name__and {
  -webkit-text-fill-color: rgba(255,255,255,0.55);
  font-style: italic;
  font-weight: 300;
  margin: 0 0.05em;
}

/* Hover — ускоряем shimmer, усиливаем glow */
.brand-name:hover .brand-name__ice {
  animation-duration: 3s, 3s;
  filter: drop-shadow(0 0 40px rgba(129,195,224,0.6)) drop-shadow(0 0 80px rgba(129,195,224,0.3));
}
.brand-name:hover .brand-name__fire {
  animation-duration: 3s, 3s;
  filter: drop-shadow(0 0 40px rgba(218,61,38,0.6)) drop-shadow(0 0 80px rgba(218,61,38,0.3));
}





/* --- Footer — приглушённый --- */
.brand-name--footer {
  font-size: inherit;
}
.brand-name--footer .brand-name__and {
  -webkit-text-fill-color: rgba(255,255,255,0.35);
}
.brand-name--footer .brand-name__ice {
  background-image: linear-gradient(
    90deg, rgba(129,195,224,0.85) 0%, rgba(216,238,250,0.6) 50%, rgba(129,195,224,0.85) 100%
  );
}
.brand-name--footer .brand-name__fire {
  background-image: linear-gradient(
    90deg, rgba(218,61,38,0.85) 0%, rgba(239,125,83,0.6) 50%, rgba(218,61,38,0.85) 100%
  );
}


/* --- Header logo — анимированный бренд --- */
.header__logo .brand-name {
  font-size: inherit;
}
.header__logo .brand-name__ice,
.header__logo .brand-name__fire {
  animation-duration: 10s, 10s;
}
.header__logo .brand-name__and {
  -webkit-text-fill-color: rgba(255,255,255,0.5);
}

/* Scrolled header — тёмные тона на светлом фоне */
.header--scrolled .brand-name__and {
  -webkit-text-fill-color: rgba(124,36,19,0.4);
}
.header--scrolled .brand-name__ice {
  background-image: linear-gradient(
    90deg, #5D98BC 0%, #81C3E0 25%, #275972 50%, #5D98BC 75%, #81C3E0 100%
  );
}
.header--scrolled .brand-name__fire {
  background-image: linear-gradient(
    90deg, #DA3D26 0%, #7C2413 25%, #EF7D53 50%, #DA3D26 75%, #7C2413 100%
  );
}

/* --- Keyframes --- */
@keyframes brandIceShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes brandFireShift {
  0%, 100% { background-position: 100% 50%; }
  50%      { background-position: 0% 50%; }
}
@keyframes brandIceGlow {
  0%, 100% { filter: drop-shadow(0 0 25px rgba(129,195,224,0.3)) drop-shadow(0 0 50px rgba(129,195,224,0.15)); }
  50%      { filter: drop-shadow(0 0 40px rgba(129,195,224,0.55)) drop-shadow(0 0 80px rgba(129,195,224,0.25)); }
}
@keyframes brandFireGlow {
  0%, 100% { filter: drop-shadow(0 0 25px rgba(218,61,38,0.3)) drop-shadow(0 0 50px rgba(218,61,38,0.15)); }
  50%      { filter: drop-shadow(0 0 40px rgba(218,61,38,0.55)) drop-shadow(0 0 80px rgba(218,61,38,0.25)); }
}
@keyframes brandReveal {
  0% {
    clip-path: inset(0 50% 0 50%);
    opacity: 0;
    filter: blur(8px);
  }
  60% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    filter: blur(2px);
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    filter: blur(0);
  }
}
@keyframes brandAndFade {
  0%   { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  .brand-name__ice, .brand-name__fire { animation: none; }
  .brand-name--hero { animation: none; opacity: 1; clip-path: none; filter: none; }
  .brand-name--hero .brand-name__and { animation: none; opacity: 0.55; }
}

/* --- Mobile --- */
@media (max-width: 768px) {

  .brand-name__ice, .brand-name__fire {
    filter: none !important;
  }
}


/* ═══════ CATEGORY SECTIONS — GROUPED LAYOUT ═══════ */
.cat-section {
  margin-bottom: 48px;
}
.cat-section__header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.cat-section__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #DA3D26;
  white-space: nowrap;
}
.cat-section__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(129,195,224,0.3), rgba(218,61,38,0.15));
}
.cat-section__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.cat-section__grid--solo {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.cat-section--solo {
  margin-bottom: 32px;
}

/* Карточка без фото */
.category-card--no-photo {
  background: linear-gradient(135deg, #3A1A10 0%, #2C1810 40%, #1A2A35 100%);
}

@media (max-width: 768px) {
  .cat-section__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .cat-section__grid--solo {
    grid-template-columns: 1fr;
  }
  .cat-section {
    margin-bottom: 32px;
  }
  .cat-section__title {
    font-size: 12px;
  }
}


/* ═══════ MODAL INLINE FORM ═══════ */
.modal__form-wrap {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(236,217,198,0.4);
  animation: fadeInUp 0.3s ease;
}
.modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal__input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid rgba(236,217,198,0.6);
  border-radius: 12px;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  outline: none;
  background: #FFFBF7;
  transition: border-color 0.3s;
  box-sizing: border-box;
}
.modal__input:focus {
  border-color: #DA3D26;
}
.modal__input::placeholder {
  color: #B0A090;
}
.modal__form-consent {
  font-size: 11px;
  color: #8B6B5A;
  text-align: center;
  margin-top: 8px;
  line-height: 1.5;
}
.modal__form-consent a {
  color: #7C2413;
  text-decoration: underline;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Quick booking modal */
#quickBookingModal .modal__input {
  background: white;
}

/* ═══════ MASTERS SECTION ═══════ */
.masters { padding: 80px 0; }
.masters__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.master-card {
  background: rgba(245,237,224,0.05);
  border: 1px solid rgba(218,61,38,0.15);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.master-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(218,61,38,0.2);
}

.master-card__photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: #2C1810;
}

.master-card__info {
  padding: 20px;
  text-align: center;
}
.master-card__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: #F5EDE0;
  margin-bottom: 4px;
}
.master-card__role {
  font-size: 0.85rem;
  color: rgba(245,237,224,0.6);
  margin-bottom: 12px;
}
.master-card__count {
  font-size: 0.8rem;
  color: rgba(218,61,38,0.8);
  margin-bottom: 12px;
}
.master-card__btn {
  display: inline-block;
  padding: 10px 24px;
  background: linear-gradient(135deg, #DA3D26, #C0392B);
  color: #F5EDE0;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.master-card__btn:hover { opacity: 0.85; }

/* Master Profile Modal */
.master-dialog { max-width: 700px; }
.master-profile__header {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}
.master-profile__photo {
  width: 180px;
  height: 240px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}
.master-profile__info { flex: 1; }
.master-profile__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: #F5EDE0;
  margin-bottom: 4px;
}
.master-profile__role {
  color: rgba(245,237,224,0.6);
  margin-bottom: 12px;
}
.master-profile__bio {
  color: rgba(245,237,224,0.8);
  line-height: 1.6;
  margin-bottom: 16px;
}
.master-profile__services h3 {
  color: #DA3D26;
  margin: 16px 0 8px;
  font-size: 1rem;
}
.master-profile__service-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(245,237,224,0.08);
  color: #F5EDE0;
  font-size: 0.9rem;
}
.master-profile__service-price { color: #DA3D26; font-weight: 500; }

/* ═══════ BOOKING MODAL ═══════ */
.booking-dialog { max-width: 600px; }
.booking-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(245,237,224,0.1);
}
.booking-step {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.booking-step.active { opacity: 1; }
.booking-step__label { color: #2C1810 !important; }
.booking-step.done { opacity: 0.7; }
.booking-step__number {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(218,61,38,0.2);
  color: #DA3D26;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 600;
}
.booking-step.active .booking-step__number {
  background: #DA3D26;
  color: #F5EDE0;
}
.booking-step.done .booking-step__number {
  background: #27ae60;
  color: #fff;
}
.booking-step__label { font-size: 0.8rem; color: #F5EDE0; }

.booking-search { margin-bottom: 16px; }
.booking-search input {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #2C1810;
  font-size: 0.95rem;
}
.booking-search input::placeholder { color: #aaa; }

.booking-services-list, .booking-masters-list {
  max-height: 400px;
  overflow-y: auto;
}

.booking-service-item, .booking-master-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.2s;
  background: #fff;
}
.booking-service-item:hover, .booking-master-item:hover {
  background: #FEF2F2;
  border-color: #DA3D26;
}
.booking-service-item.selected, .booking-master-item.selected {
  background: rgba(218,61,38,0.15);
  border-color: #DA3D26;
}
.booking-service-name { color: #2C1810; font-size: 0.9rem; }
.booking-service-cat { font-size: 0.75rem; color: #888; }
.booking-service-price { color: #DA3D26; font-weight: 500; white-space: nowrap; }

.booking-master-item { gap: 12px; }
.booking-master-photo {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.booking-master-name { color: #2C1810; font-weight: 500; }
.booking-master-role { font-size: 0.8rem; color: #888; }

/* Calendar */
.booking-calendar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.booking-date {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  min-width: 70px;
  background: #fff;
}
.booking-date:hover { border-color: #DA3D26; background: #FEF2F2; }
.booking-date.selected {
  background: #DA3D26;
  border-color: #DA3D26;
}
.booking-date__day { color: #888; font-size: 0.75rem; }
.booking-date__num { color: #2C1810; font-size: 1.1rem; font-weight: 500; }

.booking-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}
.booking-slot {
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  color: #2C1810;
  transition: all 0.2s;
  background: #fff;
}
.booking-slot:hover { border-color: #DA3D26; background: #FEF2F2; }
.booking-slot.selected {
  background: #DA3D26;
  border-color: #DA3D26;
}

/* Booking form */
.form-input {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  color: #2C1810;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.form-input::placeholder { color: #aaa; }
.form-textarea { min-height: 80px; resize: vertical; }
.btn--full { width: 100%; }

.booking-summary {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.booking-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: #2C1810;
  font-size: 0.9rem;
}
.booking-summary__label { color: #888; }
.booking-summary__value { font-weight: 500; }

.booking-success {
  text-align: center;
  padding: 40px 20px;
}
.booking-success__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #27ae60;
  color: white;
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.booking-success h3 { color: #2C1810; margin-bottom: 8px; }
.booking-success p { color: #666; margin-bottom: 20px; }

@media (max-width: 600px) {
  .master-profile__header { flex-direction: column; align-items: center; text-align: center; }
  .master-profile__photo { width: 140px; height: 180px; }
  .booking-step__label { display: none; }
  .masters__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ═══════ BOOKING & MASTER MODAL OVERLAY FIX ═══════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(44, 24, 16, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.booking-dialog, .master-dialog {
  position: relative !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: #FAFBFC !important;
  border: 1px solid rgba(218,61,38,0.15) !important;
  border-radius: 20px !important;
  padding: 32px !important;
  max-height: 85vh !important;
  overflow-y: auto !important;
  width: 100% !important;
  inset: unset !important;
  transform: none !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3) !important;
}
.modal-overlay .booking-dialog .modal__close, .modal-overlay .master-dialog .modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0f0f0;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  border: none;
  z-index: 10;
  transition: background 0.2s;
}
.modal-overlay .booking-dialog .modal__close, .modal-overlay .master-dialog .modal__close:hover {
  background: rgba(218,61,38,0.3);
}
.modal-overlay .booking-dialog .modal__title, .modal-overlay .master-dialog .modal__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: #2C1810;
  margin-bottom: 20px;
}

/* ═══════ AI CHAT WIDGET ═══════ */
.ai-chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #DA3D26, #C0392B);
  color: white;
  font-size: 24px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(218,61,38,0.4);
  z-index: 9990;
  transition: transform 0.2s;
}
.ai-chat-fab:hover { transform: scale(1.1); }

.ai-chat-widget {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 420px;
  max-height: 500px;
  background: #1a0f0a;
  border: 1px solid rgba(218,61,38,0.3);
  border-radius: 16px;
  overflow: hidden;
  z-index: 9991;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}
.ai-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(218,61,38,0.15);
  color: #F5EDE0;
  font-weight: 500;
}
.ai-chat-header button {
  background: none;
  border: none;
  color: #F5EDE0;
  font-size: 20px;
  cursor: pointer;
}
.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  max-height: 55vh;
}
.ai-msg {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 85%;
}
.ai-msg--bot {
  background: rgba(245,237,224,0.08);
  color: #F5EDE0;
}
.ai-msg--user {
  background: rgba(218,61,38,0.2);
  color: #F5EDE0;
  margin-left: auto;
  text-align: right;
}
.ai-chat-input {
  display: flex;
  padding: 12px;
  border-top: 1px solid rgba(245,237,224,0.1);
}
.ai-chat-input input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(245,237,224,0.06);
  border: 1px solid rgba(245,237,224,0.15);
  border-radius: 8px;
  color: #F5EDE0;
  font-size: 0.9rem;
}
.ai-chat-input input::placeholder { color: rgba(245,237,224,0.4); }
.ai-chat-input button {
  margin-left: 8px;
  padding: 10px 14px;
  background: #DA3D26;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-size: 1rem;
}
@media (max-width: 480px) {
  .ai-chat-widget { width: calc(100vw - 32px); right: 16px; bottom: 80px; }
}

/* Proactive chat bubble */
.ai-proactive-bubble {
  position: fixed;
  bottom: 90px;
  right: 24px;
  max-width: 280px;
  background: #1a0f0a;
  border: 1px solid rgba(218,61,38,0.3);
  border-radius: 16px 16px 4px 16px;
  padding: 16px;
  color: #F5EDE0;
  font-size: 0.9rem;
  line-height: 1.5;
  z-index: 9992;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  animation: bubbleIn 0.4s ease-out;
  cursor: pointer;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ai-fab-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #27ae60;
  color: white;
  font-size: 0.7rem;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* ═══════ V2.0 REDESIGN ═══════ */

/* Hero tag */
.hero__tag {
  font-family: 'Golos Text', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 16px;
  background: rgba(218,61,38,0.5);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 6px;
}

/* Hero price line */
.hero__price {
  font-size: 0.85rem;
  color: rgba(240,237,232,0.7);
  letter-spacing: 0.5px;
}

/* Hero promo banner */
.hero__promo {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #1A1A2E;
  background: rgba(218,61,38,0.15);
  display: inline-block;
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid rgba(218,61,38,0.3);
}

/* Section headers — caps style */
.section-header__tag {
  font-family: 'Golos Text', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  font-size: 0.7rem !important;
  color: #DA3D26 !important;
}

.section-header__title {
  font-family: 'Golos Text', sans-serif !important;
  letter-spacing: -0.5px !important;
}

/* Dark theme for sections */
.services, .why-us, .promotions, .partners, .masters, .cta-banner {
  color: #1A1A2E;
}

/* Category cards on dark bg */
.category-card, .promo-card {
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
}
.category-card:hover {
  background: rgba(255,255,255,0.1) !important;
}

/* Footer — оставляем исходный тёмный фон из style.css.
   Прошлый override сделал его светлым, но текст внутри полупрозрачно-белый —
   на светлом фоне он становился нечитаемым. */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Header on dark */
.header {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(12px) !important;
}
.header__link {
  color: #1A1A2E !important;
}
.header__phone {
  color: #DA3D26 !important;
}

/* CTA form section */
.cta-banner {
  background: linear-gradient(135deg, #1a0f0a, #0f1923) !important;
}

/* Contact section */
.contacts {
  color: #1A1A2E;
}

/* Why-us section on dark */
.why-us {
  background: linear-gradient(135deg, rgba(15,25,35,0.95), rgba(26,15,10,0.95)), url(/assets/img/7941d2bee3a11c53611820c03c437c9b.jpg) center/cover no-repeat fixed !important;
}

/* Partners */
.partners {
  background: #F5F7FA !important;
}

/* Master cards on dark */
.master-card {
  background: #FFFFFF !important;
  border-color: #E5E7EB !important;
}
.master-card__name { color: #1A1A2E !important; }
.master-card__role { color: #6B7280 !important; }

/* Exit intent popup */
.exit-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.exit-popup {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
}
.exit-popup__close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #888;
}
.exit-popup h2 {
  font-family: 'Golos Text', sans-serif;
  font-size: 1.6rem;
  color: #2C1810;
  margin-bottom: 8px;
}
.exit-popup .discount {
  font-size: 3rem;
  font-weight: 800;
  color: #DA3D26;
  margin: 12px 0;
}
.exit-popup .code {
  font-family: monospace;
  font-size: 1.3rem;
  letter-spacing: 3px;
  background: #f8f0ee;
  padding: 8px 24px;
  border-radius: 8px;
  display: inline-block;
  margin: 12px 0;
  color: #DA3D26;
  font-weight: 700;
}
.exit-popup .btn {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 16px;
}

@media (max-width: 600px) {
  .hero__tag { font-size: 0.65rem; letter-spacing: 3px; }
  .hero__promo { font-size: 0.8rem; padding: 6px 14px; }
}

/* Header fix — no overflow */
.header .container, .header__inner {
  max-width: 1200px !important;
  padding: 0 20px !important;
  overflow: visible !important;
}
.header__actions {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}
.header__nav {
  gap: 16px !important;
}
.header__link {
  font-size: 0.85rem !important;
  white-space: nowrap !important;
}
.header__phone {
  font-size: 0.85rem !important;
}
#headerCta {
  padding: 8px 16px !important;
  font-size: 0.8rem !important;
  white-space: nowrap !important;
}

/* Header responsive sizing */
.header__logo-img {
  width: clamp(28px, 3vw, 40px) !important;
  height: auto !important;
}
.header__logo-text {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem) !important;
}
.header__inner {
  gap: 12px !important;
  align-items: center !important;
}
.header__nav {
  font-size: clamp(0.75rem, 1.2vw, 0.9rem) !important;
}
@media (max-width: 1100px) {
  .header__nav .header__link {
    font-size: 0.78rem !important;
  }
  .header__phone {
    font-size: 0.78rem !important;
  }
}

/* AI chat button — position right, above social bar */
.ai-chat-fab {
  bottom: 24px !important;
  right: 24px !important;
}
.ai-chat-widget {
  bottom: 90px !important;
  right: 24px !important;
}

/* Social bar on mobile */
@media (max-width: 600px) {
  #socialBar {
    right: 12px !important;
    top: auto !important;
    bottom: 80px !important;
    transform: none !important;
  }
  #socialBar a {
    width: 38px !important;
    height: 38px !important;
  }
}

/* ═══════ RIGHT SIDEBAR (Social + AI) ═══════ */
.side-buttons {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 9988;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.side-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.side-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.side-btn img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}
.side-btn--tg { background: #2AABEE; }
.side-btn--vk { background: #0077FF; }
.side-btn--wa, .side-btn--max { background: #7B68EE; }
.side-btn--ai {
  background: linear-gradient(135deg, #DA3D26, #E9512B);
  animation: aiPulse 3s ease-in-out infinite;
}
@keyframes aiPulse {
  0%, 100% { box-shadow: 0 3px 12px rgba(218,61,38,0.3); }
  50% { box-shadow: 0 3px 20px rgba(218,61,38,0.6); }
}
.side-btn__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #10B981;
  font-size: 9px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hide old fab */
.ai-chat-fab { display: none !important; }

/* AI chat opens above sidebar */
.ai-chat-widget {
  bottom: 200px !important;
  top: auto !important;
  right: 20px !important;
  transform: none !important;
  max-height: 70vh !important;
}

@media (max-width: 600px) {
  .side-buttons {
    right: 12px;
    bottom: 12px;
    flex-direction: column;
  }
  .side-btn { width: 42px; height: 42px; }
  .ai-chat-widget {
    right: 12px !important;
    top: auto !important;
    bottom: 70px !important;
    transform: none !important;
    width: calc(100vw - 24px) !important;
    /* Ограничиваем высоту виджета чтобы input всегда был виден,
       не уходил под нижнюю кромку экрана при длинном диалоге */
    max-height: calc(100vh - 140px) !important;
  }
  /* min-height: 0 у flex-child позволяет правильно сжимать messages
     при overflow-y: auto, освобождая место под input снизу */
  .ai-chat-messages { min-height: 0; }
  .ai-chat-input { flex-shrink: 0; }
}

/* Promo cards dark theme */
.promotions {
  color: #1A1A2E !important;
}
.promotions__grid {
  gap: 24px !important;
}
.promo-card, .promotions__grid > div {
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 16px !important;
  overflow: hidden;
  color: #1A1A2E !important;
}
.promo-card img {
  border-radius: 12px !important;
}
/* Promo badge old selector — оставлен только для legacy-разметки .badge.
   Семантический .promo-card__badge стилизуется ниже (serif outline). */
.promo-card .badge, .promo-badge {
  background: transparent !important;
  color: var(--fire) !important;
  border: 1px solid rgba(218,61,38,0.45) !important;
}
/* Promo title */
.promo-card h3, .promotions h3 {
  color: #1A1A2E !important;
}
/* Promo text */
.promo-card p, .promotions p {
  color: #6B7280 !important;
}
/* Promo button */
.promo-card .btn, .promotions .btn {
  background: #DA3D26 !important;
  color: white !important;
  border: none !important;
}

/* Fix CTA section */
.cta-banner, #cta {
  background: linear-gradient(135deg, #132236, #1a0f0a) !important;
}
.cta-banner input, .cta-banner select, #cta input, #cta select {
  background: #FFFFFF !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: #1A1A2E !important;
}
.cta-banner input::placeholder, #cta input::placeholder {
  color: #666 !important;
}

/* Fix contacts section */
#contacts, .contacts {
  color: #1A1A2E !important;
}
#contacts strong, .contacts strong {
  color: #1A1A2E !important;
}
#contacts p, .contacts p {
  color: #6B7280 !important;
}
#contacts a {
  color: #DA3D26 !important;
}

/* Fix all remaining light-theme text */
h1, h2, h3, h4, h5 {
  color: #1A1A2E;
}

/* ═══════ PROMOTIONS FULL DARK OVERRIDE ═══════ */
.promotions, #promotions {
  background: transparent !important;
  padding: 60px 0 !important;
}
.promotions .section-header__title {
  color: #1A1A2E !important;
}
.promotions__grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
  gap: 24px !important;
}
.promotions__grid > div,
.promotions__grid > a {
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  transition: border-color 0.3s !important;
  color: #1A1A2E !important;
}
.promotions__grid > div:hover,
.promotions__grid > a:hover {
  border-color: rgba(218,61,38,0.4) !important;
}
/* Promo card internals */
.promotions__grid img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}
.promotions__grid h3 {
  color: #1A1A2E !important;
  font-family: 'Golos Text', sans-serif !important;
  font-size: 1.15rem !important;
  margin: 12px 0 8px !important;
}
.promotions__grid p {
  color: #6B7280 !important;
  font-size: 0.85rem !important;
  line-height: 1.5 !important;
}
.promotions__grid span:not(.promo-card__badge) {
  background: rgba(218,61,38,0.15) !important;
  color: #DA3D26 !important;
  padding: 4px 12px !important;
  border-radius: 6px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
}
.promotions__grid button,
.promotions__grid .btn {
  background: #DA3D26 !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 10px !important;
  font-size: 0.9rem !important;
  width: 100% !important;
  margin-top: 12px !important;
  cursor: pointer !important;
}
.promotions__grid button:hover {
  background: #C0392B !important;
}


/* ═══════ SERVICE MODAL DARK THEME FIX ═══════ */
.modal--open .modal__content,
.modal .modal__content {
  background: #FFFFFF !important;
  color: #1A1A2E !important;
}
.modal__content h2, .modal__content h3, .modal__content h4,
.modal__content .modal__title {
  color: #1A1A2E !important;
}
.modal__content p, .modal__content li, .modal__content span,
.modal__content div {
  color: #4B5563 !important;
}
.modal__content .price, .modal__content [class*="price"] {
  color: #DA3D26 !important;
}
.modal__content a {
  color: #5DAFE4 !important;
}
.modal__content button.btn--fire,
.modal__content .btn--fire {
  background: #DA3D26 !important;
  color: white !important;
}
.modal__content .modal__close {
  background: rgba(255,255,255,0.1) !important;
  color: #1A1A2E !important;
}
.modal__content ul {
  color: #4B5563 !important;
}
.modal__content ul li::marker {
  color: #DA3D26;
}
.modal__img-panel {
  background-color: #F5F7FA !important;
}
/* Description text */
.modal__content [class*="desc"],
.modal__content [class*="info"] {
  color: #6B7280 !important;
  line-height: 1.6 !important;
}

/* ═══════ MOBILE BURGER MENU FIX ═══════ */
.header__burger {
  z-index: 1000 !important;
  position: relative !important;
  cursor: pointer !important;
  background: none !important;
  border: none !important;
  padding: 8px !important;
}
.header__burger span {
  display: block !important;
  width: 24px !important;
  height: 2px !important;
  background: #F0EDE8 !important;
  margin: 5px 0 !important;
  transition: all 0.3s !important;
}
.header__nav.active,
.header__nav--open,
#nav.active {
  display: flex !important;
  flex-direction: column !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(12,17,23,0.98) !important;
  z-index: 999 !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 24px !important;
}
.header__nav.active .header__link,
#nav.active .header__link {
  font-size: 1.2rem !important;
  color: #1A1A2E !important;
}
@media (max-width: 768px) {
  .header__nav {
    display: none !important;
  }
  .header__nav.active,
  #nav.active {
    display: flex !important;
  }
  .header__phone {
    display: none !important;
  }
  #headerCta {
    font-size: 0.75rem !important;
    padding: 6px 12px !important;
  }
}

/* ═══════ MODAL IMAGE + MASTER PROFILE FIX ═══════ */
#modalImg, .modal__img-panel {
  background-color: #0E1525;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
/* Master profile modal — dark readable */
.master-profile__name { color: #1A1A2E !important; }
.master-profile__role { color: #6B7280 !important; }
.master-profile__bio { color: #4B5563 !important; }
.master-profile__services h3 { color: #DA3D26 !important; }
.master-profile__service-item { color: #1A1A2E !important; border-color: rgba(255,255,255,0.06) !important; }
.master-profile__service-price { color: #DA3D26 !important; }
.master-profile__photo { border: 2px solid rgba(255,255,255,0.1) !important; }

/* Modal body text */
.modal__body { color: #4B5563 !important; }
.modal__body h3, .modal__body h4 { color: #1A1A2E !important; }
.modal__body ul li { color: #4B5563 !important; }
.modal__category { color: #DA3D26 !important; }
#modalTitle { color: #1A1A2E !important; }
#modalPrice { color: #DA3D26 !important; }
#modalDescription { color: #4B5563 !important; }
#modalDescription h3, #modalDescription h4 { color: #1A1A2E !important; }
#modalDescription li { color: #4B5563 !important; }

/* Modal close on dark */
.modal__close {
  color: #1A1A2E !important;
}

/* ═══════ MASTER MODAL FULL DARK FIX ═══════ */
.master-dialog, .modal-overlay .master-dialog {
  background: #FFFBF7 !important;
  color: #1A1A2E !important;
}
.master-dialog h3, .master-dialog b {
  color: #1A1A2E !important;
}
.master-dialog .master-profile__service-item {
  color: #4B5563 !important;
}
.master-dialog .btn {
  color: white !important;
}



/* ═══════ HERO BUTTONS — GLASSMORPHISM ═══════ */
.flot-btn-red {
  display: inline-flex;
  align-items: stretch;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 8px 32px rgba(213, 28, 68, 0.35);
  text-decoration: none !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(213, 28, 68, 0.4);
}
.flot-btn-red:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 40px rgba(213, 28, 68, 0.55);
}
.flot-btn-red__text {
  background: rgba(213, 28, 68, 0.85);
  color: #ffffff;
  padding: 18px 30px;
  font-family: 'Golos Text', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
  letter-spacing: 1.2px;
  display: flex;
  align-items: center;
}
.flot-btn-red__badge {
  background: rgba(255,255,255,0.95);
  color: #d51c44;
  font-family: 'Golos Text', sans-serif;
  font-size: 28px;
  font-weight: 800;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 75px;
  animation: glassBadge 3s ease-in-out infinite;
}
@keyframes glassBadge {
  0%, 100% { background: rgba(255,255,255,0.95); color: #d51c44; }
  50% { background: rgba(255, 215, 0, 0.95); color: #1a1a1a; }
}

.flot-btn-play {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #FFFFFF;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(147, 197, 225, 0.25);
  border-radius: 14px;
  padding: 16px 26px;
  cursor: pointer;
  transition: all 0.25s;
}
.flot-btn-play:hover {
  background: rgba(147, 197, 225, 0.12);
  border-color: rgba(147, 197, 225, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(93, 152, 188, 0.2);
}
.flot-btn-play__text {
  font-family: 'Golos Text', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  text-align: left;
  line-height: 1.35;
  letter-spacing: 1px;
}
.flot-btn-play__icon {
  width: 48px;
  height: 48px;
  background: rgba(147, 197, 225, 0.15);
  border: 1.5px solid rgba(147, 197, 225, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93C5E1;
  font-size: 16px;
  flex-shrink: 0;
  transition: all 0.25s;
}
.flot-btn-play:hover .flot-btn-play__icon {
  background: rgba(147, 197, 225, 0.25);
  border-color: rgba(147, 197, 225, 0.7);
  color: white;
}

@media (max-width: 600px) {
  .flot-btn-red__text { padding: 14px 20px; font-size: 11px; letter-spacing: 0.8px; }
  .flot-btn-red__badge { font-size: 22px; padding: 0 16px; min-width: 60px; }
  .flot-btn-play { padding: 12px 18px; gap: 10px; }
  .flot-btn-play__text { font-size: 11px; }
  .flot-btn-play__icon { width: 40px; height: 40px; font-size: 14px; }
}

/* ═══════ CTA FORM DARK ═══════ */
.cta-banner {
  background: linear-gradient(135deg, #1A1A2E, #2D1810) !important;
  color: #F5EDE0 !important;
}
.cta-banner h2, .cta-banner p {
  color: #FFFFFF !important;
}
.cta-banner p {
  color: rgba(255, 255, 255, 0.78) !important;
}
.cta-banner input, .cta-banner select {
  background: #FFFFFF !important;
  border: 1px solid rgba(255,255,255,0.15) !important;
  color: #1A1A2E !important;
  border-radius: 10px !important;
}
.cta-banner input::placeholder {
  color: rgba(26, 26, 46, 0.42) !important;
}
.cta-banner .btn {
  background: #DA3D26 !important;
  color: white !important;
}
.cta-banner label, .cta-banner a {
  color: rgba(255,255,255,0.6) !important;
}

/* Партнёры */
.partners__grid > div {
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  color: #1A1A2E !important;
}

/* Footer — тёмный, чтобы тонкий Cormorant читался уверенно.
   Раньше делали светлым (#F5F7FA), но тонкий serif на светлом сером
   "выцветал" — текст казался невидимым.
   WCAG AA: rgba(255,255,255,0.78) на #1A1A2E = ~11:1 (AAA). */
.footer {
  background: #1A1A2E !important;
  color: rgba(255, 255, 255, 0.78) !important;
}
.footer a { color: rgba(255, 255, 255, 0.78) !important; }
.footer a:hover { color: #FFFFFF !important; }
.footer__brand { color: #FFFFFF !important; }
.footer__legal { color: rgba(255, 255, 255, 0.68) !important; }
.footer__legal a {
  color: #EF7D53 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.footer__legal a:hover { color: #FACEC1 !important; }
.footer__legal b { color: #FFFFFF !important; }

/* ═══════ HERO TEXT READABILITY ═══════ */
.hero__title {
  text-shadow: 0 2px 24px rgba(0,0,0,0.7), 0 1px 6px rgba(0,0,0,0.5) !important;
  color: #FFFFFF !important;
}
.hero__title em {
  color: #FFFFFF !important;
}
.hero__subtitle {
  text-shadow: 0 1px 10px rgba(0,0,0,0.5) !important;
  color: rgba(255,255,255,0.95) !important;
}
.hero__tag {
  text-shadow: none !important;
}
.hero__content {
  color: #FFFFFF !important;
}

/* Logo text — make readable */
.header__logo-text {
  color: #1A1A2E !important;
}
.header__logo-text .brand-name__ice {
  color: #5D98BC !important;
  font-weight: 700 !important;
}
.header__logo-text .brand-name__and {
  color: #4A5568 !important;
  font-weight: 600 !important;
  font-size: 0.9em !important;
}
.header__logo-text .brand-name__fire {
  color: #DA3D26 !important;
  font-weight: 700 !important;
}

/* ═══════ FOCUS RING — клавиатурная навигация в фирменном цвете ═══════ */
:focus-visible {
  outline: 2px solid #DA3D26 !important;
  outline-offset: 3px;
  border-radius: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #DA3D26 !important;
  outline-offset: 3px;
}

/* Header on light bg */
.header {
  background: linear-gradient(135deg, rgba(216,238,250,0.9), rgba(245,249,252,0.95), rgba(255,255,255,0.95)) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(93,152,188,0.15) !important;
}
.header__link {
  color: #1A1A2E !important;
  font-weight: 500 !important;
}
.header__phone {
  color: #DA3D26 !important;
  font-weight: 600 !important;
}

/* Hero overlay — slightly darker for text readability */
.hero__overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.65) 100%) !important;
}

/* HEADER SCROLL BEHAVIOR */
.header {
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s !important;
}
.header--transparent {
  background: transparent !important;
  border-bottom: 1px solid transparent !important;
  box-shadow: none !important;
}
.header--transparent .header__link {
  color: #FFFFFF !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.header--transparent .header__phone {
  color: #FFFFFF !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.header--transparent .header__logo-text .brand-name__ice,
.header--transparent .header__logo-text .brand-name__and,
.header--transparent .header__logo-text .brand-name__fire {
  color: #FFFFFF !important;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.header--transparent #headerCta {
  background: rgba(218,61,38,0.9) !important;
}
.header--solid {
  background: linear-gradient(135deg, rgba(216,238,250,0.95), rgba(255,255,255,0.98)) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(93,152,188,0.15) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
.header--solid .header__link {
  color: #1A1A2E !important;
  text-shadow: none;
}
.header--solid .header__phone {
  color: #DA3D26 !important;
  text-shadow: none;
}
.header--solid .header__logo-text .brand-name__ice {
  color: #5D98BC !important;
  text-shadow: none;
}
.header--solid .header__logo-text .brand-name__and {
  color: #4A5568 !important;
  text-shadow: none;
}
.header--solid .header__logo-text .brand-name__fire {
  color: #DA3D26 !important;
  text-shadow: none;
}

/* ═══════ АБОНЕМЕНТЫ — КАРТОЧКИ ═══════ */
.subscriptions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.sub-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 24px rgba(124,36,19,0.08);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.sub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(124,36,19,0.15);
}
.sub-card__icon {
  font-size: 2rem;
  color: #DA3D26;
  margin-bottom: 12px;
}
.sub-card__title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  color: #7C2413;
  margin-bottom: 8px;
  font-weight: 600;
}
.sub-card__price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #DA3D26;
  margin-bottom: 12px;
}
.sub-card__desc {
  color: #8B6B5A;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.sub-card__conditions {
  font-size: 0.85rem;
  color: #B8A090;
  margin-bottom: 16px;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATED ICE+FIRE BACKGROUND — "дышащий" фон под секциями.
   Анимируем только opacity (легчайшая операция для GPU,
   не создаёт большой композитный слой и не вызывает jank
   при прокрутке мимо тяжёлых картинок услуг).
   ═══════════════════════════════════════════════════════════════ */
/* Псевдоэлемент над body-фоном, но под контентом (z-index выше body
   linear-gradient, ниже header/секций — те имеют свой stacking) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60vw 50vh at 85% 78%,
      rgba(255, 100, 50, 0.45) 0%,
      rgba(218, 61, 38, 0.22) 35%,
      transparent 62%),
    radial-gradient(ellipse 70vw 55vh at 15% 25%,
      rgba(80, 170, 215, 0.50) 0%,
      rgba(50, 130, 185, 0.25) 40%,
      transparent 65%);
  animation: iceFireBreath 18s ease-in-out infinite alternate;
}

/* Контент должен быть НАД фоновым слоем */
body > * { position: relative; z-index: 1; }

@keyframes iceFireBreath {
  0%   { opacity: 0.6; }
  100% { opacity: 1.0; }
}

/* На hero — фоновый слой не должен перекрывать видео */
.hero { position: relative; z-index: 2; }

/* Уважаем системную настройку «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* На мобильных — декор полностью убираем.
   Два больших radial-gradient + composite на каждый scroll —
   слишком тяжело для бюджетных Android GPU. Фирменное настроение
   уже задаёт body linear-gradient + сами карточки. */
@media (max-width: 768px) {
  body::before {
    animation: none;
    background: none;
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════════
   POLISH PASS #2 — мелкие визуальные правки по итогам ревью
   ═══════════════════════════════════════════════════════════════ */

/* #5: Боковые соцкнопки — усиленная тень + тонкая светлая обводка
   для отрыва от любого фона */
.side-btn {
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55) !important;
}
.side-btn:hover {
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7) !important;
}

/* #7: Мягкая тень в покое у карточек категорий и акций —
   чтобы не выглядели «бумажными» на белом фоне */
.category-card {
  box-shadow:
    0 1px 2px rgba(20, 20, 40, 0.04),
    0 6px 18px rgba(124, 36, 19, 0.05);
}
.category-card:hover {
  /* hover-тень уже есть выше, усиливаем чуть */
  box-shadow: 0 22px 48px rgba(124, 36, 19, 0.16);
}
.promo-card--with-photo {
  box-shadow:
    0 1px 2px rgba(20, 20, 40, 0.04),
    0 6px 18px rgba(124, 36, 19, 0.04);
}

/* #8: Дыхание между названием категории и счётчиком процедур */
.category-card__name {
  margin-bottom: 8px !important;
}
.category-card__count {
  letter-spacing: 0.02em;
}

/* #13: Табличные цифры — цены в каталоге выравниваются
   по разрядам, не «прыгают» */
.service-card__price,
.service-related__price,
.promo-card__price,
.category-card__count {
  font-variant-numeric: tabular-nums;
}

/* ═══════ MOBILE PERFORMANCE — отключаем тяжёлый GPU-эффект
   На слабых Android (особенно бюджетных и старше 2-3 лет)
   backdrop-filter: blur вешает рендер до белого экрана.
   На десктопе оставляем — там GPU справляется. */
@media (max-width: 768px) {
  *,
  *::before,
  *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   BUTTON SYSTEM — общие переменные для всех primary-кнопок
   Применяется к .btn--fire и .service-cta, чтобы сайт выглядел
   как единая система, а не набор разных стилей.
   ═══════════════════════════════════════════════════════════════ */
:root {
  --btn-radius: 12px;
  --btn-pad-y: 16px;
  --btn-pad-x: 32px;
  --btn-fs: 15px;
  --btn-fw: 600;
  --btn-tracking: 0.04em;
  --btn-shadow-rest: 0 4px 18px rgba(218, 61, 38, 0.22);
  --btn-shadow-hover: 0 8px 28px rgba(218, 61, 38, 0.38);
}

/* .btn--fire — основная primary-кнопка во всех секциях кроме
   hero (там inline для контроля через JS) */
.btn--fire {
  border-radius: var(--btn-radius) !important;
  padding: var(--btn-pad-y) var(--btn-pad-x) !important;
  font-size: var(--btn-fs) !important;
  font-weight: var(--btn-fw) !important;
  letter-spacing: var(--btn-tracking) !important;
  box-shadow: var(--btn-shadow-rest) !important;
  text-transform: uppercase;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease !important;
}
.btn--fire:hover {
  transform: translateY(-2px);
  box-shadow: var(--btn-shadow-hover) !important;
  filter: brightness(1.04);
}

/* Кнопка «Войти» в шапке — компактнее, не uppercase
   (она маленькая иконочная зона, не хочется кричать) */
.header__actions .btn--fire {
  padding: 10px 22px !important;
  font-size: 14px !important;
  text-transform: none;
  letter-spacing: 0.02em !important;
}

/* ═══════════════════════════════════════════════════════════════
   AMBIENT-BG COMPAT — финальный слой, перекрывает старые !important
   из верхних блоков, чтобы лёд/пламя дышали сквозь секции.
   ═══════════════════════════════════════════════════════════════ */

/* Партнёры — пропускают ambient через себя.
   (Раньше тут был solid #F5F7FA !important — это рвало поток.) */
.partners {
  background: transparent !important;
}

/* Промо-карточка — полупрозрачная, чтобы лёд/пламя просвечивали
   и карточка читалась как «парящая стеклянная плита». */
.promo-card,
.promo-card--with-photo {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(124, 36, 19, 0.10) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Бейдж в премиум-карточке акции — повторяем serif outline здесь
   (на случай если style.css кэширован — premium.css всегда позже). */
.promo-card__badge {
  background: transparent !important;
  border: 1px solid rgba(218, 61, 38, 0.45) !important;
  color: var(--fire) !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 6px 18px !important;
}
