:root {
    --bg: #0f172a;
    --bg-alt: #152238;
    --accent: #5b8def;
    --accent-strong: #3b6ee8;
    --accent-soft: rgba(91, 141, 239, 0.18);
    --text: #f8fbff;
    --text-muted: #c7d6f5;
    --card-bg: rgba(18, 28, 44, 0.78);
    --card-strong: rgba(22, 36, 58, 0.95);
    --border: rgba(131, 151, 199, 0.2);
    --shadow: 0 20px 50px rgba(11, 18, 31, 0.45);
    --danger: #ff6b6b;
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at 20% 20%, rgba(91, 141, 239, 0.25), transparent 58%),
        linear-gradient(160deg, rgba(48, 76, 130, 0.5), transparent 55%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
button:hover {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.04em;
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: transparent;
    border: 0;
    padding: 0.25rem;
}

.nav-toggle span {
    width: 1.75rem;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.main-nav {
    position: fixed;
    inset: 0 0 auto 0;
    background: rgba(15, 24, 40, 0.96);
    padding: 5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
}

.main-nav a {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.main-nav a.active,
.main-nav a:hover {
    color: var(--text);
}

.main-nav.open {
    transform: translateY(0);
}

.admin-link {
    font-size: 0.95rem;
    opacity: 0.7;
}

.hero {
    position: relative;
    padding: 5.5rem 0 3.5rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(10, 14, 26, 0.94) 0%, rgba(10, 14, 26, 0.78) 35%, rgba(10, 14, 26, 0.4) 55%, rgba(10, 14, 26, 0.78) 100%),
        url('https://images.unsplash.com/photo-1503736334956-4c8f8e92946d?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    transform: scale(1.02);
    filter: saturate(1.05);
    z-index: 0;
        linear-gradient(135deg, rgba(10, 14, 26, 0.92), rgba(15, 23, 42, 0.72)),
        url('https://images.unsplash.com/photo-1542365882-1a1c99f5c324?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    overflow: hidden;
}

.hero-content {
    display: grid;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-copy {
    display: grid;
    gap: 1.25rem;
}

.hero-copy .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.35rem);
    margin: 0;
    line-height: 1.15;
}

.hero p {
    margin: 0;
    color: var(--text-muted);
    max-width: 45ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-card {
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: var(--card-strong);
    border: 1px solid rgba(132, 151, 201, 0.25);
    box-shadow: var(--shadow);
    display: grid;
    gap: 1rem;
}

.hero-card__title {
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.hero-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
    color: var(--text-muted);
}

.nav-banner {
    padding: 1.5rem 0 0;
}

.nav-banner__frame {
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 28px 48px rgba(9, 14, 26, 0.35);
    border: 1px solid rgba(91, 141, 239, 0.35);
    background: radial-gradient(circle at 20% 30%, rgba(91, 141, 239, 0.18), transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(91, 141, 239, 0.12), transparent 30%),
        linear-gradient(145deg, rgba(10, 14, 26, 0.9), rgba(15, 24, 44, 0.85));
}

.nav-banner__frame img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 6;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: 1px solid transparent;
}

.btn.primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 32px rgba(91, 141, 239, 0.35);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(91, 141, 239, 0.45);
}

.btn.secondary {
    background: rgba(91, 141, 239, 0.12);
    color: var(--text);
    border-color: rgba(91, 141, 239, 0.45);
}

.btn.secondary:hover {
    transform: translateY(-2px);
    background: rgba(91, 141, 239, 0.2);
    box-shadow: 0 12px 28px rgba(91, 141, 239, 0.25);
}

.btn.ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn.ghost:hover {
    border-color: rgba(255, 255, 255, 0.25);
}

.btn.ghost.danger {
    color: var(--danger);
    border-color: rgba(255, 107, 107, 0.4);
}

.section {
    padding: 3.5rem 0;
}

.section--alt {
    background: linear-gradient(135deg, rgba(21, 34, 56, 0.72), rgba(11, 17, 31, 0.9));
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.section-header p {
    color: var(--text-muted);
    margin: 0.5rem 0 0;
}

.link-more {
    color: var(--accent);
    font-weight: 600;
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.link-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.link-more:hover::after {
    transform: translateX(4px);
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
    gap: 1.5rem;
    justify-content: center;
}

.cars-grid .car-card {
    width: 100%;
    max-width: 340px;
}

.car-card {
    background: var(--card-bg);
    border: 1px solid rgba(132, 151, 201, 0.18);
    border-radius: 1.1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 24px rgba(10, 16, 28, 0.25);
}

.car-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.car-card:hover .car-card__media img {
    transform: scale(1.03);
}

.car-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.car-card__media {
    background: radial-gradient(circle at 20% 30%, rgba(91, 141, 239, 0.14), transparent 50%), rgba(12, 18, 32, 0.9);
    display: grid;
    place-items: center;
    padding: 0.85rem;
    border-bottom: 1px solid rgba(132, 151, 201, 0.2);
    min-height: 210px;
}

.car-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: lighten;
    transition: transform 0.25s ease;
}

.car-card__body {
    padding: 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.car-card__title {
    font-weight: 700;
    font-size: 1.1rem;
}

.car-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.car-card__meta span {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--accent-soft);
}

.car-card__price {
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
}

.highlight {
    display: grid;
    gap: 1.75rem;
    padding: 2rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(91, 141, 239, 0.14), rgba(21, 34, 56, 0.88));
    border: 1px solid rgba(132, 151, 201, 0.25);
    box-shadow: var(--shadow);
}

.highlight h2 {
    margin: 0;
}

.highlight p {
    margin: 0;
    color: var(--text-muted);
    max-width: 50ch;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}

.stat {
    background: rgba(15, 24, 40, 0.65);
    border-radius: 1.1rem;
    padding: 1.35rem;
    border: 1px solid rgba(132, 151, 201, 0.2);
    position: relative;
    overflow: hidden;
}

.stat::after {
    content: '';
    position: absolute;
    inset: -20% 60% 45% -25%;
    background: radial-gradient(circle, rgba(91, 141, 239, 0.38), transparent 62%);
    opacity: 0.5;
    pointer-events: none;
}

.stat__value {
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
}

.stat__label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.35rem;
    line-height: 1.4;
    display: block;
}

.services-grid {
    display: grid;
    gap: 1.5rem;
}

.service-card {
    background: var(--card-bg);
    border-radius: 1.1rem;
    padding: 1.75rem;
    border: 1px solid rgba(132, 151, 201, 0.2);
    box-shadow: 0 12px 32px rgba(10, 16, 28, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card h3 {
    margin: 0 0 0.75rem;
}

.service-card p {
    margin: 0;
    color: var(--text-muted);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.page-hero {
    padding: 4rem 0 2rem;
    border-bottom: 1px solid rgba(132, 151, 201, 0.18);
    background: linear-gradient(135deg, rgba(91, 141, 239, 0.18), rgba(15, 23, 42, 0.88));
}

.page-hero p {
    color: var(--text-muted);
}

.filters {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 2rem;
    background: linear-gradient(145deg, rgba(91, 141, 239, 0.08), rgba(17, 24, 39, 0.92));
    padding: 1.75rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(132, 151, 201, 0.2);
    box-shadow: 0 12px 28px rgba(10, 16, 28, 0.28);
}

.select {
    display: grid;
    gap: 0.35rem;
}

.select label {
    font-weight: 700;
    color: var(--text);
}

.select select,
.admin-form input,
.admin-form textarea {
    border-radius: 0.9rem;
    padding: 0.95rem 1.1rem;
    border: 1px solid rgba(120, 146, 205, 0.4);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(12, 18, 32, 0.7));
    color: var(--text);
    font: inherit;
    appearance: none;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 26px rgba(5, 10, 22, 0.35);
    transition: border 0.2s ease, box-shadow 0.2s ease;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(12, 18, 32, 0.7)),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white"><path d="M4 6l4 5 4-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center, center;
    background-size: 0.85rem;
}

.select select:focus,
.admin-form input:focus,
.admin-form textarea:focus {
    outline: 2px solid rgba(76, 110, 245, 0.5);
    outline-offset: 2px;
    border-color: rgba(91, 141, 239, 0.8);
    box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.2);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.form-hint {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-grid,
.admin-grid,
.about-grid,
.two-col {
    display: grid;
    gap: 2rem;
}

.contact-card,
.admin-card {
    background: var(--card-bg);
    border-radius: 1.2rem;
    padding: 1.85rem;
    border: 1px solid rgba(132, 151, 201, 0.2);
    box-shadow: 0 12px 32px rgba(10, 16, 28, 0.25);
}

.admin-form {
    display: grid;
    gap: 1.25rem;
}

.admin-card--security {
    display: grid;
    gap: 1.25rem;
}

.admin-card--sync {
    display: grid;
    gap: 1rem;
}

.admin-card--sync .form-hint {
    margin-top: -0.35rem;
}

.form-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-note--warning {
    color: #ffd479;
}

.form-toggle {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 600;
}

.form-toggle input[type='checkbox'] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--accent);
}

.form-grid {
    display: grid;
    gap: 0.75rem;
}

.form-grid > div {
    display: grid;
    gap: 0.35rem;
}

.admin-actions--row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-actions--row .btn {
    flex: 1 1 180px;
}

.admin-card__intro {
    margin: 0;
    color: var(--text-muted);
}

.admin-form--compact {
    gap: 1rem;
}

.form-error {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: #ff8f8f;
}

.form-success {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: #90f3d2;
}

.security-actions {
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
}

.auth-page {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
}

.auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.auth__card {
    width: min(100%, 420px);
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(10, 16, 28, 0.35);
    border: 1px solid rgba(132, 151, 201, 0.25);
    display: grid;
    gap: 1.5rem;
}

.auth__card .logo {
    font-size: 1.35rem;
}

.auth__intro,
.auth__note {
    margin: 0;
    color: var(--text-muted);
}

.auth__note {
    font-size: 0.9rem;
    line-height: 1.6;
}

.auth__form {
    display: grid;
    gap: 1rem;
}

.upload-group {
    display: grid;
    gap: 0.75rem;
    margin: 0.5rem 0 1.2rem;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px dashed rgba(91, 141, 239, 0.35);
    background: rgba(91, 141, 239, 0.08);
}

.upload-group__label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.75rem;
    color: rgba(199, 214, 245, 0.75);
    font-weight: 700;
}

.upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.upload-preview {
    border: 1px solid rgba(132, 151, 201, 0.3);
    background: rgba(10, 16, 28, 0.35);
    border-radius: 0.9rem;
    padding: 0.75rem;
    max-height: 16rem;
    overflow-y: auto;
}

.upload-preview__empty {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.upload-preview__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.upload-preview__item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.75rem;
    align-items: center;
}

.upload-preview__item img {
    width: 72px;
    height: 72px;
    border-radius: 0.75rem;
    object-fit: cover;
    border: 1px solid rgba(132, 151, 201, 0.4);
    box-shadow: 0 6px 14px rgba(10, 16, 28, 0.3);
}

.upload-preview__meta {
    display: grid;
    gap: 0.35rem;
}

.upload-preview__meta span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.upload-preview__remove {
    justify-self: start;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-preview__remove:hover,
.upload-preview__remove:focus {
    border-color: rgba(76, 110, 245, 0.7);
    color: #fff;
    background: rgba(76, 110, 245, 0.15);
    outline: none;
}

@media (max-width: 640px) {
    .upload-preview__item {
        grid-template-columns: 56px 1fr;
    }

    .upload-preview__item img {
        width: 56px;
        height: 56px;
    }
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
    display: grid;
    gap: 1rem;
}

.contact-list li {
    display: grid;
    gap: 0.2rem;
    color: var(--text-muted);
}

.contact-list span {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: rgba(199, 214, 245, 0.75);
}

.contact-card a {
    color: #fff;
    font-weight: 600;
}

.contact-note {
    margin-top: 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.map-card {
    background: var(--card-bg);
    border-radius: 1.2rem;
    padding: 2rem;
    border: 1px solid rgba(132, 151, 201, 0.2);
    display: grid;
    gap: 1rem;
    box-shadow: 0 12px 32px rgba(10, 16, 28, 0.25);
}

.map-placeholder {
    background: rgba(91, 141, 239, 0.12);
    border: 1px dashed rgba(91, 141, 239, 0.45);
    border-radius: 1rem;
    padding: 2.25rem;
    text-align: center;
    color: var(--text-muted);
}

.about-highlight {
    background: var(--card-bg);
    border-radius: 1.2rem;
    padding: 1.8rem;
    border: 1px solid rgba(132, 151, 201, 0.2);
    box-shadow: 0 10px 28px rgba(10, 16, 28, 0.25);
}

.about-highlight ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.about-highlight span {
    font-weight: 800;
    color: #fff;
}

.workflow {
    background: var(--card-bg);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(132, 151, 201, 0.25);
    box-shadow: var(--shadow);
    display: grid;
    gap: 1.5rem;
}

.workflow-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
    counter-reset: workflow;
}

.workflow-steps li {
    position: relative;
    padding: 1.15rem 1.5rem 1.15rem 3.5rem;
    border-radius: 1.2rem;
    background: rgba(15, 24, 40, 0.65);
    border: 1px solid rgba(132, 151, 201, 0.2);
    color: var(--text-muted);
}

.workflow-steps li::before {
    counter-increment: workflow;
    content: counter(workflow, decimal-leading-zero);
    position: absolute;
    left: 1.2rem;
    top: 1rem;
    font-weight: 800;
    color: var(--accent);
    font-size: 0.9rem;
}

.workflow-steps strong {
    color: #fff;
    display: block;
    margin-bottom: 0.35rem;
}

.footer {
    padding: 2.5rem 0;
    background: rgba(9, 13, 24, 0.95);
    border-top: 1px solid rgba(132, 151, 201, 0.2);
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    gap: 1.5rem;
}

.footer-text {
    color: var(--text-muted);
    margin: 0.25rem 0;
}

.footer-bottom {
    border-top: 1px solid rgba(132, 151, 201, 0.2);
    padding-top: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.car-details {
    display: grid;
    gap: 2rem;
    align-items: start;
}

.gallery {
    display: grid;
    gap: 1rem;
}

.gallery-main {
    border-radius: 1.1rem;
    overflow: hidden;
    border: 1px solid rgba(132, 151, 201, 0.25);
    background: radial-gradient(circle at 25% 20%, rgba(91, 141, 239, 0.18), transparent 55%), rgba(11, 16, 28, 0.85);
    position: relative;
    aspect-ratio: 16 / 9;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-main__counter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(7, 10, 18, 0.75);
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 24px rgba(5, 10, 22, 0.3);
}

.gallery-main__frame {
    padding: 0;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8, 12, 22, 0.72);
    border: 1px solid rgba(132, 151, 201, 0.35);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 10px 24px rgba(5, 10, 22, 0.35);
}

.gallery-nav:hover,
.gallery-nav:focus-visible {
    background: rgba(91, 141, 239, 0.85);
    border-color: rgba(91, 141, 239, 0.9);
    outline: none;
    transform: translateY(-50%) scale(1.05);
}

.gallery-nav--prev {
    left: 1rem;
}

.gallery-nav--next {
    right: 1rem;
}

.image-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 14, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: grid;
    place-items: center;
    padding: 1.5rem;
    z-index: 1200;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.image-overlay.is-visible {
    opacity: 1;
}

.image-overlay__content {
    position: relative;
    max-width: min(1100px, 94vw);
    max-height: 92vh;
    width: 100%;
    background: radial-gradient(circle at 25% 20%, rgba(91, 141, 239, 0.25), transparent 45%), rgba(7, 10, 18, 0.8);
    border-radius: 1.25rem;
    border: 1px solid rgba(132, 151, 201, 0.35);
    box-shadow: 0 20px 60px rgba(4, 7, 15, 0.75);
    overflow: hidden;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.image-overlay__frame {
    position: relative;
    height: min(74vh, 760px);
    display: grid;
    place-items: center;
}

.image-overlay img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #05070e;
    transition: transform 0.2s ease;
    cursor: zoom-in;
}

.image-overlay.is-zoomed img {
    transform: scale(1.08);
    cursor: zoom-out;
}

.image-overlay__counter {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    background: rgba(5, 7, 14, 0.7);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.9rem;
    color: #e8edff;
    border: 1px solid rgba(132, 151, 201, 0.3);
    box-shadow: 0 6px 22px rgba(5, 7, 14, 0.35);
}

.image-overlay__nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(132, 151, 201, 0.45);
    background: rgba(7, 10, 18, 0.8);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    margin: 0 0.5rem;
    box-shadow: 0 16px 42px rgba(4, 7, 15, 0.55);
}

