/* ==========================================================================
   Araİstanbul – public site design system
   Hand-written, dependency-free. Mobile-first. Uses CSS custom properties.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
    /* Brand (from the araistanbul.com logo green) */
    --brand-50: #ecfbf4;
    --brand-100: #d1f5e4;
    --brand-200: #a6eacb;
    --brand-400: #2fcb8c;
    --brand-500: #17b978;
    --brand-600: #0e9a62;
    --brand-700: #0a7a4e;   /* AA on white for text + buttons */
    --brand-800: #0a5f3e;

    /* Secondary: deep "Bosphorus" blue */
    --blue-50: #eff5ff;
    --blue-100: #dbe8ff;
    --blue-600: #1d5bd6;
    --blue-700: #1747a8;
    --navy-800: #0f2440;
    --navy-900: #0a1a30;
    --navy-950: #071322;

    /* Warm accent for Gold / featured */
    --gold-50: #fff8e6;
    --gold-100: #ffefc2;
    --gold-300: #f8cf5f;
    --gold-500: #e9a90a;
    --gold-700: #8a5a00;

    /* Neutrals (slate) */
    --slate-0: #ffffff;
    --slate-25: #fbfcfd;
    --slate-50: #f6f8fb;
    --slate-100: #eef2f6;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --danger-50: #fef2f2;
    --danger-600: #c62828;
    --danger-700: #a61b1b;
    --success-50: #ecfdf3;
    --success-700: #0a7a4e;

    /* Semantic */
    --bg: var(--slate-0);
    --bg-subtle: var(--slate-50);
    --surface: var(--slate-0);
    --text: var(--slate-900);
    --text-muted: var(--slate-600);
    --text-soft: var(--slate-500);
    --border: var(--slate-200);
    --border-strong: var(--slate-300);
    --link: var(--blue-700);
    --focus: #2563eb;

    /* Type */
    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --fs-xs: 0.78rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.0625rem;
    --fs-lg: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
    --fs-xl: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
    --fs-2xl: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
    --fs-3xl: clamp(2rem, 1.45rem + 2.4vw, 3.25rem);

    /* Spacing scale (4px base) */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --section-y: clamp(2.5rem, 1.8rem + 3vw, 4.5rem);

    /* Shape & depth */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-pill: 999px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px -8px rgba(15, 23, 42, 0.16), 0 2px 6px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, 0.28);
    --ring: 0 0 0 3px rgba(37, 99, 235, 0.35);

    --container: 1200px;
    --gutter: 16px;
    --header-h: 64px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 768px) {
    :root { --gutter: 24px; --header-h: 72px; }
}

/* ---------- 2. Reset / base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--sp-3); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; color: var(--slate-900); }
h1 { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0; padding: 0; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-8) 0; }
strong, b { font-weight: 700; }
address { font-style: normal; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

::selection { background: var(--brand-100); color: var(--slate-900); }

.sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
/* Honeypot container: off-screen, not display:none, so naive bots still fill it */
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.skip-link {
    position: absolute; left: var(--sp-4); top: -100px; z-index: 1000;
    background: var(--slate-900); color: #fff; padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm);
    font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--sp-3); color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 1em; height: 1em; }
.icon--lg { width: 1.6em; height: 1.6em; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- 3. Layout primitives ---------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: var(--section-y); }
.section--subtle { background: var(--bg-subtle); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }
.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-8); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: var(--sp-1) 0 0; color: var(--text-muted); }
.eyebrow { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-700); margin-bottom: var(--sp-2); }
.link-arrow { display: inline-flex; align-items: center; gap: var(--sp-1); font-weight: 600; font-size: var(--fs-sm); color: var(--brand-700); text-decoration: none; white-space: nowrap; }
.link-arrow:hover { color: var(--brand-800); text-decoration: underline; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

.layout-sidebar { display: grid; gap: var(--sp-8); }
@media (min-width: 992px) {
    .layout-sidebar { grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-10); align-items: start; }
    .layout-sidebar--left { grid-template-columns: 300px minmax(0, 1fr); }
    .sticky-col { position: sticky; top: calc(var(--header-h) + 20px); }
}

.muted { color: var(--text-muted); }
.small { font-size: var(--fs-sm); }
.text-center { text-align: center; }

