/* =====================================================
   Beauty Evolution — CSS для вставки в  на Тильде
   ===================================================== */

:root {
  --be-bg: #201B18;
  --be-bg-2: #2A2520;
  --be-border: #3A3530;
  --be-accent-1: #877A56;
  --be-accent-2: #FFF2D0;
  --be-text: #FFFFFF;
  --be-text-muted: rgba(255,255,255,0.9);
  --be-btn-gradient: linear-gradient(90deg, #877A56 0%, #FFF2D0 50%, #6B5F3F 100%);
}

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

body {
  margin: 0;
  font-family: 'Tilda Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--be-text);
  background: var(--be-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Глобальные заголовки с Cinzel Decorative === */
.heading01,
.card__title,
.price-card__title,
.t-section h1,
.t-section h2,
.t-section h3 {
  font-family: 'CinzelDecorative', serif !important;
  font-weight: 400 !important;
}

/* === Контейнер === */
.be-container {
  width: 100%;
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* === Заголовки === */
.heading01 {
  line-height: 1.2;
  margin: 0 0 16px 0;
}
@media (max-width: 639.98px) { .heading01 { font-size: 28px; } }
@media (min-width: 640px) { .heading01 { font-size: 40px; } }

/* === Текст === */
.be-text { font-size: 14px; line-height: 1.6; color: var(--be-text-muted); }

/* === Теги-бейджи === */
.tag-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #FFFFFF;
  color: #FFFFFF;
  font-size: 14px;
  line-height: 1;
}

/* === Кнопка === */
.primary-button {
  position: relative;
  display: inline-block;
  padding: 16px 32px;
  border-radius: 999px;
  border: 1px solid var(--be-accent-1);
  background: transparent;
  color: #000000 !important;
  font-family: 'PT Serif', serif !important;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  will-change: transform;
  overflow: hidden;
}
.primary-button:hover { transform: scale(1.03); }
.primary-button:active { transform: scale(0.98); }
.primary-button--filled {
  background: var(--be-btn-gradient);
  color: #000000 !important;
  border: none;
}
.primary-button::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg);
}
.primary-button:hover::after { animation: shine .75s forwards; }
@keyframes shine { 0%{ left:-100%; } 100%{ left:150%; } }

/* === Секции === */
.section--dark { background: var(--be-bg); }
.section__inner { padding: 64px 0; }
.section--border-top { border-top: 1px solid var(--be-border); }

/* === Карточки === */
.card {
  background: var(--be-bg-2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  height: 100%;
  border: 1px solid var(--be-border);
}
.card__media { height: 192px; background: #1F1B17; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__body { padding: 24px; }
.card__title { margin: 0 0 12px 0; }
@media (max-width: 639.98px){ .card__title{ font-size:24px; } }
@media (min-width: 640px){ .card__title{ font-size:32px; } }
.card__text { font-size:14px; color: var(--be-text-muted); }

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px){ .cards-grid{ grid-template-columns: repeat(3, 1fr); } }

/* === Прайс-карточки === */
.price-card {
  background: var(--be-bg-2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  height: 100%;
  border: 1px solid #3A3530;
}
.price-card--popular { border-color: var(--be-accent-2); }
.price-card__inner { padding: 24px; }
.price-card__tag {
  display: inline-flex; align-items: center;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--be-accent-1);
  color: var(--be-accent-2); font-size: 12px;
}
.price-card__title { margin: 12px 0 4px 0; }
@media (max-width: 639.98px){ .price-card__title{ font-size:24px; } }
@media (min-width: 640px){ .price-card__title{ font-size:28px; } }
.price-card__duration { color: var(--be-accent-2); font-size: 14px; margin-bottom: 8px; }
.price-card__price { display: flex; align-items: baseline; gap: 8px; margin: 16px 0; }
.price-card__price-old { font-size: 20px; color: #BFBFBF; text-decoration: line-through; }
.price-card__price-new { font-size: 40px; font-weight: 700; color: var(--be-accent-2); }
@media (min-width: 640px){ .price-card__price-new{ font-size: 48px; } }
.price-card__desc { font-size: 14px; color: var(--be-text-muted); margin-bottom: 16px; }

.features { list-style: none; padding: 0; margin: 0 0 28px 0; }
.features li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: #FFFFFF; margin-bottom: 12px; }
.features li::before { content: '✔'; display: inline-block; transform: translateY(1px); font-size: 14px; color: var(--be-accent-2); }
.features li.feature--off { color: #9CA3AF; text-decoration: line-through; }
.features li.feature--off::before { color: #6B7280; }

/* === Галерея === */
.gallery-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px){ .gallery-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px){ .gallery-grid{ grid-template-columns: repeat(3, 1fr); } }
.gallery-item { background: var(--be-bg-2); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.gallery-item img { width: 100%; height: 224px; object-fit: cover; display:block; }

/* === Аккордеон === */
.accordion { background: var(--be-bg-2); border-radius: 12px; overflow: hidden; margin-bottom: 16px; border: 1px solid var(--be-border); }
.accordion summary { list-style: none; cursor: pointer; user-select: none; padding: 16px; font-size: 16px; font-weight: 600; color: #FFF; display:flex; justify-content:space-between; align-items:center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion[open] summary { background: #352f29; }
.accordion summary:hover { background: #2f2924; }
.accordion__content { padding: 16px; color: var(--be-text-muted); font-size: 14px; border-top: 1px solid var(--be-border); }
.accordion__icon { transition: transform 0.3s ease; }
.accordion[open] .accordion__icon { transform: rotate(180deg); }

/* === Футер === */
.footer-links { display:flex; flex-wrap:wrap; gap:24px; align-items:center; justify-content:center; }
.footer-links a { color:#FFFFFF !important; font-size:14px; text-decoration:none; }
.footer-links a:hover { text-decoration: underline; }

/* === Утилиты === */
.u-center { display: flex; align-items: center; justify-content: center; }
.u-mb-12 { margin-bottom: 48px; }
.u-mt-12 { margin-top: 48px; }
.u-pt-0 { padding-top: 0 !important; }
.u-pb-0 { padding-bottom: 0 !important; }
.bg-overlay-20 { opacity: .2; }
.rounded-12 { border-radius: 12px; }
.shadow-lg { box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.border { border: 1px solid var(--be-border); }
.border-accent { border-color: var(--be-accent-1); }
.img-cover { width:100%; height:100%; object-fit:cover; display:block; }
.img-fade-in { opacity: 0; transition: opacity .3s ease; }
.img-fade-in.is-loaded { opacity: 1; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .4; display: block; }
.underline-accent { color: var(--be-accent-2); text-decoration: underline; text-decoration-color: var(--be-accent-2); text-decoration-thickness: .5px; text-underline-offset: 2px; }
.cta-center { display:flex; justify-content:center; }
.t-section { background: var(--be-bg); }
.t-section--sep { border-top: 1px solid var(--be-border); }

/* === Адаптив: отступы контейнера ≤599px === */
@media (max-width: 599.98px){ .be-container { padding-left: 16px; padding-right: 16px; } }

/* === Pricing Grid === */
.pricing-grid { display:grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px){ .pricing-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* === Адаптивная ширина кнопок в Hero Section === */
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.hero-buttons a {
  display: inline-block;
  text-align: center;
  padding: 16px 32px; /* как раз твои отступы */
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
  }

  .hero-buttons a {
    width: auto; /* ширина зависит от длины текста */
    min-width: max-content; /* не обрезает текст */
  }
}

/* === Убираем только верхние и нижние бордеры у секций === */
.t-section,
.section--border-top,
.t-section--sep {
  border-top: none !important;
  border-bottom: none !important;
}

/* === Убираем заливку при ховере у primary-button === */
.primary-button:hover,
.primary-button--filled:hover {
  background: inherit !important;
}