/* ==========================================================================
   WOMP site — Design System v2.0 (redesign 2026-09-23)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Colors — per REDESIGN_SPEC section 2.1 */
  --bg: #F6F8F5;
  --bg-soft: #F8FAF7;
  --surface: #FFFFFF;
  --text: #141A16;
  --text-secondary: #66736B;
  --text-tertiary: #8B968F;
  --green: #2F7A3A;
  --green-strong: #287034;
  --green-soft: #EAF5EC;
  --green-soft-2: #F0F8F1;
  --border: #DEE6DF;
  --border-soft: #E9EEEA;
  --border-strong: #C8E1CD;
  --danger: #B42318;
  --warning: #B7791F;

  /* Radii */
  --r-section: 32px;
  --r-hero-panel: 28px;
  --r-card: 22px;
  --r-mini: 18px;
  --r-btn: 18px;
  --r-pill: 999px;

  /* Shadows (flat by default) */
  --shadow-lg: 0 14px 42px rgba(20, 26, 22, 0.055);
  --shadow-md: 0 12px 34px rgba(20, 26, 22, 0.045);
  --shadow-sm: 0 8px 22px rgba(20, 26, 22, 0.04);

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur-micro: 200ms;
  --dur-ui: 320ms;
  --dur-section: 560ms;

  /* Type stack */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max-w: 1240px;
  --max-w-hero: 1360px;
  --pad-x: 32px;
  --pad-x-mobile: 18px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea { font: inherit; color: inherit; }

/* Visible focus for keyboard */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection */
::selection { background: var(--green-soft); color: var(--text); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; color: var(--text); }

.h1, h1.h1 {
  font-size: 72px;
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  max-width: 100%;
}
.h2, h2.h2 {
  font-size: 54px;
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
}
.h3 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-soft);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}

.lead { font-size: 20px; color: var(--text-secondary); line-height: 1.5; max-width: 620px; }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.small { font-size: 14px; color: var(--text-secondary); }

