/* ==========================================================================
   RASIK AI — base sheet of the public pages (index, offer, privacy, contacts, seo/*.html).
   It replaces site.css there: the same reset, the former «Монтажный стол» token aliases and only those
   legacy component rules that the public markup still emits (SEO steps, prices, polaroid frames, legal prose…),
   copied verbatim from site.css in the same order, so the cascade before gallery.css is unchanged.
   Generated by matching every site.css selector against the rendered public pages (both themes, phone and
   desktop, FAQ and menus opened) and checked with a computed-style A/B against site.css: no differences.
   The app (app.html) keeps site.css. When site.css changes a rule that is listed here, change it here too.
   Owner: landing. Loads first, before gallery.css · public.css · landing.css / seo.css.
   ========================================================================== */
:root {
  --paper: var(--g-paper);
  --ink: var(--g-ink);
  --muted: var(--g-muted);
  --dim: var(--g-muted);
  --acc: var(--g-accent);
  --acc-ink: var(--g-on-accent);
  --acc-hover: var(--g-accent-hover);
  --acc-soft: var(--g-accent-soft);
  --acc-line: color-mix(in srgb, var(--g-accent) 40%, transparent);
  --hand: var(--g-accent);
  --card: var(--g-paper);
  --card-2: var(--g-soft);
  --warm: var(--g-soft);
  --note: var(--g-soft);
  --line: var(--g-line);
  --line-2: var(--g-line-strong);
  --ink-soft: color-mix(in srgb, var(--g-ink) 6%, transparent);
  --frame: var(--g-paper);
  --cap-ink: var(--g-ink);
  --cap-mute: var(--g-muted);
  --tape: transparent;
  --hl: color-mix(in srgb, var(--g-accent) 22%, transparent);
  --ok: var(--g-ok);
  --ok-soft: var(--g-ok-soft);
  --warn: var(--g-warn);
  --warn-soft: var(--g-warn-soft);
  --err: var(--g-danger);
  --err-soft: var(--g-danger-soft);
  --info: var(--g-info);
  --info-soft: var(--g-info-soft);
  --star: var(--g-warn);
  --c1: #9C4B32; --c2: #8A6116; --c3: #4E6A3D; --c4: #3D5A73; --c5: #7A4A6E; --c6: #8B5A3C;
  --th-horror: #ECE6E3; --th-family: #F1E8DA; --th-ad: #F3E4DD; --th-free: #E5E9E1;
  --shadow-sm: none;
  --shadow: var(--g-shadow-pop);
  --shadow-pol: var(--g-shadow-sm);
  --btn-shadow: none;
  --glow: 0 0 0 1px var(--g-accent);

  --font-display: var(--g-font-ui);
  --font-ui: var(--g-font-ui);
  --font-hand: var(--g-font-ui);
  --r: var(--g-r-sm);
  --r-card: var(--g-r-md);
  --r-lg: var(--g-r-md);
  --ease: var(--g-ease, cubic-bezier(.2, .7, .2, 1));
  --dur: 180ms;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}
