/* ============================================================
   MySkinly — Landing styles
   Поверх design-system.css (токены --ds-*). Префикс без .ds-.
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; width: 100%; }
body {
  margin: 0;
  background: var(--ds-cream);
  color: var(--ds-ink);
  font-family: var(--ds-font-body);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* место под нижнее меню на мобиле */
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

/* Texture: лёгкие диагональные пятна бренд-цветов на кремовом фоне */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 60vw at 85% -10%, rgba(105,224,148,.18), transparent 60%),
    radial-gradient(50vw 50vw at -10% 30%, rgba(177,119,237,.10), transparent 60%),
    radial-gradient(50vw 50vw at 110% 90%, rgba(244,123,106,.10), transparent 60%);
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@keyframes float { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
.float { animation: float 5s ease-in-out infinite; }

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(250,245,232,.82);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--ds-cream-deep);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--ds-shadow-sm); }
.brand-name { font-family: var(--ds-font-display); font-weight: 900; font-size: 22px; letter-spacing: -.5px; }
.brand-skin { color: var(--ds-mint-dark); }
.brand-ly { color: var(--ds-coral); }

/* Language switch */
.lang-switch { position: relative; }
.lang-current {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: var(--ds-r-full);
  background: var(--ds-surface); border: 1px solid var(--ds-cream-deep);
  font-family: var(--ds-font-display); font-weight: 700; font-size: 14px; cursor: pointer;
  color: var(--ds-ink);
}
.lang-current:hover { box-shadow: var(--ds-shadow-sm); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  background: var(--ds-surface); border: 1px solid var(--ds-cream-deep);
  border-radius: var(--ds-r-md); box-shadow: var(--ds-shadow-lg); min-width: 170px; z-index: 60;
}
.lang-menu li { margin: 0; }
.lang-menu a {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border: none; background: transparent;
  border-radius: var(--ds-r-sm); font-size: 15px; font-weight: 600; cursor: pointer;
  color: var(--ds-ink); text-decoration: none; white-space: nowrap;
}
.lang-menu a:hover { background: var(--ds-cream); }
.lang-menu a.is-active { background: var(--ds-mint-soft); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 56px 0 40px; }
.hero-grid {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.launch-ribbon {
  display: inline-block; margin-bottom: 18px; padding: 8px 16px;
  background: var(--ds-yellow); color: #2A1F18;
  font-family: var(--ds-font-display); font-weight: 800; font-size: 14px;
  border-radius: var(--ds-r-full); transform: rotate(-1.5deg); box-shadow: var(--ds-shadow-sm);
}
.hero-title { margin: 0 0 18px; font-size: clamp(26px, 6.4vw, 56px); overflow-wrap: break-word; hyphens: none; }
.br-d { display: none; }
@media (min-width: 561px) { .br-d { display: inline; } }
.hero-sub { margin: 0 0 28px; color: var(--ds-ink-soft); max-width: 30em; }
.hero-cta { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero-install { box-shadow: 0 10px 24px rgba(105,224,148,.4); }
.store-soon { display: flex; flex-direction: column; gap: 10px; }
.store-soon-label { font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--ds-ink-faint); }
.store-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--ds-r-md);
  background: var(--ds-surface); border: 1px solid var(--ds-cream-deep);
  color: var(--ds-ink-soft); opacity: .85;
  font-family: var(--ds-font-display); font-weight: 800; font-size: 14px;
}
.hero-fine { margin: 24px 0 0; font-size: 13px; color: var(--ds-ink-faint); font-weight: 600; }

.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-green { background: var(--ds-mint); }
.dot-yellow { background: var(--ds-yellow); }
.dot-red { background: var(--ds-coral); }

