/* =======================================================
   FLOW — Main Styles
   Mobile-first, max-width 402px. Dark Premium.
   ======================================================= */

/* ---- Design Tokens ---- */
:root {
  --bg: #121212;
  --bg-card: #1d1d1d;
  --bg-card2: #262626;
  --bg-card3: #313030;
  --accent: #7f5af0;
  --accent-dark: #413663;
  --text-white: #f5f5f7;
  --text-gray: #b0b0b0;
  --text-gray2: #909090;
  --border: #2f2f2f;
  --border2: #343434;
  --radius-card: 20px;
  --radius-card-lg: 32px;

  --font: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --header-h: 67px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Единственный горизонтальный клип на корне — иначе при overflow-x на body/.page-wrap
     по спецификации overflow-y становится auto и появляется второй вертикальный скроллбар. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-white);
  line-height: 1.4;
  overflow: visible;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4, p {
  margin: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: var(--font);
  cursor: pointer;
}

/* ---- Layout wrapper ---- */
/* Не задавать overflow-x на этом блоке: при clip/hidden + visible по оси Y браузер
   вычисляет overflow-y: auto — получается вложенная прокрутка рядом со скроллом html.
   Горизонтальный клип только на html. */
.page-wrap {
  max-width: 402px;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  min-height: 100vh;
  background: var(--bg);
}

.container {
  width: 100%;
  padding: 0 20px;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-white);
}

/* ========================================================
   MENU OVERLAY
   ======================================================== */
.menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: 100vh;
  height: 100dvh;
  z-index: 200;
  background: var(--bg);
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

.menu__header,
.menu__nav {
  max-width: 402px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.menu.is-open {
  opacity: 1;
  pointer-events: auto;
}


.menu__header {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 12px 16px;
  height: var(--header-h);
  flex-shrink: 0;
}

.menu__logo {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: 0.01em;
  line-height: 1;
}

.menu__close {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.menu__close img {
  width: 24px;
  height: 24px;
}

.menu__nav {
  padding: 40px 20px 0;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 20px;
}

.menu__link {
  font-size: 32px;
  font-weight: 600;
  line-height: 36px;
  color: var(--text-white);
  letter-spacing: 0.01em;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}

.menu__link--muted {
  color: rgba(245, 245, 247, 0.6);
}

.menu__link--active {
  color: var(--text-white);
}

.menu__link:active,
.menu__link:hover {
  color: var(--accent);
}

/* ========================================================
   HEADER
   ======================================================== */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 100%;
  max-width: 402px;
  z-index: 110;
  background: var(--bg);
}

.nav {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 12px 16px;
  height: var(--header-h);
}

.nav__logo {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav__burger {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.nav__burger img {
  width: 24px;
  height: 24px;
}

/* ========================================================
   HERO (index.html)
   ======================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 280px;
  background: -webkit-linear-gradient(top, transparent, var(--bg));
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero__body {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: calc(var(--header-h) + 20px) 20px 56px;
}

.hero__title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-white);
  letter-spacing: -0.01em;
  opacity: 0;
  -webkit-animation: heroTitleIn 0.8s ease 0.2s forwards;
  animation: heroTitleIn 0.8s ease 0.2s forwards;
}

.hero__sub {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-gray);
  opacity: 0;
  -webkit-animation: heroSubIn 0.8s ease 0.5s forwards;
  animation: heroSubIn 0.8s ease 0.5s forwards;
}

@-webkit-keyframes heroTitleIn {
  from { opacity: 0; -webkit-transform: translateY(20px); transform: translateY(20px); }
  to   { opacity: 1; -webkit-transform: translateY(0);    transform: translateY(0); }
}
@keyframes heroTitleIn {
  from { opacity: 0; -webkit-transform: translateY(20px); transform: translateY(20px); }
  to   { opacity: 1; -webkit-transform: translateY(0);    transform: translateY(0); }
}

@-webkit-keyframes heroSubIn {
  from { opacity: 0; -webkit-transform: translateY(12px); transform: translateY(12px); }
  to   { opacity: 1; -webkit-transform: translateY(0);    transform: translateY(0); }
}
@keyframes heroSubIn {
  from { opacity: 0; -webkit-transform: translateY(12px); transform: translateY(12px); }
  to   { opacity: 1; -webkit-transform: translateY(0);    transform: translateY(0); }
}

/* ========================================================
   HYDRATION SECTION
   ======================================================== */
.hydration {
  padding: 60px 0 0;
  text-align: center;
}

.hydration__title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-white);
  padding: 0 20px;
}

.hydration__sub {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-gray);
  padding: 0 20px;
}

