/* ============ VCSLV — base ============ */

:root {
  --ink: #0A0A0B;
  --ink-2: #131315;
  --ink-3: #1C1C1F;
  --paper: #F4F3EF;
  --paper-2: #E9E7E1;
  --white: #FFFFFF;
  --grey: #8E8E93;
  --grey-dark: #5B5B60;
  --gold: #C6A15B;           /* kept for the founding offer only */
  --gold-dim: #8A6A2C;
  --terra: #A8452F;          /* accent on light backgrounds */
  --terra-lit: #D2664A;      /* accent on dark backgrounds */

  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1400px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

.theme-dark {
  --bg: var(--ink);
  --bg-2: var(--ink-2);
  --bg-3: var(--ink-3);
  --fg: #F2F2F0;
  --muted: #9A9A9F;
  --line: rgba(255, 255, 255, .13);
  --accent: var(--terra-lit);
  --gold-text: var(--gold);
  --dot: rgba(255, 255, 255, .07);
  --dot-lit: rgba(210, 102, 74, .72);
  color-scheme: dark;
}

.theme-light {
  --bg: var(--paper);
  --bg-2: #FFFFFF;
  --bg-3: var(--paper-2);
  --fg: var(--ink);
  --muted: #5F5F64;
  --line: rgba(10, 10, 11, .13);
  --accent: var(--terra);
  --gold-text: #8A6A2C;
  --dot: rgba(10, 10, 11, .045);
  --dot-lit: rgba(168, 69, 47, .85);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@media (max-width: 640px) { body { font-size: 16px; } }

img, svg, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1.02; }

::selection { background: var(--terra); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.muted { color: var(--muted); }

/* ---------- Type scale ---------- */

.t-display { font-size: clamp(38px, 5.6vw, 88px); }
.t-h2 { font-size: clamp(30px, 3.6vw, 54px); }
.t-h3 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -0.02em; line-height: 1.15; }
.t-lead { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.45; letter-spacing: -0.01em; }
.t-num { font-family: var(--mono); font-size: 15px; letter-spacing: 0; color: var(--muted); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .3s, border-color .3s, transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
}
.nav { display: flex; align-items: center; gap: 36px; font-size: 17px; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
@media (max-width: 760px) { .nav > a { display: none; } .nav { gap: 16px; } }
/* long button labels must still fit a narrow phone */
@media (max-width: 430px) {
  .nav { gap: 8px; }
  .nav .btn-small { height: 38px; padding: 0 13px; font-size: 14px; }
  .lang a { padding: 6px 4px; }
}

.lang { display: flex; gap: 2px; font-size: 14px; letter-spacing: .02em; }
.lang a { padding: 6px 7px; color: var(--muted); transition: color .2s; }
.lang a:hover { color: var(--fg); }
.lang a[aria-current="true"] { color: var(--fg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 52px;
  padding: 0 26px;
  border-radius: 2px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

/* the main button is simply the opposite of the page: ink on paper, paper on ink */
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { background: var(--terra); color: #fff; }

.btn-line { border: 1px solid var(--line); }
.btn-line:hover { border-color: var(--fg); }

.btn-small { height: 42px; padding: 0 18px; font-size: 15px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}
.section-head p { max-width: 480px; color: var(--muted); font-size: 18px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 24px; } }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Process ---------- */

.process { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.process li {
  list-style: none;
  padding: 36px 28px 36px 0;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px;
}
.process li + li { padding-left: 28px; }
.process li:last-child { border-right: 0; }
.process h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.15; }
.process .when { font-size: 16px; color: var(--accent); font-weight: 500; }
.process p { color: var(--muted); }
.process { padding: 0; margin: 0; }
@media (max-width: 960px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process li:nth-child(2) { border-right: 0; }
  .process li:nth-child(3) { padding-left: 0; }
  .process li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .process { grid-template-columns: 1fr; }
  .process li, .process li + li { padding: 28px 0; border-right: 0; }
  .process li + li { border-top: 1px solid var(--line); }
}

/* ---------- Pricing ---------- */

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.prices.two { grid-template-columns: repeat(2, 1fr); }
.price {
  background: var(--bg);
  padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column; gap: 22px;
}
.price h3 { font-size: 24px; letter-spacing: -0.02em; }
.price .sum { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price .sum strong { font-size: clamp(34px, 3vw, 46px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.price .sum span { color: var(--muted); font-size: 16px; }
.price .term { font-size: 17px; font-weight: 500; }
/* Sits tight under the term: the retainer is part of the package, not a footnote. */
.price .recurring { margin-top: -14px; font-size: 16px; color: var(--accent); }
.price ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.price li { padding-left: 22px; position: relative; }
.price li::before { content: ''; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--fg); }
.price .btn { margin-top: auto; align-self: flex-start; }
.price.is-main { background: var(--bg-2); }
.price-note { margin-top: 24px; color: var(--muted); font-size: 16px; max-width: 900px; }
@media (max-width: 960px) { .prices, .prices.two { grid-template-columns: 1fr; } }

/* ---------- Founding offer ---------- */

.offer {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
}
.offer-tag { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-text); font-size: 18px; font-weight: 500; margin-bottom: 28px; }
.offer-tag i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 18%, transparent); }
.offer h2 { font-size: clamp(28px, 2.8vw, 42px); }
.offer ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.offer li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 22px 0; border-top: 1px solid var(--line); }
.offer li > i { width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--gold); }
.offer li:last-child { border-bottom: 1px solid var(--line); }
.offer li b { font-weight: 500; font-size: 18px; display: block; margin-bottom: 4px; }
.offer li p { color: var(--muted); }
.offer .spots { margin-top: 32px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.offer .spots-bar { display: flex; gap: 6px; }
.offer .spots-bar i { width: 28px; height: 6px; background: var(--gold); }
.offer .spots-bar i.used { background: var(--line); }
@media (max-width: 960px) { .offer { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0;
  font-size: clamp(18px, 1.4vw, 21px);
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 30px; font-weight: 300; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 30px; max-width: 760px; color: var(--muted); }

/* ---------- Contact / footer ---------- */

.contact { padding: clamp(72px, 9vw, 120px) 0 36px; border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact h2 { font-size: clamp(36px, 4.6vw, 68px); }
.contact-lead { margin-top: 22px; color: var(--muted); max-width: 480px; font-size: 18px; }
.contact-actions { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }
.channels { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.channels a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(19px, 1.5vw, 23px);
  letter-spacing: -0.02em;
  transition: padding .35s var(--ease), color .2s;
}
.channels a span { color: var(--muted); font-size: 17px; letter-spacing: 0; }
.channels a:hover { padding-left: 14px; color: var(--accent); }
.footer-bottom {
  margin-top: clamp(64px, 7vw, 100px);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: var(--muted); font-size: 16px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Локальность ---------- */
/* Факты из Impressum, вынесенные туда, где их действительно читают. */
.place {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.place i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.local {
  margin-top: clamp(56px, 6vw, 84px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.local > div { padding: 26px 24px 0 0; }
.local > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.local dt { font-size: 17px; font-weight: 500; }
.local dd { margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.local + .footer-bottom { margin-top: clamp(40px, 4vw, 56px); }
@media (max-width: 860px) {
  .local { grid-template-columns: 1fr; }
  .local > div, .local > div + div { padding: 20px 0; border-left: 0; }
  .local > div + div { border-top: 1px solid var(--line); }
}

/* ---------- Точечная сетка с фонариком под курсором ---------- */
/* Включается наличием .dots в разметке — страницы без неё ничего не получают. */
.dots { position: fixed; inset: 0; pointer-events: none; z-index: 0; transition: opacity .6s var(--ease); }
.dots > div {
  position: absolute; inset: 0;
  background-image: radial-gradient(currentColor 1px, transparent 1.3px);
  background-size: 28px 28px;
  background-position: 14px 14px;
}
.dots-base { color: var(--dot); }
.dots-lit {
  color: var(--dot-lit);
  -webkit-mask-image: radial-gradient(220px circle at var(--mx, -500px) var(--my, -500px), #000, transparent 70%);
  mask-image: radial-gradient(220px circle at var(--mx, -500px) var(--my, -500px), #000, transparent 70%);
}
/* Пока виден экран с собственным курсорным эффектом, сетка молчит */
body.dots-hold .dots { opacity: 0; }
/* Контент поднимается над сеткой только там, где она есть */
.dots ~ main, .dots ~ footer { position: relative; z-index: 1; }

/* ---------- Lead dialog ---------- */

.lead {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 4px;
  background: var(--ink-2);
  color: #F2F2F0;
  overflow: auto;
}
.lead::backdrop { background: rgba(5, 5, 6, .72); backdrop-filter: blur(6px); }
.lead[open] { animation: leadIn .45s var(--ease); }
@keyframes leadIn { from { opacity: 0; transform: translateY(24px); } }
.lead-inner { padding: clamp(28px, 5vw, 44px); }
.lead-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; font-size: 28px; line-height: 1; color: #9A9A9F; }
.lead-close:hover { color: #fff; }
.lead h2 { font-size: 28px; letter-spacing: -0.03em; padding-right: 40px; }
.lead .lead-sub { margin-top: 12px; color: #9A9A9F; }
.lead form { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 16px; color: #B5B5BA; }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  font-size: 18px;
  color: #fff;
  background: #0E0E10;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 2px;
  padding: 15px 16px;
  transition: border-color .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.lead .btn { margin-top: 8px; width: 100%; }
.lead .fine { font-size: 16px; color: #8E8E93; }
/* Возможность ознакомиться с AGB до заключения договора — условие их применения */
.lead .lead-terms { margin-top: -6px; font-size: 14px; color: #77777C; }
.lead .lead-terms a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #4A4A4E; transition: color .2s, text-decoration-color .2s; }
.lead .lead-terms a:hover { color: #C9C9CE; text-decoration-color: currentColor; }

.lead-err {
  margin-top: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(229, 72, 77, .45);
  border-radius: 10px;
  background: rgba(229, 72, 77, .08);
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.lead-err[hidden] { display: none; }
.lead-err b { flex: 1 0 100%; font-weight: 500; color: #F2B8BA; }
.lead-err a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.lead-err a:hover { color: var(--terra-lit); }
.lead-done { display: none; text-align: left; }
.lead.is-done form, .lead.is-done .lead-head { display: none; }
.lead.is-done .lead-done { display: block; }
.lead-done h2 { margin-bottom: 14px; }
.lead-done p { color: #B5B5BA; }

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Heading effects ---------- */

/* word rise */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.swi { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.split.in .swi { transform: none; }

/* drawn underline under key phrases */
.hl {
  background-image: linear-gradient(var(--hl, var(--accent)), var(--hl, var(--accent)));
  background-repeat: no-repeat;
  background-position: 0 94%;
  background-size: 0% .045em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 1.1s var(--ease) .7s;
}
.in .hl, .hl.in { background-size: 100% .045em; }
.offer .hl { --hl: var(--gold); }

/* blinking clock colon */
.clock i { font-style: normal; animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }

/* scramble headings (web page) */
.js .scr { opacity: 0; }
.js .scr.in { opacity: 1; transition: opacity .2s; }

/* subheadings follow their heading */
.js .section-head p.reveal,
.js .t-lead.reveal,
.js .contact-lead.reveal { filter: blur(8px); transition: opacity 1s var(--ease) .35s, transform 1s var(--ease) .35s, filter 1s var(--ease) .35s; }
.js .section-head p.reveal.in,
.js .t-lead.reveal.in,
.js .a-hero-row.in .t-lead,
.js .contact-lead.reveal.in { filter: none; }

/* list headings react to hover */
.cap-list h3, .inc h3, .process h3 { transition: color .3s, transform .4s var(--ease); }
.cap-list li:hover h3, .inc li:hover h3 { color: var(--accent); transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) {
  .swi { transform: none; }
  .hl { background-size: 100% .045em; }
  .clock i { animation: none; }
  .js .scr { opacity: 1; }
}

/* ---------- Page leave curtain ---------- */

.curtain {
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform .55s cubic-bezier(.7, 0, .2, 1);
}
.curtain.go { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Legal pages (Impressum, Datenschutz) ---------- */

.legal { padding: 140px 0 clamp(64px, 8vw, 110px); }
.legal h1 { font-size: clamp(30px, 5vw, 68px); letter-spacing: -0.035em; line-height: 1; overflow-wrap: break-word; }
.legal-lead { margin-top: 18px; color: var(--muted); font-size: 17px; max-width: 620px; }

.legal-list { margin: clamp(44px, 5vw, 68px) 0 0; display: grid; gap: 0; max-width: 820px; }
.legal-list > div {
  display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 24px;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.legal-list dt { color: var(--muted); font-size: 16px; }
.legal-list dd { margin: 0; font-size: 17px; line-height: 1.5; }
.legal-list dd strong { font-weight: 500; }
.legal-list a, .legal p a { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--line); transition: text-decoration-color .2s; }
.legal-list a:hover, .legal p a:hover { text-decoration-color: currentColor; }

.legal h2 { font-size: 20px; font-weight: 500; margin: clamp(40px, 4vw, 56px) 0 12px; letter-spacing: -0.01em; }
.legal p { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 720px; }
.legal p + p { margin-top: 14px; }
.legal-more { color: var(--fg); }

.legal-more { margin-top: clamp(40px, 4vw, 56px); font-size: 17px; display: flex; flex-wrap: wrap; gap: 24px; }
.legal-more a { color: var(--muted); }
.legal-more a:hover { color: var(--fg); }

.legal-foot {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted); font-size: 15px;
}
.legal-foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.legal-foot a { color: inherit; }
.legal-foot a:hover { color: var(--fg); }

/* quiet link to the Impressum in page footers */
.footer-bottom nav, .hero-foot .fine { display: flex; gap: 20px; flex-wrap: wrap; }
.fine a, .footer-bottom nav a { color: var(--muted); font-size: 15px; opacity: .75; transition: opacity .2s, color .2s; }
.socials a[href$="impressum.html"], .socials a[href$="datenschutz.html"] { font-size: 15px; opacity: .55; }
.socials a[href$="impressum.html"]:hover, .socials a[href$="datenschutz.html"]:hover { opacity: 1; }
.fine a:hover, .footer-bottom nav a:hover { opacity: 1; color: var(--fg); }

@media (max-width: 760px) {
  .legal-list > div { grid-template-columns: 1fr; gap: 6px; }
  .legal { padding-top: 110px; }
}
