/* Supplements and wellness tips — sleep and recovery
   палитра: высококонтрастная | стиль: мягкий-тихий | код: утилитарный
   Базовый слой сгенерирован автоматически. Секционные раскладки — ниже. */
:root {
  --color-bg: #ffffff;
  --color-text: #000000;
  --color-muted: #3d3d3d;
  --color-accent: #c20000;
  --color-surface: #f0f0f0;
  --color-on-accent: #ffffff;

  --font-heading: 'Abril Fatface', Georgia, serif;
  --font-body: 'Lato', system-ui, sans-serif;

  --radius: 8px;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px rgb(0 0 0 / .07);
  --container: 72rem;
}

/* кнопки */
.s-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.s-btn--primary { background: var(--color-accent); color: var(--color-on-accent); }
.s-btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.s-btn--ghost { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.s-btn--ghost:hover { background: var(--color-accent); color: var(--color-on-accent); }

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

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  overflow-x: hidden;
}

/* .swiper-pagination (vendor) всегда z-index:10 и растянута на всю ширину —
   кнопки листания не должны оказаться под ней, с каким бы z-index их ни
   поставила секционная раскладка. */
[data-slider-prev], [data-slider-next] { z-index: 20 !important; }

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 3.75rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p  { font-size: clamp(1rem, 1.1vw, 1.125rem); margin: 0 0 1.1em; max-width: 68ch; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.s-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
  overflow-x: hidden;
}

section { padding: clamp(4rem, 8vw, 7rem) 0; }
section:nth-of-type(even) { background: var(--color-surface); }

.s-section__eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .6rem;
}

/* формы */
.s-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.s-form input, .s-form textarea {
  width: 100%; padding: .8rem 1rem; margin-bottom: 1rem;
  border: 1px solid color-mix(in srgb, var(--color-muted) 35%, transparent);
  border-radius: var(--radius); background: var(--color-bg); color: var(--color-text); font: inherit;
}
.s-form input:focus, .s-form textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.s-form [aria-invalid="true"] { border-color: #c62828; }
.s-form__error { color: #c62828; font-size: .85rem; margin: -.7rem 0 .9rem; }
.s-form__ok { background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  border-radius: var(--radius); padding: 1rem; font-weight: 600; }
.s-form__consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.s-form__consent input { width: auto; margin: .25rem 0 0; }

/* шапка */
.s-header {
  position: sticky; top: 0; z-index: 1030;
  background: var(--color-bg);
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 22%, transparent);
}
.s-header--transparent { background: transparent; border-bottom-color: transparent; }
.s-header__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: .9rem; }
.s-header__brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
  color: var(--color-text); text-decoration: none; margin-right: auto; }
.s-nav__list { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.s-nav__link { display: block; padding: .5rem .9rem; border-radius: var(--radius);
  color: var(--color-text); text-decoration: none; font-weight: 500;
  transition: background .2s ease, color .2s ease; }
.s-nav__link:hover { background: var(--color-surface); }
.s-nav__link.has-active { color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.s-nav--split { display: flex; align-items: center; gap: 2rem; width: 100%;
  justify-content: center; }
.s-header__burger { display: none; flex-direction: column; gap: 4px; padding: .6rem;
  background: none; border: 0; cursor: pointer; }
.s-header__burger span { width: 22px; height: 2px; background: var(--color-text); }

/* футер */
.s-footer { background: var(--color-surface); }
.s-footer--contrast { background: var(--color-text); color: var(--color-bg); }
.s-footer--contrast a { color: inherit; }
.s-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 4rem); }
.s-footer__row { display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; padding-block: 1.6rem; font-size: .9rem; }
.s-footer__brand { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; margin: 0 0 .4rem; }
.s-footer__tagline { opacity: .75; font-size: .95rem; }
.s-footer__title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  opacity: .7; margin-bottom: .9rem; }
.s-footer__address { font-style: normal; line-height: 1.7; }
.s-footer__hours { opacity: .75; font-size: .92rem; margin-top: .7rem; }
.s-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.s-footer__cookie { background: none; border: 0; padding: 0; color: inherit;
  text-decoration: underline; cursor: pointer; font: inherit; }
