/* Анфас, продающие страницы. Тёмная студия, белый свет, паспортный бордо. */

@font-face { font-family: "Anfas Display"; src: url("/static/fonts/InterDisplay-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Anfas Display"; src: url("/static/fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --night: #1c0a10;
  --night-2: #2c0f19;
  --wine: #7b1e34;
  --rose: #e8a9b4;
  --paper: #fbfaf8;
  --tint: #f3efeb;
  --white: #fff;
  --ink: #17151a;
  --ink-2: #5f5c66;
  --on-dark: #f6efe9;
  --on-dark-2: rgba(246, 239, 233, .68);
  --line: rgba(23, 21, 26, .1);
  --line-dark: rgba(246, 239, 233, .16);
  --ok: #49d08f;
  --display: "Anfas Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --loop: 11s;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .display { font-family: var(--display); letter-spacing: -.03em; text-wrap: balance; }
h1, .display { font-size: clamp(50px, 8.2vw, 112px); line-height: .94; font-weight: 700; }
h1 em, .display em { font-style: normal; color: var(--rose); }
.hero-doc h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1; }
h2 { font-size: clamp(34px, 4.8vw, 62px); line-height: 1.02; font-weight: 700; }
h3 { font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
.h3 { font-size: 26px; margin-bottom: 18px; }
.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 24px; }
.lead { color: var(--ink-2); font-size: clamp(18px, 1.7vw, 21px); line-height: 1.45; margin-top: 18px; max-width: 34em; }
.eyebrow { display: block; font: 600 13px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--wine); margin-bottom: 16px; }
.tiny { font-size: 13px; opacity: .65; }
.link { display: inline-block; margin-top: 18px; color: var(--wine); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; background: var(--wine); color: #fff; font: 600 17px/1 var(--text); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(123, 30, 52, .7); }
.btn:active { transform: none; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-light { background: var(--white); color: var(--night); }
.btn-light:hover { box-shadow: 0 16px 44px -14px rgba(255, 255, 255, .5); }
.btn-ghost { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--on-dark); }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

/* ---------- шапка ---------- */
.nav { position: fixed; z-index: 30; top: 0; left: 0; right: 0; color: var(--on-dark); transition: background .3s, color .3s, box-shadow .3s; }
.nav-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav nav a { text-decoration: none; opacity: .8; }
.nav nav a:hover { opacity: 1; }
.nav .btn { background: var(--white); color: var(--night); }
.nav.solid { background: rgba(251, 250, 248, .9); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav.solid .btn { background: var(--wine); color: #fff; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 21px/1 var(--display); letter-spacing: -.02em; text-decoration: none; }

/* ---------- первый экран ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(90% 70% at 72% 18%, #4a1525 0%, var(--night-2) 42%, var(--night) 100%); color: var(--on-dark); padding: 128px 0 84px; }
.hero .lead { color: var(--on-dark-2); }
.hero .eyebrow, .sec-dark .eyebrow { color: var(--rose); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-solo { grid-template-columns: 1fr; max-width: 900px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 26px 0 0; font-size: 14px; }
.chips li { padding: 7px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--on-dark-2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--on-dark-2); margin-bottom: 20px; }
.crumbs a { color: inherit; }

/* Лучи софтбокса */
.beams { position: absolute; inset: -20% -10%; pointer-events: none; }
.beams i { position: absolute; top: -10%; left: var(--x); width: var(--w); height: 130%; background: linear-gradient(180deg, rgba(255, 233, 220, .22), transparent 72%); filter: blur(34px); transform: rotate(var(--r)); transform-origin: top; animation: beam 9s ease-in-out infinite alternate; }
.beams i:nth-child(1) { --x: 54%; --w: 170px; --r: 16deg; }
.beams i:nth-child(2) { --x: 68%; --w: 120px; --r: 4deg; animation-delay: -3s; }
.beams i:nth-child(3) { --x: 82%; --w: 200px; --r: -13deg; animation-delay: -6s; }
@keyframes beam { from { opacity: .55; transform: rotate(var(--r)) translateX(-22px); } to { opacity: 1; transform: rotate(calc(var(--r) + 3deg)) translateX(22px); } }

/* Превращение селфи в фото */
.lab { position: relative; width: min(100%, 410px); justify-self: center; }
.lab-photo { position: relative; aspect-ratio: 620 / 797; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 40px 90px -24px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08); animation: lab-level var(--loop) var(--ease) infinite; }
.lab-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lab-done { animation: lab-reveal var(--loop) linear infinite; }
.lab-mesh { animation: lab-mesh var(--loop) linear infinite; }
.lab-scan { position: absolute; left: 0; right: 0; height: 3px; background: var(--rose); box-shadow: 0 0 26px 7px rgba(232, 169, 180, .75); animation: lab-scan var(--loop) linear infinite; }
.lab-marks { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); fill: none; stroke: var(--wine); stroke-width: 2; animation: lab-final var(--loop) linear infinite; }
.lab-size { position: absolute; font: 600 12px/1 var(--text); color: var(--wine); background: #fff; padding: 3px 6px; animation: lab-final var(--loop) linear infinite; }
.lab-w { left: 50%; bottom: 5px; transform: translateX(-50%); }
.lab-h { right: -8px; top: 50%; transform: rotate(90deg); }
.lab-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; list-style: none; margin: 20px 0 0; padding: 0; font-size: 14px; color: var(--on-dark-2); }
.lab-steps li { display: flex; align-items: center; gap: 8px; animation: lab-step var(--loop) linear infinite; animation-delay: calc(var(--n) * 2s); }
.lab-steps li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.lab-steps li:nth-child(1) { --n: 0; } .lab-steps li:nth-child(2) { --n: 1; } .lab-steps li:nth-child(3) { --n: 2; } .lab-steps li:nth-child(4) { --n: 3; }
@keyframes lab-mesh { 0%, 6% { opacity: 0; } 12%, 30% { opacity: .95; } 38%, 100% { opacity: 0; } }
@keyframes lab-scan { 0%, 6% { top: -4%; opacity: 0; } 8% { opacity: 1; } 30% { top: 102%; opacity: 1; } 31%, 100% { top: 102%; opacity: 0; } }
@keyframes lab-level { 0%, 32% { transform: rotate(-2.6deg) scale(.985); } 42%, 100% { transform: none; } }
@keyframes lab-reveal { 0%, 42% { clip-path: inset(0 0 100% 0); } 60%, 94% { clip-path: inset(0); } 100% { clip-path: inset(100% 0 0 0); } }
@keyframes lab-final { 0%, 60% { opacity: 0; } 66%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lab-step { 0%, 3% { color: var(--on-dark-2); } 6%, 22% { color: var(--on-dark); } 30%, 100% { color: var(--on-dark-2); } }

/* Бегущая строка */
.ticker { overflow: hidden; background: var(--wine); color: #fff; padding: 15px 0; }
.ticker div { display: flex; gap: 42px; width: max-content; font: 600 19px/1 var(--display); animation: ticker 36s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 42px; white-space: nowrap; }
.ticker span::after { content: "✦"; opacity: .55; font-size: 13px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- секции ---------- */
.sec { padding: clamp(72px, 10vw, 128px) 0; }
.sec-tint { background: var(--tint); }
.sec-dark { background: var(--night); color: var(--on-dark); }
.sec-dark p { color: var(--on-dark-2); }
.head { max-width: 760px; margin-bottom: 48px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tabs button { border: 0; padding: 10px 15px; border-radius: 999px; background: var(--tint); font: 500 15px/1.1 var(--text); color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--wine); color: #fff; }

.cmp { position: relative; aspect-ratio: 620 / 797; width: min(100%, 460px); justify-self: center; overflow: hidden; border-radius: 10px; background: var(--tint); box-shadow: 0 34px 70px -34px rgba(23, 21, 26, .55); --pos: 50%; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-b { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .4); pointer-events: none; }
.cmp-bar::after { content: "↔"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 42px; height: 42px; margin: -21px; border-radius: 50%; background: #fff; color: var(--wine); font-size: 18px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.tag { position: absolute; bottom: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(23, 21, 26, .72); color: #fff; font-size: 13px; pointer-events: none; }
.tag-l { left: 12px; } .tag-r { right: 12px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.steps li { padding: 30px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line-dark); background: linear-gradient(160deg, rgba(255, 255, 255, .06), transparent 60%); }
.steps span { display: block; font: 700 58px/1 var(--display); color: var(--rose); margin-bottom: 22px; }
.steps h3 { margin-bottom: 8px; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento article { position: relative; min-height: 270px; padding: 26px; border-radius: 22px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bento .b-wide { grid-column: span 2; }
.bento p { color: var(--ink-2); margin-top: 8px; max-width: 28em; font-size: 16px; }
.fx { position: absolute; left: 26px; right: 26px; bottom: 22px; height: 96px; }

.fx-tilt i { position: absolute; left: 50%; bottom: 0; width: 66px; height: 88px; margin-left: -33px; border-radius: 48% 48% 44% 44%; background: var(--tint); box-shadow: inset 0 0 0 2px var(--wine); transform-origin: 50% 100%; animation: fx-tilt 5s var(--ease) infinite; }
.fx-tilt::after { content: ""; position: absolute; left: 0; right: 0; top: 34px; border-top: 2px dashed rgba(123, 30, 52, .4); }
@keyframes fx-tilt { 0%, 18% { transform: rotate(-9deg); } 50%, 100% { transform: none; } }

.fx-edge i { position: absolute; bottom: 0; width: 3px; border-radius: 3px; background: var(--ink); transform-origin: bottom; animation: fx-hair 3.2s ease-in-out infinite alternate; }
.fx-edge i:nth-child(1) { left: 35%; height: 76px; transform: rotate(-12deg); }
.fx-edge i:nth-child(2) { left: 48%; height: 92px; animation-delay: -1s; }
.fx-edge i:nth-child(3) { left: 61%; height: 70px; transform: rotate(14deg); animation-delay: -2s; }
@keyframes fx-hair { from { rotate: -3deg; } to { rotate: 3deg; } }

.fx-skin i { position: absolute; inset: 14px 0; border-radius: 16px; background: linear-gradient(90deg, #e9b98a, #efc7ad, #f2cdb9); background-size: 300% 100%; animation: fx-skin 5s ease-in-out infinite alternate; }
@keyframes fx-skin { from { background-position: 0 0; filter: saturate(1.7) hue-rotate(-8deg); } to { background-position: 100% 0; filter: none; } }

.fx-size i { position: absolute; left: 50%; top: 2px; width: 70px; height: 90px; margin-left: -35px; box-shadow: inset 0 0 0 2px var(--wine); animation: fx-size 4.4s var(--ease) infinite; }
.fx-size i::before, .fx-size i::after { position: absolute; font-size: 11px; color: var(--wine); }
.fx-size i::before { content: "35"; left: 28px; bottom: -3px; background: var(--white); padding: 0 3px; }
.fx-size i::after { content: "45"; right: -5px; top: 36px; background: var(--white); }
@keyframes fx-size { 0%, 18% { transform: scale(1.32, 1.1); opacity: .45; } 55%, 100% { transform: none; opacity: 1; } }

.fx-id i { position: absolute; top: 4px; width: 66px; height: 86px; border-radius: 48% 48% 44% 44%; background: var(--tint); box-shadow: inset 0 0 0 2px var(--wine); }
.fx-id i:nth-child(1) { left: calc(50% - 76px); }
.fx-id i:nth-child(2) { left: calc(50% + 10px); }
.fx-id::after { content: "="; position: absolute; left: 50%; top: 28px; width: 24px; margin-left: -12px; text-align: center; font: 700 26px/1.2 var(--display); color: var(--wine); animation: fx-pulse 2.4s ease-in-out infinite; }
@keyframes fx-pulse { 50% { transform: scale(1.3); } }

.docs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.doc { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 232px; padding: 20px; border-radius: 18px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.doc:hover { transform: translateY(-5px); box-shadow: inset 0 0 0 1.5px var(--wine), 0 24px 40px -28px rgba(123, 30, 52, .8); }
.doc-shape { display: block; margin: 0 0 auto; border-radius: 3px; background: var(--tint); box-shadow: 0 0 0 1px var(--line), 0 10px 22px -12px rgba(28, 10, 16, .35); }
.doc b { font: 600 18px/1.2 var(--display); margin-top: 18px; }
.doc span:not(.doc-shape) { color: var(--ink-2); font-size: 14px; line-height: 1.3; }
.doc i { position: absolute; top: 18px; right: 18px; font-style: normal; color: var(--wine); transition: transform .3s var(--ease); }
.doc:hover i, .reject:hover i { transform: translateX(5px); }
.reject { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding: 22px 24px; border-radius: 18px; background: var(--tint); text-decoration: none; }
.reject span { color: var(--ink-2); }
.reject i { margin-left: auto; font-style: normal; color: var(--wine); transition: transform .3s var(--ease); }

.price { display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: center; }
.ticket { position: relative; padding: 34px; border-radius: 26px; background: var(--night); color: var(--on-dark); overflow: hidden; }
.ticket::before { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(232, 169, 180, .26), transparent 34%); animation: spin 12s linear infinite; }
.ticket > * { position: relative; }
.ticket > span { color: var(--on-dark-2); }
.ticket strong { display: block; font: 700 clamp(64px, 8vw, 92px)/1 var(--display); letter-spacing: -.04em; margin: 6px 0 20px; }
.ticket ul { list-style: none; padding: 0; margin: 0 0 26px; }
.ticket li { padding: 8px 0 8px 26px; border-top: 1px solid var(--line-dark); position: relative; font-size: 16px; }
.ticket li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); }
.ticket .btn { width: 100%; background: var(--white); color: var(--night); }
@keyframes spin { to { transform: rotate(360deg); } }

.faq-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; font: 600 19px/1.3 var(--display); letter-spacing: -.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--wine); font-size: 24px; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--ink-2); padding: 0 0 16px; max-width: 40em; }

.specs { margin: 0; padding: 8px 26px; border-radius: 20px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.specs div { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); }
.specs div:first-child { border-top: 0; }
.specs dt { color: var(--ink-2); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; }
.ticks li { position: relative; padding: 8px 0 8px 28px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--wine); font-weight: 700; }
.split h2 + .ticks { margin-top: 22px; }
.others { display: flex; flex-wrap: wrap; gap: 8px; }
.others a { padding: 10px 15px; border-radius: 999px; background: var(--tint); text-decoration: none; }
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.reasons article { padding: 24px; border-radius: 18px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.reasons p { color: var(--ink-2); margin-top: 8px; font-size: 16px; }

.final { padding: clamp(84px, 12vw, 150px) 0; text-align: center; color: var(--on-dark); background: radial-gradient(70% 90% at 50% 100%, #5a1a2e, var(--night)); }
.final .lead { color: var(--on-dark-2); margin: 16px auto 28px; }

.foot { background: var(--night); color: var(--on-dark-2); padding: 48px 0; font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot .logo { color: var(--on-dark); margin-bottom: 12px; }
.foot nav { display: flex; flex-direction: column; gap: 9px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--on-dark); }

/* Появление при прокрутке: блоки всегда видны, движение только добавляет живости */
.js [data-reveal] { transform: translateY(20px); transition: transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { transform: none; }

.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vs > div { padding: 30px; border-radius: 22px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.vs .vs-us { background: var(--night); color: var(--on-dark); box-shadow: none; }
.vs h3 { margin-bottom: 14px; }
.vs ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.vs li { position: relative; padding-left: 28px; color: var(--ink-2); }
.vs li::before { content: "—"; position: absolute; left: 0; }
.vs .vs-us li { color: var(--on-dark); }
.vs .vs-us li::before { content: "✓"; color: var(--ok); font-weight: 700; }

@media (max-width: 980px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .hero { padding: 104px 0 56px; }
  .hero-in, .split, .price, .faq-wrap { grid-template-columns: 1fr; gap: 36px; }
  .lab { width: min(100%, 330px); }
  .steps, .reasons, .vs { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .docs { grid-template-columns: repeat(2, 1fr); }
  .bento article:last-child { grid-column: span 2; }
  .foot-in { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .btn { width: 100%; }
  .btn-sm { width: auto; }
  .bento { grid-template-columns: 1fr; }
  .bento .b-wide, .bento article:last-child { grid-column: auto; }
  .ticket { padding: 26px 22px; }
  .hero-cta { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { transform: none; }
  .lab-done { clip-path: none; }
  .lab-mesh, .lab-scan { display: none; }
}
