/* Topaloğulları Otomotiv — site stilleri (kütüphanesiz) */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.65 "Trebuchet MS", Verdana, Arial, sans-serif; color: #555; background: #e9e9e9; }
img { max-width: 100%; height: auto; border: 0; }
a { color: #b3151b; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
h1, h2, h3 { font-weight: 400; line-height: 1.25; margin: 0 0 .6em; color: #2e2e2e; }
h1 { font-size: 30px; }
h2 { font-size: 26px; margin-top: 1.1em; }
p { margin: 0 0 1em; }

.sayfa { position: relative; display: flex; max-width: 1000px; margin: 0 auto; background: #f5f5f5; min-height: 100vh; box-shadow: 0 0 28px rgba(0, 0, 0, .28); }

/* sol sütun */
.yan { flex: 0 0 245px; padding: 22px 18px 24px; border-right: 1px solid #e6e6e6; text-align: center; }
.logo { display: inline-block; line-height: 0; margin-bottom: 18px; }
.menu { border-top: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0; padding: 12px 0; text-align: left; }
.menu-dugme { display: none; width: 100%; padding: 8px 4px; border: 0; background: transparent; font: inherit; font-size: 16px; text-align: left; cursor: pointer; color: #333; }
.menu-liste { list-style: none; margin: 0; padding: 0; }
.menu-liste a { display: block; padding: 5px 4px; font-size: 18px; color: #222; }
.menu-liste a:hover, .menu-liste a:focus { color: #b3151b; text-decoration: none; }
.menu-liste a[aria-current="page"] { color: #999; }
.alt-menu { list-style: none; margin: 0 0 4px; padding: 0 0 0 14px; }
.alt-menu a { font-size: 14px; padding: 2px 4px; color: #555; }
.yardim { margin: 22px 0 0; line-height: 0; }
.yardim img { border-radius: 6px; }

/* sağ sütun */
.ana { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; background: #f5f5f5; }
main { flex: 1 1 auto; }
.icerik { padding: 22px 28px 14px; }
.icerik h1 { padding-bottom: 8px; margin-bottom: 14px; }
.icerik img.sol { float: left; margin: 4px 22px 12px 0; }
.icerik::after { content: ""; display: block; clear: both; }

/* ana sayfa slayt */
.slayt { position: relative; aspect-ratio: 735 / 490; width: 100%; overflow: hidden; background: #222; border-bottom: 6px solid #b3151b; }
.slayt-kare { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s; line-height: 0; }
.slayt-kare.acik { opacity: 1; }
.slayt-kare img { width: 100%; height: 100%; object-fit: cover; }
.slayt-noktalar { position: absolute; left: 0; right: 0; top: 10px; display: flex; justify-content: center; gap: 7px; }
.slayt-nokta { width: 10px; height: 10px; padding: 0; border: 1px solid #fff; border-radius: 50%; background: rgba(255, 255, 255, .35); cursor: pointer; }
.slayt-nokta[aria-current="true"] { background: #fff; }
.slayt-ok { position: absolute; top: 50%; margin-top: -22px; width: 38px; height: 44px; border: 0; background: rgba(0, 0, 0, .4); color: #fff; font-size: 26px; cursor: pointer; opacity: 0; transition: opacity .2s; }
.slayt:hover .slayt-ok, .slayt:focus-within .slayt-ok { opacity: 1; }
.slayt-onceki { left: 0; } .slayt-sonraki { right: 0; }

/* hizmet kareleri */
.kareler { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 520px; }
.kareler a { display: block; line-height: 0; }
.kareler img { width: 100%; border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); transition: transform .2s; }
.kareler a:hover img, .kareler a:focus img { transform: translateY(-3px); }

/* sigorta logoları */
.kaydirici { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-bottom: 8px; }
.kaydirici::-webkit-scrollbar { display: none; }
.kaydirici span { flex: 0 0 calc((100% - 24px) / 5); scroll-snap-align: start; line-height: 0; }
.kaydirici img { width: 100%; border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.logolar { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 20px; }
.logolar img { width: 100%; border-radius: 4px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }

/* iletişim */
.harita { margin: 0 0 18px; }
.harita iframe { display: block; width: 100%; height: 420px; border: 0; }

.altbilgi { padding: 18px 28px 26px; text-align: center; border-top: 1px solid #e0e0e0; font-size: 14px; }
.altbilgi p { margin: 0; }

@media (max-width: 820px) {
    .sayfa { flex-direction: column; }
    .yan { flex: none; padding: 14px 16px 10px; border-right: 0; border-bottom: 1px solid #e6e6e6; }
    .logo { margin-bottom: 8px; }
    .logo img { width: 120px; height: auto; }
    .menu { padding: 4px 0; }
    .menu-dugme { display: block; }
    .menu-liste { display: none; }
    .menu.acik .menu-liste { display: block; }
    .menu-liste a { padding: 9px 4px; }
    .yardim { display: none; }
    .icerik { padding: 18px 16px 8px; }
    .icerik img.sol { float: none; display: block; margin: 0 0 12px; }
    h1 { font-size: 26px; } h2 { font-size: 22px; }
    .kaydirici span { flex-basis: calc((100% - 12px) / 3); }
    .harita iframe { height: 320px; }
}
@media (prefers-reduced-motion: reduce) { .slayt-kare, .kareler img { transition: none; } }

.icerik .video-kutu { clear: both; margin: 18px 0 8px; text-align: center; }
.icerik .video-kutu video { max-width: 100%; height: auto; background: #000; }

.icerik img.genis { display: block; clear: both; max-width: 100%; height: auto; margin: 6px 0 14px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }

.icerik .alt-baslik { font-size: 1.2em; }
.icerik .temizle { clear: both; }

/* ana sayfa: hizmet kareleri 3'lü sıra (boyut koddan, görseller yeniden boyutlandırılmaz) */
.kareler.uclu { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 16px; }
.kareler.uclu img { width: 100%; height: auto; aspect-ratio: 1 / 1; }
@media (max-width: 560px) { .kareler.uclu { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* arka plan: çok yavaş akan gradyan (yalnız transform; ayrı katman) */
body::before { content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none; will-change: transform;
  background:
    radial-gradient(circle at 18% 28%, rgba(179, 21, 27, .13), transparent 38%),
    radial-gradient(circle at 82% 72%, rgba(110, 122, 140, .22), transparent 44%),
    radial-gradient(circle at 62% 18%, rgba(255, 255, 255, .60), transparent 34%),
    radial-gradient(circle at 30% 85%, rgba(255, 255, 255, .45), transparent 32%);
  animation: arkaplan-akis 55s ease-in-out infinite alternate; }
@keyframes arkaplan-akis {
  from { transform: translate3d(-5%, -4%, 0) scale(1); }
  to { transform: translate3d(5%, 4%, 0) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } }
