:root {
  --black: #000;
  --white: #fff;
  --grey-bg: #f5f5f7;
  --grey-text: #6e6e73;
  --grey-mute: #86868b;
  --grey-dark-text: #a1a1a6;
  --hairline: rgba(0, 0, 0, 0.1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--grey-text); }
::selection { background: var(--black); color: var(--white); }

img { max-width: 100%; }

/* ---------- layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; }
.wrap--md { max-width: 980px; }
.wrap--sm { max-width: 820px; }
.wrap--xs { max-width: 640px; }
.center { text-align: center; }

.section { padding: 120px 24px; }
.section--dark { background: var(--black); color: var(--white); }
.section--grey { background: var(--grey-bg); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo-img { display: block; height: 22px; width: auto; }
.nav__links { display: flex; gap: 32px; align-items: center; }
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.nav__burger span { display: block; width: 100%; height: 2px; background: var(--black); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__links a { font-size: 12px; color: #1d1d1f; letter-spacing: 0.01em; }
.nav__links a:hover { color: var(--grey-text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.btn--sm { font-size: 12px; padding: 6px 14px; }
.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: #333; color: var(--white); }
.btn--outline { border: 1px solid rgba(0, 0, 0, 0.2); }
.btn--outline:hover { background: rgba(0, 0, 0, 0.04); color: var(--black); }
.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { background: #e5e5e5; color: var(--black); }
.link-underline {
  font-size: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  padding-bottom: 2px;
}

/* ---------- hero ---------- */
.hero { padding: 28px 24px 0; text-align: center; }
.hero__eyebrow { margin: 24px 0 0; font-size: 28px; font-weight: 700; color: var(--black); letter-spacing: -0.01em; }
.hero__title {
  margin: 0 auto;
  max-width: 900px;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}
.hero__sub {
  margin: 22px auto 0;
  max-width: 560px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--grey-text);
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero__video-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  margin: 8px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__video-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* The video (340px) sits inside this box (420px), reaching ~81% of the
     circle's radius, leaving just enough margin for the fade to happen
     in — a video can't be transparent, so this margin is the only place
     a blend can actually occur. */
  background: radial-gradient(circle, var(--white) 0%, var(--white) 82%, rgba(255, 255, 255, 0) 100%);
}
.hero__video {
  position: relative;
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  /* No drop-shadow here: a shadow traces the video's own rectangular
     box (video content can't be transparent), which would draw a hard
     rectangle right through the soft circular fade above. */
}

.stats {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 0 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}
.stat { display: grid; gap: 4px; }
.stat__n { font-size: 40px; font-weight: 600; letter-spacing: -0.04em; }
.stat__l { font-size: 13px; color: var(--grey-mute); }

/* ---------- type ---------- */
.h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.h2--small { font-size: clamp(30px, 4vw, 44px); margin-bottom: 48px; }
.lead {
  margin: 20px 0 0;
  max-width: 540px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--grey-text);
  text-wrap: pretty;
}
.lead--dark { color: var(--grey-dark-text); }
.lead--center { margin-left: auto; margin-right: auto; max-width: 520px; }

/* ---------- carousel ---------- */
.carousel { position: relative; scroll-margin-top: 52px; }
.carousel__viewport {
  display: flex;
  height: min(760px, 86vh);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: box-shadow 0.2s, opacity 0.2s, transform 0.2s;
}
.carousel__arrow:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); transform: scale(1.06); }
.carousel__arrow[disabled] { opacity: 0.3; pointer-events: none; }
.carousel__arrow--prev { left: 20px; }
.carousel__arrow--next { right: 20px; }
.carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 5;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateX(-50%);
}
.carousel__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #1d1d1f;
  opacity: 0.3;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.carousel__dot:hover { opacity: 0.6; }
.carousel__dot.is-active { opacity: 1; transform: scale(1.3); }