/* ---------- Hero visual: realistic phone mockup ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-mascot { position: absolute; width: 96px; height: 96px; top: -34px; right: -6px; z-index: 5; border-radius: 22px; box-shadow: var(--ds-shadow-lg); }
.phone {
  position: relative; width: 300px; padding: 11px; border-radius: 48px;
  background: #0e0b09;
  box-shadow: 0 2px 0 2px #2a2320 inset, var(--ds-shadow-xl);
}
.phone-island { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #0e0b09; border-radius: 999px; z-index: 4; }
.phone-screen { position: relative; background: var(--ds-cream); border-radius: 38px; overflow: hidden; }
.phone-shot { width: 100%; display: block; }

/* iOS status bar */
.ios-status { display: flex; align-items: center; justify-content: space-between; padding: 15px 26px 6px; height: 44px; flex: none; position: relative; z-index: 2; }
.ios-time { font-family: var(--ds-font-display); font-weight: 800; font-size: 15px; color: var(--ds-ink); }
.ios-ind { display: inline-flex; align-items: center; gap: 6px; color: var(--ds-ink); }
.ios-batt { display: inline-flex; width: 24px; height: 12px; border: 1.4px solid var(--ds-ink); border-radius: 3px; padding: 1.5px; position: relative; }
.ios-batt::after { content: ""; position: absolute; right: -3px; top: 3.5px; width: 2px; height: 4px; background: var(--ds-ink); border-radius: 0 1px 1px 0; }
.ios-batt i { display: block; width: 72%; height: 100%; background: var(--ds-ink); border-radius: 1px; }

/* App body */
.app-body { flex: 1; overflow: hidden; padding: 6px 16px 8px; display: flex; flex-direction: column; gap: 12px; }
.app-head { display: flex; align-items: center; justify-content: space-between; }
.app-hello { font-family: var(--ds-font-display); font-weight: 900; font-size: 19px; letter-spacing: -.5px; }
.app-date { font-size: 12px; font-weight: 600; color: var(--ds-ink-faint); margin-top: 1px; }
.app-streak { display: inline-flex; align-items: center; gap: 4px; background: var(--ds-orange-soft); color: var(--ds-ink); font-family: var(--ds-font-display); font-weight: 800; font-size: 14px; padding: 6px 11px; border-radius: var(--ds-r-full); }

/* Score card with progress ring */
.app-score { display: flex; align-items: center; gap: 16px; background: var(--ds-surface); border-radius: var(--ds-r-xl); padding: 16px; box-shadow: var(--ds-shadow-sm); }
.ring { position: relative; width: 96px; height: 96px; flex: none; }
.ring svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--ds-cream-deep); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--ds-mint); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 58.8; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-center b { font-family: var(--ds-font-display); font-weight: 900; font-size: 30px; letter-spacing: -1.5px; line-height: 1; color: var(--ds-ink); }
.ring-center small { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--ds-ink-faint); margin-top: 2px; }
.app-score-side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.app-score-side img { width: 44px; }
.app-score-hint { font-size: 12px; font-weight: 700; color: var(--ds-mint-dark); }

/* Food list */
.app-section-title { font-family: var(--ds-font-display); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--ds-ink-soft); margin: 2px 2px -2px; }
.app-foods { display: flex; flex-direction: column; gap: 7px; }
.app-food { display: flex; align-items: center; gap: 9px; background: var(--ds-surface); padding: 11px 12px; border-radius: var(--ds-r-md); box-shadow: var(--ds-shadow-sm); }
.app-food .ftime { font-size: 11px; font-weight: 700; color: var(--ds-ink-faint); width: 34px; flex: none; }
.app-food .fname { font-size: 13.5px; font-weight: 600; }
.app-food .ds-pill { margin-left: auto; }

/* Water */
.app-water { background: var(--ds-surface); padding: 12px 14px; border-radius: var(--ds-r-md); box-shadow: var(--ds-shadow-sm); }
.app-water-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; }
.app-water-top b { font-family: var(--ds-font-display); color: var(--ds-blue); }
.app-water-dots { display: flex; gap: 6px; margin-top: 9px; }
.app-water-dots i { flex: 1; height: 18px; border-radius: 4px 4px 6px 6px; background: var(--ds-blue-soft); }
.app-water-dots i.on { background: var(--ds-blue); }

