/* ───────────────────────── Tokens ───────────────────────── */
:root {
  --bg: #f7f2e8;
  --bg-tint: #f0e8d8;
  --surface: #fffdf8;
  --ink: #131a2b;
  --ink-2: #464d61;
  --muted: #747a89;
  --navy: #1f2a44;
  --navy-2: #2d3b5e;
  --gold: #b88a3e;
  --gold-2: #d4b06a;
  --gold-3: #ecd9ae;
  --line: rgba(19, 26, 43, 0.1);
  --line-2: rgba(19, 26, 43, 0.16);
  --ok: #2f7a55;

  --serif: "Noto Serif Display", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 28px;
  --radius-sm: 16px;
  --shadow-sm: 0 1px 2px rgba(19, 26, 43, 0.05), 0 2px 8px rgba(19, 26, 43, 0.04);
  --shadow: 0 2px 4px rgba(19, 26, 43, 0.04), 0 12px 32px -8px rgba(19, 26, 43, 0.12);
  --shadow-lg: 0 4px 10px rgba(19, 26, 43, 0.05), 0 30px 60px -20px rgba(19, 26, 43, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--gold-3); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 48px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font: 600 12.5px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: 0.7; }

.display, .h2, .h3, .calc__summary strong {
  font-family: var(--serif);
  font-stretch: 72%;
  font-weight: 400;
  letter-spacing: -0.012em;
}
.display {
  margin: 0 0 24px;
  font-size: clamp(54px, 8.6vw, 112px);
  line-height: 0.95;
}
.display em, .h2 em {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold) 10%, #9a6f2c 55%, var(--gold-2) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: 0.06em;
}
.h2 {
  margin: 0 0 18px;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1;
}
html[lang="ru"] .display { font-size: clamp(50px, 7vw, 92px); }
.h3 { margin: 0 0 10px; font-size: 30px; line-height: 1.1; }
.lead { margin: 0; font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.6; color: var(--ink-2); max-width: 40em; }

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 15.5px/1.2 var(--sans); text-decoration: none; text-align: center;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.2s, box-shadow 0.25s var(--ease), border-color 0.2s;
}
.btn svg { width: 18px; height: 18px; }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14.5px; }
.btn--lg { --h: 56px; padding: 0 26px; font-size: 16.5px; }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px -6px rgba(31, 42, 68, 0.55); }
.btn--primary:hover { background: var(--navy-2); transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(31, 42, 68, 0.6); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn--gold { background: linear-gradient(180deg, #d9b56f, #b88a3e); color: #1b1407; box-shadow: 0 8px 20px -8px rgba(184, 138, 62, 0.8); }
.btn--gold:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn[aria-disabled="true"] {
  background: repeating-linear-gradient(-45deg, rgba(19,26,43,0.04) 0 8px, transparent 8px 16px), var(--bg);
  color: var(--muted); border: 1.5px dashed var(--line-2); box-shadow: none; cursor: not-allowed; transform: none;
}

/* ───────────────────────── Nav ───────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  height: 100%; width: min(1240px, 100% - 40px); margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.nav__links { display: flex; gap: 4px; margin-left: 8px; }
.nav__links a {
  padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 14.5px; color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}
.nav__links a:hover { background: rgba(19, 26, 43, 0.06); color: var(--ink); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.lang {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
}
.lang__btn {
  min-width: 40px; height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: transparent;
  font-size: 13px; font-weight: 650; letter-spacing: 0.04em; color: var(--muted); cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.lang__btn[aria-pressed="true"] { background: var(--navy); color: #fff; }
.lang__btn:not([aria-pressed="true"]):hover { color: var(--ink); }

/* ───────────────────────── Hero ───────────────────────── */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(212, 176, 106, 0.32), rgba(212, 176, 106, 0) 70%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy .lead { margin-bottom: 34px; }
.hero__copy .lead strong { color: var(--ink); font-weight: 650; }
.hero__badge { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 17.5px; line-height: 1.4; color: var(--ink); font-weight: 500; }
.hero__badge svg { width: 34px; height: 34px; padding: 7px; flex: none; border-radius: 50%; background: rgba(212, 176, 106, 0.22); color: #8a6424; }
.hero__badge strong { font-weight: 700; white-space: nowrap; background: linear-gradient(transparent 60%, rgba(212, 176, 106, 0.42) 60%); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust {
  display: flex; align-items: center; gap: 8px; margin: 26px 0 0;
  font-size: 14px; color: var(--muted);
}
.hero__trust svg { width: 18px; height: 18px; flex: none; color: var(--gold); }

.hero__art { position: relative; aspect-ratio: 1 / 1.06; max-width: 560px; justify-self: center; width: 100%; }
.polaroid {
  position: absolute; width: 53%; margin: 0;
  background: var(--surface); padding: 10px 10px 0; border-radius: 26px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.8s var(--ease);
}
.polaroid__img { aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--bg-tint); }
.polaroid__img img, .polaroid__img .ph { width: 100%; height: 100%; object-fit: cover; }
.polaroid__cap { display: flex; align-items: baseline; gap: 10px; padding: 12px 8px 14px; white-space: nowrap; }
.polaroid__name { font-family: var(--serif); font-stretch: 72%; font-size: 30px; line-height: 1; }
.polaroid__date { font-size: 13px; color: var(--muted); }
.polaroid--a { left: 1%; top: 6%; transform: rotate(-5deg); z-index: 1; }
.polaroid--b { right: 1%; top: 21%; transform: rotate(4deg); z-index: 2; }
.hero__art:hover .polaroid--a { transform: rotate(-7deg) translateX(-8px); }
.hero__art:hover .polaroid--b { transform: rotate(6deg) translateX(8px); }

.growth-chip {
  position: absolute; z-index: 3; right: -4%; top: 0;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px 14px 14px; border-radius: 20px;
  background: rgba(255, 253, 248, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.growth-chip__spark { width: 64px; height: 40px; flex: none; }
.growth-chip__today { font-size: 13px; color: var(--muted); }
.growth-chip__later { font-weight: 650; font-size: 16.5px; line-height: 1.25; }
.growth-chip__note { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ───────────────────────── Sections ───────────────────────── */
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section--tint { background: var(--bg-tint); }
.section--tint::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--line);
}
.section__head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }

/* About */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 30px; box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature h3 { margin: 22px 0 10px; font-size: 18.5px; line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.feature__icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(145deg, #f6e9cb, #e2c58a); box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 4px 10px -4px rgba(184,138,62,0.6);
}
.feature__icon svg { width: 26px; height: 26px; fill: none; stroke: #5b4214; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.callout {
  margin-top: 22px; display: flex; gap: 18px; align-items: center;
  padding: 22px 26px; border-radius: var(--radius);
  background: var(--navy); color: #e9ecf3;
}
.callout p { margin: 0; font-size: 16px; line-height: 1.6; }
.callout strong { color: #fff; }
.callout__badge svg { width: 44px; height: 44px; }
.sources { margin: 18px 4px 0; font-size: 14px; color: var(--muted); display: flex; gap: 6px 18px; flex-wrap: wrap; }
.sources a { color: var(--ink-2); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.sources a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ───────────────────────── Calculator ───────────────────────── */
.calc {
  display: grid; grid-template-columns: minmax(300px, 380px) 1fr;
  background: var(--surface); border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--shadow);
  overflow: hidden;
}
.calc__controls { padding: 34px 32px; border-right: 1px solid var(--line); display: grid; gap: 30px; align-content: start; }
.calc__results { padding: 34px 36px 30px; min-width: 0; }

.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field__label { display: block; font-size: 13px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; padding: 0; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; }
.field__value { font-family: var(--serif); font-stretch: 72%; font-size: 34px; line-height: 1; }
.field__hint { display: block; margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.money-input {
  display: flex; align-items: center; gap: 4px;
  height: 68px; padding: 0 20px; border-radius: 18px;
  border: 1.5px solid var(--line-2); background: var(--bg);
  font-family: var(--serif); font-stretch: 72%; font-size: 40px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.money-input:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(31, 42, 68, 0.1); }
.money-input span { color: var(--muted); }
.money-input input {
  width: 100%; border: 0; outline: 0; background: transparent;
  font: inherit; font-stretch: 72%; -moz-appearance: textfield; appearance: textfield;
}
.money-input input::-webkit-outer-spin-button, .money-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.chips { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chip {
  height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.segmented {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2);
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  position: relative; z-index: 1; text-align: center; padding: 11px 8px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; transition: color 0.25s;
}
.segmented input:checked + label { color: #fff; }
.segmented input:focus-visible + label { outline: 2.5px solid var(--gold); outline-offset: 2px; }
.segmented__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--navy); box-shadow: 0 4px 12px -4px rgba(31, 42, 68, 0.6);
  transition: transform 0.4s var(--ease);
}
#freq-yearly:checked ~ .segmented__thumb { transform: translateX(100%); }

.range {
  --p: 70%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 14px 0 0; background: transparent; cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold) var(--p), rgba(19, 26, 43, 0.12) var(--p));
}
.range::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(19, 26, 43, 0.12); }
.range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--gold); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-2); box-shadow: 0 2px 8px rgba(19, 26, 43, 0.25);
  transition: transform 0.2s var(--ease);
}
.range:active::-webkit-slider-thumb { transform: scale(1.12); }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 2px 8px rgba(19, 26, 43, 0.25); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { outline: 2.5px solid var(--gold); outline-offset: 2px; }
.range__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }

.switch { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch__track {
  position: relative; flex: none; width: 46px; height: 28px; border-radius: 999px; background: rgba(19, 26, 43, 0.16);
  transition: background-color 0.25s; margin-top: 1px;
}
.switch__dot {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(19, 26, 43, 0.3); transition: transform 0.3s var(--ease);
}
.switch input:checked + .switch__track { background: var(--navy); }
.switch input:checked + .switch__track .switch__dot { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 2.5px solid var(--gold); outline-offset: 2px; }
.switch__label { display: block; font-weight: 600; font-size: 15.5px; }
.switch .field__hint { margin-top: 2px; }

.calc__summary { margin: 0 0 22px; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 40em; min-height: 3.1em; }
.calc__summary strong { font-size: 1.5em; color: var(--ink); line-height: 1; white-space: nowrap; }

.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--line); stroke-dasharray: 2 4; }
.chart .grid text, .chart .axis text { font: 500 12px var(--sans); fill: var(--muted); }
.chart .group-label { font: 400 26px var(--serif); font-stretch: 72%; fill: var(--ink); }
.chart .bar-value { font: 650 13px var(--sans); fill: var(--ink); }
.chart .bar { transform-box: fill-box; transform-origin: bottom; transition: transform 0.9s var(--ease); }
.chart.is-hidden .bar { transform: scaleY(0); }
.chart .bar-value { transition: opacity 0.5s 0.4s; }
.chart.is-hidden .bar-value { opacity: 0; }
.chart__legend { display: flex; gap: 20px; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.chart__legend > span { display: inline-flex; align-items: center; gap: 8px; }
.sw { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.sw--given { background: #c9cdd8; }
.sw--value { background: linear-gradient(180deg, var(--gold-2), var(--gold)); }

.kid-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.kid-stats--single { grid-template-columns: minmax(0, 420px); }
.kid-stat {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center;
  padding: 14px 16px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line);
}
.kid-stat__avatar { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--bg-tint); }
.kid-stat__avatar img { width: 100%; height: 100%; object-fit: cover; }
.kid-stat__name { font-weight: 650; }
.kid-stat__meta { font-size: 13px; color: var(--muted); }

.disclaimer {
  margin: 22px auto 0; padding: 18px 22px; border-radius: 18px;
  font-size: 13.5px; line-height: 1.6; color: var(--ink-2);
  background: rgba(255, 253, 248, 0.6); border: 1px dashed var(--line-2);
}

/* ───────────────────────── Kids ───────────────────────── */
.kids { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.kid {
  display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 32px; box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.kid:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.kid__photo { position: relative; aspect-ratio: 1 / 1; background: var(--bg-tint); overflow: hidden; }
.kid__photo picture { display: contents; }
.kid__photo img, .kid__photo .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.kid:hover .kid__photo img { transform: scale(1.035); }
.kid__photo::after {
  content: ""; position: absolute; inset: 45% 0 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0), rgba(10, 14, 26, 0.68));
}
.kid__overlay {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 0 28px 24px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; color: #fff;
}
.kid__name { margin: 0; font-family: var(--serif); font-stretch: 72%; font-weight: 400; font-size: clamp(56px, 6vw, 80px); line-height: 0.9; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25); }
.kid__bday { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.kid__bday-label { font-size: 11.5px; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.kid__bday-date { font-size: 20px; font-weight: 600; line-height: 1.1; }
.kid__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.kid__countdown {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; background: #f6ecd6; color: #6d4f1b; font-size: 13px; font-weight: 600;
}
.kid__countdown::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(184, 138, 62, 0.2); }
.kid__actions { margin-top: auto; display: grid; gap: 14px; }
.kid__actions .btn { width: 100%; }
.kid__note { margin: -6px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.qr {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line);
}
.qr__box { width: 76px; height: 76px; flex: none; border-radius: 12px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.qr__box img { width: 100%; height: 100%; object-fit: contain; }
.qr__box--img { width: 161px; height: 161px; padding: 0; background: #fff; border: 1px solid var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.qr__box--img:hover { transform: scale(1.03); box-shadow: var(--shadow); }
.qr__box--empty { background: repeating-linear-gradient(-45deg, rgba(19,26,43,0.05) 0 6px, transparent 6px 12px), #fff; border: 1.5px dashed var(--line-2); }
.qr__box--empty svg { width: 30px; height: 30px; color: var(--muted); }
.qr__text { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.qr__text strong { display: block; color: var(--ink); font-size: 14.5px; }
.kid__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 14px; }
.kid__links a { color: var(--ink-2); text-underline-offset: 3px; }
.kid__links a:hover { color: var(--ink); }

/* Single-child page (/vera/, /alisa/) */
.kids--single { grid-template-columns: minmax(0, 980px); justify-content: center; }
.kids--single .kid { flex-direction: row; }
.kids--single .kid__photo { flex: 0 0 50%; aspect-ratio: 4 / 5; }
.kids--single .kid__body { padding: 36px 36px 32px; justify-content: center; }
.kids--single .kid__actions { margin-top: 10px; }
.kid__title { margin: 4px 0 0; font-size: clamp(32px, 3.4vw, 42px); }
.kid__text { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.sibling {
  justify-self: center; display: inline-flex; align-items: center; gap: 14px; margin-top: 8px;
  padding: 10px 24px 10px 10px; border-radius: 999px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.sibling:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sibling__photo { position: relative; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: none; background: var(--bg-tint); }
.sibling__photo img, .sibling__photo .ph { width: 100%; height: 100%; object-fit: cover; }
.sibling__photo .ph__initial { font-size: 26px; }
.sibling__photo .ph__text { display: none; }
.sibling__text { display: flex; flex-direction: column; font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.sibling__text strong { font-size: 16px; color: var(--ink); font-weight: 650; }

.hero__art--single .polaroid--solo { width: 70%; left: 15%; top: 4%; transform: rotate(-3deg); }
.hero__art--single:hover .polaroid--solo { transform: rotate(-1.5deg) translateY(-4px); }
.hero__art--single .polaroid__name { font-size: 40px; }
.hero__art--single .growth-chip { right: -4%; top: 60%; }
html[data-kid] .display { font-size: clamp(50px, 6.4vw, 88px); }
html[data-kid][lang="ru"] .display { font-size: clamp(46px, 5.4vw, 76px); }
.bday-chip {
  position: absolute; z-index: 3; left: 0; top: 14%;
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px;
  background: rgba(255, 253, 248, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink);
  animation: float 7s ease-in-out infinite 1s;
}
.bday-chip__icon { width: 38px; height: 38px; padding: 8px; flex: none; border-radius: 12px; background: rgba(212, 176, 106, 0.2); fill: none; stroke: #8a6424; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bday-chip__date { font-size: 13px; color: var(--muted); }
.bday-chip__count { font-weight: 650; font-size: 16px; line-height: 1.25; }

.ph {
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(120% 90% at 30% 10%, #f7ead0, #e6cfa0 55%, #cfae6c);
  color: rgba(91, 66, 20, 0.85);
}
.ph__initial { font-family: var(--serif); font-stretch: 72%; font-size: 120px; line-height: 1; }
.ph__text { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 650; margin-top: 6px; }

/* ───────────────────────── How to give ───────────────────────── */
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.way {
  background: var(--surface); border: 1px solid var(--line); border-radius: 32px; padding: 34px 34px 32px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.tag { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin: 0 0 18px; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tag__dot { width: 8px; height: 8px; border-radius: 50%; }
.tag__dot--us { background: var(--navy); }
.tag__dot--world { background: var(--gold); }
.way__lead { margin: 0 0 6px; color: var(--ink-2); font-size: 15.5px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 14px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 0 48px; min-height: 32px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 650;
}
.steps strong { color: var(--ink); font-weight: 650; }
.way__note { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.pay { margin-top: 24px; display: grid; gap: 10px; }
.pay__item {
  display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 14px; border-radius: 18px;
  background: var(--bg); border: 1px solid var(--line);
}
.pay__logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; font-weight: 750; font-size: 13px; color: #fff; }
.pay__logo--wise { background: #9fe870; color: #163300; }
.pay__logo--paypal { background: #0b2a6b; }
.pay__logo--zelle { background: #6d1ed4; font-size: 16px; }

.pay__logo--venmo { background: #008cff; font-size: 16px; }

.direct { margin-top: 22px; padding: 20px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); }
.direct__title { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.direct__text { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.direct__text strong { color: var(--ink); font-weight: 650; }
.direct__item { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.direct__body { min-width: 0; }
.direct__head { display: flex; align-items: center; gap: 12px; }
.direct__note { margin: 10px 0 12px; font-size: 13.5px; color: var(--muted); }
.direct__qr { display: block; padding: 0; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); line-height: 0; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.direct__qr:hover { transform: scale(1.03); box-shadow: var(--shadow); }
.direct__qr img { display: block; max-width: none; }
.pay__info { min-width: 0; flex: 1; }
.pay__name { font-weight: 650; font-size: 15px; }
.pay__handle { font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay__handle--soon { color: var(--muted); font-style: italic; }
.pay__btns { display: flex; gap: 6px; flex: none; }
.pay__btns .btn { --h: 38px; padding: 0 14px; font-size: 13.5px; }

.record {
  margin-top: 24px; display: flex; gap: 24px; align-items: center;
  padding: 28px 32px; border-radius: 32px;
  background: linear-gradient(120deg, #1f2a44, #2b3a5f); color: #dfe4ee;
}
.record .h3 { color: #fff; margin-bottom: 6px; }
.record p { margin: 0; max-width: 46em; }
.record__icon { width: 64px; height: 64px; flex: none; fill: none; stroke: #e7cf9a; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.record__seal { fill: #d4b06a; stroke: none; }
.record__check { stroke: #1f2a44; stroke-width: 2.4; }
.link-arrow { display: inline-block; margin-top: 12px; color: #f1dfb6; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ───────────────────────── FAQ ───────────────────────── */
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 4px; font-size: clamp(18px, 2vw, 21px); font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 4v12M4 10h12' stroke='%23131a2b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 1px solid var(--line-2); transition: transform 0.35s var(--ease), background-color 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--gold-3); }
.faq summary:hover::after { border-color: var(--ink); }
.faq__a { padding: 0 60px 26px 4px; color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.faq__a a, .lead a, .feature p a {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-2); text-decoration-thickness: 1.5px;
  text-underline-offset: 3px; transition: text-decoration-color 0.2s;
}
.faq__a a:hover, .lead a:hover, .feature p a:hover { text-decoration-color: currentColor; }
.faq details[open] .faq__a { animation: faq-in 0.45s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* ───────────────────────── Footer ───────────────────────── */
.footer { padding: 48px 0 56px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 40px; align-items: start; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.footer__legal { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 60em; }
.footer__top { font-size: 14px; color: var(--ink-2); white-space: nowrap; text-underline-offset: 3px; }
.footer__pages { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer__pages a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 550; color: var(--ink-2); text-decoration: none; transition: background 0.2s, border-color 0.2s; }
.footer__pages a:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.footer__pages a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ───────────────────────── Motion ───────────────────────── */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.features .reveal:nth-child(2), .kids > :nth-child(2), .ways > :nth-child(2) { transition-delay: 0.08s; }
.features .reveal:nth-child(3) { transition-delay: 0.16s; }
.features .reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1100px) {
  .features { grid-template-columns: 1fr 1fr; }
  .kids { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
  .kid__photo { aspect-ratio: 4 / 3; }
  .nav__links { display: none; }
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { max-width: 480px; margin-top: 8px; }
  .calc { grid-template-columns: 1fr; }
  .calc__controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .ways { grid-template-columns: 1fr; }
  .kids--single .kid { flex-direction: column; }
  .kids--single .kid__photo { flex: none; aspect-ratio: 4 / 3; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --nav-h: 60px; }
  .container, .container--narrow { width: calc(100% - 32px); }
  .nav__inner { width: calc(100% - 28px); gap: 10px; }
  .nav__cta { display: none; }
  .brand { font-size: 15px; }
  .hero__ctas .btn { width: 100%; }
  .hero__badge { font-size: 16px; }
  .hero__badge svg { width: 30px; height: 30px; padding: 6px; }
  .hero__art { aspect-ratio: 1 / 1.08; }
  .polaroid { width: 54%; padding: 7px 7px 0; border-radius: 20px; }
  .polaroid--a { top: 14%; }
  .polaroid--b { top: 24%; }
  .polaroid__img { border-radius: 14px; }
  .polaroid__name { font-size: 24px; }
  .polaroid__date { font-size: 11.5px; }
  .growth-chip { right: 0; top: 0; padding: 10px 14px 10px 10px; gap: 10px; }
  .growth-chip__spark { width: 48px; height: 32px; }
  .growth-chip__later { font-size: 14.5px; }
  .features { grid-template-columns: 1fr; gap: 14px; }
  .feature { padding: 24px 22px; display: grid; grid-template-columns: 48px 1fr; gap: 0 16px; }
  .feature__icon { width: 48px; height: 48px; grid-row: span 2; }
  .feature h3 { margin: 2px 0 6px; }
  .callout { align-items: flex-start; padding: 20px; }
  .callout__badge svg { width: 36px; height: 36px; }
  .calc { border-radius: 26px; }
  .calc__controls { padding: 26px 22px; gap: 26px; }
  .calc__results { padding: 26px 18px 22px; }
  .calc__summary { font-size: 16.5px; }
  .kid-stats { grid-template-columns: 1fr; }
  .kid { border-radius: 28px; }
  .kid__photo { aspect-ratio: 1 / 1.05; }
  .kid__overlay { padding: 0 20px 18px; }
  .kid__bday-date { font-size: 17px; }
  .kid__body, .kids--single .kid__body { padding: 20px 18px 20px; }
  .kids--single .kid__photo { aspect-ratio: 1 / 1.05; }
  .hero__art--single .polaroid--solo { width: 76%; left: 12%; }
  .hero__art--single .polaroid__name { font-size: 30px; }
  .bday-chip { top: 8%; padding: 9px 14px 9px 9px; gap: 10px; }
  .bday-chip__icon { width: 32px; height: 32px; padding: 7px; }
  .bday-chip__count { font-size: 14.5px; }
  .bday-chip__date { font-size: 12px; }
  .hero__art--single .growth-chip { right: 0; top: 62%; }
  html[data-kid] .display { font-size: clamp(46px, 12.4vw, 64px); }
  html[data-kid][lang="ru"] .display { font-size: clamp(40px, 10.6vw, 56px); }
  .sibling { padding-right: 18px; }
  .way { padding: 26px 22px; border-radius: 28px; }
  .pay__item { flex-wrap: wrap; }
  .pay__btns { width: 100%; }
  .pay__btns .btn { flex: 1; }
  .direct { padding: 18px 16px; }
  .direct__item { grid-template-columns: 1fr; justify-items: center; }
  .direct__body { justify-self: stretch; }
  .record { flex-direction: column; align-items: flex-start; padding: 26px 22px; border-radius: 28px; gap: 14px; }
  .faq__a { padding-right: 4px; }
  .display { font-size: clamp(50px, 14vw, 72px); }
  html[lang="ru"] .display { font-size: clamp(44px, 12.4vw, 64px); }
}
