/* Allten — design system.
   Palette from Samarkand majolica: cobalt, turquoise, a little saffron, on cool paper. */

:root {
  --paper: #f4f6fb;
  --surface: #ffffff;
  --ink: #0f1535;
  --ink-2: #4a5274;
  --line: #dce1ee;
  --cobalt: #2442d6;
  --cobalt-strong: #1b33b0;
  --on-cobalt: #ffffff;
  --turq: #0e9e9a;
  --saffron: #e7a23b;
  --panel: #1c2fa8;
  --panel-ink: #eef1ff;
  --panel-ink-2: #c3cbf6;
  --shadow: 0 1px 2px rgb(15 21 53 / 6%), 0 8px 24px -12px rgb(15 21 53 / 18%);

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.35rem, 1.1rem + 0.9vw, 1.65rem);
  --step-3: clamp(1.7rem, 1.25rem + 1.8vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.3rem + 3.4vw, 3.9rem);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1233;
    --surface: #121b45;
    --ink: #eaeeff;
    --ink-2: #a3acd1;
    --line: #26306a;
    --cobalt: #8396ff;
    --cobalt-strong: #a5b3ff;
    --on-cobalt: #0b1233;
    --turq: #3ccfc4;
    --panel: #18247a;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px -12px rgb(0 0 0 / 60%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1233;
  --surface: #121b45;
  --ink: #eaeeff;
  --ink-2: #a3acd1;
  --line: #26306a;
  --cobalt: #8396ff;
  --cobalt-strong: #a5b3ff;
  --on-cobalt: #0b1233;
  --turq: #3ccfc4;
  --panel: #18247a;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px -12px rgb(0 0 0 / 60%);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cobalt-strong); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
