/* ==========================================================
   HOME PAGE (Стили главной страницы WeLUX — Agent V-home)
   ========================================================== */

/* ----------------------------------------------------------
   1. HERO SECTION
   ---------------------------------------------------------- */
@media (min-width: 1025px) {
  .hero {
    min-height: 660px !important;
    height: 660px !important;
  }

  .hero__inner {
    padding-top: calc(var(--header-h, 88px) + 24px) !important;
    padding-bottom: 40px !important;
    gap: 20px !important;
    justify-content: center !important;
  }

  .hero__content--center {
    max-width: 720px !important;
  }

  .hero__title {
    font-size: 48px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 20px !important;
  }

  .hero__desc {
    font-size: 15px !important;
    line-height: 1.6 !important;
    max-width: 580px !important;
    margin-bottom: 28px !important;
  }

  .hero__buttons {
    display: flex !important;
    gap: 14px !important;
    justify-content: center !important;
  }

  .hero__bg img {
    object-position: center 30% !important;
  }
}

@media (max-width: 1024px) {
  .hero {
    min-height: 0 !important;
    height: auto !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    background: #dcc0ac !important;
    overflow: hidden;
  }

  .hero__overlay {
    display: none !important;
  }

  .hero__bg {
    position: relative !important;
    inset: auto !important;
    order: 2;
    z-index: 0;
    width: 100%;
    height: clamp(420px, 112vw, 560px);
    flex: 0 0 auto;
    overflow: hidden;
  }

  .hero__bg img {
    position: absolute !important;
    width: 168% !important;
    height: 128% !important;
    max-width: none !important;
    right: 0 !important;
    left: auto !important;
    top: -18% !important;
    bottom: auto !important;
    object-fit: cover;
    object-position: 92% 24% !important;
  }

  .hero__inner {
    order: 1;
    position: static !important;
    z-index: auto !important;
    min-height: 0 !important;
    width: 100%;
    padding-top: calc(var(--header-h, 72px) + 20px) !important;
    padding-bottom: 0 !important;
    padding-inline: var(--container-pad, 16px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    text-align: left !important;
    background: #dcc0ac;
  }

  .hero__content--center {
    position: static !important;
    align-items: flex-start !important;
    text-align: left !important;
    max-width: 640px !important;
    width: 100% !important;
  }

  .hero__title {
    text-align: left !important;
    font-size: clamp(36px, 9vw, 52px) !important;
    line-height: 1.05 !important;
    max-width: none !important;
    margin-bottom: 16px !important;
    color: #2d2d2d !important;
  }

  .hero__desc {
    text-align: left !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    max-width: none !important;
    color: #383838 !important;
    margin-bottom: 0 !important;
  }

  .hero__buttons {
    position: absolute;
    z-index: 3;
    left: var(--container-pad, 16px);
    right: var(--container-pad, 16px);
    bottom: 20px;
    width: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .hero__buttons .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
  }

  .hero__buttons .btn--olive-lg {
    background: #565541 !important;
    color: #fff !important;
  }

  .hero__buttons .btn--outline-dark {
    background: #ccaf83 !important;
    border-color: #ccaf83 !important;
    color: #fff !important;
  }
}

/* ----------------------------------------------------------
   2. INTRO-METHOD (Знакомство с методикой)
   ---------------------------------------------------------- */
.intro-method {
  background: var(--color-beige-bg, #f4f1ea);
  padding-block: clamp(48px, 5vw, 72px);
}

.intro-method__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.15;
  margin-bottom: clamp(20px, 2.5vw, 36px);
}

.intro-method__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.intro-method .method-card__media {
  aspect-ratio: 300 / 330;
  border-radius: 14px;
}

.intro-method .method-card__num {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  width: auto;
  min-width: 38px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(204, 175, 131, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.intro-method .method-card__body {
  padding: 16px 16px 18px;
  gap: 8px;
}

.intro-method .method-card__title {
  font-size: 13px;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.25;
}

.intro-method .method-card__desc {
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.intro-method .method-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 12px;
  color: #fff;
  margin-top: 4px;
}

.intro-method .method-card__more-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ccaf83;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--tr, 0.2s ease);
}

.intro-method .method-card__more-circle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #fff;
  border-top: 1.5px solid #fff;
  transform: rotate(45deg);
  display: block;
  margin-left: -1px;
}

.intro-method .method-card__more:hover .method-card__more-circle {
  transform: translateX(3px);
}

