:root {
  --bg: #fafafa;
  --bg-alt: #f1f1f1;
  --surface: #ffffff;
  --text: #2b2b2b;
  --muted: #5f5f5f;
  --line: #e1e1e1;
  --accent: #f59a17;
  --accent-ink: #1f1f1f;
  --accent-text: #a85a00;
  --accent-soft: #fdefd9;
  --old: #a3462e;
  --old-soft: #f7e6e0;
  --new: #1f7a4d;
  --new-soft: #e0f2e8;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 8px 30px rgba(20, 20, 30, .06);
  --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --bg-alt: #1b1b1b;
    --surface: #222222;
    --text: #ececec;
    --muted: #a8a8a8;
    --line: #333333;
    --accent: #f7a42e;
    --accent-ink: #1a1a1a;
    --accent-text: #ffb54d;
    --accent-soft: #3a2a12;
    --old: #f0957c;
    --old-soft: #3a221c;
    --new: #6fd3a0;
    --new-soft: #17332a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 30px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-text); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: block; line-height: 0; }
.brand img { height: 30px; width: auto; }
@media (max-width: 400px) { .brand img { height: 24px; } }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--text); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink) !important; font-weight: 650; text-decoration: none; border: 0; font: inherit; font-weight: 650; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-small { padding: 8px 16px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--text) !important; border: 1px solid var(--line); }
.btn-ghost:hover { box-shadow: none; border-color: var(--muted); }

/* Sections */
section { padding: clamp(64px, 10vw, 112px) 0; }
.alt { background: var(--bg-alt); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 640px; }
.section-head { max-width: 720px; margin-bottom: 48px; }

/* Hero */
.hero { padding-top: clamp(56px, 9vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-note { margin-top: 22px; font-size: .92rem; color: var(--muted); }

.chat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 12px; }
.chat-top { display: flex; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; align-items: center; }
.chat-top i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.chat-top b { margin-left: 8px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.msg { padding: 12px 16px; border-radius: 14px; max-width: 88%; font-size: .97rem; }
.msg.you { background: var(--accent); color: var(--accent-ink); justify-self: end; border-bottom-right-radius: 4px; }
.msg.ai { background: var(--bg-alt); border-bottom-left-radius: 4px; }
.msg.ai strong { color: var(--new); }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; }
.tag { font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.old .tag { background: var(--old-soft); color: var(--old); }
.new .tag { background: var(--new-soft); color: var(--new); }
.new { border-color: color-mix(in srgb, var(--new) 45%, var(--line)); }
.rows { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.rows li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.rows li b { color: var(--muted); font-weight: 600; font-size: .92rem; }
@media (max-width: 420px) { .rows li { grid-template-columns: 1fr; gap: 2px; } }

/* Benefits */
.benefits-head { max-width: 720px; margin: 72px 0 28px; }
.benefits-head h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.benefits-head p { color: var(--muted); }
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .benefits { grid-template-columns: 1fr; } }
.benefit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.benefit h4 { font-size: 1.2rem; margin: 0 0 8px; }
.benefit p { color: var(--muted); margin: 0; }
.benefit-icon { display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 10px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; font-size: 1.3rem; margin-bottom: 16px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; font-size: 1.2rem; margin-bottom: 18px; }
.steps p { color: var(--muted); margin: 0; }
.example { margin-top: 12px; font-size: .92rem; font-style: italic; color: var(--text); background: var(--bg-alt); padding: 10px 14px; border-radius: 10px; }

/* Demos */
.demos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .demos { grid-template-columns: 1fr; max-width: 520px; } }
.demo { display: block; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.demo:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.demo-preview { aspect-ratio: 16 / 10; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.demo-preview strong { font-size: 1.5rem; line-height: 1.1; }
.demo-preview small { opacity: .85; }
.p-remeslnik { background: linear-gradient(135deg, #2b3a2f, #4d6b4f); color: #f5efe0; font-family: Georgia, serif; }
.p-remeslnik strong { color: #f2c46d; }
.p-kadernictvi { background: linear-gradient(135deg, #f7d9d3, #e9b3c4); color: #4a2238; font-family: "Didot", "Bodoni 72", Georgia, serif; }
.p-kadernictvi strong { font-style: italic; font-weight: 400; font-size: 1.8rem; }
.p-autoservis { background: #111 repeating-linear-gradient(-45deg, #111 0 14px, #1a1a1a 14px 28px); color: #fff; font-family: "Arial Black", Impact, sans-serif; text-transform: uppercase; }
.p-autoservis strong { color: #ffcf1f; letter-spacing: .02em; }
.demo-body { padding: 20px 22px 24px; }
.demo-body p { color: var(--muted); margin: 0 0 10px; font-size: .96rem; }
.demo-body span { font-weight: 650; color: var(--accent-text); }

/* Costs */
.costs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .costs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .costs { grid-template-columns: 1fr; } }
.cost { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.cost .price { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; display: block; margin: 6px 0 4px; }
.cost .price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.cost p { color: var(--muted); font-size: .94rem; margin: 0; }
.cost.highlight { background: var(--accent-soft); border-color: transparent; }
.cost-note { margin-top: 24px; color: var(--muted); font-size: .95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.field label small { color: var(--muted); font-weight: 400; }
input, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
textarea { min-height: 150px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 12px; display: none; }
.form-status.ok { display: block; background: var(--new-soft); color: var(--new); }
.form-status.err { display: block; background: var(--old-soft); color: var(--old); }
.contact-mail { font-size: 1.25rem; font-weight: 700; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