/* In-app tab bar */
.app-tabs { flex: none; display: flex; align-items: center; justify-content: space-around; padding: 10px 14px 22px; background: var(--ds-surface); border-top: 1px solid var(--ds-cream-deep); }
.app-tab { color: var(--ds-ink-faint); display: grid; place-items: center; }
.app-tab.is-active { color: var(--ds-mint-dark); }
.app-tab-add { width: 42px; height: 42px; border-radius: 50%; background: var(--ds-mint); color: #2A1F18; box-shadow: 0 6px 14px rgba(105,224,148,.5); }

/* ============================================================
   BANDS / SECTIONS
   ============================================================ */
.band { padding: 80px 0; }
.band--mint { background: linear-gradient(180deg, transparent, rgba(105,224,148,.10) 30%, rgba(105,224,148,.10) 70%, transparent); }
.eyebrow { display: block; margin-bottom: 10px; }
.section-head { margin-bottom: 48px; }
.section-head h2, .band h2 { margin: 0 0 14px; }
.band p { margin: 0 auto; max-width: 36em; }

.trust-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: var(--ds-surface); border: 1px solid var(--ds-cream-deep);
  border-radius: var(--ds-r-full); font-weight: 700; font-size: 14px; box-shadow: var(--ds-shadow-sm);
}
.trust-pill span { font-size: 17px; }

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding: 80px 0 80px; }
.feature-list { display: flex; flex-direction: column; gap: 28px; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
  background: var(--ds-surface); border-radius: var(--ds-r-2xl); padding: 40px;
  box-shadow: var(--ds-shadow-md);
}
.feature--rev .feature-text { order: 2; }
.feature-num { margin-bottom: 16px; }
.feature h3 { margin: 0 0 14px; }
.feature-text p { margin: 0 0 16px; }
.feature-bullets { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feature-bullets li { position: relative; padding-left: 26px; font-weight: 600; color: var(--ds-ink-soft); }
.feature-bullets li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 18px; height: 18px; background: var(--ds-mint); color: #2A1F18; border-radius: 50%; font-size: 12px; font-weight: 900; display: grid; place-items: center; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-art { display: flex; justify-content: center; }
/* Внутренняя панель-иллюстрация: кремовая на белом блоке (чтобы не было white-on-white) */
.art-card { width: 100%; max-width: 340px; background: var(--ds-cream); box-shadow: none; border: 1px solid var(--ds-cream-deep); }

/* Компактные карточки в сетке (под основным food-блоком) */
.feature-grid { display: grid; gap: 20px; }
.feature-grid--2 { grid-template-columns: repeat(2, 1fr); }
.feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
.feature-mini { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px; }
.feature-mini .feature-num { margin: 0 0 2px; }
.feature-mini h3 { margin: 0; }
.feature-mini p { margin: 0; }
.feature-mini > :last-child { margin-top: auto; } /* визуал прижат к низу карточки */
.feature-mini h3 + * { margin-top: 6px; }

/* вода — литры + прогресс-бар (как в приложении) */
.water-liters { width: 100%; }
.water-liters-top { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; font-size: 18px; }
.water-liters-top b { font-family: var(--ds-font-display); font-weight: 900; font-size: 34px; color: var(--ds-blue); letter-spacing: -1.5px; line-height: 1; }
.water-liters-top span { font-size: 14px; font-weight: 700; color: var(--ds-ink-faint); }
.water-bar { height: 9px; background: var(--ds-blue-soft); border-radius: var(--ds-r-full); overflow: hidden; }
.water-bar-fill { height: 100%; background: var(--ds-blue); border-radius: var(--ds-r-full); }

/* score mini */
.score-mini { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.score-mini img { width: 52px; }
.score-mini .score-num { font-family: var(--ds-font-display); font-weight: 900; font-size: 40px; letter-spacing: -2px; color: var(--ds-mint-dark); line-height: 1; transition: color .3s; }

/* photo mini */
.mini-art.photo-art { gap: 8px; width: 100%; }
.mini-art .photo-skin { width: 72px; height: 72px; }

/* heal-patch — авто-анимация заживления кожи в карточке «Трекинг кожи через фото» */
.heal-patch {
  position: relative; width: 100%; aspect-ratio: 16 / 10;
  border-radius: var(--ds-r-lg); overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #f6d9c4, #ecbda0);
  box-shadow: inset 0 2px 8px rgba(0,0,0,.05);
}
/* Воспалённый красный оверлей — гаснет по мере «выздоровления» (--severity) */
.heal-inflame {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: multiply;
  background: radial-gradient(circle at 50% 45%, rgba(200,70,50,.55), rgba(200,70,50,.14) 68%, transparent 85%);
  opacity: var(--severity, 1); transition: opacity .5s ease;
}
.heal-patch .rash2 {
  position: absolute; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #d8705c, #b8472f);
  box-shadow: 0 0 0 3px rgba(184,71,47,.16);
  transform: translate(-50%, -50%) scale(var(--s, 1));
  opacity: var(--s, 1);
  transition: transform .5s ease, opacity .5s ease;
}
/* Резкий сброс на 1-ю неделю — без плавной перемотки назад */
.heal-patch.no-anim .rash2,
.heal-patch.no-anim .heal-inflame { transition: none; }
.heal-week {
  position: absolute; bottom: 8px; right: 10px; z-index: 2;
  font-family: var(--ds-font-display); font-weight: 800; font-size: 11px;
  color: #7a4a2e; background: rgba(255,255,255,.8);
  padding: 3px 9px; border-radius: var(--ds-r-full);
}
@media (prefers-reduced-motion: reduce) {
  .heal-patch .rash2, .heal-inflame { transition: none; }
}
/* calendar mini */
.mini-art.cal-art { padding: 0; width: 100%; box-shadow: none; }
/* csv mini — горизонтальный чип */
.feature-mini .csv-file { flex-direction: row; align-items: center; gap: 10px; padding: 14px 16px; width: 100%; justify-content: flex-start; margin: 0; font-size: 14px; }

@media (max-width: 900px) { .feature-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid--2, .feature-grid--3 { grid-template-columns: 1fr; } }

/* food legend (список под текстом фичи) */
.food-legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.food-legend li { display: flex; align-items: center; gap: 11px; font-size: 17px; font-weight: 600; color: var(--ds-ink-soft); }
.food-legend .dot { flex: none; }

/* food art */
.food-line { display: flex; align-items: center; gap: 10px; font-weight: 600; padding: 12px 2px; }
.food-line + .food-line { border-top: 1px solid var(--ds-cream-deep); } /* разделители только между строками */
.food-line .ds-pill { margin-left: auto; }
.food-score { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 16px; border-top: 1.5px solid var(--ds-cream-deep); font-weight: 700; color: var(--ds-ink-soft); }
.food-score b { font-family: var(--ds-font-display); font-weight: 900; font-size: 28px; letter-spacing: -1px; color: var(--ds-mint-dark); }
.food-score small { font-size: 14px; color: var(--ds-ink-faint); font-weight: 700; margin-left: 1px; }

/* water art */
.water-art { text-align: center; }
.water-big { font-family: var(--ds-font-display); font-weight: 900; font-size: 48px; letter-spacing: -2px; color: var(--ds-blue); }
.water-big span { font-size: 20px; color: var(--ds-ink-faint); }
.water-glasses { display: flex; gap: 8px; justify-content: center; margin: 14px 0 10px; }
.water-glasses i { width: 22px; height: 30px; border-radius: 5px 5px 9px 9px; background: var(--ds-blue-soft); transition: background .3s; }
.water-glasses i.on { background: var(--ds-blue); }

/* widget art */
.widget-art { display: flex; flex-direction: column; gap: 8px; }
.widget-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--ds-cream); border-radius: var(--ds-r-md); font-weight: 600; }
.widget-row b { font-family: var(--ds-font-display); }
.widget-row--flare { background: var(--ds-coral-soft); }