.hydration__visual {
  position: relative;
  margin-top: 32px;
  width: 100%;
  height: 560px;
}

.hydration__glow {
  position: absolute;
  left: 50%;
  top: 30px;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(127, 90, 240, 0.4) 0%, transparent 70%);
  -webkit-filter: blur(30px);
  filter: blur(30px);
  pointer-events: none;
}

.hydration__device {
  position: absolute;
  left: 50%;
  top: 20px;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 260px;
  height: auto;
  object-fit: contain;
}

/* Floating badges */
.badge {
  position: absolute;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(18, 18, 18, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-white);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255,255,255,0.06);
}

.badge img {
  flex-shrink: 0;
}

.badge--tr {
  top: 6px;
  left: calc(50% + 10px);
}
.badge--ml {
  top: 202px;
  right: calc(50% + 10px);
}
.badge--mr {
  top: 268px;
  left: calc(50% - 10px);
}
.badge--bc {
  top: 370px;
  left: 50%;
  -webkit-transform: translateX(-60%);
  transform: translateX(-60%);
}

/* ========================================================
   FLAVORS CAROUSEL
   ======================================================== */
.flavors {
  padding: 60px 0;
}

.flavors .container {
  margin-bottom: 24px;
}

.flavors__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.flavors__track {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-end;
  align-items: flex-end;
  gap: 16px;
  padding: 20px 36px;
  width: -webkit-max-content;
  width: max-content;
}

.flavor-item {
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
}

.flavor-item img {
  display: block;
  object-fit: cover;
}

.flavor-item--center img {
  box-shadow: 0 0 0 2px var(--accent-dark);
}

.flavor-item--side {
  opacity: 0.65;
}

/* ========================================================
   CALCULATOR
   ======================================================== */
.calc-section {
  padding: 0 0 60px;
}

.calc-section .section-title {
  margin-bottom: 24px;
}

.calc-card {
  background: var(--bg-card2);
  border-radius: var(--radius-card);
  padding: 16px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 16px;
}

.calc-slider-wrap {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 12px;
}

.calc-slider-row {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-items: center;
  align-items: center;
  gap: 8px;
}

.calc-label {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-white);
  line-height: 1.3;
}

.calc-count {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  min-width: 32px;
  text-align: right;
}

/* Custom range — input taller than track so WebKit centers thumb on track */
.calc-slider {
  --calc-slider-pct: 0%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 28px;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  outline: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  /* WebKit: thumb sits low vs 6px track; pull up to align centers */
  margin-top: -9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(127, 90, 240, 0.25);
  cursor: pointer;
  -webkit-transition: box-shadow 0.2s;
  transition: box-shadow 0.2s;
}

.calc-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(127, 90, 240, 0.25);
  cursor: pointer;
}

.calc-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(127, 90, 240, 0.3);
  background: linear-gradient(
    to right,
    var(--accent) var(--calc-slider-pct),
    rgba(127, 90, 240, 0.3) var(--calc-slider-pct)
  );
}

.calc-slider::-moz-range-track {
  height: 6px;
  border: none;
  border-radius: 3px;
  background: rgba(127, 90, 240, 0.3);
  background: linear-gradient(
    to right,
    var(--accent) var(--calc-slider-pct),
    rgba(127, 90, 240, 0.3) var(--calc-slider-pct)
  );
}

