:root {
    --bg: #f4f6f9;
    --bg-soft: #eef2f7;
    --bg-deep: #dfe6ef;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-strong: rgba(255, 255, 255, 0.94);
    --line: rgba(75, 95, 122, 0.14);
    --line-strong: rgba(75, 95, 122, 0.24);
    --text: #132033;
    --text-soft: #31455f;
    --muted: #60738c;
    --silver: #7f90a7;
    --accent: #295f9e;
    --accent-2: #c6934b;
    --accent-3: #7b8798;
    --shadow: 0 22px 60px rgba(26, 43, 66, 0.10);
    --shadow-soft: 0 14px 36px rgba(26, 43, 66, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans SC", sans-serif;
    background:
        radial-gradient(circle at top right, rgba(41, 95, 158, 0.12), transparent 24%),
        radial-gradient(circle at left bottom, rgba(198, 147, 75, 0.08), transparent 28%),
        linear-gradient(180deg, #fafbfd 0%, #f3f6fa 38%, #eef2f7 100%);
    color: var(--text);
}

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

.glass-nav {
    backdrop-filter: blur(18px);
    background: rgba(248, 250, 253, 0.76);
    border-bottom: 1px solid rgba(96, 115, 140, 0.12);
    box-shadow: 0 10px 30px rgba(24, 38, 58, 0.06);
}

.navbar.navbar-dark .navbar-nav .nav-link,
.navbar.navbar-dark .navbar-brand,
.navbar.navbar-dark .navbar-toggler {
    color: var(--text);
}

.navbar.navbar-dark .navbar-nav .nav-link:hover,
.navbar.navbar-dark .navbar-nav .nav-link:focus {
    color: var(--accent);
}

.navbar-toggler {
    border-color: rgba(19, 32, 51, 0.18);
}

.navbar-toggler-icon {
    filter: invert(1) grayscale(1) brightness(0.25);
}

.brand-mark {
    font-family: "Rajdhani", sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #4b79b6);
    border: none;
    color: #fff;
    box-shadow: 0 12px 30px rgba(41, 95, 158, 0.22);
}

.btn-accent:hover,
.btn-accent:focus {
    color: #fff;
    background: linear-gradient(135deg, #234f84, #446eaa);
}

.btn-outline-light {
    border-color: rgba(19, 32, 51, 0.18);
    color: var(--text);
    background: rgba(255, 255, 255, 0.52);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background: rgba(41, 95, 158, 0.08);
    color: var(--accent);
    border-color: rgba(41, 95, 158, 0.22);
}

.hero-section,
.subpage-hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-section::before,
.subpage-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg, rgba(248, 250, 253, 0.82) 10%, rgba(248, 250, 253, 0.52) 45%, rgba(248, 250, 253, 0.22) 100%);
}

.hero-content,
.subpage-hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    padding-top: 7rem;
    max-width: 760px;
}

.eyebrow,
.section-kicker,
.car-meta,
.news-date {
    display: inline-block;
    font-family: "Rajdhani", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--silver);
}

.hero-section h1,
.subpage-hero h1 {
    font-size: clamp(2.8rem, 7vw, 5.7rem);
    line-height: 0.96;
    font-weight: 800;
    margin: 1rem 0;
    color: #102033;
}

.hero-subtitle,
.subpage-hero p,
.richtext,
.news-card p,
.car-card p,
.site-footer p,
.footer-richtext {
    color: var(--muted);
    font-size: 1.03rem;
    line-height: 1.9;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.section {
    padding: 6rem 0;
}

.detail-main-section {
    padding-top: 9rem;
}

.section-dark {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 246, 250, 0.94));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin: 0.65rem 0 1.5rem;
    color: #132238;
}

.section-heading {
    margin-bottom: 2.2rem;
}

.about-visual-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1rem;
}

.visual-card {
    min-height: 180px;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(232, 238, 245, 0.78)),
        linear-gradient(135deg, rgba(41, 95, 158, 0.10), rgba(198, 147, 75, 0.08));
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border: 1px solid rgba(96, 115, 140, 0.14);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.visual-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(7, 15, 27, 0.18);
}

.visual-card-showroom {
    background-image:
        linear-gradient(180deg, rgba(10, 18, 28, 0.14), rgba(10, 18, 28, 0.42)),
        url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1200&q=80");
}

.visual-card-detail {
    background-image:
        linear-gradient(180deg, rgba(10, 18, 28, 0.10), rgba(10, 18, 28, 0.38)),
        url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=1200&q=80");
}