@media (min-width: 1025px) {
  .intro-method__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .intro-method__nav {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .intro-method__list {
    display: flex !important;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    margin-inline: -16px;
    padding-inline: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .intro-method__list::-webkit-scrollbar {
    display: none;
  }

  .intro-method__list > li {
    flex: 0 0 290px;
    max-width: 82%;
    scroll-snap-align: start;
  }

  .intro-method__nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
  }
}

/* ----------------------------------------------------------
   3. REASONS (5 причин доверить нам своё здоровье)
   ---------------------------------------------------------- */
.reasons {
  background: #565541;
  color: #fff;
  padding-block: clamp(50px, 6vw, 90px);
}

.reasons .reason-card__glass {
  background: rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 12px;
}

.reasons .reason-card__num {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.reasons .reason-card__title {
  font-size: 15px;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
}

.reasons .reason-card__desc {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
}

.reason-card--big .reason-card__glass {
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  width: 44%;
  max-width: 400px;
  padding: 28px 24px;
  text-align: left;
  align-items: flex-start;
}

.reason-card--big .reason-card__title {
  font-size: 18px;
  text-align: left;
}

.reason-card--big .reason-card__desc {
  font-size: 13px;
  text-align: left;
}

@media (min-width: 1025px) {
  .reasons__item--mobile-only {
    display: none !important;
  }

  .reasons__nav {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .reasons__top {
    display: block !important;
    margin-bottom: 24px !important;
    min-height: auto !important;
  }

  .reasons__top .reason-card--big {
    display: none !important;
  }

  .reasons__intro {
    padding: 0 !important;
    width: 100% !important;
  }

  .reasons__title {
    font-size: 32px !important;
    line-height: 1.12 !important;
    margin-bottom: 20px !important;
  }

  .reasons__btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .reasons__item--mobile-only {
    display: block !important;
  }

  .reasons__grid {
    display: flex !important;
    gap: 14px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    padding-bottom: 8px !important;
    margin-inline: -16px !important;
    padding-inline: 16px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .reasons__grid::-webkit-scrollbar {
    display: none;
  }

  .reasons__grid > li {
    flex: 0 0 290px !important;
    max-width: 82% !important;
    scroll-snap-align: start !important;
  }

  .reasons .reason-card {
    min-height: 440px !important;
    height: 440px !important;
  }

  .reasons .reason-card__glass {
    position: absolute !important;
    inset: auto 14px 18px 14px !important;
    width: auto !important;
    max-width: none !important;
    top: auto !important;
    transform: none !important;
    padding: 22px 18px !important;
    text-align: left !important;
    align-items: flex-start !important;
  }

  .reasons__nav {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
    margin-top: 20px !important;
  }
}

/* ----------------------------------------------------------
   4. SERVICES BLOCK (Услуги)
   ---------------------------------------------------------- */
.services-block__grid[data-catalog-panel] {
  width: 100%;
}

@media (max-width: 768px) {
  .services-block__top {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
  }

  .services-block__grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
  }

  .svc-card {
    aspect-ratio: 165 / 235 !important;
    border-radius: 12px !important;
  }

  .svc-card__title {
    font-size: 13px !important;
    line-height: 1.25 !important;
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
  }

  .svc-card__arrow {
    width: 28px !important;
    height: 28px !important;
    top: 10px !important;
    right: 10px !important;
  }

  .svc-card__arrow svg {
    width: 12px !important;
    height: 12px !important;
  }

  .services-block__cta .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

/* ----------------------------------------------------------
   5. PROGRAMS-HOME (Комплексные программы)
   ---------------------------------------------------------- */
@media (min-width: 1025px) {
  .programs-home__nav-bottom {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .programs-home__head {
    display: block !important;
    text-align: left !important;
    margin-bottom: 20px !important;
  }

  .programs-home__title {
    text-align: left !important;
    font-size: 32px !important;
    margin-bottom: 0 !important;
  }

  .programs-home__head .offers__nav {
    display: none !important;
  }

  .programs-home__grid {
    display: flex !important;
    gap: 14px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    padding-bottom: 8px !important;
    margin-inline: -16px !important;
    padding-inline: 16px !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .programs-home__grid::-webkit-scrollbar {
    display: none;
  }

  .programs-home__grid > li {
    flex: 0 0 290px !important;
    max-width: 82% !important;
    scroll-snap-align: start !important;
  }

  .programs-home__nav-bottom {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
    margin-top: 20px !important;
    margin-bottom: 32px !important;
  }

  .programs-home__nav-bottom .offers__arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #8c8b7a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .programs-home__nav-bottom .offers__dots {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .programs-home__nav-bottom .offers__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ccaf83;
    opacity: 0.4;
    transition: all var(--tr, 0.2s ease);
    display: inline-block;
    cursor: pointer;
  }

  .programs-home__nav-bottom .offers__dot.is-active {
    width: 24px;
    border-radius: 999px;
    opacity: 1;
  }
}

/* ----------------------------------------------------------
   6. PICKER (Индивидуальный подбор программы)
   ---------------------------------------------------------- */
.picker {
  background: #ccaf83 !important;
}

@media (min-width: 1025px) {
  .picker {
    min-height: 340px !important;
    max-height: 360px !important;
    grid-template-columns: 1.2fr 1fr !important;
    border-radius: 20px !important;
    overflow: hidden !important;
  }

  .picker__content {
    padding: 32px 36px !important;
    gap: 12px !important;
  }

  .picker__title {
    font-size: 36px !important;
    line-height: 1.1 !important;
  }

  .picker__text {
    font-size: 13px !important;
    line-height: 1.5 !important;
    max-width: 420px !important;
  }

  .picker__meta {
    margin-top: 4px !important;
    padding-top: 10px !important;
    gap: 6px 36px !important;
  }

  .picker__note {
    margin: 4px 0 2px !important;
    font-size: 12px !important;
  }

  .picker__btn {
    background: #3c3e2e !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 10px 22px !important;
    font-size: 14px !important;
  }

  .picker__media {
    position: relative !important;
    overflow: hidden !important;
    height: 100% !important;
  }

  .picker__media img {
    position: absolute !important;
    right: 10px !important;
    bottom: 0 !important;
    top: auto !important;
    left: auto !important;
    height: 110% !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
  }
}

@media (max-width: 1024px) {
  .picker {
    display: flex !important;
    flex-direction: column !important;
    padding: 24px 16px 20px !important;
    gap: 16px !important;
    background: #ccaf83 !important;
    border-radius: 16px !important;
  }

  .picker__content {
    padding: 0 !important;
    max-width: 100% !important;
    display: contents !important;
  }

  .picker__title {
    order: 1 !important;
    font-size: 26px !important;
    line-height: 1.15 !important;
  }

  .picker__text {
    order: 2 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .picker__meta {
    order: 3 !important;
    margin-top: 2px !important;
    padding-top: 10px !important;
    gap: 6px 24px !important;
  }

  .picker__note {
    order: 4 !important;
    font-size: 12px !important;
    margin: 2px 0 0 !important;
  }

  .picker__media {
    order: 5 !important;
    position: relative !important;
    min-height: 220px !important;
    width: 100% !important;
    overflow: visible !important;
    display: flex !important;
    justify-content: center !important;
  }

  .picker__media img {
    position: relative !important;
    inset: auto !important;
    height: 220px !important;
    width: auto !important;
    object-fit: contain !important;
  }

  .picker__btn {
    order: 6 !important;
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    font-size: 14px !important;
    background: #3c3e2e !important;
  }
}

/* ----------------------------------------------------------
   7. COSMETICS (Уход / Косметика)
   ---------------------------------------------------------- */
.prod-card__name a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.prod-card__name a:hover,
.prod-card__name a:focus-visible {
  opacity: 0.85;
}

.prod-card__buy {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.prod-card__buy:focus-visible {
  outline: 2px solid var(--color-olive, #5d7052);
  outline-offset: 2px;
}

/* ----------------------------------------------------------
   8. GIFT (Подарочные сертификаты)
   ---------------------------------------------------------- */
.gift__inner {
  padding: 24px !important;
  background: #565541 !important;
  border-radius: 20px !important;
}

.gift__media {
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #dfded9 !important;
  position: relative !important;
  min-height: 320px !important;
}

.gift__media img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

@media (max-width: 1024px) {
  .gift__inner {
    display: flex !important;
    flex-direction: column !important;
    padding: 20px 16px !important;
    gap: 20px !important;
    border-radius: 16px !important;
  }

  .gift__content {
    padding: 0 !important;
    max-width: 100% !important;
    gap: 14px !important;
  }

  .gift__title {
    font-size: 32px !important;
    line-height: 1.1 !important;
  }

  .gift__btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    font-size: 14px !important;
  }

  .gift__media {
    border-radius: 14px !important;
    overflow: hidden !important;
    min-height: 260px !important;
    width: 100% !important;
    position: relative !important;
  }

  .gift__media img {
    position: relative !important;
    width: 100% !important;
    height: 260px !important;
    object-fit: cover !important;
  }
}

/* ----------------------------------------------------------
   9. TIPS (Делимся опытом и советами)
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .tips > .container {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .tips__head {
    display: contents !important;
  }

  .tips__title {
    order: 1;
    text-align: left !important;
    font-size: 32px !important;
    margin-bottom: 20px !important;
  }

  .tips .blog__grid {
    order: 2;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 14px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth;
    padding-bottom: 8px !important;
    margin-inline: 0 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
  }

  .tips .blog__grid:focus-visible {
    outline: 2px solid #565541;
    outline-offset: 3px;
  }

  .tips .blog__grid::-webkit-scrollbar {
    display: none;
  }

  .tips .blog__grid > * {
    flex: 0 0 82% !important;
    min-width: 0 !important;
    max-width: 82% !important;
    scroll-snap-align: start !important;
  }

  .tips__head .slider-nav {
    order: 3;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
  }
}

/* Специалисты главной и «О клинике»: горизонтальный трек.
   specialist.css задаёт .specialists__grid { display: grid !important } — бьём специфичностью. */
@media (max-width: 1024px) {
  .specialists-home .specialists__grid:has(+ .slider-nav) {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    gap: 16px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    -webkit-overflow-scrolling: touch;
  }

  .specialists-home .specialists__grid:has(+ .slider-nav)::-webkit-scrollbar {
    display: none;
  }

  .specialists-home .specialists__grid:has(+ .slider-nav):focus-visible {
    outline: 2px solid #565541;
    outline-offset: 3px;
  }

  .specialists-home .specialists__grid:has(+ .slider-nav) > li {
    flex: 0 0 calc((100% - 16px) / 2.18) !important;
    width: auto !important;
    max-width: calc((100% - 16px) / 2.18) !important;
    min-width: 0 !important;
    scroll-snap-align: start;
  }

  .specialists-home .specialists__grid:has(+ .slider-nav) .spec-card {
    width: 100%;
    min-width: 0;
  }

  .specialists-home .specialists__grid:has(+ .slider-nav) .spec-card__btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .specialists-home .slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
  }

  .specialists-home .slider-nav__dots .slider-nav__dot {
    border: 0;
    padding: 0;
    min-width: 0;
    appearance: none;
  }
}

@media (max-width: 640px) {
  .specialists-home .specialists__grid:has(+ .slider-nav) > li {
    flex: 0 0 84% !important;
    max-width: 84% !important;
  }
}

@media (min-width: 1025px) {
  .specialists-home .slider-nav {
    display: none !important;
  }
}

.tips .slider-nav__btn:focus-visible,
.tips .slider-nav__dot:focus-visible,
.specialists-home .slider-nav__btn:focus-visible,
.specialists-home .slider-nav__dot:focus-visible {
  outline: 2px solid #565541;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg img,
  .tips .blog__grid,
  .specialists-home .specialists__grid,
  .tips .slider-nav__btn,
  .specialists-home .slider-nav__btn {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ----------------------------------------------------------
   10. UNIVERSAL SLIDER NAV ADJUSTMENTS FOR HOME SECTIONS
   ---------------------------------------------------------- */
.slider-nav__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #8c8b7a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color var(--tr, 0.2s ease);
}

.reasons .slider-nav__btn {
  color: rgba(255, 255, 255, 0.6);
}

.reasons .slider-nav__btn:hover {
  color: #fff;
}

.slider-nav__btn:hover {
  color: #2d2d2d;
}

.slider-nav__dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.slider-nav__dots span,
.slider-nav__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ccaf83;
  opacity: 0.4;
  transition: all var(--tr, 0.2s ease);
  display: inline-block;
  cursor: pointer;
}

.slider-nav__dots span.is-active,
.slider-nav__dot.is-active {
  width: 24px;
  border-radius: 999px;
  opacity: 1;
}

.reasons .slider-nav__dots span,
.reasons .slider-nav__dot {
  background: #fff;
  opacity: 0.35;
}

.reasons .slider-nav__dots span.is-active,
.reasons .slider-nav__dot.is-active {
  background: #fff;
  opacity: 1;
}
