/* Публичные страницы date4you: общий UI, ink.js-фолбэк для 404 и video-сцена /. */
:root {
  --page: #f5f3ed;
  --surface: rgba(255, 255, 252, .72);
  --surface-solid: #fffdf8;
  --surface-muted: rgba(242, 244, 240, .8);
  --ink: #252a3d;
  --muted: #626a7d;
  --accent: #4b59a6;
  --accent-strong: #354483;
  --accent-fill: #4b59a6;
  --accent-fill-strong: #354483;
  --accent-soft: #e9edfb;
  --line: rgba(79, 91, 130, .17);
  --success: #247b70;
  --shadow-card: 0 22px 70px rgba(44, 54, 88, .13), inset 0 1px 0 rgba(255, 255, 255, .78);
  --shadow-button: 0 9px 24px rgba(63, 73, 138, .2);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 17px;
  --content: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

html[data-skin="romantic"] {
  --page: #f8eef1;
  --surface: rgba(255, 252, 251, .72);
  --surface-solid: #fffafa;
  --surface-muted: rgba(250, 239, 241, .82);
  --ink: #43373a;
  --muted: #716166;
  --accent: #a34c60;
  --accent-strong: #8f4357;
  --accent-fill: #a34c60;
  --accent-fill-strong: #8f4357;
  --accent-soft: #f7e7eb;
  --line: rgba(143, 74, 88, .18);
  --success: #477566;
  --shadow-card: 0 22px 70px rgba(91, 54, 62, .13), inset 0 1px 0 rgba(255, 255, 255, .78);
  --shadow-button: 0 9px 24px rgba(143, 74, 88, .2);
}

html[data-theme="dark"] {
  --page: #151923;
  --surface: rgba(32, 38, 53, .76);
  --surface-solid: #202635;
  --surface-muted: rgba(38, 45, 62, .82);
  --ink: #f0f2f7;
  --muted: #afb6c8;
  --accent: #a6b0ff;
  --accent-strong: #c3caff;
  --accent-fill: #5968ba;
  --accent-fill-strong: #46539c;
  --accent-soft: #2b3351;
  --line: rgba(216, 220, 239, .16);
  --success: #77c9bd;
  --shadow-card: 0 26px 80px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .07);
  --shadow-button: 0 10px 28px rgba(0, 0, 0, .28);
}

html[data-theme="dark"][data-skin="romantic"] {
  --page: #171418;
  --surface: rgba(43, 34, 41, .78);
  --surface-solid: #251f24;
  --surface-muted: rgba(52, 40, 48, .82);
  --ink: #f1e9ed;
  --muted: #c0b1b8;
  --accent: #e098a9;
  --accent-strong: #f0b7c3;
  --accent-fill: #a34c60;
  --accent-fill-strong: #844052;
  --accent-soft: #402b34;
  --line: rgba(239, 212, 221, .17);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--page);
  font-size: 100%;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(760px 420px at 4% -8%, rgba(84, 105, 188, .17), transparent 66%),
    radial-gradient(640px 420px at 102% 28%, rgba(55, 166, 157, .13), transparent 68%),
    radial-gradient(620px 400px at 38% 108%, rgba(223, 166, 66, .11), transparent 68%),
    linear-gradient(180deg, #f8f7f2, #f2f3ef 58%, #f4f1e9);
  font: 16px/1.55 var(--sans);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}

