/* Сайт «Virtual Privacy» — та же система, что кабинет: Бумага и Свеча,
   Telegram iOS × macOS (фаза 14). Токены — общие (tokens.css): крем-бумага,
   чернильные кнопки, янтарь — главное действие. Движение — только
   transform/opacity, и его выключает prefers-reduced-motion. */

/* ── каркас ─────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url%28%23n%29'/%3E%3C/svg%3E");
  background-size: 260px 260px;
  color: var(--text);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
.site { min-height: 100vh; display: flex; flex-direction: column; position: relative; overflow: clip; }

/* тёплое свечение за содержимым: янтарь и спокойная зелень, тихо */
.site::before, .site::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 46vmax; height: 46vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  will-change: transform;
}
.site::before {
  background: radial-gradient(circle at 30% 30%, var(--glow-hot), transparent 65%);
  top: -18vmax; left: -12vmax;
  animation: drift-a 26s ease-in-out infinite alternate;
}
.site::after {
  background: radial-gradient(circle at 70% 70%, var(--glow-mint), transparent 65%);
  bottom: -20vmax; right: -14vmax;
  animation: drift-b 32s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(9vmax, 6vmax) scale(1.1); } }
@keyframes drift-b { to { transform: translate(-7vmax, -8vmax) scale(1.06); } }

/* ── шапка и подвал ─────────────────────────────────────────────────────── */
.site-head, .site-foot, .site-hero, .site-plans, .site-form,
.site-block, .site-about {
  width: min(920px, 100% - 32px);
  margin-inline: auto;
}
.site-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 0 10px; }
.site-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 16px/1 var(--display); letter-spacing: 0.02em;
  text-decoration: none; color: var(--text);
}
.site-brand svg { width: 26px; height: 26px; stroke: var(--accent); stroke-width: 2.4; }
.site-nav { display: flex; gap: 8px; align-items: center; }
.site-nav a {
  padding: 9px 15px; border-radius: 12px;
  font: 600 14px/1 var(--body); text-decoration: none; color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.site-nav a:hover { color: var(--text); background: var(--pill); }
.site-nav a:active { transform: scale(0.96); }
.site-nav .enter { color: var(--on-primary); background: var(--primary); }

.site-foot {
  display: flex; gap: 18px; padding: 34px 0 26px; margin-top: auto;
  color: var(--muted); font-size: 13px;
}
.site-foot a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.site-foot a:hover { border-color: var(--muted); }

/* ── появление ──────────────────────────────────────────────────────────── */
.rise { animation: rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.rise.d1 { animation-delay: 0.07s; }
.rise.d2 { animation-delay: 0.14s; }
.rise.d3 { animation-delay: 0.21s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ── лендинг ────────────────────────────────────────────────────────────── */
.site-hero { padding: clamp(44px, 8vh, 88px) 0 30px; }
.kicker {
  display: inline-block; margin: 0 0 14px; padding: 7px 13px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  font: 600 11.5px/1 var(--mono); letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--muted);
}
.site-hero h1 {
  margin: 0 0 14px; max-width: 21ch;
  font: 700 clamp(30px, 5.4vw, 46px)/1.1 var(--display);
  letter-spacing: -0.015em;
}
.site-hero h1 em { font-style: normal; color: var(--hot); }
.site-hero .lead { max-width: 58ch; margin: 0 0 26px; color: var(--muted); font-size: 17px; }
.site-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: stretch; }

/* кнопки — язык кабинета: чернильная основная, янтарь — главное действие */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 13px 26px; border: 0; border-radius: 16px;
  background: var(--primary); color: var(--on-primary);
  font: 600 15px/1.2 var(--body); text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.btn:hover { box-shadow: var(--shadow-l); }
.btn:active { transform: scale(0.97); }
.btn.hot { background: var(--hot); color: var(--on-hot); box-shadow: 0 10px 22px -12px var(--glow-hot); }
.btn.soft { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn.soft:hover { border-color: var(--accent); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.site-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px 22px; margin: 30px 0 8px; color: var(--muted); font-size: 14.5px;
}
.site-features span { display: flex; gap: 9px; align-items: baseline; }
.site-features span::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); transform: translateY(-1px);
}

