/* ============================================
   Терапия сложных состояний — Премиум стили
   Кинцуги-эстетика + терапевтический минимализм
   ============================================ */

:root {
  --emerald: #0F4C3A;
  --emerald-dark: #0A3528;
  --gold: #B8975A;
  --gold-light: #C9A96E;
  --gold-pale: #DEC79B;
  --cream: #F8F5F0;
  --cream-warm: #F5F1E9;
  --charcoal: #2C2C2C;
  --charcoal-light: #4A4A4A;
  --white: #FEFEFE;
}

/* Базовая типографика и спокойный ритм */
body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-feature-settings: "tnum", "lnum";
}

/* Text color utilities */
.text-gold-pale {
  color: var(--gold-pale) !important;
}

.bg-gold-pale {
  background-color: var(--gold-pale) !important;
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--emerald-dark);
  color: var(--gold-pale);
  font-size: 1.1rem;
}

.contact-icon-outline {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid rgba(184, 151, 90, 0.45);
  color: var(--gold);
  background: rgba(255, 255, 255, 0.04);
  font-size: 1.1rem;
}

.contact-form .form-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D9D2C4;
  margin-bottom: 0.35rem;
}

.contact-form .form-control {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(184, 151, 90, 0.25);
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
}

.contact-form .form-control::placeholder {
  color: rgba(217, 210, 196, 0.45);
}

.contact-form .form-control:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(184, 151, 90, 0.55);
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(184, 151, 90, 0.15);
}

.contact-form-success {
  color: #D9D2C4;
  font-size: 15px;
  line-height: 1.6;
}
.text-emerald-dark {
  color: var(--emerald-dark) !important;
}
.text-charcoal-light {
  color: var(--charcoal-light) !important;
}
.text-charcoal {
  color: var(--charcoal) !important;
}

/* ========== НОВЫЙ ПРЕМИУМ ХЕДЕР (frosted glass) ========== */
.site-header {
  background: transparent;
  z-index: 50;
}

/* Frosted glass navigation bar */
.glass-nav {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.glass-nav .nav-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: rgba(233, 227, 201, 0.82);
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 0.35rem 0.15rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.glass-nav .nav-link:hover {
  color: #fff;
}

.glass-nav .nav-link.active {
  color: #fff !important;
  font-weight: 600;
}

.glass-nav .nav-link.active::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: #B8975A;
  margin-top: 5px;
  border-radius: 1px;
  box-shadow: 0 0 8px rgba(184, 151, 90, 0.45);
}

.site-header.scrolled .glass-nav .nav-link {
  color: var(--charcoal-light);
}

.site-header.scrolled .glass-nav .nav-link:hover {
  color: var(--gold);
}

.site-header.scrolled .glass-nav .nav-link.active {
  color: var(--emerald-dark) !important;
  font-weight: 600;
}

.site-header.scrolled .glass-nav .nav-link.active::after {
  background: var(--gold);
  box-shadow: none;
}

.nav-link-mobile-active {
  color: #fff !important;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  background: rgba(184, 151, 90, 0.22);
  border-left: 3px solid #B8975A;
  border-radius: 0 6px 6px 0;
}

.header-text {
  color: #FFFFFF;
  transition: color 0.3s ease;
}

.header-btn {
  color: #E9E3C9;
  border: 1px solid rgba(233, 227, 201, 0.4);
  transition: all 0.3s ease;
}

.header-btn:hover {
  background: rgba(233, 227, 201, 0.1);
}

/* Стили при скролле */
.site-header {
  transition: all 0.3s ease;
}

.site-header.scrolled .glass-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

.site-header.scrolled .header-text {
  color: var(--gold);
}



.site-header.scrolled .header-btn {
  color: var(--gold);
  border-color: var(--gold);
}

.site-header.scrolled .header-btn:hover {
  background: rgba(184, 151, 90, 0.05);
}

.site-header.scrolled .logo-lotus {
  color: var(--gold);
}