.calc-rows {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 8px;
}

.calc-row {
  border-radius: var(--radius-card);
  padding: 14px 16px;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-items: center;
  align-items: center;
  gap: 12px;
}

.calc-row--bottles {
  background: var(--bg-card3);
}

.calc-row--flow {
  background: var(--accent-dark);
}

.calc-row__meta {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 2px;
}

.calc-row__name {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-white);
  line-height: 1.3;
}

.calc-row--bottles .calc-row__name {
  color: var(--text-gray);
}

.calc-row__desc {
  font-size: 13px;
  color: var(--text-gray2);
  line-height: 1.3;
}

.calc-row__price {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
  flex-shrink: 0;
}

.calc-row__price--old {
  color: var(--text-gray2);
  text-decoration: line-through;
  font-size: 22px;
}

.calc-savings {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-items: center;
  align-items: center;
  padding: 4px 0;
}

.calc-savings__label {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-gray);
}

.calc-savings__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

/* ========================================================
   BENEFITS CAROUSEL (Начни свой FLOW)
   ======================================================== */
.benefits {
  padding: 0 0 40px;
}

.benefits .container {
  margin-bottom: 24px;
}

.benefits__scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

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

.benefits__track {
  display: -webkit-flex;
  display: flex;
  gap: 16px;
  padding: 0 20px;
  width: -webkit-max-content;
  width: max-content;
}

.bcard {
  position: relative;
  width: 340px;
  height: 480px;
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  border: 2px solid var(--accent-dark);
  scroll-snap-align: center;
  flex-shrink: 0;
  background: var(--bg);
}

.bcard__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bcard__body {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 8px;
}

.bcard__title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--accent);
}

.bcard__text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-white);
}

/* ---- Dots ---- */
.dots {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 0 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-transition: width 0.3s ease, background 0.3s ease;
  transition: width 0.3s ease, background 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.dot--active {
  width: 28px;
  background: var(--accent);
}

/* ========================================================
   CTA BAR (fixed bottom)
   ======================================================== */
.cta-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  width: 100%;
  max-width: 402px;
  padding: 12px 20px 28px;
  background: -webkit-linear-gradient(top, rgba(18,18,18,0) 0%, rgba(18,18,18,0.95) 40%);
  background: linear-gradient(to bottom, rgba(18,18,18,0) 0%, rgba(18,18,18,0.95) 40%);
  z-index: 50;
}

.btn-primary {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  border-radius: var(--radius-card);
  background: var(--accent);
  color: var(--text-white);
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  -webkit-transition: opacity 0.2s, -webkit-transform 0.15s;
  transition: opacity 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

.btn-primary:active {
  opacity: 0.85;
  -webkit-transform: scale(0.98);
  transform: scale(0.98);
}

/* Page bottom padding so content doesn't hide behind CTA */
.has-cta-bar {
  padding-bottom: 100px;
}

/* ========================================================
   FADE-IN SCROLL ANIMATION
   ======================================================== */
.fade-in {
  opacity: 0;
  -webkit-transform: translateY(24px);
  transform: translateY(24px);
  -webkit-transition: opacity 0.55s ease, -webkit-transform 0.55s ease;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.is-visible {
  opacity: 1;
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

/* ========================================================
   SOSTAV.HTML — Ingredients page
   ======================================================== */

/* Hero */
.ingredients-hero {
  position: relative;
  width: 100%;
  height: 695px;
  overflow: hidden;
}

.ingredients-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ingredients-hero__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    -webkit-linear-gradient(bottom, var(--bg) 0%, transparent 35%),
    -webkit-linear-gradient(top, var(--bg) 0%, transparent 30%);
  background:
    linear-gradient(to top, var(--bg) 0%, transparent 35%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 30%);
}

.ingredients-hero__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 20px 40px;
}

.ingredients-hero__title {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.05;
  color: var(--text-white);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.ingredients-hero__sub {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-gray);
}

/* Nutrition block */
.nutrition {
  padding: 0 20px 32px;
}

.nutrition__card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: 16px;
}

