/* Не показывать «разваленную» вёрстку до Tailwind CDN */
html:not(.fabricaes-ready) body {
  visibility: hidden;
}

html.fabricaes-ready body {
  visibility: visible;
}

:root {
  --font-serif: 'Playfair Display', serif;
  --font-script: 'Caveat', cursive;
  --font-sans: 'Manrope', system-ui, sans-serif;
  --color-gold: #c9a86c;
  --color-gold-dark: #8b6914;
  --color-brown: #6b4423;
  /* Макеты home / catalog / services / kurs */
  --page-cream: #f9f7f2;
  --accent-tan: #b08d6a;
  --accent-tan-hover: #9a7a5c;
  --footer-dark: #1a1a1a;
  --site-header-h: 4.75rem;
}

html {
  font-family: var(--font-sans);
}

.font-serif {
  font-family: var(--font-serif);
}

.font-script {
  font-family: var(--font-script);
}

.font-sans {
  font-family: var(--font-sans);
}

.text-gradient-gold {
  background: linear-gradient(135deg, #c9a86c 0%, #f4e5c2 50%, #b8944a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(201, 168, 108, 0.3));
}

/* Герой: рукописный Caveat — читаемее Marck Script */
.hero-title {
  font-family: var(--font-script);
  line-height: 1.12;
  overflow: visible;
  width: 100%;
  max-width: 100%;
}

.hero-line {
  display: block;
  overflow: visible;
  font-weight: 600;
  font-size: clamp(1.85rem, 6vw, 2.65rem);
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55), 0 2px 20px rgba(0, 0, 0, 0.4);
  padding-bottom: 0.1em;
  line-height: 1.14;
}

.hero-accent-gold {
  font-weight: 700;
  color: #ffecb8;
  -webkit-text-fill-color: #ffecb8;
  background: none;
  filter: none;
  text-shadow:
    0 0 24px rgba(255, 200, 110, 0.8),
    0 2px 8px rgba(0, 0, 0, 0.95),
    0 0 2px rgba(255, 255, 255, 0.45);
}

@media (min-width: 640px) {
  .hero-line {
    font-size: clamp(2.15rem, 4.8vw, 3.35rem);
  }
}

@media (min-width: 1024px) {
  .hero-copy {
    max-width: 42rem;
  }

  .hero-line {
    font-size: clamp(2.5rem, 3.4vw, 3.85rem);
    line-height: 1.1;
  }
}

/* Герой: слайдер заголовков (сетка — высота под самый высокий слайд, стрелки не под текстом) */
.hero-headline-slider {
  position: relative;
}

.hero-headline-slider__viewport {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  position: relative;
  overflow: visible;
}

.hero-slide {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: stretch;
  width: 100%;
  position: relative;
  overflow: visible;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  pointer-events: none;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.hero-headline-slider__nav {
  position: relative;
  z-index: 2;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .hero-headline-slider__nav {
    margin-top: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

/* Marquee animation */
.marquee-container {
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.marquee-content {
  flex-shrink: 0;
}

/* Floating animations for hero images */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
  animation: float 6s ease-in-out infinite;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(6deg);
  }
  50% {
    transform: translateY(-20px) rotate(6deg);
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Custom selection color */
::selection {
  background-color: rgba(201, 168, 108, 0.3);
  color: inherit;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Product card hover lift */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Line clamp for descriptions if needed */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile menu transition */
#mobile-menu {
  transition: all 0.3s ease;
}


/* Кнопки под слайдером на главной */
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .hero-cta-row {
    gap: 0.75rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-container,
  .animate-float,
  .animate-float-delayed {
    animation: none;
  }
  
  html {
    scroll-behavior: auto;
  }

}

.hero-bg-img {
  z-index: 0;
}

/* Компактный hero: страницы «Обучение» и «Услуги» */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(15.5rem, 34vh, 21.5rem);
  padding-top: calc(var(--site-header-h) + 1rem);
  padding-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
  overflow: hidden;
}

.page-hero--align-end {
  align-items: flex-end;
  padding-top: var(--site-header-h);
}

.page-hero--compact {
  min-height: clamp(11rem, 24vh, 15rem);
  padding-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.page-hero__breadcrumbs {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.62);
}

.page-hero__breadcrumbs a {
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s ease;
}

.page-hero__breadcrumbs a:hover {
  color: #fff;
}

.page-hero__breadcrumbs span[aria-hidden="true"] {
  margin-inline: 0.35rem;
  opacity: 0.45;
}

.page-hero__media {
  position: absolute;
  inset: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
}

.page-hero__overlay--left {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.65) 45%, rgba(0, 0, 0, 0.5) 100%);
}

.page-hero__overlay--bottom {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.3) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  color: #fff;
}

