@font-face { font-family: Unbounded; src: url("/fonts/unbounded-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url("/fonts/manrope-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url("/fonts/manrope-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

@property --pos { syntax: "<percentage>"; inherits: true; initial-value: 50%; }

:root {
  --bg: #0f1013;
  --card: #17181d;
  --gold: #f5b83d;
  --text: #f3f1ea;
  --muted: #b9b8b2;
  --line: rgba(243, 241, 234, 0.14);
  --max: 1180px;
  --pad: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 Manrope, system-ui, sans-serif;
  overflow-x: clip;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, summary { font: inherit; color: inherit; }
.wrap { width: min(var(--max), calc(100% - var(--pad) * 2)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--gold); color: var(--bg); padding: 8px 12px; z-index: 50; }
.skip:focus { top: 12px; }
h1, h2, h3, p, li, figcaption, summary, a { overflow-wrap: break-word; }
h1, h2, .logo, .big, .num {
  font-family: Unbounded, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
}
h1 { margin: 0; font-size: clamp(1.75rem, 7.2vw, 3.9rem); line-height: 1.06; }
h1 .ln { display: block; overflow: hidden; }
h1 .ln > i { display: block; font-style: normal; animation: line-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
h1 .ln:nth-child(2) > i { animation-delay: 0.1s; }
h1 .ln:nth-child(3) > i { animation-delay: 0.2s; }
h1 .ln:nth-child(4) > i { animation-delay: 0.3s; }
.g { color: var(--gold); }
h2 { margin: 0; font-size: clamp(1.5rem, 4.6vw, 2.7rem); line-height: 1.1; max-width: 20ch; }
h3 { margin: 0 0 8px; font-size: 1.12rem; line-height: 1.25; }
.lead { color: var(--muted); font-size: 1.12rem; max-width: 52ch; margin: 18px 0 0; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--gold); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 2.2s ease-out infinite; }

/* шапка */
.nav { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 1.1rem; }
.logo svg { width: 28px; height: 28px; }
.nav-links { display: none; gap: 6px 18px; margin-left: 16px; }
.nav-links a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover { color: var(--text); }
.nav .btn { margin-left: auto; min-height: 44px; padding-inline: 16px; font-size: 0.95rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; background: var(--gold); color: #14120c;
  text-decoration: none; border: 0; border-radius: 999px; font-weight: 600; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(245, 184, 61, 0.28); }
.btn-pulse { animation: glow 3s ease-in-out infinite; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* первый экран */
.hero { position: relative; padding: 28px 0 0; overflow: clip; }
.hero::before {
  content: "ФОТО"; position: absolute; right: -2vw; top: 4vh; z-index: 0;
  font: 700 clamp(7rem, 28vw, 24rem)/1 Unbounded, sans-serif; letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 241, 234, 0.07); pointer-events: none;
}
.spot { display: none; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 26px 0 0; }
.price-link { color: var(--gold); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; list-style: none; }
.facts li { background: var(--card); border-radius: 999px; padding: 8px 14px; color: var(--muted); }
.facts b { color: var(--text); }

.stage { position: relative; max-width: 460px; width: 100%; margin-inline: auto; }
.compare { --pos: 50%; position: relative; aspect-ratio: 3 / 4; border-radius: 26px; overflow: hidden; background: var(--card); animation: sweep 9s ease-in-out 1.2s infinite; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 2; }
.afters img { opacity: 0; animation: cycle 12s infinite; }
.afters img:nth-child(1) { animation-delay: 0s; }
.afters img:nth-child(2) { animation-delay: -8s; }
.afters img:nth-child(3) { animation-delay: -4s; }
.compare input { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare::after { content: ""; position: absolute; z-index: 3; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--gold); pointer-events: none; }
.compare::before { content: "↔"; position: absolute; z-index: 4; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #14120c; font-weight: 700; pointer-events: none; }
.lab { position: absolute; z-index: 4; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(15, 16, 19, 0.82); font-size: 0.85rem; pointer-events: none; }
.l-before { left: 14px; }
.l-after { right: 14px; display: grid; }
.l-after b { grid-area: 1 / 1; font-weight: 600; opacity: 0; animation: cycle 12s infinite; text-align: right; }
.l-after b:nth-child(2) { animation-delay: -8s; }
.l-after b:nth-child(3) { animation-delay: -4s; }
.badge { position: absolute; z-index: 6; right: -10px; top: -14px; width: 112px; height: 112px; }
.badge text { font: 600 10px Manrope, sans-serif; letter-spacing: 0.18em; fill: var(--text); }
.badge .ring { transform-origin: 50% 50%; animation: spin 18s linear infinite; }
.badge circle.bg { fill: var(--gold); }
.badge .mid { font: 700 17px Unbounded, sans-serif; fill: #14120c; letter-spacing: -0.02em; }

.marquee { position: relative; z-index: 1; margin-top: 42px; border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; background: var(--bg); }
.ticker { display: inline-flex; animation: marquee 34s linear infinite; }
.ticker p { margin: 0; padding: 16px 0; font: 700 1rem Unbounded, sans-serif; letter-spacing: 0.02em; color: var(--muted); }
.ticker p::before { content: "ОСЕНЬ С БУКЕТОМ  /  ДЕЛОВОЙ ПОРТРЕТ  /  ПОКАЗ МОД  /  БАЛ-МАСКАРАД  /  У МОРЯ  /  НОЧНОЙ ГОРОД  /  ПИЖАМА У ЁЛКИ  /  СТУДИЙНЫЙ СВЕТ  /  ЛАВАНДОВОЕ ПОЛЕ  /  "; }

/* секции */
section { padding: 64px 0; }
.section-head { margin-bottom: 30px; }
.section-head p { color: var(--muted); max-width: 62ch; margin: 14px 0 0; }
.card { background: var(--card); border-radius: 22px; padding: 22px; }
.card p { margin: 0; color: var(--muted); }
.grid { display: grid; gap: 14px; }
.steps .card { position: relative; overflow: hidden; }
.big { position: absolute; right: 14px; top: -6px; margin: 0; font-size: 5.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(245, 184, 61, 0.55); }
.thumb { width: 96px; border-radius: 14px; margin-bottom: 14px; aspect-ratio: 3 / 4; object-fit: cover; }
.prompt { display: inline-block; margin-bottom: 14px; padding: 10px 14px; border-radius: 14px; border: 1px dashed var(--gold); color: var(--text); font-size: 0.95rem; min-height: 44px; }
.prompt::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -2px; background: var(--gold); animation: caret 1s steps(1) infinite; }

.looks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; align-items: start; }
.tile { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: var(--card); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.18s ease-out; will-change: transform; }
.tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform 0.6s; }
.tile:hover img { transform: scale(1.06); }
.tile figcaption { position: absolute; left: 10px; bottom: 10px; padding: 6px 12px; border-radius: 999px; background: rgba(15, 16, 19, 0.85); font-size: 0.85rem; }
.looks .tile:nth-child(even) { margin-top: 22px; }
.note { margin-top: 24px; font-size: 0.92rem; color: var(--muted); }

.fit { display: grid; gap: 14px; }
.fit .card { padding: 0; overflow: hidden; display: grid; }
.fit .pic { position: relative; }
.fit .pic img { width: 100%; max-height: 360px; object-fit: cover; }
.fit .pic span { position: absolute; left: 12px; top: 12px; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; color: #14120c; }
.fit .yes .pic span { background: #bfe3a8; }
.fit .no .pic span { background: #f2b3a3; }
.fit .txt { padding: 20px 22px 24px; }
.fit ul { margin: 0; padding-left: 18px; color: var(--muted); }
.fit li { margin: 4px 0; }

.pricehead { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.pricehead .big { position: static; font-size: clamp(4rem, 16vw, 8rem); -webkit-text-stroke: 0; color: var(--gold); }
.packs { display: grid; gap: 12px; margin-top: 24px; }
.pack { position: relative; border: 1px solid var(--line); border-radius: 20px; padding: 20px; background: var(--card); }
.pack.hot { border-color: var(--gold); }
.pack .tag { position: absolute; right: 16px; top: -12px; background: var(--gold); color: #14120c; border-radius: 999px; padding: 3px 12px; font-size: 0.78rem; font-weight: 600; }
.pack b { display: block; font: 700 1.7rem Unbounded, sans-serif; letter-spacing: -0.03em; }
.pack a { text-decoration: none; }
.pack p { margin: 8px 0 0; color: var(--muted); }

.rules { display: grid; gap: 12px; }
.rules .card { padding: 20px; }

.faq { display: grid; gap: 10px; }
details { background: var(--card); border-radius: 18px; padding: 0 18px; transition: background 0.25s; }
details[open] { background: #1d1e24; }
summary { min-height: 56px; display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; color: var(--gold); font: 700 1.3rem Unbounded, sans-serif; transition: transform 0.3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--muted); }

.finale { position: relative; display: grid; gap: 30px; align-items: center; }
.pair { position: relative; min-height: 360px; }
.pair img { position: absolute; width: 58%; border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.pair img:first-child { left: 0; top: 0; transform: rotate(-5deg); }
.pair img:last-child { right: 0; top: 40px; transform: rotate(4deg); }

.foot { border-top: 1px solid var(--line); padding: 32px 0 120px; color: var(--muted); font-size: 0.95rem; }
.foot a { color: var(--text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0; margin: 14px 0; list-style: none; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; }

.cookie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 12px; box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5); }
.cookie p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { min-height: 44px; padding-inline: 18px; }
.cookie[hidden] { display: none; }

.page-404 { min-height: 100vh; display: grid; align-content: center; padding: 32px 0 80px; }
.page-404 p { color: var(--muted); }

@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(245, 184, 61, 0); } 0% { box-shadow: 0 0 0 0 rgba(245, 184, 61, 0.7); } }
@keyframes glow { 50% { box-shadow: 0 0 0 8px rgba(245, 184, 61, 0.18); } }
@keyframes sweep { 0%, 100% { --pos: 50%; } 25% { --pos: 18%; } 60% { --pos: 84%; } }
@keyframes cycle { 0% { opacity: 0; } 4% { opacity: 1; } 31% { opacity: 1; } 36% { opacity: 0; } 100% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes drift { 50% { transform: translate(30vw, 20vh); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@supports (animation-timeline: view()) {
  .rv { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
}

@media (min-width: 800px) {
  :root { --pad: 32px; }
  .nav-links { display: flex; }
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 56px; }
  .grid.steps { grid-template-columns: repeat(3, 1fr); }
  .looks { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .looks .tile:nth-child(even) { margin-top: 0; }
  .looks .tile:nth-child(3n + 2) { margin-top: 42px; }
  .fit { grid-template-columns: 1fr 1fr; }
  .packs { grid-template-columns: repeat(4, 1fr); }
  .rules { grid-template-columns: repeat(3, 1fr); }
  .finale { grid-template-columns: 1fr 1fr; }
  .pair { min-height: 480px; }
  .cookie { grid-template-columns: 1fr auto; align-items: center; left: 24px; right: 24px; }
  section { padding: 92px 0; }
}
@media (hover: hover) and (min-width: 800px) {
  .spot { display: block; position: absolute; z-index: 0; left: 0; top: 0; width: 460px; height: 460px; border-radius: 50%; background: #f5b83d; opacity: 0.1; filter: blur(100px); transform: translate(var(--mx, 55vw), var(--my, 6vh)); transition: transform 0.7s ease-out; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .afters img:first-child, .l-after b:first-child { opacity: 1; }
  html { scroll-behavior: auto; }
}
