:root {
  color-scheme: dark;
  --ink: #f2f0e5;
  --muted: #bdc4b7;
  --accent: #baff16;
  --panel: #222621;
  --section: #191c19;
  --on-accent: #14200d;
  --paper: #121412;
  --line: #444b42;
  --success: #aed9aa;
  --warning: #f0cf77;
  --error: #ffb3a6;
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
* { box-sizing: border-box; }
body, figure, dl, dd, blockquote, h1, h2, h3, p { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
[hidden] { display: none !important; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
button, a { touch-action: manipulation; }
a { color: inherit; text-underline-offset: .23em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--warning); outline-offset: 3px; }
img { display: block; max-width: 100%; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.wrap { width: min(1272px, calc(100% - 36px)); margin-inline: auto; }
.section, .flow-section, .contact { padding-block: clamp(48px, 7vw, 92px); }
.section-head { margin-bottom: 28px; }
.section-code, .case-label { display: block; color: var(--accent); font-size: .78rem; font-weight: 650; letter-spacing: .06em; margin-bottom: 10px; }
h1, h2, h3 { line-height: 1.09; letter-spacing: -.04em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.skip, .sr-only, .trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { clip-path: none; width: auto; height: auto; color: var(--on-accent); background: var(--accent); padding: 10px; z-index: 25; }
.header { position: sticky; top: 0; background: var(--paper); z-index: 10; border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; gap: 18px; }
.header-inner { min-height: 68px; }
.logo, .author-line, .text-action, .button, .header-cta, .pain-card a, .footer-inner > a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo { font-weight: 750; font-size: 1.2rem; letter-spacing: -.045em; white-space: nowrap; }
.header nav { display: none; }
.header nav a { text-decoration: none; padding-block: 10px; }
.header nav a:hover, .text-action:hover, .pain-card a:hover { text-decoration: underline; }
.button, .header-cta { justify-content: center; padding: 12px 20px; border: 0; border-radius: 8px; background: var(--accent); color: var(--on-accent); font-weight: 650; }
.button:hover, .header-cta:hover { background: #daf8af; color: var(--on-accent); }
.header-cta { min-height: 44px; margin-left: auto; font-size: .86rem; padding: 10px 13px; }
.menu-toggle { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; color: var(--ink); border: 1px solid var(--line); background: transparent; border-radius: 8px; }
.menu-toggle svg:last-child, .menu-open .menu-toggle svg:first-child { display: none; }
.menu-open .menu-toggle svg:last-child { display: block; }
@media (max-width: 959px) { .menu-open nav { display: grid; position: absolute; inset: 100% 0 auto; padding: 10px 20px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
}
.hero {
  background: var(--paper);
}
.hero-copy { min-width: 0; }
.hero-inner { display: grid; align-items: center; gap: clamp(28px, 4vw, 54px); padding-block: clamp(36px, 6vw, 86px); }
.author-line { width: fit-content; margin-bottom: 20px; font-size: .82rem; color: var(--muted); }
.author-line img { object-fit: cover; border-radius: 50%; }
.author-line strong { display: block; color: var(--ink); font-size: 1rem; }
h1 { color: var(--ink); font-size: clamp(2.15rem, 5.3vw, 4.9rem); line-height: 1.02; letter-spacing: -.055em; }
h1 span { color: var(--accent); }
.hero-lead { max-width: 55ch; margin-top: 20px; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.16rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; margin-top: 24px; }
.text-action, .pain-card a { color: var(--accent); font-weight: 650; min-height: 44px; }
.hero-feature, .case, .about-photo { overflow: hidden; border-radius: 16px; }
.hero-feature { position: relative; isolation: isolate; background: var(--panel); border: 1px solid var(--line); }
.hero-feature figcaption { position: absolute; inset: auto 0 0; background: var(--section); }
.hero-feature:focus-within { outline: 3px solid var(--warning); outline-offset: 3px; }
.hero-feature figcaption a::after { content: ""; position: absolute; inset: 0; }
.hero-feature figcaption a:hover { color: var(--accent); }
.hero-feature > img, .case > img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.about-photo figcaption { padding: 16px 20px; }
.hero-feature > img { aspect-ratio: 5/4; }
.hero-feature figcaption { padding: 44px 20px 18px; }
.hero-feature figcaption span { font-size: .85rem; color: var(--accent); }
.hero-feature figcaption a { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 4px; font-size: 1.15rem; font-weight: 650; text-decoration: none; }
.fact-strip { display: grid; border-block: 1px solid var(--line); }
.fact-strip > div { display: grid; grid-template-columns: 95px 1fr; align-items: center; gap: 12px; padding: 14px 0; }
.fact-strip > div + div { border-top: 1px solid var(--line); }
.fact-strip dt { font-size: clamp(1.75rem, 2.8vw, 2.35rem); font-weight: 650; letter-spacing: -.05em; line-height: 1.12; }
.fact-strip dd, .case-content > p, .terms-list dd, .about-copy > p:not(.section-code) { color: var(--muted); }
.pain-grid, .case-grid, .about-grid, .contact-grid, .flow-layout { display: grid; gap: 16px; }
.pain-card, .case { background: var(--panel); border: 1px solid var(--line); }
.pain-card { display: flex; flex-direction: column; align-items: start; gap: 16px; padding: 24px; border-radius: 12px; }

.pain-card > svg { color: var(--accent); }
.pain-card p { color: var(--muted); }
.pain-card a { margin-top: auto; font-size: .9rem; }
.flow-section { background: var(--section); }
.flow-intro { margin-bottom: 24px; }
.flow-intro > p:last-child, .cases-head > p { margin-top: 14px; max-width: 54ch; color: var(--muted); }
.flow-step { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding-block: 17px; border-top: 1px solid var(--line); }
.flow-step > span { color: var(--accent); font-variant-numeric: tabular-nums; }
.flow-step h3 { font-size: 1.13rem; }
.flow-step p { color: var(--muted); margin-top: 5px; }
.flow-stage { align-self: start; background: var(--panel); border-radius: 14px; padding: clamp(16px, 3vw, 36px); }
.stage-head, .pipe-node { display: flex; align-items: center; gap: 12px; }
.stage-head { justify-content: space-between; margin-bottom: 16px; font-size: .83rem; font-weight: 650; }
.pipe-node { border-block-start: 1px solid var(--line); padding: 12px; }
.pipe-node.active { background: #2b3b27; color: var(--accent); }
.pipe-node small, .pipe-node strong { display: block; }
.pipe-node small, .stage-result span { font-size: .7rem; letter-spacing: .055em; }
.stage-result { padding: 14px 12px 0; border-top: 1px solid var(--line); }
.stage-result p { font-weight: 650; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter { background: transparent; border: 1px solid var(--line); border-radius: 24px; min-height: 44px; padding: 6px 16px; color: var(--ink); }
.filter.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.case { display: flex; flex-direction: column; min-width: 0; }
.case-content { padding: 22px; display: flex; flex: 1; flex-direction: column; align-items: start; }
.case-content > p { margin-block: 10px 14px; }
.case-label { text-transform: none; }
.case-detail { width: 100%; margin-top: auto; padding-top: 10px; }
.case-detail summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; min-height: 44px; color: var(--accent); font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
details[open] summary .icon { transform: rotate(180deg); }
.case-detail p { margin-top: 12px; }
.about { background: var(--section); }
.about-grid, .contact-grid { align-items: center; gap: clamp(24px, 5vw, 72px); }
.about-photo { max-width: 390px; background: var(--panel); }
.about-photo img { width: 100%; height: auto; }
.about-photo figcaption { font-weight: 650; }
.about-photo figcaption span { display: block; color: var(--muted); font-size: .85rem; font-weight: 400; }
.about-copy > p:not(.section-code), .about-copy > a { margin-top: 16px; }
.client-letter { display: grid; align-items: center; gap: 24px; padding: clamp(20px, 4vw, 46px); border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.client-letter img { width: min(160px, 80%); height: auto; border: 1px solid var(--line); }
.client-letter blockquote { font-size: clamp(1.12rem, 2.1vw, 1.75rem); letter-spacing: -.025em; line-height: 1.36; margin-bottom: 16px; }
.review-link { display: inline-block; margin-block: 8px; color: var(--accent); }
#terms { padding-top: 0; }
.terms-list > div { padding-block: 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.terms-list dt { font-weight: 650; }
.contact { background: #1a241d; }
.contact-grid > div > p:last-child { margin-top: 16px; }
.lead-panel { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: clamp(16px, 3vw, 32px); }
.lead-form, .form-row { display: grid; gap: 14px; }
.lead-form label > span { font-size: .91rem; font-weight: 550; }
.lead-form input:not([type=checkbox]):not([type=hidden]), .lead-form textarea { display: block; width: 100%; margin-top: 5px; border: 1px solid #728073; border-radius: 6px; padding: 11px; color: var(--ink); background: var(--paper); }
.lead-form ::placeholder { color: #a2ada5; }
.lead-form textarea { resize: vertical; min-height: 84px; }
.consent { display: flex; align-items: start; gap: 8px; }
.consent input { accent-color: var(--accent); width: 18px; height: 18px; flex: none; }
.submit-button:disabled { opacity: .7; cursor: wait; }
.form-status:empty { display: none; }
.form-status.error { color: var(--error); }
.form-status.success { color: var(--success); }
.direct-contacts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 22px; font-size: .9rem; }
.direct-contacts span { width: 100%; color: var(--muted); }
.footer-inner { padding-block: 28px; flex-wrap: wrap; }
.footer-inner p { color: var(--muted); font-size: .85rem; }
.footer-inner > a:last-child { margin-left: auto; }
@media (min-width: 700px) {
  .wrap { width: min(1272px, calc(100% - 64px)); }
  .hero-inner { grid-template-columns: minmax(0,1.13fr) minmax(0,1fr); }
  .fact-strip, .pain-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact-strip > div { grid-template-columns: 1fr; align-content: start; gap: 0; padding: 16px 22px; }
  .fact-strip > div:first-child { padding-left: 0; }
  .fact-strip > div + div { border-top: 0; border-left: 1px solid var(--line); }
  .flow-layout, .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 92px); }
  .flow-stage { position: sticky; top: 94px; }
  .flow-step { padding-block: 26px; }
  .case-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .about-grid { grid-template-columns: minmax(230px, .7fr) 1fr; }
  .client-letter { grid-template-columns: minmax(120px, .25fr) 1fr; }
  .terms-list > div { grid-template-columns: 1fr 2fr; }
}
@media (min-width: 960px) {
  .header nav { display: flex; align-items: center; gap: 20px; margin-inline: auto; font-size: .93rem; }
  .menu-toggle { display: none; }
  .header-cta { margin-left: 0; }
  .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-row label { min-width: 0; }
}
@media (max-width: 359px) {
  .header-inner { gap: 8px; }
  .header-cta { font-size: .8rem; padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Site consultant */
.max-contact { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.max-contact small { flex-basis: 100%; color: var(--muted); }
.max-contact button { background: transparent; border: 0; color: var(--ink); text-decoration: underline; padding: 6px 0; }
.vadim-launch, .vadim-send { background: var(--accent); color: var(--on-accent); border: 1px solid #1d281b; font-weight: 750; }
.vadim-launch { position: fixed; z-index: 11; bottom: max(16px,env(safe-area-inset-bottom)); right: max(16px,env(safe-area-inset-right)); border-radius: 30px; display: flex; align-items: center; gap: 8px; padding: 12px 18px;  }
.vadim-launch .icon, .vadim-close .icon { width: 21px; height: 21px; }
footer { padding-bottom: 74px; }
#vadim { position: fixed; inset: auto max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) auto; margin: 0; width: min(410px,calc(100% - 24px)); max-width: none; padding: 0; color: var(--ink); background: var(--section); border: 1px solid var(--line); border-radius: 20px;  overflow: hidden; }
#vadim[open] { display: flex; flex-direction: column; height: min(545px,calc(100dvh - 24px)); max-height: calc(100dvh - 24px); }
#vadim::backdrop { background: #06090685; }
.vadim-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.vadim-head h2 { font-weight: 750; font-family: inherit; font-size: 1.35rem; letter-spacing: normal; line-height: 1.15; }
.vadim-head small { color: var(--muted); }
.vadim-close { border: 0; color: var(--ink); background: transparent; padding: 10px; display: grid; place-items: center; }
.vadim-log { flex: 1; min-height: 45px; overflow-y: auto; padding: 14px; scrollbar-gutter: stable; overscroll-behavior: contain; }
.vadim-message { width: fit-content; max-width: 94%; padding: 10px 13px; border-radius: 12px; font-size: .93rem; line-height: 1.45; margin-bottom: 10px; overflow-wrap: anywhere; background: var(--panel); }
.vadim-message.visitor { margin-left: auto; background: #37462a; }
.vadim-message a, .vadim-links a { display: inline-block; color: var(--accent); text-decoration: underline; padding: 5px 0; }
.vadim-links { display: flex; flex-wrap: wrap; gap: 0 12px; margin-top: 7px; }
.vadim-links small { width: 100%; color: var(--muted); }
.vadim-prompts, .vadim-compose { display: flex; gap: 6px; padding: 0 12px 10px; }
.vadim-prompts { flex-wrap: wrap; }
.vadim-prompts button { color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 20px; font-size: .85rem; padding: 7px 11px; }
.vadim-compose input { flex: 1; min-width: 0; background: var(--paper); border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 9px 11px; font-size: 16px; }
.vadim-send { padding: 7px 12px; border-radius: 10px; }
@media (max-width: 600px) {
  .vadim-launch { font-size: .88rem; padding: 10px 13px; }
  .vadim-launch:has(+ dialog[open]) { visibility: hidden; }
  body:has(.lead-form :focus) .vadim-launch { visibility: hidden; }
}


.footer-main { display: grid; gap: 28px; padding-block: 40px 30px; border-bottom: 1px solid var(--line); }
.footer-invitation { display: grid; gap: 15px; justify-items: start; }
.footer-quote { max-width: 51ch; color: var(--ink); font-size: clamp(1.15rem, 2vw, 1.5rem); }
.footer-materials { display: grid; align-content: start; gap: 9px; justify-items: start; }
.footer-materials h2 { font-size: 1rem; letter-spacing: normal; }
.footer-materials a { color: var(--muted); font-size: .95rem; text-underline-offset: 3px; }
.footer-materials a:hover { color: var(--accent); }
@media (min-width: 720px) {
  .footer-main { grid-template-columns: 2fr 1fr; }
}


.header-logo { display: block; width: clamp(124px, 24vw, 182px); height: auto; }

/* Editorial layout */
.wrap { width: min(1248px, calc(100% - 32px)); }
.header-inner { min-height: 64px; gap: 12px; }
.header-cta { background: transparent; border: 1px solid #778174; color: var(--ink); }
.button, .header-cta, .menu-toggle, .lead-panel, .flow-stage, .client-letter { border-radius: 4px; }
.hero-inner { gap: 28px; padding-block: 32px; }
.author-line { align-items: center; margin-bottom: 24px; gap: 12px; }
.author-line img { width: 44px; height: 44px; }
h1, .section-head h2, .flow-intro h2, .about-copy h2, .contact h2, .client-letter blockquote {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.045em;
}
h1 { font-size: clamp(39px, 6.2vw, 88px); line-height: 1.04; }
h1 em { color: var(--accent); font-weight: inherit; }
h2 { line-height: 1.12; }
.hero-lead { max-width: 44ch; line-height: 1.58; }
.hero-feature { border: 0; border-radius: 0; background: var(--section); }
.hero-feature > img { aspect-ratio: 1.78; }
.hero-feature figcaption { position: static; padding: 12px 16px 16px; border-left: 3px solid var(--accent); }
.hero-feature figcaption a { font-weight: 600; line-height: 1.35; }
.hero-feature figcaption span, .section-code, .case-label { font: 600 .76rem/1.5 Consolas, monospace; letter-spacing: .045em; }
.section-code { text-transform: uppercase; }
.fact-strip dt { font-family: Georgia, serif; font-weight: 400; }
.fact-strip dd { font-size: .94rem; }
#services { padding-block: clamp(40px, 5vw, 72px); }
.pain-grid { gap: 24px; }
.pain-card { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 20px 0 0; background: transparent; gap: 12px; }
.pain-card h3 { max-width: 23ch; }
.case-grid { gap: 32px 24px; }
.case { background: transparent; border: 0; border-radius: 0; }
.case-content { padding: 16px 0 0; }
.case-grid .case:first-child .case-content { padding: 20px; background: var(--panel); }
.case-detail summary .icon { transition: transform 160ms ease-out; }
.client-letter blockquote { font-size: clamp(22px, 2.45vw, 34px); }
.contact { background: var(--section); }
.icon { stroke-width: 1.65; }
.filter { border-radius: 4px; }
:is(.button,.header-cta,button,summary,input,textarea) { transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out; }
:is(.button,.header-cta,button):not(:disabled):hover { border-color: var(--accent); }
:is(.button,.vadim-launch,.vadim-send):not(:disabled):hover { background: #d3ff7e; color: var(--on-accent); }
:is(.filter:not(.active),.menu-toggle,.vadim-close,.vadim-prompts button,.header-cta):hover { background: var(--panel); color: var(--ink); }
:is(summary,.max-contact button,.author-line):hover { text-decoration: underline; }
:is(a,summary,button):not(:disabled):active { outline: 2px solid var(--accent); outline-offset: -2px; }
:is(button,input,textarea):disabled { opacity: .65; cursor: not-allowed; }
.lead-form :is(input:not([type=hidden]),textarea):hover, .vadim-compose input:hover { border-color: var(--muted); }
.lead-form :is(input,textarea):user-invalid { border-color: var(--error); }
.vadim-launch { border-color: var(--paper); }
@media (min-width: 700px) {
  .wrap { width: min(1248px, calc(100% - 64px)); }
  .hero-inner { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: clamp(28px, 4vw, 64px); padding-block: clamp(40px, 4vw, 64px); }
  .hero-feature > img { aspect-ratio: 1.58; }
  .fact-strip > div { grid-template-columns: auto 1fr; align-items: baseline; gap: 12px; padding: 20px; }
  .case-grid .case:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
  .case-grid .case:first-child > img { height: 100%; min-height: 220px; }
  .case-grid .case:first-child .case-content { justify-content: center; padding: clamp(24px, 4vw, 52px); }
  .case-grid .case:first-child .case-detail { margin-top: 8px; }
}
@media (max-width: 699px) {
  .fact-strip > div { grid-template-columns: 100px 1fr; padding-block: 8px; }
  .header-inner { gap: 8px; }
  .header-cta { padding-inline: 8px; }
  .hero-actions { gap: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