.page-hero__content--center {
  text-align: center;
}

.page-hero__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.page-hero__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
}

.page-hero__lead {
  margin: 0;
  max-width: 42rem;
  font-size: clamp(0.8125rem, 1.6vw, 1rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
}

.page-hero__content--center .page-hero__lead {
  margin-inline: auto;
}

.page-content-section {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

/* Страница услуг: отложенная отрисовка списка карточек ниже первого экрана */
.services-list-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 2200px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}

.social-icon:hover {
  color: #fff;
}

.social-max {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.35rem;
  line-height: 1;
}

.catalog-layout .catalog-filters {
  position: sticky;
  top: calc(var(--site-header-h) + 0.5rem);
  align-self: flex-start;
}

.page-cream {
  background-color: var(--page-cream);
}

.btn-tan {
  background-color: var(--accent-tan);
  color: #fff;
  transition: background-color 0.2s ease;
}

.btn-tan:hover {
  background-color: var(--accent-tan-hover);
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #444;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-pill:hover {
  border-color: rgba(176, 141, 106, 0.45);
  color: #1a1a1a;
}

.filter-pill.is-active {
  background: #6b4c3b;
  border-color: #6b4c3b;
  color: #fff;
}

.catalog-subfilter__label {
  margin: 0 0 0.65rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
}

.filter-pill--sub {
  font-size: 0.75rem;
  padding: 0.45rem 0.85rem;
}

/* Единая чёрная шапка */
.site-header {
  background-color: #000;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  min-height: var(--site-header-h);
  padding-block: 0.35rem;
}

.site-header__logo {
  flex: 0 0 auto;
  max-width: min(44vw, 10.5rem);
}

.site-header__nav {
  display: none;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.28rem;
  padding-inline: 0.2rem;
}

.site-header__actions {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.35rem;
}

.site-header__burger {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.site-header__phone {
  letter-spacing: 0.02em;
}

.header-btn-ghost {
  padding: 0.35rem 0.7rem;
  font-size: 0.6875rem;
  line-height: 1.2;
}

.header-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.8rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
}

@media (min-width: 1024px) {
  .site-header__logo {
    max-width: 11.5rem;
  }

  .site-header__nav {
    display: flex;
  }

  .site-header__actions {
    display: flex;
  }

  .site-header__burger {
    display: none;
  }
}

@media (min-width: 1280px) {
  .site-header__logo {
    max-width: 12.75rem;
  }

  .site-header__nav {
    gap: 0.34rem;
  }

  .header-btn-cta {
    padding: 0.42rem 0.95rem;
    font-size: 0.75rem;
  }

  .header-btn-ghost {
    padding: 0.38rem 0.85rem;
    font-size: 0.75rem;
  }
}

@media (min-width: 1536px) {
  .site-header__logo {
    max-width: 13.5rem;
  }
}

/* Плитки категорий на главной: flex — неполный последний ряд по центру */
.home-categories-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.home-categories-grid__empty {
  flex: 1 1 100%;
  width: 100%;
}

.home-categories-grid .home-cat-tile {
  flex: 1 1 100%;
  max-width: 100%;
}

@media (min-width: 640px) {
  .home-categories-grid .home-cat-tile {
    flex: 0 1 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
  }
}

@media (min-width: 1024px) {
  .home-categories-grid .home-cat-tile {
    flex: 0 1 calc(33.333% - 1rem);
    max-width: calc(33.333% - 1rem);
  }
}

/* Плитки категорий на главной: один фон + затемнение для белого текста */
.home-cat-tile {
  isolation: isolate;
}

.home-cat-tile__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('bgcat1.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0.55s ease;
}

.home-cat-tile:hover .home-cat-tile__bg,
.home-cat-tile:focus-visible .home-cat-tile__bg {
  transform: scale(1.06);
}

.home-cat-tile__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82) 0%,
    rgba(0, 0, 0, 0.55) 42%,
    rgba(0, 0, 0, 0.38) 100%
  );
}

