/* Homepage — Classic (d1) + Split / Mosaic / Rail / Street */

:root {
    --home-ink: #0f172a;
    --home-muted: #64748b;
    --home-blue: #2b7ac4;
    --home-line: #e2e8f0;
    --home-paper: #f4f7fb;
    --home-font: "Figtree", system-ui, sans-serif;
    --home-display: "Sora", "Figtree", system-ui, sans-serif;
}

/* Classic — photo hero (overrides car-sale gradient) */
.home-classic-hero {
    min-height: min(72vh, 620px);
    display: flex;
    align-items: center;
    padding: 72px 16px 80px;
}

.home-classic-hero .cs-hero__bg {
    background:
        linear-gradient(180deg, rgba(12, 24, 40, 0.55) 0%, rgba(12, 24, 40, 0.72) 100%),
        var(--classic-hero) center / cover no-repeat;
}

.home-classic-hero .cs-hero__bg::before {
    background:
        radial-gradient(circle at 20% 30%, rgba(43, 122, 196, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(124, 179, 66, 0.15) 0%, transparent 40%);
}

.home-classic-hero .cs-hero__lines {
    opacity: 0.08;
}

.home-classic-hero .cs-stats {
    margin-top: 28px;
}

/* ——— Design switcher ——— */
.home-switcher {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 80;
    display: flex;
    gap: 4px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
    max-width: calc(100vw - 20px);
    overflow-x: auto;
}

.home-switcher__item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 58px;
    padding: 8px 10px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.72) !important;
    text-decoration: none !important;
    font-family: var(--home-font);
    transition: background .15s ease, color .15s ease;
}

.home-switcher__item:hover,
.home-switcher__item.is-active {
    background: rgba(43, 122, 196, 0.95);
    color: #fff !important;
}

.home-switcher__num {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.home-switcher__label {
    font-size: 0.68rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ——— Classic service cards ——— */
.home-cs-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.home-cs-service {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.home-cs-service:hover {
    transform: translateY(-4px);
    border-color: #bfdbfe;
    box-shadow: 0 14px 32px rgba(43, 122, 196, 0.12);
}

.home-cs-service__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eef3f9;
    flex-shrink: 0;
}

.home-cs-service__media img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    filter: saturate(0.9) contrast(0.97);
    transition: transform .3s ease;
}

.home-cs-service:hover .home-cs-service__media img {
    transform: scale(1.04);
}

.home-cs-service__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.home-cs-service__body h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--home-ink);
    font-family: var(--home-display);
}

.home-cs-service__body p {
    margin: 0;
    color: var(--home-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.home-cs-service__body span {
    margin-top: auto;
    padding-top: 10px;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--home-blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 991px) {
    .home-cs-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .home-cs-services { grid-template-columns: 1fr; }
}

/* ========== Design 2 — Split (elegant professional) ========== */
.home-d2 {
    --d2-ink: #152433;
    --d2-muted: #667788;
    --d2-blue: #2a628f;
    --d2-line: #d5dee8;
    --d2-surface: #ffffff;
    --d2-paper: #f0f3f7;
    --d2-font: "Manrope", system-ui, sans-serif;
    --d2-display: "Cormorant Garamond", Georgia, serif;
    font-family: var(--d2-font);
    background: var(--d2-paper);
    color: var(--d2-ink);
}

.home-d2__hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
    min-height: min(88vh, 720px);
}

.home-d2__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(48px, 7vw, 92px) clamp(32px, 5.5vw, 68px);
    background:
        linear-gradient(160deg, #f8fafc 0%, #eef2f6 52%, #e5ecf3 100%);
    border-right: 1px solid var(--d2-line);
}

.home-d2__copy-inner {
    max-width: 24rem;
}

.home-d2__brand {
    margin: 0 0 18px;
    font-family: var(--d2-display);
    font-size: clamp(2.35rem, 4vw, 3.15rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.02;
    color: var(--d2-ink);
}

.home-d2__copy h1 {
    margin: 0 0 14px;
    font-family: var(--d2-font);
    font-size: clamp(1.2rem, 2.1vw, 1.55rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #3a4a5a;
}

.home-d2__lead {
    margin: 0;
    max-width: 36ch;
    color: var(--d2-muted);
    font-size: 0.98rem;
    line-height: 1.65;
    font-weight: 500;
}

.home-d2__rule {
    display: block;
    width: 48px;
    height: 1px;
    margin-top: 28px;
    background: var(--d2-blue);
    opacity: 0.7;
}

.home-d2__visual {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    background: #1c2b3a;
}

.home-d2__visual-media {
    position: absolute;
    inset: 0;
    background: var(--home-hero) center / cover no-repeat;
    filter: saturate(0.82) contrast(0.96) brightness(0.97);
}

.home-d2__visual-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(238, 242, 246, 0.82) 0%, rgba(238, 242, 246, 0.22) 14%, transparent 30%),
        linear-gradient(180deg, rgba(21, 36, 51, 0.08) 0%, transparent 35%, rgba(21, 36, 51, 0.18) 100%);
    pointer-events: none;
}

.home-d2__services {
    padding: clamp(52px, 7vw, 84px) 0 108px;
}

.home-d2__head {
    margin-bottom: 28px;
    max-width: 36rem;
}

.home-d2__head h2 {
    margin: 0 0 8px;
    font-family: var(--d2-display);
    font-size: clamp(1.7rem, 2.6vw, 2.05rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--d2-ink);
}

.home-d2__head p {
    margin: 0;
    color: var(--d2-muted);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

.home-d2__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--d2-line);
    border-bottom: 1px solid var(--d2-line);
    background: var(--d2-surface);
}

