:root {
    --bg-dark: #0a0f1c;
    --bg-darker: #070b14;
    --bg-card: #121a2c;
    --bg-card-alt: #0f1526;
    --accent: #2f6feb;
    --accent-light: #4f8bff;
    --text-light: #eef1f8;
    --text-muted: #9aa5ba;
    --border-soft: rgba(255, 255, 255, 0.08);
}

body {
    font-family: "Montserrat", sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
}

#hero,
#about,
#directions,
#advantages,
#contacts {
    scroll-margin-top: 140px;
}

a {
    text-decoration: none;
}

body.site .text-muted {
    color: var(--text-muted) !important;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 11, 20, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
    padding: 0.25rem 0;
}

@media (max-width: 991.98px) {
    .site-header .navbar-collapse.show,
    .site-header .navbar-collapse.collapsing {
        background: var(--bg-darker);
        margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -0.5);
        padding: 0.5rem calc(var(--bs-gutter-x, 1.5rem) * 0.5) 1rem;
        border-top: 1px solid var(--border-soft);
    }
}

.site-header .navbar {
    padding-top: 0;
    padding-bottom: 0;
}

.brand-logo {
    width: 200px;
    max-width: 55vw;
    height: auto;
    display: block;
}

.brand-text {
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--text-light);
    font-size: 1.1rem;
}

.site-header .nav-link {
    color: var(--text-light);
    font-weight: 500;
    opacity: 0.85;
}

.site-header .nav-link:hover {
    opacity: 1;
    color: var(--accent-light);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    border: none;
    font-weight: 600;
    color: #fff;
}

.btn-accent:hover {
    filter: brightness(1.1);
    color: #fff;
}

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: clamp(560px, 82vh, 780px);
    display: flex;
    align-items: center;
    padding: 7rem 0 4rem;
    background: var(--bg-dark);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    animation: heroImageZoom 1.8s ease-out both;
}

@keyframes heroImageZoom {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}

.hero-anim {
    opacity: 0;
    animation: heroFadeUp .9s ease both;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--bg-dark) 0%, var(--bg-dark) 22%, rgba(10, 15, 28, 0.92) 38%, rgba(10, 15, 28, 0.55) 55%, rgba(10, 15, 28, 0.1) 72%, transparent 85%),
        linear-gradient(180deg, rgba(10, 15, 28, 0.5) 0%, transparent 25%, transparent 75%, var(--bg-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.15;
    font-weight: 800;
    text-transform: uppercase;
}

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

.hero-text {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin-top: 1rem;
}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 6rem 0 3rem;
    }

    .hero-bg-gradient {
        background:
            linear-gradient(180deg, rgba(10, 15, 28, 0.55) 0%, rgba(10, 15, 28, 0.88) 55%, var(--bg-dark) 100%),
            linear-gradient(90deg, rgba(10, 15, 28, 0.55), rgba(10, 15, 28, 0.55));
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

.feature-mini {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.feature-icon {
    color: var(--accent-light);
    display: inline-flex;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 2.4rem;
    height: 2.4rem;
}

/* ---------- Section titles ---------- */
.section-title {
    font-size: 1.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ---------- Directions ---------- */
.directions-section {
    padding: 5rem 0;
    background: var(--bg-darker);
}

.direction-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: var(--text-light);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.direction-card:hover {
    color: var(--text-light);
    transform: translateY(-4px);
    border-color: var(--accent);
}

.direction-card__image {
    height: 170px;
    overflow: hidden;
    background: #000;
}

.direction-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.direction-card__body {
    padding: 1.25rem 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.direction-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.direction-card__text {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex: 1;
}

.direction-card__link {
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.9rem;
}

.direction-card__link:hover {
    color: #fff;
}

/* ---------- Advantages ---------- */
.advantages-section {
    padding: 5rem 0;
}

.advantage-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
}

.advantage-icon svg {
    width: 28px;
    height: 28px;
}

.advantage-title {
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

.advantage-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

@media (min-width: 768px) {
    .advantage-item:not(:last-child) {
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }
}

/* ---------- About ---------- */
.about-section {
    position: relative;
    overflow: hidden;
    min-height: clamp(480px, 70vh, 680px);
    display: flex;
    align-items: center;
    padding: 5rem 0;
    background: var(--bg-darker);
}

.about-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.about-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    transform: translateX(7%);
}

.about-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--bg-darker) 0%, var(--bg-darker) 22%, rgba(7, 11, 20, 0.92) 38%, rgba(7, 11, 20, 0.55) 55%, rgba(7, 11, 20, 0.1) 72%, transparent 85%),
        linear-gradient(180deg, rgba(7, 11, 20, 0.4) 0%, transparent 25%, transparent 75%, var(--bg-darker) 100%);
}

.about-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

.about-text {
    color: var(--text-muted);
    margin: 1.25rem 0 1.5rem;
    max-width: 520px;
}

@media (max-width: 991.98px) {
    .about-section {
        min-height: auto;
        padding: 4rem 0;
    }

    .about-bg-gradient {
        background:
            linear-gradient(180deg, rgba(7, 11, 20, 0.55) 0%, rgba(7, 11, 20, 0.88) 55%, var(--bg-darker) 100%),
            linear-gradient(90deg, rgba(7, 11, 20, 0.55), rgba(7, 11, 20, 0.55));
    }

    .about-content {
        max-width: 100%;
    }
}

