:root {
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --container: 1200px;
    --header-height: 88px;
}

html[lang="ar"] {
    --font-sans: 'Noto Sans Arabic', 'Inter', system-ui, -apple-system, sans-serif;
}

[data-theme='light'] {
    --bg: #f4f7fb;
    --bg-elevated: #ffffff;
    --bg-soft: #e8eef7;
    --text: #0f172a;
    --text-muted: #475569;
    --border: rgba(15, 23, 42, 0.08);
    --primary: #0b5cab;
    --primary-dark: #084684;
    --accent: #f59e0b;
    --hero-gradient: linear-gradient(135deg, #0b5cab 0%, #123d73 55%, #0f172a 100%);
    --header-bg: rgba(255, 255, 255, 0.92);
    --error-illustration-sky-top: #dbeafe;
    --error-illustration-sky-bottom: #eff6ff;
    --error-illustration-ground: #0b5cab;
    --error-illustration-mast-dark: #64748b;
    --error-illustration-mast-light: #94a3b8;
    --error-illustration-platform: #cbd5e1;
    --error-illustration-platform-edge: #e2e8f0;
    --error-illustration-accent: #0b5cab;
}

[data-theme='dark'] {
    --bg: #1a1d21;
    --bg-elevated: #22262b;
    --bg-soft: #2a2f36;
    --text: #ece8e0;
    --text-muted: #a39e94;
    --border: rgba(224, 207, 89, 0.22);
    --primary: #e0cf59;
    --primary-dark: #c4b44a;
    --accent: #ece882;
    --hero-gradient: linear-gradient(135deg, #e0cf59 0%, #a89838 42%, #1a1d21 72%, #141619 100%);
    --header-bg: rgba(26, 29, 33, 0.94);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
    --error-illustration-sky-top: #2a2f36;
    --error-illustration-sky-bottom: #1a1d21;
    --error-illustration-ground: #e0cf59;
    --error-illustration-mast-dark: #5c5348;
    --error-illustration-mast-light: #8a8175;
    --error-illustration-platform: #3a4048;
    --error-illustration-platform-edge: #4a515a;
    --error-illustration-accent: #e0cf59;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
.container { width: min(var(--container), calc(100% - 2rem)); margin-inline: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
}
.header-top {
    position: relative;
    z-index: 4;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
}
.header-top-inner, .header-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 48px;
}
.header-contacts, .header-top-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.header-contact-item { color: var(--text-muted); display: inline-flex; gap: 0.35rem; align-items: center; }
.header-main { position: relative; z-index: 2; }
.header-main-inner { min-height: var(--header-height); }
.site-logo-link { display: flex; align-items: center; gap: 0.85rem; color: var(--text); }
.site-logo-brand-light {
    display: block;
    width: auto;
    height: 52px;
    max-width: min(100%, 240px);
    object-fit: contain;
}
.site-logo-brand-dark { display: none; }
.site-logo { width: 52px; height: auto; }
.site-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.site-logo-text small { color: var(--text-muted); font-size: 0.75rem; }

[data-theme='light'] .site-logo-brand-light { display: block; }
[data-theme='light'] .site-logo-brand-dark { display: none; }

[data-theme='dark'] .site-logo-brand-light { display: none; }
[data-theme='dark'] .site-logo-brand-dark {
    display: block;
    width: auto;
    height: 52px;
    max-width: min(100%, 300px);
    object-fit: contain;
}

.header-nav { display: flex; align-items: center; gap: 0.35rem; }
.header-nav > a, .nav-dropdown-trigger {
    color: var(--text);
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.25;
}
.header-nav > a:hover, .header-nav > a.is-active, .nav-dropdown-trigger:hover {
    background: var(--bg-soft);
}
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    padding-top: 0.5rem;
    min-width: 260px;
    display: none;
    z-index: 60;
}
.nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.5rem;
}
.nav-dropdown-menu-inner {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 0.5rem;
    display: grid;
}
.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
    color: var(--text);
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    white-space: normal;
}
.nav-dropdown-menu a:hover { background: var(--bg-soft); color: var(--text); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: transparent; border-color: var(--border); color: var(--text); }
.btn-secondary:hover { background: var(--bg-soft); color: var(--text); border-color: var(--text-muted); }
.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}
.hero .btn-secondary:hover {
    background: #fff;
    border-color: #fff;
    color: #0b5cab;
}
.hero a:not(.btn):hover { color: #fff; }

.theme-toggle, .lang-switch-trigger {
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
}
.theme-toggle { display: inline-flex; gap: 0.35rem; align-items: center; }
[data-theme='light'] .theme-icon-dark, [data-theme='dark'] .theme-icon-light { display: none; }
.lang-switch { position: relative; z-index: 2; }
.lang-switch.open { z-index: 6; }
.lang-switch-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    inset-inline-end: 0;
    min-width: 160px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    display: none;
    padding: 0.35rem;
    z-index: 100;
}
.lang-switch.open .lang-switch-menu { display: grid; }
.lang-switch-menu a { color: var(--text); padding: 0.55rem 0.75rem; border-radius: 8px; }
.lang-switch-menu a.active, .lang-switch-menu a:hover { background: var(--bg-soft); }

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    border-radius: 999px;
    cursor: pointer;
}
.mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset-inline: 0;
    top: var(--mobile-nav-top, 8.5rem);
    bottom: 0;
    z-index: 100;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.45);
    cursor: default;
}
.mobile-nav-backdrop:not([hidden]) { display: block; }