.visual-card-factory {
    background-image:
        linear-gradient(180deg, rgba(10, 18, 28, 0.12), rgba(10, 18, 28, 0.40)),
        url("https://images.unsplash.com/photo-1486496572940-2bb2341fdbdf?auto=format&fit=crop&w=1200&q=80");
}

.tall-card {
    min-height: 420px;
}

.small-card {
    min-height: 200px;
}

.wide-card {
    min-height: 200px;
    grid-column: 1 / span 2;
}

.car-card,
.news-card,
.news-text-card,
.panel-card,
.detail-panel,
.map-placeholder,
.news-row-card,
.contact-form,
.spec-table-wrap {
    background: linear-gradient(180deg, var(--panel-strong), var(--panel));
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.car-card,
.news-card,
.news-text-card {
    display: block;
    height: 100%;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.car-card:hover,
.news-card:hover,
.news-text-card:hover {
    transform: translateY(-8px);
    border-color: rgba(41, 95, 158, 0.24);
    box-shadow: 0 22px 48px rgba(41, 95, 158, 0.12);
}

.car-card img,
.news-card img,
.news-row-card img,
.detail-gallery img,
.article-cover {
    width: 100%;
    object-fit: cover;
}

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

.car-card-large img {
    height: 280px;
}

.car-card-body,
.news-card-body {
    padding: 1.5rem;
}

.car-card h3,
.news-card h3,
.news-text-card h3,
.news-row-card h3,
.detail-panel h3 {
    color: #132238;
}

.news-text-card .news-card-body {
    padding: 2rem 2.2rem;
}

.news-text-card h3 {
    margin: 0.55rem 0 0.85rem;
}

.news-text-card p {
    margin-bottom: 0;
}

.price-tag,
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(41, 95, 158, 0.08);
    color: var(--accent);
    font-size: 0.9rem;
    border: 1px solid rgba(41, 95, 158, 0.10);
}

.news-list-grid {
    display: grid;
    gap: 1.25rem;
}

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

.home-news-card .news-card-body {
    padding: 1.5rem 1.8rem;
}

.news-row-card {
    display: grid;
    grid-template-columns: 240px 1fr;
}

.news-row-card img {
    height: 100%;
}

.news-row-card div {
    padding: 1.5rem;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.models-page-section {
    padding-top: 8.7rem;
}

.models-filter-panel {
    padding: 1.4rem;
    border-radius: 28px;
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 246, 251, 0.92)),
        linear-gradient(135deg, rgba(41, 95, 158, 0.06), rgba(198, 147, 75, 0.06));
    box-shadow: var(--shadow-soft);
}

.models-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.models-filter-title {
    margin: 0.45rem 0 0;
    font-size: clamp(1.3rem, 3vw, 2rem);
    color: #132238;
}

.models-filter-count {
    color: var(--silver);
    font-family: "Rajdhani", sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.filter-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.65);
    min-height: 52px;
    text-align: center;
}

.filter-chip.active {
    background: rgba(41, 95, 158, 0.10);
    color: var(--accent);
    border-color: rgba(41, 95, 158, 0.22);
}

.subpage-hero-banner {
    min-height: 72vh;
}

.detail-carousel-wrap,
.detail-carousel,
.detail-panel-match {
    height: 100%;
}

.detail-carousel {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: linear-gradient(180deg, #f7f9fc, #edf2f7);
}

.detail-carousel .carousel-inner,
.detail-carousel .carousel-item {
    height: 100%;
    min-height: 560px;
}

.detail-carousel .carousel-item img,
.article-cover {
    border-radius: 24px;
    min-height: 320px;
    box-shadow: var(--shadow-soft);
    height: 100%;
    object-fit: cover;
}

.detail-carousel .carousel-item img {
    border-radius: 0;
}

.detail-control {
    width: 12%;
}

.detail-control .carousel-control-prev-icon,
.detail-control .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(19, 32, 51, 0.42);
    background-size: 45%;
}

.detail-indicators {
    margin-bottom: 1.25rem;
}

.detail-indicators [data-bs-target] {
    width: 2.4rem;
    height: 0.28rem;
    border-radius: 999px;
    border: 0;
    background-color: rgba(255, 255, 255, 0.52);
}

.detail-panel-match {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    min-height: 560px;
}

.detail-label {
    display: inline-block;
    margin-bottom: 0.85rem;
    font-family: "Rajdhani", sans-serif;
    letter-spacing: 0.14em;
    color: var(--silver);
}

.detail-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1;
    margin-bottom: 0.9rem;
    color: #102033;
}