.home-cat-tile__caption {
  position: relative;
  z-index: 2;
}

/* Категории услуг: три квадратные плитки в ряд */
.service-categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .service-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.service-cat-tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.28);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-cat-tile:hover,
.service-cat-tile:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.32);
}

.service-cat-tile__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('img/bgus1.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 0.55s ease;
}

.service-cat-tile:hover .service-cat-tile__bg,
.service-cat-tile:focus-visible .service-cat-tile__bg {
  transform: scale(1.06);
}

.service-cat-tile__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.84) 0%,
    rgba(0, 0, 0, 0.45) 55%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.service-cat-tile__caption {
  position: absolute;
  z-index: 2;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  pointer-events: none;
}

.service-cat-tile__caption h3 {
  color: #fff;
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65);
}

.service-section {
  scroll-margin-top: calc(var(--site-header-h, 4.5rem) + 1rem);
}

.service-section + .service-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.service-section__title {
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  color: #111827;
  margin-bottom: 1.5rem;
}

.service-section__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .service-section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

/* Пункты меню в шапке: «пилюли» со стеклянным фоном (чуть плотнее — больше пунктов) */
.nav-link-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0.32rem 0.48rem;
  border-radius: 9999px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.2);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.nav-link-header:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 28px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.nav-link-header.is-active {
  color: #1c1610;
  background: linear-gradient(160deg, #f0e4d2 0%, #d4b896 38%, #b08d6a 100%);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 0 0 1px rgba(201, 168, 108, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 10px 32px rgba(0, 0, 0, 0.45);
}

.nav-link-header.is-active:hover {
  color: #14100c;
  transform: translateY(-1px);
}

@media (min-width: 1280px) {
  .nav-link-header {
    padding: 0.36rem 0.55rem;
    font-size: 0.6875rem;
    letter-spacing: 0.06em;
  }
}

/* Мобильное меню — те же визуальные принципы */
.nav-link-mobile {
  display: block;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-link-mobile:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.nav-link-mobile.is-active {
  color: #1c1610;
  background: linear-gradient(160deg, #f0e4d2 0%, #c9a86c 55%, #9a7a5c 100%);
  border-color: rgba(255, 255, 255, 0.35);
}

.icon-btn-header {
  color: rgba(255, 255, 255, 0.72);
}

.icon-btn-header:hover {
  color: #fff;
}

/* Логотип в шапке: крупнее, без лишнего сглаживания при масштабе */
.site-logo.site-logo--header {
  height: 2.15rem;
  width: auto;
  max-width: min(280px, 46vw);
  object-fit: contain;
  object-position: left center;
  transform: translateZ(0);
  backface-visibility: hidden;
}

@media (min-width: 768px) {
  .site-logo.site-logo--header {
    height: 2.05rem;
    max-width: min(240px, 32vw);
  }
}

@media (min-width: 1024px) {
  .site-logo.site-logo--header {
    height: 2.1rem;
    max-width: 210px;
  }
}

@media (min-width: 1280px) {
  .site-logo.site-logo--header {
    height: 2.25rem;
    max-width: 230px;
  }
}

.site-logo.site-logo--footer {
  height: 2.1rem;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
}

.social-circle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.social-circle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.social-circle--light {
  color: #6b4c3b;
  border-color: rgba(107, 76, 59, 0.22);
  background: #fff;
}

.social-circle--light:hover {
  color: #fff;
  background: #6b4c3b;
  border-color: #6b4c3b;
}

/* Главная: блок «Станьте мастером…» по макету blok.jpg */
.edu-promo-blok {
  background: #0a0a0a;
}

.edu-promo-blok__panel {
  background: #1a1a1a;
}

.edu-promo-blok__script-rose {
  font-family: var(--font-script);
  font-weight: 400;
  background: linear-gradient(125deg, #f5d4cc 0%, #d4a08f 38%, #c58d7e 62%, #9e6a5f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 12px rgba(197, 141, 126, 0.25));
}

.edu-promo-blok__serif-rose {
  font-family: var(--font-serif);
  font-weight: 700;
  background: linear-gradient(125deg, #f0c9c0 0%, #c58d7e 45%, #a86b5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.edu-promo-blok__price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: stretch;
}

.edu-promo-blok__price-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  min-height: 7.5rem;
  padding: 0.75rem 0.5rem 0.65rem;
  border-radius: 0.75rem;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: center;
}

@media (min-width: 640px) {
  .edu-promo-blok__price-grid {
    gap: 0.75rem;
  }

  .edu-promo-blok__price-card {
    min-height: 8.25rem;
    padding: 1rem 0.75rem 0.85rem;
  }
}

.edu-promo-blok__price-title-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.75rem;
}

@media (min-width: 640px) {
  .edu-promo-blok__price-title-wrap {
    min-height: 4.25rem;
  }
}

.edu-promo-blok__price-title {
  margin: 0;
  color: #a3a3a3;
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.01em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

@media (min-width: 640px) {
  .edu-promo-blok__price-title {
    font-size: 0.6875rem;
  }
}

.edu-promo-blok__price-value {
  flex-shrink: 0;
  margin: 0.65rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

@media (min-width: 640px) {
  .edu-promo-blok__price-value {
    font-size: 1rem;
  }
}

.edu-promo-blok__cta:focus-visible {
  outline: 2px solid rgba(197, 141, 126, 0.8);
  outline-offset: 3px;
}

/* --- Разделители между секциями (главная и др.) --- */
.section-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 1.25rem);
  padding: clamp(1.35rem, 3.5vw, 2.15rem) clamp(1rem, 5vw, 2.5rem);
  margin: 0;
}

.section-sep__arm {
  flex: 1 1 0;
  height: 1px;
  max-width: min(280px, 38vw);
  border-radius: 9999px;
}

.section-sep__arm--l {
  background: linear-gradient(90deg, transparent 0%, rgba(176, 141, 106, 0.55) 100%);
}

.section-sep__arm--r {
  background: linear-gradient(270deg, transparent 0%, rgba(176, 141, 106, 0.55) 100%);
}

.section-sep__mark {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border-radius: 1px;
  background: linear-gradient(135deg, #e8d5b7 0%, #b08d6a 55%, #8b6f4a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 4px 14px rgba(139, 111, 74, 0.28);
}

/* Плавный спуск с тёмного героя к светлому контенту */
.section-sep--blend-hero {
  display: block;
  height: clamp(3rem, 8vw, 4.5rem);
  padding: 0;
  margin: 0;
  background: linear-gradient(
    180deg,
    #0a0a0a 0%,
    #1f1a16 28%,
    #ebe6dc 78%,
    #ffffff 100%
  );
}

/* Переход к тёмному футеру */
.section-sep--to-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 1.25rem);
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 5vw, 2.5rem) clamp(1.75rem, 4vw, 2.5rem);
  margin: 0;
  background: linear-gradient(
    180deg,
    #fafaf9 0%,
    #eceae7 42%,
    #4a4540 82%,
    #1a1a1a 100%
  );
}

.section-sep--to-footer .section-sep__arm--l {
  background: linear-gradient(90deg, transparent 0%, rgba(232, 213, 183, 0.5) 100%);
}

.section-sep--to-footer .section-sep__arm--r {
  background: linear-gradient(270deg, transparent 0%, rgba(232, 213, 183, 0.5) 100%);
}

.section-sep--to-footer .section-sep__mark {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2),
    0 4px 18px rgba(0, 0, 0, 0.35);
}