html.mobile-nav-open,
body.mobile-nav-open {
    overflow: hidden;
    overscroll-behavior: none;
}

.hero {
    background: var(--hero-gradient);
    color: #fff;
    padding: 5rem 0 4rem;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
}
.hero-with-media .hero-inner { align-items: center; }
.hero-media {
    position: relative;
    display: grid;
    gap: 1rem;
}
.hero-media img,
.media-card img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.18);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}
.hero-media img[hidden] {
    display: none !important;
}
.hero-media-secondary {
    width: 72%;
    justify-self: end;
    margin-top: -2.5rem;
    box-shadow: var(--shadow);
}
.highlight-images {
    display: grid;
    gap: 1rem;
}
.media-card { overflow: hidden; }
.product-card-media { overflow: visible; }
.media-card figcaption,
.product-card-media img { margin-bottom: 0; }
.media-card figcaption {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: 0.925rem;
}
.section-highlight-media .highlight-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}
.testimonial-logo-wrap {
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: inline-block;
    line-height: 0;
    margin-bottom: 1rem;
}
.section-testimonials .testimonial-logo-wrap .testimonial-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 88px;
    max-height: 48px;
    object-fit: unset;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    vertical-align: top;
}
.hero-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; margin: 0 0 1rem; }
.hero-lead { font-size: 1.05rem; opacity: 0.92; max-width: 56ch; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-stats-inline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.hero-stats-inline .stat-card { padding: 0.85rem; }
.stat-card, .feature-card, .product-card, .service-card, .testimonial-card, .reference-card, .news-card, .contact-card, .spec-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.hero .stat-card { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); color: #fff; }
.stat-card strong { display: block; font-size: 1.35rem; }

.section { padding: 4rem 0; }
.section-head { margin-bottom: 2rem; max-width: 720px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 0.75rem; }
.card-grid.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.highlight-grid, .contact-grid, .cta-box, .footer-grid { display: grid; gap: 1.25rem; }
.highlight-grid { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
.highlight-box, .cta-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.section-cta .cta-box { grid-template-columns: 1fr auto; align-items: center; }
.feature-card.accent { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.service-number { color: var(--accent); font-weight: 800; font-size: 1.25rem; }
.text-link { font-weight: 600; }

.page-hero {
    padding: 3.5rem 0 2rem;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.page-lead { color: var(--text-muted); max-width: 70ch; }
.product-hero .page-intro {
    color: var(--text-muted);
    max-width: 70ch;
    margin-top: 0.75rem;
    font-size: 1rem;
    line-height: 1.65;
}
.page-hero-grid,
.product-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
    align-items: center;
}
.page-hero-media img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    object-fit: cover;
    aspect-ratio: 16 / 10;
}
.product-hero-media { background: var(--hero-gradient); color: #fff; border-bottom: 0; }
.product-hero-media .page-lead { color: rgba(255,255,255,0.9); }
.product-hero-media .page-hero-media img { border-color: rgba(255,255,255,0.2); }
.section-compact-top { padding-top: 2rem; }
.product-gallery,
.content-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.content-figure { margin: 1.25rem 0; }
.content-figure img {
    width: 100%;
    max-width: 720px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.news-card-thumb {
    display: block;
    margin: -1.25rem -1.25rem 1rem;
}
.news-card-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--border);
}
.news-card-body h2 {
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 0 0 0.65rem;
}
.news-card-body p {
    margin: 0 0 0.75rem;
}
.news-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.prose { max-width: 820px; }
.prose h2, .prose h3 { margin-top: 2rem; }
.prose p, .prose ul { color: var(--text-muted); }
.prose ul { padding-inline-start: 1.2rem; }

.spec-grid, .reference-grid, .gallery-grid, .news-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.spec-card span { display: block; color: var(--text-muted); font-size: 0.875rem; }
.spec-card strong { font-size: 1.2rem; }

.catalog-viewer {
    margin-top: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-elevated);
    min-height: 75vh;
}
.catalog-viewer iframe { width: 100%; min-height: 75vh; border: 0; }

.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}
.catalog-language-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: min(100%, 260px);
}
.catalog-language-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}
.catalog-language-select {
    appearance: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text);
    padding: 0.75rem 2.5rem 0.75rem 0.85rem;
    font: inherit;
    line-height: 1.25;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}
