/* =====================================================
   FLINK FONT FAMILY
   Self-hosted WOFF2, no external requests.
   ===================================================== */
@font-face {
    font-family: 'Flink';
    src: url('/static/fonts/flink/Flink-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Flink';
    src: url('/static/fonts/flink/Flink-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Flink';
    src: url('/static/fonts/flink/Flink-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Flink';
    src: url('/static/fonts/flink/Flink-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Flink';
    src: url('/static/fonts/flink/Flink-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #23282B;
    --bg-darker: #101314;
    --accent: #A12A2A;
    --white: #FFFFFF;
    --gray-light: #B2B6B7;
    --gray-dark: #495256;
    --max-content-width: 1400px;
}

body {
    font-family: 'Flink', 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 60px;
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
    z-index: 1002;
}

.hamburger span {
    display: block;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger span:nth-child(1) { width: 39px; }
.hamburger span:nth-child(2) { width: 32px; background: var(--accent); }
.hamburger span:nth-child(3) { width: 26px; }

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
    width: 30px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    width: 30px;
}

.header-icons {
    display: flex;
    gap: 30px;
    align-items: center;
    z-index: 1002;
}

.header-icons a {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    line-height: 0;
}

.header-icons svg {
    width: 24px;
    height: 24px;
    stroke: var(--white);
    fill: none;
    cursor: pointer;
    transition: stroke 0.3s ease;
}

.header-icons a:hover svg,
.header-icons svg:hover {
    stroke: var(--accent);
}

/* =====================================================
   FULLSCREEN MENU OVERLAY
   ===================================================== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.4s, opacity 0.4s ease;
}

.menu-overlay.active {
    visibility: visible;
    opacity: 1;
}

.menu-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.menu-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.menu-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 40, 43, 0.67);
    z-index: 2;
}

.menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 600px;
    max-width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: 3;
    display: flex;
    flex-direction: column;
    padding: 120px 60px 60px 110px;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.menu-overlay.active .menu-panel {
    transform: translateX(0);
}

.menu-close {
    position: absolute;
    top: 43px;
    left: 60px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
}

.menu-close svg {
    width: 100%;
    height: 100%;
}

.menu-close path {
    fill: var(--accent);
    transition: fill 0.3s ease;
}

.menu-close:hover path {
    fill: var(--white);
}

.menu-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 80px;
}

.menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-nav li {
    border-bottom: 1px solid var(--accent);
}

.menu-nav li:first-child {
    border-top: 1px solid var(--accent);
}

.menu-nav a {
    display: block;
    padding: 18px 0;
    font-size: 30px;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.menu-nav a:hover {
    color: var(--accent);
    padding-left: 15px;
}

.menu-socials {
    margin-top: auto;
    padding-top: 40px;
}

.menu-socials-title {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--white);
    margin-bottom: 10px;
    display: inline-block;
    margin-right: 30px;
}

.menu-socials-links {
    display: inline-flex;
    gap: 30px;
}

.menu-socials-links a {
    font-size: 18px;
    font-weight: 300;
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.menu-socials-links a:hover {
    color: var(--white);
}

/* =====================================================
   HERO SECTION (Homepage)
   ===================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 40, 43, 0.67);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-logo {
    margin-bottom: 30px;
}

.hero-logo svg {
    width: 200px;
    height: auto;
}

.hero-title {
    font-size: 70px;
    font-weight: 500;
    letter-spacing: 0;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    border: 1px solid var(--accent);
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: all 0.3s;
    background: transparent;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    animation: bounce 2.4s infinite;
}

.scroll-indicator:hover {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px);
    }
    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

.scroll-indicator svg {
    width: 32px;
    height: auto;
}

/* =====================================================
   PAGE HERO (Contact, News, etc.)
   ===================================================== */
.page-hero {
    position: relative;
    height: 533px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 40, 43, 0.67);
    z-index: 2;
}

.page-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.page-title {
    font-size: 50px;
    font-weight: 400;
    letter-spacing: 5px;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 19px;
    font-weight: 300;
    color: var(--gray-light);
    margin-bottom: 30px;
}

.breadcrumb {
    font-size: 14px;
    font-weight: 300;
    color: var(--white);
}

.breadcrumb a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb-current {
    font-weight: 700;
    text-decoration: underline;
}

/* =====================================================
   SECTION STYLES
   ===================================================== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 50px;
    font-weight: 400;
    letter-spacing: 4px;
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 19px;
    font-weight: 300;
    color: var(--gray-light);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* =====================================================
   CARS GRID
   ===================================================== */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.car-card {
    position: relative;
    background: var(--bg-dark);
}

.car-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.car-color-tag {
    position: absolute;
    top: 270px;
    right: 0;
    display: flex;
}

.car-color-tag .tag-accent {
    background: var(--accent);
    padding: 8px 20px;
    font-size: 16px;
    font-weight: 700;
}

.car-color-tag .tag-white {
    background: var(--white);
    color: var(--bg-dark);
    padding: 8px 20px;
    font-size: 16px;
    font-weight: 700;
}

.car-info {
    padding: 20px 0;
}

.car-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.car-name-line {
    height: 1px;
    background: var(--accent);
    margin-bottom: 20px;
}

.car-specs {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.car-spec {
    display: flex;
    flex-direction: column;
}

.car-spec-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-dark);
    line-height: 1.3;
}

.car-spec-value {
    font-size: 19px;
    font-weight: 300;
    color: var(--white);
}

.car-price-line {
    height: 1px;
    background: var(--accent);
    margin-bottom: 10px;
}

.car-price {
    font-size: 23px;
    font-weight: 700;
}

.center-btn {
    text-align: center;
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */
.services-section {
    padding: 100px 0;
    position: relative;
    overflow: visible;
}

.services-section-bg-left {
    position: absolute;
    left: 0;
    top: -100px;
    width: 652px;
    height: 924px;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.services-header {
    position: relative;
    z-index: 1;
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 60px 60px;
}

.services-wrapper {
    max-width: var(--max-content-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.service-row {
    display: flex;
    min-height: 322px;
    position: relative;
    z-index: 1;
}

.service-row.img-left .service-image {
    flex: 0 0 43%;
    order: 1;
}

.service-row.img-left .service-accent-bar {
    flex: 0 0 30px;
    background: var(--accent);
    order: 2;
}

.service-row.img-left .service-content {
    flex: 1;
    order: 3;
    background: var(--bg-darker);
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-row.img-right .service-content {
    flex: 1;
    order: 1;
    background: var(--bg-darker);
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-row.img-right .service-accent-bar {
    flex: 0 0 30px;
    background: var(--accent);
    order: 2;
}

.service-row.img-right .service-image {
    flex: 0 0 43%;
    order: 3;
}

.service-image {
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-title {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.service-description {
    font-size: 19px;
    font-weight: 300;
    color: var(--gray-light);
    line-height: 1.6;
    margin-bottom: 30px;
}

.service-btn {
    align-self: flex-end;
}

/* =====================================================
   NEWS SECTION (Homepage)
   ===================================================== */
.news-section {
    position: relative;
    height: 410px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.news-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.news-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* =====================================================
   NEWS ARTICLES SECTION (News Page)
   ===================================================== */
.news-articles-section {
    padding: 60px 0 100px;
    max-width: var(--max-content-width);
    margin: 0 auto;
}

.news-article {
    display: flex;
    min-height: 452px;
    margin-bottom: 30px;
}

.news-article.img-right .news-article-content {
    flex: 0 0 50%;
    order: 1;
    background: var(--bg-darker);
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-article.img-right .news-article-accent {
    flex: 0 0 30px;
    background: var(--accent);
    order: 2;
}

.news-article.img-right .news-article-image {
    flex: 1;
    order: 3;
}

.news-article.img-left .news-article-image {
    flex: 1;
    order: 1;
}

.news-article.img-left .news-article-accent {
    flex: 0 0 30px;
    background: var(--accent);
    order: 2;
}

.news-article.img-left .news-article-content {
    flex: 0 0 50%;
    order: 3;
    background: var(--bg-darker);
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-article-image {
    position: relative;
    overflow: hidden;
}

.news-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-date {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}

.news-date-line {
    height: 1px;
    background: var(--accent);
    margin-bottom: 25px;
}

.news-article-title {
    font-size: 36px;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.news-article-text {
    font-size: 19px;
    font-weight: 300;
    color: var(--gray-light);
    line-height: 1.6;
    margin-bottom: 30px;
}

.news-btn {
    align-self: flex-end;
}

/* =====================================================
   QUOTE SECTION
   ===================================================== */
.quote-section {
    padding: 150px 0;
    text-align: center;
    position: relative;
    overflow: visible;
}

.quote-section-bg-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 847px;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.quote-section-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 60px;
}

.quote-logo {
    width: 320px;
    height: 320px;
    margin: 0 auto 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-logo svg {
    width: 200px;
    height: auto;
}

.quote-text {
    font-size: 52px;
    font-weight: 100;
    color: var(--gray-light);
    line-height: 1.2;
}

.quote-text strong {
    color: var(--white);
    font-weight: 400;
}

/* =====================================================
   GALLERY/CAROUSEL SECTION
   ===================================================== */
.gallery-section {
    padding: 50px 0 100px;
    position: relative;
}

/* Galerie nad footerem - extra margin-bottom */
.gallery-section.gallery-above-footer {
    padding-bottom: 0;
    margin-bottom: 0;
}

.gallery-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-thumb-left {
    position: relative;
    width: 548px;
    height: 290px;
    flex-shrink: 0;
}

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

.gallery-thumb-left::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    mix-blend-mode: color;
}

.gallery-nav-left {
    position: absolute;
    left: 365px;
    top: 50%;
    transform: translateY(-50%);
    width: 68px;
    height: 68px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.gallery-nav-left:hover {
    background: #8a2424;
}

.gallery-nav-left svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
    fill: none;
}

.gallery-main {
    width: 678px;
    height: 360px;
    flex-shrink: 0;
    z-index: 5;
    margin: 0 -50px;
}

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

.gallery-nav-right {
    position: absolute;
    right: 365px;
    top: 50%;
    transform: translateY(-50%);
    width: 68px;
    height: 68px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.gallery-nav-right:hover {
    background: #8a2424;
}

.gallery-nav-right svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
    fill: none;
}

.gallery-thumb-right {
    position: relative;
    width: 548px;
    height: 290px;
    flex-shrink: 0;
}

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

.gallery-thumb-right::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    mix-blend-mode: color;
}

/* =====================================================
   CONTACT INFO SECTION
   ===================================================== */
.contact-info-section {
    padding: 60px 0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 19px;
    font-weight: 300;
    color: var(--gray-light);
    line-height: 1.6;
}

/* =====================================================
   CONTACT FOOTER BOX
   ===================================================== */
.contact-footer-box {
    max-width: var(--max-content-width);
    margin: 0 auto 60px;
    padding: 0 60px;
}

.footer-content-static {
    background: var(--bg-darker);
    padding: 60px 80px;
}

/* =====================================================
   CONTACT MAP SECTION (samostatná mapa pro contact)
   ===================================================== */
.contact-map-section {
    width: 100%;
    height: 500px;
    position: relative;
}

.contact-map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =====================================================
   TEAM SECTION
   ===================================================== */
.team-section {
    padding: 80px 0;
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--bg-darker);
    padding: 40px 30px;
    text-align: center;
}

.team-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto 25px;
    border-radius: 0;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.team-role {
    font-size: 19px;
    font-weight: 300;
    color: var(--gray-light);
    margin-bottom: 25px;
}

.team-contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.team-contact-btn {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    padding: 15px 20px;
    border: 0.5px solid var(--accent);
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.team-contact-btn:hover {
    background: var(--accent);
}

.team-contact-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
    fill: none;
}

/* =====================================================
   CONTACT FORM SECTION
   ===================================================== */
.contact-form-section {
    padding: 80px 0;
    background: var(--bg-darker);
}

.contact-form {
    max-width: 1270px;
    margin: 0 auto;
    padding: 0 60px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
    padding-left: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 20px 30px;
    background: transparent;
    border: 0.5px solid var(--gray-dark);
    color: var(--white);
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-disclaimer {
    text-align: center;
    font-size: 19px;
    font-weight: 300;
    color: var(--gray-light);
    margin-bottom: 30px;
}

.form-disclaimer a {
    color: var(--gray-light);
    text-decoration: underline;
}

.form-disclaimer a:hover {
    color: var(--white);
}

.form-submit {
    text-align: center;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    position: relative;
}

.footer-map-section {
    position: relative;
    padding-top: 172px;
    /* margin-top: -172px; */
}

.footer-map {
    position: relative;
    height: 632px;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.footer-content {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 222px);
    max-width: 1400px;
    height: 343px;
    background: var(--bg-darker);
    padding: 60px 80px;
    z-index: 10;
    display: flex;
    align-items: center;
}

.footer-grid {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    width: 100%;
}

.footer-logo {
    flex: 0 0 auto;
}

.footer-logo svg {
    width: 160px;
    height: auto;
}

.footer-columns {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.footer-column p,
.footer-column a {
    font-size: 18px;
    font-weight: 300;
    color: var(--gray-light);
    line-height: 1.6;
    text-decoration: none;
    display: block;
}

.footer-column a:hover {
    color: var(--white);
}

/* =====================================================
   FOOTER SIMPLE (bez mapy - pro contact page)
   ===================================================== */
.footer.footer-simple {
    background: var(--bg-darker);
}

.footer.footer-simple .footer-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    max-width: var(--max-content-width);
    height: auto;
    margin: 0 auto;
    padding: 60px 80px;
}

/* =====================================================
   BODY SCROLL LOCK (when menu is open)
   ===================================================== */
body.menu-open {
    overflow: hidden;
}

/* =====================================================
   RESPONSIVE STYLES
   ===================================================== */
@media (max-width: 1600px) {
    .footer-content {
        width: calc(100% - 120px);
    }
    
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1400px) {
    .services-section-bg-left {
        width: 450px;
        height: 640px;
        left: -100px;
    }
    
    .quote-section-bg-right {
        width: 550px;
        height: 650px;
    }
    
    .gallery-container {
        padding: 0 20px;
    }
    
    .gallery-thumb-left,
    .gallery-thumb-right {
        width: 400px;
        height: 212px;
    }
    
    .gallery-main {
        width: 500px;
        height: 280px;
    }
    
    .gallery-nav-left {
        left: 280px;
    }
    
    .gallery-nav-right {
        right: 280px;
    }
    
    .footer-content {
        width: calc(100% - 80px);
        padding: 50px 60px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .cars-grid {
        grid-template-columns: 1fr;
    }
    
    .service-row {
        flex-direction: column !important;
    }
    
    .service-row .service-image,
    .service-row .service-content,
    .service-row .service-accent-bar {
        order: unset !important;
    }
    
    .service-row .service-image {
        flex: 0 0 300px !important;
    }
    
    .service-row .service-accent-bar {
        flex: 0 0 10px !important;
    }
    
    .service-row .service-content {
        padding: 40px !important;
    }
    
    .services-wrapper {
        gap: 20px;
        padding: 0 40px;
    }
    
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-section-bg-left,
    .quote-section-bg-right {
        display: none;
    }
    
    .services-header {
        padding: 0 40px 40px;
    }
    
    .gallery-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .gallery-thumb-left,
    .gallery-thumb-right {
        width: 100%;
        max-width: 500px;
    }
    
    .gallery-main {
        width: 100%;
        max-width: 600px;
        margin: 0;
    }
    
    .gallery-nav-left,
    .gallery-nav-right {
        display: none;
    }
    
    .footer-map-section {
        padding-top: 0;
        margin-top: 0;
    }
    
    .footer-map {
        height: 350px;
    }
    
    .footer-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 50px 40px;
    }
    
    .menu-panel {
        width: 100%;
        padding: 120px 40px 60px 60px;
    }
    
    .menu-nav a {
        font-size: 24px;
    }
    
    /* News articles responsive */
    .news-article {
        flex-direction: column !important;
    }
    
    .news-article .news-article-image,
    .news-article .news-article-content,
    .news-article .news-article-accent {
        order: unset !important;
    }
    
    .news-article .news-article-image {
        flex: 0 0 300px !important;
    }
    
    .news-article .news-article-accent {
        flex: 0 0 10px !important;
    }
    
    .news-article .news-article-content {
        flex: 1 !important;
        padding: 40px !important;
    }
    
    .news-articles-section {
        padding: 40px 40px 80px;
    }
    
    .team-section {
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .contact-map-section {
        height: 350px;
    }
    
    .footer.footer-simple .footer-content {
        padding: 50px 40px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px 30px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .quote-text {
        font-size: 32px;
    }
    
    .quote-section {
        padding: 80px 0;
    }
    
    .quote-section-content {
        padding: 0 20px;
    }
    
    .service-title {
        font-size: 28px;
    }
    
    .footer-content {
        padding: 40px 30px;
    }
    
    .footer-grid {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
    }
    
    .car-specs {
        gap: 15px;
    }
    
    .services-header {
        padding: 0 20px 30px;
    }
    
    .services-wrapper {
        gap: 15px;
        padding: 0 20px;
    }
    
    .footer-map {
        height: 250px;
    }
    
    .menu-panel {
        padding: 100px 30px 40px 40px;
    }
    
    .menu-nav a {
        font-size: 20px;
        padding: 15px 0;
    }
    
    .menu-socials {
        flex-direction: column;
    }
    
    .menu-socials-title {
        display: block;
        margin-bottom: 15px;
    }
    
    .menu-socials-links {
        display: flex;
        gap: 20px;
    }
    
    .menu-close {
        left: 40px;
        top: 35px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .news-article-title {
        font-size: 28px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-section {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .contact-form {
        padding: 0 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .news-articles-section {
        padding: 30px 20px 60px;
    }
    
    .contact-footer-box {
        padding: 0 20px;
    }
    
    .contact-map-section {
        height: 250px;
    }
    
    .footer.footer-simple .footer-content {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
        letter-spacing: 2px;
    }
    
    .btn {
        padding: 14px 25px;
        font-size: 12px;
        letter-spacing: 2px;
    }
    
    .quote-logo {
        width: 200px;
        height: 200px;
    }
    
    .quote-logo svg {
        width: 120px;
    }
    
    .quote-text {
        font-size: 24px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .news-article-title {
        font-size: 24px;
    }
    
    .team-name {
        font-size: 16px;
    }
    
    .team-contact-btn {
        font-size: 11px;
        padding: 12px 15px;
    }
}

/* ============================================================ */
/*  SERVICES LISTING PAGE (/services) — grid of cards          */
/* ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--bg-darker);
    border: 1px solid rgba(255,255,255,0.04);
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}
.service-card__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #1a1d1f;
}
.service-card__img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.service-card:hover .service-card__img { transform: scale(1.05); }
.service-card__placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1a1d1f 0%, #252a2c 100%);
}
.service-card__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.65) 100%);
    pointer-events: none;
}
.service-card__body { padding: 24px 24px 28px; }
.service-card__title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
}
.service-card__subtitle {
    margin: 0 0 16px;
    color: var(--gray-light);
    font-size: 13px;
    line-height: 1.55;
}
.service-card__cta {
    display: inline-block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: letter-spacing 0.3s ease;
}
.service-card:hover .service-card__cta { letter-spacing: 3px; }
.empty-state {
    text-align: center;
    color: var(--gray-light);
    padding: 60px 20px;
    font-size: 16px;
}
@media (max-width: 1200px) { .services-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ============================================================ */
/*  SERVICE DETAIL PAGE — .svc-* (mirrors .car-* design system)  */
/* ============================================================ */

/* ---- 1. Hero (extends .page-hero) ---- */
.svc-hero { position: relative; }
.svc-hero__badge {
    position: absolute;
    left: 24px; top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    z-index: 5;
    pointer-events: none;
}

/* ---- 2. Intro lede ---- */
.svc-intro {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px 30px;
    text-align: center;
    color: var(--white);
}
.svc-intro p {
    color: var(--gray-light);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* ---- 3. Meaning ---- */
.svc-meaning {
    max-width: var(--max-content-width, 1400px);
    margin: 0 auto;
    padding: 60px 24px 40px;
    text-align: center;
}
.svc-meaning__title {
    color: var(--white);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 4px;
    margin: 0 0 28px;
}
.svc-meaning__text {
    color: var(--gray-light);
    font-size: 14px;
    line-height: 1.75;
    max-width: 880px;
    margin: 0 auto;
}

/* ---- 4. Cards strip ---- */
.svc-cards {
    max-width: var(--max-content-width, 1400px);
    margin: 0 auto;
    padding: 40px 0 0;
}
.svc-cards__title {
    color: var(--white);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 4px;
    text-align: center;
    margin: 0 0 28px;
    padding: 0 24px;
}
.svc-cards__title span { color: var(--white); }
.svc-cards__viewport {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}
.svc-cards__viewport::-webkit-scrollbar { height: 4px; }
.svc-cards__viewport::-webkit-scrollbar-thumb { background: var(--accent); }
.svc-cards__track {
    display: flex;
    gap: 0;
    padding: 0 24px 30px;
    min-width: max-content;
    border-bottom: 4px solid var(--accent);
}
.svc-cards__card {
    flex: 0 0 240px;
    background: var(--bg-darker);
    color: var(--white);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.04);
}
.svc-cards__img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}
.svc-cards__img--empty {
    background: linear-gradient(135deg, #2a2f33 0%, #1a1d20 100%);
}
.svc-cards__label {
    display: block;
    padding: 14px 16px 18px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    color: var(--white);
}

/* ---- 5. Bullets 2-col on red bg ---- */
.svc-bullets {
    background: var(--accent);
    color: var(--white);
    padding: 50px 0;
}
.svc-bullets__inner {
    max-width: var(--max-content-width, 1400px);
    margin: 0 auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 80px;
}
.svc-bullets__col {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.svc-bullets__item {
    position: relative;
    padding-left: 18px;
}
.svc-bullets__item::before {
    content: "";
    position: absolute;
    left: 0; top: 8px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--bg-darker);
}
.svc-bullets__item-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0 0 4px;
    color: var(--white);
}
.svc-bullets__item-text {
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    color: rgba(255,255,255,0.85);
}

/* ---- 6. Process & 7. Experience (shared) ---- */
.svc-process,
.svc-experience {
    max-width: var(--max-content-width, 1400px);
    margin: 0 auto;
    padding: 70px 24px 30px;
    text-align: center;
}
.svc-process__title,
.svc-experience__title {
    color: var(--white);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 3px;
    margin: 0 0 22px;
}
.svc-process__text,
.svc-experience__text {
    color: var(--gray-light);
    font-size: 14px;
    line-height: 1.75;
    max-width: 760px;
    margin: 0 auto;
}

/* ---- 8. Gallery (4-col grid w/ red top strip on title) ---- */
.svc-gallery {
    margin: 60px 0 0;
    background: var(--accent);
    padding: 30px 0 40px;
}
.svc-gallery__title {
    color: var(--white);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 4px;
    text-align: center;
    margin: 0 0 24px;
}
.svc-gallery__title span { color: var(--white); }
.svc-gallery__grid {
    max-width: var(--max-content-width, 1400px);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.svc-gallery__thumb {
    border: none; padding: 0; margin: 0;
    background: var(--bg-darker);
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    transition: transform 0.3s ease;
}
.svc-gallery__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.svc-gallery__thumb:hover img { transform: scale(1.05); }
.svc-gallery__thumb--extra { display: none; }
.svc-gallery__grid--expanded .svc-gallery__thumb--extra { display: block; }
.svc-gallery__more {
    text-align: center;
    margin-top: 24px;
}
.svc-gallery__more .btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    padding: 12px 36px;
    font-size: 12px;
    letter-spacing: 3px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}
.svc-gallery__more .btn-ghost:hover {
    background: var(--white);
    color: var(--accent);
}

/* ---- 9. Contact form override (uses .car-form .svc-form) ---- */
.svc-form { background: var(--bg-darker); padding: 70px 0 80px; }

/* ---- Responsive ---- */
@media (max-width: 1200px) {
    .svc-bullets__inner { padding: 0 40px; }
    .svc-cards__card { flex-basis: 220px; }
}
@media (max-width: 900px) {
    .svc-gallery__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .svc-bullets__inner {
        grid-template-columns: 1fr;
        padding: 0 24px;
        gap: 22px;
    }
    .svc-cards__card { flex-basis: 200px; }
    .svc-cards__img { height: 130px; }
    .svc-meaning__title,
    .svc-cards__title,
    .svc-process__title,
    .svc-experience__title,
    .svc-gallery__title { font-size: 20px; letter-spacing: 3px; }
    .svc-meaning,
    .svc-process,
    .svc-experience { padding: 50px 24px 20px; }
    .svc-hero__badge { display: none; }
}
@media (max-width: 600px) {
    .svc-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}

/* ============================================================ */
/*  CAR DETAIL PAGE — .car-* (BEM)                              */
/*  Layered top → bottom in section order from the template.    */
/*  Shared with /services/{slug} which reuses .car-form +       */
/*  .car-related for its contact form + related-cars carousel.  */
/* ============================================================ */

/* ---- 1. Hero slider --------------------------------------- */
.car-hero {
    position: relative;
    width: 100%;
    height: 640px;
    overflow: hidden;
    background: var(--bg-darker);
}
.car-hero__slider { position: relative; width: 100%; height: 100%; }
.car-hero__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.car-hero__img.active { opacity: 1; }
.car-hero__img--empty { background: var(--bg-darker); opacity: 1; }

.car-hero__dots {
    position: absolute;
    left: 50%; bottom: 24px;
    transform: translateX(-50%);
    display: flex; gap: 10px;
    z-index: 10;
}
.car-hero__dot {
    width: 10px; height: 10px;
    padding: 0; border: none; border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
.car-hero__dot:hover { background: rgba(255,255,255,0.75); }
.car-hero__dot.active {
    background: var(--white);
    transform: scale(1.15);
}

/* ---- 2. Summary (red title bar + specs + sales card) ----- */
.car-summary { background: var(--bg-darker); }
.car-summary__inner {
    max-width: var(--max-content-width, 1400px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 360px);
    grid-template-rows: auto auto;
    align-items: stretch;
}
.car-summary__main {
    grid-column: 1; grid-row: 1 / span 2;
    display: flex; flex-direction: column;
}
.car-summary__contact {
    grid-column: 2; grid-row: 1 / span 2;
    background: #0c0e0f;
    color: var(--white);
    padding: 22px 26px;
    display: flex; flex-direction: column;
    border-left: 1px solid rgba(255,255,255,0.06);
}

/* Title bar (red) */
.car-summary__title-bar {
    background: var(--accent);
    color: var(--white);
    padding: 18px 30px;
    display: flex; align-items: center; gap: 24px;
    flex-wrap: wrap;
}
.car-summary__name {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: none;
}
.car-summary__color {
    margin-left: auto;
    font-size: 13px;
    letter-spacing: 1px;
}
.car-summary__color-label {
    opacity: 0.75;
    margin-right: 6px;
}
.car-summary__color strong { font-weight: 700; }
.car-summary__price {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
    margin-left: 24px;
}

/* Specs bar (dark gray) */
.car-summary__specs-bar {
    background: var(--bg-dark);
    color: var(--white);
    padding: 24px 30px;
    display: flex; gap: 56px; flex-wrap: wrap;
    flex: 1;
}
.car-summary__spec { display: flex; flex-direction: column; gap: 6px; min-width: 110px; }
.car-summary__spec-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent);
    text-transform: uppercase;
    line-height: 1.3;
}
.car-summary__spec-value {
    font-size: 15px;
    font-weight: 400;
    color: var(--white);
}

/* Sales contact card (right column, near-black) */
.car-summary__contact-question {
    margin: 0 0 18px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--white);
    font-weight: 600;
}
.car-summary__contact-question span {
    display: inline-block;
    color: rgba(255,255,255,0.65);
    font-weight: 400;
}
.car-summary__contact-person {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px;
}
.car-summary__contact-photo {
    width: 50px; height: 50px;
    object-fit: cover;
    border-radius: 2px;
}
.car-summary__contact-info { display: flex; flex-direction: column; }
.car-summary__contact-name {
    font-size: 14px; font-weight: 700; color: var(--white);
}
.car-summary__contact-role {
    font-size: 12px; font-weight: 400;
    color: rgba(255,255,255,0.55);
}
.car-summary__contact-buttons { display: flex; flex-direction: column; gap: 8px; }
.car-summary__contact-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--white);
    text-decoration: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.18);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.car-summary__contact-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.35);
}
.car-summary__contact-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.car-summary__contact-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- 3. Feature strip ------------------------------------- */
.car-features {
    background: var(--bg-dark);
    padding: 26px 0;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.car-features__grid {
    max-width: var(--max-content-width, 1400px);
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 18px 12px;
    align-items: start;
}
.car-features__item {
    display: flex; flex-direction: column; align-items: center;
    gap: 8px;
    color: var(--white);
    text-align: center;
}
.car-features__item .feature-icon { color: var(--white); }
.car-features__label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    line-height: 1.3;
}

/* ---- 4. Tabs section -------------------------------------- */
.car-tabs {
    background: var(--bg-dark);
    padding: 50px 0 70px;
}
.car-tabs__bar {
    display: flex; flex-wrap: wrap; gap: 0;
    border-bottom: none;
}
.car-tabs__btn {
    padding: 14px 36px 14px 0;
    margin-right: 36px;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}
.car-tabs__btn:hover { color: var(--white); }
.car-tabs__btn.active { color: var(--white); }
.car-tabs__line {
    height: 2px;
    background: var(--accent);
    margin-bottom: 30px;
}
.car-tabs__panel { padding-top: 6px; }
.car-tabs__panel[hidden] { display: none; }
.car-tabs__panel-header {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
    text-transform: uppercase;
}
.car-tabs__panel-line {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin-bottom: 28px;
}
.car-tabs__columns {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 26px;
}
.car-tabs__columns[data-cols="1"] { grid-template-columns: 1fr; }
.car-tabs__columns[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.car-tabs__columns[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.car-tabs__columns[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.car-tabs__col-title {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent);
    text-transform: uppercase;
}
.car-tabs__list {
    list-style: none;
    margin: 0; padding: 0;
}
.car-tabs__list li {
    position: relative;
    padding-left: 0;
    margin-bottom: 7px;
    font-size: 11.5px;
    line-height: 1.5;
    color: rgba(255,255,255,0.78);
    font-weight: 300;
}
.car-tabs__list--single { column-count: 3; column-gap: 36px; }
.car-tabs__list--single li { break-inside: avoid; }

/* ---- 5. Galleries ----------------------------------------- */
.car-gallery { background: var(--bg-darker); padding: 0; }
.car-gallery__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--accent);
    column-gap: 1px;
}
.car-gallery__col {
    background: var(--bg-darker);
    padding: 36px 30px 40px;
}
.car-gallery__title {
    margin: 0 0 22px;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--white);
    text-transform: uppercase;
}
.car-gallery__title span { font-weight: 700; }
.car-gallery__images { margin-bottom: 18px; }
.car-gallery__main {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin-bottom: 12px;
    overflow: hidden;
    cursor: zoom-in;
    background: #000;
}
.car-gallery__main img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.car-gallery__main:hover img { transform: scale(1.02); }
.car-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.car-gallery__thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: pointer;
}
.car-gallery__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.car-gallery__thumb:hover img { transform: scale(1.08); }
.car-gallery__view-more {
    display: inline-block;
    margin-top: 12px;
    padding: 0 0 4px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.6);
    color: rgba(255,255,255,0.85);
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.car-gallery__view-more:hover { color: var(--white); border-bottom-color: var(--white); }

/* ---- Lightbox -------------------------------------------- */
.car-lightbox {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    padding: 60px 80px;
}
.car-lightbox[hidden] { display: none; }
.car-lightbox__figure {
    margin: 0; max-width: 100%; max-height: 100%;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.car-lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.car-lightbox__caption {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.car-lightbox__close,
.car-lightbox__prev,
.car-lightbox__next {
    position: absolute;
    background: rgba(0,0,0,0.4);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.25);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.car-lightbox__close:hover,
.car-lightbox__prev:hover,
.car-lightbox__next:hover {
    background: var(--accent); border-color: var(--accent);
}
.car-lightbox__close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 20px; }
.car-lightbox__prev,
.car-lightbox__next { top: 50%; width: 50px; height: 60px; transform: translateY(-50%); font-size: 32px; line-height: 1; }
.car-lightbox__prev { left: 20px; }
.car-lightbox__next { right: 20px; }
.car-lightbox__prev:hover { transform: translateY(-50%) translateX(-2px); }
.car-lightbox__next:hover { transform: translateY(-50%) translateX(2px); }

/* ---- 6. Video --------------------------------------------- */
.car-video {
    background: var(--bg-darker);
    padding: 50px 0 0;
}
.car-video__header {
    max-width: var(--max-content-width, 1400px);
    margin: 0 auto;
    padding: 0 30px;
}
.car-video__title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--white);
    text-transform: uppercase;
}
.car-video__line { height: 2px; background: var(--accent); margin-bottom: 28px; }
.car-video__container {
    position: relative;
    display: block;
    width: 100%;
    height: 520px;
    background: #000;
    overflow: hidden;
}
.car-video__container::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.25);
    transition: background 0.3s ease;
    pointer-events: none;
}
.car-video__container:hover::after { background: rgba(0,0,0,0.10); }
.car-video__thumbnail { width: 100%; height: 100%; object-fit: cover; }
.car-video__play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: transform 0.3s ease;
}
.car-video__play-btn:hover { transform: translate(-50%, -50%) scale(1.08); }
.car-video__play-btn svg { width: 80px; height: 80px; }

/* ---- 7. Contact form (also used by /services/{slug}) ------ */
.car-form { background: var(--bg-darker); padding: 80px 0 90px; }
.car-form__title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--white);
    margin: 0 0 18px;
    text-transform: uppercase;
}
.car-form__line { height: 2px; background: var(--accent); max-width: 920px; margin: 0 auto 40px; }
.car-form__form { max-width: 920px; margin: 0 auto; }
.car-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 22px;
}
.car-form__group { display: flex; flex-direction: column; }
.car-form__group label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.55);
    margin-bottom: 6px;
    text-transform: uppercase;
}
.car-form__group input,
.car-form__group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
    font-family: inherit;
    font-size: 14px;
    padding: 8px 0;
    transition: border-color 0.2s ease;
    resize: vertical;
}
.car-form__group input:focus,
.car-form__group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}
.car-form__group--full { margin-bottom: 28px; }
.car-form__terms {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 28px;
    cursor: pointer;
}
.car-form__terms input { margin-top: 3px; accent-color: var(--accent); }
.car-form__terms a { color: var(--white); text-decoration: underline; }
.car-form__submit { display: flex; justify-content: center; }
.car-form__submit .btn { min-width: 220px; }
.car-form__status {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
}
.car-form__status[hidden] { display: none; }

