/* MMLAW — mmlaw.ge. Design tokens follow the "Home — Desktop" mockup. */
:root {
  --bg: #ffffff;
  --fg: #09090b;
  --fg2: #3f3f46;
  --muted: #52525b;
  --faint: #a1a1aa;
  --line: #e4e4e7;
  --soft: #fafafa;
  --soft2: #f4f4f5;
  --ink: #18181b;
  --black: #09090b;
  --dline: #27272a;
  --accent: #b45309;
  --font: "HelveticaNeue", "Helvetica Neue", Arial, Helvetica, "Noto Sans Georgian", sans-serif;
  --mono: var(--font);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -12px rgba(0,0,0,.12);
  --surface: #ffffff;
  --on-ink: #fafafa;
  --ink-hover: #27272a;
  --line-strong: #d4d4d8;
  --glass: rgba(255,255,255,.9);
  --on-accent: #ffffff;
  --acc-soft: #fef3c7;
  --acc-bg: #fffbeb;
  --acc-line: #fde68a;
  --dark-sec: #09090b;
  --ok-bg: #f0fdf4; --ok-fg: #15803d;
  --err-bg: #fef2f2; --err-fg: #b91c1c;
  color-scheme: light;
}
/* dark theme: system preference unless the visitor chose light; or explicit choice */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090b; --surface: #131316; --fg: #fafafa; --fg2: #d4d4d8; --muted: #a1a1aa; --faint: #71717a;
    --line: #27272a; --line-strong: #3f3f46; --soft: #0f0f12; --soft2: #1c1c20; --ink: #fafafa; --on-ink: #09090b;
    --ink-hover: #e4e4e7; --black: #09090b; --dline: #27272a; --accent: #f59e0b; --on-accent: #09090b;
    --acc-soft: rgba(245,158,11,.14); --acc-bg: rgba(245,158,11,.07); --acc-line: rgba(245,158,11,.35);
    --glass: rgba(9,9,11,.85); --dark-sec: #131316;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.7);
    --ok-bg: rgba(34,197,94,.1); --ok-fg: #4ade80; --err-bg: rgba(239,68,68,.1); --err-fg: #f87171;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09090b; --surface: #131316; --fg: #fafafa; --fg2: #d4d4d8; --muted: #a1a1aa; --faint: #71717a;
  --line: #27272a; --line-strong: #3f3f46; --soft: #0f0f12; --soft2: #1c1c20; --ink: #fafafa; --on-ink: #09090b;
  --ink-hover: #e4e4e7; --black: #09090b; --dline: #27272a; --accent: #f59e0b; --on-accent: #09090b;
  --acc-soft: rgba(245,158,11,.14); --acc-bg: rgba(245,158,11,.07); --acc-line: rgba(245,158,11,.35);
  --glass: rgba(9,9,11,.85); --dark-sec: #131316;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px -12px rgba(0,0,0,.7);
  --ok-bg: rgba(34,197,94,.1); --ok-fg: #4ade80; --err-bg: rgba(239,68,68,.1); --err-fg: #f87171;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--muted); }
h1, h2, h3, p, ul, ol { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--mono); }
.acc { color: var(--accent); flex: none; }
.acc-t { color: var(--accent) !important; }
.muted { color: var(--muted); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; color: var(--on-ink); }
[hidden] { display: none !important; }

/* Georgian has no letter case and needs looser tracking */
:lang(ka) .eyebrow, :lang(ka) .brand-sub { text-transform: none; letter-spacing: .01em; }
:lang(ka) .h1, :lang(ka) .h2, :lang(ka) .h1-page { letter-spacing: -0.01em; }
:lang(ka) .h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); line-height: 1.12; }
:lang(ka) .h1-page { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; }
:lang(ka) .h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.2; }