.s-footer__bottom { display: flex; justify-content: space-between; gap: 1rem;
  padding-block: 1.2rem; font-size: .85rem; opacity: .75;
  border-top: 1px solid color-mix(in srgb, var(--color-muted) 25%, transparent); }
.s-footer__bottom p { margin: 0; }

/* плашка cookie */
.s-cookie {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 1080;
  background: var(--color-surface);
  border-top: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent);
  box-shadow: 0 -8px 30px rgb(0 0 0 / .12);
  transform: translateY(100%); transition: transform .35s ease;
}
.s-cookie.has-visible { transform: translateY(0); }
.s-cookie__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.1rem; }
.s-cookie__text p { margin: 0; font-size: .92rem; max-width: 70ch; }
.s-cookie__actions { display: flex; align-items: center; gap: .7rem; margin-left: auto; flex-shrink: 0; }
.s-cookie__configure { background: none; border: 0; color: var(--color-accent);
  font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.s-cookie__options { display: grid; gap: .6rem; margin-top: 1rem; }
.s-cookie__option { display: grid; grid-template-columns: auto 1fr; gap: .5rem .6rem;
  align-items: start; font-size: .9rem; font-weight: 600; }
.s-cookie__option span { grid-column: 2; font-weight: 400; opacity: .75; }

/* правовые страницы */
.s-legal { background: var(--color-bg); }
.s-legal__inner { max-width: 52rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.s-legal h2 { margin-top: 2.2rem; }
.s-legal h3 { margin-top: 1.4rem; }
.s-legal__updated { color: var(--color-muted); font-size: .9rem; }
.s-legal__table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.8rem; }
.s-legal__table th, .s-legal__table td { text-align: left; padding: .7rem .9rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 25%, transparent); vertical-align: top; }
.s-legal__table th { width: 34%; font-weight: 600; }
.s-legal__back { margin-top: 2.5rem; }
/* анимации: без JS всё видно */
[data-aos]:not(.aos-init) { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 991px) {
  .s-footer__inner { grid-template-columns: 1fr 1fr; }
  .s-cookie__inner { flex-direction: column; align-items: stretch; }
  .s-cookie__actions { margin-left: 0; flex-wrap: wrap; }
}

@media (max-width: 767px) {
  .s-header__burger { display: flex; }
  .s-header__cta { display: none; }
  .s-nav { display: none; width: 100%; }
  .s-nav.has-open { display: block; }
  .s-nav__list { flex-direction: column; padding-block: .6rem; }
  .s-header__inner { flex-wrap: wrap; }
  .s-footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .s-footer__bottom, .s-footer__row { flex-direction: column; }
  .s-cookie__actions .s-btn { flex: 1 1 auto; }
}

/* Секционные раскладки */
.u-flex { display: flex; flex-wrap: wrap; align-items: center; }
.u-gap-2 { gap: 1rem; }

.s-hero { min-height: 82vh; display: flex; align-items: center; overflow: hidden; }
.s-hero__grid { display: grid; gap: 3rem; align-items: center; }
.s-hero__copy { position: relative; z-index: 2; }
.s-hero__copy > p:not(.s-section__eyebrow) { color: var(--color-muted); }
.s-hero__media { position: relative; padding: 1.5rem 0 0 1.5rem; }
.s-hero__media img, .s-split > img, .s-media > img, .s-page-hero img {
  width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover;
  box-shadow: var(--shadow); position: relative; z-index: 1;
}
.s-hero__shape { position: absolute; inset: 0 12% 12% 0; background: var(--color-accent); border-radius: var(--radius); }

