@font-face { font-family: Cormorant; src: url("/fonts/cormorant-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Cormorant; src: url("/fonts/cormorant-italic-500.woff2") format("woff2"); font-weight: 500; font-style: italic; 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; }

:root {
  --paper: #f4ede0;
  --card: #fbf7ee;
  --ink: #2b2118;
  --muted: #5e5143;
  --amber: #a8570f;
  --gold: #f5b83d;
  --line: rgba(43, 33, 24, 0.2);
  --max: 1120px;
  --pad: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 Manrope, system-ui, sans-serif;
  overflow-x: clip;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .18 0 0 0 0 .1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, 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(--ink); color: var(--paper); padding: 8px 12px; z-index: 70; }
.skip:focus { top: 12px; }
h1, h2, h3, p, li, figcaption, summary, a, td, th { overflow-wrap: break-word; }
h1, h2, .logo, .serif { font-family: Cormorant, Georgia, serif; font-weight: 600; letter-spacing: -0.015em; }
h1 { margin: 0; font-size: clamp(2.5rem, 10.4vw, 5.6rem); line-height: 0.98; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--amber); }
h2 { margin: 0; font-size: clamp(2rem, 6.4vw, 3.5rem); line-height: 1.02; max-width: 18ch; }
h3 { margin: 0 0 8px; font: 600 1.05rem/1.3 Manrope, sans-serif; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 50ch; margin: 18px 0 0; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--amber); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--amber); transform-origin: left; animation: draw-x 1.2s ease both; }