.detail-subtitle {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.detail-panel,
.spec-table-wrap,
.contact-form,
.panel-card {
    padding: 2rem;
}

.price-block {
    font-family: "Rajdhani", sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.highlight-list {
    padding-left: 1.2rem;
    color: var(--text-soft);
}

.detail-360-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.detail-360-card {
    padding: 1.2rem;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(243, 247, 251, 0.98));
    box-shadow: var(--shadow-soft);
}

.detail-360-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.detail-360-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(41, 95, 158, 0.1);
    color: var(--accent);
    font-family: "Rajdhani", sans-serif;
    letter-spacing: 0.12em;
}

.detail-360-frame,
.detail-360-empty {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
}

.detail-360-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(41, 95, 158, 0.28);
    background:
        radial-gradient(circle at top, rgba(41, 95, 158, 0.08), transparent 58%),
        linear-gradient(180deg, rgba(233, 240, 247, 0.8), rgba(248, 250, 252, 0.96));
    color: var(--silver);
    text-align: center;
    padding: 1.5rem;
}

.spec-table {
    display: grid;
    gap: 1rem;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--text-soft);
}

.spec-row strong {
    color: var(--text);
}

.map-placeholder {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--silver);
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--accent-2);
}

.form-control,
.form-select {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(96, 115, 140, 0.18);
    color: var(--text);
    min-height: 48px;
}

.form-control:focus,
.form-select:focus {
    background: #fff;
    color: var(--text);
    border-color: rgba(41, 95, 158, 0.42);
    box-shadow: 0 0 0 0.2rem rgba(41, 95, 158, 0.10);
}

.site-footer {
    padding: 4rem 0;
    border-top: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(239, 243, 248, 0.92), rgba(231, 237, 244, 0.98));
}

.site-footer h3,
.site-footer h4 {
    color: #132238;
}

.flash-stack {
    padding-top: 6rem;
    position: relative;
    z-index: 20;
}

.text-link {
    color: var(--accent);
}

.text-link:hover {
    color: #1e4e84;
}

.news-detail-hero {
    max-width: 860px;
    padding-top: 8.5rem;
    padding-bottom: 3.5rem;
}

.news-detail-meta {
    margin-top: 1rem;
    color: var(--silver);
    font-family: "Rajdhani", sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.news-detail-title {
    font-size: clamp(2rem, 4.5vw, 3.6rem) !important;
    line-height: 1.18 !important;
    margin: 0.8rem 0 0;
    max-width: 820px;
    text-wrap: balance;
}

.article-wrap {
    max-width: 860px;
}

.article-header {
    margin-bottom: 1.5rem;
}

.news-detail-section {
    padding-top: 9rem;
}

.article-wrap .richtext {
    background: linear-gradient(180deg, var(--panel-strong), var(--panel));
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 2rem 2.2rem;
    box-shadow: var(--shadow-soft);
}

.article-wrap .richtext > *:last-child {
    margin-bottom: 0;
}

.detail-pager {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.detail-pager-item {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.2rem 1.4rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow-soft);
}

.detail-pager-item:hover {
    transform: translateY(-4px);
    border-color: rgba(41, 95, 158, 0.22);
}

.detail-pager-item strong {
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.6;
}

.detail-pager-label {
    color: var(--silver);
    font-family: "Rajdhani", sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.detail-pager-item.is-disabled {
    opacity: 0.62;
    pointer-events: none;
}

.news-pager {
    margin-top: 2.4rem;
}

@media (max-width: 991px) {
    .hero-section,
    .subpage-hero {
        min-height: 65vh;
    }

    .models-page-section {
        padding-top: 7.3rem;
    }

    .models-filter-panel {
        padding: 1.1rem;
        border-radius: 22px;
    }

    .filter-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .news-row-card {
        grid-template-columns: 1fr;
    }

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

    .wide-card {
        grid-column: auto;
    }

    .detail-carousel .carousel-inner,
    .detail-carousel .carousel-item {
        min-height: 420px;
    }

    .detail-panel-match {
        min-height: 420px;
    }

    .news-detail-hero {
        padding-top: 7rem;
    }

    .detail-pager {
        grid-template-columns: 1fr;
    }

    .detail-360-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 4rem 0;
    }

    .detail-main-section {
        padding-top: 6.5rem;
    }

    .news-detail-section {
        padding-top: 6.5rem;
    }

    .hero-content {
        padding-top: 6.5rem;
    }

    .spec-row {
        flex-direction: column;
    }

    .detail-carousel .carousel-inner,
    .detail-carousel .carousel-item {
        min-height: 300px;
    }

    .detail-panel-match {
        min-height: auto;
    }

    .news-detail-title {
        line-height: 1.24 !important;
    }

    .article-wrap .richtext {
        padding: 1.4rem 1.2rem;
        border-radius: 20px;
    }
}