/* ---------- feature cards ---------- */
.card__kicker {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

/* #funkcii is the first carousel slide, split into 3 equal-height
   sections (sleep, health, stress) instead of 6 single-topic cards. */
#funkcii {
  display: flex;
  flex-direction: column;
  padding: 40px 0 0;
}
.funkcii__grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
}
.funkcii__grid .card {
  position: relative;
  background: var(--black);
  padding: 8px 24px 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: center;
}
.card--sleep { grid-column: 1; }
.card--health { grid-column: 2; }
.card--stress { grid-column: 3; }
.funkcii__grid .card__text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--grey-dark-text); }
.funkcii__grid .card--health .card__text,
.funkcii__grid .card--stress .card__text { margin-top: 28px; }
.card__badge {
  display: inline-block;
  align-self: center;
  margin: 22px 0 10px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.funkcii__grid .card--sleep {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, var(--black) 45%), url('images/benefits-of-sleeping-in-complete-darkness.jpg');
  background-size: cover, 130% auto;
  background-position: bottom, center bottom -150px;
  background-repeat: no-repeat, no-repeat;
}
.card--sleep .sleep-chart { margin-top: 20px; }
.funkcii__grid .card--health {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, var(--black) 45%), url('images/Screenshot 2026-08-07 232444.png');
  background-size: cover, 145% auto;
  background-position: bottom, center bottom -320px;
  background-repeat: no-repeat, no-repeat;
}
.funkcii__grid .card--stress {
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, var(--black) 45%), url('images/Stress.jpg');
  background-size: cover, 170% auto;
  background-position: bottom, center bottom -300px;
  background-repeat: no-repeat, no-repeat;
}

.health-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.health-grid__img {
  display: block;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}
.card__stress-img {
  display: block;
  width: 90%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  border-radius: 10px;
  margin-top: 12px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}

/* Hypnogram: 4 true stacked layers (row 1 awake/pre/post at top, then
   REM, light, deep at the bottom) laid out on a CSS grid — each segment
   occupies one row × one time-slice column, leaving the other 3 rows
   empty at that column, same as a real sleep-stage chart. Segments sit
   lightly tinted with their own stage color by default, and hovering
   one lights up every segment on that same stage/layer at once (pre-
   and post-sleep wakefulness are the exception — those only ever
   highlight themselves, via .is-active being applied JS-side). */