.home-d2__item {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) 34px;
    gap: 22px;
    align-items: center;
    padding: 18px 8px 18px 0;
    text-decoration: none !important;
    color: inherit !important;
    border-bottom: 1px solid var(--d2-line);
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.home-d2__item:last-child {
    border-bottom: none;
}

.home-d2__item:hover {
    background: linear-gradient(90deg, rgba(42, 98, 143, 0.04), transparent 55%);
    padding-left: 6px;
}

.home-d2__item-media {
    position: relative;
    width: 140px;
    height: 90px;
    overflow: hidden;
    background: #dde5ee;
    flex-shrink: 0;
}

.home-d2__item-media img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    filter: saturate(0.85);
    transition: transform 0.45s ease, filter 0.3s ease;
}

.home-d2__item:hover .home-d2__item-media img {
    transform: scale(1.03);
    filter: saturate(0.95);
}

.home-d2__item-body h3 {
    margin: 0 0 5px;
    font-family: var(--d2-font);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--d2-ink);
}

.home-d2__item-body p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--d2-muted);
    line-height: 1.45;
    font-weight: 500;
}

.home-d2__item-go {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--d2-blue);
    font-size: 0.72rem;
    opacity: 0.55;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.home-d2__item:hover .home-d2__item-go {
    opacity: 1;
    transform: translateX(3px);
}

@media (max-width: 900px) {
    .home-d2__hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .home-d2__copy {
        border-right: none;
        order: 1;
        padding: 36px 24px 40px;
    }
    .home-d2__visual {
        min-height: 46vh;
        order: 0;
    }
    .home-d2__visual-shade {
        background: linear-gradient(180deg, transparent 48%, rgba(240, 243, 247, 0.95) 100%);
    }
}

@media (max-width: 640px) {
    .home-d2__item {
        grid-template-columns: 100px minmax(0, 1fr) 24px;
        gap: 14px;
        padding: 14px 4px 14px 0;
    }
    .home-d2__item-media {
        width: 100px;
        height: 72px;
    }
    .home-d2__brand {
        font-size: clamp(2.1rem, 9vw, 2.6rem);
    }
}

/* ========== Design 3 — Mosaic ========== */
.home-d3 {
    font-family: var(--home-font);
    background: #0c1520;
    color: #e8eef5;
}

.home-d3__hero {
    position: relative;
    min-height: min(78vh, 640px);
    display: flex;
    align-items: flex-end;
    background: var(--home-hero) center / cover no-repeat;
}

.home-d3__hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(12, 21, 32, 0.25) 0%, rgba(12, 21, 32, 0.82) 100%),
        linear-gradient(90deg, rgba(12, 21, 32, 0.55) 0%, transparent 55%);
}

.home-d3__hero-inner {
    position: relative;
    z-index: 1;
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 56px;
}

.home-d3__brand {
    margin: 0 0 10px;
    font-family: var(--home-display);
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #7ec4ff;
}

.home-d3__hero-inner h1 {
    margin: 0 0 10px;
    font-family: var(--home-display);
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    max-width: 16ch;
    line-height: 1.12;
}

.home-d3__hero-inner > p {
    margin: 0 0 24px;
    color: rgba(232, 238, 245, 0.78);
    font-size: 1.05rem;
}

.home-d3__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    background: #2b7ac4;
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform .15s ease;
}

.home-d3__cta:hover { transform: translateY(-2px); }

.home-d3__mosaic-wrap {
    padding: 48px 0 24px;
    background: #0f1a28;
}

.home-d3__head {
    margin-bottom: 20px;
}

.home-d3__head h2 {
    margin: 0 0 6px;
    font-family: var(--home-display);
    font-size: 1.45rem;
    font-weight: 800;
}

.home-d3__head p {
    margin: 0;
    color: rgba(232, 238, 245, 0.55);
}

.home-d3__mosaic {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 160px;
    gap: 12px;
    align-items: stretch;
}

.home-d3__tile {
    position: relative;
    display: block !important;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 16px;
    text-decoration: none !important;
    color: #fff !important;
    background: #152031;
    box-sizing: border-box;
}

.home-d3__tile img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: cover;
    object-position: center 20%;
    display: block !important;
    transition: transform .35s ease;
}

.home-d3__tile:hover img { transform: scale(1.05); }

.home-d3__tile span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 14px 16px;
    background: linear-gradient(transparent, rgba(8, 14, 22, 0.88));
    display: flex;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
}

.home-d3__tile strong {
    font-family: var(--home-display);
    font-size: 1rem;
    font-weight: 800;
}

.home-d3__tile em {
    font-style: normal;
    font-size: 0.78rem;
    opacity: 0.75;
}

.home-d3__tile--1 { grid-column: span 3; grid-row: span 2; }
.home-d3__tile--2 { grid-column: span 3; grid-row: span 1; }
.home-d3__tile--3 { grid-column: span 3; grid-row: span 1; }
.home-d3__tile--4 { grid-column: span 2; grid-row: span 1; }
.home-d3__tile--5 { grid-column: span 2; grid-row: span 1; }
.home-d3__tile--6 { grid-column: span 2; grid-row: span 1; }

.home-d3__search-wrap {
    padding: 28px 0 100px;
    background: #0f1a28;
}

.home-d3__search-wrap .cs-search {
    background: #fff;
}

@media (max-width: 800px) {
    .home-d3__mosaic {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 140px;
    }
    .home-d3__tile--1,
    .home-d3__tile--2,
    .home-d3__tile--3,
    .home-d3__tile--4,
    .home-d3__tile--5,
    .home-d3__tile--6 {
        grid-column: span 2;
        grid-row: span 1;
    }
    .home-d3__tile--1 { grid-row: span 2; }
}

