/* Wearable tech and fitness trackers — sleep tracking
   палитра: земляная | стиль: линейный | код: layout-компонент
   Базовый слой сгенерирован автоматически. Секционные раскладки — ниже. */
:root {
  --color-bg: #faf7f2;
  --color-text: #221f19;
  --color-muted: #6a6154;
  --color-accent: #5f6d2f;
  --color-surface: #eeeade;
  --color-on-accent: #ffffff;

  --font-heading: 'Crimson Pro', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 0;
  --shadow: none;
  --container: 64rem;
}

*, *::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(3rem, 8vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
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; }

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

section { padding: clamp(5rem, 10vw, 8.5rem) 0; border-top: 1px solid color-mix(in srgb, var(--color-muted) 22%, transparent); }
section:nth-of-type(even) { background: var(--color-surface); }

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

/* шапка */
.c-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);
}
.c-header--transparent { background: transparent; border-bottom-color: transparent; }
.c-header__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: .9rem; }
.c-header__brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem;
  color: var(--color-text); text-decoration: none; margin-right: auto; }
.c-nav__list { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.c-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; }
.c-nav__link:hover { background: var(--color-surface); }
.c-nav__link.has-active { color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent); }
.c-nav--split { display: flex; align-items: center; gap: 2rem; width: 100%;
  justify-content: center; }
.c-header__burger { display: none; flex-direction: column; gap: 4px; padding: .6rem;
  background: none; border: 0; cursor: pointer; }
.c-header__burger span { width: 22px; height: 2px; background: var(--color-text); }

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

/* кнопки */
.c-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;
}
.c-btn--primary { background: var(--color-accent); color: var(--color-on-accent); }
.c-btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.c-btn--ghost { background: transparent; color: var(--color-accent); border-color: var(--color-accent); }
.c-btn--ghost:hover { background: var(--color-accent); color: var(--color-on-accent); }

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

/* плашка cookie */
.c-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;
}
.c-cookie.has-visible { transform: translateY(0); }
.c-cookie__inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1.1rem; }
.c-cookie__text p { margin: 0; font-size: .92rem; max-width: 70ch; }
.c-cookie__actions { display: flex; align-items: center; gap: .7rem; margin-left: auto; flex-shrink: 0; }
.c-cookie__configure { background: none; border: 0; color: var(--color-accent);
  font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.c-cookie__options { display: grid; gap: .6rem; margin-top: 1rem; }
.c-cookie__option { display: grid; grid-template-columns: auto 1fr; gap: .5rem .6rem;
  align-items: start; font-size: .9rem; font-weight: 600; }
.c-cookie__option span { grid-column: 2; font-weight: 400; opacity: .75; }

/* правовые страницы */
.c-legal { background: var(--color-bg); }
.c-legal__inner { max-width: 52rem; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.c-legal h2 { margin-top: 2.2rem; }
.c-legal h3 { margin-top: 1.4rem; }
.c-legal__updated { color: var(--color-muted); font-size: .9rem; }
.c-legal__table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.8rem; }
.c-legal__table th, .c-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; }
.c-legal__table th { width: 34%; font-weight: 600; }
.c-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) {
  .c-footer__inner { grid-template-columns: 1fr 1fr; }
  .c-cookie__inner { flex-direction: column; align-items: stretch; }
  .c-cookie__actions { margin-left: 0; flex-wrap: wrap; }
}

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

/* Секционные раскладки */
.l-grid { display: grid; min-width: 0; }
.l-grid > * { min-width: 0; }