.sleep-chart { width: 100%; margin-top: 0; }
.sleep-chart__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  min-height: 15px;
}
.sleep-chart__bars {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 2px;
  height: 96px;
}
.sleep-chart__seg {
  display: block;
  border-radius: 1px;
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.sleep-chart__seg[data-stage="pre"],
.sleep-chart__seg[data-stage="post"] { background: rgba(154, 160, 166, 0.35); }
.sleep-chart__seg[data-stage="light"] { background: rgba(124, 140, 255, 0.3); }
.sleep-chart__seg[data-stage="deep"] { background: rgba(76, 79, 176, 0.38); }
.sleep-chart__seg[data-stage="rem"] { background: rgba(201, 139, 240, 0.3); }
.sleep-chart__seg[data-stage="awake"] { background: rgba(255, 140, 105, 0.3); }

.sleep-chart__seg.is-active { transform: scaleY(1.2); }
.sleep-chart__seg[data-stage="pre"].is-active,
.sleep-chart__seg[data-stage="post"].is-active { background: #9aa0a6; }
.sleep-chart__seg[data-stage="light"].is-active { background: #7c8cff; }
.sleep-chart__seg[data-stage="deep"].is-active { background: #4c4fb0; }
.sleep-chart__seg[data-stage="rem"].is-active { background: #c98bf0; }
.sleep-chart__seg[data-stage="awake"].is-active { background: #ff8c69; }

.sleep-chart__axis {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--grey-mute);
}

/* ---------- battery ---------- */
#bateriya { position: relative; overflow-x: hidden; padding-left: clamp(280px, 38vw, 560px); isolation: isolate; }
.bateriya__charger {
  position: absolute;
  left: 48px;
  bottom: 0;
  width: clamp(320px, 42vw, 620px);
  height: auto;
  transform: scaleX(-1);
  pointer-events: none;
}
.split {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 64px;
  align-items: center;
}
.tiles { display: grid; gap: 20px; }
.tile { background: var(--white); padding: 28px; border-radius: 18px; }
.tile__row { display: flex; justify-content: space-between; align-items: baseline; }
.tile__label { font-size: 14px; color: var(--grey-text); }
.tile__value { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.bar { margin-top: 14px; height: 4px; background: var(--hairline); border-radius: 99px; }
.bar i { display: block; height: 100%; background: var(--black); border-radius: 99px; }

/* ---------- tagline ---------- */
.tagline { padding: 72px 24px; background: var(--white); color: var(--black); }
.tagline__stage { position: relative; display: grid; }
.tagline__text {
  grid-area: 1 / 1;
  margin: 0;
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.tagline__text.is-active { opacity: 1; }

/* ---------- app promo ---------- */
.app-promo__img { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto; }
.app-promo__actions { display: flex; flex-direction: column; align-items: flex-start; }
.app-promo__title { margin: 0 0 24px; font-size: clamp(26px, 3vw, 34px); }
.app-promo__label { margin: 24px 0 0; font-size: 14px; color: var(--white); }
.app-promo__stores { margin-top: 14px; display: flex; gap: 12px; flex-wrap: wrap; }
.app-promo__store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
}
.app-promo__store:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.app-promo__store svg { flex: none; }

/* ---------- materials ---------- */
.trio {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  text-align: left;
}
.trio__t { margin: 0 0 8px; font-size: 17px; font-weight: 600; }
.trio__p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--grey-text); }

/* ---------- app demo (phone mock) ----------
   Mobile.png's transparent screen cutout was measured directly from the
   PNG's palette/alpha data, not eyeballed: on the 360x360 source canvas
   it spans left 109px/top 44px/right 245px/bottom 325px. Expressed as
   percentages of that square canvas so it lines up at any display size:
   left 30.3%, top 12.2%, width 38.1%, height 78.3%. */
#appdemo { background: var(--grey-bg); padding: 16px 24px 32px; }
#appdemo .h2--small { margin-bottom: 8px; }
.phone-mock { position: relative; width: 560px; max-width: 90%; aspect-ratio: 1 / 1; margin: 0 auto 0; }
.phone-mock__video {
  position: absolute;
  left: 29.5%;
  top: 10%;
  width: 42%;
  height: 82%;
  object-fit: cover;
  border-radius: 14px;
}
.phone-mock__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.phone-mock__tabs { margin-top: 16px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.phone-mock__tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.phone-mock__tab-icon { flex: none; }
.phone-mock__tab:hover { border-color: rgba(0, 0, 0, 0.4); }
.phone-mock__tab.is-active { background: var(--black); color: var(--white); border-color: var(--black); }

/* ---------- compare ---------- */
#compare { padding: 56px 24px 40px; }
#compare .wrap { max-width: 1080px; }
.compare-wrap { margin-top: 32px; overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare-table th,
.compare-table td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.compare-table th:first-child,
.compare-table td:first-child { text-align: left; font-weight: 500; color: var(--grey-text); }
.compare-table thead th { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--grey-mute); padding-bottom: 16px; }
.compare-table thead th:nth-child(2) { color: var(--black); }
.compare-table tbody td:nth-child(2) { font-weight: 600; background: var(--grey-bg); }
.compare-table tbody tr:last-child td { border-bottom: none; }

/* ---------- sizes ---------- */
#razmeri { position: relative; overflow-x: hidden; padding-left: clamp(340px, 44vw, 640px); isolation: isolate; }
#razmeri .wrap { margin-top: 60px; }
.razmeri__kit {
  position: absolute;
  left: 200px;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(380px, 48vw, 700px);
  height: auto;
  pointer-events: none;
}
.razmeri__cta { display: inline-block; margin-top: 24px; }
.sizes { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.size {
  min-width: 64px;
  padding: 10px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.size:hover { border-color: rgba(255, 255, 255, 0.6); }
.size.is-active { background: var(--white); color: var(--black); border-color: var(--white); }
.readout {
  margin-top: 40px;
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 0 56px;
  padding: 28px 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
}
.readout > div { display: grid; gap: 6px; }
.readout__l { font-size: 12px; color: var(--grey-mute); letter-spacing: 0.08em; text-transform: uppercase; }
.readout__v { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- specs ---------- */
.spec { margin: 0; display: grid; }
.spec__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
}
.spec__row:last-child { border-bottom: 1px solid var(--hairline); }
.spec dt { font-size: 14px; color: var(--grey-mute); }
.spec dd { margin: 0; font-size: 15px; }

/* ---------- buy ---------- */
.fineprint { margin: 20px 0 0; font-size: 13px; color: var(--grey-mute); }

/* ---------- shop ---------- */
.shop {
  padding: 48px 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  text-align: left;
}
.shop__viewer {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: var(--grey-bg);
  overflow: hidden;
}
.shop__viewer-img,
.shop__viewer-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 40px;
  box-sizing: border-box;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.3s ease;
}
.shop__viewer-img.is-active,
.shop__viewer-video.is-active { pointer-events: auto; }
.shop__viewer-img.is-active,
.shop__viewer-video.is-active { opacity: 1; }
/* Gallery panes other than the main product photo: bigger, no grey
   letterboxing — the photo fills the frame edge to edge instead of
   sitting inset on the grey viewer background. */
.shop__viewer-img--fill { padding: 0; object-fit: cover; }

.shop__viewer-img { cursor: zoom-in; }
.shop__viewer-img.is-zoomed { cursor: zoom-out; transform: scale(2.2); }
.shop__thumbs { margin-top: 16px; display: flex; gap: 12px; }
.shop__thumb {
  position: relative;
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid var(--hairline);
  background: var(--grey-bg);
  cursor: pointer;
  overflow: hidden;
}
.shop__thumb.is-active { border-color: var(--black); }
.shop__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; box-sizing: border-box; }
.shop__thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  color: var(--white);
}

.shop__badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--grey-bg);
  font-size: 12px;
  font-weight: 500;
  color: var(--grey-text);
}
.shop__title { margin: 0; font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; letter-spacing: -0.03em; }
.shop__price { margin: 10px 0 0; font-size: 22px; font-weight: 500; color: var(--grey-text); }

.shop__panel {
  margin-top: 28px;
  padding: 24px 28px;
  border-radius: 18px;
  background: var(--grey-bg);
}
.shop__panel-title { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.shop__panel-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 14px; color: var(--grey-text); line-height: 1.5; }

.shop__section { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--hairline); }
.shop__section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.shop__section-title { margin: 0; font-size: 17px; font-weight: 600; }
.shop__section-sub { margin: 6px 0 0; font-size: 14px; color: var(--grey-mute); }

/* ---------- checkout ---------- */
.checkout {
  padding: 48px 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 64px;
  align-items: start;
  text-align: left;
}
.checkout__title { margin: 0 0 24px; font-size: 24px; font-weight: 700; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 600; color: var(--grey-text); }
.field input {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: var(--white);
  color: var(--black);
}
.field input:focus { outline: none; border-color: var(--black); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field { margin-bottom: 18px; }
.field textarea {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: var(--white);
  color: var(--black);
  resize: vertical;
}
.field textarea:focus { outline: none; border-color: var(--black); }
.checkout__submit { width: 100%; margin-top: 12px; text-align: center; }
.checkout__submit:disabled { background: var(--grey-bg); color: var(--grey-mute); cursor: not-allowed; }

.checkout__summary {
  padding: 28px;
  border-radius: 20px;
  background: var(--grey-bg);
}
.checkout__summary-title { margin: 0 0 20px; font-size: 17px; font-weight: 600; }
.checkout__product { display: flex; gap: 16px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--hairline); }
.checkout__product-img { width: 84px; height: 84px; object-fit: contain; border-radius: 12px; background: var(--white); padding: 8px; }
.checkout__product-name { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.checkout__product-attr { margin: 0; font-size: 13px; color: var(--grey-mute); }
.checkout__totals { padding-top: 20px; display: grid; gap: 10px; }
.checkout__totals-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--grey-text); }
.checkout__totals-row--total { padding-top: 10px; border-top: 1px solid var(--hairline); font-size: 16px; font-weight: 700; color: var(--black); }