/* HTML-описания из админки (CKEditor) */
.rich-text {
  color: #4b5563;
}

.rich-text > :first-child {
  margin-top: 0;
}

.rich-text > :last-child {
  margin-bottom: 0;
}

.rich-text p {
  margin-bottom: 0.85em;
}

.rich-text h3,
.rich-text h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: #111827;
  margin: 1.1em 0 0.45em;
}

.rich-text h3 {
  font-size: 1.125rem;
}

.rich-text h4 {
  font-size: 1rem;
}

.rich-text ul,
.rich-text ol {
  margin: 0.65em 0 0.85em;
  padding-left: 1.35em;
}

.rich-text ul {
  list-style: disc;
}

.rich-text ol {
  list-style: decimal;
}

.rich-text li {
  margin-bottom: 0.35em;
}

.rich-text a {
  color: #6b4c3b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rich-text a:hover {
  color: #5a4030;
}

.rich-text blockquote {
  margin: 0.85em 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(176, 141, 106, 0.55);
  color: #6b7280;
  font-style: italic;
}

.rich-text hr {
  margin: 1.25em 0;
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.rich-text strong {
  font-weight: 700;
  color: #374151;
}

/* Корзина и личный кабинет */
.cart-badge {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.25rem;
  border-radius: 9999px;
  background: #b08d6a;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1.125rem;
  text-align: center;
  pointer-events: none;
}

.cart-link {
  position: relative;
}

.form-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.form-input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.875rem;
  background: #fff;
  outline: none;
}