.catalog-language-select:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.catalog-toolbar .catalog-actions {
    margin-top: 0;
}

.site-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}
.footer-grid { grid-template-columns: 1.3fr repeat(3, 1fr); padding: 3rem 0 2rem; }
.footer-logo { width: 64px; margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.5rem; color: var(--text-muted); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1rem 0; color: var(--text-muted); font-size: 0.875rem; }

.back-to-top {
    position: fixed;
    inset-inline-end: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--primary);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }

@media (max-width: 980px) {
    .hero-inner, .highlight-grid, .section-highlight-media .highlight-grid, .card-grid.three, .footer-grid, .section-cta .cta-box { grid-template-columns: 1fr; }
    .card-grid.three.product-grid .product-card:nth-child(n) { grid-column: 1 / -1; }
    .page-hero-grid, .product-hero-grid { grid-template-columns: 1fr; }
    .hero-stats-inline { grid-template-columns: 1fr; }
    .mobile-menu-toggle { display: inline-flex; margin-inline-start: auto; }
    body.mobile-nav-open .site-header {
        position: fixed;
        top: 0;
        inset-inline: 0;
        width: 100%;
        z-index: 120;
    }
    .header-nav {
        position: fixed;
        inset-inline: 0;
        top: var(--mobile-nav-top, 8.5rem);
        bottom: 0;
        z-index: 110;
        background: var(--bg-elevated);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow);
        padding: 1rem 1rem 2rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        pointer-events: auto;
    }
    .header-nav.open { display: flex !important; }
    .header-nav > a,
    .header-nav > .nav-dropdown {
        border-bottom: 1px solid var(--border);
    }
    .header-nav > a,
    .header-nav .nav-dropdown-trigger,
    .header-nav .nav-dropdown-menu a {
        white-space: normal;
        width: 100%;
        text-align: start;
        pointer-events: auto;
    }
    .header-nav > a,
    .header-nav .nav-dropdown-trigger {
        font-weight: 600;
        font-size: 1rem;
    }
    .header-nav .nav-dropdown-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }
    .header-nav .nav-dropdown-trigger::after {
        content: "";
        flex-shrink: 0;
        width: 0.45rem;
        height: 0.45rem;
        border-inline-end: 2px solid var(--text-muted);
        border-bottom: 2px solid var(--text-muted);
        transform: rotate(45deg);
        transition: transform 0.2s ease, border-color 0.2s ease;
        margin-inline-end: 0.2rem;
    }
    .header-nav .nav-dropdown.is-open > .nav-dropdown-trigger {
        color: var(--primary);
        background: var(--bg-soft);
    }
    .header-nav .nav-dropdown.is-open > .nav-dropdown-trigger::after {
        border-color: var(--primary);
        transform: rotate(-135deg);
        margin-top: 0.2rem;
    }
    .nav-dropdown-menu { position: static; padding-top: 0; box-shadow: none; }
    .header-nav .nav-dropdown-menu-inner {
        background: var(--bg-soft);
        border: 0;
        border-inline-start: 3px solid var(--primary);
        border-radius: var(--radius-sm);
        box-shadow: none;
        margin: 0.25rem 0 0.65rem;
        padding: 0.35rem 0.45rem 0.45rem;
        display: grid;
        gap: 0.05rem;
    }
    .header-nav .nav-dropdown-menu a {
        position: relative;
        font-size: 0.9375rem;
        font-weight: 500;
        color: var(--text-muted);
        padding: 0.55rem 0.65rem 0.55rem 1.35rem;
        border-radius: 8px;
    }
    .header-nav .nav-dropdown-menu a::before {
        content: "";
        position: absolute;
        inset-inline-start: 0.55rem;
        top: 50%;
        width: 0.35rem;
        height: 0.35rem;
        border-radius: 50%;
        background: var(--primary);
        opacity: 0.45;
        transform: translateY(-50%);
    }
    .header-nav .nav-dropdown-menu a:hover,
    .header-nav .nav-dropdown-menu a:focus-visible {
        color: var(--text);
        background: var(--bg-elevated);
    }
    .header-nav .nav-dropdown-menu a:hover::before,
    .header-nav .nav-dropdown-menu a:focus-visible::before {
        opacity: 1;
    }
    .nav-dropdown:hover .nav-dropdown-menu { display: none; }
    .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
    .header-cta { display: none; }
}