/* ---------- 4. Buttons --------------------------------------------------- */
.btn {
    --btn-bg: var(--slate-0); --btn-fg: var(--slate-800); --btn-border: var(--border-strong);
    display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
    min-height: 44px; padding: 0.6rem 1.1rem; border-radius: var(--radius-sm);
    border: 1px solid var(--btn-border); background: var(--btn-bg); color: var(--btn-fg);
    font-weight: 600; font-size: var(--fs-sm); line-height: 1.2; text-decoration: none; white-space: nowrap;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--btn-fg); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn--primary { --btn-bg: var(--brand-700); --btn-fg: #fff; --btn-border: var(--brand-700); box-shadow: 0 1px 2px rgba(10, 122, 78, .3); }
.btn--primary:hover { --btn-bg: var(--brand-800); --btn-border: var(--brand-800); }
.btn--secondary { --btn-bg: var(--slate-0); --btn-fg: var(--slate-800); }
.btn--secondary:hover { --btn-bg: var(--slate-50); --btn-border: var(--slate-400); }
.btn--ghost { --btn-bg: transparent; --btn-border: transparent; --btn-fg: var(--slate-700); }
.btn--ghost:hover { --btn-bg: var(--slate-100); }
.btn--blue { --btn-bg: var(--blue-700); --btn-fg: #fff; --btn-border: var(--blue-700); }
.btn--blue:hover { --btn-bg: var(--navy-800); --btn-border: var(--navy-800); }
.btn--whatsapp { --btn-bg: #128c4a; --btn-fg: #fff; --btn-border: #128c4a; }
.btn--whatsapp:hover { --btn-bg: #0d7139; --btn-border: #0d7139; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-900); --btn-border: #fff; }
.btn--light:hover { --btn-bg: var(--brand-50); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255, 255, 255, .45); }
.btn--outline-light:hover { --btn-bg: rgba(255, 255, 255, .1); --btn-border: #fff; }
.btn--lg { min-height: 52px; padding: 0.8rem 1.4rem; font-size: var(--fs-base); border-radius: var(--radius); }
.btn--sm { min-height: 36px; padding: 0.4rem 0.8rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------- 5. Badges & chips ------------------------------------------- */
.badge {
    display: inline-flex; align-items: center; gap: 0.3em; padding: 0.2em 0.6em; border-radius: var(--radius-pill);
    font-size: var(--fs-xs); font-weight: 700; line-height: 1.4; white-space: nowrap;
}
.badge--gold { background: linear-gradient(135deg, var(--gold-100), var(--gold-50)); color: var(--gold-700); border: 1px solid var(--gold-300); }
.badge--gold .icon { color: var(--gold-500); }
.badge--brand { background: var(--brand-50); color: var(--brand-800); border: 1px solid var(--brand-100); }
.badge--muted { background: var(--slate-100); color: var(--slate-700); }

.chip {
    display: inline-flex; align-items: center; gap: var(--sp-1); max-width: 100%;
    padding: 0.3rem 0.7rem; border-radius: var(--radius-pill); border: 1px solid var(--border);
    background: var(--slate-0); color: var(--slate-700); font-size: var(--fs-sm); font-weight: 500;
    text-decoration: none; transition: border-color .15s, background-color .15s, color .15s;
}
.chip:hover { border-color: var(--brand-400); background: var(--brand-50); color: var(--brand-800); }
.chip--sector { background: var(--blue-50); border-color: var(--blue-100); color: var(--blue-700); font-size: var(--fs-xs); font-weight: 600; padding: 0.2rem 0.6rem; }
.chip--sector:hover { background: var(--blue-100); color: var(--navy-800); border-color: var(--blue-100); }
.chip-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; }

/* ---------- 6. Header ----------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-header__bar { display: flex; align-items: center; gap: var(--sp-4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 6px; }
.brand img { width: 168px; height: auto; }
@media (min-width: 768px) { .brand img { width: 190px; } }

.primary-nav { display: none; }
.primary-nav ul { list-style: none; display: flex; align-items: center; gap: var(--sp-1); }
.primary-nav a {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.75rem; border-radius: var(--radius-sm);
    color: var(--slate-700); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; transition: background-color .15s, color .15s;
}
.primary-nav a:hover { background: var(--slate-100); color: var(--slate-900); }
.primary-nav a[aria-current="page"] { color: var(--brand-700); background: var(--brand-50); }

.header-search { display: none; flex: 1 1 auto; max-width: 360px; margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }
.header-cta { display: none; }

.search-inline { position: relative; display: flex; align-items: center; width: 100%; }
.search-inline .icon { position: absolute; left: 12px; color: var(--slate-500); pointer-events: none; }
.search-inline input {
    width: 100%; min-height: 42px; padding: 0.5rem 0.9rem 0.5rem 2.4rem; border-radius: var(--radius-pill);
    border: 1px solid var(--border); background: var(--slate-50); font-size: var(--fs-sm);
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.search-inline input:hover { border-color: var(--border-strong); }
.search-inline input:focus { outline: none; border-color: var(--blue-600); background: #fff; box-shadow: var(--ring); }
.search-inline input::-webkit-search-cancel-button { cursor: pointer; }

.nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; color: var(--slate-800);
}
.nav-toggle:hover { background: var(--slate-50); }
.nav-toggle .icon { width: 22px; height: 22px; }

@media (min-width: 1040px) {
    .primary-nav { display: block; margin-left: var(--sp-4); }
    .nav-toggle { display: none; }
    .header-cta { display: inline-flex; }
}
@media (min-width: 1240px) {
    .header-search { display: block; }
    .header-search + .header-actions { margin-left: 0; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; pointer-events: none; overflow: hidden; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(7, 19, 34, .5); opacity: 0; transition: opacity .25s var(--ease); }
.drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 360px); background: #fff;
    display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .28s var(--ease); overflow-y: auto; overscroll-behavior: contain;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-4); border-bottom: 1px solid var(--border); }
.drawer__head img { width: 150px; }
.drawer__body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-5); }
.drawer__nav ul { list-style: none; display: grid; gap: 2px; }
.drawer__nav a {
    display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 var(--sp-3);
    border-radius: var(--radius-sm); color: var(--slate-800); font-weight: 600; text-decoration: none;
}
.drawer__nav a:hover, .drawer__nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-800); }
.drawer__nav a .icon { color: var(--slate-400); }
.drawer__secondary { border-top: 1px solid var(--border); padding-top: var(--sp-4); display: grid; gap: var(--sp-2); }
.drawer__secondary a { color: var(--slate-600); font-size: var(--fs-sm); text-decoration: none; padding: var(--sp-1) var(--sp-3); }
.drawer__secondary a:hover { color: var(--slate-900); text-decoration: underline; }
body.is-locked { overflow: hidden; }

/* Without JS the drawer acts as a simple in-flow menu below the header (mobile only) */
.no-js .nav-toggle { display: none; }
.no-js .drawer { position: static; visibility: visible; pointer-events: auto; }
.no-js .drawer__backdrop, .no-js .drawer__head { display: none; }
.no-js .drawer__panel { position: static; transform: none; width: auto; box-shadow: none; border-top: 1px solid var(--border); }
@media (min-width: 1040px) { .no-js .drawer { display: none; } }

/* ---------- 7. Hero (home) ---------------------------------------------- */
.hero {
    position: relative; isolation: isolate; color: #fff; overflow: hidden;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(23, 185, 120, .35), transparent 60%),
        radial-gradient(700px 380px at -10% 110%, rgba(29, 91, 214, .45), transparent 60%),
        linear-gradient(160deg, var(--navy-800) 0%, var(--navy-950) 100%);
    padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
}
.hero__inner { max-width: 860px; margin-inline: auto; text-align: center; }
.hero__kicker {
    display: inline-flex; align-items: center; gap: var(--sp-2); padding: 0.35rem 0.85rem; border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: var(--fs-sm); font-weight: 600; color: #d8f7e9;
    margin-bottom: var(--sp-5);
}
.hero__kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-400); box-shadow: 0 0 0 4px rgba(47, 203, 140, .25); }
.hero h1 { color: #fff; font-size: var(--fs-3xl); line-height: 1.1; margin-bottom: var(--sp-4); }
.hero h1 .accent { color: var(--brand-400); }
.hero__lede { font-size: var(--fs-lg); color: #c9d6e8; max-width: 640px; margin: 0 auto var(--sp-8); }

.search-panel {
    display: grid; gap: var(--sp-2); padding: var(--sp-2); text-align: left;
    background: #fff; border-radius: var(--radius-lg); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5);
}
.search-panel__field { position: relative; display: flex; flex-direction: column; }
.search-panel__field label {
    position: absolute; left: 44px; top: 8px; font-size: 0.7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--slate-500);
}
.search-panel__field .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--brand-700); pointer-events: none; }
.search-panel__field input, .search-panel__field select {
    width: 100%; min-height: 60px; padding: 1.35rem 1rem 0.45rem 44px; border: 1px solid transparent; border-radius: var(--radius);
    background: var(--slate-50); color: var(--slate-900); font-size: var(--fs-base); font-weight: 500;
    -webkit-appearance: none; appearance: none;
}
.search-panel__field select { padding-right: 2.2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; }
.search-panel__field input:hover, .search-panel__field select:hover { background-color: var(--slate-100); }
.search-panel__field input:focus, .search-panel__field select:focus { outline: none; border-color: var(--blue-600); background-color: #fff; box-shadow: var(--ring); }
.search-panel .btn { min-height: 56px; border-radius: var(--radius); font-size: var(--fs-base); }
@media (min-width: 820px) {
    .search-panel { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: stretch; }
    .search-panel .btn { min-height: 60px; padding-inline: 1.6rem; }
}

.hero__quick { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: #b7c6da; }
.hero__quick a {
    color: #e6eef8; text-decoration: none; padding: 0.3rem 0.75rem; border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); transition: background-color .15s, border-color .15s;
}
.hero__quick a:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }

.stats { position: relative; z-index: 2; margin-top: calc(var(--sp-8) * -1); }
.stats__grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden;
}
.stat { padding: var(--sp-4) var(--sp-3); text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat__value { display: block; font-size: var(--fs-xl); font-weight: 800; color: var(--slate-900); letter-spacing: -0.02em; line-height: 1.1; }
.stat__label { display: block; font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; margin-top: 2px; }
@media (min-width: 640px) {
    .stat { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); padding: var(--sp-5) var(--sp-4); text-align: left; }
    .stat__icon { display: inline-flex !important; }
    .stat__value { font-size: var(--fs-2xl); }
    .stat__label { font-size: var(--fs-sm); }
}
.stat__icon { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; background: var(--brand-50); color: var(--brand-700); flex: none; }

/* ---------- 8. Sector cards ---------------------------------------------- */
.sector-grid { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; }
@media (min-width: 640px) { .sector-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); } }
@media (min-width: 992px) { .sector-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .sector-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sector-card {
    position: relative; display: flex; align-items: center; gap: var(--sp-3); height: 100%;
    padding: var(--sp-4); border-radius: var(--radius); border: 1px solid var(--border); background: #fff;
    color: var(--slate-900); text-decoration: none; box-shadow: var(--shadow-xs);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.sector-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--brand-200); color: var(--slate-900); }
