:root {
  --ink: #16202a;
  --ink-2: #3b4855;
  --muted: #6b7783;
  --line: #dde3e8;
  --bg: #ffffff;
  --bg-2: #f3f5f7;
  --steel: #22313f;
  --accent: #e8641b;
  --accent-ink: #ffffff;
  --radius: 10px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; scroll-margin-top: 64px; }
.alt { background: var(--bg-2); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 46em; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo svg { width: 34px; height: 22px; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 12px 22px; border-radius: 8px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { filter: brightness(.95); }
.btn.ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }
.nav .btn { padding: 9px 16px; color: #fff; }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }

/* hero */
.hero { background: var(--steel); color: #fff; padding: 72px 0 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: end; }
.hero p.lead { color: #c9d3dc; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 30px; }
.hero ul.ticks { list-style: none; padding: 0; margin: 0 0 56px; display: grid; gap: 8px; color: #dbe3ea; }
.hero ul.ticks li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 10px; }
.hero-art { align-self: end; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero ul.ticks { margin-bottom: 20px; } }

/* cards */
.grid { display: grid; gap: 20px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .g4, .g3, .g2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.card .icon { width: 40px; height: 40px; border-radius: 8px; background: #fdeee5; color: var(--accent); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: .95rem; }
.card .price { margin-top: 14px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.card .price small { font-weight: 500; font-size: .8rem; color: var(--muted); }
.card .tag { display: inline-block; font-size: .75rem; font-weight: 700; background: var(--bg-2); color: var(--ink-2); padding: 3px 9px; border-radius: 99px; margin-bottom: 10px; }

/* case study */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }
.specs { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .97rem; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 42%; color: var(--muted); font-weight: 500; }
.photo-slot { background: repeating-linear-gradient(45deg, #e9edf1 0 12px, #f3f5f7 12px 24px); border: 2px dashed #c4ccd4; border-radius: var(--radius); aspect-ratio: 4/3; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; font-size: .95rem; }

/* steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--steel); color: #fff; font-weight: 700; margin-bottom: 12px; }
.step p { font-size: .93rem; color: var(--ink-2); margin: 0; }

/* callout */
.callout { background: var(--steel); color: #fff; border-radius: 14px; padding: 36px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.callout p { color: #c9d3dc; }
@media (max-width: 860px) { .callout { grid-template-columns: 1fr; padding: 26px; } }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--accent); font-weight: 800; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; color: var(--ink-2); }

/* form */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
form { display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
label { font-size: .9rem; font-weight: 600; display: grid; gap: 6px; }
input, select, textarea { font: inherit; padding: 11px 12px; border: 1px solid #c7cfd6; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.form-note { font-size: .85rem; color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.contact-list strong { display: inline-block; min-width: 92px; }

/* prose page */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .96rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-2); }
.note { background: #fff6ef; border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 6px; font-size: .95rem; color: var(--ink-2); }

/* footer */
footer { background: #10171e; color: #9aa7b3; padding: 40px 0; font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: #cfd8e0; text-decoration: none; }

/* price estimator */
.est { display: grid; grid-template-columns: 340px 1fr; gap: 28px; margin-top: 28px; align-items: start; }
@media (max-width: 900px) { .est { grid-template-columns: 1fr; } }
.est-controls, .est-view { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.est-controls { display: grid; gap: 18px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border-radius: 10px; padding: 4px; gap: 4px; }
.seg-btn { font: inherit; font-size: .9rem; font-weight: 600; border: 0; background: transparent; padding: 10px 8px; border-radius: 8px; cursor: pointer; color: var(--ink-2); }
.seg-btn.on { background: var(--steel); color: #fff; }
.ctl { font-size: .9rem; font-weight: 600; display: grid; gap: 8px; }
.ctl[hidden] { display: none; }
.slide { display: grid; grid-template-columns: 1fr 64px; gap: 12px; align-items: center; }
.slide output { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
input[type=range] { padding: 0; border: 0; accent-color: var(--accent); width: 100%; }
.est-hint { margin: 0; font-size: .88rem; color: var(--ink-2); background: #fff6ef; border-left: 3px solid var(--accent); padding: 10px 12px; border-radius: 6px; }
.est-hint:empty { display: none; }
.est-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin: 4px 0 6px; }
.est-view svg { width: 100%; height: auto; background: #f7f9fb; border-radius: 8px; margin-bottom: 14px; }
.est-view svg text { font-family: inherit; }
.est-price { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 10px; }
.est-from { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.01em; }
.est-from small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.est-meta { color: var(--ink-2); font-size: .92rem; }

/* chat assistant */
.chat { position: fixed; right: 16px; bottom: 16px; z-index: 50; font-size: .95rem; }
.chat-fab { background: var(--steel); color: #fff; border: 0; border-radius: 99px; padding: 13px 20px; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.chat.open .chat-fab { display: none; }
.chat-panel { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.22); display: flex; flex-direction: column; overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { background: var(--steel); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.chat-head small { display: block; color: #b9c6d2; font-size: .78rem; margin-top: 3px; line-height: 1.35; }
.chat-x { background: transparent; border: 0; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-2); }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 12px; line-height: 1.5; word-wrap: break-word; }
.msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.msg.me { background: var(--accent); color: #fff; align-self: flex-end; }
.msg ul { margin: 6px 0; padding-left: 18px; }
.msg.typing { color: var(--muted); }
.chat-sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; background: var(--bg-2); }
.chat-sugg:empty { display: none; }
.chat-sugg button { font: inherit; font-size: .82rem; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 10px; cursor: pointer; color: var(--ink-2); text-align: left; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; padding: 10px; }
.chat-form .btn { padding: 10px 16px; }
@media (max-width: 480px) { .chat { right: 8px; bottom: 8px; } }