/* ---- 8. Related cars (also used by /services/{slug}) ------ */
.car-related { background: var(--bg-dark); padding: 0 0 40px; }
.car-related__viewport {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 60px;
}
.car-related__track {
    display: flex;
    gap: 1px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.car-related__track::-webkit-scrollbar { display: none; }
.car-related__card {
    position: relative;
    flex: 0 0 calc((100% - 2px) / 3);
    aspect-ratio: 16 / 10;
    overflow: hidden;
    text-decoration: none;
    scroll-snap-align: start;
    background: #000;
}
.car-related__card img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.3s ease;
}
.car-related__card:hover img { transform: scale(1.05); opacity: 0.85; }
.car-related__placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1c2024 0%, #0c0e0f 100%);
}
.car-related__overlay {
    position: absolute; left: 16px; bottom: 14px;
    color: var(--white);
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.car-related__nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white);
    font-family: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s ease;
}
.car-related__nav:hover { background: var(--accent); border-color: var(--accent); }
.car-related__nav--prev { left: 12px; }
.car-related__nav--next { right: 12px; }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 1200px) {
    .car-summary__inner { grid-template-columns: 1fr; }
    .car-summary__contact { grid-column: 1; grid-row: auto; border-left: none; }
    .car-tabs__columns,
    .car-tabs__columns[data-cols="5"],
    .car-tabs__columns[data-cols="4"] { grid-template-columns: repeat(2, 1fr); }
    .car-tabs__list--single { column-count: 2; }
    .car-related__card { flex-basis: calc((100% - 1px) / 2); }
}
@media (max-width: 768px) {
    .car-hero { height: 380px; }
    .car-summary__title-bar {
        padding: 14px 18px; gap: 10px;
    }
    .car-summary__name { font-size: 17px; flex-basis: 100%; }
    .car-summary__price { font-size: 18px; margin-left: 0; }
    .car-summary__color { margin-left: 0; }
    .car-summary__specs-bar { padding: 18px; gap: 22px; }
    .car-summary__contact { padding: 18px; }
    .car-features__grid { padding: 0 18px; gap: 16px 8px; }
    .car-tabs { padding: 30px 0 50px; }
    .car-tabs__btn { padding: 10px 0; margin-right: 22px; font-size: 12px; letter-spacing: 1.5px; }
    .car-tabs__columns,
    .car-tabs__columns[data-cols="5"],
    .car-tabs__columns[data-cols="4"],
    .car-tabs__columns[data-cols="3"] { grid-template-columns: 1fr; }
    .car-tabs__list--single { column-count: 1; }
    .car-gallery__grid { grid-template-columns: 1fr; column-gap: 0; row-gap: 1px; }
    .car-gallery__col { padding: 26px 18px 30px; }
    .car-video__container { height: 280px; }
    .car-video__play-btn svg { width: 60px; height: 60px; }
    .car-form { padding: 50px 0; }
    .car-form__title { font-size: 18px; letter-spacing: 2px; }
    .car-form__row { grid-template-columns: 1fr; gap: 18px; }
    .car-related__viewport { padding: 0 12px; }
    .car-related__card { flex-basis: 100%; }
    .car-lightbox { padding: 30px 10px; }
    .car-lightbox__prev,
    .car-lightbox__next { width: 40px; height: 50px; font-size: 24px; }
    .car-lightbox__close { width: 38px; height: 38px; font-size: 16px; top: 10px; right: 10px; }
}
@media (max-width: 480px) {
    .car-hero { height: 280px; }
    .car-gallery__thumbs { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   LIVE MAP (Leaflet + CartoDB Dark Matter)
   Rendered on /contact when map_latitude & map_longitude
   are set in admin settings. Styled to match the site's
   dark premium aesthetic.
   ===================================================== */
#contact-map {
    width: 100%;
    height: 600px;
    background: var(--bg-darker);
    /* Leaflet sets its own z-index on panes; keep map below header overlays. */
    position: relative;
    z-index: 0;
}
@media (max-width: 1200px) { #contact-map { height: 520px; } }
@media (max-width: 768px)  { #contact-map { height: 420px; } }
@media (max-width: 480px)  { #contact-map { height: 340px; } }

/* Footer map: replaces the static <img.footer-bg>. Fully interactive —
   users can pan/zoom on every page. The .footer-bg rule already handles
   absolute positioning + sizing inside .footer-map; we just guarantee
   Leaflet sees a sized container and a dark background while the tiles
   load. Zoom controls move to the bottom-right so they don't sit under
   the footer text columns (which are anchored top-left of the section). */
#footer-map.footer-bg {
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
}
#footer-map .leaflet-top.leaflet-left {
    /* Reposition default top-left controls to bottom-right corner so
       they don't overlap the footer logo / contact columns. */
    top: auto;
    left: auto;
    bottom: 16px;
    right: 16px;
}
#footer-map .leaflet-control-attribution {
    /* Compact attribution — stays visible per OSM / CARTO licensing. */
    font-size: 9px !important;
    padding: 1px 6px !important;
    background: rgba(16, 19, 20, 0.7) !important;
}

/* Custom QAR pin marker (accent red drop) */
.qar-pin-wrapper {
    background: transparent !important;
    border: 0 !important;
}
.qar-pin {
    width: 32px;
    height: 44px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
    animation: qar-pin-drop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.qar-pin svg {
    width: 100%;
    height: 100%;
    fill: var(--accent);
}
@keyframes qar-pin-drop {
    0%   { transform: translateY(-30px); opacity: 0; }
    100% { transform: translateY(0);     opacity: 1; }
}

/* --- Leaflet UI dark overrides --- */
.leaflet-container {
    background: var(--bg-darker);
    font-family: inherit;
    outline: none;
}
.leaflet-container a { color: var(--white); }

/* Zoom controls */
.leaflet-bar {
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}
.leaflet-bar a,
.leaflet-bar a:hover {
    background: var(--bg-dark);
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, color 0.2s ease;
}
.leaflet-bar a:hover {
    background: var(--accent);
    color: var(--white);
}
.leaflet-bar a.leaflet-disabled {
    background: var(--bg-darker);
    color: var(--gray-dark);
}

/* Attribution */
.leaflet-control-attribution {
    background: rgba(16, 19, 20, 0.85) !important;
    color: var(--gray-light) !important;
    font-size: 10px !important;
    padding: 2px 8px !important;
    backdrop-filter: blur(4px);
}
.leaflet-control-attribution a {
    color: var(--gray-light) !important;
}
.leaflet-control-attribution a:hover {
    color: var(--white) !important;
}

/* Popup — dark theme. !important is required because Leaflet's own
   stylesheet is loaded AFTER our style.css (conditional <link> in <head>),
   so its default white popup background would otherwise win the cascade. */
.leaflet-popup-content-wrapper {
    background: var(--bg-dark) !important;
    color: var(--white) !important;
    border-radius: 4px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
.leaflet-popup-content {
    margin: 12px 16px !important;
    color: var(--white) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    letter-spacing: 0.3px;
}
.leaflet-popup-content a {
    color: var(--accent) !important;
}
.leaflet-popup-content strong,
.leaflet-popup-content b {
    color: var(--white) !important;
    font-weight: 500;
}
.leaflet-popup-tip {
    background: var(--bg-dark) !important;
    box-shadow: none !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.leaflet-popup-close-button {
    color: var(--gray-light) !important;
    font-size: 18px !important;
    padding: 6px 8px 0 0 !important;
}
.leaflet-popup-close-button:hover {
    color: var(--white) !important;
}
