
:root {
  /* Layout idea: left-aligned editorial grid; services as numbered "channel rows"; blog is text-first. */
  --bg: #F4F5F8;
  --surface: #FFFFFF;
  --ink: #0E1726;
  --muted: #566176;
  --line: #DFE3EA;
  --accent: #1F4BFF;
  --accent-ink: #FFFFFF;
  --accent-soft: #E6ECFF;
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Noto Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1020; --surface: #121A2E; --ink: #EEF1F7; --muted: #9DA7BB;
    --line: #243049; --accent: #7A93FF; --accent-ink: #0B1020; --accent-soft: #1A2650;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1020; --surface: #121A2E; --ink: #EEF1F7; --muted: #9DA7BB;
  --line: #243049; --accent: #7A93FF; --accent-ink: #0B1020; --accent-soft: #1A2650;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.prose { max-width: 66ch; }
.prose a { color: var(--accent); text-decoration: none; font-weight: 500; transition: opacity .15s; }
details p a { color: var(--accent); text-decoration: none; font-weight: 500; transition: opacity .15s; }
details p a:hover { opacity: .75; }
.prose a:hover { opacity: .75; }
.prose a.btn { font-weight: 600; opacity: 1; }
.prose a.btn-primary { color: var(--accent-ink); }
.prose a.btn-primary:hover { opacity: .9; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, 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: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.logo-svg { height: 34px; width: auto; display: block; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 0.85rem; letter-spacing: 0.02em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav .drop { position: relative; }
.nav .drop-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: 0 12px 30px rgba(14,23,38,.12); }
.nav .drop:hover .drop-menu, .nav .drop:focus-within .drop-menu { display: flex; flex-direction: column; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 0.98rem var(--font-body); padding: 13px 22px; border-radius: 10px; border: 1px solid transparent; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.nav .btn { padding: 10px 16px; margin-left: 8px; color: var(--accent-ink); }
.nav .btn:hover { background: var(--accent); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 8px 12px; font: 600 0.9rem var(--font-body); cursor: pointer; }

@media (max-width: 880px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; gap: 2px; }
  .nav.open { display: flex; }
  .nav .drop-menu { display: flex; flex-direction: column; position: static; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0; background: transparent; }
  .nav .btn { margin: 10px 0 0; }
}

/* Views */
[data-view] { display: none; }
[data-view].active { display: block; }
section.block { padding: 72px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.eyebrow { font: 600 0.8rem var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 54ch; margin-top: 20px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.channels { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.channels h2 { font-size: 0.85rem; font-family: var(--font-body); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ch-tile { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s; }
.ch-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.ch-head { display: flex; align-items: center; gap: 10px; }
.ch-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.ch-ic svg { width: 20px; height: 20px; }
.ch-tile b { font-family: var(--font-display); font-size: 1rem; }
.ch-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-tags { gap: 5px; }
.ch-tags span { font-size: 0.72rem; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 2px 8px; }
@media (max-width: 520px) { .ch-grid { grid-template-columns: 1fr; } }
.channel { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.channel:last-child { border-bottom: 0; padding-bottom: 0; }
.channel b { font-family: var(--font-display); font-size: 1.05rem; }
.channel span { color: var(--muted); font-size: 0.9rem; text-align: right; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero { padding-top: 48px; } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 56px; }
.fact { background: var(--surface); padding: 22px; }
.fact b { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; }
.fact span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

/* Service rows */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 64px 1fr 1.3fr auto; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.row:hover h3 { color: var(--accent); }
.row .num { font: 700 0.95rem var(--font-display); color: var(--muted); font-variant-numeric: tabular-nums; }
.row p { color: var(--muted); }
.row .arrow { font-weight: 600; color: var(--accent); white-space: nowrap; }
@media (max-width: 760px) { .row { grid-template-columns: 40px 1fr; gap: 6px 14px; } .row p, .row .arrow { grid-column: 2; } }

/* Portfolio: logo slider */
.slider { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.slider-track { display: flex; gap: 16px; width: max-content; animation: marquee 38s linear infinite; }
.slider:hover .slider-track, .slider:focus-within .slider-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 8px)); } }
.logo-card { flex: none; width: 200px; height: 104px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; display: grid; place-items: center; padding: 18px 22px; }
.logo-card img { max-width: 100%; max-height: 60px; width: auto; height: auto; object-fit: contain; display: block; }
@media (max-width: 600px) { .logo-card { width: 150px; height: 84px; padding: 14px 16px; } .logo-card img { max-height: 46px; } }
@media (prefers-reduced-motion: reduce) {
  .slider { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .slider-track { animation: none; }
  .slider-track [aria-hidden="true"] { display: none; }
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 0.8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
.logo-card img.sq { max-height: 76px; }
@media (max-width: 600px) { .logo-card img.sq { max-height: 58px; } }

.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

/* Case studies */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 16px; text-decoration: none; color: var(--ink); }
a.case:hover { border-color: var(--accent); }
a.case:hover h3 { color: var(--accent); }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.case-logo { height: 40px; display: flex; align-items: center; background: #FFFFFF; border-radius: 8px; padding: 4px 8px; }
.case-logo img { max-height: 32px; max-width: 140px; width: auto; height: auto; display: block; }
.case-top small { color: var(--muted); font-size: 0.85rem; text-align: right; }
.case-tag { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 0.85rem; }
.case-page .head .case-tag { color: var(--accent); font-size: 0.85rem; }
.case-client { margin: -6px 0 0; color: var(--muted); font-size: 0.9rem; }
.case h3 { font-size: 1.2rem; }
.case p { color: var(--muted); font-size: 0.97rem; }
.kpis { display: flex; flex-wrap: wrap; gap: 10px; }
.kpi { background: var(--accent-soft); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; min-width: 120px; }
.kpi b { font: 800 1.35rem var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi span { font-size: 0.8rem; color: var(--muted); line-height: 1.35; }
.case .arrow { font-weight: 600; color: var(--accent); margin-top: auto; }
@media (max-width: 760px) { .cases { grid-template-columns: 1fr; } }

/* Case detail */
.case-page .head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.case-page .head .case-logo { height: 56px; padding: 8px 12px; border: 1px solid var(--line); }
.case-page .head .case-logo img { max-height: 40px; max-width: 180px; }
.case-page .head span { color: var(--muted); font-size: 0.95rem; }
.case-page h1 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); margin: 18px 0 14px; max-width: 24ch; }
.case-page .kpis { margin-top: 26px; }
.case-page .kpi { padding: 16px 20px; min-width: 160px; }
.case-page .kpi b { font-size: 1.9rem; }
.case-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.case-body h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.case-body h2:first-child { margin-top: 0; }
.case-body ul { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.case-body p + p { margin-top: 12px; }
.case-side { display: flex; flex-direction: column; gap: 16px; }
.case-side img { border-radius: var(--radius); border: 1px solid var(--line); }
.role { background: var(--accent-soft); border-radius: var(--radius); padding: 18px; font-weight: 500; }
.funnel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.funnel-step { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: 0.95rem; }
.funnel-rate { font: 700 0.9rem var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.case-body .prose > ul + p, .case-body .prose > p + ul { margin-top: 12px; }
.sources { font-size: 0.92rem; margin-top: 34px; }
.sources ul { padding-left: 18px; gap: 6px; }
@media (max-width: 860px) { .case-body { grid-template-columns: 1fr; } .case-side { position: static; } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.step::before { counter-increment: step; content: "0" counter(step); font: 800 0.9rem var(--font-display); color: var(--accent); }
.step p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.post:hover { border-color: var(--accent); }
.post h3 { font-size: 1.08rem; }
.post-thumb { display: block; margin: -22px -22px 4px; }
.post-thumb img { display: block; width: 100%; height: auto; border-radius: var(--radius) var(--radius) 0 0; }
.post.has-img { overflow: hidden; }
.post-cover { margin: 0 0 28px; }
.post-cover img, .post-fig img { display: block; width: 100%; height: auto; border-radius: 14px; }
.post-cover img, .post-thumb img { background: #0E1726; aspect-ratio: 1200 / 630; }
.post-fig img { background: var(--line); }
.post-fig { margin: 22px 0; }
.post-fig figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.post p { color: var(--muted); font-size: 0.95rem; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 0.82rem; color: var(--muted); margin-top: auto; padding-top: 6px; }
.tag { display: inline-block; font: 600 0.78rem var(--font-body); color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; align-self: flex-start; }
.sample { font-size: 0.75rem; color: var(--muted); border: 1px dashed var(--line); padding: 2px 8px; border-radius: 999px; }
@media (max-width: 900px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts { grid-template-columns: 1fr; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: 500 0.92rem var(--font-body); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Article */
.article { padding: 56px 0 72px; }
.article .prose { margin: 0 auto; }
.article h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); margin: 14px 0 16px; }
.article h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.article p + p { margin-top: 14px; }
.article ol { padding-left: 22px; display: flex; flex-direction: column; gap: 14px; }
.article ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.article h3 { font-size: 1.1rem; margin: 26px 0 8px; }
.article h2[id], .article h3[id] { scroll-margin-top: 90px; }
.article .answer { font-size: 1.08rem; }
.tldr { margin: 26px 0; padding: 20px 22px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.tldr h2 { margin: 0 0 10px; font-size: 1.05rem; }
.toc { margin: 26px 0 10px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.toc h2 { margin: 0 0 10px; font-size: 1.05rem; }
.toc ol { gap: 6px !important; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 520px; }
.table-wrap caption { caption-side: top; text-align: left; padding: 12px 14px 0; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.table-wrap th, .table-wrap td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th { font-weight: 600; color: var(--ink); background: var(--accent-soft); }
.table-wrap tbody tr:last-child td { border-bottom: none; }
.table-wrap td:first-child { white-space: nowrap; font-weight: 500; }
.article .faq { margin-top: 10px; }
.nowrap { white-space: nowrap; }
.facts-card { margin: 26px 0; padding: 20px 22px; border-radius: var(--radius); background: var(--ink); color: #fff; }
.facts-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .08em; color: #9FB2FF; font-weight: 600; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 12px; }
.facts-grid div { display: flex; flex-direction: column; gap: 4px; }
.facts-grid b { font-family: var(--font-display); font-size: 1.35rem; color: #fff; }
.facts-grid span { font-size: 0.85rem; color: #B8C2D9; line-height: 1.35; }
@media (max-width: 620px) { .facts-grid { grid-template-columns: 1fr 1fr; } }
.article ol.checklist { list-style: none; padding-left: 0; counter-reset: ck; }
.article ol.checklist li { position: relative; padding: 12px 14px 12px 48px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.article ol.checklist li::before { content: "✓"; position: absolute; left: 14px; top: 12px; width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 0.8rem; display: grid; place-items: center; }
.breadcrumbs { font-size: 0.88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs a { color: var(--muted); }
.callout { margin-top: 36px; background: var(--accent-soft); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

/* Service page */
.svc-hero { padding: 64px 0 48px; }
.svc-hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; margin-top: 18px; }
.svc-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.includes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.include { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.include p { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 700px) { .includes { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font: 700 1.02rem var(--font-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 66ch; }

/* About */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.portrait { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); display: block; }
.photo { aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--accent-soft); border: 1px dashed var(--accent); display: grid; place-items: center; text-align: center; color: var(--accent); font-weight: 600; padding: 20px; }
.timeline { display: flex; flex-direction: column; border-left: 2px solid var(--line); margin-top: 8px; }
.tl { padding: 0 0 22px 22px; position: relative; }
.tl::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.tl b { display: block; font-family: var(--font-display); }
.tl .when { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } .photo, .portrait { max-width: 280px; } }

.portrait-fig { margin: 0; }
.portrait-fig figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }
.cv-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.contact-card { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.c-row { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.c-row + .c-row { border-top: 1px solid var(--line); }
.c-ic { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.c-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.c-txt small, .c-social small { color: var(--muted); font-size: 0.8rem; }
.c-txt a { color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.c-txt a:hover { color: var(--accent); }
.c-copy { font: 600 0.82rem var(--font-body); color: var(--accent); background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.c-copy:hover { border-color: var(--accent); }
.c-social { justify-content: space-between; }
.c-social .social-icon { width: 40px; height: 40px; border-radius: 10px; }
.social-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.social-icon:hover { color: #FFFFFF; background: #0A66C2; border-color: #0A66C2; }
.contact-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.contact-item small { display: block; color: var(--muted); font-size: 0.82rem; }
.contact-item b { font-weight: 600; }
form.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea { font: 400 1rem var(--font-body); padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-ok { display: none; background: var(--accent-soft); border-radius: 10px; padding: 14px; font-weight: 500; }
.form-ok.show { display: block; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta { background: var(--ink); color: var(--bg); border-radius: 20px; padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta p { color: color-mix(in srgb, var(--bg) 75%, var(--ink)); margin-top: 8px; max-width: 52ch; }
.cta .btn-primary { background: var(--bg); color: var(--ink); }
@media (max-width: 600px) { .cta { padding: 28px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 32px; margin-top: 72px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h3 { font-size: 0.85rem; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 10px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.foot-grid a { color: var(--ink); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); }
.copy { margin-top: 36px; font-size: 0.85rem; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* CMS additions */
.nowrap{white-space:nowrap}
.prose img{max-width:100%;height:auto;border-radius:14px}
.prose figure{margin:22px 0}.prose figcaption{font-size:.85rem;color:var(--muted);margin-top:8px;text-align:center}
.prose table{width:100%;border-collapse:collapse;font-size:.92rem}
.prose table th,.prose table td{padding:10px 14px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.prose table thead th{background:var(--accent-soft);font-weight:600}
.prose .table-wrap table{min-width:520px}
.prose blockquote{margin:20px 0;padding:14px 20px;border-left:4px solid var(--accent);background:var(--surface);border-radius:0 12px 12px 0}