.logo-lotus {
  width: 22px;
  height: 22px;
  color: #B8975A;
}

/* ========== HERO (темный кинематографичный — под референс) ========== */
.hero {
  background: #0D1F1B; /* глубокий тёмно-зелёный, как на референсе */
  color: #D4C9B0;
  position: relative;
  overflow: hidden;
}

.hero--home {
  min-height: 100vh;
}

.hero__gradient {
  width: 75%;
}

.hero__container {
  margin-top: 5rem;
  padding-top: 3rem;
}

.hero__inner {
  max-width: 850px;
  margin-top: 2rem;
}

.hero-bowl-bg {
  background-size: cover;
  background-position: right center;
  opacity: 0.85;
}

.page-header {
  padding-top: 7rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 992px) {
  .page-header {
    padding-top: 8.75rem;
    padding-bottom: 3.75rem;
  }
}

.page-header__title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  line-height: 1.2;
}

.faq-cta-card {
  position: sticky;
  top: 120px;
}

/* Атмосферное освещение, повторяющее референс */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 68% 42%, rgba(15, 76, 58, 0.22) 0%, transparent 50%),
    linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Большая тарелка кинцуги — чистая версия (без оверлеев) */
/* Новый подход — фоновая тарелка для лучшего контроля размера и позиции */
.bowl-container {
  position: relative;
}

.hero-bowl-bg {
  background-repeat: no-repeat;
  box-shadow: 
    0 55px 130px -25px rgba(0, 0, 0, 0.7),
    0 25px 60px -15px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease;
  /* на очень широких экранах позволяем тарелке быть ещё крупнее */
}

.hero-bowl-bg:hover {
  transform: scale(1.01);
}

.hero-bowl:hover {
  transform: scale(1.01);
}

/* Убираем старый ::after, так как у нас чистая фотография без нужды в имитации трещин */

/* Typography — тёплый золотистый оттенок как на референсе */
.hero-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 3.5rem;
  line-height: 1.05;
  letter-spacing: -1px;
  font-weight: 400;
  color: #DEC79B;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
    letter-spacing: -1.5px;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 5.2rem;
    letter-spacing: -2px;
  }
}

/* Описание под проектом (может быть длинным — без nowrap) */
.hero-subheadline {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.55;
  font-weight: 400;
  color: rgba(248, 245, 240, 0.92);
  letter-spacing: 0;
  max-width: 36rem;
  white-space: normal;
}

/* «Образовательный проект Ульяны…» — между H1 и описанием */
.hero-project {
  font-family: 'Inter', sans-serif;
  font-size: 1.15rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 400;
  color: rgba(222, 199, 155, 0.95);
  max-width: 36rem;
}

.hero-description {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  letter-spacing: 0.01em;
  color: rgba(232, 227, 217, 0.82);
  max-width: 36rem;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.2rem;
  }
}

/* Кнопки точно в стиле референса */
.btn-gold {
  background: #CBAE7B;
  color: #0D1F1B;
  font-weight: 500;
  letter-spacing: 0.25px;
  padding-left: 1.65rem;
  padding-right: 1.65rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-gold:hover {
  background: #C5B38A;
  transform: translateY(-1px);
}

.btn-ghost {
  color: #D4C9B0;
  font-size: 0.93rem;
  letter-spacing: 0.2px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.btn-ghost:hover {
  color: #B8975A;
  text-decoration: underline;
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

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

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(to right, var(--gold), var(--gold-light));
  transition: width 0.25s ease;
}

.nav-link:hover:after {
  width: 100%;
}

/* Кинцуги декоративные элементы */
.kintsugi-line {
  position: relative;
}

.kintsugi-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  height: 1px;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold) 15%,
    var(--gold-light) 50%,
    var(--gold) 85%,
    transparent
  );
  opacity: 0.35;
  transform: translateY(-50%);
  pointer-events: none;
}