/* ---------- contact ---------- */
.contact {
  padding: 48px 24px 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 64px;
  align-items: start;
  text-align: left;
}
.contact__info {
  padding: 28px;
  border-radius: 20px;
  background: var(--grey-bg);
  display: grid;
  gap: 20px;
}
.contact__info-row { display: grid; gap: 4px; }
.contact__info-label { font-size: 13px; font-weight: 600; color: var(--grey-mute); }
.contact__info-value { font-size: 17px; font-weight: 600; }
.contact__info-value:hover { color: var(--grey-text); }

@media (max-width: 800px) {
  .contact { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- legal ---------- */
.legal { padding-top: 56px; padding-bottom: 96px; }
.legal__kicker { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-mute); }
.legal__title { margin: 8px 0 0; font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; }
.legal__updated { margin: 8px 0 40px; font-size: 14px; color: var(--grey-mute); }
.legal h2 { margin: 40px 0 12px; font-size: 19px; font-weight: 700; }
.legal h3 { margin: 28px 0 8px; font-size: 16px; font-weight: 700; }
.legal p { margin: 0 0 14px; font-size: 15px; line-height: 1.65; color: var(--grey-text); }
.legal p strong { color: var(--black); }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal ul li { font-size: 15px; line-height: 1.65; color: var(--grey-text); margin-bottom: 6px; }
.legal a { color: var(--black); text-decoration: underline; }

.success .btn { margin-top: 40px; }
.success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-size: 24px;
}

