:root {
    --ink: #18212f;
    --muted: #607086;
    --line: #dbe2ea;
    --surface: #ffffff;
    --canvas: #f4f6f8;
    --brand: #155eef;
    --brand-dark: #0d43b7;
    --success: #087443;
    --danger: #b42318;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(30, 42, 62, .07);
}

* { box-sizing: border-box; }
html { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--canvas); }
body { margin: 0; line-height: 1.55; }
a { color: var(--brand-dark); text-underline-offset: .18em; }
img { max-width: 100%; }
.shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.page { min-height: calc(100vh - 150px); padding-block: 42px 64px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: var(--ink); font-weight: 800; font-size: 1.05rem; text-decoration: none; }
nav { display: flex; align-items: center; gap: 18px; }
nav > a:not(.button) { text-decoration: none; font-weight: 650; }
.site-footer { padding: 26px 0; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface); font-size: .9rem; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-150%); background: var(--ink); color: #fff; padding: 10px 14px; z-index: 10; }
.skip-link:focus { transform: none; }

h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 16px; }
h2 { line-height: 1.2; letter-spacing: -.015em; }
.hero { max-width: 760px; margin-bottom: 30px; }
.hero.compact p:last-child { color: var(--muted); font-size: 1.08rem; }
.eyebrow { color: var(--brand-dark); font-weight: 800; font-size: .76rem; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 9px; background: var(--brand); color: #fff; font: inherit; font-weight: 750; padding: 12px 18px; text-decoration: none; cursor: pointer; }
.button:hover, .button:focus-visible { background: var(--brand-dark); }
.button-small { padding: 8px 12px; font-size: .9rem; }
.button-success { background: var(--success); width: 100%; }
.button-danger { background: var(--danger); width: 100%; }

.form-card { padding: clamp(20px, 4vw, 42px); }
fieldset { border: 0; padding: 0; margin: 0 0 38px; }
legend { width: 100%; font-size: 1.22rem; font-weight: 800; padding: 0 0 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-wide { grid-column: 1 / -1; }
.field { margin-bottom: 20px; }
label { display: block; font-weight: 720; margin-bottom: 7px; }
input, textarea { width: 100%; border: 1px solid #aeb9c6; border-radius: 9px; background: #fff; color: var(--ink); font: inherit; padding: 11px 12px; }
input:focus, textarea:focus { outline: 3px solid rgba(21, 94, 239, .2); border-color: var(--brand); }
textarea { resize: vertical; }
.help, .muted { color: var(--muted); font-size: .9rem; }
.field-error { color: var(--danger); font-weight: 650; font-size: .9rem; margin: 6px 0 0; }
.form-actions { border-top: 1px solid var(--line); padding-top: 24px; display: flex; align-items: center; gap: 20px; }
.form-actions p { color: var(--muted); margin: 0; font-size: .9rem; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.alert { padding: 18px 20px; margin-bottom: 22px; border-radius: 10px; }
.alert-error { background: #fff1f0; border: 1px solid #f8b4ae; color: #7a271a; }
.alert ul { margin-bottom: 0; }

.result-card { max-width: 680px; margin: 60px auto; padding: clamp(28px, 6vw, 58px); text-align: center; }
.result-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 999px; background: #dcfae6; color: var(--success); font-size: 1.8rem; font-weight: 900; }
.empty-state { text-align: center; padding: 44px 24px; }
.company-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.company-card { padding: 24px; display: flex; gap: 20px; align-items: flex-start; }
.company-card h2 { margin-bottom: 9px; }
.company-card h2 a { color: var(--ink); }
.company-card p:last-child { color: var(--muted); margin-bottom: 0; }
.company-logo { flex: 0 0 auto; width: 76px; height: 76px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.company-logo.large { width: 110px; height: 110px; }
.company-heading { display: flex; align-items: center; gap: 28px; padding: clamp(24px, 5vw, 44px); margin-bottom: 24px; }
.company-heading h1 { margin: 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
.content-stack { display: grid; gap: 18px; }
.prose, .contact-card, .data-card, .review-card, .logo-review { padding: 26px; }
.prose p { white-space: normal; margin-bottom: 0; }
.contact-card { position: sticky; top: 20px; }
.contact-card dl, .data-list { margin: 0; }
.contact-card dl div, .data-list div { padding: 12px 0; border-top: 1px solid var(--line); }
dt { color: var(--muted); font-size: .82rem; font-weight: 700; }
dd { margin: 3px 0 0; overflow-wrap: anywhere; }

.admin-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.admin-heading h1 { margin-bottom: 0; }
.status-counts { display: flex; gap: 8px; margin: 0; }
.status-counts div { min-width: 82px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; text-align: center; }
.status-counts dd { font-size: 1.25rem; font-weight: 850; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f8fafc; font-size: .82rem; color: var(--muted); }
.status { display: inline-block; border-radius: 999px; padding: 5px 9px; font-size: .78rem; font-weight: 800; }
.status-beklemede { background: #fff3cd; color: #7a4b00; }
.status-onaylandi { background: #dcfae6; color: #05603a; }
.status-reddedildi { background: #fee4e2; color: #912018; }
.review-card form + form { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; }
.review-card textarea { margin-bottom: 12px; }
.logo-review img { display: block; max-height: 260px; margin: 12px auto; }
.back-link { display: inline-block; margin-bottom: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
    .shell { width: min(100% - 24px, 1120px); }
    .page { padding-block: 30px 48px; }
    .header-inner { min-height: 62px; }
    nav > a:not(.button) { display: none; }
    .field-grid, .field-grid.three, .company-grid, .detail-grid { grid-template-columns: 1fr; }
    .form-actions, .company-heading, .admin-heading { align-items: stretch; flex-direction: column; }
    .form-actions .button { width: 100%; }
    .company-card { padding: 20px; }
    .company-logo { width: 66px; height: 66px; }
    .contact-card { position: static; }
    .status-counts { width: 100%; }
    .status-counts div { flex: 1; min-width: 0; padding-inline: 5px; }
}

@media (max-width: 420px) {
    h1 { font-size: 2rem; }
    .form-card { padding: 18px; }
    .company-heading { gap: 18px; }
    .company-logo.large { width: 88px; height: 88px; }
}