/* ---------- buttons */
.btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent; font-size: 14px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; height: 44px; font-size: 15px; }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: var(--ink-hover); color: var(--on-ink); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-outline { border-color: var(--line); background: var(--surface); color: var(--fg); }
.btn-outline:hover { background: var(--soft2); color: var(--fg); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--soft2); color: var(--fg); }
.btn-light { background: #fafafa; color: #09090b; height: 44px; padding: 0 18px; align-self: flex-start; }
.btn-light:hover { background: #ffffff; color: #09090b; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.bg-white { background: var(--surface); }

/* ---------- top bar & header */
.topbar { border-bottom: 1px solid var(--line); background: var(--soft); }
.topbar-in { padding-top: 8px; padding-bottom: 8px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.topbar-info { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.topbar-info span, .tb-phone { display: inline-flex; gap: 6px; align-items: center; }
.tb-phone { color: var(--fg); font-weight: 500; }
.hdr-phone { display: none; }
.lang { display: inline-flex; padding: 2px; gap: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.lang a { font-size: 12px; font-weight: 500; border-radius: 6px; padding: 4px 10px; color: var(--muted); }
.lang a:hover { background: var(--soft2); color: var(--fg); }
.lang a[aria-current] { background: var(--ink); color: var(--on-ink); }
.hdr { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hdr-in { padding-top: 14px; padding-bottom: 14px; display: flex; gap: 16px 28px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--fg); }
.brand:hover { color: var(--fg); }
.logo-mark { border-radius: 8px; background: var(--ink); color: var(--on-ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.brand-sub { white-space: nowrap; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: nowrap; gap: 2px; font-size: 14px; font-weight: 500; }
.nav a { padding: 8px 10px; border-radius: 6px; white-space: nowrap; }
.nav a:hover { background: var(--soft2); color: var(--fg); }
.nav a[aria-current] { background: var(--soft2); }
.hdr-actions { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); align-items: center; justify-content: center; cursor: pointer; color: var(--fg); }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.hdr-lang { display: none; }
.mnav { position: fixed; left: 0; right: 0; top: var(--hdr-h, 61px); bottom: 0; z-index: 30; background: var(--surface); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); animation: mnav-in .18s ease-out; }
@keyframes mnav-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mnav-in { padding-top: 8px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 28px; }
.mnav-main { display: flex; flex-direction: column; }
.mnav-main a { padding: 16px 0; border-bottom: 1px solid var(--soft2); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.mnav-main a[aria-current] { color: var(--accent); }
.mnav-h { display: block; font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
:lang(ka) .mnav-h { text-transform: none; letter-spacing: .01em; }
.mnav-svc { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.mnav-svc a { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 500; line-height: 1.3; }
.mnav-svc svg { flex: none; color: var(--accent); }
.mnav-btns { display: grid; gap: 10px; }
.mnav-btns .btn { height: 48px; }
.mnav-info { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
html.menu-open { overflow: hidden; }
.mbar { display: none; }

/* ---------- hero */
.grid-bg { background-color: var(--bg); background-image: linear-gradient(var(--soft2) 1px, transparent 1px), linear-gradient(90deg, var(--soft2) 1px, transparent 1px); background-size: 48px 48px; }
.hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-in { padding-top: 96px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-l { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.pill { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; padding: 4px 12px 4px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 500; color: var(--fg2); }
.pill-tag { padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; }
.h1 { font-size: clamp(2.75rem, 6vw, 4.5rem); line-height: 1.02; font-weight: 600; letter-spacing: -0.03em; }
.lead { max-width: 36rem; font-size: 19px; line-height: 1.6; color: var(--muted); }
.lead-sm { font-size: 17px; line-height: 1.6; color: var(--muted); }
.checks { list-style: none; padding: 8px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--fg2); }
.checks li { display: inline-flex; gap: 8px; align-items: center; }

/* ---------- consultation form */
.card-form { flex: 1 1 380px; min-width: 0; max-width: 460px; margin: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.cf-head { padding: 24px 24px 8px; display: flex; flex-direction: column; gap: 6px; }
.cf-title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.cf-head p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.cf-body { padding: 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.card-form input, .card-form select, .card-form textarea { font-weight: 400; font-size: 14px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); width: 100%; }
.card-form textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 96px; }
.card-form input:focus, .card-form select:focus, .card-form textarea:focus { outline: none; border-color: var(--faint); box-shadow: 0 0 0 3px rgba(161,161,170,.35); }
.cf-foot { padding: 8px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.wa-link { display: inline-flex; gap: 6px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cf-status { font-size: 13px; line-height: 1.5; color: var(--fg2); background: var(--soft2); border-radius: 8px; padding: 10px 12px; }
.cf-priv { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); }
.form-wrap { display: flex; justify-content: center; }
.form-wrap .card-form { max-width: 640px; flex-basis: 640px; }

/* ---------- stats */
.stats { border-bottom: 1px solid var(--line); }
.stats-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stat { padding: 32px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.stat:last-child { border-right: 1px solid var(--line); }
.stat-v { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; }
.stat-l { font-size: 14px; color: var(--muted); }

/* ---------- sections */
.sec { padding: 112px 0; }
.sec-pad { padding-top: 112px; padding-bottom: 112px; }
.bb { border-bottom: 1px solid var(--line); }
.soft { background: var(--soft); }
.stack { display: flex; flex-direction: column; gap: 48px; }
.stack-md { display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.stack-sm { display: flex; flex-direction: column; gap: 24px; }
.narrow { max-width: 880px; }
.sec-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.sec-title { display: flex; flex-direction: column; gap: 14px; max-width: 40rem; }
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow-dim { color: var(--faint); }
.h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; }
.h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 16px; }

/* ---------- services */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.svc-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .15s; }
.svc-card:hover { color: var(--fg); border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.icon-box { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.svc-name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.svc-short { font-size: 14px; line-height: 1.6; color: var(--muted); }
.svc-more { position: absolute; top: 24px; right: 24px; color: var(--faint); transition: color .15s, transform .15s; }
.svc-card:hover .svc-more { color: var(--accent); transform: translateX(2px); }
.svc-rows { display: flex; flex-direction: column; }
.svc-row { display: flex; gap: 20px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.svc-row:first-child { padding-top: 0; }
.svc-row h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.svc-row p { color: var(--muted); line-height: 1.7; max-width: 46rem; }
.svc-row .svc-lead { color: var(--fg2); font-weight: 500; margin-bottom: 8px; }
.link-arrow { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; font-size: 14px; font-weight: 500; color: var(--accent); }
.link-arrow:hover { color: var(--fg); }

/* ---------- dark about */
.dark { background: var(--dark-sec); color: #fafafa; }
.dark .h2 { color: #fafafa; }
.dark .eyebrow { color: var(--faint); }
.about-in { padding-top: 112px; padding-bottom: 112px; display: flex; flex-wrap: wrap; gap: 64px; }
.about-l { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.lead-dark { font-size: 17px; line-height: 1.7; color: var(--faint); max-width: 32rem; }
.princ { flex: 1 1 460px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; border-radius: 14px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.princ-dark { background: var(--dline); border-color: var(--dline); }
.pr { background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.princ-dark .pr { background: var(--dark-sec); }
.pr h3 { font-size: 17px; font-weight: 600; }
.pr p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.princ-dark .pr p, .pr-n { color: var(--faint); font-size: 13px; }

/* ---------- process */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.step-n { width: 32px; height: 32px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 16px; font-weight: 600; }
.steps p { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 20px 0; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.faq-item summary svg { flex: none; color: var(--muted); transition: transform .2s; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-a { padding: 0 40px 22px 0; }
.faq-a p { font-size: 15px; line-height: 1.7; color: var(--muted); }

/* ---------- blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.post-card:hover { color: var(--fg); box-shadow: var(--shadow); border-color: var(--line-strong); }
.pc-media { aspect-ratio: 16 / 9; background: var(--soft2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; }
.pc-art { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--accent); background-color: var(--surface); background-image: linear-gradient(var(--soft2) 1px, transparent 1px), linear-gradient(90deg, var(--soft2) 1px, transparent 1px); background-size: 24px 24px; }
.pc-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.tag { align-self: flex-start; display: inline-block; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--fg); }
.pc-title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.pc-meta { font-size: 13px; color: var(--muted); }

/* ---------- CTA + contact list */
.cta-box { border: 1px solid var(--line); border-radius: 20px; padding: 56px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; justify-content: space-between; background: var(--surface); }
.cta-l { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cta-l .btns { padding-top: 8px; }
.cta-l .h2 { font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; }
.cta-r { flex: 1 1 320px; min-width: 0; }
.contact-list { list-style: none; padding: 0; display: flex; flex-direction: column; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.ci { width: 40px; height: 40px; border-radius: 10px; background: var(--soft2); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ci-acc { background: var(--acc-soft); color: var(--accent); }
.contact-list li > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cl { font-size: 13px; color: var(--muted); }
.cv { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- inner pages */
.page-hero { border-bottom: 1px solid var(--line); }
.page-hero .wrap { padding-top: 28px; padding-bottom: 72px; }
.ph-in { display: flex; flex-direction: column; gap: 20px; max-width: 52rem; padding-top: 40px; }
.h1-page { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.06; font-weight: 600; letter-spacing: -0.03em; }
.crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--faint); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.crumbs [aria-current] { color: var(--fg); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
.side { position: sticky; top: 96px; }
.side-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.side-t { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.side-card > p { font-size: 14px; color: var(--muted); line-height: 1.5; margin-bottom: 4px; }
.prose { font-size: 17px; line-height: 1.75; color: var(--fg2); max-width: 46rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--accent); }
.narrow-prose { max-width: 46rem; }
.article > p:first-of-type { font-size: 19px; color: var(--fg); }
.post-img { width: 100%; max-width: 560px; border-radius: 12px; border: 1px solid var(--line); }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.6; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-top: 2em !important; }
.note svg { flex: none; margin-top: 3px; color: var(--accent); }
.checklist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 24px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.checklist svg { margin-top: 2px; }
.vals { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.val { padding: 28px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
.val h3 { font-size: 18px; font-weight: 600; }
.val p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.contact-grid { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.contact-grid > .stack-md { flex: 1 1 380px; gap: 32px; }
.contact-grid .card-form { max-width: 520px; flex-basis: 460px; }
.urgent { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--acc-line); background: var(--acc-bg); border-radius: 12px; }
.urgent h2 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.urgent p { font-size: 14px; line-height: 1.6; color: var(--fg2); margin-bottom: 12px; }
.nf .ph-in { padding-bottom: 80px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 8px; font-weight: 500; }
.nf-links a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer */
.ftr { border-top: 1px solid var(--line); background: var(--soft); }
.ftr-in { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 32px; }
.ftr-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.ftr-brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; max-width: 22rem; }
.ftr-brand .brand-name { font-size: 17px; }
.ftr-brand p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.socials { display: flex; gap: 8px; }
.socials a { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.socials a:hover { color: var(--fg); background: var(--soft2); }
.ftr-cols { display: flex; flex-wrap: wrap; gap: 48px; }
.ftr-cols > div { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.ftr-cols a, .ftr-cols span:not(.ftr-h) { color: var(--muted); }
.ftr-cols a:hover { color: var(--fg); }
.ftr-h { font-weight: 600; }
.ftr-disc { font-size: 12px; color: var(--muted); }
.ftr-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.ftr-bottom a { color: var(--muted); }

/* ---------- responsive */
@media (max-width: 1080px) {
  .hdr-phone { display: none; }
}
@media (max-width: 1199px) {
  .nav, .hdr-cta { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .side { position: static; }
}
@media (max-width: 640px) {
  :root { --hdr-h: 57px; }
  html { scroll-padding-top: 72px; }
  body { font-size: 15px; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  .hide-sm, .topbar, .side { display: none !important; }

  /* header */
  .hdr { background: var(--glass); }
  .hdr-in { padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .logo-mark { width: 34px !important; height: 34px !important; }
  .brand-name { font-size: 17px; }
  .brand-sub { display: none; }
  .hdr-lang { display: block; }
  .hdr-lang .lang a { padding: 5px 8px; font-size: 11px; }
  .hdr-actions { gap: 6px; }

  /* bottom contact bar */
  .mbar { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mbar a { display: flex; gap: 6px; align-items: center; justify-content: center; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--fg); min-width: 0; }
  .mbar a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mbar a svg { flex: none; }
  .mbar .mbar-cta { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
  html.menu-open .mbar { display: none; }

  /* type */
  .h1 { font-size: 2.6rem; line-height: 1.04; }
  :lang(ka) .h1 { font-size: 2.05rem; line-height: 1.18; }
  .h2 { font-size: 1.85rem; line-height: 1.12; }
  :lang(ka) .h2 { font-size: 1.5rem; line-height: 1.25; }
  .h1-page { font-size: 2.1rem; }
  :lang(ka) .h1-page { font-size: 1.7rem; line-height: 1.2; }
  .lead { font-size: 16px; line-height: 1.6; }
  .eyebrow { font-size: 12px; }

  /* sections */
  .sec, .sec-pad { padding-top: 56px; padding-bottom: 56px; }
  .stack, .stack-md { gap: 28px; }
  .sec-head { gap: 16px; align-items: flex-start; }
  .sec-head > .btn { order: 2; }

  /* hero */
  .hero-in { padding-top: 28px; padding-bottom: 32px; gap: 32px; }
  .hero-l { gap: 18px; }
  .pill { font-size: 12px; }
  .btns { gap: 10px; }
  .btns .btn-lg { flex: 1 1 100%; height: 50px; }
  .checks { flex-direction: column; gap: 8px; padding-top: 2px; font-size: 13px; }
  .grid-bg { background-size: 32px 32px; }

  /* form */
  .card-form { flex-basis: 100%; max-width: none; border-radius: 16px; }
  .cf-head, .cf-body, .cf-foot { padding-left: 16px; padding-right: 16px; }
  .cf-head { padding-top: 20px; }
  .row2 { grid-template-columns: minmax(0, 1fr); }
  .card-form input, .card-form select, .card-form textarea { font-size: 16px; height: 48px; }
  .card-form textarea { height: auto; min-height: 110px; }
  .btn-block { height: 50px; }

  /* stats */
  .stats-in { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
  .stat { padding: 20px 16px; border-left: 0; border-bottom: 1px solid var(--line); gap: 2px; }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:last-child { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .stat-v { font-size: 28px; }
  .stat-l { font-size: 13px; }

  /* services: compact rows */
  .svc-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .svc-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 16px; align-items: start; }
  .svc-card .icon-box { grid-row: span 2; width: 40px; height: 40px; }
  .svc-name { font-size: 16px; padding-right: 22px; }
  .svc-short { font-size: 13.5px; line-height: 1.5; }
  .svc-more { top: 18px; right: 16px; }
  .svc-row { flex-direction: column; gap: 12px; padding: 24px 0; }
  .svc-row h2 { font-size: 20px; }

  /* about (dark) */
  .about-in { padding-top: 56px; padding-bottom: 56px; gap: 32px; }
  .about-l { gap: 18px; }
  .lead-dark { font-size: 15px; }
  .btn-light { align-self: stretch; height: 48px; }
  .princ { grid-template-columns: minmax(0, 1fr); }
  .pr { padding: 20px; gap: 6px; }

  /* process: numbered list */
  .steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 16px; }
  .steps .step-n { grid-row: span 2; }

  /* FAQ */
  .faq-item summary { padding: 16px 0; }
  .faq-item summary h3 { font-size: 15.5px; line-height: 1.4; }
  .faq-a { padding: 0 0 18px; }
  .faq-a p { font-size: 14.5px; }

  /* blog: swipeable row */
  .post-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .post-grid::-webkit-scrollbar { display: none; }
  .post-card { flex: 0 0 84%; scroll-snap-align: start; }
  .pc-body { padding: 16px; }
  .pc-title { font-size: 16px; }

  /* CTA */
  .cta-box { padding: 24px 18px; gap: 24px; border-radius: 16px; }
  .cta-l .h2 { font-size: 1.6rem; }
  :lang(ka) .cta-l .h2 { font-size: 1.35rem; }
  .contact-list li { padding: 12px 0; }

  /* inner pages */
  .page-hero .wrap { padding-top: 16px; padding-bottom: 36px; }
  .ph-in { padding-top: 20px; gap: 14px; }
  .crumbs ol { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
  .crumbs li:last-child { overflow: hidden; text-overflow: ellipsis; }
  .prose { font-size: 16px; line-height: 1.7; }
  .prose h2 { font-size: 20px; }
  .article > p:first-of-type { font-size: 17px; }
  .checklist { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .checklist li { font-size: 14.5px; padding: 11px 12px; }
  .vals { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .val { padding: 20px; }
  .contact-grid { gap: 32px; }
  .urgent { padding: 16px; }

  /* footer */
  .ftr-in { padding-top: 40px; padding-bottom: 24px; gap: 24px; }
  .ftr-top { gap: 28px; }
  .ftr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; width: 100%; }
  .ftr-cols > div:last-child { grid-column: 1 / -1; }
  .ftr-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 360px) {
  .hdr-lang .lang a { padding: 0 7px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 16px; }
  .mbar a { font-size: 12px; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .mbar, .topbar, .hdr, .ftr, .side, .card-form, .cta-box { display: none !important; }
}
.mnav-lang .lang a { padding: 8px 16px; font-size: 13px; }

/* ---------- theme toggle */
.theme-btn { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.theme-btn:hover { background: var(--soft2); }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
}
body, .hdr, .card-form, .svc-card, .post-card, .side-card { transition: background-color .2s, border-color .2s, color .2s; }

/* ---------- form status + spam trap */
.cf-status.is-ok { background: var(--ok-bg); color: var(--ok-fg); }
.cf-status.is-err { background: var(--err-bg); color: var(--err-fg); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- call popup */
.sheet { width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--fg); box-shadow: 0 24px 64px -16px rgba(0,0,0,.45); }
.sheet::backdrop { background: rgba(9,9,11,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-in .2s ease-out; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.sh-in { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.sh-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.sh-head h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.sh-head p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.sh-x { width: 36px; height: 36px; flex: none; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sh-x:hover { background: var(--soft2); }
.sh-opts { display: grid; gap: 10px; }
.sh-opt { width: 100%; display: flex; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--fg); text-align: left; cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.sh-opt:hover { color: var(--fg); background: var(--soft); border-color: var(--line-strong); }
.sh-opt > span:not(.sh-ic) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sh-opt b { font-size: 15px; font-weight: 600; }
.sh-opt small { font-size: 13px; color: var(--muted); }
.sh-ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--soft2); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; }
.sh-ic-dark { background: var(--ink); color: var(--on-ink); }
.sh-ic-wa { background: #25d366; color: #ffffff; }
.sh-go { margin-left: auto; flex: none; color: var(--faint); }
.sh-form { display: flex; flex-direction: column; gap: 12px; }
.sh-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.sh-form input { font: inherit; font-size: 16px; font-weight: 400; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); width: 100%; }
.sh-form input:focus { outline: none; border-color: var(--faint); box-shadow: 0 0 0 3px rgba(161,161,170,.35); }
.sh-form .btn-block { height: 48px; }
html.sheet-open { overflow: hidden; }
@media (max-width: 640px) {
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 20px 20px 0 0; border-bottom: 0; max-height: 92vh; }
  .sheet[open] { animation: sheet-up .24s cubic-bezier(.2,.8,.2,1); }
  @keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
  .sh-in { padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
  .sh-in::before { content: ""; align-self: center; width: 40px; height: 4px; border-radius: 4px; background: var(--line-strong); margin: -8px 0 -4px; }
  .theme-btn { width: 36px; height: 36px; }
}
.sh-head h2:focus { outline: none; }

/* theme switch next to the language switch */
.tb-right { display: flex; gap: 6px; align-items: stretch; }
.theme-sm { width: 32px; height: auto; border-radius: 8px; }
.theme-sm svg { width: 15px; height: 15px; }
.theme-hdr { display: none; }
@media (max-width: 640px) {
  .theme-hdr { display: inline-flex; width: 36px; height: 36px; }
}

/* home H1 keyword line */
.h1-kicker { display: block; font-size: 15px; font-weight: 600; letter-spacing: .02em; line-height: 1.4; color: var(--accent); margin-bottom: 14px; }
:lang(ka) .h1-kicker { letter-spacing: 0; }

/* 404 */
.nf-wrap { padding-top: 72px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 24px; max-width: 44rem; }
.nf-code { font-size: clamp(5rem, 16vw, 9rem); line-height: .9; font-weight: 700; letter-spacing: -0.05em; color: var(--line-strong); }
.nf-links-h { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 16px; }
:lang(ka) .nf-links-h { text-transform: none; letter-spacing: 0; }
.nf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.nf-grid a { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; font-weight: 500; }
.nf-grid a:hover { border-color: var(--line-strong); background: var(--soft); color: var(--fg); }
.nf-grid svg { color: var(--accent); flex: none; }
@media (max-width: 640px) { .nf-wrap { padding-top: 40px; padding-bottom: 56px; } }

/* phone header: language, theme and menu controls share one size */
@media (max-width: 640px) {
  .hdr-actions { gap: 6px; align-items: center; }
  .hdr-lang .lang { height: 36px; box-sizing: border-box; align-items: stretch; border-radius: 8px; }
  .hdr-lang .lang a { display: inline-flex; align-items: center; padding: 0 9px; font-size: 12px; border-radius: 6px; }
  .theme-hdr, .menu-btn { width: 36px; height: 36px; border-radius: 8px; }
  .menu-btn svg { width: 18px; height: 18px; }
  .theme-hdr svg { width: 16px; height: 16px; }
}
@media (max-width: 360px) {
  .hdr-lang .lang a { padding: 0 7px; }
}
@media (max-width: 340px) {
  .brand-txt { display: none; }
}