.s-split, .s-media { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.s-about .s-split > img { order: -1; }
.s-topic--quote { background: var(--color-accent) !important; color: var(--color-on-accent); }
.s-topic--quote .s-section__eyebrow { color: var(--color-on-accent); }
.s-topic--quote blockquote { max-width: 23ch; margin: 1.5rem 0 2rem; font-family: var(--font-heading); font-size: clamp(1.65rem, 4vw, 3rem); line-height: 1.25; }
.s-topic--quote p:last-child { margin-left: auto; }

.s-stats { display: grid; gap: 1rem; margin-top: 2.5rem; }
.s-stats article { padding: 2rem; background: var(--color-bg); box-shadow: var(--shadow); border-radius: var(--radius); }
.s-stats strong { display: block; color: var(--color-accent); font-family: var(--font-heading); font-size: clamp(2.7rem, 7vw, 5rem); line-height: 1; }
.s-stats p { font-size: 1rem; margin: 0; }

.s-topic--wide img { width: 100%; max-height: 34rem; margin: 2rem 0; border-radius: var(--radius); aspect-ratio: 2 / 1; object-fit: cover; box-shadow: var(--shadow); }
.s-wide__copy, .s-two-columns { display: grid; gap: 1.5rem 3rem; }

.s-gallery, .s-cards { display: grid; align-items: stretch; gap: 1.25rem; margin-top: 2rem; }
.s-gallery figure, .s-cards article { margin: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--color-bg); box-shadow: var(--shadow); }
.s-gallery img, .s-cards img, .s-recovery-slider img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.s-gallery figcaption, .s-cards article > :not(img) { margin-inline: 2rem; }
.s-gallery figcaption { padding: 1.5rem 0 .8rem; }
.s-cards article { padding-bottom: 1rem; }
.s-cards article h3 { margin-top: 1.5rem; }

.s-numbered { padding: 0; margin: 2.5rem 0 0; list-style: none; counter-reset: steps; }
.s-numbered li { counter-increment: steps; position: relative; padding: 1.5rem 0 1.5rem 5rem; border-bottom: 1px solid var(--color-muted); }
.s-numbered li::before { content: counter(steps, decimal-leading-zero); position: absolute; left: 0; top: 1rem; color: var(--color-accent); font-family: var(--font-heading); font-size: 2.4rem; }

.accordion { max-width: 58rem; margin-top: 2rem; --bs-accordion-border-width: 0; --bs-accordion-border-radius: var(--radius); }
.accordion-item { margin-bottom: .75rem; border: 0; border-radius: var(--radius) !important; box-shadow: var(--shadow); overflow: hidden; }
.accordion-button { font-family: var(--font-heading); font-size: 1.1rem; }
.accordion-button:not(.collapsed) { color: var(--color-on-accent); background: var(--color-accent); box-shadow: none; }
.accordion-button:not(.collapsed)::after { filter: brightness(0) invert(1); }

.s-callouts { display: grid; gap: 1.5rem; align-items: start; margin-top: 2rem; }
.s-callouts aside { padding: 1.5rem; border-radius: var(--radius); background: var(--color-accent); color: var(--color-on-accent); box-shadow: var(--shadow); }
.s-callouts aside strong, .s-callouts aside span { display: block; }
.s-callouts aside strong { font-family: var(--font-heading); font-size: 1.25rem; margin-bottom: .5rem; }

.s-timeline { position: relative; display: grid; gap: 0; margin: 2.5rem 0; }
.s-timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 1.5rem; width: 2px; background: var(--color-accent); }
.s-timeline article { position: relative; padding: 0 0 2rem 5rem; }
.s-timeline article > span { position: absolute; left: 0; top: 0; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: var(--color-accent); color: var(--color-on-accent); font-weight: 700; }

.s-recovery-slider { margin-top: 2rem; padding: .5rem .25rem 3.5rem; }
.s-recovery-slider .swiper-slide { height: auto; padding-bottom: 1rem; overflow: hidden; border-radius: var(--radius); background: var(--color-bg); box-shadow: var(--shadow); }
.s-recovery-slider .swiper-slide h3, .s-recovery-slider .swiper-slide p { margin-inline: 1.5rem; }
.s-recovery-slider .swiper-slide h3 { margin-top: 1.4rem; }
.s-slider__prev, .s-slider__next { position: absolute; bottom: 0; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: var(--color-accent); color: var(--color-on-accent); }
.s-slider__prev { left: .25rem; }
.s-slider__next { right: .25rem; }