.sector-card__icon {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
    border-radius: 12px; background: var(--brand-50); color: var(--brand-700); transition: background-color .2s, color .2s;
}
.sector-card:hover .sector-card__icon { background: var(--brand-700); color: #fff; }
.sector-card__name { display: block; font-weight: 700; font-size: var(--fs-sm); line-height: 1.3; overflow-wrap: anywhere; }
.sector-card__count { display: block; font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }
@media (min-width: 640px) { .sector-card__name { font-size: var(--fs-base); } }

/* ---------- 9. Firm cards ------------------------------------------------ */
.firm-grid { display: grid; gap: var(--sp-4); grid-template-columns: minmax(0, 1fr); list-style: none; }
@media (min-width: 560px) { .firm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 880px) { .firm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1160px) { .firm-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.firm-grid > li { min-width: 0; }

.firm-card {
    position: relative; display: flex; gap: var(--sp-3); height: 100%; padding: var(--sp-4);
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.firm-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.firm-card--gold { border-color: var(--gold-300); background: linear-gradient(180deg, #fffdf6 0%, #fff 40%); }
.firm-card--gold:hover { border-color: var(--gold-500); }
.firm-card__media {
    flex: none; width: 76px; height: 76px; border-radius: var(--radius); overflow: hidden;
    background: var(--slate-50); border: 1px solid var(--slate-100); display: flex; align-items: center; justify-content: center;
}
.firm-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.firm-card__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.firm-card__title { margin: 0; font-size: var(--fs-base); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.firm-card__title a { color: var(--slate-900); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.firm-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.firm-card__title a:focus-visible { outline: none; }
.firm-card:focus-within { box-shadow: var(--ring); }
.firm-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--fs-xs); color: var(--text-muted); }
.firm-card__meta .chip { position: relative; z-index: 1; }
.firm-card__place { display: inline-flex; align-items: center; gap: 4px; }
.firm-card__desc { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.firm-card__badge { position: absolute; top: 10px; right: 10px; z-index: 1; }
.firm-card--gold .firm-card__title { padding-right: 60px; }

@media (min-width: 560px) {
    .firm-card { flex-direction: column; padding: var(--sp-4); }
    .firm-card__media { width: 100%; height: auto; aspect-ratio: 16 / 10; }
    .firm-card__media img { padding: 14px; }
    .firm-card--gold .firm-card__title { padding-right: 0; }
}

/* Initials avatar fallback */
.avatar {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
    font-weight: 800; font-size: 1.4rem; letter-spacing: .02em; color: #fff; text-transform: uppercase;
    background: linear-gradient(135deg, var(--brand-600), var(--blue-700));
}
.avatar--1 { background: linear-gradient(135deg, #1d5bd6, #0f2440); }
.avatar--2 { background: linear-gradient(135deg, #0e9a62, #0a5f3e); }
.avatar--3 { background: linear-gradient(135deg, #7c3aed, #3b1d8f); }
.avatar--4 { background: linear-gradient(135deg, #c2410c, #7c2d12); }
.avatar--5 { background: linear-gradient(135deg, #0e7490, #164e63); }
@media (min-width: 560px) { .firm-card .avatar { font-size: 2rem; } }

/* Compact firm list (sidebars) */
.mini-list { list-style: none; display: grid; gap: var(--sp-2); }
.mini-firm { position: relative; display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2); border-radius: var(--radius); transition: background-color .15s; }
.mini-firm:hover { background: var(--slate-50); }
.mini-firm__logo { flex: none; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #fff; display: flex; align-items: center; justify-content: center; }
.mini-firm__logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.mini-firm__logo .avatar { font-size: 1rem; }
.mini-firm__name { font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; color: var(--slate-900); text-decoration: none; overflow-wrap: anywhere; }
.mini-firm__name::after { content: ""; position: absolute; inset: 0; }
.mini-firm__sub { display: block; font-size: var(--fs-xs); color: var(--text-muted); }

/* ---------- 10. Cards / panels ------------------------------------------ */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.card__body { padding: var(--sp-5); }
@media (min-width: 768px) { .card__body { padding: var(--sp-6); } }
.card__title { font-size: var(--fs-md); margin-bottom: var(--sp-4); display: flex; align-items: center; gap: var(--sp-2); }
.card--muted { background: var(--slate-50); box-shadow: none; }
.panel-list { list-style: none; display: grid; gap: var(--sp-4); }
.panel-list li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.panel-list .icon { color: var(--brand-700); margin-top: 2px; }
.panel-list__label { display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-soft); }
.panel-list__value { display: block; color: var(--slate-900); font-weight: 500; overflow-wrap: anywhere; }
.panel-list__value a { color: var(--slate-900); }
.panel-list__value a:hover { color: var(--brand-700); }

/* ---------- 11. Page header / breadcrumbs -------------------------------- */
.page-head { background: linear-gradient(180deg, var(--slate-50), #fff); border-bottom: 1px solid var(--border); padding-block: var(--sp-6) var(--sp-8); }
.page-head h1 { margin: var(--sp-2) 0 var(--sp-2); }
.page-head__lede { color: var(--text-muted); max-width: 70ch; margin: 0; font-size: var(--fs-md); }
.page-head__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sp-4); }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: var(--fs-sm); color: var(--text-soft); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--slate-400); border-top: 1.5px solid var(--slate-400); transform: rotate(45deg); margin-right: 4px; }
.breadcrumb a { color: var(--slate-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-700); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--slate-800); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

/* ---------- 12. Filters, results, pagination ----------------------------- */
.filter-bar {
    display: grid; gap: var(--sp-3); padding: var(--sp-4); margin-bottom: var(--sp-6);
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.filter-bar .field { margin: 0; }
.filter-bar__actions { display: flex; gap: var(--sp-2); align-items: end; flex-wrap: wrap; }
.filter-bar__actions .btn { flex: 1 1 auto; }
@media (min-width: 720px) {
    .filter-bar { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
    .filter-bar__actions { grid-column: 1 / -1; justify-content: space-between; }
    .filter-bar__actions .btn { flex: 0 0 auto; }
}
@media (min-width: 1100px) {
    .filter-bar { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
    .filter-bar__actions { grid-column: auto; flex-wrap: nowrap; }
}
.filter-wrap { margin-bottom: var(--sp-6); }
.filter-wrap > .filter-bar { margin-bottom: 0; }
.filter-wrap__summary { list-style: none; display: none; }
.filter-wrap__summary::-webkit-details-marker { display: none; }
.filter-wrap[open] > .filter-wrap__summary { margin-bottom: var(--sp-3); }
@media (max-width: 719px) { .js .filter-wrap__summary { display: flex; } }
.toggle { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px; font-size: var(--fs-sm); font-weight: 600; color: var(--slate-700); cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle__track { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--slate-300); transition: background-color .2s; flex: none; }
.toggle__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease); }
.toggle input:checked + .toggle__track { background: var(--gold-500); }
.toggle input:checked + .toggle__track::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle__track { box-shadow: var(--ring); }

.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); margin-bottom: var(--sp-4); }
.results-bar__count { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }
.results-bar__count strong { color: var(--slate-900); }
.active-filters { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.active-filters .chip .icon { width: 14px; height: 14px; }

.pagination { margin-top: var(--sp-10); }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.pagination li > a, .pagination li > span {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 42px; height: 42px; padding: 0 0.7rem;
    border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; color: var(--slate-700);
    font-weight: 600; font-size: var(--fs-sm); text-decoration: none; transition: background-color .15s, border-color .15s, color .15s;
}
.pagination li > a:hover { border-color: var(--brand-400); color: var(--brand-800); background: var(--brand-50); }
.pagination [aria-current="page"] { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.pagination li > .is-gap { border: 0; background: transparent; min-width: 24px; padding: 0; color: var(--slate-400); }
.pagination .is-disabled { color: var(--slate-400); background: var(--slate-50); }
.pagination__label { display: none; }
@media (min-width: 640px) { .pagination__label { display: inline; } }
.pagination__summary { text-align: center; margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--text-soft); }

.empty-state {
    text-align: center; padding: var(--sp-12) var(--sp-5); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--slate-25);
}
.empty-state__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--slate-100); color: var(--slate-500); margin-bottom: var(--sp-4); }
.empty-state__icon .icon { width: 30px; height: 30px; }
.empty-state h2 { font-size: var(--fs-lg); }
.empty-state p { color: var(--text-muted); max-width: 52ch; margin-inline: auto; }
.empty-state ul { list-style: none; display: inline-grid; gap: var(--sp-1); text-align: left; color: var(--text-muted); font-size: var(--fs-sm); margin: 0 auto var(--sp-6); }
.empty-state ul li::before { content: "•"; color: var(--brand-600); margin-right: var(--sp-2); }
.empty-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }

/* ---------- 13. Forms ---------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-5); min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: var(--fs-sm); color: var(--slate-800); }
.field .req { color: var(--danger-600); margin-left: 2px; }
.field .opt { color: var(--text-soft); font-weight: 500; font-size: var(--fs-xs); margin-left: 4px; }
.input, .select, .textarea {
    width: 100%; min-height: 46px; padding: 0.65rem 0.9rem; border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong); background: #fff; color: var(--slate-900); font-size: var(--fs-base);
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.select {
    -webkit-appearance: none; appearance: none; padding-right: 2.4rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.85rem center;
}
.textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--slate-400); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: var(--ring); }
.input::placeholder, .textarea::placeholder { color: var(--slate-400); }
.input[readonly] { background: var(--slate-50); color: var(--slate-600); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea, [aria-invalid="true"] { border-color: var(--danger-600) !important; }
.field.has-error .input:focus, .field.has-error .textarea:focus { box-shadow: 0 0 0 3px rgba(198, 40, 40, .2); }
.field__help { font-size: var(--fs-xs); color: var(--text-muted); margin: 0; }
.field__error { font-size: var(--fs-xs); color: var(--danger-700); font-weight: 600; margin: 0; display: flex; align-items: center; gap: 4px; }
.field__error:empty { display: none; }
.field__row { display: flex; justify-content: space-between; gap: var(--sp-3); align-items: baseline; flex-wrap: wrap; }
.counter { font-size: var(--fs-xs); color: var(--text-soft); font-variant-numeric: tabular-nums; margin: 0; }
.counter.is-warn { color: var(--gold-700); font-weight: 600; }
.counter.is-over { color: var(--danger-700); font-weight: 700; }
.form-grid { display: grid; gap: 0 var(--sp-5); }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .span-2 { grid-column: 1 / -1; } }

.check { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-3) 0; font-size: var(--fs-sm); color: var(--slate-700); }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand-700); cursor: pointer; }
.check label { cursor: pointer; }
.check--inline { padding: 0; align-items: center; }
.plan--choice { display: grid; gap: var(--sp-2); padding: var(--sp-4); margin-bottom: var(--sp-3); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.plan--choice:hover { border-color: var(--slate-400); }
.plan--choice:has(input:checked) { border-color: var(--brand-600); box-shadow: 0 0 0 3px var(--brand-100); }
.plan--choice:focus-within { box-shadow: var(--ring); }
.empty-state__icon--success { background: var(--brand-50); color: var(--brand-700); }

.form-section {
    position: relative; margin: 0 0 var(--sp-6); padding: var(--sp-5); border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-xs); min-width: 0;
}
@media (min-width: 768px) { .form-section { padding: var(--sp-6) var(--sp-8); } }
.form-section legend { float: left; width: 100%; padding: 0; margin: 0 0 var(--sp-5); }
.form-section legend ~ * { clear: both; }
.form-section__title { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-lg); font-weight: 700; color: var(--slate-900); }
.form-section__num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); font-size: var(--fs-sm); font-weight: 800; flex: none; }
.form-section__desc { display: block; margin-top: var(--sp-1); font-size: var(--fs-sm); font-weight: 400; color: var(--text-muted); padding-left: 44px; }
.form-section--private { background: linear-gradient(180deg, var(--blue-50), #fff 60%); border-color: var(--blue-100); }

.notice { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4); border-radius: var(--radius); font-size: var(--fs-sm); border: 1px solid; margin-bottom: var(--sp-5); }
.notice .icon { margin-top: 1px; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice strong { display: block; margin-bottom: 2px; }
.notice--info { background: var(--blue-50); border-color: var(--blue-100); color: var(--navy-800); }
.notice--info .icon { color: var(--blue-700); }
.notice--success { background: var(--success-50); border-color: var(--brand-200); color: var(--brand-800); }
.notice--error { background: var(--danger-50); border-color: #f5c2c2; color: var(--danger-700); }
.notice--warn { background: var(--gold-50); border-color: var(--gold-100); color: var(--gold-700); }
.notice ul { padding-left: 1.1rem; }

.file-drop {
    position: relative; display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4);
    border: 1.5px dashed var(--border-strong); border-radius: var(--radius); background: var(--slate-25); transition: border-color .15s, background-color .15s;
}
.file-drop:hover, .file-drop:focus-within { border-color: var(--brand-500); background: var(--brand-50); }
.file-drop__preview {
    flex: none; width: 84px; height: 84px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--slate-400);
}
.file-drop__preview img { width: 100%; height: 100%; object-fit: contain; }
.file-drop__text { min-width: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.file-drop__text strong { display: block; color: var(--slate-800); }
.file-drop input[type="file"] { width: 100%; margin-top: var(--sp-2); font-size: var(--fs-sm); max-width: 100%; }
.file-drop input[type="file"]::file-selector-button {
    margin-right: var(--sp-3); padding: 0.45rem 0.8rem; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
    background: #fff; font-weight: 600; cursor: pointer;
}

.captcha-box { display: grid; gap: var(--sp-3); align-items: end; padding: var(--sp-4); background: var(--slate-50); border-radius: var(--radius); border: 1px solid var(--border); margin-bottom: var(--sp-4); }
.captcha-box .field { margin: 0; }
.captcha-box .input { max-width: 160px; font-size: var(--fs-lg); font-weight: 700; letter-spacing: .1em; }
.captcha-box__q { font-weight: 700; color: var(--slate-900); }

.form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-top: var(--sp-5); }
.form-submit .muted { font-size: var(--fs-xs); margin: 0; }

/* ---------- 14. Firm detail --------------------------------------------- */
.firm-hero { padding-block: var(--sp-6) var(--sp-8); background: linear-gradient(180deg, var(--slate-50), #fff); border-bottom: 1px solid var(--border); }
.firm-head { display: grid; gap: var(--sp-5); margin-top: var(--sp-5); }
@media (min-width: 720px) { .firm-head { grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: var(--sp-6); } }
.firm-head__logo {
    width: 112px; height: 112px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-sm);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
@media (min-width: 720px) { .firm-head__logo { width: 140px; height: 140px; } }
.firm-head__logo img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.firm-head__logo .avatar { font-size: 2.4rem; }
.firm-head h1 { margin: 0 0 var(--sp-2); overflow-wrap: anywhere; }
.firm-head__tagline { color: var(--text-muted); margin: 0 0 var(--sp-3); font-size: var(--fs-md); }
.firm-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-4); font-size: var(--fs-sm); color: var(--text-muted); }
.firm-head__meta > span { display: inline-flex; align-items: center; gap: 6px; }

.action-bar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-6); }
@media (min-width: 720px) { .action-bar { display: flex; flex-wrap: wrap; } .action-bar .btn { flex: 0 0 auto; } }
.action-bar .btn { min-height: 52px; }

.prose { font-size: var(--fs-md); line-height: 1.75; color: var(--slate-800); max-width: 70ch; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose figure, .prose table { margin: 0 0 1.15em; }
.prose h2 { font-size: var(--fs-xl); margin: 1.8em 0 0.6em; }
.prose h3 { font-size: var(--fs-lg); margin: 1.6em 0 0.5em; }
.prose h4 { font-size: var(--fs-md); margin: 1.4em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--brand-600); }
.prose a { color: var(--blue-700); }
.prose img { border-radius: var(--radius); margin: 1.5em 0; height: auto; }
.prose blockquote { border-left: 4px solid var(--brand-500); padding: 0.4em 0 0.4em 1.1em; color: var(--slate-700); background: var(--slate-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.5em 0.75em; text-align: left; }
.prose--plain { white-space: pre-line; }
.prose--compact { font-size: var(--fs-base); }

.figure { margin: var(--sp-6) 0 0; }
.figure img { border-radius: var(--radius-lg); border: 1px solid var(--border); width: 100%; height: auto; background: var(--slate-50); }

.share { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }
.share__label { font-weight: 600; font-size: var(--fs-sm); color: var(--slate-700); margin-right: var(--sp-1); }
.copy-status { font-size: var(--fs-xs); color: var(--brand-700); font-weight: 600; }

.report-link { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--text-muted); }
.report-link:hover { color: var(--danger-700); }

/* ---------- 15. Posts ---------------------------------------------------- */
.post-grid { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1fr); list-style: none; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .post-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card {
    position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xs); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-card:focus-within { box-shadow: var(--ring); }
.post-card__media { aspect-ratio: 16 / 9; background: var(--slate-100); overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .9);
    background:
        radial-gradient(240px 140px at 80% 0%, rgba(23, 185, 120, .55), transparent 70%),
        linear-gradient(135deg, var(--navy-800), var(--blue-700));
}
.post-card__placeholder .icon { width: 42px; height: 42px; opacity: .85; }
.post-card__body { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-5); flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--fs-xs); color: var(--text-soft); font-weight: 500; }
.post-card__meta .badge { position: relative; z-index: 1; }
.post-card__title { font-size: var(--fs-md); margin: 0; line-height: 1.35; }
.post-card__title a { color: var(--slate-900); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card__title a:focus-visible { outline: none; }
.post-card__excerpt { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__more { margin-top: auto; padding-top: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; color: var(--brand-700); display: inline-flex; align-items: center; gap: 4px; }

.post-feature { display: grid; gap: 0; }
@media (min-width: 860px) {
    .post-feature { grid-template-columns: 1.2fr 1fr; }
    .post-feature .post-card__media { aspect-ratio: auto; min-height: 100%; }
    .post-feature .post-card__body { padding: var(--sp-8); justify-content: center; }
    .post-feature .post-card__title { font-size: var(--fs-xl); }
}

.article-head { padding-block: var(--sp-6) var(--sp-8); background: linear-gradient(180deg, var(--slate-50), #fff); }
.article-head h1 { max-width: 24ch; margin: var(--sp-4) 0 var(--sp-3); }
.article-head__lede { font-size: var(--fs-lg); color: var(--text-muted); max-width: 60ch; margin-bottom: var(--sp-4); }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); font-size: var(--fs-sm); color: var(--text-muted); }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--sp-8); border: 1px solid var(--border); background: var(--slate-100); }
.article-cover img { width: 100%; height: auto; }

.mini-posts { list-style: none; display: grid; gap: var(--sp-1); }
.mini-post { position: relative; display: block; padding: var(--sp-3); border-radius: var(--radius); transition: background-color .15s; }
.mini-post:hover { background: var(--slate-50); }
.mini-post a { font-weight: 600; font-size: var(--fs-sm); color: var(--slate-900); text-decoration: none; line-height: 1.4; display: block; }
.mini-post a::after { content: ""; position: absolute; inset: 0; }
.mini-post time { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--text-soft); }

/* ---------- 16. CTA band & steps ---------------------------------------- */
.cta-band {
    position: relative; overflow: hidden; border-radius: var(--radius-xl); color: #fff; padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(47, 203, 140, .35), transparent 60%),
        linear-gradient(135deg, var(--brand-800) 0%, var(--navy-800) 100%);
}
.cta-band h2 { color: #fff; font-size: var(--fs-2xl); margin-bottom: var(--sp-3); }
.cta-band p { color: #d6e6f0; max-width: 56ch; }
.cta-band__grid { display: grid; gap: var(--sp-8); align-items: center; }
@media (min-width: 960px) { .cta-band__grid { grid-template-columns: 1fr 1.1fr; } }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.steps { list-style: none; display: grid; gap: var(--sp-3); counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { position: relative; padding: var(--sp-5); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--brand-800); font-weight: 800; margin-bottom: var(--sp-3); }
.step h3 { color: #fff; font-size: var(--fs-md); margin-bottom: var(--sp-1); }
.step p { margin: 0; font-size: var(--fs-sm); color: #cfe0ea; }

/* Light variant of steps (form page aside) */
.steps--light .step { background: #fff; border-color: var(--border); }
.steps--light .step__num { background: var(--brand-50); color: var(--brand-700); }
.steps--light .step h3 { color: var(--slate-900); }
.steps--light .step p { color: var(--text-muted); }
.steps--vertical { grid-template-columns: minmax(0, 1fr) !important; }
.steps--vertical .step { display: grid; grid-template-columns: 36px 1fr; gap: 0 var(--sp-3); padding: var(--sp-4); }
.steps--vertical .step__num { margin: 0; grid-row: span 2; }

/* Promo (DB slides) */
.promo-grid { display: grid; gap: var(--sp-4); }
@media (min-width: 720px) { .promo-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .promo-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.promo { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--slate-50); box-shadow: var(--shadow-xs); transition: box-shadow .2s, transform .2s var(--ease); }
.promo:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.promo img { width: 100%; height: auto; aspect-ratio: 16 / 6; object-fit: cover; }
.promo__label { position: absolute; top: 10px; left: 10px; padding: 2px 8px; border-radius: var(--radius-pill); background: rgba(15, 23, 42, .65); color: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.promo__title { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-6) var(--sp-4) var(--sp-3); color: #fff; font-weight: 700; background: linear-gradient(transparent, rgba(7, 19, 34, .8)); }

/* ---------- 17. Category list page -------------------------------------- */
.category-tools { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; justify-content: space-between; margin-bottom: var(--sp-6); }
.category-tools .search-inline { max-width: 420px; }
.category-tools .search-inline input { min-height: 48px; font-size: var(--fs-base); background: #fff; }
.category-alpha { margin-top: var(--sp-10); }

/* ---------- 18. Content pages ------------------------------------------- */
.content-card { padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem); }
.toc { list-style: none; display: grid; gap: 2px; font-size: var(--fs-sm); }
.toc a { display: block; padding: 6px 10px; border-radius: var(--radius-sm); color: var(--slate-700); text-decoration: none; }
.toc a:hover { background: var(--slate-100); color: var(--slate-900); }
.pricing { display: grid; gap: var(--sp-4); margin: var(--sp-6) 0; }
@media (min-width: 720px) { .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan { padding: var(--sp-6); border-radius: var(--radius-lg); border: 1px solid var(--border); background: #fff; }
.plan--gold { border-color: var(--gold-300); background: linear-gradient(180deg, var(--gold-50), #fff 50%); }
.plan h3 { display: flex; align-items: center; gap: var(--sp-2); }
.plan__price { font-size: var(--fs-xl); font-weight: 800; margin: var(--sp-2) 0 var(--sp-4); }
.plan__price small { font-size: var(--fs-sm); font-weight: 500; color: var(--text-muted); }
.plan ul { list-style: none; display: grid; gap: var(--sp-2); font-size: var(--fs-sm); }
.plan li { display: flex; gap: var(--sp-2); align-items: flex-start; }
.plan li .icon { color: var(--brand-700); margin-top: 2px; }
.plan--gold li .icon { color: var(--gold-500); }

/* ---------- 19. Error page ---------------------------------------------- */
.error-page { text-align: center; padding-block: clamp(3rem, 2rem + 5vw, 6rem); }
.error-page__code {
    display: inline-block; font-size: clamp(4.5rem, 3rem + 8vw, 8rem); font-weight: 800; line-height: 1; letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--brand-600), var(--blue-700)); -webkit-background-clip: text; background-clip: text; color: transparent;
    margin-bottom: var(--sp-4);
}
.error-page p { color: var(--text-muted); max-width: 52ch; margin-inline: auto; }
.error-page form { max-width: 520px; margin: var(--sp-6) auto; display: flex; gap: var(--sp-2); }
.error-page form .search-inline { flex: 1; }
.error-page form .search-inline input { min-height: 48px; background: #fff; }
.error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-6); }

/* ---------- 20. Footer -------------------------------------------------- */
.site-footer { margin-top: auto; background: var(--navy-950); color: #b8c6d8; font-size: var(--fs-sm); }
.site-footer a { color: #d7e1ee; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; gap: var(--sp-8); padding-block: var(--sp-12) var(--sp-10); }
@media (min-width: 640px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand img { width: 180px; margin-bottom: var(--sp-4); }
.footer-brand p { color: #a9b8cb; max-width: 36ch; }
.footer-title { color: #fff; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.footer-links { list-style: none; display: grid; gap: var(--sp-2); }
.footer-contact { list-style: none; display: grid; gap: var(--sp-3); }
.footer-contact li { display: flex; gap: var(--sp-2); align-items: flex-start; }
.footer-contact .icon { color: var(--brand-400); margin-top: 2px; }
.social { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.social a {
    display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #e2e8f0; transition: background-color .15s, color .15s;
}
.social a:hover { background: var(--brand-700); color: #fff; text-decoration: none; }
.social .icon { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6); justify-content: space-between; align-items: center; font-size: var(--fs-xs); color: #8fa1b8; }
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.footer-bottom a { color: #b8c6d8; }

.card--contact .footer-contact { gap: var(--sp-4); }
.card--contact .footer-contact .icon { color: var(--brand-700); }
.card--contact .footer-contact a { color: var(--slate-900); font-weight: 600; }
.card--contact .footer-contact a:hover { color: var(--brand-700); }
.card--contact .social a { background: var(--slate-100); border-color: var(--border); color: var(--slate-700); }
.card--contact .social a:hover { background: var(--brand-700); color: #fff; }

.page { min-height: 100vh; display: flex; flex-direction: column; }
.page > main { flex: 1 0 auto; }

/* Back to top */
.to-top {
    position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: #fff; color: var(--slate-800);
    box-shadow: var(--shadow-md); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--slate-50); }

/* Mobile sticky action bar on firm detail */
.mobile-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: var(--sp-2); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, .2);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.mobile-actions .btn { flex: 1 1 0; min-height: 48px; }
.has-mobile-actions .to-top { bottom: 84px; }
.has-mobile-actions .site-footer { padding-bottom: 72px; }
@media (min-width: 720px) {
    .mobile-actions { display: none; }
    .has-mobile-actions .to-top { bottom: 16px; }
    .has-mobile-actions .site-footer { padding-bottom: 0; }
}

/* ---------- 21. Utilities ------------------------------------------------ */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: var(--sp-4) !important; }
.mt-6 { margin-top: var(--sp-6) !important; }
.mt-8 { margin-top: var(--sp-8) !important; }
.mb-4 { margin-bottom: var(--sp-4) !important; }
.mb-6 { margin-bottom: var(--sp-6) !important; }
.h3 { font-size: var(--fs-lg); }
.text-gold { color: var(--gold-500); }
.eyebrow--light { color: var(--brand-200); }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.nowrap { white-space: nowrap; }

/* ---------- 22. Motion & print ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .firm-card:hover, .sector-card:hover, .post-card:hover, .promo:hover { transform: none; }
    .post-card:hover .post-card__media img { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
@media print {
    .site-header, .site-footer, .drawer, .to-top, .mobile-actions, .action-bar, .share, .filter-bar, .pagination { display: none !important; }
    body { color: #000; }
}


/* ---------- Reklam alanları (_AdSlot) ------------------------------------- */
.ad { margin: 0; }
.ad__link { display: grid; gap: 1rem; align-items: center; padding: 1.25rem 1.4rem; border-radius: var(--radius-lg, 16px); text-decoration: none; color: var(--ad-fg); background: var(--ad-bg); border: 1px solid var(--ad-border); box-shadow: 0 1px 2px rgba(15, 23, 42, .06); transition: transform .15s ease, box-shadow .15s ease; position: relative; overflow: hidden; }
.ad__link::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--ad-glow); pointer-events: none; }
.ad__link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(15, 23, 42, .12); color: var(--ad-fg); }
.ad__link:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; }
.ad--cream { --ad-bg: linear-gradient(135deg, #fffaf0 0%, #fbe9c9 100%); --ad-fg: #4a2c0c; --ad-border: #f0d9ae; --ad-glow: rgba(233, 169, 10, .14); --ad-accent: #8a4b12; --ad-chip: rgba(138, 75, 18, .1); --ad-cta-bg: #7a3f0d; --ad-cta-fg: #fff; }
.ad--cocoa { --ad-bg: linear-gradient(135deg, #3b2314 0%, #6b3d1c 100%); --ad-fg: #fff6e6; --ad-border: #3b2314; --ad-glow: rgba(248, 207, 95, .16); --ad-accent: #f8cf5f; --ad-chip: rgba(255, 246, 230, .14); --ad-cta-bg: #f8cf5f; --ad-cta-fg: #3b2314; }
.ad__mark { display: none; color: var(--ad-accent); position: relative; z-index: 1; }
.ad__body { display: grid; gap: .35rem; position: relative; z-index: 1; min-width: 0; }
.ad__brand { font-size: var(--fs-xs, .8rem); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ad-accent); }
.ad__domain { font-weight: 500; letter-spacing: 0; text-transform: none; opacity: .85; margin-left: .35rem; }
.ad__headline { font-size: 1.2rem; line-height: 1.25; font-weight: 700; }
.ad__text { font-size: var(--fs-sm, .9rem); line-height: 1.5; opacity: .9; }
.ad__points { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.ad__point { font-size: var(--fs-xs, .8rem); font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--ad-chip); }
.ad__cta { display: inline-flex; align-items: center; gap: .4rem; justify-self: start; padding: .65rem 1.1rem; border-radius: var(--radius, 10px); background: var(--ad-cta-bg); color: var(--ad-cta-fg); font-weight: 700; font-size: var(--fs-sm, .9rem); white-space: nowrap; position: relative; z-index: 1; }
.ad__meta { display: flex; justify-content: space-between; gap: 1rem; margin: .35rem .25rem 0; font-size: var(--fs-xs, .8rem); color: var(--text-soft); }
.ad__meta a { color: var(--text-soft); }
.ad__label { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.ad-band { padding-block: 1.25rem; }
@media (min-width: 768px) {
    .ad--wide .ad__link { grid-template-columns: auto 1fr auto; gap: 1.5rem; padding: 1.5rem 2rem; }
    .ad--wide .ad__mark { display: block; }
    .ad--wide .ad__headline { font-size: 1.4rem; }
    .ad--wide .ad__cta { justify-self: end; }
}
@media (min-width: 720px) { .pricing > .plan:nth-child(3):last-child { grid-column: 1 / -1; } }