.shop__size-choice { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.shop__size-choice-btn {
  flex: 1;
  min-width: 160px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.shop__size-choice-btn:hover { border-color: rgba(0, 0, 0, 0.4); }
.shop__size-choice-btn.is-active { background: var(--black); color: var(--white); border-color: var(--black); }
.shop__size-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.shop__size-panel.is-open { grid-template-rows: 1fr; }
.shop__size-panel-inner { overflow: hidden; min-height: 0; padding-top: 20px; }
.shop__kit-btn { display: block; width: 100%; text-align: center; font-weight: 700; margin-top: -18px; }
.shop__size-guide { font-size: 13px; color: var(--grey-text); border-bottom: 1px solid rgba(0, 0, 0, 0.25); padding-bottom: 1px; white-space: nowrap; }

.shop__colors { margin-top: 18px; display: flex; gap: 12px; }
.shop__color {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: var(--swatch);
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}
.shop__color.is-active { border-color: var(--black); box-shadow: none; outline: 2px solid var(--white); outline-offset: -5px; }
.shop__color-preview {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 500;
}
.shop__color-preview img { width: 48px; height: 48px; object-fit: contain; }

.shop__sizes { justify-content: flex-start; margin-top: 18px; }
.shop__sizes .size { color: var(--black); border-color: rgba(0, 0, 0, 0.15); }
.shop__sizes .size:hover { border-color: rgba(0, 0, 0, 0.4); }
.shop__sizes .size.is-active { background: var(--black); color: var(--white); border-color: var(--black); }
.shop__readout {
  margin-top: 20px;
  display: flex;
  gap: 32px;
  padding: 18px 20px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
}
.shop__readout > div { display: grid; gap: 4px; }
.shop__readout-l { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-mute); }
.shop__readout-v { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }

.shop__kit-btn { margin-top: 16px; }
.shop__buy { margin-top: 32px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.shop__buy-btn { border: none; font: inherit; }

@media (max-width: 800px) {
  .shop { grid-template-columns: 1fr; gap: 32px; }
  .checkout { grid-template-columns: 1fr; gap: 32px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  /* The image's 2.28:1 aspect-ratio was locked in to show it uncropped on
     desktop, but at phone widths that leaves only ~170px of height —
     nowhere near enough room for the heading + 4-item list. Let content
     dictate the height instead, cropping the (very wide) photo via cover. */
  .inbox { aspect-ratio: auto; padding: 56px 24px; }
}
/* ---------- faq ---------- */
.faq__list { margin-top: 32px; border-top: 1px solid var(--hairline); }
.faq__item { border-bottom: 1px solid var(--hairline); padding: 20px 0; }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--grey-mute);
  transition: transform 0.2s;
  flex: none;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 14px 0 0; font-size: 14px; line-height: 1.65; color: var(--grey-text); }

/* ---------- shipping / warranty / returns ---------- */
.shipping-info__grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shipping-info__tile { background: var(--grey-bg); border-radius: 16px; padding: 24px; }
.shipping-info__tile svg { display: block; margin-bottom: 16px; }
.shipping-info__tile p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--black); }
.shipping-info__tile em { display: block; font-size: 12px; font-style: italic; color: var(--grey-mute); margin-top: 2px; }
.shipping-info__tile a { text-decoration: underline; }
.shipping-info__link { color: inherit; text-decoration: underline; }