.image-overlay__nav:hover,
.image-overlay__nav:focus-visible {
    outline: none;
    background: rgba(91, 141, 239, 0.9);
    border-color: rgba(91, 141, 239, 0.95);
    transform: scale(1.05);
}

.image-overlay__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(132, 151, 201, 0.45);
    background: rgba(7, 10, 18, 0.85);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    z-index: 2;
}

.image-overlay__close:hover,
.image-overlay__close:focus-visible {
    background: rgba(91, 141, 239, 0.9);
    border-color: rgba(91, 141, 239, 0.95);
    outline: none;
    transform: scale(1.05);
}

body.is-overlay-open {
    overflow: hidden;
    touch-action: none;
}

@media (max-width: 600px) {
    .gallery-main {
        aspect-ratio: 4 / 3;
    }
}


.car-specs {
    display: grid;
    gap: 1rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.25rem;
}

.spec-grid--compact {
    gap: 1rem;
}

.spec-item {
    position: relative;
    overflow: hidden;
    border-radius: 1.15rem;
    padding: 1.25rem 1.35rem;
    background: linear-gradient(155deg, rgba(18, 26, 46, 0.92), rgba(9, 14, 26, 0.72));
    border: 1px solid rgba(91, 141, 239, 0.25);
    box-shadow: 0 22px 36px rgba(7, 12, 24, 0.35);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.spec-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(91, 141, 239, 0.25), rgba(91, 141, 239, 0) 60%);
    opacity: 0.9;
    pointer-events: none;
}