/* photo art */
.photo-art { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.photo-week { text-align: center; font-weight: 700; font-size: 13px; color: var(--ds-ink-soft); }
.photo-week span { display: block; margin-top: 8px; }
.photo-skin { width: 92px; height: 92px; border-radius: var(--ds-r-lg); position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.photo-skin::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, #f6d9c4, #eebfa3); }
.photo-skin--w1::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(7px 7px at 30% 35%, #c75b4a 60%, transparent 62%),
  radial-gradient(8px 8px at 62% 50%, #c75b4a 60%, transparent 62%),
  radial-gradient(6px 6px at 45% 70%, #c75b4a 60%, transparent 62%),
  radial-gradient(9px 9px at 70% 28%, #d06a58 60%, transparent 62%),
  radial-gradient(6px 6px at 25% 62%, #c75b4a 60%, transparent 62%); }
.photo-skin--w8::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(5px 5px at 40% 45%, rgba(199,91,74,.35) 60%, transparent 62%),
  radial-gradient(4px 4px at 64% 60%, rgba(199,91,74,.30) 60%, transparent 62%); }
.photo-arrow { color: var(--ds-mint-dark); flex: none; }

/* score art */
.score-art { text-align: center; position: relative; padding-top: 30px; }
.score-art img { width: 88px; margin: 0 auto 4px; }
.score-ring { display: inline-block; margin: 6px 0 16px; }
.score-num { font-family: var(--ds-font-display); font-weight: 900; font-size: 56px; letter-spacing: -2px; color: var(--ds-mint-dark); line-height: 1; transition: color .3s; }
.score-scale { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

/* calendar art */
.cal-art { padding: 18px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-head { margin-bottom: 6px; }
.cal-dow { text-align: center; font-size: 10px; font-weight: 800; color: var(--ds-ink-faint); text-transform: uppercase; letter-spacing: .3px; }
.cal-cell { aspect-ratio: 1; border-radius: 7px; background: var(--ds-cream-deep); display: grid; place-items: center; font-family: var(--ds-font-display); font-size: 11px; font-weight: 700; color: rgba(42, 31, 24, .62); }
.cal-cell[data-s="perfect"] { background: var(--ds-mint); }
.cal-cell[data-s="good"] { background: var(--ds-mint-soft); }
.cal-cell[data-s="mid"] { background: var(--ds-yellow-soft); }
.cal-cell[data-s="bad"] { background: var(--ds-coral-soft); }
.cal-legend { display: flex; gap: 12px; justify-content: center; margin-top: 14px; font-size: 11px; font-weight: 700; color: var(--ds-ink-soft); }
.cal-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; }

/* csv art */
.csv-art { text-align: center; }
.csv-file { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 30px; background: var(--ds-cream); border-radius: var(--ds-r-lg); color: var(--ds-mint-dark); font-weight: 700; margin-bottom: 16px; }
.csv-file span { color: var(--ds-ink); font-size: 14px; }

/* ============================================================
   SKIN PROGRESS DEMO
   ============================================================ */
.skin-demo { max-width: 560px; margin: 36px auto 0; display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; text-align: left; }
.skin-stage { position: relative; }
.skin-patch {
  width: 200px; height: 200px; border-radius: 28px; position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #f6d9c4, #ecbda0);
  box-shadow: inset 0 2px 10px rgba(0,0,0,.06), var(--ds-shadow-md);
}
.rash {
  position: absolute; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #d8705c, #b8472f);
  box-shadow: 0 0 0 3px rgba(184,71,47,.18);
  transform: translate(-50%, -50%) scale(var(--severity));
  opacity: calc(var(--severity) * .92 + .08);
  transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s ease;
}
.skin-mascot { position: absolute; width: 64px; right: -18px; bottom: -16px; filter: drop-shadow(0 6px 12px rgba(42,31,24,.18)); transition: opacity .3s; }
.skin-week { font-family: var(--ds-font-display); font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.skin-week b { font-size: 24px; color: var(--ds-mint-dark); }
.skin-range { width: 100%; accent-color: var(--ds-mint-dark); height: 26px; }
.skin-legend { margin: 14px 0 8px; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { padding: 80px 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 6px; position: relative; padding: 28px 24px; }
.plan--featured { outline: 3px solid var(--ds-mint); transform: translateY(-8px); }
.plan-badge { position: absolute; top: 16px; right: 16px; }
.plan-name { margin: 4px 0; }
.plan-free { align-self: flex-start; padding: 6px 12px; border-radius: var(--ds-r-full); background: var(--ds-mint-soft); color: var(--ds-ink); font-family: var(--ds-font-display); font-weight: 800; font-size: 12px; margin: 2px 0 4px; }
.plan-then { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--ds-ink-faint); margin-bottom: -4px; }
.plan-price { font-family: var(--ds-font-display); font-weight: 900; font-size: 38px; letter-spacing: -1.5px; }
.plan-price span { font-size: 14px; font-weight: 700; color: var(--ds-ink-faint); margin-left: 4px; letter-spacing: 0; }
.plan-save { margin: 0; color: var(--ds-ink-soft); }
.plan-under { text-align: center; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--ds-ink-faint); }
.plan-feats { list-style: none; margin: 14px 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-feats li { position: relative; padding-left: 24px; font-weight: 600; color: var(--ds-ink-soft); }
.plan-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--ds-mint-dark); font-weight: 900; }
.pricing-note { margin-top: 24px; }

/* ============================================================
   INSTALL
   ============================================================ */
.install-tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--ds-surface); border: 1px solid var(--ds-cream-deep); border-radius: var(--ds-r-full); margin: 28px 0 32px; }
.install-tab { border: none; background: transparent; padding: 10px 22px; border-radius: var(--ds-r-full); font-family: var(--ds-font-display); font-weight: 700; font-size: 15px; cursor: pointer; color: var(--ds-ink-soft); }
.install-tab.is-active { background: var(--ds-ink); color: var(--ds-cream); }
.steps { list-style: none; margin: 0 auto 28px; padding: 0; max-width: 520px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.step { display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.step-num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ds-mint-soft); color: var(--ds-mint-dark); font-family: var(--ds-font-display); font-weight: 900; font-size: 18px; display: grid; place-items: center; }
.step-num svg { display: block; }
.step--done .step-num { background: var(--ds-mint); font-size: 22px; }
.step-num--app { background: transparent; padding: 0; overflow: hidden; border-radius: 11px; box-shadow: var(--ds-shadow-sm); }
.step-num--app img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step-body { flex: 1; }
.step-body b { font-family: var(--ds-font-display); font-size: 16px; }
.step-body p { margin: 2px 0 0; font-size: 14px; }
.step-ill { flex: none; color: var(--ds-mint-dark); width: 48px; display: grid; place-items: center; }
.ill-safari { color: var(--ds-blue); }
.open-app { margin-top: 8px; }

/* ============================================================
   REVIEWS
   ============================================================ */
.reviews { padding: 80px 0; }
.rating-summary { display: inline-flex; align-items: center; gap: 16px; margin-top: 22px; }
.rating-big { font-family: var(--ds-font-display); font-weight: 900; font-size: 56px; letter-spacing: -2px; color: var(--ds-ink); }
.stars { color: var(--ds-orange); letter-spacing: 2px; font-size: 18px; }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.55; font-weight: 500; }
.review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review figcaption img { width: 42px; height: 42px; border-radius: 50%; background: var(--ds-cream); }
.review figcaption span { display: flex; flex-direction: column; line-height: 1.25; }
.review figcaption small { color: var(--ds-ink-faint); font-size: 12px; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta { padding: 80px 0 96px; }
.final-cta .container { background: linear-gradient(150deg, #D4F7E3 0%, #8FE8B1 58%, #69E094 100%); color: var(--ds-ink); border-radius: var(--ds-r-2xl); padding: 60px 32px; position: relative; overflow: hidden; box-shadow: var(--ds-shadow-lg); }
.final-cta h2 { color: var(--ds-ink); margin: 10px 0 12px; }
.final-cta p { color: var(--ds-ink-soft); margin: 0 0 28px; }
.cta-mascot { width: 108px; margin: 0 auto 6px; filter: drop-shadow(0 8px 16px rgba(42,31,24,.18)); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { padding: 48px 0 32px; border-top: 1px solid var(--ds-cream-deep); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 28px; }
.footer-brand p { margin: 12px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; }
.footer-links a { text-decoration: none; font-weight: 600; color: var(--ds-ink-soft); }
.footer-links a:hover { color: var(--ds-ink); }
.disclaimer { max-width: 60ch; margin: 0 0 8px; line-height: 1.5; }

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: space-around; align-items: stretch;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--ds-cream-deep);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none; color: var(--ds-ink-faint); font-size: 10px; font-weight: 700; padding: 4px 0;
}
.bottom-nav a.is-active { color: var(--ds-mint-dark); }
.bottom-nav a.nav-soon { color: var(--ds-ink-faint); }
.soon-badge {
  position: absolute; top: -2px; right: 50%; transform: translateX(26px);
  font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: .3px;
  background: var(--ds-purple); color: #fff; padding: 2px 5px; border-radius: 6px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { text-align: center; }
  .hero-cta { align-items: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .feature, .feature--rev { grid-template-columns: 1fr; gap: 26px; padding: 30px 22px; }
  .feature--rev .feature-text { order: 0; }
  .feature-text { text-align: center; }
  .feature-num { margin-left: auto; margin-right: auto; }
  .feature-bullets, .chip-row { justify-content: center; }
  .feature-bullets li { text-align: left; }
  .plans { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .plan--featured { transform: none; }
  .review-grid { grid-template-columns: 1fr; }
  .skin-demo { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .skin-controls { width: 100%; max-width: 320px; }
}
/* ---------- Планшет/крупный мобайл ---------- */
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .hero { padding: 28px 0 20px; }
  .features { padding: 52px 0; }
  .band, .pricing { padding: 52px 0; }
  .final-cta { padding: 48px 0 64px; }
  .final-cta .container { padding: 40px 22px; border-radius: var(--ds-r-xl); }
  .section-head { margin-bottom: 30px; }
  .section-head h2, .band h2 { font-size: 27px; }
  .feature-list { gap: 18px; }
  .feature, .feature--rev { padding: 26px 20px; }
  .feature h3 { font-size: 26px; }
  .install-tabs { margin: 22px 0 26px; }
  .steps { gap: 12px; }
  .step { padding: 16px; gap: 13px; }
  .footer-grid { flex-direction: column; gap: 18px; }
}

/* ---------- Узкие телефоны ---------- */
@media (max-width: 560px) {
  .hero-title { letter-spacing: -1px; }
  .hero-mascot { width: 80px; top: -26px; }
  .bottom-nav a span { font-size: 9px; }
  body { padding-bottom: 80px; }
}

@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .phone { width: 280px; }
  .feature h3 { font-size: 24px; }
  .plan-price { font-size: 34px; }
  .water-liters-top b { font-size: 30px; }
  .bottom-nav { padding: 7px 2px calc(7px + env(safe-area-inset-bottom)); }
  .bottom-nav a { gap: 2px; }
  .bottom-nav a span { font-size: 8px; }
  .bottom-nav a svg { width: 20px; height: 20px; }
}
/* На десктопе нижнее меню — плавающая центрированная «пилюля» в духе таб-бара приложения */
@media (min-width: 901px) {
  body { padding-bottom: 96px; }
  .bottom-nav {
    left: 50%; right: auto; bottom: 20px; transform: translateX(-50%);
    width: auto; gap: 6px; padding: 8px 10px;
    border: 1px solid var(--ds-cream-deep); border-radius: var(--ds-r-full);
    box-shadow: var(--ds-shadow-lg);
  }
  .bottom-nav a { flex: none; flex-direction: row; gap: 8px; font-size: 13px; padding: 8px 16px; border-radius: var(--ds-r-full); }
  .bottom-nav a svg { width: 18px; height: 18px; }
  .bottom-nav a.is-active { background: var(--ds-mint-soft); }
  .soon-badge { position: static; transform: none; margin-left: 2px; }
}

/* ============================================================
   BLOG + AUTHOR (генерируемые страницы)
   ============================================================ */
.blog-body main { padding-top: 24px; min-height: 60vh; }
.blog-index { padding-top: 40px; padding-bottom: 80px; }
.blog-index .section-head { margin-bottom: 40px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.blog-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--ds-shadow-lg); }
.blog-card img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; background: var(--ds-cream); }
.blog-card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.blog-card-body h2 { margin: 0; }
.blog-card-more { font-weight: 800; font-family: var(--ds-font-display); margin-top: 6px; }

/* Post */
.post { padding-top: 28px; padding-bottom: 72px; }
.post-crumbs { margin-bottom: 18px; }
.post-crumbs a { color: var(--ds-mint-dark); text-decoration: none; font-weight: 700; }
.post-title { margin: 0 0 12px; }
.post-meta { margin-bottom: 22px; }
.post-hero { margin: 0 0 24px; }
.post-hero img { width: 100%; border-radius: var(--ds-r-xl); }
.post-toc { background: var(--ds-cream); border: 1px solid var(--ds-cream-deep); border-radius: var(--ds-r-lg); padding: 18px 22px; margin: 0 0 28px; }
.post-toc-title { font-family: var(--ds-font-display); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--ds-ink-soft); margin-bottom: 10px; }
.post-toc ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.post-toc a { color: var(--ds-ink); text-decoration: none; font-weight: 600; }
.post-toc a:hover { color: var(--ds-mint-dark); }
.post-toc .toc-l3 { margin-left: 14px; font-size: 14px; }

.post-body { font-size: 18px; line-height: 1.7; color: var(--ds-ink); }
.post-body h2 { font-family: var(--ds-font-display); font-weight: 800; font-size: 27px; letter-spacing: -.5px; margin: 38px 0 14px; scroll-margin-top: 80px; }
.post-body h3 { font-family: var(--ds-font-display); font-weight: 700; font-size: 21px; margin: 28px 0 10px; scroll-margin-top: 80px; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.post-body a { color: var(--ds-mint-dark); text-decoration: underline; text-underline-offset: 2px; }
.post-body strong { font-weight: 800; }
.post-body code { background: var(--ds-cream); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.post-body blockquote { margin: 0 0 18px; padding: 12px 20px; border-left: 4px solid var(--ds-mint); background: var(--ds-cream); border-radius: 0 var(--ds-r-md) var(--ds-r-md) 0; color: var(--ds-ink-soft); }
.post-body hr { border: none; border-top: 1px solid var(--ds-cream-deep); margin: 32px 0; }
.post-body img { max-width: 100%; border-radius: var(--ds-r-lg); margin: 8px 0 18px; }
.table-wrap { overflow-x: auto; margin: 0 0 22px; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.post-body th, .post-body td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--ds-cream-deep); }
.post-body thead th { font-family: var(--ds-font-display); font-weight: 800; background: var(--ds-cream); }

.post-author-h { font-family: var(--ds-font-display); font-weight: 800; font-size: 22px; margin: 40px 0 14px; }
.author-box { display: flex; gap: 16px; align-items: flex-start; background: var(--ds-cream); border: 1px solid var(--ds-cream-deep); border-radius: var(--ds-r-xl); padding: 22px; }
.author-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: var(--ds-surface); }
.author-name { font-family: var(--ds-font-display); font-weight: 800; font-size: 17px; }
.author-name a { color: var(--ds-ink); text-decoration: none; }
.author-name a:hover { color: var(--ds-mint-dark); }
.author-bio { margin: 8px 0 0; }

/* Author page */
.author-page { padding-top: 40px; padding-bottom: 80px; text-align: center; }
.author-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; background: var(--ds-cream); }
.author-page h1 { margin: 0 0 8px; }
.author-bio-full { max-width: 60ch; margin: 22px auto 0; text-align: left; font-size: 17px; line-height: 1.6; color: var(--ds-ink); }
.author-bio-full p { margin: 0 0 14px; }
.author-links { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 14px; justify-content: center; }
.author-links a { color: var(--ds-mint-dark); font-weight: 700; }

@media (max-width: 600px) {
  .post-body { font-size: 17px; }
  .post-body h2 { font-size: 24px; }
  .author-box { flex-direction: column; }
}

/* hero-картинка поста — 16:9 cover (перебиваем атрибут height у <img>, иначе aspect-ratio игнорится) */
.post-hero img { height: auto; aspect-ratio: 16/9; object-fit: cover; }

/* Секция «последние статьи» внизу лендинга */
.latest-posts { padding: 72px 0; }
.latest-posts .section-head { margin-bottom: 40px; }
.latest-posts-all { margin-top: 30px; }
@media (max-width: 600px) { .latest-posts { padding: 52px 0; } }