.gold-accent {
  color: var(--gold);
}

.gold-border {
  border-color: var(--gold);
}

/* Старые правила hero убраны — теперь используется новый тёмный кинематографичный герой (см. выше) */

/* Карточки — премиум и спокойные */
.card {
  background: var(--white);
  border: 1px solid rgba(184, 151, 90, 0.12);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
              border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  border-color: rgba(184, 151, 90, 0.25);
}

.card-gold-left {
  position: relative;
}

.card-gold-left::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--gold), var(--gold-light));
  border-radius: 999px;
}

/* Шаги "Как это работает" */
.step-number {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--white);
  background: var(--emerald);
  border-radius: 9999px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 15px -3px rgb(15 76 58 / 0.3);
}

.step-connector {
  position: absolute;
  left: 21px;
  top: 42px;
  bottom: -18px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  opacity: 0.25;
  z-index: 1;
}

/* Программы */
.program-card {
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.program-card.featured {
  border-color: var(--gold);
  box-shadow: 0 25px 50px -12px rgb(184 151 90 / 0.15);
}

.program-card:hover {
  transform: translateY(-6px);
}

/* Отзывы */
.testimonial {
  position: relative;
}

.testimonial::before {
  content: '“';
  font-size: 120px;
  line-height: 1;
  position: absolute;
  top: -20px;
  left: 12px;
  opacity: 0.06;
  color: var(--emerald);
  font-family: serif;
  pointer-events: none;
}

/* FAQ Аккордеон */
.faq-question {
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 0;
}

.faq-answer.open {
  max-height: 220px;
  opacity: 1;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

/* Формы */
.form-input {
  background: var(--white);
  border: 1px solid rgba(44, 44, 44, 0.12);
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184, 151, 90, 0.08);
  outline: none;
}

.btn-primary {
  background: var(--emerald);
  color: var(--white);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  background: var(--emerald-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgb(15 76 58 / 0.3);
}

/* Финальный CTA — контрастный */
.final-cta {
  background: linear-gradient(145deg, var(--emerald) 0%, var(--emerald-dark) 100%);
}

/* Секции */
.section {
  scroll-margin-top: 80px;
}

/* Мобильное меню */
.mobile-menu {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.open {
  transform: translateY(0);
}

/* Gold subtle lines между секциями */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold) 50%, transparent);
  opacity: 0.2;
}

/* Улучшенная читаемость на cream фоне */
.text-charcoal {
  color: var(--charcoal);
}

.text-charcoal-light {
  color: var(--charcoal-light);
}

/* Красивые тени для премиум-ощущения */
.shadow-premium {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05),
              0 4px 6px -4px rgb(0 0 0 / 0.05);
}

/* Портрет автора */
.author-portrait {
  box-shadow: 
    0 30px 70px -15px rgb(0 0 0 / 0.2),
    0 15px 25px -10px rgb(0 0 0 / 0.1);
  border: 1px solid rgba(184, 151, 90, 0.2);
}

/* Responsive typography helpers */
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.35rem;
    line-height: 1.05;
  }
}

/* ============================================
   Kintsugi Section Styles
   ============================================ */
.bg-kintsugi-section {
  background-color: #F6F4F0; /* Soft warm background like reference */
}

.kintsugi-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 2.5rem 0 3.5rem 0;
}

.kintsugi-divider .line {
  height: 1px;
  width: 60px;
  background: var(--gold);
  opacity: 0.5;
}