.form-input:focus {
  border-color: rgba(176, 141, 106, 0.65);
  box-shadow: 0 0 0 3px rgba(176, 141, 106, 0.15);
}

.account-tab {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.account-tab.is-active {
  background: #6b4c3b;
  border-color: #6b4c3b;
  color: #fff;
}

.qty-control .qty-btn {
  user-select: none;
}

/* Главная: слайдер отзывов */
.testimonials-slider {
  position: relative;
  padding-inline: clamp(2.5rem, 6vw, 3.25rem);
}

.testimonials-slider__viewport {
  overflow: hidden;
}

.testimonials-slider__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.testimonials-slider__slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding-inline: 0.15rem;
}

.testimonials-slider__nav {
  position: absolute;
  top: 42%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  color: #374151;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.testimonials-slider__nav:hover {
  background: #fafaf9;
  color: #111827;
  border-color: rgba(176, 141, 106, 0.35);
}

.testimonials-slider__nav--prev {
  left: 0;
}

.testimonials-slider__nav--next {
  right: 0;
}

.testimonials-slider__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.testimonials-slider__dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: #d1d5db;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.testimonials-slider__dot.is-active {
  width: 2rem;
  background: #1f2937;
}

.testimonials-slider__dot:hover {
  background: #9ca3af;
}

.testimonials-slider__stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .testimonials-slider__stars {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .testimonials-slider__track {
    transition: none;
  }
}

@media (max-width: 639px) {
  .testimonials-slider {
    padding-inline: 0;
    padding-bottom: 0.5rem;
  }

  .testimonials-slider__nav {
    top: auto;
    bottom: -0.15rem;
    width: 2.25rem;
    height: 2.25rem;
  }

  .testimonials-slider__nav--prev {
    left: 0.25rem;
  }

  .testimonials-slider__nav--next {
    right: 0.25rem;
  }

  .testimonials-slider__dots {
    margin-top: 3.25rem;
  }
}

/* Страница «О студии» */
.about-page {
  background: var(--page-cream, #f7f4ef);
}

.about-prose {
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.about-prose__lead {
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #374151;
}

.about-prose__title {
  margin: 2rem 0 0.85rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: #111827;
}

.about-prose__subtitle {
  margin: 1.5rem 0 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}

.about-prose p {
  margin: 0 0 1rem;
}

.about-prose__list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.about-prose__list li + li {
  margin-top: 0.45rem;
}

.about-media-row {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 768px) {
  .about-media-row--gallery-right {
    grid-template-columns: minmax(0, 1fr) minmax(11rem, 18rem);
  }

  .about-media-row--gallery-left {
    grid-template-columns: minmax(11rem, 18rem) minmax(0, 1fr);
  }
}

.about-gallery {
  display: grid;
  gap: 0.65rem;
}

.about-gallery--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-gallery__thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  cursor: zoom-in;
  background: #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-gallery__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.2s ease;
}

.about-gallery__thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107, 76, 59, 0.12);
}

