:root {
  color-scheme: light;
  --ink: #161916;
  --muted: #4b5148;
  --paper: #faf9f5;
  --card: #f1efe5;
  --lime: #bde952;
  --line: #dadbd1;
  --wrap: min(1240px, calc(100% - 88px));
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2, .feature-card h3 { letter-spacing: -.025em; }
p { line-height: 1.55; }
[id] { scroll-margin-top: 20px; }
:focus-visible { outline: 3px solid #527913; outline-offset: 5px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.section { margin-block: 54px; }

.skip-link { position: absolute; top: 8px; left: 8px; padding: 12px; background: white; transform: translateY(-160%); z-index: 10; }
.skip-link:focus { transform: translateY(0); }
.site-header { position: relative; z-index: 2; background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; min-height: 78px; }
.home-page { --home-header-height: 78px; scroll-padding-top: var(--home-header-height); }
.home-header { position: sticky; top: 0; }
.home-header .header-inner { min-height: var(--home-header-height); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; font-size: 1.08rem; white-space: nowrap; letter-spacing: -.04em; }
.brand img { flex: none; object-fit: contain; }
.header-brand { justify-self: start; }
.brand-mark { position: relative; flex: none; width: 32px; aspect-ratio: 1; overflow: hidden; border-radius: 26%; }
.header-brand .brand-mark { width: 38px; }
.brand-mark img { position: absolute; inset: -11%; width: 122%; height: 122%; max-width: none; }
.brand-app { padding-inline-start: 10px; border-inline-start: 1px solid var(--line); color: var(--muted); font-size: .83em; font-weight: 700; letter-spacing: -.02em; }
.main-nav, .header-actions, .actions, .language { display: flex; align-items: center; }
.main-nav { gap: clamp(15px, 2.6vw, 39px); margin-inline-start: auto; }
.main-nav a { font-size: .85rem; font-weight: 650; white-space: nowrap; }
.main-nav a:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-actions { gap: 16px; }
.language { gap: 2px; border: 1px solid var(--line); border-radius: 24px; padding: 3px; }
.language a { padding: 6px 9px; border-radius: 20px; font-size: .73rem; font-weight: 800; }
.language a[aria-current] { background: #e4efcf; color: #2f4811; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.theme-toggle[hidden] { display: none; }
.theme-toggle span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; }
.theme-sun { font-size: 1.03rem; line-height: 1; }
.theme-moon::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: -3px 2px 0 0 currentColor;
  transform: translate(3.5px, -2px);
}
.theme-toggle[aria-checked="false"] .theme-sun { background: #e4efcf; color: #2f4811; }
.theme-toggle[aria-checked="true"] .theme-moon { background: #d2edaa; color: #172017; }
.theme-toggle:hover { border-color: #7e9d54; }
.mobile-settings { display: none; }
.settings-trigger {
  display: flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding-inline: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  list-style: none;
  cursor: pointer;
}
.settings-trigger::-webkit-details-marker { display: none; }
.mobile-settings[open] .settings-trigger { border-color: #7e9d54; }
.settings-panel {
  position: absolute;
  inset: calc(100% + 8px) 0 auto auto;
  z-index: 1;
  display: grid;
  gap: 12px;
  width: 220px;
  max-height: calc(100dvh - var(--home-header-height) - 12px);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface, var(--paper));
  box-shadow: 0 8px 24px #0002;
}
.mobile-settings:not([open]) .settings-panel { display: none; }
.settings-nav { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.settings-nav a { display: flex; align-items: center; min-height: 40px; padding-inline: 8px; border-radius: 8px; font-size: .85rem; font-weight: 650; }
.settings-nav a:hover { background: var(--line); }
.settings-panel :focus-visible { outline-offset: -3px; }
.settings-group p { margin-bottom: 5px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.settings-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.settings-options > * {
  padding: 8px 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  text-align: center;
  font-size: .82rem;
  font-weight: 650;
  cursor: pointer;
}
.settings-options > :is([aria-current], [aria-pressed="true"]) {
  border-color: #94aa70;
  background: #d2edaa;
  color: #172017;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 12px 20px;
  font-size: .91rem;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-lime { color: #151b0d; background: linear-gradient(145deg,#d0f774,#a7d94a); box-shadow: 0 5px 16px #38561526; }
.header-download { min-height: 41px; border-radius: 24px; padding-inline: 16px; white-space: nowrap; font-size: .79rem; }

.hero {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 77% 87%, #d9ec9c 0%, #e8f1cd 28%, transparent 61%),
    radial-gradient(ellipse at 88% 15%, #f0eee3, transparent 54%),
    var(--paper);
}
.hero-grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; min-height: 580px; }
.hero-copy { position: relative; z-index: 1; padding-block: 32px 72px; }
.hero-label {
  display: inline-block;
  margin-bottom: 17px;
  padding: 6px 13px;
  border-radius: 28px;
  background: #e8f2cf;
  color: #243318;
  font-size: .79rem;
  font-weight: 750;
}
.hero h1 { font-size: clamp(3.15rem, 5.4vw, 5.1rem); line-height: .99; font-weight: 900; text-wrap: initial; }
.hero:lang(ru) h1 { font-size: clamp(2.85rem, 4.75vw, 4.4rem); }
.hero h1 span { display: block; }
.underline { position: relative; width: fit-content; white-space: nowrap; }
.underline::after {
  position: absolute;
  content: "";
  left: 8%;
  right: 2%;
  bottom: -.18em;
  height: .22em;
  border-top: .069em solid #a9d645;
  border-radius: 50%;
  clip-path: inset(0 0 35% 0);
  transform: rotate(-2deg);
}
.hero-description { max-width: 415px; margin-top: 28px; color: #383d35; font-size: clamp(1.08rem, 1.8vw, 1.37rem); font-weight: 500; }
.actions { flex-wrap: wrap; gap: 10px; }
.hero .actions { margin-top: 25px; }
.store-badge {
  justify-content: flex-start;
  gap: 10px;
  min-height: 54px;
  padding: 8px 14px;
  border-color: #414641;
  border-radius: 16px;
  background: #191c19;
  color: #fff;
  box-shadow: 0 5px 14px #2223;
}
.store-badge[aria-disabled="true"] { opacity: .76; }
.store-badge[aria-disabled="true"]:hover { transform: none; }
.store-logo { width: 28px; height: 29px; flex: 0 0 28px; object-fit: contain; }
.store-badge-copy { display: grid; gap: 2px; text-align: start; white-space: nowrap; }
.store-badge-copy span { font-size: .66rem; font-weight: 500; line-height: 1.1; }
.store-badge-copy strong { font-size: 1.16rem; font-weight: 650; line-height: 1.05; letter-spacing: -.035em; }
.hero-stage { position: relative; min-width: 0; height: 580px; isolation: isolate; }
.hero-stage::before {
  content: "";
  position: absolute;
  width: 88%;
  height: 64%;
  right: -14%;
  bottom: -9%;
  border-radius: 50%;
  background: var(--hero-glow, #b0d5488c);
  filter: blur(55px);
  z-index: -1;
}
.phone {
  position: relative;
  width: var(--phone-width, 224px);
  max-width: 100%;
  container-type: inline-size;
  padding: 5px;
  border: 2px solid #646862;
  border-color: #9a9e96 #484c47 #343834 #777b75;
  border-radius: 18% / 8.1%;
  background: #0b0c0c;
  box-shadow: inset 0 0 0 1px #ffffff38, 0 20px 40px #20261545, 0 2px 7px #20261545;
}
.phone::before {
  content: "";
  position: absolute;
  inset: 17% -4px 43%;
  background:
    linear-gradient(#999c95,#454943) left top / 3px 10% no-repeat,
    linear-gradient(#999c95,#454943) left 0 top 21% / 3px 16% no-repeat,
    linear-gradient(#999c95,#454943) left 0 top 44% / 3px 16% no-repeat,
    linear-gradient(#777c75,#414541) right 0 top 32% / 3px 24% no-repeat;
  pointer-events: none;
}
.phone-screen { position: relative; overflow: hidden; border-radius: 15.8% / 7.04%; }
.phone-screen img { width: 100%; height: auto; }
.phone-screen::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset-block-start: 0.84%;
  inset-inline-start: 50%;
  width: 24%;
  height: 2.85%;
  border-radius: 999px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 82% 50%, #22293a 0, #121621 6%, transparent 9%), #050607;
  box-shadow: 0 0 0 1px #ffffff20;
  pointer-events: none;
}
.phone-status {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.2%;
  padding-inline: 11%;
  color: #111216;
  background: #f3f4f3;
  font: 750 clamp(6px, 5.6cqw, 13px) / 1 -apple-system, BlinkMacSystemFont, Inter, sans-serif;
  pointer-events: none;
}
.phone-screen:has([data-dark-screen]) .phone-status { color: #fff; background: #181920; }
.status-definitions { position: absolute; }
.status-symbols { display: block; flex: none; width: 3.9em; height: 1em; }
.hero-stage .phone { position: absolute; }
.hero-back { --phone-width: clamp(150px, 17vw, 230px); top: 90px; left: 10%; transform: rotate(-11deg); }
.hero-front { --phone-width: clamp(175px, 19.6vw, 248px); top: 12px; left: 34%; transform: rotate(4.4deg); }
.leaf {
  position: absolute;
  width: calc(var(--leaf-size, 78px) * var(--leaf-scale, 1));
  aspect-ratio: 2.25;
  border-radius: 95% 0 95% 4% / 100% 0 100% 4%;
  transform: rotate(var(--leaf-angle, -14deg));
  background:
    radial-gradient(ellipse at 67% 22%, #d9f5a34f, transparent 64%),
    linear-gradient(147deg, var(--leaf-upper, #aed875), var(--leaf-middle, #7cae48) 56%, var(--leaf-shade, #52802c));
  box-shadow: inset 0 1px 1px #e1f8bc40, inset 0 -5px 9px #24491b30, 0 5px 10px #203a1a26;
  pointer-events: none;
}
.leaf::after {
  content: "";
  position: absolute;
  top: 28%;
  left: 11%;
  width: 77%;
  height: 30%;
  border-bottom: 1px solid var(--leaf-vein, #edfac670);
  border-radius: 50%;
  transform: rotate(-15deg);
}
.leaf-one { --leaf-size: 79px; --leaf-angle: 151deg; top: 22%; left: 0; }
.leaf-two { --leaf-size: 76px; --leaf-angle: -53deg; top: 11%; left: 6%; }
.leaf-three { --leaf-size: 126px; --leaf-angle: -16deg; right: 7%; bottom: 5%; }
.leaf-four { --leaf-size: 72px; --leaf-angle: -51deg; right: 0; bottom: 12%; }
.leaf-five { --leaf-size: 55px; --leaf-angle: 30deg; right: 11%; top: 9%; }
.leaf-six { --leaf-size: 56px; --leaf-angle: -16deg; left: 3%; bottom: 10%; }
.floating {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 36%;
  padding: 12px 14px;
  border-radius: 17px;
  background: #fcfcf2ed;
  border: 1px solid #fff;
  box-shadow: 0 9px 22px #3a4a2121;
}
.floating strong { display: block; font-size: .83rem; letter-spacing: -.025em; line-height: 1.25; }
.floating small { display: block; margin-top: 4px; color: #47523d; font-size: .73rem; line-height: 1.25; }
.float-camera { top: 109px; right: 1%; transform: rotate(-9deg); }
.float-progress {
  top: 198px;
  right: -1%;
  transform: translate(clamp(5px, .8vw, 12px), clamp(-10px, -.7vw, -5px)) rotate(-5deg);
}
.float-water { top: 288px; right: 1%; transform: rotate(3deg); }
.tile-icon { display: grid; flex: 0 0 33px; width: 33px; height: 33px; place-items: center; border-radius: 9px; background: #dfefb1; color: #406414; font-size: 1.55rem; font-weight: 800; }
.floating .tile-icon img { width: 84%; height: 84%; object-fit: contain; }
.float-camera .tile-icon { background: #eee5fb; }
.water-icon { color: #176485; background: #def1fa; }

h2 { font-size: clamp(2rem, 4.25vw, 3.75rem); line-height: 1.04; font-weight: 880; }
.section-intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: end; margin-bottom: 24px; }
.section-intro p { max-width: 415px; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.feature-card {
  position: relative;
  display: block;
  min-height: 258px;
  padding: 21px;
  padding-bottom: 114px;
  border-radius: 22px;
  background: linear-gradient(155deg,#f3f0e7,#f1efe5);
  isolation: isolate;
}
a.feature-card { transition: box-shadow .2s ease, transform .2s ease; }
a.feature-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px #4a552917; }
.feature-card h3 { margin-block: 10px 7px; font-size: clamp(1.15rem, 2vw, 1.58rem); line-height: 1.1; text-wrap: initial; }
.feature-card p { max-width: 250px; color: #383e34; font-size: .9rem; line-height: 1.4; }
.feature-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; background: #ccf572; }
.feature-icon img { width: 80%; height: 80%; object-fit: contain; }
.camera-art, .diary-art, .dumbbell-art {
  position: absolute;
  right: -3px;
  bottom: -8px;
  z-index: -1;
  transform: rotate(var(--art-tilt)) scale(1.13);
  pointer-events: none;
}
.camera-art, .diary-art { background: linear-gradient(135deg,#e3f3b1,#b5d65b); border: 5px solid #85a83b; box-shadow: 0 8px 20px #5e771629; }
.camera-art { --art-tilt: -9deg; width: 112px; height: 74px; border-radius: 18px; }
.camera-art::before { content: ""; position: absolute; left: 19px; top: -15px; width: 30px; height: 14px; border-radius: 5px 5px 0 0; background: #85a83b; }
.camera-art i { position: absolute; width: 42px; height: 42px; border: 5px solid #698725; border-radius: 50%; left: 30px; top: 11px; }
.diary-art { --art-tilt: -10deg; width: 86px; height: 86px; border-radius: 12px 15px 15px 12px; border-inline-start-width: 12px; }
.diary-art::before { content: ""; position: absolute; top: 13px; left: -17px; width: 19px; height: 6px; border-radius: 6px; background: #648629; box-shadow: 0 20px #648629, 0 40px #648629; }
.diary-art i { position: absolute; top: 24px; left: 16px; width: 37px; height: 4px; border-radius: 3px; background: #648629; box-shadow: 0 10px #648629, 0 20px #648629; }
.dumbbell-art { --art-tilt: -13deg; width: 131px; height: 64px; filter: drop-shadow(0 7px 8px #5e771633); }
.dumbbell-art::before, .dumbbell-art::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  width: 28px;
  height: 64px;
  border: 4px solid #83a83b;
  border-radius: 10px;
  background: linear-gradient(#d6eb9b,#a3c64f);
}
.dumbbell-art::before { left: 11px; }
.dumbbell-art::after { right: 11px; }
.dumbbell-art i { position: absolute; top: 25px; inset-inline: 0; height: 14px; border-radius: 6px; background: linear-gradient(#9dbb54,#6d8c2c); }

.ai-panel {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.62fr);
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  padding-inline: clamp(24px, 4vw, 48px);
  overflow: hidden;
  border-radius: 28px;
  background: radial-gradient(ellipse at 68% 114%, #536329, transparent 67%), linear-gradient(135deg, #2b2d2b, #191d17);
  color: white;
}
.ai-copy { position: relative; z-index: 1; padding-block: 36px; }
.ai-label { display: inline-block; margin-bottom: 15px; padding: 5px 13px; border: 1px solid #7b9a3c; border-radius: 24px; background: #44562c; color: #f2f9df; font-size: .76rem; font-weight: 700; }
.ai-copy h2 { font-size: clamp(2rem, 3.55vw, 3.3rem); text-wrap: initial; }
.ai-copy > p:not(.ai-label) { max-width: 415px; margin-top: 14px; color: #f2f4e9; }
.ai-copy .button { margin-top: 20px; border-radius: 999px; }
.ai-demo {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) clamp(20px, 3vw, 34px) minmax(205px, .95fr);
  align-items: center;
  align-self: stretch;
  gap: 8px;
}
.ai-visual {
  position: relative;
  align-self: stretch;
  min-width: 0;
  min-height: clamp(350px, 38vw, 440px);
}
.ai-visual img {
  --photo-overhang: 15%;
  --photo-mask: linear-gradient(#000 calc(97% - var(--photo-overhang)), transparent calc(100% - var(--photo-overhang)));
  position: absolute;
  bottom: 0;
  left: 50%;
  width: auto;
  height: auto;
  max-width: calc(116% + 16px);
  max-height: 117%;
  -webkit-mask-image: var(--photo-mask);
  mask-image: var(--photo-mask);
  transform: translate(-50%, var(--photo-overhang));
}
.ai-demo-arrow { width: 100%; height: auto; color: #cff478; }
.ai-result {
  --result-track: #e8eaee;
  position: relative;
  display: grid;
  gap: 13px;
  padding: clamp(12px, 1.7vw, 20px);
  border: 1px solid #ffffffc7;
  border-radius: 22px;
  background: #fafbf1;
  color: #191d16;
  box-shadow: 0 14px 32px #0b130850;
}
.ai-result h3 { display: flex; align-items: center; gap: 5px; font-size: 1rem; line-height: 1.15; }
.ai-result h3 img { flex: none; }
.ai-meal { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: start; gap: 10px; }
.ai-meal-thumbnail { position: relative; width: 52px; aspect-ratio: 1; overflow: hidden; border-radius: 9px; background: #393a2c; }
.ai-meal-thumbnail img {
  position: absolute;
  top: -70%;
  left: -90%;
  width: 240%;
  height: auto;
  max-width: none;
}
.ai-meal p { font-size: .77rem; font-weight: 650; line-height: 1.25; }
.ai-meal .ai-calories { margin-top: 5px; font-size: .8rem; font-weight: 700; }
.ai-calories strong { font-size: 1.32rem; letter-spacing: -.04em; }
.ai-macros { display: grid; gap: 7px; margin: 0; }
.ai-macro { display: grid; grid-template-columns: minmax(88px, .95fr) minmax(0, 1fr); align-items: center; gap: 8px; font-size: .73rem; }
.ai-macro dt, .ai-macro dd { display: flex; align-items: center; gap: 6px; margin: 0; }
.ai-macro dt { font-weight: 650; }
.ai-macro dt img { flex: none; border-radius: 6px; }
.ai-macro dd strong { min-width: 3em; text-align: end; white-space: nowrap; }
.ai-macro-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--result-track); }
.ai-macro-bar::before { content: ""; display: block; width: var(--portion); height: 100%; border-radius: inherit; background: var(--macro-color); }
.ai-protein { --macro-color: #ff5c61; --portion: 62%; }
.ai-fat { --macro-color: #77d500; --portion: 18%; }
.ai-carbs { --macro-color: #ffa700; --portion: 100%; }

.progress-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; }
.progress-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1.12;
  container-type: inline-size;
  overflow: hidden;
  border-radius: 25px;
  background: radial-gradient(ellipse at 30% 91%, #dbeea5, transparent 70%), #f3f1e8;
}
.progress-visual .phone { position: absolute; --phone-width: 51cqw; transform-origin: 50% 40%; }
.progress-back { left: 4%; top: 6%; transform: rotate(-5deg); }
.progress-front { left: 47%; top: 3%; transform: rotate(2deg); }
.progress-copy p, .app-copy > p { margin-top: 14px; max-width: 505px; color: var(--muted); }
.progress-details { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 22px; }
.progress-details div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 12px; border-radius: 15px; background: #eff3e3; }
.progress-icon { width: 34px; height: 34px; }
.progress-details strong { font-size: .82rem; overflow-wrap: anywhere; }

.app-panel {
  display: grid;
  grid-template-columns: 1fr .86fr;
  align-items: center;
  gap: 32px;
  padding: 33px 48px;
  border: 1px solid #e4e8d8;
  border-radius: 27px;
  background: radial-gradient(ellipse at 82% 61%, #e0edbb, transparent 58%), #f1f3e7;
}
.gallery-options { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.gallery-options button {
  cursor: pointer;
  padding: 9px 13px;
  border: 1px solid #cdd5bd;
  border-radius: 22px;
  background: #fcfcf7;
  color: var(--ink);
  font-size: .85rem;
  font-weight: 650;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.gallery-options button:hover { border-color: #688c38; }
.gallery-options button[aria-pressed="true"] { background: #d6ee9e; border-color: #89a84f; }
.gallery-visual {
  --phone-width: 195px;
  display: grid;
  grid-template-columns: 44px minmax(0, var(--phone-width)) 44px;
  justify-content: center;
  justify-items: center;
  align-items: center;
  gap: 10px 6px;
}
.gallery-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}
.gallery-arrow:is(:hover, :active) { border-color: #89a84f; }
.gallery-previous { position: absolute; inset: 0; pointer-events: none; }
.gallery-visual figcaption { grid-column: 1 / -1; color: #3d4f2c; text-align: center; font-size: .85rem; font-weight: 700; }
.gallery-dots { display: flex; grid-column: 1 / -1; }
.gallery-dots button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.gallery-dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 99px;
}
.gallery-dots button[aria-pressed="true"]::before { width: 18px; background: currentColor; }
.gallery-dots button:is(:hover, [aria-pressed="true"]) { color: var(--accent, #466b26); }

.download-panel { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 28px 30px; border-radius: 24px; background: #ebf3d4; }
.download-logo { object-fit: contain; }
.download-copy h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.download-copy p { margin-top: 6px; color: #404934; font-size: .92rem; }
.site-footer { border-top: 1px solid #e2e3d9; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 112px; padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); }
.footer-inner p { margin: 5px 0 0; font-size: .75rem; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: .83rem; font-weight: 650; }

@media (max-width: 1120px) {
  :root { --wrap: calc(100% - 60px); }
  .header-inner { gap: 15px; }
  .header-actions { gap: 8px; }
  .main-nav { gap: 15px; }
  .hero-stage, .hero-grid { min-height: 0; height: 510px; }
  .hero-back { top: 72px; left: 4%; }
  .hero-front { top: 16px; left: 30%; }
  .float-camera { top: 78px; }
  .float-progress { top: 160px; }
  .float-water { top: 248px; }
}

@media (max-width: 1060px) {
  .header-download { display: none; }
}

@media (max-width: 740px) {
  .home-page { --home-header-height: 62px; }
  .home-header .header-inner { gap: 8px; padding-block: 12px 10px; }
  .mobile-settings { display: block; position: relative; flex: none; }
  .home-header :is(.main-nav, .header-actions) { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 15px; }
  .footer-links { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 880px) {
  :root { --wrap: calc(100% - 44px); }
  .hero-stage, .hero-grid { height: 455px; }
  .hero-copy { padding-bottom: 35px; }
  .hero h1 { font-size: clamp(2.85rem, 6.5vw, 3.8rem); }
  .hero:lang(ru) h1 { font-size: clamp(2.5rem, 5.7vw, 3.5rem); }
  .hero-back { top: 78px; }
  .hero-front { top: 34px; left: 26%; }
  .floating { max-width: 37%; padding: 8px; gap: 6px; }
  .floating strong, .floating small { font-size: .7rem; }
  .tile-icon { width: 25px; height: 25px; flex-basis: 25px; font-size: 1.15rem; }
  .section { margin-block: 41px; }
  .feature-card { min-height: 235px; }
  .ai-panel { grid-template-columns: minmax(0, 1fr); }
  .ai-copy { padding-block: 26px 0; }
  .ai-demo { width: min(100%, 680px); margin-inline: auto; }
  .app-panel { padding-inline: 28px; }
  .download-panel { gap: 14px; padding-inline: 20px; }
}

@media (max-width: 660px) {
  :root { --wrap: calc(100% - 36px); }
  .brand { font-size: 1rem; }
  .header-brand .brand-mark { width: 32px; }
  .hero-grid { grid-template-columns: 1fr; height: auto; }
  .hero-copy { padding-block: 30px 17px; }
  .hero-label { margin-bottom: 12px; }
  .hero h1 { font-size: clamp(2.8rem, 10.7vw, 4.35rem); }
  .hero:lang(ru) h1 { font-size: clamp(2.45rem, 10.3vw, 3.95rem); }
  .hero-description { margin-top: 22px; font-size: 1.02rem; }
  .hero .actions { margin-top: 17px; }
  .button { min-height: 44px; padding: 10px 13px; font-size: .81rem; }
  .actions .store-badge { gap: 8px; min-height: 50px; padding: 7px 11px; }
  .hero-stage { --leaf-scale: .65; height: clamp(350px, 91vw, 450px); max-width: 470px; width: 100%; margin-inline: auto; }
  .hero-back { --phone-width: clamp(117px, 34vw, 174px); top: 53px; left: 6%; }
  .hero-front { --phone-width: clamp(137px, 40vw, 198px); top: 14px; left: 28%; }
  .leaf-one { top: 19%; }
  .leaf-two { top: 9%; left: 5%; }
  .leaf-three { bottom: 8%; }
  .leaf-four { bottom: 16%; }
  .leaf-six { left: 0; bottom: 13%; }
  .floating { max-width: 35%; border-radius: 12px; padding: 7px; }
  .floating strong, .floating small { font-size: .62rem; }
  .float-camera { top: 65px; right: 0; }
  .float-progress { top: 128px; right: -1%; }
  .float-water { top: 193px; right: 0; }
  .section { margin-block: 33px; }
  .section-intro { grid-template-columns: 1fr; gap: 10px; margin-bottom: 15px; }
  .section-intro p, .ai-copy > p, .progress-copy p, .app-copy > p { font-size: .92rem; }
  .feature-grid { grid-template-columns: 1fr; gap: 23px; }
  .feature-card { padding: 14px 120px 16px 14px; min-height: 133px; border-radius: 16px; }
  .feature-card h3 { font-size: 1.12rem; overflow-wrap: anywhere; }
  .feature-card p { font-size: .77rem; }
  .feature-icon { width: 33px; height: 33px; border-radius: 10px; }
  .camera-art, .diary-art, .dumbbell-art { right: -4px; bottom: -7px; transform: rotate(var(--art-tilt)) scale(.84); }
  .ai-panel { border-radius: 21px; }
  .ai-visual { min-height: 320px; }
  .progress-section { grid-template-columns: 1fr; gap: 17px; }
  .progress-copy { grid-row: 1; }
  .progress-details { margin-top: 15px; gap: 6px; }
  .progress-details div { padding: 10px; }
  .progress-icon { width: 30px; height: 30px; }
  .progress-details strong { font-size: .75rem; }
  .app-panel { grid-template-columns: 1fr; gap: 20px; padding: 20px; border-radius: 21px; }
  .gallery-options { margin-top: 15px; gap: 6px; }
  .gallery-options button { font-size: .76rem; padding: 8px 10px; }
  .gallery-visual { --phone-width: 172px; }
  .download-panel { grid-template-columns: auto 1fr; padding: 18px; border-radius: 20px; }
  .download-panel .actions { grid-column: 1 / -1; }
  .download-logo { width: 43px; height: 43px; }
}

@media (max-width: 520px) {
  .ai-panel { padding: 0 18px 20px; }
  .ai-demo { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .ai-visual { min-height: clamp(275px, 72vw, 370px); overflow: hidden; }
  .ai-visual img { max-width: 100%; }
  .ai-demo-arrow { justify-self: center; width: 27px; transform: rotate(90deg); }
  .ai-result { justify-self: center; width: min(100%, 330px); }
}

@media (max-width: 355px) {
  :root { --wrap: calc(100% - 28px); }
  .header-inner { column-gap: 8px; }
  .brand { gap: 8px; }
  .home-header .header-brand { font-size: .9rem; }
  .home-header .brand-mark { width: 28px; }
  .home-header .brand-app { padding-inline-start: 8px; }
  .floating .tile-icon { display: none; }
  .hero h1 { font-size: 2.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