.kintsugi-divider .diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.kintsugi-card {
  position: relative;
  border-radius: 4px;
  padding: 2.5rem 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.kintsugi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.kintsugi-card-dark {
  background-color: #123B2F; /* Deep emerald from the screenshot */
  color: #FFFFFF;
}

.kintsugi-card-dark p {
  color: rgba(255, 255, 255, 0.85);
}

.kintsugi-card-light {
  background-color: #EFEBE1; /* Cream from the screenshot */
  color: #1A1A1A;
}

.kintsugi-card-light p {
  color: #4A4A4A;
}

.kintsugi-frame {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(184, 151, 90, 0.35);
  pointer-events: none;
}

.kintsugi-frame .corner {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.kintsugi-frame .corner.top-left { top: -2px; left: -2px; }
.kintsugi-frame .corner.top-right { top: -2px; right: -2px; }
.kintsugi-frame .corner.bottom-left { bottom: -2px; left: -2px; }
.kintsugi-frame .corner.bottom-right { bottom: -2px; right: -2px; }

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

/* ============================================
   Learning Steps Section (5 columns)
   ============================================ */
.bg-steps-section {
  background-color: #F6F4F0;
  position: relative;
  overflow: hidden;
}

.learning-step-card {
  background: #ECE8DD; /* slightly darker cream than background */
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  height: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.learning-step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.learning-step-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--emerald-dark);
  line-height: 1;
  margin: 1.5rem 0 1rem 0;
}

.learning-step-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.learning-step-text {
  font-size: 12px;
  color: #555555;
  line-height: 1.4;
}

.steps-bg-line {
  position: absolute;
  top: 55%;
  left: -5%;
  width: 110%;
  height: 80px;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}

/* ============================================
   Formats Section (Pricing)
   ============================================ */
.bg-formats {
  background-color: var(--emerald-dark);
  background-image: url('../img/bg-green.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.format-card {
  background-color: #EFEBE1;
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

/* Center card is larger */
@media (min-width: 992px) {
  .format-card.featured-format {
    transform: scale(1.08);
    z-index: 2;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  }
}

.format-kintsugi-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.format-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.format-icon {
  margin-bottom: 1.5rem;
  height: 48px;
}

.format-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--emerald-dark);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.format-meta {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--charcoal);
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

.format-desc {
  font-size: 13px;
  color: var(--charcoal);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.btn-format {
  margin-top: auto;
  display: inline-block;
  border: 1px solid rgba(184, 151, 90, 0.4);
  background: transparent;
  color: var(--charcoal);
  padding: 0.7rem 1rem;
  border-radius: 4px;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-format:hover {
  background: rgba(184, 151, 90, 0.1);
  color: var(--emerald-dark);
}

/* ============================================
   Scroll to Top Button
   ============================================ */
.btn-scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--emerald-dark);
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 24px;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  text-decoration: none;
}

.bg-cream {
  background-color: #F8F6F0; /* Очень светлый бежевый */
}

.bg-texture {
  background-color: #F1EFE9;
  background-image: url('../img/bg-light.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-green-texture {
  background-color: var(--emerald-dark);
  background-image: url('../img/bg-green.avif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.home-section-green__text {
  color: rgba(233, 227, 201, 0.88);
  line-height: 1.55;
}

.btn-scroll-top:hover {
  background-color: var(--emerald);
  color: #fff;
  transform: translateY(-3px);
  border-color: var(--gold-light);
}

.btn-scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   Prose content (внутренние страницы)
   ============================================ */
.prose-content-wrap,
.content-text .prose-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--charcoal, #4A4A4A);
}

.prose-content .prose-lead,
.prose-content.prose-lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #3a3a3a;
}

.prose-content .prose-h2,
.prose-h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--emerald-dark, #0B1A16);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(184, 151, 90, 0.35);
}

.prose-content .prose-h3,
.prose-content h3.prose-h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--emerald-dark, #0B1A16);
  margin: 2rem 0 1rem;
}

.prose-content .prose-h4,
.prose-content h4.prose-h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--emerald, #1a3d34);
  margin: 1.5rem 0 0.75rem;
  letter-spacing: 0.01em;
}

.prose-content p {
  margin-bottom: 1rem;
}

.prose-content p:last-child {
  margin-bottom: 0;
}

.prose-content .prose-list,
.prose-content ul.prose-list {
  margin: 0.5rem 0 1.25rem;
  padding-left: 0;
  list-style: none;
}

