@import url("./styles.css");

/* Полная ширина: hero и секции макета с .container внутри */
body.home-hero-header main.page {
  box-sizing: border-box;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

body.home-hero-header.bx-admin-mode main.page {
  padding-top: 0;
}

body.home-hero-header main.page > section:not(#heroSection):not(.about):not(.services):not(.deals):not(.doctors):not(.ld-redesign-hide) {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem 1rem;
  box-sizing: border-box;
}

body.home-hero-header main.page > section.clinics,
body.home-hero-header main.page > section.news,
body.home-hero-header main.page > section.articles-block {
  max-width: 1200px;
}

.ld-redesign-hide {
  display: none !important;
}

.trust-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 720px;
}
.trust-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--gray-700, #444);
}
.trust-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--purple-100, #f3e8f8);
  box-shadow: inset 0 0 0 2px var(--purple-500, #9b26a8);
}

/* Город: нативный select поверх подписи */
.city-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.city-select__native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: inherit;
}

/* Старые блоки Bitrix на внутренних страницах */
body.home-hero-header main.page .title,
body.home-hero-header main.page section.experts > .title {
  font-family: var(--font, "Manrope", sans-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--black, #1a1a1a);
  margin-bottom: 1.5rem;
}

body.home-hero-header main.page section.experts .cta-link,
body.home-hero-header main.page section.clinics .cta-link {
  display: inline-flex;
  margin-top: 1rem;
}

/* Подписка из subscribe.inc.php */
body.home-hero-header section.newsletter.ld-subscribe-wrap {
  max-width: none;
  padding: 3rem 0;
  background: var(--gray-50, #f8f7fa);
}

body.home-hero-header section.newsletter.ld-subscribe-wrap .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

body.home-hero-header section.newsletter.ld-subscribe-wrap form,
body.home-hero-header section.newsletter.ld-subscribe-wrap .subscribe-block {
  font-family: var(--font, "Manrope", sans-serif);
}

body.home-hero-header section.newsletter.ld-subscribe-wrap {
  background: transparent;
  padding: 0;
}

body.home-hero-header section.newsletter.ld-subscribe-wrap .ld-subscribe-embed article.subscribe,
body.home-hero-header section.newsletter.ld-subscribe-wrap .ld-subscribe-embed #subscribe_block {
  background: none;
  padding: 0;
  margin: 0;
  max-width: none;
}

body.home-hero-header section.newsletter.ld-subscribe-wrap .ld-subscribe-embed article.subscribe > .in-wrap > div:first-child {
  display: none;
}

body.home-hero-header section.newsletter.ld-subscribe-wrap .ld-subscribe-embed .in-wrap {
  display: block;
  max-width: none;
  padding: 0;
}

body.home-hero-header section.newsletter.ld-subscribe-wrap .ld-subscribe-embed #subscribe_form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  margin-top: 8px;
}

body.home-hero-header section.newsletter.ld-subscribe-wrap .ld-subscribe-embed #subscribe_form input[type="email"],
body.home-hero-header section.newsletter.ld-subscribe-wrap .ld-subscribe-embed #subscribe_form input.date-birthday {
  flex: 1 1 180px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--gray-200, #e8e6ed);
  border-radius: 12px;
  font-size: 15px;
}

body.home-hero-header section.newsletter.ld-subscribe-wrap .ld-subscribe-embed #subscribe_form .cta-link {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 12px;
}

body.home-hero-header section.newsletter.ld-subscribe-wrap .ld-subscribe-embed .chb_label {
  font-size: 12px !important;
  line-height: 1.4;
  color: var(--gray-600, #6b6578);
  margin-top: 12px;
  display: block;
}

body.home-hero-header main.page > section.ld-redesign-section .title {
  font-family: var(--font, "Manrope", sans-serif);
}

/* Модалки new_tpl поверх редизайна */
body.home-hero-header .fade-block {
  z-index: 10050;
}
body.home-hero-header .header-callback {
  background: none;
  border: none;
  font: inherit;
  padding: 0;
}

/* Hero: баннер с текстом на картинке — без дублирующего overlay */
.hero-slide--banner-only .hero-copy {
  display: none !important;
}
.hero-slide-banner-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* Акции: картинка в карточке */
.deals .offers-card--media .offers-media {
  flex: 0 0 42%;
  min-height: 180px;
  background-size: cover;
  background-position: center;
}

/* Подвал: убрать «красные» ссылки из старого include */
.footer-contact-meta a,
.footer-brand .bx-area a {
  color: inherit !important;
  text-decoration: none;
}
.footer-contact-meta a:hover {
  color: var(--primary, #9b26a8) !important;
}

body.home-hero-header main.page > section.quiz,
body.home-hero-header main.page > section.beauty-program,
body.home-hero-header main.page > section.before-after,
body.home-hero-header main.page > section.contact,
body.home-hero-header main.page > section.reviews,
body.home-hero-header main.page > section.articles {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