.lead { font-size: var(--step-1); color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section + .section { padding-top: 0; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.section-head .lead { margin: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--cobalt); color: var(--on-cobalt); padding: 10px 16px; border-radius: var(--radius-s); }
.skip:focus { top: 12px; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--cobalt); color: var(--on-cobalt); }
.btn-primary:hover { background: var(--cobalt-strong); color: var(--on-cobalt); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--cobalt); color: var(--cobalt); }
.btn-light { background: #fff; color: #1b2a8f; }
.btn-light:hover { background: var(--panel-ink); color: #1b2a8f; }
.btn .icon { width: 20px; height: 20px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.3rem/1 var(--font-display); letter-spacing: -0.03em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 30px; height: 30px; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: var(--radius-s); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--cobalt); }
.main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch a { font: 600 var(--step--1)/1 var(--font-body); color: var(--ink-2); text-decoration: none; padding: 7px 10px; border-radius: 999px; }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn:hover { border-color: var(--cobalt); color: var(--cobalt); }
.icon-btn .icon { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.menu-btn { display: none; }
.header-cta { margin-left: 8px; }

.mobile-menu { position: fixed; inset: 0; z-index: 60; background: var(--paper); padding: 16px var(--gutter) 32px; display: flex; flex-direction: column; gap: 24px; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu .header-row { height: 56px; }
.mobile-menu .menu-links { display: grid; }
.mobile-menu .menu-links a { font: 600 1.6rem/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { width: 100%; }
.mobile-contacts { display: grid; gap: 12px; margin-top: auto; }

@media (max-width: 1020px) {
  .main-nav, .header-cta { display: none; }
  .menu-btn { display: inline-grid; }
  .header-tools { margin-left: auto; }
}
@media (max-width: 420px) {
  .site-header .lang-switch { display: none; }
}

/* ---------- breadcrumb ---------- */
.crumbs { padding-top: 28px; font-size: var(--step--1); color: var(--ink-2); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--cobalt); }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lead { margin: 24px 0 32px; }
.proof { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.proof li { display: grid; gap: 4px; }
.proof b { font: 600 var(--step-2)/1.1 var(--font-display); letter-spacing: -0.02em; }
.proof span { color: var(--ink-2); font-size: var(--step--1); line-height: 1.4; }

/* Majolica tile wall: real app icons set among girih star tiles. */
.tiles { margin: 0; }
.tile-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(6px, 1vw, 12px); }
.tile { aspect-ratio: 1; border-radius: var(--radius); display: grid; place-items: center; overflow: hidden; position: relative; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-app { background: var(--surface); box-shadow: var(--shadow); }
.tile-app a { display: block; width: 100%; height: 100%; }
.tile-star { background: var(--cobalt); color: var(--turq); }
.tile-star.alt { background: var(--turq); color: var(--paper); }
.tile-star.sun { background: var(--surface); color: var(--saffron); border: 1px solid var(--line); }
.tile-star svg { width: 74%; height: 74%; }
.tiles figcaption { margin-top: 14px; font-size: var(--step--1); color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .js .tile { animation: tile-in .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d, 0) * 55ms + 120ms); }
  @keyframes tile-in { from { opacity: 0; transform: translateY(14px) scale(.92); } }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .tiles { max-width: 520px; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- services list ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); }
.svc-list li { border-top: 1px solid var(--line); }
.svc-item { display: grid; grid-template-columns: 48px 1fr; gap: 4px 18px; padding: 28px 0 32px; color: var(--ink); text-decoration: none; }
.svc-item .icon-wrap { grid-row: span 2; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--cobalt) 12%, transparent); color: var(--cobalt); }
.svc-item h3 { align-self: center; }
.svc-item p { margin: 0; color: var(--ink-2); }
.svc-item:hover h3 { color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (max-width: 760px) { .svc-list { grid-template-columns: 1fr; } }

/* ---------- featured cases ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; padding: clamp(28px, 4vw, 48px) 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feature.reverse .shot { order: 2; }
.feature h3 { font-size: var(--step-3); font-weight: 600; letter-spacing: -0.02em; }
.feature .kind { color: var(--turq); font-weight: 600; margin: 0 0 10px; }
.feature p.summary { color: var(--ink-2); margin: 16px 0 20px; }
.metrics { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.metrics b { display: block; font: 600 var(--step-1)/1.1 var(--font-display); letter-spacing: -0.02em; }
.metrics span { font-size: var(--step--1); color: var(--ink-2); line-height: 1.35; display: block; margin-top: 4px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-weight: 600; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse .shot { order: 0; }
}

/* Browser-window frame around site screenshots. */
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.shot-bar span { margin-left: 10px; font-size: 12px; color: var(--ink-2); }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot-app { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--cobalt); }
.shot-app img { width: 30%; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 20px 40px -10px rgb(0 0 0 / 40%); }

/* Compact case cards. */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px) clamp(16px, 2.5vw, 28px); }
.case-card { display: grid; gap: 14px; color: var(--ink); text-decoration: none; align-content: start; }
.case-card h3 { display: flex; align-items: center; gap: 10px; }
.case-card h3 img { width: 28px; height: 28px; border-radius: 7px; }
.case-card p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.case-card .kind { font-size: var(--step--1); color: var(--turq); font-weight: 600; }
.case-card:hover h3 span { color: var(--cobalt); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 900px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .case-grid { grid-template-columns: 1fr; } }