.prose-content .prose-list li,
.prose-content ul.prose-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  line-height: 1.65;
}

.prose-content .prose-list li::before,
.prose-content ul.prose-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold, #B8975A);
}

.prose-content strong,
.prose-content b {
  color: var(--emerald-dark, #0B1A16);
  font-weight: 600;
}

.prose-content a {
  color: var(--emerald, #1a3d34);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-content a:hover {
  color: var(--gold, #B8975A);
}

/* ============================================
   Lenis Required CSS
   ============================================ */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* ============================================
   Schedule page
   ============================================ */
.schedule-period__line {
  height: 1px;
  background: linear-gradient(90deg, rgba(184, 151, 90, 0.45), transparent);
}

.schedule-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.schedule-card__badge--open {
  background: rgba(15, 76, 58, 0.12);
  color: var(--emerald);
  border: 1px solid rgba(15, 76, 58, 0.2);
}

.schedule-card__badge--closed {
  background: rgba(184, 151, 90, 0.15);
  color: #8a6d3b;
  border: 1px solid rgba(184, 151, 90, 0.35);
}

.kintsugi-card-dark .schedule-card__badge--open {
  background: rgba(233, 227, 201, 0.12);
  color: var(--gold-pale);
  border-color: rgba(184, 151, 90, 0.35);
}

/* ============================================
   Service detail: sidebar + request form
   ============================================ */
.service-sibling-nav__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.service-sibling-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
}

.service-sibling-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 151, 90, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: var(--emerald-dark, #123B2F);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-sibling-nav__link:hover {
  color: var(--emerald-dark, #123B2F);
  background: rgba(184, 151, 90, 0.1);
  border-color: rgba(184, 151, 90, 0.45);
}

.service-sibling-nav__link.is-active {
  background: var(--emerald-dark, #123B2F);
  border-color: rgba(184, 151, 90, 0.45);
  color: var(--gold-pale);
  box-shadow: 0 6px 18px rgba(18, 59, 47, 0.12);
  pointer-events: none;
}

.service-detail__content .content-text:last-child {
  margin-bottom: 0 !important;
}

.service-sidebar {
  position: sticky;
  top: 120px;
}

.service-sidebar .service-sidebar__card.kintsugi-card {
  padding: 2rem;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  height: auto !important;
  min-height: 0;
  gap: 0 !important;
  overflow: visible;
}

.service-sidebar .service-sidebar__card.kintsugi-card:hover {
  transform: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-sidebar__card > *:not(.kintsugi-frame) {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.service-sidebar__topic {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(184, 151, 90, 0.14);
  border: 1px solid rgba(184, 151, 90, 0.28);
  color: var(--gold-pale);
  font-size: 13px;
  line-height: 1.4;
}

.service-sidebar__text {
  color: rgba(233, 227, 201, 0.82);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 0;
}

.service-sidebar__price {
  line-height: 1.4;
}

.service-sidebar__actions {
  margin-top: 1.5rem;
  width: 100%;
}

.service-sidebar__cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  padding: 0.85rem 1.65rem;
  box-sizing: border-box;
}

.service-sidebar__pay-btn {
  margin-top: 1.5rem !important;
}

.service-sidebar__cta-btn:hover {
  transform: none;
}

.service-sidebar__form-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(233, 227, 201, 0.72);
  font-size: 13px;
  margin-top: 1rem;
  transition: color 0.2s ease;
}

.service-sidebar__form-link:hover {
  color: var(--gold-pale);
}

.service-request-panel {
  background: rgba(255, 255, 255, 0.03);
}

.service-request-form__actions {
  width: 100%;
}

.contact-payment-rules__content {
  font-size: 14px;
}

.contact-payment-rules__content p,
.contact-payment-rules__content li {
  font-size: 14px;
}

.contact-payment-rules__content ul {
  padding-left: 1.1rem;
  margin-bottom: 1rem;
}

.contact-payment-rules__content a {
  color: var(--emerald-dark, #123B2F);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-page__aside {
  gap: 2rem;
}

@media (min-width: 992px) {
  .contact-page__aside {
    min-height: 100%;
  }

  .contact-telegram-cta {
    margin-top: auto;
  }
}

@media (max-width: 991.98px) {
  .service-sidebar {
    position: static;
    margin-bottom: 0.5rem;
  }

  .service-sidebar .service-sidebar__card.kintsugi-card {
    padding: 1.5rem;
  }
}

/* Фото команды / поддержки — строго круглые */
.team-member-photo {
  flex-shrink: 0;
  width: 120px !important;
  height: 120px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  box-shadow: 0 6px 18px rgba(15, 76, 58, 0.1);
}

.team-member-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* ============================================
   Mobile layout fixes
   ============================================ */
html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  max-width: 100%;
}

@media (max-width: 991.98px) {
  .site-header__logo {
    height: 40px !important;
  }

  .hero--home {
    min-height: auto;
    padding-bottom: 3rem;
  }

  .hero__container {
    margin-top: 4.5rem;
    padding-top: 1.25rem;
  }

  .hero__inner {
    margin-top: 0;
  }

  .hero__gradient {
    width: 100%;
  }

  .hero-bowl-bg {
    background-position: center 70%;
    opacity: 0.45;
  }

  .hero-bowl-bg:hover {
    transform: none;
  }

  .hero-subheadline {
    font-size: 1.15rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .page-header {
    padding-top: 6.5rem;
    padding-bottom: 2rem;
  }

  .page-header__title {
    font-size: 1.85rem;
    line-height: 1.15;
  }

  .page-header .breadcrumb {
    font-size: 10px;
    letter-spacing: 0.06em;
    row-gap: 0.35rem;
    justify-content: center;
  }

  .page-header .breadcrumb-item + .breadcrumb-item::before {
    padding-right: 0.25rem;
    padding-left: 0.25rem;
  }

  .kintsugi-card {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 1.5rem;
    gap: 1rem;
  }

  .kintsugi-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 0.25rem;
  }

  .faq-cta-card {
    position: static;
    top: auto;
  }

  .service-detail .col-lg-4 {
    margin-bottom: 0.5rem;
  }

  .contact-page__aside {
    min-height: 0 !important;
  }

  .contact-telegram-cta {
    margin-top: 0 !important;
  }

  .btn-scroll-top {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .glass-nav {
    border-radius: 8px;
  }

  .bg-kintsugi-section h2,
  #for-whom h2,
  #what-gives h2,
  #expert h2 {
    font-size: 1.85rem !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 2rem;
  }

  .page-header__title {
    font-size: 1.55rem;
  }

  .glass-nav {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .service-sidebar__cta-btn {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
  }

  .service-request-form__actions {
    flex-direction: column !important;
  }
}

/* --- Footer: реквизиты + логотипы оплаты (эквайринг bePaid) --- */
.footer-requisites__label {
  color: rgba(184, 151, 90, 0.95);
}
.footer-requisites__todo {
  border-bottom: 1px dashed rgba(184, 151, 90, 0.55);
}
.footer-payments__logos {
  row-gap: 0.75rem;
}
.footer-pay-logo {
  height: 36px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
  opacity: 0.95;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}
.footer-pay-logo:hover {
  opacity: 1;
}
/* оферта: читаемый юридический текст */
.oferta-doc h2 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  color: #0d5c4d;
}
.oferta-doc h3 {
  font-size: 1.05rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.oferta-doc p,
.oferta-doc li {
  font-size: 0.98rem;
  line-height: 1.65;
}
.oferta-doc .oferta-todo {
  background: #fff8e8;
  border-left: 3px solid #b8975a;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: 0 6px 6px 0;
}
.oferta-doc .oferta-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
}