:root[data-theme="dark"] {
  --c1: #D9805F; --c2: #E0B860; --c3: #9DBA86; --c4: #9DB6CC; --c5: #C99BBE; --c6: #D8A47F;
  --th-horror: #2A2624; --th-family: #2D271F; --th-ad: #2E2420; --th-free: #222821;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background-color: var(--paper); }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background-color: var(--paper);
}
img, video, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; }
p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--hl); color: var(--ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r); font-weight: 700; transition: top .2s; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
section[id] { scroll-margin-top: 84px; }
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 820px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--acc); margin-bottom: 14px; }
.h2 { font-family: var(--font-display); font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -.02em; line-height: 1.1; font-weight: 700; text-wrap: balance; }
.h3 { font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 21px); letter-spacing: -.01em; font-weight: 600; line-height: 1.25; }
.lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 18.5px); line-height: 1.65; margin-top: 16px; text-wrap: pretty; }
.grad-text { color: var(--acc); }
.muted { color: var(--muted); }
.hand { position: relative; display: inline-block; font-family: var(--font-hand); font-weight: 700; color: var(--hand); letter-spacing: 0; white-space: nowrap; }
.polaroid { position: relative; background: var(--frame); padding: 9px 9px 40px; border-radius: 3px; box-shadow: var(--shadow-pol); }
.pol-cap { position: absolute; left: 12px; right: 12px; bottom: 6px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-family: var(--font-hand); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--cap-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pol-cap span { color: #B9473A; flex: none; }
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
}
.card { padding: clamp(20px, 2.4vw, 28px); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--card-2); color: var(--muted); border: 1px solid var(--line); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }
.badge.s-done { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.hero-ctas { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.reel .badge { background: rgba(29, 24, 19, .62); color: #fff; border-color: rgba(255, 255, 255, .16); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; }
.step-num { position: relative; z-index: 1; width: 72px; height: 72px; border-radius: var(--r-card); display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 22px; color: var(--ink); transition: transform .5s var(--ease); }
.step:hover .step-num { transform: translateY(-2px) rotate(-2deg); }
.step-num svg { width: 28px; height: 28px; }
.step-num::after { content: attr(data-n) "."; position: absolute; top: -20px; right: -16px; font-family: var(--font-hand); font-size: 36px; font-weight: 700; line-height: 1; color: var(--hand); transform: rotate(-6deg); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step .free { display: inline-block; margin-top: 8px; height: auto; padding: 0; background: none; border: 0; font-family: var(--font-hand); font-weight: 700; font-size: 25px; color: var(--hand); transform: rotate(-3deg); }
.step .free::before { display: none; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 72px 1fr; gap: 22px; padding-bottom: 34px; }
  .step-num { margin-bottom: 0; }
}
.reel { --rot: -2deg; position: relative; padding: 10px 10px 0; transform: perspective(900px) rotate(var(--rot)) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) translateY(var(--lift, 0px)); transition: transform .5s var(--ease), box-shadow .4s var(--ease); }
.reel:nth-child(2) { --rot: 1.5deg; margin-top: 36px; }
.reel:nth-child(3) { --rot: -1.2deg; }
.reel:nth-child(4) { --rot: 2.4deg; margin-top: 36px; }
.reel:hover { box-shadow: 0 26px 44px -18px rgba(44, 36, 28, .5), 0 2px 6px rgba(44, 36, 28, .12); }
.reel-media { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 2px; background: #1D1813; }
.reel-media video, .reel-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel .badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.reel-meta { display: grid; gap: 0; padding: 8px 4px 12px; }
.reel-meta b { font-family: var(--font-hand); font-size: 23px; line-height: 1.15; font-weight: 700; color: var(--cap-ink); }
.reel-meta span { font-size: 12.5px; color: var(--cap-mute); font-weight: 500; }

@media (max-width: 900px) {
  .reel { scroll-snap-align: center; }
  .reel:nth-child(2), .reel:nth-child(4) { margin-top: 0; }
}
.prices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price { display: flex; flex-direction: column; gap: 4px; padding: 26px 22px; }
.price .p-dur { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price .amt { font-family: var(--font-display); font-size: clamp(32px, 3.3vw, 42px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-top: 10px; transition: opacity .25s; font-variant-numeric: tabular-nums; }
.price .per { font-family: var(--font-hand); color: var(--hand); font-size: 21px; font-weight: 700; line-height: 1.15; }
.price.hot { border: 1.5px solid var(--acc); box-shadow: var(--shadow); }
.price.hot .badge { position: absolute; top: -15px; right: 14px; height: auto; padding: 2px 12px 4px; border-radius: 3px; border: 0; background: var(--note); color: var(--ink); font-family: var(--font-hand); font-size: 21px; font-weight: 700; transform: rotate(4deg); box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .3); }
.price.hot .badge::before { display: none; }
.price-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.price-note { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--card); font-size: 14.5px; font-weight: 500; }
.price-note .ic { flex: none; width: 40px; height: 40px; border-radius: var(--r); display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line); font-size: 18px; }

@media (max-width: 1000px) {
  .prices { grid-template-columns: repeat(2, 1fr); }
  .price-notes { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .prices { grid-template-columns: 1fr 1fr; gap: 12px; row-gap: 22px; }
  .price { padding: 20px 14px; }
  .price .amt { font-size: clamp(22px, 7.2vw, 30px); }
  .price .per { font-size: 18px; }
  .price.hot .badge { font-size: 18px; right: 8px; }
}
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: var(--g-r-md); border: 1px solid var(--line); background: var(--card); transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 600; font-size: 16.5px; border-radius: var(--g-r-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .35s var(--ease), background-color .3s, color .3s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.8px; background: currentColor; border-radius: 2px; transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.faq details[open] .pm { background: var(--acc); color: var(--acc-ink); border-color: transparent; transform: rotate(180deg); }
.faq details[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .ans { padding: 0 20px 20px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.faq .ans strong { color: var(--ink); }
.faq .ans a { color: var(--acc); }
.final { position: relative; text-align: center; padding: clamp(52px, 8vw, 104px) var(--gutter); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-sm); }
.final::before, .final::after { content: ""; position: absolute; top: -10px; width: 82px; height: 22px; background: var(--tape); }
.final::before { left: 28px; transform: rotate(-8deg); }
.final::after { right: 28px; transform: rotate(7deg); }
.final h2 { font-family: var(--font-display); font-size: clamp(30px, 5vw, 60px); letter-spacing: -.025em; line-height: 1.08; font-weight: 700; max-width: 860px; margin: 0 auto; text-wrap: balance; }
.final p { color: var(--muted); margin: 18px auto 0; max-width: 560px; font-size: 17px; }
.final .hero-ctas { justify-content: center; }
.legal-hero { position: relative; padding: 132px 0 34px; }
.legal-hero h1 { font-family: var(--g-font-display); font-size: clamp(34px, 5vw, 54px); line-height: 1.15; letter-spacing: -.03em; font-weight: 400; text-wrap: balance; }
.legal-hero p { color: var(--muted); margin-top: 12px; }
.legal-wrap { display: grid; grid-template-columns: 230px 1fr; gap: 48px; align-items: start; }
.legal-toc { position: sticky; top: 104px; display: grid; gap: 2px; font-size: 14px; padding: 12px; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--line); }
.legal-toc a { color: var(--muted); padding: 6px 10px; border-radius: var(--g-r-md); }
.legal-toc a:hover { color: var(--ink); background: var(--ink-soft); }
.prose { max-width: 760px; font-size: 16px; line-height: 1.75; color: var(--ink); }
.prose > p, .prose > ul, .prose > ol, .prose > h3 { max-width: 65ch; }
.legal-wrap .prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 48px); box-shadow: var(--shadow-sm); }
.prose h2 { font-family: var(--g-font-display); font-size: clamp(23px, 2.5vw, 28px); line-height: 1.25; letter-spacing: -.02em; color: var(--ink); margin: 44px 0 12px; scroll-margin-top: 104px; font-weight: 400; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; color: var(--ink); margin: 24px 0 8px; font-weight: 600; font-family: var(--font-ui); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose ul { list-style: disc; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--acc); }
.prose a { color: var(--acc); text-decoration: underline; text-decoration-color: var(--acc-line); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prose th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.prose .note { display: block; color: inherit; font-weight: 400; font-size: 15.5px; padding: 16px 18px; border-radius: var(--r); background: var(--note); border: 1px solid var(--line); margin: 0 0 18px; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .88em; padding: 2px 6px; border-radius: var(--g-r-md); background: var(--ink-soft); }
.ph { padding: 1px 6px; border-radius: 4px; background: var(--hl); color: var(--ink); font-weight: 600; white-space: normal; }

@media (max-width: 900px) {
  .legal-wrap { grid-template-columns: 1fr; gap: 20px; }
  .legal-toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
  .legal-toc a { border: 1px solid var(--line); border-radius: 999px; }
}
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 6px 0 30px; }
.contact-card { display: grid; gap: 6px; align-content: start; }
.contact-card .ic { width: 44px; height: 44px; border-radius: var(--g-r-md); display: grid; place-items: center; font-size: 20px; background: var(--card-2); border: 1px solid var(--line); margin-bottom: 8px; }
.contact-card b { color: var(--ink); font-size: 17px; font-family: var(--font-display); }
.contacts-prose { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow-sm); }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--note); border: 1px solid var(--line); font-size: 14px; color: var(--ink); font-weight: 500; line-height: 1.5; }
.note svg { color: var(--acc); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
.idea-card { position: relative; display: grid; gap: 10px; background: var(--note); border-color: var(--line-2); margin-bottom: 16px; padding-top: 24px; }