/* ---------- apps wall ---------- */
.apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 16px; }
.app { display: grid; justify-items: start; gap: 10px; }
.app img { width: 72px; height: 72px; border-radius: 22%; box-shadow: var(--shadow); }
.app b { display: block; font-weight: 600; line-height: 1.25; }
.app b a:hover { color: var(--cobalt) !important; }
.app div > span { display: block; font-size: var(--step--1); color: var(--ink-2); line-height: 1.35; margin-top: 2px; }
.app .stores { display: flex; gap: 10px; font-size: var(--step--1); font-weight: 600; }
.app .stores a { text-decoration: none; }
.app .stores a:hover { text-decoration: underline; }
@media (max-width: 1000px) { .apps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- client sites ---------- */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.client a { display: grid; gap: 10px; color: var(--ink); text-decoration: none; }
.client img { border-radius: var(--radius-s); border: 1px solid var(--line); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.client b { font-weight: 600; }
.client span { font-size: var(--step--1); color: var(--ink-2); line-height: 1.35; display: block; }
.client a:hover b { color: var(--cobalt); }
@media (max-width: 1000px) { .clients { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- process (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--cobalt); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font: 600 var(--step-2)/1 var(--font-display); color: var(--cobalt); margin-bottom: 14px; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--ink-2); font-size: .98rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px) clamp(24px, 5vw, 72px); }
.why h3 { margin-bottom: 10px; }
.why p { margin: 0; color: var(--ink-2); }
@media (max-width: 700px) { .why { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 22px 0; font: 500 var(--step-1)/1.35 var(--font-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--cobalt); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq .answer { padding: 0 0 24px; color: var(--ink-2); max-width: 70ch; }
.faq .answer p { margin: 0; }

/* ---------- contact panel (the one loud block) ---------- */
.contact-panel { background: var(--panel); color: var(--panel-ink); border-radius: var(--radius-l); padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); position: relative; overflow: hidden; }
.contact-panel::after { content: ""; position: absolute; left: -110px; bottom: -110px; width: 300px; height: 300px; background: url("../img/star-turq.svg") center / contain no-repeat; opacity: .14; pointer-events: none; }
.contact-panel h2 { color: #fff; }
.contact-panel .lead { color: var(--panel-ink-2); margin-top: 16px; }
.contact-panel a { color: #fff; }
.direct { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; }
.direct li { display: flex; gap: 14px; align-items: center; }
.direct .icon { color: #8de9e1; }
.direct small { display: block; color: var(--panel-ink-2); font-size: var(--step--1); }
.direct a { font-weight: 600; font-size: var(--step-1); text-decoration: none; }
.direct a:hover { text-decoration: underline; }
@media (max-width: 860px) { .contact-panel { grid-template-columns: 1fr; } .contact-panel::after { display: none; } }

.form { display: grid; gap: 16px; position: relative; z-index: 1; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--panel-ink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid rgb(255 255 255 / 22%);
  background: rgb(255 255 255 / 8%); color: #fff; font: 400 1rem/1.4 var(--font-body);
}
.field select option { color: #0f1535; }
.field textarea { min-height: 110px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgb(255 255 255 / 55%); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: #8de9e1; background: rgb(255 255 255 / 12%); }
.field input[aria-invalid="true"] { border-color: #ffb4a8; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: 13px; color: var(--panel-ink-2); margin: 0; }
.form-status { margin: 0; padding: 14px 16px; border-radius: 10px; font-weight: 500; }
.form-status[hidden] { display: none; }
.form-status.ok { background: rgb(141 233 225 / 18%); color: #fff; }
.form-status.err { background: rgb(255 180 168 / 18%); color: #fff; }
.form button[disabled] { opacity: .7; cursor: progress; }

/* ---------- page heads ---------- */
.page-head { padding: clamp(28px, 5vw, 56px) 0 clamp(40px, 6vw, 72px); }
.page-head h1 { max-width: 20ch; }
.page-head .lead { margin-top: 20px; }

/* Service page */
.includes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); }
.includes li { border-top: 1px solid var(--line); padding: 22px 0 26px; }
.includes h3 { margin-bottom: 8px; }
.includes p { margin: 0; color: var(--ink-2); }
@media (max-width: 900px) { .includes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .includes { grid-template-columns: 1fr; } }
.timeline-table { width: 100%; max-width: 760px; border-collapse: collapse; }
.timeline-table th, .timeline-table td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); }
.timeline-table th { font-weight: 500; }
.timeline-table td { text-align: right; font: 600 1rem/1.3 var(--font-display); color: var(--cobalt); white-space: nowrap; padding-left: 16px; }
.note { color: var(--ink-2); font-size: var(--step--1); margin-top: 14px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: var(--step--1); font-weight: 500; }
.two-col { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Case page */
.case-head { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.case-head .app-icon { width: 88px; height: 88px; border-radius: 22%; box-shadow: var(--shadow); }
.case-head .kind { color: var(--turq); font-weight: 600; margin: 0 0 8px; }
@media (max-width: 560px) { .case-head { grid-template-columns: 1fr; } .case-head .app-icon { width: 72px; height: 72px; } }
.prose { max-width: 68ch; }
.prose p { font-size: 1.1rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks .icon { color: var(--turq); width: 22px; height: 22px; margin-top: 2px; }
.side-block + .side-block { margin-top: 36px; }
.side-block h2 { font-size: var(--step-1); font-weight: 500; margin-bottom: 16px; }
.big-metrics { list-style: none; margin: 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.big-metrics b { display: block; font: 600 var(--step-3)/1 var(--font-display); letter-spacing: -0.03em; color: var(--cobalt); }
.big-metrics span { display: block; color: var(--ink-2); margin-top: 8px; }
@media (max-width: 560px) { .big-metrics { grid-template-columns: 1fr; } }

/* About */
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0 24px; }
.facts dt, .facts dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--ink-2); }
.facts dd { font-weight: 500; }
.years { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 860px; }
.years li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.years b { font: 600 var(--step-2)/1 var(--font-display); color: var(--cobalt); }
.years p { margin: 0; }
@media (max-width: 560px) { .years li { grid-template-columns: 1fr; gap: 6px; } }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-list { margin: 0; display: grid; gap: 22px; }
.contact-list dt { color: var(--ink-2); font-size: var(--step--1); }
.contact-list dd { margin: 4px 0 0; font: 600 var(--step-1)/1.3 var(--font-body); }
.contact-list a { text-decoration: none; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: .98rem; }
main > .page-head:last-child, main > .section:last-child { padding-bottom: var(--section); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h2 { font: 600 var(--step--1)/1.3 var(--font-body); letter-spacing: 0; color: var(--ink-2); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--cobalt); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: var(--step--1); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.nf { text-align: left; }
.nf .code { font: 700 clamp(5rem, 18vw, 11rem)/1 var(--font-display); color: var(--cobalt); letter-spacing: -0.05em; }

@media print {
  .site-header, .site-footer, .contact-panel, .tiles { display: none !important; }
}

/* ---------- articles ---------- */
.article-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 64px); }
.article-list li { border-top: 1px solid var(--line); }
.article-list a { display: grid; gap: 10px; padding: 26px 0 30px; color: var(--ink); text-decoration: none; }
.article-list h3 { font-size: var(--step-1); }
.article-list p { margin: 0; color: var(--ink-2); }
.article-list time { font-size: var(--step--1); color: var(--ink-2); }
.article-list a:hover h3 { color: var(--cobalt); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (max-width: 760px) { .article-list { grid-template-columns: 1fr; } }

.article-head h1 { max-width: 24ch; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); }
.byline { margin: 20px 0 0; color: var(--ink-2); }
.byline span { color: var(--line); margin: 0 6px; }
.article-body { display: grid; gap: clamp(32px, 5vw, 56px); }
.article-body > * { max-width: 760px; }
.answer-box { border-left: 4px solid var(--turq); background: color-mix(in srgb, var(--turq) 9%, var(--surface)); padding: 22px 26px; border-radius: 0 var(--radius) var(--radius) 0; }
.answer-box h2 { font-size: var(--step-0); font-weight: 600; font-family: var(--font-body); letter-spacing: 0; margin-bottom: 8px; color: var(--turq); }
.answer-box p { margin: 0; font-size: 1.12rem; line-height: 1.6; }
.article .prose h2 { font-size: var(--step-2); margin: 40px 0 14px; }
.article .prose h2:first-child { margin-top: 0; }
.article .prose ul, .article .prose ol { padding-left: 1.3em; margin: 0 0 1em; display: grid; gap: 8px; font-size: 1.08rem; }
.article .prose li::marker { color: var(--cobalt); font-weight: 600; }
.article-faq h2 { margin-bottom: 20px; }
.service-cta .svc-item { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-cta p.muted { margin: 0 0 4px; font-size: var(--step--1); }