[dir='rtl'] .site-logo-link, [dir='rtl'] .header-nav, [dir='rtl'] .hero-actions { direction: rtl; }
[dir='rtl'] .page-hero h1,
[dir='rtl'] .page-title-row h1,
[dir='rtl'] .prose h2,
[dir='rtl'] .prose h3,
[dir='rtl'] .prose p { direction: rtl; text-align: right; }

/* Hero slider — yazı solda, görsel sağda */
.hero-text-slides {
    display: grid;
    align-items: start;
}
.hero-text-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}
.hero-text-slide.is-active {
    opacity: 1;
    visibility: visible;
}
.hero-media-slider {
    display: grid;
    align-items: center;
}
.hero-media-slide {
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}
.hero-media-slide.is-active {
    opacity: 1;
    visibility: visible;
}
.hero-media-slide img:not(.hero-slide-logo) {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.18);
    object-fit: cover;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow);
}
.hero-media-slide.hero-media-slide-logo {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: clamp(1rem, 4vw, 2rem);
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.hero-media-slide.hero-media-slide-logo .hero-slide-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: auto;
    object-fit: contain;
}
[data-theme='light'] .hero-media-slide.hero-media-slide-logo .hero-slide-logo {
    border-radius: var(--radius);
}
.hero-slider-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.hero-slider-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
.hero-slider-dots { display: flex; gap: 0.45rem; flex-wrap: wrap; }
.hero-slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
}
.hero-slider-dot.is-active { background: #fff; transform: scale(1.2); }

/* Ürün diyagramları — eşit kutu, tam görünüm */
.product-card-media { text-align: center; }
.product-diagram-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0 0 1rem;
    padding: 0.75rem;
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.product-grid .product-diagram-frame {
    display: grid;
    place-items: center;
    container-type: size;
}
.product-grid .product-diagram-image-wrap {
    border-radius: var(--radius-sm);
    overflow: hidden;
    max-width: 100%;
    max-height: 100%;
    line-height: 0;
}
.product-grid .product-diagram-image-wrap .product-diagram {
    display: block;
    width: auto;
    height: auto;
    max-width: 100cqw;
    max-height: 100cqh;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    object-fit: unset;
    aspect-ratio: auto;
}
.product-card-media .product-diagram {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

/* Anasayfa — 5 ürün: alt satır ortada, kart genişliği üst satırla aynı */
.card-grid.three.product-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.card-grid.three.product-grid .product-card:nth-child(1) { grid-column: 1 / span 2; }
.card-grid.three.product-grid .product-card:nth-child(2) { grid-column: 3 / span 2; }
.card-grid.three.product-grid .product-card:nth-child(3) { grid-column: 5 / span 2; }
.card-grid.three.product-grid .product-card:nth-child(4) { grid-column: 2 / span 2; }
.card-grid.three.product-grid .product-card:nth-child(5) { grid-column: 4 / span 2; }

/* Title row with product image */
.page-title-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.page-title-row h1 { margin: 0; flex: 1 1 280px; }
.page-title-row-single h1 { flex: 1 1 auto; }
.page-title-image {
    margin: 0;
    flex: 0 0 auto;
    max-width: min(320px, 100%);
}
.page-title-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

/* Media carousel */
.section-media-carousel { padding-top: 2rem; }
.media-carousel {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}
.media-carousel-viewport { overflow: hidden; }
.media-carousel-track {
    display: flex;
    transition: transform 0.45s ease;
}
.media-carousel-slide {
    min-width: 100%;
    margin: 0;
}
.media-carousel-open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}
.media-carousel-open img {
    width: 100%;
    max-height: 520px;
    object-fit: contain;
    background: #0f172a;
}
.media-carousel-slide figcaption {
    padding: 0.85rem 1rem;
    color: var(--text-muted);
    font-size: 0.925rem;
    border-top: 1px solid var(--border);
}
.media-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
}
.media-carousel-prev { left: 1rem; }
.media-carousel-next { right: 1rem; }
/* Carousel mechanics stay LTR so prev/next buttons and slide motion match other locales. */
[dir='rtl'] .media-carousel,
[dir='rtl'] .media-lightbox-dialog {
    direction: ltr;
}
[dir='rtl'] .media-carousel-slide figcaption,
[dir='rtl'] .media-lightbox-figure figcaption {
    direction: rtl;
    text-align: right;
}
.ltr-isolate {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
}
.media-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.85rem;
}
.media-carousel-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    background: var(--text-muted);
    opacity: 0.35;
    cursor: pointer;
    padding: 0;
}
.media-carousel-dot.is-active { opacity: 1; background: var(--primary); }