.nav { position: sticky; top: 0; z-index: 20; background: var(--paper); 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.7rem; line-height: 1; }
.logo svg { width: 26px; height: 26px; }
.nav-links { display: none; gap: 6px 20px; margin-left: 18px; }
.nav-links a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover { color: var(--ink); }
.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; min-height: 54px; padding: 0 26px; background: var(--gold); color: var(--ink); text-decoration: none; border: 1px solid var(--ink); border-radius: 6px; font-weight: 600; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: transform 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-ghost { background: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.hero { position: relative; padding: 30px 0 70px; overflow: clip; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 34px; grid-template-areas: "copy" "pair" "notice"; }
.hcopy { grid-area: copy; }
.pair { grid-area: pair; }
.notice { grid-area: notice; }
.cta { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin: 26px 0 0; }
.price-link { color: var(--amber); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.notice { position: relative; margin-top: 4px; padding: 20px 18px 16px; border: 2px dashed var(--amber); border-radius: 6px; background: var(--card); transform: rotate(-0.8deg); }
.notice::before { content: "важно"; position: absolute; top: -13px; left: 16px; padding: 2px 10px; background: var(--amber); color: #fff; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; border-radius: 3px; font-weight: 600; }
.notice strong { display: block; margin-bottom: 4px; }
.notice span { color: var(--muted); }

.dust { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.dust::before, .dust::after { content: ""; position: absolute; left: 0; top: 100%; width: 3px; height: 3px; border-radius: 50%; background: rgba(168, 87, 15, 0.55); box-shadow: 6vw -20vh 0 rgba(168, 87, 15, 0.45), 14vw -60vh 0 rgba(43, 33, 24, 0.3), 24vw -35vh 1px rgba(168, 87, 15, 0.4), 36vw -75vh 0 rgba(43, 33, 24, 0.25), 47vw -10vh 0 rgba(168, 87, 15, 0.45), 58vw -50vh 1px rgba(43, 33, 24, 0.3), 69vw -85vh 0 rgba(168, 87, 15, 0.4), 79vw -30vh 0 rgba(43, 33, 24, 0.28), 88vw -65vh 1px rgba(168, 87, 15, 0.45), 95vw -15vh 0 rgba(43, 33, 24, 0.3); animation: float-up 16s linear infinite; }
.dust::after { animation-duration: 23s; animation-delay: -9s; transform: translateX(3vw); }

.pair { position: relative; width: 100%; max-width: 480px; margin-inline: auto; aspect-ratio: 1 / 1.08; }
.polaroid { position: absolute; margin: 0; padding: 10px 10px 40px; background: #fffdf8; box-shadow: 0 18px 40px rgba(43, 33, 24, 0.28); }
.polaroid figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; font: italic 500 1.05rem/1.2 Cormorant, serif; color: var(--muted); text-align: center; }
.polaroid .screen { position: relative; overflow: hidden; background: #d8cdb8; }
.polaroid img, .polaroid video { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.polaroid.live { right: 0; top: 0; width: 66%; transform: rotate(3deg); animation: sway 8s ease-in-out infinite; }
.polaroid.still { left: 0; bottom: 0; width: 50%; transform: rotate(-6deg); }
.polaroid.still img { filter: grayscale(1) sepia(0.45) contrast(1.05); }
.polaroid.live video { animation: revive 5s ease-in-out infinite; }
.sweep { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--gold); box-shadow: 0 0 22px 7px rgba(245, 184, 61, 0.65); animation: scan 5s linear infinite; pointer-events: none; }
.polaroid .tape { position: absolute; left: 50%; top: -14px; width: 74px; height: 24px; margin-left: -37px; background: rgba(245, 184, 61, 0.7); transform: rotate(-3deg); }

section { padding: 62px 0; }
.section-head { margin-bottom: 30px; }
.section-head p { color: var(--muted); max-width: 60ch; margin: 14px 0 0; }
.paper { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 22px; }
.paper p { margin: 0; color: var(--muted); }
.grid { display: grid; gap: 16px; }

.stories { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 4px 24px; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: thin; }
.story { scroll-snap-align: center; margin: 0; }
.story .polaroid { position: relative; width: 100%; transform: rotate(var(--r, 0deg)); }
.story:nth-child(1) { --r: -2deg; }
.story:nth-child(2) { --r: 1.5deg; }
.story:nth-child(3) { --r: -1deg; }
.story .was { position: absolute; left: -10px; bottom: 30px; width: 72px; padding: 4px 4px 14px; background: #fffdf8; box-shadow: 0 8px 20px rgba(43, 33, 24, 0.3); transform: rotate(-7deg); z-index: 2; }
.story .was img { aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(0.7) sepia(0.4); }
.story .was::after { content: "было"; position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font: italic 500 0.78rem/1.2 Cormorant, serif; color: var(--muted); }
.story p { margin: 12px 4px 0; color: var(--muted); font-size: 0.95rem; }

.kinds { display: grid; gap: 16px; }
.kind { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; }
.kind img { width: 84px; aspect-ratio: 3 / 4; object-fit: cover; border: 4px solid #fffdf8; box-shadow: 0 6px 16px rgba(43, 33, 24, 0.25); transform: rotate(-3deg); }
.kind:nth-child(even) img { transform: rotate(3deg); }

.actions { display: grid; gap: 14px; }
.action svg { width: 100%; height: 72px; display: block; margin-bottom: 8px; }
.arm { transform-origin: 20px 48px; animation: wave 1.6s ease-in-out infinite; }
.blink { animation: blink 2.4s steps(1) infinite; }
.turn { animation: turn 3s ease-in-out infinite; transform-origin: center; }
.smile { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw 2.2s ease infinite; }

.steps { position: relative; list-style: none; margin: 0; padding: 0 0 0 52px; display: grid; gap: 22px; }
.steps::before { content: ""; position: absolute; left: 18px; top: 8px; bottom: 8px; width: 2px; background: var(--amber); transform-origin: top; animation: grow 1.6s ease both; }
.steps li { position: relative; }
.steps li::before { content: attr(data-n); position: absolute; left: -52px; top: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); border: 1px solid var(--ink); font: 600 1.15rem Cormorant, serif; }
.steps p { margin: 0; color: var(--muted); }

.fit { display: grid; gap: 16px; }
.fit ul { margin: 0; padding-left: 20px; color: var(--muted); }
.fit li { margin: 5px 0; }
.fit .no { position: relative; }
.stamp { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border: 3px double var(--amber); color: var(--amber); font: 700 0.82rem/1.2 Manrope, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; transform: rotate(-3deg); border-radius: 4px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); }
th, td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
td a { color: var(--amber); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
tbody tr:hover { background: #fff7e3; }
.addons { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 18px 0 0; list-style: none; }
.addons li { padding: 8px 14px; border: 1px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: 0.92rem; }
.note { margin-top: 24px; font-size: 0.92rem; color: var(--muted); }

.faq { display: grid; gap: 10px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 0 18px; }
details[open] { border-color: var(--ink); }
summary { min-height: 58px; 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(--amber); font: 600 1.7rem Cormorant, serif; transition: transform 0.3s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 18px; color: var(--muted); }

.finale { display: grid; gap: 34px; align-items: center; }
.finale .polaroid { position: relative; width: min(100%, 360px); margin-inline: auto; transform: rotate(-2deg); }

.foot { border-top: 1px solid var(--line); padding: 34px 0 120px; color: var(--muted); font-size: 0.95rem; }
.foot a { color: var(--ink); }
.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: 80; background: var(--card); border: 1px solid var(--ink); border-radius: 6px; padding: 16px; display: grid; gap: 12px; box-shadow: 6px 6px 0 var(--ink); }
.cookie p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { min-height: 44px; padding-inline: 18px; box-shadow: none; }
.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 draw-x { from { transform: scaleX(0); } }
@keyframes float-up { to { transform: translateY(-130vh); } }
@keyframes sway { 50% { transform: rotate(1.4deg) translateY(-6px); } }
@keyframes revive { 0%, 8% { filter: grayscale(1) sepia(0.55) contrast(1.08) brightness(0.9); } 46%, 100% { filter: none; } }
@keyframes scan { from { left: 0; } to { left: 100%; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes wave { 50% { transform: rotate(16deg); } }
@keyframes blink { 0%, 42%, 100% { opacity: 1; } 45%, 52% { opacity: 0.15; } }
@keyframes turn { 50% { transform: rotateY(28deg); } }
@keyframes draw { 40%, 100% { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } 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: 64px 0 100px; }
  .hero-grid { grid-template-columns: 1fr 0.9fr; grid-template-areas: "copy pair" "notice pair"; align-items: center; column-gap: 64px; row-gap: 30px; }
  .stories { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .kinds { grid-template-columns: repeat(2, 1fr); }
  .actions { grid-template-columns: repeat(5, 1fr); }
  .fit { grid-template-columns: 1fr 1fr; }
  .finale { grid-template-columns: 1fr 1fr; }
  .cookie { grid-template-columns: 1fr auto; align-items: center; left: 24px; right: 24px; }
  section { padding: 92px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