@media (max-width: 900px) {
  .h1, h1.h1 { font-size: 44px; line-height: 1.04; letter-spacing: -0.035em; }
  .h2, h2.h2 { font-size: 34px; line-height: 1.1; }
  .h3 { font-size: 26px; }
  .lead { font-size: 17px; }
}
@media (max-width: 500px) {
  .h1, h1.h1 { font-size: 32px; line-height: 1.08; letter-spacing: -0.025em; }
  .h2, h2.h2 { font-size: 26px; line-height: 1.14; letter-spacing: -0.02em; }
  .h3 { font-size: 20px; }
  .lead { font-size: 16px; }
}
@media (max-width: 400px) {
  .h1, h1.h1 { font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
  .h2, h2.h2 { font-size: 22px; }
  .h3 { font-size: 19px; }
}
@media (max-width: 360px) {
  .h1, h1.h1 { font-size: 25px; }
}

/* ---------- 4. Layout helpers ---------- */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container-wide {
  max-width: var(--max-w-hero);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
@media (max-width: 900px) {
  .container, .container-wide { padding-inline: var(--pad-x-mobile); }
}

.section { padding-block: 112px; }
.section-sm { padding-block: 72px; }
@media (max-width: 1100px) { .section { padding-block: 88px; } .section-sm { padding-block: 60px; } }
@media (max-width: 700px)  { .section { padding-block: 72px; } .section-sm { padding-block: 48px; } }

.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-12 { grid-template-columns: 1fr; gap: 16px; } }

.stack-8  { display: flex; flex-direction: column; gap: 8px; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }

/* ---------- 5. Buttons (per spec section 28) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: var(--r-btn);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: transform var(--dur-micro) var(--ease), background var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn-primary {
  background: var(--green);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--green-strong); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.985); }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.btn-secondary:active { transform: scale(0.985); }

.btn-text {
  height: auto;
  padding: 6px 0;
  color: var(--green);
  font-weight: 600;
  background: transparent;
  border-radius: 4px;
}
.btn-text:hover { text-decoration: underline; }

.btn-sm { height: 46px; padding: 0 20px; font-size: 15px; border-radius: 16px; }

@media (max-width: 700px) { .btn { height: 54px; } }

/* ---------- 6. Card system (per spec section 29) ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-card);
  padding: 24px;
  transition: border-color var(--dur-ui) var(--ease), transform var(--dur-ui) var(--ease);
}
.card-lg {
  padding: 32px;
  border-radius: 28px;
  border-color: #E5EBE6;
  box-shadow: var(--shadow-md);
}
.card-active {
  background: var(--green-soft-2);
  border-color: var(--border-strong);
}
@media (max-width: 700px) {
  .card { padding: 20px; }
  .card-lg { padding: 22px; }
}

/* ---------- 7. Pills & chips ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border);
}

/* ---------- 8. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 80px;
  transition: background var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease);
  pointer-events: none;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}
.site-header.is-scrolled::before {
  background: rgba(246, 248, 245, 0.82);
  border-bottom-color: rgba(222, 230, 223, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner {
  position: relative;
  max-width: var(--max-w-hero);
  margin-inline: auto;
  height: 100%;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  z-index: 1;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--green-soft);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--green);
  font-weight: 800;
  font-size: 20px;
}
.brand-name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--dur-micro) var(--ease);
}
.nav a:hover { color: var(--text); }

.header-right { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  background: rgba(255,255,255,.6);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.lang-switch button {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background var(--dur-micro) var(--ease), color var(--dur-micro) var(--ease);
}
.lang-switch button.active { background: var(--green); color: #fff; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--text); position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: var(--text); }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

@media (max-width: 1000px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 700px) {
  /* Header CTA hides — mobile-sticky bottom CTA covers this instead */
  .header-right > .btn { display: none; }
  .lang-switch button { padding: 4px 10px; font-size: 11px; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 32px; height: 32px; font-size: 16px; }
  .site-header { height: 66px; }
  .header-inner { gap: 12px; padding-inline: 14px; }
  .menu-toggle { width: 40px; height: 40px; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg);
  padding: 24px var(--pad-x-mobile) 32px;
  transform: translateY(-100%);
  transition: transform var(--dur-ui) var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu-inner { display: flex; flex-direction: column; gap: 8px; padding-top: 88px; }
.mobile-menu a { padding: 16px 12px; font-size: 20px; font-weight: 600; border-radius: 12px; }
.mobile-menu a:active, .mobile-menu a:hover { background: var(--green-soft-2); }
.mobile-menu-close { position: fixed; top: 20px; right: var(--pad-x-mobile); width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }

/* ---------- 9. Hero ---------- */
.hero {
  position: relative;
  min-height: min(820px, calc(100vh - 80px));
  padding-block: 40px 96px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 80%;
  background:
    radial-gradient(60% 55% at 55% 40%, rgba(167, 215, 174, .22) 0%, rgba(167, 215, 174, 0) 70%),
    radial-gradient(45% 45% at 20% 60%, rgba(213, 232, 187, .16) 0%, rgba(213, 232, 187, 0) 65%);
  z-index: 0;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w-hero);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.hero-copy, .hero-visual { min-width: 0; }
.hero-copy h1, .hero-copy .lead { max-width: 100%; overflow-wrap: break-word; }
.hero-copy { max-width: 540px; }
.hero-copy .eyebrow { margin-bottom: 20px; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; }
.hero-ctas { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  max-width: 100%;
}
.hero-badge svg { flex-shrink: 0; color: var(--text-secondary); }
.hero-badge-soft {
  background: var(--green-soft);
  border-color: var(--border-strong);
  color: var(--green);
}
@media (max-width: 500px) {
  .hero-badges { flex-direction: column; align-items: stretch; gap: 8px; }
  .hero-badge { justify-content: center; }
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 6;
  min-height: 560px;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
}

/* Small "Example / Пример" tag on top of any demo UI */
.demo-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: rgba(20, 26, 22, 0.72);
  color: #fff;
  border-radius: 6px;
  pointer-events: none;
}
.demo-tag-inline {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  background: rgba(20, 26, 22, 0.06);
  color: var(--text-secondary);
  border-radius: 6px;
  margin-bottom: 12px;
}