/* Triple reference carousel (home) */
.section-media-carousel-triple { padding-top: 1.5rem; }
.media-carousel-triple {
    background: transparent;
    border: 0;
    box-shadow: none;
}
.media-carousel-triple .media-carousel-viewport {
    height: 260px;
    overflow: hidden;
}
.media-carousel-triple .media-carousel-track {
    align-items: center;
    height: 100%;
}
.media-carousel-triple .media-carousel-slide {
    min-width: 33.333%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    transition: transform 0.45s ease, opacity 0.45s ease;
    transform: scale(0.82);
    opacity: 0.55;
}
.media-carousel-triple .media-carousel-slide.is-active {
    transform: scale(1.12);
    opacity: 1;
    z-index: 1;
}
.media-carousel-triple .media-carousel-open {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.media-carousel-triple .media-carousel-image-wrap {
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: inline-block;
    line-height: 0;
    max-width: 100%;
    max-height: 100%;
}
.media-carousel-triple .media-carousel-image-wrap img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 220px;
    object-fit: unset;
    background: transparent;
}
.media-carousel-triple .media-carousel-control {
    top: calc(50% - 1rem);
}

/* Lightbox */
body.lightbox-open { overflow: hidden; }
.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
}
.media-lightbox[hidden] { display: none; }
.media-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.92);
}
.media-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1200px, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    display: grid;
    place-items: center;
}
.media-lightbox-figure {
    margin: 0;
    max-height: calc(100vh - 6rem);
}
.media-lightbox-figure img {
    max-width: 100%;
    max-height: calc(100vh - 6rem);
    width: auto;
    height: auto;
    object-fit: contain;
}
.media-lightbox-figure figcaption {
    color: #e2e8f0;
    text-align: center;
    margin-top: 0.75rem;
}
.media-lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}
.media-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}
.media-lightbox-prev { left: -3.5rem; }
.media-lightbox-next { right: -3.5rem; }
.media-lightbox-counter {
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #cbd5e1;
    font-size: 0.875rem;
}