.nutrition__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 16px;
}

/* Segment tabs */
.tabs {
  display: -webkit-flex;
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  background: var(--bg-card2);
  border-radius: 12px;
  padding: 4px;
}

.tab {
  -webkit-flex: 1;
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-gray);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  -webkit-transition: background 0.2s, color 0.2s;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.tab--active {
  background: #353535;
  color: var(--text-white);
}

/* Nutrition rows */
.nutrition__row {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: baseline;
  align-items: baseline;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.nutrition__row:last-child {
  border-bottom: none;
}

.nutrition__name {
  font-size: 15px;
  color: var(--text-gray);
  white-space: nowrap;
}

.nutrition__dots {
  -webkit-flex: 1;
  flex: 1;
  border-bottom: 1px dashed var(--border2);
  margin: 0 6px 3px;
}

.nutrition__value {
  font-size: 15px;
  color: var(--text-white);
  white-space: nowrap;
}

/* Accordion */
.accordion {
  padding: 0 20px 60px;
}

.accordion__card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.accordion__item {
  border-bottom: 1px solid var(--border2);
}

.accordion__item:last-child {
  border-bottom: none;
}

.accordion__header {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  gap: 12px;
}

.accordion__header-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.2;
}

.accordion__arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
}

.accordion__item.is-open .accordion__arrow {
  -webkit-transform: rotate(180deg);
  transform: rotate(180deg);
}

.accordion__body {
  max-height: 0;
  overflow: hidden;
  -webkit-transition: max-height 0.35s ease;
  transition: max-height 0.35s ease;
}

.accordion__body-inner {
  padding: 0 20px 20px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-gray);
}

/* ========================================================
   PODPISKA.HTML — Subscription page
   ======================================================== */
.subscription-hero {
  padding: calc(var(--header-h) + 32px) 20px 40px;
}

.subscription-hero__title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-white);
  margin-bottom: 12px;
}

.subscription-hero__sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-gray);
}

/* Benefit list */
.benefit-list {
  padding: 0 20px 60px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.benefit-item {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
}

.benefit-item + .benefit-item {
  border-top: 1px solid var(--border);
}

.benefit-item__icon-wrap {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--bg-card2);
  border-radius: 9px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
}

.benefit-item__icon-wrap img {
  width: 20px;
  height: 20px;
}

.benefit-item__text {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 4px;
}

.benefit-item__title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-white);
  line-height: 1.3;
}

.benefit-item__desc {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-gray2);
  line-height: 1.45;
}

/* ========================================================
   DLYA-KLUBOV.HTML — For clubs page
   ======================================================== */

/* Clubs hero */
.clubs-hero {
  position: relative;
  width: 100%;
  height: 687px;
  overflow: hidden;
}

.clubs-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.clubs-hero__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    -webkit-linear-gradient(bottom, var(--bg) 0%, transparent 40%),
    -webkit-linear-gradient(top, var(--bg) 0%, transparent 30%);
  background:
    linear-gradient(to top, var(--bg) 0%, transparent 40%),
    linear-gradient(to bottom, var(--bg) 0%, transparent 30%);
}

.clubs-hero__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 20px 48px;
}

.clubs-hero__title {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.clubs-hero__sub {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text-gray);
}

/* Clubs calculator */
.clubs-calc {
  padding: 60px 20px 0;
}

.clubs-calc .section-title {
  margin-bottom: 24px;
}

.clubs-calc__note {
  font-size: 13px;
  color: var(--text-gray2);
  line-height: 1.4;
  margin-top: 12px;
}

/* Filter chips */
.chips {
  display: -webkit-flex;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0;
  margin-bottom: 16px;
  padding-bottom: 2px;
}

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

.chip {
  flex-shrink: 0;
  padding: 10px 18px;
  border-radius: 100px;
  border: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  -webkit-transition: background 0.2s, color 0.2s;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
  background: #272727;
  color: var(--accent);
}

.chip--active {
  background: var(--accent);
  color: var(--text-white);
}

/* Autonomy section */
.autonomy {
  padding: 60px 20px 0;
}

.autonomy .section-title {
  margin-bottom: 24px;
}

.autonomy__card {
  background: var(--bg-card2);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.autonomy__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center top;
}

.autonomy__info {
  padding: 20px;
  background: rgba(38, 38, 38, 0.7);
}

.autonomy__info-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
  line-height: 1.2;
}

.autonomy__info-text {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.5;
}

/* Clubs cards carousel */
.clubs-cards {
  padding: 60px 0 0;
}

.clubs-cards .container {
  margin-bottom: 24px;
}

/* Contact form section */
.clubs-contact {
  padding: 60px 20px;
  position: relative;
}

.clubs-contact__title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-white);
  margin-bottom: 24px;
}

.clubs-contact__card {
  background: var(--bg-card2);
  border-radius: var(--radius-card);
  padding: 20px;
  position: relative;
  z-index: 1;
}

.clubs-contact__desc {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-gray);
  margin-bottom: 24px;
}

.form {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 12px;
}

.form-field {
  position: relative;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}

.form-field__icon {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.form-field input {
  width: 100%;
  height: 52px;
  background: #333;
  border: 1px solid #404040;
  border-radius: 12px;
  color: var(--text-white);
  font-family: var(--font);
  font-size: 16px;
  padding: 0 16px 0 46px;
  outline: none;
  -webkit-transition: border-color 0.2s;
  transition: border-color 0.2s;
}

.form-field input:focus {
  border-color: var(--accent);
}

.form-field input::-webkit-input-placeholder { color: var(--text-gray2); }
.form-field input::-moz-placeholder          { color: var(--text-gray2); }
.form-field input:-ms-input-placeholder      { color: var(--text-gray2); }
.form-field input::placeholder               { color: var(--text-gray2); }

.form__submit {
  height: 56px;
  border-radius: var(--radius-card);
  background: var(--accent);
  color: var(--text-white);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  -webkit-transition: opacity 0.2s, -webkit-transform 0.15s;
  transition: opacity 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
  margin-top: 4px;
}

.form__submit:active {
  opacity: 0.85;
  -webkit-transform: scale(0.98);
  transform: scale(0.98);
}

/* Purple glow */
.glow-blob {
  position: absolute;
  width: 315px;
  height: 277px;
  background: rgba(127, 90, 240, 0.3);
  border-radius: 50%;
  -webkit-filter: blur(50px);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

/* ========================================================
   O-FLOW.HTML — About page
   ======================================================== */

/* About hero */
.about-hero {
  position: relative;
  width: 100%;
  height: 827px;
  overflow: hidden;
}

.about-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-hero__overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    -webkit-linear-gradient(bottom, var(--bg) 0%, transparent 25%),
    -webkit-linear-gradient(top, rgba(18,18,18,0.25) 0%, transparent 30%);
  background:
    linear-gradient(to top, var(--bg) 0%, transparent 25%),
    linear-gradient(to bottom, rgba(18,18,18,0.25) 0%, transparent 30%);
}

.about-hero__body {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding: calc(var(--header-h) + 20px) 20px 40px;
}

.about-hero__title {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.about-hero__cards {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 12px;
}

.about-hero__card {
  background: rgba(38, 38, 38, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-card);
  padding: 20px;
}

.about-hero__card-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
}

.about-hero__card-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.375;
  color: var(--text-gray);
}

/* Benefit tabs section */
.about-benefit {
  padding: 60px 20px 0;
}

.about-benefit .section-title {
  margin-bottom: 24px;
}