.site-plans { padding: 34px 0 10px; }
.site-plans h2 { margin: 0 0 8px; font: 700 26px/1.15 var(--body); letter-spacing: -0.01em; }
.plans-note { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; }
.site-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.plan-card, .use-card {
  position: relative; overflow: hidden;
  padding: 20px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-l), inset 0 1px 0 color-mix(in srgb, var(--paper) 55%, transparent);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.plan-card:hover, .use-card:hover { transform: translateY(-3px); border-color: var(--soft); }
.plan-card h3, .use-card h3 { margin: 0 0 6px; font: 600 17px/1.25 var(--display); }

/* Витрина главной (11.10.2026): статичные «Пробный» и «Премиум», без
   списка тарифов из базы; плита сценариев — ровная сетка 2×2. */
.site-cards.plans { grid-template-columns: repeat(2, 1fr); gap: 16px; }
.site-cards.plans .plan-card {
  display: flex; flex-direction: column;
  padding: 26px 26px 22px; border-radius: 20px;
}
.site-cards.plans .plan-card h3 { margin: 0 0 12px; font: 700 21px/1.2 var(--display); }
.plan-price { margin: 0 0 18px; min-height: 40px; color: var(--muted); font: 400 15.5px/1.45 var(--body); }
.plan-price b { color: var(--text); font: 600 40px/1 var(--mono); letter-spacing: -0.03em; }
.site-cards.plans .plan-card .btn { margin-top: auto; justify-content: center; }
.plans-note { margin: 14px 0 0; }
.plan-card.premium { border-color: var(--hot); }
.plan-card.premium:hover { border-color: var(--hot); }

.use-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 14px; }
.use-card { padding: 20px 22px 18px; border-radius: 16px; }
.use-card .t { display: flex; align-items: center; gap: 11px; margin: 0 0 8px; }
.use-card .t h3 { margin: 0; }
.use-card .t svg { flex: none; width: 21px; height: 21px; stroke: var(--text); opacity: .8; }
.use-card p { font-size: 14.5px; }

/* ── наполнение главной: сценарии, шаги, вопросы ────────────────────────── */
.site-block { padding: 30px 0 4px; }
.site-block h2 { margin: 0 0 16px; font: 700 22px/1.2 var(--body); }
.use-card p { margin: 0; color: var(--muted); font-size: 14.5px; }

.site-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.site-steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 40px 1fr; align-items: baseline; column-gap: 14px;
  padding: 15px 18px; border: 1px solid var(--line); border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-l), inset 0 1px 0 color-mix(in srgb, var(--paper) 55%, transparent);
}
.site-steps li::before { content: counter(step); font: 600 18px/1 var(--display); color: var(--hot); }
.site-steps b, .site-steps span { grid-column: 2; }
.site-steps b { font: 600 16px/1.3 var(--body); }
.site-steps span { color: var(--muted); font-size: 14.5px; }

.site-faq { display: grid; gap: 8px; }
.site-faq details {
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
}
.site-faq summary {
  cursor: pointer; padding: 13px 18px; list-style: none;
  font: 600 15px/1.3 var(--body); color: var(--text);
}
.site-faq summary::-webkit-details-marker { display: none; }
.site-faq summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
.site-faq details[open] summary::after { content: "–"; }
.site-faq details p { margin: 0; padding: 0 18px 14px; color: var(--muted); font-size: 14.5px; }

.site-about { padding: 30px 0 10px; }
.site-about p {
  margin: 0; padding: 15px 18px; border-left: 3px solid var(--hot);
  color: var(--muted); font-size: 14.5px; border-radius: 0 14px 14px 0;
  background: var(--surface);
}
.site-about b { color: var(--text); }

/* ── формы ──────────────────────────────────────────────────────────────── */
.site-form { padding: clamp(36px, 7vh, 64px) 0; max-width: 420px; }
.site-form h1 { margin: 0 0 6px; font: 700 26px/1.2 var(--body); }
.site-form .hint { margin: 0 0 18px; color: var(--muted); }
.site-form form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; font: 600 13px/1 var(--body); color: var(--muted); }
.field input {
  font: 400 16px/1.3 var(--body); color: var(--text);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--pill); }