html[data-skin="romantic"] body {
  background:
    radial-gradient(700px 380px at 94% -10%, rgba(211, 126, 148, .16), transparent 66%),
    radial-gradient(620px 420px at -5% 40%, rgba(184, 126, 194, .12), transparent 68%),
    linear-gradient(180deg, #fdf6f4, #f9eef0 55%, #f6edf2);
}

html[data-theme="dark"] body {
  background:
    radial-gradient(760px 420px at 4% -8%, rgba(78, 94, 171, .26), transparent 66%),
    radial-gradient(640px 420px at 102% 28%, rgba(35, 130, 126, .18), transparent 68%),
    linear-gradient(180deg, #151923, #191f2c 58%, #171b25);
}

html[data-theme="dark"][data-skin="romantic"] body {
  background:
    radial-gradient(700px 380px at 94% -10%, rgba(117, 65, 80, .25), transparent 66%),
    radial-gradient(620px 420px at -5% 40%, rgba(89, 57, 99, .18), transparent 68%),
    linear-gradient(180deg, #171418, #1c171b 55%, #17151a);
}

button, a { font: inherit; }
a { color: inherit; }
button, a, [role="button"] { -webkit-tap-highlight-color: transparent; }

:is(a, button, [role="button"]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

::selection { color: #fff; background: var(--accent); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--surface-solid);
  background: var(--ink);
  border-radius: 10px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.bg-smoke {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-smoke svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-smoke .turb { width: 100%; height: 100%; opacity: .5; mix-blend-mode: multiply; }
.bg-smoke .plume { transform-box: fill-box; transform-origin: center; }
.bg-smoke .plume.p1 { animation: landing-plume-a 24s ease-in-out infinite alternate; }
.bg-smoke .plume.p2 { animation: landing-plume-b 30s ease-in-out infinite alternate; }
.bg-smoke .plume.p3 { animation: landing-plume-c 27s ease-in-out infinite alternate; }
.bg-smoke span { position: absolute; border-radius: 50%; filter: blur(80px); will-change: transform; }
.bg-smoke span:nth-child(2) { width: 80vw; height: 80vw; top: -18vh; left: -16vw; background: radial-gradient(46% 48% at 40% 40%, rgba(76, 97, 184, .34), transparent 66%); animation: landing-smoke-a 22s ease-in-out infinite alternate; }
.bg-smoke span:nth-child(3) { width: 70vw; height: 70vw; top: 16vh; right: -18vw; background: radial-gradient(46% 44% at 56% 40%, rgba(45, 157, 149, .28), transparent 66%); animation: landing-smoke-b 26s ease-in-out infinite alternate; }
.bg-smoke span:nth-child(4) { width: 86vw; height: 86vw; bottom: -32vh; left: 0; background: radial-gradient(46% 46% at 44% 50%, rgba(221, 164, 58, .25), transparent 66%); animation: landing-smoke-c 30s ease-in-out infinite alternate; }
.bg-smoke .plume, .bg-smoke span { animation-duration: 48s !important; }

html[data-skin="friends"] .bg-smoke .turb { filter: hue-rotate(218deg) saturate(.88) brightness(1.03); }
html[data-skin="romantic"] .bg-smoke span:nth-child(2) { background: radial-gradient(46% 48% at 40% 40%, rgba(231, 120, 145, .4), transparent 66%); }
html[data-skin="romantic"] .bg-smoke span:nth-child(3) { background: radial-gradient(46% 44% at 56% 40%, rgba(214, 150, 200, .34), transparent 66%); }
html[data-skin="romantic"] .bg-smoke span:nth-child(4) { background: radial-gradient(46% 46% at 44% 50%, rgba(226, 176, 138, .32), transparent 66%); }
html[data-theme="dark"] .bg-smoke .turb { opacity: .28; mix-blend-mode: screen; }

@keyframes landing-plume-a { from { transform: translate(0, 0) rotate(-4deg) scale(1); } to { transform: translate(4%, -8%) rotate(6deg) scale(1.1); } }
@keyframes landing-plume-b { from { transform: translate(0, 0) rotate(3deg) scale(1.05); } to { transform: translate(-5%, -6%) rotate(-5deg) scale(1.12); } }
@keyframes landing-plume-c { from { transform: translate(0, 0) rotate(2deg) scale(1); } to { transform: translate(3%, -7%) rotate(-4deg) scale(1.14); } }
@keyframes landing-smoke-a { 0% { transform: translate(0, 0) rotate(0) scale(1); } 50% { transform: translate(5vw, 4vh) rotate(60deg) scale(1.12); } 100% { transform: translate(-3vw, 6vh) rotate(110deg) scale(1.05); } }
@keyframes landing-smoke-b { 0% { transform: translate(0, 0) rotate(0) scale(1.05); } 50% { transform: translate(-6vw, 5vh) rotate(-70deg) scale(1.14); } 100% { transform: translate(3vw, -3vh) rotate(-120deg) scale(1); } }
@keyframes landing-smoke-c { 0% { transform: translate(0, 0) rotate(0) scale(1.1); } 50% { transform: translate(6vw, -6vh) rotate(110deg) scale(1.25); } 100% { transform: translate(-5vw, -2vh) rotate(200deg) scale(1.08); } }

.ink-canvas, .ink-static-frame { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; }
.ink-static-frame { object-fit: cover; }
.bg-smoke.has-ink .ink-canvas, .bg-smoke.has-ink .ink-static-frame { opacity: 1; }
.bg-smoke.has-ink .ink-static-frame.is-pending { opacity: 0 !important; }
.bg-smoke.has-ink .turb, .bg-smoke.has-ink span { display: none; }
html.ink-static .bg-smoke .turb, html.ink-static .bg-smoke .plume, html.ink-static .bg-smoke span { animation: none !important; }

.site-header, main, .site-footer { position: relative; z-index: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 24px 0;
}

.site-header__inner {
  width: min(100%, var(--content));
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0 auto;
  padding: 8px 10px 8px 16px;
  background: color-mix(in srgb, var(--surface-solid) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  border-radius: 20px;
  box-shadow: 0 8px 34px rgba(42, 50, 82, .08);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  backdrop-filter: blur(22px) saturate(1.25);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 740;
  letter-spacing: -.035em;
  text-decoration: none;
}

.landing-page .wordmark__mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--accent-fill), var(--accent-fill-strong));
  border-radius: 11px;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 24%, transparent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.08em;
}

.wordmark__mark::before { content: "d4"; }

.site-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.site-nav a { padding: 10px 12px; color: var(--muted); border-radius: 11px; font-size: 14px; font-weight: 570; text-decoration: none; }
.site-nav a:hover { color: var(--ink); background: var(--surface-muted); }

.site-actions { display: flex; align-items: center; gap: 8px; }
.theme-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 11px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.theme-button:hover { color: var(--ink); background: var(--surface-muted); }
.theme-button [data-theme-icon] { width: 20px; height: 20px; display: grid; place-items: center; }
.theme-button__label { font-size: 13px; font-weight: 600; }
.theme-moon-icon::before, .theme-sun-icon::before { content: ""; width: 20px; height: 20px; background: currentColor; }
.theme-moon-icon::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20.3 15.4A8.7 8.7 0 0 1 8.6 3.7a8.7 8.7 0 1 0 11.7 11.7Z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20.3 15.4A8.7 8.7 0 0 1 8.6 3.7a8.7 8.7 0 1 0 11.7 11.7Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.theme-sun-icon::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm-1-7h2v4h-2V0Zm0 20h2v4h-2v-4ZM0 11h4v2H0v-2Zm20 0h4v2h-4v-2Z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm-1-7h2v4h-2V0Zm0 20h2v4h-2v-4ZM0 11h4v2H0v-2Zm20 0h4v2h-4v-2Z'/%3E%3C/svg%3E") center/contain no-repeat; }

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 680;
  letter-spacing: -.012em;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform 140ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(42, 50, 82, .1); }
.button:active { transform: scale(.98); transition-duration: 70ms; }
.button--compact { min-height: 44px; padding: 9px 17px; color: var(--surface-solid); background: var(--ink); border-color: transparent; }
.button--primary { min-height: 52px; padding: 13px 21px; color: #fff; background: linear-gradient(145deg, var(--accent-fill), var(--accent-fill-strong)); border-color: transparent; box-shadow: var(--shadow-button); }
.button--quiet { background: color-mix(in srgb, var(--surface-solid) 62%, transparent); }
.button--light { color: var(--accent-fill-strong); background: #fff; box-shadow: 0 12px 30px rgba(17, 23, 59, .18); }

.hero {
  width: min(calc(100% - 48px), var(--content));
  min-height: min(760px, calc(100svh - 80px));
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(430px, 1.06fr);
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
  margin: 0 auto;
  padding: 100px 0 112px;
}

.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 12px; font-weight: 760; letter-spacing: .115em; line-height: 1.4; text-transform: uppercase; }
.hero .eyebrow span { width: 7px; height: 7px; display: inline-block; margin-right: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 12%, transparent); }

h1, h2, h3, p { overflow-wrap: break-word; }
.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(46px, 5.8vw, 78px);
  font-weight: 760;
  letter-spacing: -.065em;
  line-height: .99;
  text-wrap: balance;
}
.hero__lead { max-width: 590px; margin: 25px 0 0; color: var(--muted); font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 32px; }
.hero__note { display: flex; align-items: center; gap: 8px; margin: 19px 0 0; color: var(--muted); font-size: 13px; }
.hero__note span { color: var(--success); font-weight: 800; }

.hero-preview { position: relative; width: 100%; max-width: 560px; justify-self: end; }
.hero-preview__glow { position: absolute; inset: 18% -10% -10% 10%; z-index: -1; background: color-mix(in srgb, var(--accent) 16%, transparent); filter: blur(55px); border-radius: 50%; }
.preview-window {
  position: relative;
  padding: clamp(20px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 78%, #fff 22%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  -webkit-backdrop-filter: blur(28px) saturate(1.22);
  backdrop-filter: blur(28px) saturate(1.22);
}
.preview-window__top, .preview-window__footer, .preview-option__title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.preview-window__status { padding: 7px 10px; color: var(--accent); background: var(--accent-soft); border-radius: 999px; font-size: 11px; font-weight: 760; letter-spacing: .05em; text-transform: uppercase; }
.preview-window__people { display: flex; flex-direction: row-reverse; }
.preview-window__people span { width: 31px; height: 31px; display: grid; place-items: center; margin-left: -7px; color: var(--accent-strong); background: var(--accent-soft); border: 2px solid var(--surface-solid); border-radius: 50%; font-size: 10px; font-weight: 750; }
.preview-window__heading { margin: 26px 0 20px; }
.preview-window__heading p { margin: 0 0 4px; font-size: clamp(22px, 2.4vw, 29px); font-weight: 740; letter-spacing: -.04em; }
.preview-window__heading span { color: var(--muted); font-size: 13px; }
.preview-options { display: grid; gap: 10px; }
.preview-option { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 14px; background: color-mix(in srgb, var(--surface-solid) 62%, transparent); border: 1px solid var(--line); border-radius: var(--radius-md); }
.preview-option--selected { border-color: color-mix(in srgb, var(--accent) 48%, var(--line)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent); }
.preview-option__icon { width: 46px; height: 46px; display: grid; place-items: center; background: var(--surface-muted); border-radius: 13px; font-size: 21px; }
.preview-option__body { min-width: 0; }
.preview-option__title strong { overflow: hidden; font-size: 13px; font-weight: 690; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.preview-option__title span { flex: none; color: var(--muted); font-size: 11px; }
.preview-progress { height: 5px; margin-top: 9px; overflow: hidden; background: var(--accent-soft); border-radius: 999px; }
.preview-progress span { height: 100%; display: block; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 62%, #56b5a8)); border-radius: inherit; }
.preview-progress--67 span { width: 67%; }
.preview-progress--50 span { width: 50%; }
.preview-progress--33 span { width: 33%; }
.preview-option__check { width: 25px; height: 25px; display: grid; place-items: center; color: #fff; background: var(--accent-fill); border-radius: 50%; font-size: 12px; font-weight: 800; }
.preview-window__footer { margin-top: 18px; color: var(--muted); font-size: 11px; }
.preview-window__footer span:first-child { display: flex; align-items: center; gap: 6px; color: var(--success); font-weight: 650; }
.preview-window__footer i { width: 7px; height: 7px; background: currentColor; border-radius: 50%; }

.section { width: min(calc(100% - 48px), var(--content)); margin: 0 auto; padding: 104px 0; }
.section-heading { max-width: 650px; margin: 0 auto 45px; text-align: center; }
.section h2 { margin: 0; font-size: clamp(36px, 4.4vw, 58px); font-weight: 740; letter-spacing: -.055em; line-height: 1.06; text-wrap: balance; }
.section-heading > p:last-child, .possibilities__copy > p:not(.eyebrow), .privacy-card > div > p:last-child, .final-cta p:last-child { color: var(--muted); }
.section-heading > p:last-child { max-width: 540px; margin: 17px auto 0; font-size: 17px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.step-card { position: relative; min-height: 280px; padding: 28px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 12px 38px rgba(42, 50, 82, .07); -webkit-backdrop-filter: blur(20px) saturate(1.15); backdrop-filter: blur(20px) saturate(1.15); }
.step-card__number { position: absolute; top: 21px; right: 24px; color: color-mix(in srgb, var(--muted) 66%, transparent); font-size: 12px; font-weight: 730; letter-spacing: .08em; }
.step-card__icon { width: 51px; height: 51px; display: grid; place-items: center; margin-bottom: 51px; color: var(--accent); background: var(--accent-soft); border-radius: 16px; font-size: 24px; font-weight: 500; }
.step-card h3, .feature-list h3 { margin: 0; font-size: 19px; font-weight: 710; letter-spacing: -.025em; }
.step-card p, .feature-list p { margin: 9px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.possibilities { display: grid; grid-template-columns: minmax(0, .85fr) minmax(460px, 1.15fr); align-items: center; gap: clamp(48px, 8vw, 108px); }
.possibilities__copy { max-width: 470px; }
.possibilities__copy > p:not(.eyebrow) { margin: 20px 0 0; font-size: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 24px; color: var(--accent); font-weight: 680; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 12px; background: color-mix(in srgb, var(--surface-solid) 44%, transparent); border: 1px solid var(--line); border-radius: var(--radius-xl); list-style: none; -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
.feature-list li { min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; padding: 22px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); border-radius: 20px; }
.feature-list__icon { width: 43px; height: 43px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 13px; font-size: 22px; }

.privacy-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px; margin-top: 72px; margin-bottom: 72px; padding: clamp(28px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); -webkit-backdrop-filter: blur(24px) saturate(1.18); backdrop-filter: blur(24px) saturate(1.18); }
.privacy-card__icon { width: 68px; height: 68px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); border-radius: 21px; font-size: 32px; }
.privacy-card h2 { font-size: clamp(28px, 3.4vw, 43px); }
.privacy-card > div > p:last-child { max-width: 680px; margin: 13px 0 0; }

.final-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 100px; margin-bottom: 42px; padding: clamp(38px, 6vw, 70px); color: #fff; background: linear-gradient(140deg, var(--accent-fill-strong), var(--accent-fill)); border-radius: 36px; box-shadow: 0 28px 75px color-mix(in srgb, var(--accent) 28%, transparent); }
.final-cta .eyebrow, .final-cta p:last-child { color: rgba(255, 255, 255, .78); }
.final-cta h2 { max-width: 720px; font-size: clamp(34px, 4.4vw, 56px); }
.final-cta p:last-child { margin: 14px 0 0; font-size: 17px; }
.final-cta .button { flex: none; }

.site-footer { width: min(calc(100% - 48px), var(--content)); display: grid; grid-template-columns: 1fr auto; gap: 28px 50px; align-items: end; margin: 0 auto; padding: 35px 0 46px; border-top: 1px solid var(--line); }
.site-footer__brand p, .site-footer__copy { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.site-footer__links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); font-size: 13px; text-decoration: none; }
.site-footer__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.site-footer__copy { grid-column: 1 / -1; }

.not-found-page { min-height: 100dvh; }
.not-found { width: min(calc(100% - 40px), 700px); min-height: calc(100dvh - 92px); display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0 auto; padding: 70px 0 100px; text-align: center; }
.not-found__code { margin: 0 0 -28px; color: color-mix(in srgb, var(--accent) 11%, transparent); font-size: clamp(130px, 26vw, 250px); font-weight: 820; letter-spacing: -.09em; line-height: .85; user-select: none; }
.not-found h1 { max-width: 650px; margin: 0; font-size: clamp(40px, 7vw, 66px); font-weight: 760; letter-spacing: -.06em; line-height: 1.02; text-wrap: balance; }
.not-found > p:not(.not-found__code):not(.eyebrow) { max-width: 570px; margin: 20px 0 0; color: var(--muted); font-size: 17px; }
.not-found .hero__actions { justify-content: center; }
.not-found__support { min-height: 44px; display: inline-flex; align-items: center; margin-top: 17px; color: var(--accent); font-size: 14px; font-weight: 650; text-underline-offset: 4px; }

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header__inner, .preview-window, .step-card, .feature-list, .privacy-card { background: var(--surface-solid); }
}

@media (max-width: 960px) {
  .site-nav { display: none; }
  .site-actions { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 60px; padding-top: 85px; }
  .hero__copy { max-width: 760px; }
  .hero-preview { max-width: 650px; justify-self: center; }
  .steps { grid-template-columns: 1fr; max-width: 700px; margin: 0 auto; }
  .step-card { min-height: auto; }
  .step-card__icon { margin-bottom: 38px; }
  .possibilities { grid-template-columns: 1fr; }
  .possibilities__copy { max-width: 700px; }
  .privacy-card { grid-template-columns: auto 1fr; }
  .privacy-card .button { grid-column: 2; justify-self: start; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .site-header { padding: 8px 10px 0; }
  .site-header__inner { min-height: 58px; padding: 6px 7px 6px 12px; border-radius: 17px; }
  .wordmark { gap: 8px; font-size: 16px; }
  .wordmark__mark { width: 32px; height: 32px; border-radius: 10px; }
  .theme-button__label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .button--compact { min-height: 44px; padding-inline: 14px; }
  .hero, .section, .site-footer { width: min(calc(100% - 32px), var(--content)); }
  .hero { gap: 48px; padding: 72px 0 78px; }
  .hero h1 { font-size: clamp(42px, 13vw, 60px); }
  .hero__lead { margin-top: 21px; }
  .hero__actions { display: grid; grid-template-columns: 1fr; }
  .hero__actions .button { width: 100%; }
  .hero__note { align-items: flex-start; }
  .preview-window { padding: 18px; border-radius: 25px; }
  .preview-window__heading { margin: 23px 0 17px; }
  .preview-option { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; padding: 11px; }
  .preview-option__icon { width: 42px; height: 42px; }
  .preview-option__title span { display: none; }
  .preview-window__footer span:last-child { display: none; }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 32px; text-align: left; }
  .section-heading > p:last-child { margin-left: 0; }
  .step-card { padding: 23px; }
  .feature-list { grid-template-columns: 1fr; padding: 8px; border-radius: 25px; }
  .feature-list li { min-height: 165px; }
  .privacy-card { grid-template-columns: 1fr; gap: 21px; margin-top: 36px; margin-bottom: 36px; padding: 30px 22px; }
  .privacy-card__icon { width: 56px; height: 56px; border-radius: 18px; }
  .privacy-card .button { grid-column: 1; width: 100%; }
  .final-cta { align-items: flex-start; flex-direction: column; margin-top: 70px; margin-bottom: 30px; padding: 38px 22px; border-radius: 28px; }
  .final-cta .button { width: 100%; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
  .site-footer__links { display: grid; justify-content: start; gap: 0; }
  .site-footer__copy { grid-column: 1; }
  .not-found { min-height: calc(100dvh - 74px); padding-top: 52px; }
  .not-found__code { margin-bottom: -18px; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header__inner, .preview-window, .step-card, .feature-list, .privacy-card {
    background: var(--surface-solid) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

@media (prefers-contrast: more) {
  :root { --muted: color-mix(in srgb, var(--ink) 82%, var(--page)); --line: color-mix(in srgb, var(--ink) 50%, transparent); }
  .site-header__inner, .preview-window, .step-card, .feature-list, .privacy-card { background: var(--surface-solid); border-width: 2px; -webkit-backdrop-filter: none; backdrop-filter: none; }
  :focus-visible { outline-width: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-smoke .plume, .bg-smoke span { animation: none !important; }
  .button { transition: none; }
}

/* Video-first бренд-сцена главной страницы. Исходная анимация остаётся
 * неподвижной относительно окна и поэтому визуально продолжается ниже hero. */
.landing-page {
  background: #f7f4f3;
}

.brand-motion {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #f5eeee;
  isolation: isolate;
}

.brand-motion__poster,
.brand-motion__video,
.brand-motion__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.brand-motion__poster { display: block; }
.brand-motion__poster img,
.brand-motion__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.brand-motion__video {
  z-index: 1;
  opacity: 0;
  transform: translateZ(0);
  transition: opacity 900ms var(--ease);
  will-change: opacity;
}

.brand-motion.is-video-ready .brand-motion__video { opacity: 1; }
.brand-motion__scrim {
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .18), transparent 25%, transparent 58%, rgba(255, 250, 249, .3)),
    linear-gradient(90deg, rgba(245, 250, 255, .08), transparent 32%, transparent 70%, rgba(255, 244, 247, .08));
}

html[data-theme="dark"] .landing-page { background: #15151b; }
html[data-theme="dark"] .brand-motion__scrim {
  background: rgba(12, 14, 25, .48);
}

.landing-page .site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
}

.landing-page .site-header__inner {
  width: min(100%, 1240px);
  background: color-mix(in srgb, var(--surface-solid) 66%, transparent);
  border-color: rgba(255, 255, 255, .46);
  box-shadow: 0 10px 40px rgba(52, 63, 105, .1);
  -webkit-backdrop-filter: blur(24px) saturate(1.24);
  backdrop-filter: blur(24px) saturate(1.24);
}

.landing-page .wordmark__mark {
  overflow: visible;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.landing-page .wordmark__mark::before { content: none; }
.landing-page .wordmark__logo {
  width: 100%;
  height: 100%;
  display: none;
  object-fit: contain;
  border-radius: 8px;
}

.landing-page .wordmark__logo--romantic { padding: 2px; }
html[data-skin="friends"] .landing-page .wordmark__logo--friends,
html:not([data-skin]) .landing-page .wordmark__logo--friends,
html[data-skin="romantic"] .landing-page .wordmark__logo--romantic { display: block; }

.hero.hero--brand {
  position: relative;
  width: min(calc(100% - 48px), 1240px);
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  margin: 0 auto;
  padding: 112px 0 clamp(24px, 4vh, 42px);
}

.hero--brand .hero__copy {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  grid-template-areas:
    "eyebrow lead"
    "title actions"
    "title note";
  column-gap: clamp(34px, 6vw, 86px);
  row-gap: 12px;
  padding: clamp(21px, 2.4vw, 30px);
  background: color-mix(in srgb, var(--surface-solid) 72%, transparent);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 30px;
  box-shadow: 0 24px 70px rgba(48, 57, 94, .16), inset 0 1px 0 rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  backdrop-filter: blur(26px) saturate(1.2);
}

.hero--brand .eyebrow { grid-area: eyebrow; align-self: end; margin-bottom: 0; }
.hero--brand h1 {
  grid-area: title;
  max-width: 650px;
  align-self: start;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.01;
}

.hero--brand .hero__lead {
  grid-area: lead;
  max-width: 520px;
  align-self: end;
  margin: 0;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.48;
}

.hero--brand .hero__actions {
  grid-area: actions;
  align-self: center;
  margin: 0;
}

.hero--brand .hero__note {
  grid-area: note;
  align-self: start;
  margin: 0;
}

.hero__scroll {
  position: absolute;
  right: 8px;
  bottom: clamp(232px, 28vh, 270px);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-solid) 68%, transparent);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(48, 57, 94, .1);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
  backdrop-filter: blur(18px) saturate(1.18);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.hero__scroll span { font-size: 17px; }

.landing-details {
  position: relative;
  z-index: 1;
  overflow: clip;
  background: linear-gradient(180deg,
    rgba(250, 248, 247, .58),
    rgba(248, 246, 245, .76) 14%,
    rgba(247, 245, 244, .87) 72%,
    rgba(247, 245, 244, .94));
  border-top: 1px solid rgba(255, 255, 255, .68);
  box-shadow: 0 -24px 70px rgba(63, 64, 91, .06);
}

html[data-theme="dark"] .landing-details {
  background: linear-gradient(180deg,
    rgba(22, 23, 31, .7),
    rgba(22, 23, 31, .84) 16%,
    rgba(21, 22, 29, .93));
  border-top-color: rgba(255, 255, 255, .08);
}

.product-showcase {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(470px, 1.22fr);
  align-items: center;
  gap: clamp(48px, 8vw, 110px);
}

.product-showcase__copy { max-width: 470px; }
.product-showcase__copy > p:last-child {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.product-showcase .hero-preview { justify-self: end; }
.landing-page .site-footer {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 38px max(24px, calc((100% - var(--content)) / 2)) 46px;
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  border-top-color: rgba(255, 255, 255, .52);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  backdrop-filter: blur(22px) saturate(1.15);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .hero--brand .hero__copy,
  .hero__scroll,
  .landing-page .site-header__inner,
  .landing-page .site-footer { background: var(--surface-solid); }
}

@media (max-width: 960px) {
  .hero--brand .hero__copy {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .9fr);
    column-gap: 30px;
  }

  .product-showcase {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .product-showcase__copy { max-width: 680px; }
  .product-showcase .hero-preview { max-width: 680px; justify-self: center; }
}

@media (max-width: 760px) {
  .brand-motion__scrim {
    background: linear-gradient(180deg,
      rgba(255, 255, 255, .08),
      transparent 36%,
      rgba(255, 249, 248, .14) 48%,
      rgba(255, 249, 248, .46) 100%);
  }

  html[data-theme="dark"] .brand-motion__scrim {
    background: linear-gradient(180deg,
      rgba(12, 14, 25, .34),
      rgba(12, 14, 25, .22) 42%,
      rgba(12, 14, 25, .62));
  }

  .hero.hero--brand {
    width: min(calc(100% - 24px), 620px);
    min-height: 100svh;
    padding: 92px 0 12px;
  }

  .hero--brand .hero__copy {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 21px;
    border-radius: 25px;
  }

  .hero--brand .eyebrow { margin-bottom: 11px; }
  .hero--brand h1 { font-size: clamp(34px, 9.8vw, 46px); }
  .hero--brand .hero__lead { margin-top: 14px; font-size: 15px; line-height: 1.45; }
  .hero--brand .hero__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .hero--brand .hero__actions .button {
    width: 100%;
    min-height: 48px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .hero--brand .hero__note { margin-top: 13px; font-size: 12px; }
  .hero__scroll { display: none; }
  .product-showcase { padding-top: 88px; }
}

@media (max-width: 520px) {
  .landing-page .site-header { padding-inline: 8px; }
  .landing-page .site-header__inner { padding-left: 9px; }
  .hero--brand .hero__actions { grid-template-columns: 1fr; }
  .hero--brand .hero__actions .button { min-height: 46px; }
  .hero--brand .hero__note { display: none; }
  .landing-page .site-footer {
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }
}

@media (max-height: 720px) and (max-width: 760px) {
  .hero--brand .hero__copy { padding: 17px; }
  .hero--brand .eyebrow { margin-bottom: 8px; font-size: 10px; }
  .hero--brand h1 { font-size: clamp(31px, 8.8vw, 39px); }
  .hero--brand .hero__lead { margin-top: 10px; font-size: 14px; }
  .hero--brand .hero__actions { margin-top: 13px; }
}

@media (max-height: 500px) and (min-width: 761px) and (max-width: 1100px) {
  .hero.hero--brand { padding: 88px 0 10px; }
  .hero--brand .hero__copy {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title actions";
    align-items: center;
    gap: 24px;
    padding: 14px 18px;
    border-radius: 23px;
  }

  .hero--brand .eyebrow,
  .hero--brand .hero__lead,
  .hero--brand .hero__note,
  .hero__scroll { display: none; }
  .hero--brand h1 { font-size: clamp(28px, 4vw, 36px); }
  .hero--brand .hero__actions { flex-wrap: nowrap; }
  .hero--brand .hero__actions .button {
    min-height: 44px;
    padding: 9px 14px;
    font-size: 13px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .hero--brand .hero__copy,
  .hero__scroll,
  .landing-page .site-header__inner,
  .landing-page .site-footer {
    background: var(--surface-solid) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

@media (prefers-contrast: more) {
  .hero--brand .hero__copy,
  .hero__scroll { background: var(--surface-solid); border-width: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-motion__video { display: none; transition: none; }
}

/* ========================================================================== */
/* Главная: интерактивная история полноценной карточки события                */
/* ========================================================================== */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.landing-page {
  --story-progress: 0;
  --scene-progress: 0;
  background: var(--page);
}

.landing-page main,
.landing-page .site-footer { position: relative; z-index: 2; }

.landing-page .bg-smoke { z-index: 0; }

/* Минималистичный первый экран поверх того же живого фона, что в кабинете. */
.landing-page .hero.hero--brand {
  width: min(calc(100% - 48px), 1240px);
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  margin: 0 auto;
  padding: 112px 0 clamp(34px, 7vh, 76px);
}

.landing-page .hero--brand .hero__copy {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(28px, 7vw, 96px);
  padding: clamp(25px, 3.4vw, 42px);
  background: color-mix(in srgb, var(--surface-solid) 68%, transparent);
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 32px;
  box-shadow: 0 28px 86px rgba(48, 57, 94, .16), inset 0 1px 0 rgba(255, 255, 255, .76);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  backdrop-filter: blur(28px) saturate(1.2);
}

.landing-page .hero--brand h1 {
  max-width: 780px;
  display: grid;
  gap: 5px;
  margin: 0;
  line-height: .94;
}

.hero__wordmark {
  color: var(--accent);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 760;
  letter-spacing: -.04em;
}

.hero__statement {
  font-size: clamp(46px, 6.3vw, 88px);
  font-weight: 770;
  letter-spacing: -.07em;
  text-wrap: balance;
}

.landing-page .hero--brand .hero__actions {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin: 0;
}

.landing-page .hero__scroll {
  right: 0;
  bottom: 14px;
}

.landing-details {
  position: relative;
  z-index: 2;
  overflow: clip;
  background: transparent;
  border-top: 1px solid color-mix(in srgb, var(--line) 58%, transparent);
  box-shadow: none;
}

html[data-theme="dark"] .landing-details {
  background: transparent;
  border-top-color: var(--line);
}

/* Переключатель оформления остаётся частью демонстрации, а не расширяет header. */
.landing-skin-switch {
  position: sticky;
  top: 92px;
  z-index: 18;
  width: max-content;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 28px auto 38px;
  padding: 4px;
  background: color-mix(in srgb, var(--surface-solid) 74%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 78%, #fff 22%);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(42, 50, 82, .1);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
}

.landing-skin-switch__button {
  min-height: 44px;
  padding: 9px 16px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 690;
  cursor: pointer;
  transition: color 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease), transform 100ms var(--ease);
}
.landing-skin-switch__button:hover { color: var(--ink); }
.landing-skin-switch__button:active { transform: scale(.97); }
.landing-skin-switch__button.on,
.landing-skin-switch__button[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(145deg, var(--accent-fill), var(--accent-fill-strong));
  box-shadow: 0 7px 20px color-mix(in srgb, var(--accent) 26%, transparent);
}

/* Scroll-driven камера. Высота истории задаётся шагами справа; слева закреплён
   один и тот же физический объект, поэтому при прокрутке не возникает монтажных
   склеек между отдельными mockup-экранами. */
.landing-story {
  --story-end: max(0, calc(var(--story-progress) - .82));
  --camera-scale: calc(.72 + (var(--story-progress) * .24) - (var(--story-end) * 1.72));
  --camera-y: calc(154px - (var(--story-progress) * 680px) + (var(--story-end) * 2850px));
  padding-top: 112px;
  padding-bottom: 88px;
}

.landing-story__intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.landing-story__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 330px);
  align-items: start;
  gap: clamp(28px, 5vw, 68px);
}

.landing-story__stage-wrap {
  position: sticky;
  top: 116px;
  align-self: start;
}

.landing-story__stage {
  position: relative;
  height: min(78svh, 820px);
  min-height: 660px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 74%, #fff 26%);
  border-radius: 38px;
  background: color-mix(in srgb, var(--surface-solid) 34%, transparent);
  box-shadow: 0 32px 100px rgba(37, 45, 79, .12), inset 0 1px 0 rgba(255, 255, 255, .66);
  -webkit-backdrop-filter: blur(14px) saturate(1.08);
  backdrop-filter: blur(14px) saturate(1.08);
  perspective: 1400px;
  isolation: isolate;
}

.landing-story__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 52% 32%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 43%),
    linear-gradient(180deg, rgba(255, 255, 255, .15), transparent 36%, rgba(255, 255, 255, .08));
  pointer-events: none;
}

.landing-story__stage-glow {
  position: absolute;
  inset: 18% 14% 14%;
  z-index: -1;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 48%;
  filter: blur(68px);
  opacity: calc(.46 + (var(--story-progress) * .2));
  transform: scale(calc(.86 + (var(--story-progress) * .18)));
}

.landing-story__camera {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: start center;
  padding: 22px;
  transform:
    translate3d(0, var(--camera-y), 0)
    rotateX(calc(1.2deg - (var(--story-progress) * 1.8deg)))
    rotateZ(calc(-.7deg + (var(--story-progress) * 1.25deg)))
    scale(var(--camera-scale));
  transform-origin: 50% 0;
  will-change: auto;
}

.landing-story__feed {
  position: absolute;
  inset: 22px;
  z-index: 1;
  padding: 28px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface-solid) 74%, transparent);
  border: 1px solid var(--line);
  border-radius: 29px;
  box-shadow: var(--shadow-card);
  opacity: clamp(0, calc((var(--story-progress) - .84) * 7), 1);
  transform: scale(calc(.96 + (var(--story-end) * .22)));
  transform-origin: center;
  -webkit-backdrop-filter: blur(24px) saturate(1.16);
  backdrop-filter: blur(24px) saturate(1.16);
}

.landing-story__feed-bar { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 13px; }
.landing-story__feed-bar span:first-child { color: var(--ink); font-size: 18px; font-weight: 730; }
.landing-story__feed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.landing-story__feed-grid article { display: grid; gap: 8px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.landing-story__feed-grid small { color: var(--muted); }
.landing-story__feed-image { height: 150px; display: block; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 28%, var(--accent-soft)), var(--surface-muted)); border-radius: 13px; }

.landing-story__steps {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-story__step {
  min-height: 68svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 4px 30px 30px;
  color: var(--muted);
  opacity: .34;
  transform: translate3d(0, 18px, 0);
  transition: opacity 260ms var(--ease), color 260ms var(--ease), transform 340ms var(--ease);
}

.landing-story__step.is-active {
  color: var(--ink);
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.landing-story__step-copy { display: contents; }

.landing-story__step-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: unsafe center;
  margin-bottom: 20px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .08em;
}
.landing-story__step h3 { margin: 0; font-size: clamp(24px, 2.3vw, 34px); letter-spacing: -.045em; line-height: 1.05; }
.landing-story__step p { margin: 12px 0 0; font-size: 15px; line-height: 1.55; }

/* Полноценная карточка — самостоятельный компонент лендинга с той же
   содержательной анатомией, что карточка на гостевой странице. */
.landing-demo-card {
  position: relative;
  width: min(100%, 620px);
  overflow: hidden;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface-solid) 84%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 72%, #fff 28%);
  border-radius: 31px;
  box-shadow: 0 30px 88px rgba(37, 45, 79, .2), inset 0 1px 0 rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(26px) saturate(1.18);
  backdrop-filter: blur(26px) saturate(1.18);
  transition: opacity 220ms var(--ease), box-shadow 220ms var(--ease);
}
.landing-demo-card[hidden] { display: none !important; }
.landing-demo-card:not(.is-active)[aria-hidden="true"] { pointer-events: none; }

.landing-demo-card__gallery {
  --gallery-progress: 0;
  --gallery-translate: 0%;
  --gallery-drag: 0;
  position: relative;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(145deg, var(--accent-soft), color-mix(in srgb, var(--surface-muted) 70%, var(--accent-soft)));
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  isolation: isolate;
}
.landing-demo-card__gallery.is-dragging { cursor: grabbing; }
.landing-demo-card__slides,
.landing-demo-card__slide { position: absolute; inset: 0; margin: 0; }
.landing-demo-card__slide { transform: translate3d(var(--gallery-translate), 0, 0); transition: transform 420ms cubic-bezier(.22, .72, .22, 1); will-change: transform; }
.landing-demo-card__slide[data-slide-index="1"] { transform: translate3d(calc(100% + var(--gallery-translate)), 0, 0); }
.landing-demo-card__slide[data-slide-index="2"] { transform: translate3d(calc(200% + var(--gallery-translate)), 0, 0); }
.landing-demo-card__gallery.is-dragging .landing-demo-card__slide { transition: none; }
.landing-demo-card__slide img { width: 100%; height: 100%; display: block; object-fit: cover; user-select: none; }

.landing-demo-card__modifier {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  color: #fff;
  background: linear-gradient(135deg, #34b36b, #15734a);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(21, 115, 74, .28);
  font-size: 12px;
  font-weight: 760;
}

.landing-demo-card__gallery-button {
  position: absolute;
  top: 50%;
  z-index: 7;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(20, 23, 34, .38);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateY(-50%);
  cursor: pointer;
  transition: background 150ms ease, transform 90ms ease, opacity 150ms ease;
}
.landing-demo-card__gallery-button:hover { background: rgba(20, 23, 34, .58); }
.landing-demo-card__gallery-button:active { transform: translateY(-50%) scale(.94); }
.landing-demo-card__gallery-button:disabled { opacity: .32; cursor: default; }
.landing-demo-card__gallery-button--prev { left: 13px; }
.landing-demo-card__gallery-button--next { right: 13px; }

.landing-demo-card__gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  z-index: 7;
  display: flex;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(18, 20, 30, .28);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
}
.landing-demo-card__gallery-dots span { width: 6px; height: 6px; background: rgba(255, 255, 255, .5); border-radius: 50%; transition: width 180ms ease, background 180ms ease; }
.landing-demo-card__gallery-dots span.is-active { width: 18px; background: #fff; border-radius: 999px; }

.landing-demo-card__body { position: relative; display: grid; gap: 20px; padding: 25px 26px 27px; }
.landing-demo-card__header { display: grid; gap: 2px; }
.landing-demo-card__kind { margin: 0; color: var(--accent); font-size: 11px; font-weight: 770; letter-spacing: .1em; text-transform: uppercase; }
.landing-demo-card__header h3 { margin: 0; font-size: 31px; font-weight: 750; letter-spacing: -.05em; line-height: 1.08; }

.landing-demo-card__facts { display: grid; gap: 8px; margin: 0; }
.landing-demo-card__fact { margin: 0; }
.landing-demo-card__fact dd { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 0; color: var(--muted); font-size: 13px; }
.landing-demo-card__fact-icon { width: 18px; height: 18px; display: inline-grid; place-items: center; color: var(--accent); }
.landing-demo-card__fact-icon svg,
.landing-demo-card__venue-link svg,
.landing-demo-card__question-toggle svg { width: 100%; height: 100%; display: block; }
.landing-demo-card__inline-action,
.landing-demo-card__venue-link {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 0;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 680;
  text-decoration: none;
  cursor: pointer;
}
.landing-demo-card__inline-action:active,
.landing-demo-card__venue-link:active { transform: scale(.97); }
.landing-demo-card__description { margin: -2px 0 0; color: var(--ink); font-size: 14px; line-height: 1.55; }
.landing-demo-card__venue-link { width: max-content; margin-top: -8px; padding-inline: 0; background: transparent; }
.landing-demo-card__venue-link svg { width: 17px; height: 17px; }

.landing-demo-card__section-heading,
.landing-demo-card__vote-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.landing-demo-card__section-heading h4,
.landing-demo-card__vote-heading h4 { margin: 0; font-size: 14px; font-weight: 740; }
.landing-demo-card__section-heading > span,
.landing-demo-card__vote-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }

.landing-demo-card__participants {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.landing-demo-card__participants li { min-width: 0; display: grid; justify-items: center; gap: 5px; padding: 8px 3px; text-align: center; background: color-mix(in srgb, var(--surface-muted) 68%, transparent); border: 1px solid var(--line); border-radius: 13px; }
.landing-demo-card__participants li > span:last-child { min-width: 0; display: grid; }
.landing-demo-card__participants strong,
.landing-demo-card__participants small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.landing-demo-card__participants strong { font-size: 10px; }
.landing-demo-card__participants small { color: var(--muted); font-size: 9px; }
.landing-demo-card__avatar { width: 31px; height: 31px; display: grid; place-items: center; color: var(--accent-strong); background: var(--accent-soft); border: 2px solid var(--surface-solid); border-radius: 50%; font-size: 10px; font-weight: 770; }
.landing-demo-card__participants .is-pending { opacity: .58; }
.landing-demo-card__participants .is-confirmed { opacity: 1; }
.landing-demo-card__participants .is-confirmed .landing-demo-card__avatar { color: #fff; background: var(--accent-fill); }

.landing-demo-card__vote { padding: 16px; background: color-mix(in srgb, var(--accent-soft) 45%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 19%, var(--line)); border-radius: 18px; }
.landing-demo-card__vote-count { flex: none; color: var(--accent); font-size: 24px; letter-spacing: -.05em; }
.landing-demo-card__progress { --demo-vote-progress: 0; height: 7px; margin: 13px 0 14px; overflow: hidden; background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface-solid)); border-radius: 999px; }
.landing-demo-card[data-demo-skin="friends"] .landing-demo-card__progress { --demo-vote-progress: .6; }
.landing-demo-card[data-demo-skin="romantic"] .landing-demo-card__progress { --demo-vote-progress: 0; }
.landing-demo-card__progress span { width: 100%; height: 100%; display: block; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 58%, #42ad9e)); border-radius: inherit; transform: scaleX(var(--demo-vote-progress)); transform-origin: left center; transition: transform 420ms cubic-bezier(.2, .8, .2, 1); }
.landing-demo-card__vote-button { width: 100%; min-height: 46px; }
.landing-demo-card__vote-button.is-selected { background: linear-gradient(145deg, var(--success), color-mix(in srgb, var(--success) 72%, #183f39)); }

.landing-demo-card__question { position: relative; }
.landing-demo-card__question-toggle { width: 100%; }
.landing-demo-card__question-toggle svg { width: 18px; height: 18px; }
.landing-demo-card__question-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 9px);
  left: 0;
  z-index: 12;
  display: grid;
  gap: 10px;
  padding: 16px;
  background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 20px 55px rgba(31, 37, 65, .22);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
  backdrop-filter: blur(24px) saturate(1.15);
}
.landing-demo-card__question-panel[hidden] { display: none; }
.landing-demo-card__question-panel label { color: var(--muted); font-size: 11px; font-weight: 650; }
.landing-demo-card__question-panel textarea { width: 100%; min-height: 68px; resize: vertical; padding: 10px 11px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 11px; font: inherit; font-size: 13px; }
.landing-demo-card__question-example { margin: 0; }
.landing-demo-card__question-example div { display: grid; gap: 2px; padding: 9px 11px; background: var(--accent-soft); border-radius: 11px; }
.landing-demo-card__question-example dt { font-size: 11px; font-weight: 700; }
.landing-demo-card__question-example dd { margin: 0; color: var(--muted); font-size: 11px; }
.landing-demo-card__question-status { margin: 0; color: var(--success); font-size: 12px; font-weight: 680; }
.landing-demo-card__question-status[hidden] { display: none; }

/* Поэтапное появление реальных слотов карточки. Место каждого блока заранее
   зарезервировано, поэтому композиция не прыгает, когда данные проявляются. */
.landing-story .landing-demo-card__gallery img,
.landing-story .landing-demo-card__modifier,
.landing-story .landing-demo-card__facts,
.landing-story .landing-demo-card__description,
.landing-story .landing-demo-card__venue-link,
.landing-story .landing-demo-card__people,
.landing-story .landing-demo-card__vote,
.landing-story .landing-demo-card__question {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  pointer-events: none;
  transition: opacity 360ms var(--ease), transform 460ms var(--ease), filter 420ms var(--ease);
}
.landing-story[data-active-scene="media"] .landing-demo-card__gallery img,
.landing-story[data-active-scene="details"] .landing-demo-card__gallery img,
.landing-story[data-active-scene="people"] .landing-demo-card__gallery img,
.landing-story[data-active-scene="choice"] .landing-demo-card__gallery img,
.landing-story[data-active-scene="feed"] .landing-demo-card__gallery img,
.landing-story[data-active-scene="details"] .landing-demo-card__modifier,
.landing-story[data-active-scene="people"] .landing-demo-card__modifier,
.landing-story[data-active-scene="choice"] .landing-demo-card__modifier,
.landing-story[data-active-scene="feed"] .landing-demo-card__modifier,
.landing-story[data-active-scene="details"] :is(.landing-demo-card__facts, .landing-demo-card__description, .landing-demo-card__venue-link),
.landing-story[data-active-scene="people"] :is(.landing-demo-card__facts, .landing-demo-card__description, .landing-demo-card__venue-link, .landing-demo-card__people),
.landing-story[data-active-scene="choice"] :is(.landing-demo-card__facts, .landing-demo-card__description, .landing-demo-card__venue-link, .landing-demo-card__people, .landing-demo-card__vote, .landing-demo-card__question),
.landing-story[data-active-scene="feed"] :is(.landing-demo-card__facts, .landing-demo-card__description, .landing-demo-card__venue-link, .landing-demo-card__people, .landing-demo-card__vote, .landing-demo-card__question) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.landing-story[data-active-scene="media"] .landing-demo-card__gallery,
.landing-story[data-active-scene="details"] .landing-demo-card__gallery,
.landing-story[data-active-scene="people"] .landing-demo-card__gallery,
.landing-story[data-active-scene="choice"] .landing-demo-card__gallery,
.landing-story[data-active-scene="feed"] .landing-demo-card__gallery { pointer-events: auto; }

/* Возможности показываются настоящими фрагментами интерфейса, а не иконками. */
.possibilities {
  display: block;
  padding-top: 72px;
  padding-bottom: 28px;
  content-visibility: auto;
  contain-intrinsic-size: auto 1500px;
}
.possibilities__heading { max-width: 720px; margin-bottom: 38px; }
.possibility-stories { display: grid; gap: 22px; }
.possibility-story {
  min-height: 400px;
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(36px, 6vw, 86px);
  padding: clamp(30px, 5vw, 62px);
  overflow: hidden;
  background: color-mix(in srgb, var(--surface-solid) 64%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 74%, #fff 26%);
  border-radius: 34px;
  box-shadow: 0 20px 66px rgba(37, 45, 79, .09), inset 0 1px 0 rgba(255, 255, 255, .68);
  -webkit-backdrop-filter: blur(24px) saturate(1.12);
  backdrop-filter: blur(24px) saturate(1.12);
}
.possibility-story:nth-child(even) .possibility-story__copy { order: 2; }
.possibility-story__copy h3 { margin: 0; font-size: clamp(30px, 4vw, 50px); letter-spacing: -.055em; line-height: 1; }
.possibility-story__copy p { margin: 18px 0 0; color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.58; }
.possibility-story__preview { min-width: 0; padding: 18px; background: color-mix(in srgb, var(--surface-solid) 76%, transparent); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-card); }

.feed-fragment__toolbar,
.profile-fragment__person,
.profile-fragment__event { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.feed-fragment__toolbar span { color: var(--accent); font-size: 12px; font-weight: 680; }
.feed-fragment__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.feed-fragment__cards > div { display: grid; gap: 6px; padding: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.feed-fragment__cards small,
.feed-fragment__cards > div > span:last-child,
.profile-fragment small { color: var(--muted); font-size: 10px; }
.feed-fragment__cards > div > span:last-child { color: var(--accent); }
.feed-fragment__cover { height: 110px; display: block; border-radius: 11px; background: linear-gradient(145deg, #b9c4ef, #7bb7ad); }
.feed-fragment__cover--two { background: linear-gradient(145deg, #e7b2bc, #9f738f); }

.profile-fragment__person { justify-content: flex-start; }
.profile-fragment__person > span { width: 45px; height: 45px; display: grid; place-items: center; color: #fff; background: var(--accent-fill); border-radius: 50%; font-weight: 760; }
.profile-fragment__person > div,
.profile-fragment__event > div { display: grid; }
.profile-fragment__tabs { display: flex; gap: 6px; margin: 16px 0; padding: 4px; background: var(--surface-muted); border-radius: 12px; }
.profile-fragment__tabs span { flex: 1; padding: 8px 6px; color: var(--muted); border-radius: 9px; font-size: 10px; text-align: center; }
.profile-fragment__tabs .is-active { color: var(--accent); background: var(--surface-solid); font-weight: 720; }
.profile-fragment__event { justify-content: flex-start; padding: 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.profile-fragment__event > span { width: 58px; height: 48px; flex: none; background: linear-gradient(145deg, #5365bc, #238e89); border-radius: 10px; }

.settings-fragment { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.settings-fragment__group { display: grid; gap: 9px; padding: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.settings-fragment__group > span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.settings-fragment__group i { width: 28px; height: 17px; display: inline-block; background: var(--accent-soft); border-radius: 999px; box-shadow: inset 12px 0 0 var(--accent); }

.landing-page .final-cta { margin-top: 16px; }

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .landing-page .hero--brand .hero__copy,
  .landing-skin-switch,
  .landing-story__stage,
  .landing-story__feed,
  .landing-demo-card,
  .possibility-story,
  .possibility-story__preview { background: var(--surface-solid); }
}

@media (max-width: 980px) {
  .landing-page .hero--brand .hero__copy { align-items: flex-start; flex-direction: column; }
  .landing-page .hero--brand .hero__actions { justify-content: flex-start; }
  .landing-story__layout { grid-template-columns: minmax(0, 1fr) minmax(240px, 285px); gap: 22px; }
  .landing-story__stage { min-height: 620px; }
  .landing-story__camera { padding-inline: 10px; }
  .possibility-story { grid-template-columns: 1fr; min-height: 0; }
  .possibility-story:nth-child(even) .possibility-story__copy { order: 0; }
}

@media (max-width: 760px) {
  .landing-page .hero.hero--brand { width: min(calc(100% - 24px), 620px); padding: 94px 0 15px; }
  .landing-page .hero--brand .hero__copy { padding: 24px 21px; border-radius: 26px; }
  .hero__statement { font-size: clamp(42px, 13vw, 62px); }
  .landing-page .hero--brand .hero__actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .landing-page .hero--brand .hero__actions .button { width: 100%; }
  .landing-page .hero__scroll { display: none; }

  .landing-story { --camera-scale: calc(.72 + (var(--story-progress) * .22) - (var(--story-end) * 1.25)); --camera-y: calc(90px - (var(--story-progress) * 670px) + (var(--story-end) * 2200px)); width: min(calc(100% - 20px), var(--content)); padding-top: 86px; }
  .landing-story__intro { width: min(calc(100% - 20px), 620px); }
  .landing-skin-switch { top: 77px; margin-bottom: 24px; }
  .landing-skin-switch__button { padding-inline: 13px; }
  .landing-story__layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .landing-story__stage-wrap { top: 76px; z-index: 2; }
  .landing-story__stage { height: min(62svh, 540px); min-height: 420px; border-radius: 27px; }
  .landing-story__steps { z-index: 4; margin-top: 12px; }
  .landing-story__step { min-height: 104svh; display: block; padding: 0 10px; opacity: .08; transform: none; pointer-events: none; }
  .landing-story__step.is-active { opacity: 1; pointer-events: auto; }
  .landing-story__step-copy {
    position: sticky;
    top: calc(100svh - 176px);
    width: min(100%, 340px);
    display: block;
    margin: 0 auto;
    padding: 13px 16px 15px;
    background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
    border: 1px solid color-mix(in srgb, var(--line) 82%, #fff 18%);
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(37, 45, 79, .14);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
    backdrop-filter: blur(22px) saturate(1.15);
  }
  .landing-story__step-number { width: 30px; height: 30px; margin-bottom: 8px; border-radius: 9px; }
  .landing-story__step h3 { font-size: 22px; }
  .landing-story__step p { margin-top: 7px; font-size: 13px; line-height: 1.4; }

  .landing-demo-card { width: min(100%, 520px); border-radius: 26px; }
  .landing-demo-card__gallery { height: 255px; }
  .landing-demo-card__body { gap: 17px; padding: 21px 20px 23px; }
  .landing-demo-card__participants { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .landing-demo-card__participants::-webkit-scrollbar { display: none; }
  .landing-demo-card__participants li { min-width: 76px; scroll-snap-align: start; }
  .landing-demo-card__question-panel { right: -2px; left: -2px; }

  .possibilities { width: min(calc(100% - 28px), var(--content)); padding-top: 88px; }
  .possibility-story { gap: 28px; padding: 27px 20px; border-radius: 27px; }
  .possibility-story__preview { padding: 13px; border-radius: 19px; }
  .feed-fragment__cards { grid-template-columns: 1fr; }
  .feed-fragment__cards > div:nth-child(2) { display: none; }
  .settings-fragment { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .landing-page .hero--brand .hero__copy { gap: 23px; }
  .hero__wordmark { font-size: 18px; }
  .landing-story__stage { height: min(62svh, 520px); min-height: 420px; }
  .landing-story__feed { inset: 10px; padding: 16px; }
  .landing-story__feed-grid { gap: 8px; }
  .landing-story__feed-grid article { padding: 8px; }
  .landing-story__feed-image { height: 100px; }
  .landing-demo-card__gallery-button { top: auto; bottom: 12px; transform: none; }
  .landing-demo-card__gallery-button:active { transform: scale(.94); }
  .landing-demo-card__gallery-dots { bottom: 25px; }
  .landing-demo-card__header h3 { font-size: 27px; }
  .landing-demo-card__section-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .landing-page .final-cta { width: min(calc(100% - 28px), var(--content)); }
}

@media (prefers-reduced-transparency: reduce) {
  .landing-page .hero--brand .hero__copy,
  .landing-skin-switch,
  .landing-story__stage,
  .landing-story__feed,
  .landing-demo-card,
  .landing-demo-card__question-panel,
  .possibility-story,
  .possibility-story__preview {
    background: var(--surface-solid) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

@media (prefers-contrast: more) {
  .landing-story__stage,
  .landing-demo-card,
  .possibility-story,
  .possibility-story__preview { background: var(--surface-solid); border-width: 2px; }
  .landing-story__step { opacity: .72; }
  .landing-story__step.is-active { opacity: 1; }
}

/* JS ставит этот класс синхронно с системной настройкой. Он оставляет
   конечное состояние сцены предсказуемым и в браузерах без обновляемых
   media-query анимаций. */
.landing-story.is-reduced-motion {
  --story-progress: 1 !important;
  --scene-progress: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
  .landing-story__stage-glow { display: none !important; }
  .landing-story {
    --story-progress: 1 !important;
    --scene-progress: 1 !important;
    padding-bottom: 40px;
  }

  .landing-story__layout { grid-template-columns: 1fr; }
  .landing-story__stage-wrap { position: relative; top: auto; }
  .landing-story__stage { height: auto; min-height: 0; overflow: visible; padding: 20px; }
  .landing-story__camera { position: relative; inset: auto; padding: 0; transform: none !important; }
  .landing-story__feed { display: none; }
  .landing-story__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
  .landing-story__step { min-height: 0; padding: 18px; opacity: 1; transform: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
  .landing-story__step-number { margin-bottom: 12px; }
  .landing-story__step h3 { font-size: 18px; }
  .landing-story__step p { font-size: 13px; }
  .landing-story .landing-demo-card__gallery img,
  .landing-story .landing-demo-card__modifier,
  .landing-story .landing-demo-card__facts,
  .landing-story .landing-demo-card__description,
  .landing-story .landing-demo-card__venue-link,
  .landing-story .landing-demo-card__people,
  .landing-story .landing-demo-card__vote,
  .landing-story .landing-demo-card__question { opacity: 1; transform: none; pointer-events: auto; transition: none; }
  .landing-demo-card__slide,
  .landing-demo-card__progress span,
  .landing-story__step,
  .landing-skin-switch__button { transition: none !important; }
}

@media (prefers-reduced-motion: reduce) and (max-width: 760px) {
  .landing-story__stage { padding: 10px; }
  .landing-story__steps { grid-template-columns: 1fr; }
}

/* Landing story v2 ---------------------------------------------------------
   A single, real-sized event card is assembled by the GSAP master timeline.
   These rules intentionally live after the original landing experiment so the
   static fallback and the new pinned scene share one source of truth. */

.landing-page .hero.hero--brand {
  width: min(calc(100% - 48px), 1240px);
  min-height: 0;
  align-items: flex-start;
  padding: clamp(96px, 11vh, 118px) 0 clamp(28px, 4vh, 42px);
}

.landing-page .hero--brand .hero__copy {
  align-items: center;
  gap: clamp(22px, 4vw, 54px);
  padding: clamp(19px, 2.2vw, 27px);
  border-radius: 25px;
}

.landing-page .hero--brand h1 {
  max-width: 680px;
  gap: 4px;
}

.hero__wordmark {
  font-size: clamp(16px, 1.45vw, 21px);
}

.hero__statement {
  font-size: clamp(32px, 3.8vw, 52px);
  letter-spacing: -.065em;
}

.landing-page .hero__scroll {
  bottom: 18px;
}

.landing-details,
html[data-theme="dark"] .landing-details {
  overflow: visible;
}

.landing-story {
  width: 100%;
  padding: clamp(36px, 4vw, 52px) 0 0;
}

.landing-story__intro {
  width: min(calc(100% - 40px), 760px);
  margin-bottom: clamp(18px, 2.4vw, 28px);
  padding-block: 0;
}

.landing-story__intro h2 {
  text-wrap: balance;
}

.has-js .landing-story:not(.is-story-ready) .landing-story__pin {
  visibility: hidden;
}

.landing-story__pin {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 94px max(22px, calc((100% - 1480px) / 2)) 16px;
  overflow: clip;
}

.landing-story__toolbar {
  position: absolute;
  top: 84px;
  right: 24px;
  left: 24px;
  z-index: 30;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.landing-skin-switch {
  position: relative;
  top: auto;
  margin: 0;
  pointer-events: auto;
}

.landing-story__layout {
  width: 100%;
  height: calc(100svh - 110px);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(650px, 1.5fr) minmax(250px, .5fr);
  align-items: center;
  gap: 0;
}

.landing-story__stage-wrap {
  position: relative;
  top: 0;
  min-width: 0;
  align-self: stretch;
}

.landing-story__stage {
  position: absolute;
  inset: 0;
  height: auto;
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  perspective: 1600px;
  isolation: isolate;
}

.landing-story__stage::before,
.landing-story__stage-glow,
.landing-story__feed {
  display: none;
}

.landing-story__camera {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 0;
  transform: none;
  transform-origin: center center;
  will-change: auto;
}

.landing-demo-experience {
  position: relative;
  width: min(720px, 100%);
  padding-top: 40px;
  transform-style: flat;
  place-self: unsafe center;
}

.landing-demo-owner {
  position: absolute;
  top: -10px;
  left: 20px;
  z-index: 8;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}

.landing-demo-owner__avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--accent-fill);
  border: 2px solid color-mix(in srgb, var(--surface-solid) 88%, transparent);
  border-radius: 50%;
  box-shadow: 0 7px 18px rgba(36, 42, 68, .15);
  font-size: 12px;
  font-weight: 760;
}

.landing-demo-owner__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.landing-demo-owner__avatar [hidden],
.landing-demo-card__slide[hidden],
.landing-demo-card__participant[hidden],
.landing-demo-card__vote-empty[hidden] {
  display: none !important;
}

.landing-demo-owner__copy {
  display: grid;
  gap: 1px;
}

.landing-demo-owner__copy small {
  color: var(--muted);
  font-size: 10px;
}

.landing-demo-owner__copy strong {
  font-size: 12px;
}

.landing-demo-card {
  position: relative;
  width: 720px;
  max-width: 100%;
  min-height: 0;
  overflow: visible;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 26px;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  isolation: isolate;
}

.landing-demo-card__material {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 72%, #fff 28%);
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(12px) saturate(1.08);
  backdrop-filter: blur(12px) saturate(1.08);
  pointer-events: none;
}

.landing-demo-card__gallery {
  --gallery-translate: 0%;
  position: relative;
  height: 220px;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface-muted));
  border-radius: 26px 26px 0 0;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  isolation: isolate;
  z-index: 1;
}

.landing-demo-card__gallery.is-dragging {
  cursor: grabbing;
}

.landing-demo-card__slides,
.landing-demo-card__slide {
  position: absolute;
  inset: 0;
  margin: 0;
}

.landing-demo-card__slide {
  transform: translate3d(calc((var(--slide-index, 0) * 100%) + var(--gallery-translate)), 0, 0);
  transition: none;
  will-change: transform;
}

.landing-demo-card__slide[data-slide-index="0"] { --slide-index: 0; }
.landing-demo-card__slide[data-slide-index="1"] { --slide-index: 1; }
.landing-demo-card__slide[data-slide-index="2"] { --slide-index: 2; }
.landing-demo-card__gallery.is-dragging .landing-demo-card__slide { transition: none; }

.landing-story .landing-demo-card__slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 1;
  transform: none;
  pointer-events: none;
  transition: none;
  user-select: none;
}

.landing-demo-card__modifier {
  top: 13px;
  left: 13px;
  padding: 6px 10px;
  font-size: 11px;
}

.landing-demo-card__gallery-button {
  width: 38px;
  height: 38px;
  padding: 0;
  line-height: 0;
  opacity: .9;
}

.landing-demo-card__gallery-button svg {
  width: 20px;
  height: 20px;
  display: block;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-demo-card__gallery-button--prev { left: 12px; }
.landing-demo-card__gallery-button--next { right: 12px; }
.landing-demo-card__gallery-dots { bottom: 12px; }

.landing-demo-card__body {
  position: relative;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 15px 19px 16px;
  z-index: 1;
}

.landing-demo-card__header {
  display: grid;
  gap: 0;
}

.landing-demo-card__header h3 {
  margin: 0;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.landing-demo-card__meta {
  display: grid;
  gap: 5px;
  margin-top: 1px;
}

.landing-demo-card__when,
.landing-demo-card__place {
  min-height: 27px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.landing-demo-card__meta-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.landing-demo-card__meta-icon svg {
  width: 100%;
  height: 100%;
}

.landing-demo-card__calendar {
  min-height: 26px;
  padding: 4px 8px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 10px;
  font-weight: 680;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.landing-demo-card__place a {
  color: inherit;
  text-decoration-color: color-mix(in srgb, currentColor 30%, transparent);
  text-underline-offset: 3px;
}

.landing-demo-card__description {
  margin: 1px 0 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.48;
}

.landing-demo-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.landing-demo-card__links a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent-soft) 72%, transparent);
  border-radius: 9px;
  font-size: 10px;
  font-weight: 680;
  text-decoration: none;
}

.landing-demo-card__links svg {
  width: 14px;
  height: 14px;
}

.landing-demo-card__vote-progress {
  display: grid;
  gap: 7px;
  margin-top: 1px;
  padding: 11px 12px;
  background: color-mix(in srgb, var(--accent-soft) 39%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: 14px;
}

.landing-demo-card__vote-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.landing-demo-card__vote-progress-head > span:first-child {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.landing-demo-card__vote-progress-head b {
  color: var(--accent);
  font-size: 16px;
  letter-spacing: -.035em;
}

.landing-demo-card__progress {
  --demo-vote-progress: .6;
  height: 5px;
  margin: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface-solid));
  border-radius: 999px;
}

.landing-demo-card__progress span {
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 58%, #42ad9e));
  border-radius: inherit;
  transform: scaleX(var(--demo-vote-progress));
  transform-origin: left center;
  transition: transform 520ms cubic-bezier(.2, .8, .2, 1);
}

.landing-demo-card__participants {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.landing-demo-card__participant {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px 3px 3px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-solid) 64%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 9px;
}

.landing-demo-card__participant-avatar {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent-fill);
  border-radius: 50%;
  font-size: 8px;
  font-weight: 760;
}

.landing-demo-card__vote-empty {
  color: var(--muted);
  font-size: 10px;
}

.landing-demo-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

.landing-demo-card__actions .button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 11px;
}

.landing-demo-card__question-toggle svg {
  width: 15px;
  height: 15px;
}

.landing-demo-card__question-panel {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 14;
  display: grid;
  gap: 8px;
  padding: 13px;
  background: color-mix(in srgb, var(--surface-solid) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(37, 45, 79, .18);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  backdrop-filter: blur(20px) saturate(1.12);
}

.landing-demo-card__question-example,
.landing-demo-card__question-panel label,
.landing-demo-card__question-status {
  margin: 0;
  font-size: 10px;
}

.landing-demo-card__question-example dd {
  margin: 3px 0 0;
  color: var(--muted);
}

.landing-demo-card__question-panel textarea {
  width: 100%;
  resize: none;
}

.landing-story__narrative {
  position: relative;
  z-index: 12;
  width: min(340px, calc(100% + 52px));
  margin-left: -52px;
  padding: 0 10px 0 0;
  pointer-events: none;
}

.landing-story__steps {
  position: relative;
  min-height: 112px;
  display: block;
}

.landing-story__step {
  position: absolute;
  inset: 0;
  min-height: 0;
  display: block;
  padding: 0;
  color: var(--ink);
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  pointer-events: none;
  transition: none;
}

.landing-story:not(.is-story-ready) .landing-story__step:first-child,
.landing-story__step.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.landing-story__step-number {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
}

.landing-story__step h3 {
  margin: 0;
  font-size: clamp(25px, 2.25vw, 34px);
  letter-spacing: -.045em;
  line-height: 1.05;
  text-wrap: balance;
}

.landing-story:not(.is-card-interactive) .landing-demo-card button,
.landing-story:not(.is-card-interactive) .landing-demo-card a,
.landing-story:not(.is-card-interactive) .landing-demo-card__gallery {
  pointer-events: none;
}

.landing-story.is-card-interactive .landing-demo-card {
  box-shadow: none;
}

.feed-fragment__cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feed-fragment__cards > article {
  min-width: 0;
}

.feed-fragment__toolbar a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--accent);
  font-size: 12px;
  font-weight: 680;
  text-underline-offset: 3px;
}

.feed-fragment__card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 78%, #fff 22%);
  border-radius: 17px;
  box-shadow: 0 10px 26px rgba(43, 49, 79, .08), inset 0 1px 0 rgba(255, 255, 255, .66);
}

.feed-fragment__cover {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  background: var(--surface-muted);
  border-radius: 0;
}

.feed-fragment__media {
  position: relative;
  overflow: hidden;
}

.feed-fragment__body {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  padding: 11px 12px 12px;
}

.feed-fragment__body h4 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.feed-fragment__owner {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 7px 3px 3px;
  color: var(--accent);
  background: color-mix(in srgb, var(--surface-solid) 74%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
}

.feed-fragment__owner i,
.feed-fragment__owner img {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent-fill);
  border-radius: 50%;
  font-size: 8px;
  font-style: normal;
}

.feed-fragment__owner img {
  object-fit: cover;
}

.feed-fragment__meta {
  min-width: 0;
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.feed-fragment__modifier,
.feed-fragment__link {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 680;
  line-height: 1.3;
}

.feed-fragment__media .feed-fragment__modifier {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  color: #fff;
  background: linear-gradient(135deg, #34b36b, #15734a);
  border: 1px solid rgba(255, 255, 255, .42);
  box-shadow: 0 2px 8px rgba(20, 16, 19, .22);
}

.feed-fragment__link {
  text-decoration: none;
}

.feed-fragment__actions {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 6px;
  margin-top: auto;
  padding-top: 3px;
}

.feed-fragment__actions a,
.feed-fragment__actions .is-added {
  min-width: 0;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 7px;
  overflow: hidden;
  color: var(--accent);
  background: color-mix(in srgb, var(--surface-solid) 72%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 680;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-fragment__actions a:first-child {
  color: #fff;
  background: var(--accent-fill);
  border-color: transparent;
}

.feed-fragment__actions .is-added {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.profile-fragment__person > img {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: cover;
  border: 2px solid var(--surface-solid);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(38, 43, 68, .14);
}

.profile-fragment__tabs {
  display: flex;
  gap: 6px;
  margin: 16px 0;
  padding: 0;
  overflow-x: auto;
  background: transparent;
  border-radius: 0;
  scrollbar-width: none;
}

.profile-fragment__tabs::-webkit-scrollbar {
  display: none;
}

.profile-fragment__tabs button {
  min-height: 40px;
  flex: 1 0 auto;
  padding: 8px 11px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-solid) 76%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}

.profile-fragment__tabs button b {
  margin-left: 3px;
  color: inherit;
  font-size: 9px;
}

.profile-fragment__tabs button.is-active {
  color: #fff;
  background: var(--accent-fill);
  border-color: transparent;
  box-shadow: 0 7px 18px color-mix(in srgb, var(--accent) 20%, transparent);
}

.profile-fragment__tabs button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 32%, transparent);
  outline-offset: 2px;
}

.profile-fragment__panel[hidden] {
  display: none !important;
}

.profile-fragment__panel {
  display: grid;
  gap: 8px;
}

.profile-fragment__event {
  display: grid;
  grid-template-columns: minmax(92px, 32%) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 8px;
  overflow: hidden;
}

.profile-fragment__event > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.profile-fragment__event > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.profile-fragment__event strong,
.profile-fragment__review strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.profile-fragment__review {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 11px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.profile-fragment__review > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

.profile-fragment__review > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 1px 3px 3px;
}

.profile-fragment__stars {
  color: #efad35;
  font-size: 11px;
  letter-spacing: .06em;
}

.profile-fragment__review p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.settings-fragment {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 0;
  padding: 22px;
  overflow: hidden;
  background:
    linear-gradient(145deg,
      color-mix(in srgb, var(--accent-soft) 76%, var(--surface-solid)) 0%,
      color-mix(in srgb, var(--surface-solid) 88%, transparent) 48%,
      color-mix(in srgb, var(--accent) 18%, var(--surface-solid)) 100%);
}

.settings-fragment__group {
  position: relative;
  width: 82%;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
}

.settings-fragment__group:first-child {
  justify-self: start;
  z-index: 2;
  color: #fff;
  background: var(--accent-fill);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 27%, transparent), inset 0 1px 0 rgba(255, 255, 255, .3);
  transform: rotate(-1.35deg);
}

.settings-fragment__group:last-child {
  width: 92%;
  justify-self: end;
  z-index: 3;
  margin-top: -13px;
  background:
    linear-gradient(145deg,
      color-mix(in srgb, var(--surface-solid) 96%, var(--accent) 4%),
      color-mix(in srgb, var(--accent-soft) 56%, var(--surface-solid)));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line));
  box-shadow: 0 20px 46px rgba(38, 43, 68, .16), inset 0 1px 0 rgba(255, 255, 255, .7);
  transform: rotate(.8deg);
}

.settings-fragment__group h4 {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 18px;
  letter-spacing: -.025em;
}

.settings-fragment__group h4 small {
  padding: 5px 8px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-solid) 76%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 680;
  letter-spacing: 0;
}

.settings-fragment__group:first-child h4 small {
  color: #fff;
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .2);
}

.settings-fragment__group ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.settings-fragment__group:first-child ul {
  grid-template-columns: 1fr;
}

.settings-fragment__group li {
  min-width: 0;
  min-height: 39px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: color-mix(in srgb, var(--surface-solid) 74%, var(--accent-soft));
  border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
  border-radius: 13px;
}

.settings-fragment__group:first-child li {
  color: #fff;
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .2);
}

.settings-fragment__group:last-child li:nth-child(4n + 2),
.settings-fragment__group:last-child li:nth-child(4n + 3) {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface-solid));
}

.settings-fragment__group li > i {
  width: 13px;
  min-width: 13px;
  height: 13px;
  flex: 0 0 auto;
  display: block;
  background: var(--accent-fill);
  border: 2px solid color-mix(in srgb, var(--surface-solid) 88%, transparent);
  border-radius: 4px;
  box-shadow: 0 3px 8px color-mix(in srgb, var(--accent) 24%, transparent);
  font-style: normal;
  transform: rotate(45deg);
}

.settings-fragment__group:first-child li > i {
  background: #fff;
  border-color: rgba(255, 255, 255, .35);
  box-shadow: 0 3px 8px rgba(16, 20, 48, .18);
}

.settings-fragment__group li strong {
  min-width: 0;
  color: var(--ink);
  font-size: 10px;
  line-height: 1.3;
}

.settings-fragment__group:first-child li strong {
  color: #fff;
}

@media (min-width: 1180px) {
  .landing-story__stage-wrap {
    margin-right: -30px;
  }

  .landing-demo-experience {
    width: 720px;
  }
}

@media (max-width: 980px) {
  .landing-story__pin {
    padding-inline: 18px;
  }

  .landing-story__layout {
    grid-template-columns: minmax(520px, 1fr) minmax(235px, 270px);
  }

  .landing-story__narrative {
    width: min(310px, calc(100% + 46px));
    margin-left: -46px;
  }

  .landing-demo-experience {
    width: 620px;
  }

  .landing-demo-card {
    width: 620px;
  }
}

@media (max-width: 760px) {
  .landing-page .hero.hero--brand {
    width: min(calc(100% - 24px), 620px);
    padding: 86px 0 28px;
  }

  .landing-page .hero--brand .hero__copy {
    align-items: flex-start;
    padding: 18px;
    border-radius: 21px;
  }

  .hero__statement {
    font-size: clamp(32px, 10vw, 44px);
  }

  .landing-page .hero--brand .hero__actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .landing-story {
    width: 100%;
    padding-top: 44px;
  }

  .landing-story__intro {
    margin-bottom: 16px;
  }

  .landing-story__pin {
    min-height: 100svh;
    display: block;
    padding: 0 6px 8px;
  }

  .landing-story__toolbar {
    top: 72px;
  }

  .landing-skin-switch__button {
    min-height: 40px;
    padding: 7px 12px;
  }

  .landing-story__layout {
    height: 100svh;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-story__stage-wrap {
    position: absolute;
    inset: 148px 4px 8px;
  }

  .landing-story__narrative {
    position: absolute;
    top: 124px;
    right: 14px;
    bottom: auto;
    left: 14px;
    width: auto;
    margin: 0;
    padding: 0 4px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .landing-story__steps {
    min-height: 34px;
  }

  .landing-story__step {
    padding-inline: 8px;
    text-align: center;
  }

  .landing-story__step-number {
    display: none;
  }

  .landing-story__step h3 {
    font-size: 18px;
    line-height: 1.12;
  }

  .landing-demo-experience,
  .landing-demo-card {
    width: 100%;
  }

  .landing-demo-owner {
    top: -8px;
    right: auto;
    left: 20px;
  }

  .landing-demo-card {
    min-height: 0;
  }

  .landing-demo-card__gallery {
    height: 190px;
  }

  .landing-demo-card__body {
    min-height: 0;
    gap: 8px;
    padding: 15px 16px 20px;
  }

  .landing-demo-card__actions {
    margin-top: 12px;
  }

  .landing-demo-card__description {
    min-height: 36px;
  }

  .landing-demo-card__participants {
    min-height: 29px;
  }

  .landing-demo-card__header h3 {
    font-size: 22px;
  }

  .landing-demo-experience {
    padding-top: 40px;
    transform-style: flat;
  }

  .landing-demo-card__material {
    background: color-mix(in srgb, var(--surface-solid) 97%, var(--page));
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  html[data-theme="dark"] .landing-demo-card__material {
    border-color: rgba(255, 255, 255, .28);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, .1),
      inset 0 1px 0 rgba(255, 255, 255, .18);
  }

  .landing-demo-card__question-panel {
    right: 17px;
    bottom: 18px;
    left: 17px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .feed-fragment__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feed-fragment__cards > div:nth-child(2) {
    display: grid;
  }

  .profile-fragment__event {
    gap: 12px;
  }

  .profile-fragment__event > div {
    min-width: 0;
  }

  .settings-fragment {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .settings-fragment__group {
    width: 100%;
    transform: rotate(-.45deg);
  }

  .settings-fragment__group:last-child {
    width: 100%;
    margin-top: -7px;
    transform: rotate(1.2deg);
  }

  .possibilities {
    padding-top: 52px;
    padding-bottom: 20px;
  }

  .landing-page .final-cta {
    margin-top: 16px;
  }
}

@media (max-width: 760px) and (max-height: 700px) {
  .landing-demo-experience {
    padding-top: 32px;
  }

  .landing-demo-owner {
    min-height: 34px;
  }

  .landing-demo-owner__avatar {
    width: 34px;
    height: 34px;
  }

  .landing-demo-card {
    min-height: 0;
  }

  .landing-demo-card__gallery {
    height: 170px;
  }

  .landing-demo-card__body {
    min-height: 0;
    gap: 3px;
    padding: 10px 13px 14px;
  }

  .landing-demo-card__actions {
    margin-top: 11px;
  }

  .landing-demo-card__description {
    min-height: 31px;
  }

  .landing-demo-card__header h3 {
    font-size: 20px;
  }

  .landing-demo-card__meta {
    gap: 3px;
  }

  .landing-demo-card__when,
  .landing-demo-card__place {
    min-height: 21px;
    gap: 6px;
    font-size: 11px;
  }

  .landing-demo-card__description {
    font-size: 11px;
    line-height: 1.4;
  }

  .landing-demo-card__links a {
    min-height: 26px;
  }

  .landing-demo-card__vote-progress {
    gap: 4px;
    padding: 7px 9px;
  }

  .landing-demo-card__actions .button {
    min-height: 34px;
  }
}

html.d4y-theme-transition .landing-page .site-header__inner {
  background: var(--surface-solid);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html.d4y-theme-transition::view-transition-new(root) {
  will-change: clip-path;
}

@media (max-width: 520px) {
  .landing-story__stage-wrap {
    inset-inline: 2px;
  }

  .landing-story__narrative {
    right: 8px;
    left: 8px;
  }

  .landing-demo-experience,
  .landing-demo-card {
    width: 100%;
  }

  .landing-demo-card__gallery-button {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .landing-demo-card__gallery-button:active {
    transform: translateY(-50%) scale(.94);
  }

  .landing-demo-card__gallery-dots {
    bottom: 12px;
  }

  .feed-fragment__cards {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .landing-story__stage {
    background: transparent !important;
  }

  .landing-demo-card__material,
  .landing-demo-card__question-panel {
    background: var(--surface-solid) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}

@media (prefers-contrast: more) {
  .landing-story__stage {
    background: transparent;
    border: 0;
  }

  .landing-demo-card__material {
    background: var(--surface-solid);
    border-width: 2px;
  }
}

.landing-story.is-reduced-motion {
  padding-bottom: 44px;
}

.landing-story.is-reduced-motion .landing-story__pin {
  min-height: 0;
  padding-block: 86px 30px;
  overflow: visible;
}

.landing-story.is-reduced-motion .landing-story__layout {
  height: auto;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
}

.landing-story.is-reduced-motion .landing-story__stage-wrap,
.landing-story.is-reduced-motion .landing-story__stage,
.landing-story.is-reduced-motion .landing-story__camera {
  position: relative;
  inset: auto;
  height: auto;
  min-height: 0;
  transform: none !important;
}

.landing-story.is-reduced-motion .landing-story__camera {
  padding: 14px;
}

.landing-story.is-reduced-motion .landing-demo-experience {
  margin: 0 auto;
  transform: none !important;
}

.landing-story.is-reduced-motion .landing-demo-card {
  clip-path: none !important;
}

.landing-story.is-reduced-motion .landing-demo-card__material,
.landing-story.is-reduced-motion [data-card-owner],
.landing-story.is-reduced-motion [data-card-essentials],
.landing-story.is-reduced-motion [data-card-details],
.landing-story.is-reduced-motion [data-card-people],
.landing-story.is-reduced-motion [data-card-actions] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

.landing-story.is-reduced-motion .landing-demo-card__material {
  clip-path: none !important;
}

.landing-story.is-reduced-motion .landing-story__narrative {
  width: min(700px, calc(100% - 28px));
  display: block;
  margin: 28px auto 0;
  padding: 0;
  pointer-events: auto;
}

.landing-story.is-reduced-motion .landing-story__steps {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.landing-story.is-reduced-motion .landing-story__step {
  position: relative;
  inset: auto;
  min-height: 0;
  padding: 14px 15px;
  opacity: 1 !important;
  transform: none !important;
  background: color-mix(in srgb, var(--surface-solid) 76%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 16px;
}

.landing-story.is-reduced-motion .landing-story__step-number {
  width: auto;
  height: auto;
  margin: 0 0 5px;
  display: block;
  color: var(--accent);
  background: none;
  border: 0;
  font-size: 9px;
}

.landing-story.is-reduced-motion .landing-story__step h3 {
  font-size: 17px;
}

.landing-story.is-reduced-motion .landing-story__step p {
  margin-top: 4px;
  font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .landing-story__pin,
  .landing-story__layout,
  .landing-story__stage-wrap,
  .landing-story__stage,
  .landing-story__camera {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 0;
    transform: none !important;
  }

  .landing-story__layout {
    grid-template-columns: 1fr;
  }

  .landing-story.is-reduced-motion .landing-story__steps {
    grid-template-columns: 1fr;
  }

  .landing-demo-card__slide,
  .landing-demo-card__progress span,
  .landing-skin-switch__button {
    transition: none !important;
  }
}