.spec-item:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 168, 255, 0.45);
}

.spec-item span,
.spec-item strong {
    position: relative;
    z-index: 1;
}

.spec-item span {
    display: block;
    color: rgba(199, 214, 245, 0.78);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.spec-item strong {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.22rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    word-break: break-word;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.features-list li {
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    background: rgba(91, 141, 239, 0.18);
    color: #fff;
}

.info-note {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(132, 151, 201, 0.2);
    background: rgba(91, 141, 239, 0.12);
    color: var(--text-muted);
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-upload {
    position: relative;
    overflow: hidden;
}

.admin-list {
    display: grid;
    gap: 1rem;
}

.admin-item {
    border: 1px solid var(--border);
    border-radius: 0.85rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    display: grid;
    gap: 0.5rem;
}

.admin-item__title {
    font-weight: 700;
}

.admin-item__meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-item__actions {
    display: flex;
    gap: 0.5rem;
}

.admin-item__actions button {
    flex: 1;
    padding: 0.6rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
}

.admin-item__actions button.delete {
    color: var(--danger);
    border-color: rgba(255, 107, 107, 0.4);
}

[data-empty] {
    text-align: center;
    color: var(--text-muted);
}

/* Utility */
.hidden {
    display: none !important;
}

@media (min-width: 720px) {
    .nav-toggle {
        display: none;
    }

    .main-nav {
        position: static;
        flex-direction: row;
        background: transparent;
        padding: 0;
        gap: 1.5rem;
        transform: none;
    }

    .main-nav a {
        font-size: 0.95rem;
    }

    .hero-content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
    }

    .highlight {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
    }

    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contact-grid,
    .admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-grid {
        grid-template-columns: 2fr 1fr;
    }

    .two-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .car-details {
        grid-template-columns: 3fr 2fr;
    }

    .admin-card--sync {
        grid-column: 1 / -1;
    }

    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .cars-grid {
        gap: 2rem;
    }

    .car-card img {
        height: 210px;
    }

    .stats {
        gap: 1.5rem;
    }
}