.field input::placeholder { color: var(--muted); opacity: 0.6; }
.field code { font: 600 12px/1 var(--body); }

.check { flex-direction: row; align-items: center; gap: 10px; font: 400 14px/1.4 var(--body); color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.check a { color: var(--text); }

.notice {
  display: flex; gap: 10px; padding: 13px 15px; margin: 0 0 14px;
  border: 1px solid var(--hot); border-left-width: 4px; border-radius: 14px;
  background: var(--surface); color: var(--text); font-size: 14.5px;
  animation: arrive 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } }

.muted { color: var(--muted); font-size: 14px; }
.muted a, a.inline { color: var(--text); }
.link-row { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.link-row a { color: var(--text); }

/* другие способы входа — плитки */
.site-alt { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.site-alt p { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.alt-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.alt {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); color: var(--text);
  font: 600 14px/1 var(--body); text-decoration: none;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.alt:hover { border-color: var(--accent); box-shadow: var(--shadow-l); }
.alt:active { transform: scale(0.97); }
.alt i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 9px;
  background: var(--pill); font: 700 13px/1 var(--display); font-style: normal;
}

/* ── коды допуска ───────────────────────────────────────────────────────── */
.code-input input {
  font-family: var(--mono); font-size: 19px; letter-spacing: 5px;
  text-transform: uppercase; text-align: center;
}
.pass-box {
  position: relative; overflow: hidden;
  margin: 14px 0 6px; padding: 18px 20px;
  border-radius: 18px; background: var(--pass); color: var(--pass-text);
  font: 600 20px/1.2 var(--mono); letter-spacing: 3px; text-align: center;
  user-select: all;
}
.pass-box::after {                                   /* блик гильоширной ленты */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.09) 46%, transparent 60%);
  transform: translateX(-120%);
  animation: sheen 5.5s ease-in-out 1.2s infinite;
}
@keyframes sheen { 0% { transform: translateX(-120%); } 22%, 100% { transform: translateX(120%); } }
.pass-note { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ── профиль-страницы ───────────────────────────────────────────────────── */
.facts { margin: 6px 0 4px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 132px 1fr; gap: 12px;
               padding: 13px 18px; border-top: 1px solid var(--hair); font-size: 15px; }
.facts > div:first-child { border-top: 0; }
.facts dt { margin: 0; color: var(--muted); font-size: 13.5px; }
.facts dd { margin: 0; }
.facts .warn { color: var(--hot-ink); }
.tag { display: inline-block; margin-inline-start: 8px; padding: 3px 9px;
       border-radius: 999px; background: var(--pill); color: var(--muted); font-size: 12px; }
.site-form h2 { margin: 26px 0 8px; font: 600 17px/1.3 var(--body); }
.site-form .btn.soft { margin-top: 18px; }

@keyframes breathe { 0% { box-shadow: 0 0 0 0 var(--pill); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* ── водяные знаки бумаги: зерно и гильоширная розетка (нейтральный фон) ── */
.site-hero { position: relative; z-index: 0; }
.site-hero::after {
  content: ""; position: absolute; z-index: -1;
  right: -190px; top: -140px; width: 540px; height: 540px;
  background: var(--paper-ros) center / contain no-repeat;
  opacity: .3; pointer-events: none;
  animation: ros-turn 110s linear infinite;
}
.site-about { position: relative; z-index: 0; }
.site-about::after {
  content: ""; position: absolute; z-index: -1;
  left: -190px; bottom: -200px; width: 380px; height: 380px;
  background: var(--paper-ros) center / contain no-repeat;
  opacity: .18; pointer-events: none;
}
@keyframes ros-turn { to { transform: rotate(1turn); } }
@media (prefers-color-scheme: dark) {
  body { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .028 0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url%28%23n%29'/%3E%3C/svg%3E"); }
}

@media (max-width: 680px) {
  .use-grid, .site-cards.plans { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