.s-topic--table .table-responsive, .s-services-compare .table-responsive { margin-top: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.s-topic--table .table, .s-services-compare .table { margin: 0; min-width: 42rem; }
.table th, .table td { padding: 1rem; vertical-align: middle; }
.table thead th { background: var(--color-accent); color: var(--color-on-accent); }

.s-media > img { aspect-ratio: 5 / 6; }
.s-bento, .s-tiles { display: grid; gap: 1rem; margin-top: 2rem; }
.s-bento article, .s-tiles article { padding: 2rem; border-radius: var(--radius); background: var(--color-bg); box-shadow: var(--shadow); }
.s-bento__main { overflow: hidden; }
.s-bento__main img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.5rem; }
.s-tiles span { display: block; color: var(--color-accent); font-family: var(--font-heading); font-size: 2rem; }

.s-social-proof { text-align: center; }
.s-social-proof blockquote { max-width: 30ch; margin: 1.5rem auto; font-family: var(--font-heading); font-size: clamp(1.7rem, 4vw, 3.25rem); line-height: 1.25; }
.s-social-proof p { margin-inline: auto; }

.s-pricing { display: grid; align-items: stretch; gap: 1.25rem; margin-top: 2.5rem; }
.s-pricing article { position: relative; display: flex; flex-direction: column; padding: 2rem; border-radius: var(--radius); background: var(--color-bg); box-shadow: var(--shadow); }
.s-pricing article .s-btn { margin-top: auto; }
.s-pricing__featured { outline: 3px solid var(--color-accent); }
.s-pricing__badge { align-self: flex-start; margin: -3rem 0 1rem; padding: .35rem .8rem; border-radius: var(--radius); background: var(--color-accent); color: var(--color-on-accent); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.s-price strong { font-family: var(--font-heading); font-size: 2.5rem; color: var(--color-accent); }
.s-pricing__note { margin-top: 1.5rem; color: var(--color-muted); }

.s-contacts__grid { display: grid; gap: 2rem; align-items: start; }
.s-form { padding: 2rem; border-radius: var(--radius); background: var(--color-bg); box-shadow: var(--shadow); }
.s-contacts iframe, .s-contact-map iframe { display: block; margin-top: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }

.s-page-hero { min-height: 62vh; display: flex; align-items: center; }
.s-page-hero .s-split { width: 100%; }
.s-about-cta { text-align: center; }
.s-about-cta p, .s-about-cta .u-flex { margin-inline: auto; justify-content: center; }

.s-reading-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 1100; }
.s-reading-progress span { display: block; width: 0; height: 100%; background: var(--color-accent); }

@media (min-width: 576px) {
  .s-stats, .s-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-bento__main { grid-row: span 2; }
}

@media (min-width: 768px) {
  .s-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .s-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-media { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .s-about .s-split > img { order: initial; }
  .s-wide__copy, .s-two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-gallery, .s-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s-callouts { grid-template-columns: minmax(8rem, 1fr) minmax(0, 3fr) minmax(8rem, 1fr); }
  .s-callouts aside:last-child { margin-top: 8rem; }
  .s-pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s-pricing__featured { transform: translateY(-.75rem); }
  .s-contacts__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 4rem; }
}

@media (min-width: 992px) {
  .s-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .s-bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .s-bento__main { grid-column: span 2; grid-row: span 2; }
  .s-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .s-timeline::before { top: 1.5rem; right: 0; bottom: auto; left: 0; width: auto; height: 2px; }
  .s-timeline article { padding: 4.5rem 1.25rem 1.5rem 0; }
}

@media (max-width: 575px) {
  .u-flex .s-btn { width: 100%; }
  .s-hero__media { padding: .8rem 0 0 .8rem; }
  .s-gallery figcaption, .s-cards article > :not(img) { margin-inline: 1.25rem; }
  .s-form { padding: 1.25rem; }
  .s-pricing__badge { margin-top: 0; }
}