/* Media grid (load tables) */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}
.media-grid-item {
    margin: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.media-grid-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.media-grid-item figcaption {
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    font-size: 0.925rem;
}

/* Centered certificate image */
.section-media-centered .container {
    display: grid;
    place-items: center;
}
.media-centered-item {
    margin: 0;
    max-width: 720px;
    text-align: center;
}
.media-centered-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* Advantages cards */
.prose-wide { max-width: 920px; }
.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.advantage-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.advantage-number {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}
.advantage-card h3 {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
}
.advantage-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Contact map */
.contact-map {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    min-height: 420px;
}
.contact-map iframe { display: block; width: 100%; min-height: 420px; }

@media (max-width: 980px) {
    .media-lightbox-prev { left: 0.5rem; }
    .media-lightbox-next { right: 0.5rem; }
    .media-carousel-control { display: none; }
}

/* Dark theme — industrial yellow palette (light theme unchanged) */
[data-theme='dark'] .hero .btn-secondary:hover {
    color: #1a1d21;
}

[data-theme='dark'] .btn-primary,
[data-theme='dark'] .back-to-top {
    color: #1a1d21;
}

[data-theme='dark'] .btn-primary:hover,
[data-theme='dark'] .back-to-top:hover {
    color: #141619;
}

[data-theme='dark'] .mobile-nav-backdrop {
    background: rgba(0, 0, 0, 0.62);
}

[data-theme='dark'] .media-carousel-open img {
    background: #141619;
}

[data-theme='dark'] .header-nav > a.is-active,
[data-theme='dark'] .lang-switch-menu a.active {
    color: var(--primary);
}

[data-theme='dark'] .header-contact-item:hover {
    color: var(--primary);
}

[data-theme='dark'] .hero-slider-dot.is-active {
    background: var(--accent);
}

[data-theme='dark'] .service-number,
[data-theme='dark'] .advantage-number {
    color: var(--accent);
}

/* Error pages */
.error-hero {
    min-height: calc(100vh - var(--header-height) - 12rem);
    display: flex;
    align-items: center;
    padding-block: 4rem;
}
.error-hero-grid { align-items: center; }
.error-code {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
}
.error-hero-copy h1 { margin: 0 0 1rem; }
.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}
.error-illustration {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: var(--bg-elevated);
}
.error-illustration svg {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 980px) {
    .error-hero {
        min-height: auto;
        padding-block: 2.5rem;
    }
}

/* Hero slider enhancements */
.hero-footnote {
    margin: 0.75rem 0 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

/* Home products — clickable card overlay */
.product-card-interactive {
    position: relative;
}
.product-card-cover-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}
.product-card-interactive .text-link {
    position: relative;
    z-index: 2;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Projects */
.project-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.project-card-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}
.project-card-body {
    padding: 1.25rem;
}
.project-card-body h3 {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
}
.project-card-body p {
    margin: 0;
    color: var(--text-muted);
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 80;
    padding: 1rem;
    background: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(12px);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
}
.cookie-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.cookie-consent-title {
    margin: 0 0 0.35rem;
    font-weight: 700;
}
.cookie-consent-text {
    margin: 0;
    color: var(--text-muted);
    max-width: 70ch;
}
.cookie-consent-link {
    display: inline-block;
    margin-top: 0.35rem;
    font-weight: 600;
}
.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 980px) {
    .cookie-consent-inner {
        flex-direction: column;
        align-items: stretch;
    }
}