/* ---------- Partners ---------- */
.partners-section {
    padding: 4.5rem 0;
    background: #f4f6fb;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.partner-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.partner-logo-img {
    width: 88%;
    height: auto;
    filter: grayscale(1) contrast(1.1);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.partner-item:hover .partner-logo-img,
.partner-link:hover .partner-logo-img {
    opacity: 1;
    filter: grayscale(0.4) contrast(1.1);
}

@media (min-width: 768px) {
    .partner-col {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

.partner-logo-text {
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #24304a;
    font-size: 1.5rem;
}

/* ---------- Contacts / CTA ---------- */
.contacts-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0d1730, #0a0f1c);
}

.contacts-text {
    color: var(--text-muted);
}

.btn-contact {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    color: var(--text-light);
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 0.6rem;
}

.btn-contact:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}


/* ---------- Footer ---------- */
.site-footer {
    padding: 4rem 0 1.5rem;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-soft);
}

.footer-heading {
    color: var(--text-light);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 72px;
    width: auto;
    display: block;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a, .footer-links {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.social-icon {
    color: var(--text-muted);
    border: 1px solid var(--border-soft);
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
    font-size: 0.8rem;
}

.social-icon:hover {
    color: #fff;
    border-color: var(--accent);
}

.footer-divider {
    border-color: var(--border-soft);
}

.footer-bottom {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--text-muted);
}

/* ---------- Scroll-reveal animations ---------- */
.reveal {
    opacity: 0;
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.reveal-up {
    transform: translateY(32px);
}

.reveal.reveal-left {
    transform: translateX(-48px);
}

.reveal.reveal-right {
    transform: translateX(48px);
}

.reveal.reveal-zoom {
    transform: scale(0.88);
}

.reveal.reveal-pop {
    transform: scale(0.6);
}

.reveal.is-visible {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .hero-anim,
    .hero-bg-image {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Direction detail page ---------- */
.detail-breadcrumbs {
    padding: 1rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-soft);
}

.breadcrumbs-nav a {
    color: var(--text-muted);
}

.breadcrumbs-nav a:hover {
    color: var(--accent-light);
}

.breadcrumbs-nav span {
    color: var(--text-light);
}

.detail-hero {
    padding: 3rem 0;
    background: var(--bg-darker);
}

.detail-badge {
    display: inline-block;
    background: rgba(47, 111, 235, 0.15);
    color: var(--accent-light);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.detail-title {
    font-size: 2.2rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.detail-lead {
    color: var(--text-muted);
}

.detail-main-image img {
    width: 100%;
    border-radius: 1rem;
    object-fit: cover;
    max-height: 420px;
}

.detail-gallery {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.detail-gallery__thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    overflow: hidden;
    background: none;
    width: 76px;
    height: 60px;
    cursor: pointer;
}

.detail-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-gallery__thumb.active,
.detail-gallery__thumb:hover {
    border-color: var(--accent);
}

.detail-section {
    padding: 3rem 0;
    border-top: 1px solid var(--border-soft);
    background: var(--bg-dark);
}

.detail-specs-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 1.5rem;
    border: 1px solid var(--border-soft);
    border-radius: 0.75rem;
    overflow: hidden;
}

.detail-specs-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-soft);
    border-right: 1px solid var(--border-soft);
}

.detail-specs-label {
    color: var(--text-muted);
}

.detail-specs-value {
    font-weight: 600;
    text-align: right;
}

.model-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.model-tab {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    color: var(--text-light);
    padding: 0.6rem 1.3rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
}

.model-tab:hover {
    border-color: var(--accent);
}

.model-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.model-panel {
    margin-top: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    padding: 1.5rem;
}

.model-panel__image {
    width: 100%;
    border-radius: 0.75rem;
    object-fit: cover;
}

.model-panel__description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
    white-space: pre-line;
}

.detail-description {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 800px;
    line-height: 1.7;
    white-space: pre-line;
}

.detail-feature {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.detail-feature__icon {
    color: var(--accent-light);
    flex-shrink: 0;
}

.detail-feature__icon svg {
    width: 1.6rem;
    height: 1.6rem;
}

.detail-feature__text {
    color: var(--text-light);
    font-size: 0.9rem;
}

.detail-cta__box {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ---------- Lead modal ---------- */
.lead-modal .modal-content {
    background: var(--bg-card);
    color: var(--text-light);
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
}

.lead-modal .modal-header {
    border-bottom: 1px solid var(--border-soft);
}

.lead-modal .modal-title {
    color: var(--text-light);
    font-weight: 700;
}

.lead-modal .form-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.lead-modal .form-control {
    background: var(--bg-dark);
    border: 1px solid var(--border-soft);
    color: var(--text-light);
}

.lead-modal .form-control:focus {
    background: var(--bg-dark);
    color: var(--text-light);
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(47, 111, 235, 0.25);
}

.lead-modal .form-control::placeholder {
    color: var(--text-muted);
}

.lead-form-success__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto;
    border-radius: 50%;
    background: rgba(47, 111, 235, 0.15);
    color: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

/* ---------- Admin panel ---------- */
body.admin {
    background: #f4f6fb;
    color: #1c2333;
}

.admin-sidebar {
    background: var(--bg-dark);
    min-height: 100vh;
    color: #fff;
}

.admin-sidebar .nav-link {
    color: var(--text-muted);
}

.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0.5rem;
}

.admin-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
}

.admin-login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    padding: 2.5rem;
    width: 100%;
    max-width: 380px;
    color: var(--text-light);
}