.c-eyebrow {
  color: var(--color-accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.c-lead { color: var(--color-muted); margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.c-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

.c-hero { min-height: 92vh; display: flex; align-items: center; }
.l-grid--hero { align-items: center; gap: clamp(2.5rem, 7vw, 5rem); }
.c-hero .c-media { order: -1; }
.c-hero .c-media img { aspect-ratio: 4 / 5; }
.c-hero__content { max-width: 40rem; }

.c-media { overflow: hidden; }
.c-media img,
.l-grid--gallery img,
.c-slider img,
.c-card--feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
}
.l-grid--five-seven .c-media img { aspect-ratio: 5 / 6; }
.c-media--wide { margin: clamp(2rem, 5vw, 3.5rem) 0 2rem; }
.c-media--wide img { aspect-ratio: 16 / 9; }

.l-grid--split,
.l-grid--five-seven { gap: clamp(2.5rem, 7vw, 5rem); align-items: center; }

.l-grid--tiles { gap: 1.5rem; margin-top: 3rem; }
.c-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 0 2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 25%, transparent);
}
.c-card__icon {
  display: block;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.c-slider { margin-top: 2.5rem; padding: 0 0 4rem; overflow: hidden; }
.c-slider .swiper-slide { height: auto; }
.c-slider .c-card img { margin-bottom: 1.5rem; }
.c-slider__prev,
.c-slider__next {
  position: absolute;
  bottom: 0;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.c-slider__prev { left: 0; }
.c-slider__next { right: 0; }
.c-slider__prev::before { content: '\2190'; }
.c-slider__next::before { content: '\2192'; }
.c-slider__prev:hover,
.c-slider__next:hover { background: var(--color-accent); color: var(--color-on-accent); }
.c-slider .swiper-pagination { bottom: .8rem; }
.c-slider .swiper-pagination-bullet-active { background: var(--color-accent); }

#topic-06 .l-grid--gallery { margin-top: 3rem; }
#topic-06 .c-card { padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent); }

.l-grid--aside { gap: 1.25rem 2.5rem; margin-top: 2.5rem; }
.c-callout {
  padding: 1.25rem 0;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  border-block: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent);
}

.c-steps,
.c-timeline { list-style: none; margin: 3rem 0 0; padding: 0; }
.c-steps li { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 2rem 0; border-top: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent); }
.c-steps li > span { color: var(--color-accent); font-family: var(--font-heading); font-size: 2rem; line-height: 1; }

.l-grid--gallery { gap: 1.5rem; align-items: stretch; }
.l-grid--gallery figure { margin: 0; display: flex; flex-direction: column; }
.l-grid--gallery figcaption { padding: 1.2rem 0 0; font-size: .95rem; }

.c-accordion { margin-top: 2.5rem; border-top: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent); }
.c-accordion .accordion-item { border: 0; border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent); border-radius: 0; background: transparent; }
.c-accordion .accordion-button { padding: 1.5rem 0; background: transparent; color: var(--color-text); box-shadow: none; font-family: var(--font-heading); font-size: 1.25rem; }
.c-accordion .accordion-button:not(.collapsed) { color: var(--color-accent); }
.c-accordion .accordion-button::after { filter: none; }
.c-accordion .accordion-body { padding: 0 0 1.5rem; }

.l-grid--columns { gap: 2.5rem; margin-top: 2.5rem; }
.l-grid--columns > div + div { padding-top: 2rem; border-top: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent); }

.l-grid--counters { gap: 1px; margin: 3rem 0; background: color-mix(in srgb, var(--color-muted) 30%, transparent); }
.c-counter { display: flex; flex-direction: column; padding: 2rem 1.5rem; background: var(--color-bg); }
.c-counter strong { color: var(--color-accent); font-family: var(--font-heading); font-size: clamp(3rem, 7vw, 5rem); line-height: 1; }
.c-counter span { margin-top: 1rem; }

.c-quote-section { background: var(--color-accent) !important; color: var(--color-on-accent); }
.c-quote-section .c-eyebrow,
.c-quote-section a { color: var(--color-on-accent); }
.c-quote-section blockquote { max-width: 19ch; margin: 2rem 0; font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 4rem); line-height: 1.08; }
.c-quote-section .c-btn--ghost { border-color: var(--color-on-accent); }
.c-quote-section .c-btn--ghost:hover { background: var(--color-on-accent); color: var(--color-accent); }

.l-grid--bento { gap: 1px; margin-top: 3rem; background: color-mix(in srgb, var(--color-muted) 30%, transparent); }
.l-grid--bento .c-card { padding: 1.5rem; border: 0; background: var(--color-bg); }
.l-grid--bento .c-card--feature img { margin: -1.5rem -1.5rem 1.5rem; width: calc(100% + 3rem); max-width: none; }

.c-timeline { position: relative; }
.c-timeline::before { content: ''; position: absolute; top: 1.5rem; bottom: 1.5rem; left: 1.5rem; width: 1px; background: var(--color-accent); }
.c-timeline li { position: relative; display: grid; grid-template-columns: 3rem 1fr; gap: 1.5rem; padding-bottom: 2.5rem; }
.c-timeline li > span { z-index: 1; display: grid; place-items: center; width: 3rem; height: 3rem; background: var(--color-accent); color: var(--color-on-accent); font-weight: 700; }