.about-gallery__thumb:hover::after {
  background: rgba(0, 0, 0, 0.06);
}

.about-gallery__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-gallery--4 .about-gallery__thumb img {
  aspect-ratio: 1;
}

.about-benefits {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.about-benefits__title {
  margin: 0 0 1.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  color: #111827;
}

.about-benefits__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .about-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .about-benefits__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.about-benefits__item {
  text-align: center;
}

.about-benefits__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(120, 53, 15, 0.06);
}

.about-benefits__name {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #111827;
}

.about-benefits__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #6b7280;
}

.about-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.about-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
}

.about-lightbox.hidden {
  display: none;
}

body.about-lightbox-open {
  overflow: hidden;
}

.about-lightbox__close {
  position: absolute;
  top: clamp(0.75rem, 3vw, 1.25rem);
  right: clamp(0.75rem, 3vw, 1.25rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 9999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: background 0.2s ease;
}

.about-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.about-lightbox__frame {
  max-width: min(56rem, 100%);
  max-height: calc(100vh - 4rem);
}

.about-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 4rem);
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 0.75rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  object-fit: contain;
}

/* Страница «Документы» */
.documents-grid {
  display: grid;
  gap: 0.75rem;
}

.doc-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  box-shadow: 0 4px 16px -10px rgba(0, 0, 0, 0.14);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.doc-card:hover {
  border-color: rgba(107, 76, 59, 0.15);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.16);
}

.doc-card__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--font-serif, 'Playfair Display', serif);
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
}

.doc-card__download {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  background: var(--btn-tan, #b08d6a);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.doc-card__download:hover,
.doc-card__download:focus-visible {
  background: #9a7859;
  transform: translateY(-1px);
}

/* Страница «Контакты» */
.contacts-page {
  background: var(--page-cream);
}

.contacts-layout {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}

@media (min-width: 1024px) {
  .contacts-layout {
    grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3rem);
  }
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contacts-info__card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.35rem 0;
  border-radius: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.contacts-info__item {
  display: flex;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
}

.contacts-info__item + .contacts-info__item {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.contacts-info__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(120, 53, 15, 0.07);
}

.contacts-info__label {
  margin: 0 0 0.35rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
}

.contacts-info__value {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
}

.contacts-info__value--link {
  display: inline-block;
  transition: color 0.2s ease;
}

.contacts-info__value--link:hover {
  color: #6b4c3b;
}

.contacts-info__hint {
  margin: 0.45rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #6b7280;
}

.contacts-info__social {
  padding: 1.25rem 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.contacts-info__social-label {
  margin: 0 0 0.85rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
}

.contacts-info__cta {
  align-self: flex-start;
}

.contacts-map {
  min-height: clamp(18rem, 42vw, 28rem);
}

.contacts-map__frame {
  position: relative;
  height: 100%;
  min-height: inherit;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: linear-gradient(145deg, #f3efe8 0%, #ebe4da 100%);
  box-shadow: 0 4px 24px rgba(107, 76, 59, 0.08);
}

.contacts-map__embed {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contacts-map__embed:not([src]),
.contacts-map__embed[src=""] {
  display: none;
}

.contacts-map__placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 2rem;
  text-align: center;
  color: #6b4c3b;
}

.contacts-map__placeholder p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}

.contacts-map__placeholder span {
  max-width: 16rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #9ca3af;
}

.contacts-map__placeholder code {
  padding: 0.1rem 0.35rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.6875rem;
}

.contacts-map__embed:not([src=""]) ~ .contacts-map__placeholder {
  display: none;
}