/* Atak Sürücü Kursları — tasarım sistemi
   Görsel dil: karayolu levhaları. Renkler yalnız token üzerinden kullanılır. */

@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C4;
}
@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
  --navy: #16307a;
  --navy-deep: #0b1a44;
  --navy-mid: #1f3f96;
  --red: #d81f2a;
  --red-dark: #b3141e;
  --red-on-dark: #ff5a62;
  --yellow: #ffc93c;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --tint: #e8edf8;
  --text: #0b1a44;
  --text-2: #4a5675;
  --on-dark: #ffffff;
  --on-dark-2: #c7d2ee;
  --border: #d5dceb;
  --control-border: #6f7ca0;
  --wa: #25d366;
  --success: #166534;
  --warning: #b45309;
  --danger: #991b1b;

  --font: "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --gutter: 1rem;
  --r-sm: 6px;
  --r-md: 10px;
  --r-sign: 16px;
  --shadow-lift: 0 18px 40px -22px rgb(11 26 68 / 0.55);
  --header-h: 68px;
  --bar-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-weight: 800; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 5.4vw, 4.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; box-shadow: 0 0 0 6px var(--navy-deep); border-radius: 4px; }
::selection { background: var(--yellow); color: var(--navy-deep); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--yellow); color: var(--navy-deep); padding: 0.75rem 1rem; font-weight: 700; border-radius: var(--r-sm); }
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3rem, 7vw, 6.5rem); }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy-deep); color: var(--on-dark); }
.section--navy a { color: var(--on-dark); }
.section__head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section__head p { margin-top: 0.875rem; color: var(--text-2); font-size: 1.125rem; }
.section--navy .section__head p { color: var(--on-dark-2); }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--text-2); max-width: 38rem; }