/* ---------- in the box ---------- */
.inbox {
  position: relative;
  aspect-ratio: 2800 / 1225;
  padding: 0 6% 0 16%;
  display: flex;
  align-items: center;
  background-image: url('images/InsideBox.webp');
  background-size: cover;
  background-position: center;
}
.inbox__content { max-width: 320px; }
.inbox__list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.inbox__list li { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 600; }
.inbox__list svg { flex: none; }

.shop-banner { padding: 0; }
.shop-banner .wrap { max-width: none; margin: 0; }
.shop-banner__img { display: block; width: 100%; height: auto; }

/* ---------- footer ---------- */
.footer { padding: 56px 24px; border-top: 1px solid var(--hairline); }
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--grey-mute);
}
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .section { padding: 88px 22px; }
  .shop-banner { padding: 0; }
  .shipping-info__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shipping-info__tile { padding: 16px; min-width: 0; }
  .shipping-info__tile p { font-size: 13px; overflow-wrap: break-word; }
  .inbox { background-position: 18% center; }
  .success .btn { margin-top: 56px; }
  .hero { padding: 56px 22px 0; }
  .nav__burger { display: flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    transition: max-height 0.25s ease;
  }
  .nav__links.is-open { max-height: 400px; }
  .nav__links a { padding: 14px 22px; border-top: 1px solid rgba(0, 0, 0, 0.06); }
  .spec__row { grid-template-columns: 1fr; gap: 6px; }
  .readout { grid-template-columns: 1fr; gap: 20px; padding: 24px 28px; text-align: left; }
  .trio { gap: 32px; }

  /* The product shots don't fit beside the content at phone widths, so
     they drop behind everything as faint, low-opacity watermarks instead
     of disappearing. */
  #bateriya { padding-left: 22px; }
  .bateriya__charger {
    display: block;
    left: 50%;
    top: 6%;
    bottom: auto;
    transform: translateX(-50%) scaleX(-1);
    width: 92%;
    max-width: 420px;
    height: auto;
    opacity: 0.14;
    z-index: -1;
  }

  #razmeri { padding-left: 22px; }
  .razmeri__kit {
    display: block;
    left: 50%;
    top: auto;
    bottom: -4%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 420px;
    opacity: 0.14;
    z-index: -1;
  }

  #funkcii { padding-top: 28px; }
  /* The 3 equal-height columns become full-width sections stacked
     vertically — the user scrolls down through Сън/Здраве/Стрес inside
     this slide, then the carousel's own right arrow moves on to the
     next slide (Сравнение). */
  .funkcii__grid { grid-template-columns: none; display: flex; flex-direction: column; overflow-y: auto; scroll-snap-type: y proximity; }
  .funkcii__grid .card { padding: 24px 20px 32px; min-height: 100%; flex: none; scroll-snap-align: start; }
  .funkcii__grid .card__kicker { font-size: 24px; }
  .funkcii__grid .card__text { font-size: 12px; line-height: 1.4; }

  /* The desktop background-position math (fixed px offsets tuned for a
     wide, short card) doesn't translate to the mobile card's very
     different proportions — it was leaving the photo layer almost
     entirely cropped out, so the card looked solid black. `cover` +
     a simple keyword position always fills the card regardless of its
     aspect ratio. */
  /* Pushing the gradient's opaque stop much further up (45% -> 82%)
     shrinks the visible photo down to a low band near the bottom of the
     card instead of covering most of it — "cover" can't move past
     bottom-alignment on its own, so this is what actually reads as the
     picture sitting lower. */
  .funkcii__grid .card--sleep {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, var(--black) 82%), url('images/benefits-of-sleeping-in-complete-darkness.jpg');
    background-size: cover, cover;
    background-position: bottom, center bottom;
  }
  .funkcii__grid .card--health {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, var(--black) 82%), url('images/Screenshot 2026-08-07 232444.png');
    background-size: cover, cover;
    background-position: bottom, center bottom;
  }
  .funkcii__grid .card--stress {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, var(--black) 82%), url('images/Stress.jpg');
    background-size: cover, cover;
    background-position: bottom, center bottom;
  }

  .health-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .sleep-chart__bars { height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