.c-slider--quotes { padding-inline: clamp(2.5rem, 8vw, 5.5rem); }
.c-testimonial { display: flex; flex-direction: column; justify-content: center; min-height: 20rem; padding: clamp(2rem, 6vw, 4rem); border-block: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent); text-align: center; }
.c-testimonial blockquote { margin: 0 auto 1.5rem; max-width: 26ch; font-family: var(--font-heading); font-size: clamp(1.55rem, 4vw, 2.5rem); line-height: 1.25; }
.c-testimonial p { margin-inline: auto; color: var(--color-muted); }

.l-grid--pricing { gap: 1.25rem; align-items: stretch; margin: 3rem 0 1.5rem; }
.c-price { position: relative; height: 100%; padding: 2rem 1.5rem; border: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent); }
.c-price--featured { border: 2px solid var(--color-accent); }
.c-price__badge { align-self: flex-start; margin: -3.1rem 0 1rem; padding: .35rem .7rem; background: var(--color-accent); color: var(--color-on-accent); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.c-price__amount { color: var(--color-accent); font-family: var(--font-heading); font-size: 2.8rem; line-height: 1; }
.c-price ul { padding-left: 1.2rem; margin-bottom: 2rem; }
.c-price .c-btn { width: 100%; margin-top: auto; }
.c-price__note { color: var(--color-muted); font-size: .9rem; }

.l-grid--form { gap: 0 1.25rem; }
.c-form { max-width: 52rem; }
.c-form__check { display: flex; align-items: flex-start; gap: .7rem; margin: 1rem 0 1.5rem; }
.c-form__check input { flex: 0 0 auto; width: auto; margin-top: .4rem; }
.c-form__check label { font-weight: 400; }
.c-form__step { padding: 1.5rem 0; border-top: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent); }

.l-grid--contact { gap: 2.5rem; margin-top: 3rem; align-items: stretch; }
.c-contact { padding: 2rem 0; border-block: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent); }
.c-contact address { font-style: normal; }
.c-map { min-height: 24rem; overflow: hidden; }
.c-map iframe { display: block; width: 100%; height: 100%; min-height: 24rem; border: 0; }

.c-table-wrap { margin: 2.5rem 0; overflow-x: auto; }
.c-table { width: 100%; min-width: 42rem; border-collapse: collapse; }
.c-table caption { padding-bottom: 1rem; text-align: left; color: var(--color-muted); }
.c-table th,
.c-table td { padding: 1rem; border-bottom: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent); text-align: left; }

.c-tabs { margin-top: 2.5rem; }
.c-tabs__button { border-radius: 0 !important; color: var(--color-text); }
.c-tabs__button.active { background: var(--color-accent) !important; color: var(--color-on-accent) !important; }
.tab-content { padding-top: 2rem; }

@media (min-width: 576px) {
  .l-grid--tiles,
  .l-grid--counters,
  .l-grid--form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-grid--bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-grid--bento .c-card--feature { grid-column: 1 / -1; }
}

@media (min-width: 768px) {
  .l-grid--split,
  .l-grid--contact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-grid--five-seven { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .l-grid--gallery,
  .l-grid--pricing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .l-grid--columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-grid--columns > div + div { padding: 0 0 0 2.5rem; border-top: 0; border-left: 1px solid color-mix(in srgb, var(--color-muted) 30%, transparent); }
  .l-grid--aside { grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr); }
  .l-grid--aside .c-callout { grid-column: 1; }
  .l-grid--aside > div { grid-column: 2; }
}

@media (min-width: 992px) {
  .l-grid--hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .l-grid--hero .c-media { order: -1; }
  .l-grid--counters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .l-grid--bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(11rem, auto); }
  .l-grid--bento .c-card--feature { grid-column: span 2; grid-row: span 2; }
  .c-price { padding: 2.5rem 2rem; }
}

@media (max-width: 575px) {
  section { padding-block: 5rem; }
  .c-actions,
  .c-actions .c-btn { width: 100%; }
  .c-price__badge { margin-top: -3.1rem; }
  .c-steps li { grid-template-columns: 3rem 1fr; }
  .c-slider--quotes { padding-inline: 0; }
}