/* Central app panel — sized to match real screenshot ratio (640×1389) */
.hero-phone {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  height: 92%;
  aspect-ratio: 640 / 1389;
  background: var(--surface);
  border-radius: 42px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  z-index: 2;
}
.hero-phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.photo-day-shot {
  overflow: hidden;
  background: var(--bg-soft) !important;
  border: 1px solid var(--border-soft);
  aspect-ratio: 640 / 1389 !important;
  max-width: 340px;
  margin-inline: auto;
  border-radius: 36px;
}
.photo-day-shot::after { content: none !important; }
.photo-day-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-phone-header { padding: 20px 22px 12px; }
.hero-phone-header .brand-name { font-size: 18px; }
.hero-phone-body { padding: 8px 20px 24px; display: flex; flex-direction: column; gap: 14px; }

/* Calorie ring UI */
.cal-ring-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px; background: var(--green-soft-2); border-radius: var(--r-mini); border: 1px solid var(--border-soft);
}
.cal-ring {
  --pct: 62;
  width: 72px; height: 72px; border-radius: 50%; position: relative;
  background: conic-gradient(var(--green) calc(var(--pct) * 1%), var(--border-soft) 0);
  display: inline-flex; align-items: center; justify-content: center;
}
.cal-ring::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface);
}
.cal-ring-inner { position: relative; z-index: 1; text-align: center; }
.cal-ring-num { font-size: 15px; font-weight: 700; color: var(--text); }
.cal-ring-lbl { font-size: 9px; color: var(--text-tertiary); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }
.cal-ring-info { flex: 1; }
.cal-ring-info .k { font-size: 11px; color: var(--text-tertiary); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.cal-ring-info .v { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.cal-ring-info .s { font-size: 12px; color: var(--text-secondary); }

.macro-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.macro-cell { padding: 10px; background: var(--bg-soft); border-radius: 12px; border: 1px solid var(--border-soft); text-align: center; }
.macro-cell .k { display: block; font-size: 10px; color: var(--text-tertiary); text-transform: uppercase; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 3px; }
.macro-cell .v { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }

.meal-mini {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; background: var(--surface); border-radius: 14px; border: 1px solid var(--border-soft);
}
.meal-mini-thumb {
  width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #F5EBD9 0%, #E0C89A 100%); flex-shrink: 0;
}
.meal-mini-body { flex: 1; min-width: 0; }
.meal-mini-title { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.meal-mini-sub { font-size: 11px; color: var(--text-secondary); margin-top: 1px; }
.meal-mini-kcal { font-size: 13px; font-weight: 700; color: var(--green); }

/* Floating hero mini-cards (Meal analysis / AI snapshot / Weekly Menu) */
.hero-float {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: var(--shadow-md);
  z-index: 3;
  max-width: 220px;
}
.hero-float-1 { top: 8%;  left: -2%; animation: float 8s ease-in-out infinite; }
.hero-float-2 { top: 46%; right: -4%; animation: float 9s ease-in-out infinite 1s; }
.hero-float-3 { bottom: 6%; left: 4%; animation: float 10s ease-in-out infinite .5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-float-label {
  font-size: 10px; text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; color: var(--green);
  margin-bottom: 6px;
}
.hero-float-title { font-size: 14px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.hero-float-sub { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }

@media (max-width: 1000px) {
  .hero { padding-block: 24px 64px; min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-copy { max-width: 100%; margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-badges { justify-content: center; }
  .hero-visual { min-height: 540px; max-width: 440px; aspect-ratio: 4 / 6; }
  .hero-float { max-width: 170px; padding: 10px 12px; }
  .hero-float-1 { top: 4%;  left: -2%; }
  .hero-float-2 { top: 42%; right: -2%; }
  .hero-float-3 { bottom: 4%; left: 2%; }
}
@media (max-width: 500px) {
  .hero-visual { min-height: 500px; max-width: 360px; }
  .hero-float { max-width: 148px; padding: 8px 10px; border-radius: 16px; }
  .hero-float-1 { top: 2%;  left: -6%; }
  .hero-float-2 { top: 40%; right: -6%; }
  .hero-float-3 { bottom: 2%; left: -2%; }
  .hero-float-label { font-size: 9px; margin-bottom: 4px; }
  .hero-float-title { font-size: 12px; margin-bottom: 2px; line-height: 1.25; }
  .hero-float-sub { font-size: 10.5px; line-height: 1.35; }
}
@media (max-width: 400px) {
  .hero-visual { min-height: 460px; max-width: 320px; }
  .hero-float { max-width: 130px; padding: 7px 9px; }
  .hero-float-label { font-size: 8px; }
  .hero-float-title { font-size: 11px; }
  .hero-float-sub { font-size: 9.5px; }
}
@media (max-width: 360px) {
  .hero-visual { min-height: 420px; max-width: 300px; }
  .hero-float { max-width: 118px; padding: 6px 8px; }
}

/* ---------- 10. Value strip (section 7) ---------- */
.value-strip {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 28px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  box-shadow: var(--shadow-sm);
}
.value-strip-cell .k { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.value-strip-cell .v { font-size: 14px; color: var(--text-secondary); line-height: 1.45; }
@media (max-width: 900px) {
  .value-strip { grid-template-columns: 1fr; padding: 20px 22px; gap: 18px; }
  .value-strip-cell { padding-bottom: 18px; border-bottom: 1px solid var(--border-soft); }
  .value-strip-cell:last-child { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- 11. Photo → day section ---------- */
.photo-day {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 40px;
  padding: 64px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 40px;
  align-items: center;
}
.photo-day .h2 { grid-column: 1 / -1; text-align: center; margin-bottom: 24px; max-width: 640px; margin-inline: auto; }
.photo-day-photo {
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, #F0E5CE 0%, #C89870 100%);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.photo-day-photo::after {
  content: "🥗";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 96px;
  opacity: 0.7;
}
.photo-day-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
  font-size: 32px;
}
.photo-day-card { display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 900px) {
  .photo-day { padding: 32px 22px; grid-template-columns: 1fr; gap: 20px; border-radius: 28px; }
  .photo-day .h2 { margin-bottom: 12px; }
  .photo-day-arrow { transform: rotate(90deg); font-size: 24px; }
}

/* ---------- 12. Weekly Menu section ---------- */
.weekly-menu {
  background: var(--green-soft);
  border-radius: 40px;
  padding: 72px 56px;
  position: relative;
  overflow: hidden;
}
.weekly-menu::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 70% at 90% 10%, rgba(255,255,255,.5) 0%, rgba(255,255,255,0) 60%);
  pointer-events: none;
}
.weekly-menu-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.weekly-menu h2 { margin: 12px 0 20px; }
.weekly-menu .lead { margin-bottom: 24px; }
.weekly-menu-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }

.week-accordion {
  background: var(--surface);
  border-radius: 26px;
  padding: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 4px;
}
.week-day {
  border-radius: 18px;
  overflow: hidden;
  transition: background var(--dur-ui) var(--ease);
}
.week-day-head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  cursor: pointer;
  text-align: left;
}
.week-day-head:hover { background: var(--green-soft-2); }
.week-day-name { font-weight: 700; font-size: 15px; }
.week-day-cal { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.week-day-chev { color: var(--text-tertiary); transition: transform var(--dur-ui) var(--ease); }
.week-day.open .week-day-chev { transform: rotate(180deg); }
.week-day-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-ui) var(--ease);
}
.week-day.open .week-day-body { max-height: 500px; }
.week-day.open { background: var(--green-soft-2); }
.week-meals { display: flex; flex-direction: column; gap: 6px; padding: 4px 8px 12px; }

@media (max-width: 900px) {
  .weekly-menu { padding: 48px 24px; border-radius: 28px; }
  .weekly-menu-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- 13. Day timeline ---------- */
.day-timeline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.day-timeline-left { position: sticky; top: 120px; }
.day-timeline-right { display: flex; flex-direction: column; gap: 24px; }
.day-state {
  padding: 32px;
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.day-state-time { font-size: 13px; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.day-state-cal { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.day-state-goal { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.day-state-ai { padding: 14px 16px; background: var(--green-soft-2); border-radius: 14px; font-size: 14px; color: var(--text); line-height: 1.45; }

@media (max-width: 900px) {
  .day-timeline { grid-template-columns: 1fr; gap: 32px; }
  .day-timeline-left { position: static; }
}

/* ---------- 14. Feature bento (section 11) ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.bento-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 220px;
  transition: border-color var(--dur-ui) var(--ease), transform var(--dur-ui) var(--ease);
}
.bento-item:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.bento-item h3 { font-size: 22px; letter-spacing: -0.02em; }
.bento-item .p { color: var(--text-secondary); font-size: 15px; line-height: 1.5; }
.bento-item-icon {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--green-soft);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--green);
  font-size: 22px;
}

.b-photo   { grid-column: span 7; background: linear-gradient(135deg, var(--surface) 0%, var(--green-soft-2) 100%); }
.b-ai      { grid-column: span 5; }
.b-water   { grid-column: span 4; }
.b-weight  { grid-column: span 4; }
.b-habits  { grid-column: span 4; }
.b-reports { grid-column: span 6; }
.b-voice   { grid-column: span 6; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento-item { grid-column: span 1 !important; padding: 24px; min-height: auto; }
}

/* ---------- 15. Free vs Premium (section 12) ---------- */
.free-premium {
  background: var(--surface);
  border-radius: 40px;
  padding: 72px 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
  text-align: center;
}
.free-premium .h2 { max-width: 720px; margin: 0 auto 20px; }
.free-premium .lead { margin: 0 auto 48px; }
.plans {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: 900px; margin-inline: auto;
  text-align: left;
}
.plan {
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 20px;
}
.plan-free { background: var(--green-soft-2); border-color: var(--border-strong); }
.plan-prem { background: var(--surface); }
.plan-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.plan-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--green); background: var(--surface); padding: 4px 10px; border-radius: var(--r-pill); margin-bottom: 4px; align-self: flex-start; }
.plan-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text); line-height: 1.4; }
.plan-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  margin-top: 1px;
}
@media (max-width: 900px) {
  .free-premium { padding: 48px 22px; border-radius: 28px; }
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 24px; }
}

/* ---------- 16. Reviews ---------- */
.reviews {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.review-lg, .review-sm {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 28px;
  padding: 40px;
  display: flex; flex-direction: column; gap: 20px;
}
.review-lg .q { font-size: 26px; line-height: 1.35; letter-spacing: -0.015em; font-weight: 600; }
.review-sm .q { font-size: 17px; line-height: 1.5; }
.review-meta { display: flex; align-items: center; gap: 12px; color: var(--text-secondary); font-size: 13px; }
.review-meta .stars { color: var(--green); letter-spacing: 2px; }
.reviews-col { display: flex; flex-direction: column; gap: 24px; }

@media (max-width: 900px) {
  .reviews { grid-template-columns: 1fr; }
  .review-lg, .review-sm { padding: 28px 24px; }
  .review-lg .q { font-size: 20px; }
}

/* ---------- 17. Final CTA ---------- */
.final-cta {
  background: var(--green);
  border-radius: 36px;
  padding: 88px 56px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.final-cta h2 { color: #fff; font-size: 48px; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 20px; }
.final-cta p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; max-width: 520px; }
.final-cta-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  background: #fff; color: var(--text);
  border-radius: 16px;
  font-weight: 700;
  min-width: 180px;
  transition: transform var(--dur-micro) var(--ease);
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge-icon { font-size: 24px; }
.store-badge-body .k { display: block; font-size: 11px; color: var(--text-secondary); letter-spacing: 0.02em; font-weight: 500; }
.store-badge-body .v { display: block; font-size: 15px; font-weight: 700; }
.qr {
  width: 200px; height: 200px;
  background: #fff;
  border-radius: 20px;
  padding: 16px;
  justify-self: center;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  font-size: 12px;
  text-align: center;
}
.qr img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 900px) {
  .final-cta { grid-template-columns: 1fr; padding: 48px 28px; text-align: center; }
  .final-cta h2 { font-size: 34px; }
  .final-cta p { margin-inline: auto; }
  .final-cta-buttons { justify-content: center; }
  .qr { display: none; }
}

/* ---------- 18. FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color var(--dur-ui) var(--ease);
}
.faq-item.open { border-color: var(--border-strong); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-align: left;
  gap: 12px;
}
.faq-q-chev { color: var(--text-tertiary); font-size: 20px; transition: transform var(--dur-ui) var(--ease); flex-shrink: 0; }
.faq-item.open .faq-q-chev { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-ui) var(--ease);
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-body { padding: 4px 24px 22px; }

/* ---------- 19. Section headings row ---------- */
.section-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; }
.section-head .lead { margin-inline: auto; }
@media (max-width: 700px) { .section-head { margin-bottom: 36px; } }

/* ---------- 20. Footer ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  padding: 64px 0 32px;
  color: var(--text-secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-col h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--text-secondary); transition: color var(--dur-micro) var(--ease); }
.footer-col a:hover { color: var(--text); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-tag { font-size: 14px; line-height: 1.5; color: var(--text-secondary); max-width: 280px; }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-tertiary);
}
.footer-disclaimer { max-width: 720px; font-size: 12px; color: var(--text-tertiary); line-height: 1.5; margin-top: 16px; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- 21. Mobile sticky store CTA ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  bottom: 12px;
  left: 12px; right: 12px;
  z-index: 40;
  height: 58px;
  background: var(--green);
  color: #fff;
  border-radius: 18px;
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(47, 122, 58, 0.35);
}
.mobile-cta .k { font-weight: 700; font-size: 15px; }
.mobile-cta .btn-inner { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.16); padding: 8px 14px; border-radius: 12px; font-weight: 700; font-size: 14px; }
@media (max-width: 900px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 82px; }
}
.mobile-cta.hide { transform: translateY(150%); transition: transform var(--dur-ui) var(--ease); }

/* ---------- 22. Language visibility (i18n.js writes html[lang]) ---------- */
html[lang="ru"] [data-lang="en"] { display: none !important; }
html[lang="en"] [data-lang="ru"] { display: none !important; }

/* ---------- 23. Legal pages ---------- */
.legal-body {
  max-width: 820px;
  margin: 40px auto 80px;
  padding: 0 var(--pad-x);
  background: var(--surface);
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}
.legal-body > div { padding: 48px 40px; }
.legal-body h1 { font-size: 40px; letter-spacing: -0.03em; margin-bottom: 8px; }
.legal-body p.updated { color: var(--text-tertiary); font-size: 14px; margin-bottom: 32px; }
.legal-body pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--green); font-weight: 600; font-size: 14px;
  margin: 24px 0 8px 40px;
}
.back-link:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .legal-body { margin: 20px auto 60px; border-radius: 18px; }
  .legal-body > div { padding: 32px 24px; }
  .legal-body h1 { font-size: 30px; }
  .back-link { margin-left: 24px; }
}

/* ---------- 24. Utilities ---------- */
.hide { display: none !important; }
.mobile-only { display: none; }
.desktop-only { display: initial; }
@media (max-width: 900px) {
  .mobile-only { display: initial; }
  .desktop-only { display: none; }
}

.center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