/* Düğmeler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.7rem 1.4rem;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--r-md); cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn--on-dark { border-color: rgb(255 255 255 / 0.55); color: #fff; background: transparent; }
.btn--on-dark:hover { background: #fff; color: var(--navy-deep); border-color: #fff; }
.btn--wa { background: var(--wa); color: var(--navy-deep); }
.btn--wa:hover { background: #1fbd5a; color: var(--navy-deep); }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Duyuru bandı */
.announce { background: var(--navy); color: #fff; font-size: 0.9375rem; }
.announce .container { display: flex; gap: 0.75rem; align-items: center; padding-block: 0.5rem; }
.announce__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); flex: none; }
.announce a { color: #fff; font-weight: 700; }

/* Üst menü */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; color: var(--navy-deep); min-height: 44px; flex: none; }
.brand__mark { height: 36px; width: auto; flex: none; }
.brand--on-dark .brand__mark { height: 44px; padding: 5px 8px; background: #fff; border-radius: 8px; }
.footer__brand .brand__mark { height: 64px; padding: 8px 12px; }
.footer__col address { font-style: normal; }
@media (min-width: 768px) { .brand__mark { height: 40px; } }
.brand__text { display: grid; line-height: 1; }
.brand__name { font-weight: 900; font-style: italic; font-size: 1.5rem; letter-spacing: 0.01em; }
.brand__sub { font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.14em; margin-top: 3px; }
.nav { display: none; }
.header-actions { display: none; }
.hamburger { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; border-radius: var(--r-md); cursor: pointer; color: var(--navy-deep); }
.hamburger span { display: block; width: 26px; height: 3px; border-radius: 2px; background: currentColor; transition: transform 0.2s ease, opacity 0.2s ease; }
.hamburger span + span { margin-top: 5px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 100; background: var(--navy-deep); color: #fff;
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.2s ease-in, transform 0.2s ease-in, visibility 0s 0.2s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s ease-out, transform 0.25s ease-out; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.mobile-menu .brand { color: #fff; }
.mobile-menu .hamburger { color: #fff; }
.mobile-menu__cta { display: grid; gap: 0.75rem; margin-block: 0.75rem 1.25rem; }
.mobile-menu ul { list-style: none; border-top: 1px solid rgb(255 255 255 / 0.18); }
.mobile-menu li { border-bottom: 1px solid rgb(255 255 255 / 0.18); }
.mobile-menu li a { display: block; padding: 0.7rem 0; font-size: 1.5rem; font-weight: 700; color: #fff; text-decoration: none; }
.mobile-menu li a[aria-current="page"] { color: var(--yellow); }
.mobile-menu details summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0; font-size: 1.5rem; font-weight: 700; cursor: pointer; min-height: 48px; }
.mobile-menu details summary::-webkit-details-marker { display: none; }
.mobile-menu details summary::after { content: ""; width: 12px; height: 12px; border-right: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow); transform: rotate(45deg); margin-right: 6px; transition: transform 0.2s; }
.mobile-menu details[open] summary::after { transform: rotate(-135deg); }
.mobile-menu details ul { border: 0; padding-bottom: 0.5rem; }
.mobile-menu details li { border: 0; }
.mobile-menu details li a { font-size: 1.125rem; font-weight: 600; padding: 0.55rem 0 0.55rem 1rem; color: var(--on-dark-2); }
.mobile-menu__foot { margin-top: auto; padding-top: 1.5rem; color: var(--on-dark-2); font-size: 0.9375rem; }
body.menu-open { overflow: hidden; }

/* Anasayfa hero */
.hero { position: relative; background: var(--navy-deep); color: #fff; overflow: hidden; isolation: isolate; }
.hero__inner { display: grid; gap: 2rem; padding-top: clamp(2.5rem, 6vw, 5rem); }
.hero__copy { padding-bottom: clamp(0.5rem, 5vw, 4.5rem); }
.hero h1 { max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero__lead { margin-top: 1.25rem; font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); color: var(--on-dark-2); max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero__classes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; list-style: none; }
.hero__classes a { display: grid; place-items: center; min-width: 52px; min-height: 44px; padding: 0 0.7rem; border: 2px solid rgb(255 255 255 / 0.4); border-radius: var(--r-sm); color: #fff; font-weight: 800; text-decoration: none; }
.hero__classes a:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy-deep); }
.hero__media { position: relative; align-self: end; }
.hero__photo { border-radius: var(--r-sign); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__signs { display: grid; gap: 0.5rem; margin-top: -2.25rem; padding-inline: 0.75rem; position: relative; }
.caption-note { font-size: 0.8125rem; color: var(--on-dark-2); margin-top: 0.5rem; }

/* Yön levhası */
.sign {
  position: relative; display: block; background: var(--navy); color: #fff; text-decoration: none;
  border-radius: var(--r-sign); padding: 1.25rem 1.25rem 1.25rem 1.375rem;
  box-shadow: inset 0 0 0 3px var(--navy), inset 0 0 0 6px #fff;
}
.sign--compact { padding: 0.8rem 1rem; border-radius: 12px; box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 4px #fff; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.sign--compact strong { font-size: 1.125rem; }
.sign__arrow { width: 28px; height: 28px; flex: none; }
a.sign:hover { color: #fff; background: var(--navy-mid); box-shadow: inset 0 0 0 3px var(--navy-mid), inset 0 0 0 6px var(--yellow); }
.sign__place { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.sign__place h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.sign__district { font-weight: 700; color: var(--yellow); font-size: 0.9375rem; }
.sign address { font-style: normal; margin-top: 0.875rem; color: var(--on-dark-2); }
.sign__phone { display: inline-block; margin-top: 0.75rem; font-size: 1.25rem; font-weight: 800; color: #fff; text-decoration: none; min-height: 44px; line-height: 44px; }
.sign__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.125rem; }
.sign__actions .btn { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.sign-grid { display: grid; gap: 1rem; }

/* Sınıf karoları */
.plates { display: grid; gap: 0.875rem; grid-template-columns: repeat(2, 1fr); list-style: none; }
.plate { display: grid; align-content: space-between; gap: 1.5rem; min-height: 178px; padding: 1.125rem; background: var(--surface); border: 2px solid var(--navy-deep); border-radius: var(--r-md); color: var(--navy-deep); text-decoration: none; position: relative; transition: background-color 0.15s, color 0.15s; }
.plate__code { font-size: clamp(2.75rem, 6vw, 4rem); font-weight: 900; line-height: 0.9; letter-spacing: -0.03em; }
.plate__code small { display: block; font-size: 0.9375rem; font-weight: 700; letter-spacing: 0; margin-top: 0.4rem; color: var(--red); }
.plate__desc { font-size: 0.9375rem; color: var(--text-2); line-height: 1.4; }
.plate:hover { background: var(--navy-deep); color: #fff; }
.plate:hover .plate__desc { color: var(--on-dark-2); }
.plate:hover .plate__code small { color: var(--yellow); }

/* Ehliyet yolculuğu */
.route { list-style: none; counter-reset: stop; position: relative; display: grid; gap: 0; }
.route::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 6px; background: repeating-linear-gradient(180deg, var(--yellow) 0 22px, transparent 22px 40px); }
.route li { counter-increment: stop; position: relative; padding: 0 0 2rem 4.25rem; }
.route li:last-child { padding-bottom: 0; }
.route li::before { content: counter(stop); position: absolute; left: 0; top: 0; width: 48px; height: 48px; display: grid; place-items: center; background: var(--yellow); color: var(--navy-deep); font-weight: 900; font-size: 1.375rem; border-radius: 50%; box-shadow: 0 0 0 6px var(--navy-deep); }
.route h3 { padding-top: 0.6rem; }
.route p { margin-top: 0.5rem; color: var(--on-dark-2); max-width: 34rem; }

/* Evrak listesi */
.checklist { list-style: none; display: grid; gap: 0; background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--border); }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: 0.875rem; align-items: start; padding: 1rem 1.125rem; border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: 0; }
.checklist svg { width: 26px; height: 26px; color: var(--success); margin-top: 2px; }
.checklist strong { display: block; }
.checklist span { color: var(--text-2); font-size: 0.9688rem; }
.split { display: grid; gap: 2rem; align-items: start; }

/* SSS */
.faq { display: grid; gap: 0.625rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.faq summary { list-style: none; cursor: pointer; padding: 1rem 3.25rem 1rem 1.125rem; font-weight: 700; font-size: 1.0938rem; position: relative; min-height: 56px; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 1.25rem; top: 50%; width: 11px; height: 11px; border-right: 3px solid var(--navy); border-bottom: 3px solid var(--navy); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details[open] { border-color: var(--navy); }
.faq__body { padding: 0 1.125rem 1.125rem; color: var(--text-2); }
.faq__body p + p { margin-top: 0.75rem; }

/* Kartlar (blog) */
.cards { display: grid; gap: 1.25rem; }
.card { background: var(--surface); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--border); display: grid; grid-template-rows: auto 1fr; }
.card__media { aspect-ratio: 16 / 9; background: var(--tint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.125rem 1.25rem 1.375rem; display: grid; gap: 0.5rem; align-content: start; }
.card__body h3 a { color: var(--navy-deep); text-decoration: none; }
.card__body h3 a:hover { text-decoration: underline; }
.card time { font-size: 0.875rem; color: var(--text-2); }
.card p { color: var(--text-2); font-size: 0.9688rem; }

/* Alt sayfa hero */
.page-hero { background: var(--navy-deep); color: #fff; position: relative; min-height: 34vh; display: grid; align-items: center; padding-block: clamp(2rem, 5vw, 3.75rem) clamp(2.75rem, 6vw, 4.5rem); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 5px; background: repeating-linear-gradient(90deg, var(--yellow) 0 36px, transparent 36px 68px); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.375rem); max-width: 20ch; }
.page-hero p { margin-top: 1rem; color: var(--on-dark-2); font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); max-width: 40rem; }
.page-hero__cta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.page-hero--media { overflow: hidden; isolation: isolate; }
.page-hero--media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero--media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(11 26 68 / 0.94) 0%, rgb(11 26 68 / 0.82) 55%, rgb(11 26 68 / 0.62) 100%); }
.breadcrumb { margin-bottom: 1.125rem; font-size: 0.9063rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--on-dark-2); }
.breadcrumb a { color: var(--on-dark-2); }
.breadcrumb [aria-current] { color: #fff; font-weight: 600; }

/* Metin içerik */
.prose { max-width: 44rem; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul, .prose ol { padding-left: 1.375rem; }
.prose li + li { margin-top: 0.4rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9688rem; }
.prose th, .prose td { text-align: left; padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--tint); }
.table-wrap { overflow-x: auto; }
.facts { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.facts div { display: grid; grid-template-columns: 1fr; gap: 0.125rem; padding: 0.875rem 1.125rem; border-bottom: 1px solid var(--border); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 0.875rem; color: var(--text-2); font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; }
.note { border-left: 5px solid var(--yellow); background: var(--surface); padding: 0.875rem 1.125rem; border-radius: 0 var(--r-md) var(--r-md) 0; color: var(--text-2); font-size: 0.9688rem; }
.aside-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1.375rem; display: grid; gap: 0.875rem; align-content: start; }
.layout-aside { display: grid; gap: 2rem; align-items: start; }

/* Formlar */
.form { display: grid; gap: 1.125rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: clamp(1.125rem, 3vw, 2rem); }
.field { display: grid; gap: 0.375rem; }
.field label, .field legend { font-weight: 700; font-size: 0.9688rem; }
.field .req { color: var(--danger); }
.field .hint { font-size: 0.875rem; color: var(--text-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: #fff; width: 100%;
  min-height: 50px; padding: 0.7rem 0.875rem; border: 2px solid var(--control-border); border-radius: var(--r-md);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; border-color: var(--navy); box-shadow: none; }
.field [aria-invalid="true"] { border-color: var(--danger); background: #fff6f6; }
.field .error { color: var(--danger); font-size: 0.9063rem; font-weight: 600; }
.field-row { display: grid; gap: 1.125rem; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; border: 0; padding: 0; margin: 0; }
.choice-grid legend { grid-column: 1 / -1; margin-bottom: 0.375rem; padding: 0; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; min-height: 0; cursor: pointer; }
.choice span { display: grid; place-items: center; text-align: center; min-height: 50px; padding: 0.5rem; border: 2px solid var(--control-border); border-radius: var(--r-md); font-weight: 700; line-height: 1.2; }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 0.75rem; align-items: start; font-size: 0.9375rem; }
.check input { width: 24px; height: 24px; min-height: 0; margin: 2px 0 0; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 0.875rem 1.125rem; border-radius: var(--r-md); font-weight: 600; border: 2px solid; }
.alert--error { background: #fff6f6; border-color: var(--danger); color: var(--danger); }
.alert--success { background: #f1faf4; border-color: var(--success); color: var(--success); }
.toast { position: fixed; left: 50%; bottom: calc(var(--bar-h) + 1rem + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 120; background: var(--navy-deep); color: #fff; padding: 0.875rem 1.25rem; border-radius: var(--r-md); font-weight: 600; opacity: 0; transition: opacity 0.2s, transform 0.2s; max-width: calc(100vw - 2rem); box-shadow: var(--shadow-lift); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: var(--danger); }

/* Harita */
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--tint); border: 1px solid var(--border); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 0.75rem; text-align: center; padding: 1rem; background:
  linear-gradient(var(--tint), var(--tint)) padding-box,
  repeating-linear-gradient(45deg, rgb(22 48 122 / 0.06) 0 14px, transparent 14px 28px); border: 0; width: 100%; cursor: pointer; font: inherit; color: var(--navy-deep); }
.map__load strong { font-size: 1.125rem; }

/* Galeri */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.625rem; list-style: none; }
.gallery figure { margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--tint); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 0.5rem 0.75rem; font-size: 0.875rem; color: var(--text-2); background: var(--surface); }
.empty { text-align: center; padding: 3rem 1rem; background: var(--surface); border: 2px dashed var(--border); border-radius: var(--r-md); color: var(--text-2); display: grid; gap: 1rem; justify-items: center; }
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 0.75rem; border-radius: var(--r-sm); border: 2px solid var(--navy); font-weight: 700; text-decoration: none; }
.pagination [aria-current] { background: var(--navy); color: #fff; }

/* Çağrı bandı */
.cta-band { background: var(--red); color: #fff; padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.cta-band .container { display: grid; gap: 1.25rem; align-items: center; }
.cta-band p { margin-top: 0.5rem; font-size: 1.0938rem; }
.cta-band .btn { background: #fff; color: var(--red-dark); }
.cta-band .btn:hover { background: var(--navy-deep); color: #fff; }

/* Hata sayfaları */
.state-page { min-height: 62vh; display: grid; place-items: center; background: var(--navy-deep); color: #fff; text-align: center; padding: 3rem 1rem; }
.state-page__code { display: inline-grid; place-items: center; width: 170px; height: 170px; border-radius: 50%; background: #fff; color: var(--navy-deep); border: 16px solid var(--red); font-size: 3.5rem; font-weight: 900; margin-bottom: 1.5rem; }
.state-page p { color: var(--on-dark-2); margin-top: 0.75rem; max-width: 30rem; margin-inline: auto; }
.state-page__links { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1.75rem; }

/* Alt bilgi */
.site-footer { background: var(--navy-deep); color: var(--on-dark-2); font-size: 0.9688rem; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__top { padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem; display: grid; gap: 0.25rem; }
.footer__brand { padding-bottom: 1.5rem; }
.footer__brand .brand { color: #fff; }
.footer__brand p { margin-top: 0.875rem; max-width: 26rem; }
.footer__col { border-top: 1px solid rgb(255 255 255 / 0.16); }
.footer__col summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 52px; color: #fff; font-weight: 700; font-size: 1.0625rem; }
.footer__col summary::-webkit-details-marker { display: none; }
.footer__col summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: rotate(45deg); margin-right: 6px; transition: transform 0.2s; }
.footer__col[open] summary::after { transform: rotate(-135deg); }
.footer__col ul { list-style: none; padding-bottom: 1rem; display: grid; gap: 0.125rem; }
.footer__col li a, .footer__col li span { display: inline-block; padding-block: 0.4rem; min-height: 36px; }
.footer__social { display: flex; gap: 0.5rem; margin-top: 1rem; }
.footer__social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 0.3); border-radius: 50%; color: #fff; }
.footer__social svg { width: 20px; height: 20px; }
.footer__bottom { border-top: 1px solid rgb(255 255 255 / 0.16); padding-block: 1.125rem; display: grid; gap: 0.375rem; font-size: 0.875rem; }
.footer__bottom a { text-decoration: underline; font-size: 0.8125rem; }

/* Mobil sabit alt bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr; padding-bottom: env(safe-area-inset-bottom); background: var(--navy-deep); box-shadow: 0 -6px 20px -10px rgb(11 26 68 / 0.6); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: var(--bar-h); font-weight: 800; text-decoration: none; font-size: 1.0313rem; }
.mobile-bar svg { width: 22px; height: 22px; }
.mobile-bar__call { background: var(--navy); color: #fff; }
.mobile-bar__wa { background: var(--wa); color: var(--navy-deep); }

/* ≥ 640 */
@media (min-width: 640px) {
  :root { --gutter: 1.5rem; }
  .plates { grid-template-columns: repeat(3, 1fr); }
  .sign-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .facts div { grid-template-columns: 12rem 1fr; align-items: baseline; }
  .choice-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ≥ 768 — mobil alt bar kalkar */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .toast { bottom: 1.5rem; }
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 2.5rem; }
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .route { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
  .route::before { display: none; }
  .route li { padding-bottom: 2.25rem; }
  .cta-band .container { grid-template-columns: 1fr auto; }
  .footer__top { grid-template-columns: repeat(2, 1fr); gap: 2rem 2.5rem; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col { border: 0; }
  .footer__col summary { pointer-events: none; min-height: 0; margin-bottom: 0.625rem; }
  .footer__col summary::after { display: none; }
  .footer__bottom { grid-template-columns: 1fr auto; }
  .layout-aside { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; }
}

/* ≥ 1024 — yatay menü */
@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  .hamburger, .mobile-menu { display: none; }
  .nav { display: block; }
  .nav > ul { display: flex; gap: 0.125rem; list-style: none; align-items: center; }
  .nav a, .nav summary { display: flex; align-items: center; min-height: 44px; padding: 0 0.625rem; white-space: nowrap; font-weight: 600; font-size: 0.9375rem; color: var(--navy-deep); text-decoration: none; border-radius: var(--r-sm); cursor: pointer; list-style: none; }
  .nav summary::-webkit-details-marker { display: none; }
  .nav summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 0.5rem; }
  .nav a:hover, .nav summary:hover { background: var(--tint); color: var(--navy-deep); }
  .nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
  .nav details { position: relative; }
  .nav details ul { position: absolute; top: calc(100% + 6px); left: 0; min-width: 15rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 0.375rem; list-style: none; box-shadow: var(--shadow-lift); display: grid; }
  .header-actions { display: flex; align-items: center; gap: 1rem; flex: none; }
  .header-actions .btn { white-space: nowrap; min-height: 46px; padding-inline: 1.125rem; }
  .nav details ul a { white-space: normal; min-height: 42px; padding-block: 0.4rem; }
  .header-phone { font-weight: 800; color: var(--navy-deep); text-decoration: none; white-space: nowrap; display: none; }
  .hero h1 { max-width: 12ch; }
  .plates { grid-template-columns: repeat(6, 1fr); }
  .plate { min-height: 220px; }
  .sign-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .route { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .footer__top { grid-template-columns: 1.4fr repeat(4, 1fr); }
  .footer__brand { grid-column: auto; }
}
@media (min-width: 1320px) { :root { --container: 1280px; } .header-phone { display: inline-flex; align-items: center; min-height: 44px; } }

@media (hover: hover) {
  .card { transition: transform 0.2s, box-shadow 0.2s; }
  .card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
}


/* Açılış filmi ile duruş karesi aynı kadrajı kullanır. */
.hero--cockpit { background: #09162e; }
.hero--cockpit .hero__inner { gap: 0; }
.hero--cockpit .hero__copy { position: relative; z-index: 2; padding-bottom: 1rem; }
.hero--cockpit h1 { max-width: 18ch; letter-spacing: -.047em; }
.hero--cockpit .hero__lead { max-width: 38ch; color: #e5ebf4; }
.hero--cockpit .hero__classes { gap: .4rem; margin-top: 1.5rem; }
.hero--cockpit .hero__classes a { min-width: 2.6rem; border-width: 1px; font-size: .9rem; }
.hero__media--scene { margin-inline: calc(-1 * var(--gutter)); }
.cockpit { position: relative; container-type: size; width: 100%; height: clamp(18rem, 62vw, 26rem); overflow: hidden; isolation: isolate; background: #152231; }
.cockpit__camera { position: absolute; left: 70%; bottom: 0; height: 100%; aspect-ratio: 3 / 2; translate: -50% 0; }
.cockpit__photo { width: 100%; height: 100%; }
.cockpit__road { position: absolute; top: 0; left: 0; width: 100%; height: auto; pointer-events: none; opacity: 0; }
.cockpit[data-road-ready] .cockpit__road { opacity: 1; }
.cockpit::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.cockpit__invitation {
  position: absolute; z-index: 1; left: 70%; top: 28%; transform: translate(-50%, -50%);
  width: max-content; max-width: min(44%, 26rem); padding: .8rem 1.1rem; text-align: center;
  background: rgb(8 21 43 / .94); border: 1px solid #ffffff52; border-radius: var(--r-md);
  box-shadow: 0 8px 22px #06122538;
}
.cockpit__invitation h2 { font-size: clamp(1.25rem, 2vw, 1.8rem); font-weight: 800; line-height: 1.15; }
.cockpit__invitation .btn { max-width: 100%; margin-top: .6rem; text-wrap: balance; }
.cockpit__invitation .btn[hidden] { display: inline-flex; visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .cockpit[data-arrived] .cockpit__invitation, .cockpit[data-arrived] [data-apply]:not([hidden]) {
    animation: cockpit-appear .3s ease-out both;
  }
}
@keyframes cockpit-appear { from { opacity: 0; } to { opacity: 1; } }
.cockpit__motion, .cockpit__caption { position: absolute; z-index: 1; bottom: .75rem; }
.cockpit__caption { left: 1rem; color: #fff; font-size: .75rem; text-shadow: 0 1px 4px #000; background: #071225b3; padding: .1em .5em; border-radius: 3px; }
.cockpit__motion { right: 1rem; width: 44px; height: 44px; display: grid; place-items: center; background: #071225d9; color: white; border: 1px solid #ffffff70; border-radius: 50%; cursor: pointer; }
.cockpit__motion[hidden] { display: none; }
.cockpit__replay { left: 1rem; right: auto; }
.cockpit__motion span { width: 11px; height: 13px; border-inline: 3px solid; }
.cockpit[data-paused] .cockpit__motion span { width: 0; height: 0; border: solid transparent; border-width: 7px 0 7px 11px; border-left-color: currentColor; }
@media (max-width: 767px) {
  .cockpit__replay:not([hidden]) + .cockpit__caption { left: 4.25rem; bottom: 1.45rem; }
  .hero--cockpit .hero__inner {
    --windshield-height: clamp(15rem, 34svh, 20rem);
    grid-template-columns: minmax(0, 1fr);
    padding-top: 0;
  }
  .hero--cockpit .hero__copy, .hero--cockpit .hero__media--scene { grid-area: 1 / 1; }
  .hero--cockpit .hero__copy {
    align-self: start;
    padding-block: clamp(1.5rem, 5vw, 2.25rem) 0;
    margin-bottom: var(--windshield-height);
  }
  .hero--cockpit h1 { max-width: 21ch; font-size: clamp(1.875rem, 7.8vw, 2.8rem); }
  .hero--cockpit .hero__lead { margin-top: .65rem; max-width: 43ch; font-size: 1rem; line-height: 1.45; }
  .hero--cockpit .hero__cta { display: none; }
  /* Ehliyet sınıflarının tümü hemen alttaki bölümde listeleniyor. */
  .hero--cockpit .hero__classes { display: none; }
  .hero--cockpit .hero__media--scene { align-self: stretch; }
  .hero--cockpit, .hero--cockpit .cockpit { overflow: clip; }
  .hero--cockpit .cockpit { height: 100%; }
  .cockpit { background: linear-gradient(140deg, #09172b, #273a4e); }
  .cockpit__camera {
    left: 50%; height: auto; width: max(100%, calc(var(--windshield-height) * 1.78));
    mask-image: linear-gradient(to bottom, transparent, #000 27%);
  }
  .cockpit__invitation { left: 50%; top: auto; bottom: calc(var(--windshield-height) * .46); max-width: min(calc(100% - 2rem), 24rem); transform: translateX(-50%); }
  .cockpit::after {
    background: linear-gradient(to bottom, #09172b9c, #09172bd9 calc(100% - var(--windshield-height)),
      transparent calc(100% - var(--windshield-height) + 4rem));
  }
}
@media (min-width: 768px) {
  .hero--cockpit .hero__inner { display: flex; align-items: center; min-height: clamp(34rem, 75svh, 48rem); padding-block: clamp(3rem,6vw,6rem); }
  .hero--cockpit .hero__copy { width: 49%; padding-bottom: 0; }
  .hero--cockpit h1 { font-size: clamp(2.6rem,4.6vw,4.65rem); }
  .hero--cockpit .hero__lead { font-size: clamp(1rem,1.4vw,1.2rem); }
  .hero__media--scene { position: absolute; inset: 0; height: 100%; margin: 0; }
  .cockpit { height: 100%; background: #08152b; }
  .cockpit__camera { mask-image: linear-gradient(90deg, transparent, #000 12%, #000 90%, transparent); }
  .cockpit::after { background: linear-gradient(90deg,#08152b 0%,#08152bfa 16%,#08152be0 32%,#08152b94 45%,transparent 64%),linear-gradient(0deg,#061224a6,transparent 24%); }
  .cockpit__caption { left: auto; right: 4.75rem; bottom: 1.45rem; }
}
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  @view-transition { navigation: none; }
}

@media print {
  .site-header, .mobile-bar, .site-footer, .cta-band, .announce { display: none; }
  body { background: #fff; padding: 0; }
}

/* Ek yardımcılar */
.h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.2; letter-spacing: -0.01em; }
.hint { font-size: 0.9063rem; color: var(--text-2); }
.split .lead, .lead--gap { margin-top: 0.875rem; }
.lead--gap { margin-bottom: 1.5rem; }
.prose--wide, .section--tint .prose { max-width: none; }
.facts--stack div { grid-template-columns: 1fr; }
.steps-mini { padding-left: 1.25rem; display: grid; gap: 0.5rem; color: var(--text-2); }
.link-list { list-style: none; display: grid; gap: 0.625rem; }
.link-list a { font-weight: 600; }
.hero__signs--solo { margin-top: 0; padding-inline: 0; }
.sign--compact span { color: var(--on-dark-2); font-size: 0.875rem; text-align: right; }
.route h2 { padding-top: 0.6rem; }
.cta-band h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); }
.prose img { border-radius: var(--r-md); }
.alert p + p { margin-top: 0.75rem; }
@media (min-width: 640px) { .hero__signs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .sign-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .brand__mark { height: 48px; } .brand__name { font-size: 1.625rem; } }

/* Düzeltmeler: menü simgesi dikey yığın (X dönüşümü için), 1024-1199 arası sıkı menü */
.hamburger { display: flex; flex-direction: column; align-items: center; justify-content: center; }
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav a, .nav summary { padding: 0 0.45rem; font-size: 0.9063rem; }
  .nav > ul > li:nth-last-child(2) { display: none; }
  .brand__sub { font-size: 0.625rem; letter-spacing: 0.1em; }
}
@media (min-width: 1024px) { .hamburger { display: none; } }

/* Liste (select) alanları: tarayıcı oku yerine kendi okumuz, uzun seçenek metni taşmaz */
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; font-weight: 600;
  padding-right: 2.75rem; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316307a' stroke-width='3' 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.875rem center; background-size: 1.125rem;
}
.field select:invalid, .field select.is-empty { color: var(--text-2); font-weight: 400; }
.field select option { color: var(--text); font-weight: 400; }

/* Kokpit sahnesi: davet kutusu yerine yalnız başvuru düğmesi */
.cockpit__invitation { padding: 0; background: none; border: 0; box-shadow: none; }
.cockpit__invitation .btn { margin-top: 0; box-shadow: 0 10px 26px rgb(6 18 37 / 0.55); }
@media (max-width: 767px) {
  /* Mobilde hero'nun diğer düğmeleri gizli olduğu için başvuru düğmesi videonun bitmesini beklemeden görünür. */
  .cockpit__invitation[hidden] { display: block; }
  .cockpit__invitation .btn[hidden] { visibility: visible; }
}