/* Chip overrides specifically for about-benefit (Figma 246:12139) */
.about-benefit .chip {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.about-benefit__card {
  background: var(--bg-card2);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.about-benefit__img {
  width: 100%;
  height: 361px;
  object-fit: cover;
  object-position: center 20%;
}

.about-benefit__info {
  padding: 20px;
  background: rgba(38, 38, 38, 0.7);
}

.about-benefit__info-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
}

.about-benefit__info-text {
  font-size: 18px;
  color: #bfbfbf;
  line-height: 1.33;
}

/* Slogan section */
.about-slogan {
  padding: 60px 20px 80px;
}

.about-slogan__text {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

/* ---- Desktop nav links (hidden on mobile) ---- */
.nav__links {
  display: none;
  -webkit-align-items: center;
  align-items: center;
  gap: 24px;
}

.nav__link {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-gray);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--text-white);
}

.nav__link--active {
  color: var(--text-white);
}

.nav__link--muted {
  color: var(--text-gray2);
}

/* ========================================================
   CENTERING (≥ 403px)
   ======================================================== */
@media (min-width: 403px) {
  .header {
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }

  /* Menu stays full-viewport: left:0 right:0 are the base styles.
     Content inside (.menu__header, .menu__nav) is centered via max-width + margin:auto. */

  .cta-bar {
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
}

/* ========================================================
   TABLET (≥ 769px)
   ======================================================== */
@media (min-width: 769px) {
  .page-wrap {
    max-width: 768px;
  }

  .header {
    max-width: 768px;
  }

  .cta-bar {
    max-width: 768px;
    padding: 16px 32px 32px;
  }

  .menu__header,
  .menu__nav {
    max-width: 768px;
  }

  /* Navigation */
  .nav {
    padding: 12px 24px;
  }

  .nav__links {
    display: -webkit-flex;
    display: flex;
  }

  .nav__burger {
    display: none;
  }

  /* Typography */
  .section-title {
    font-size: 40px;
  }

  /* Hero */
  .hero__title {
    font-size: 72px;
  }

  .hero__sub {
    font-size: 28px;
  }

  .hero__body {
    padding: calc(var(--header-h) + 32px) 40px 64px;
  }

  /* Hydration */
  .hydration {
    padding: 72px 0 0;
  }

  .hydration__title {
    font-size: 40px;
    padding: 0 40px;
  }

  .hydration__sub {
    font-size: 20px;
    padding: 0 40px;
  }

  .hydration__visual {
    height: 640px;
  }

  .hydration__device {
    width: 300px;
  }

  .badge--tr { top: 8px;   left: calc(50% + 20px); }
  .badge--ml { top: 220px; right: calc(50% + 20px); }
  .badge--mr { top: 290px; left: calc(50% - 4px); }
  .badge--bc { top: 420px; }

  /* Calculator */
  .calc-section {
    padding: 0 0 72px;
  }

  .calc-card {
    padding: 24px;
    gap: 20px;
    width: 100%;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  .calc-row__name {
    font-size: 20px;
  }

  .calc-row__price {
    font-size: 28px;
  }

  .calc-row__price--old {
    font-size: 24px;
  }

  /* Benefits: 2-column grid */
  .benefits__scroll {
    overflow-x: visible;
  }

  .benefits__track {
    width: auto;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 0 32px;
  }

  .bcard {
    width: 320px;
    scroll-snap-align: none;
  }

  .dots {
    display: none;
  }

  /* CTA button — narrower on wider layout */
  .btn-primary {
    max-width: 400px;
    margin: 0 auto;
  }

  /* О FLOW — About Hero tablet */
  .about-hero {
    height: 900px;
  }

  .about-hero__title {
    font-size: 52px;
  }

  .about-hero__body {
    padding: calc(var(--header-h) + 32px) 40px 48px;
  }

  /* О FLOW — Benefits tablet */
  .about-benefit {
    padding: 72px 40px 0;
  }

  .about-benefit__card {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  /* О FLOW — Slogan tablet */
  .about-slogan {
    padding: 80px 40px 100px;
  }

  .about-slogan__text {
    font-size: 56px;
  }
}

/* ========================================================
   DESKTOP (≥ 1025px)
   ======================================================== */
@media (min-width: 1025px) {
  .page-wrap {
    max-width: 1100px;
  }

  .header {
    max-width: 1100px;
  }

  .cta-bar {
    max-width: 1100px;
    padding: 20px 60px 36px;
  }

  .menu__header,
  .menu__nav {
    max-width: 1100px;
  }

  /* Navigation */
  .nav {
    padding: 0 40px;
  }

  .nav__links {
    gap: 32px;
  }

  .nav__link {
    font-size: 13px;
    letter-spacing: 0.06em;
  }

  /* Typography */
  .section-title {
    font-size: 52px;
  }

  .container {
    padding: 0 60px;
  }

  /* Hero */
  .hero__title {
    font-size: 96px;
  }

  .hero__sub {
    font-size: 34px;
  }

  .hero__body {
    padding: calc(var(--header-h) + 48px) 80px 80px;
  }

  /* Hydration */
  .hydration {
    padding: 80px 0 0;
  }

  .hydration__title {
    font-size: 52px;
    padding: 0 60px;
  }

  .hydration__sub {
    font-size: 22px;
    padding: 0 60px;
    margin-top: 16px;
  }

  .hydration__visual {
    height: 720px;
  }

  .hydration__device {
    width: 340px;
  }

  .badge--tr { top: 18px;  left: calc(50% + 30px); }
  .badge--ml { top: 230px; right: calc(50% + 30px); }
  .badge--mr { top: 300px; left: calc(50% - 4px); }
  .badge--bc { top: 460px; }

  /* Flavors — all 3 cards fit (3×330+2×16=1022px ≤ 1100px), center them */
  .flavors {
    padding: 72px 0;
  }

  .flavors .container {
    padding: 0 60px;
  }

  .flavors__scroll {
    overflow-x: visible;
  }

  .flavors__track {
    width: auto;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 20px 39px;
  }

  /* Calculator */
  .calc-section {
    padding: 0 0 80px;
  }

  .calc-card {
    padding: 32px;
    gap: 24px;
    width: 100%;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }

  .calc-label {
    font-size: 18px;
  }

  .calc-row__name {
    font-size: 22px;
  }

  .calc-row__price {
    font-size: 32px;
  }

  .calc-savings__label {
    font-size: 22px;
  }

  .calc-savings__value {
    font-size: 28px;
  }

  /* Clubs calc — limit width like index calc */
  .clubs-calc {
    padding: 60px 60px 0;
  }

  .clubs-calc .section-title,
  .clubs-calc .calc-card,
  .clubs-calc__note {
    width: 100%;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }

  .clubs-calc__note {
    margin-top: 12px;
  }

  /* Benefits: 3-column grid */
  .benefits {
    padding: 0 0 72px;
  }

  .benefits__track {
    gap: 20px;
    padding: 0 60px;
  }

  .bcard {
    width: 300px;
    height: 460px;
  }

  /* CTA button */
  .btn-primary {
    max-width: 480px;
    font-size: 20px;
    height: 64px;
  }

  /* О FLOW — About Hero desktop */
  .about-hero {
    height: 960px;
  }

  .about-hero__title {
    font-size: 60px;
  }

  .about-hero__body {
    padding: calc(var(--header-h) + 48px) 60px 60px;
  }

  /* О FLOW — Benefits desktop */
  .about-benefit {
    padding: 80px 60px 0;
  }

  .about-benefit__card {
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
  }

  /* О FLOW — Slogan desktop */
  .about-slogan {
    padding: 100px 60px 120px;
  }

  .about-slogan__text {
    font-size: 72px;
  }
}
