:root {
    --bg: #17181b;
    --bg-soft: #202228;
    --panel: #2a2d33;
    --line: #43464d;
    --text: #f2f4f7;
    --muted: #b7bcc6;
    --primary-color: #f2a915;
    --primary-hover: #ffbe3a;
    --success: #25d366;
}

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

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at 8% -5%, rgba(242, 169, 21, 0.14), transparent 24%),
        radial-gradient(circle at 95% -2%, rgba(90, 104, 140, 0.15), transparent 22%),
        var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: inherit;
}

main {
    min-height: 60vh;
    padding: 0 0 48px;
}

.home-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.container-fluid {
    max-width: 1640px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.topline {
    background: #131417;
    border-bottom: 1px solid #2b2e34;
    font-size: 14px;
    color: var(--muted);
}

.topline-inner {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.topline-left,
.topline-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.topline a {
    text-decoration: none;
}

.topline a:hover {
    color: var(--primary-color);
}

.topline-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--muted);
}

.topline-contact:hover {
    color: var(--primary-color);
}

.topline-icon-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--muted);
}

.topline-icon-link:hover {
    color: var(--primary-color);
}

.header-icon-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 999px;
    color: #dbe0e9;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.header-icon-link:hover {
    color: var(--primary-color);
    border-color: rgba(242, 169, 21, 0.45);
    background: rgba(242, 169, 21, 0.08);
}

.topline-lang {
    color: var(--muted);
    font-size: 13px;
}

.custom-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(23, 24, 27, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #2f3238;
}

.header-content {
    min-height: 86px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
}

.logo {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 48px;
    line-height: 0.9;
    letter-spacing: 0.05em;
    font-weight: 900;
    color: #f5f6f8;
}

.logo span {
    color: var(--primary-color);
}

/* New logo block */
.logo-block {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-car-svg {
    width: 120px;
    height: 53px;
    flex-shrink: 0;
}

.logo-text-block {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #f5f6f8;
}

.logo-accent {
    color: var(--primary-color);
}

.logo-sub {
    font-size: 11px;
    font-weight: 500;
    color: #6f7480;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
}

.nav-dropdown-link {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.header-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    color: #dbe0e9;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 4px;
    transition: color 0.2s;
}

.header-search-btn:hover {
    color: var(--primary-color);
}

.header-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #dbe0e9;
    text-decoration: none;
    transition: color 0.2s;
}

.header-cart-link:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-color);
    color: #111;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

.header-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    min-width: 0;
}

.header-nav a {
    text-decoration: none;
    color: #e6e8ec;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 2px;
    border-bottom: 2px solid transparent;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: 0;
    color: #dbe0e9;
    font-size: 14px;
}

.header-account-links,
.header-auth-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    min-width: 0;
}

.header-auth-links {
    justify-content: flex-end;
    gap: 10px;
}

.header-account-links svg,
.header-icon-link svg {
    width: 22px;
    height: 22px;
}

.header-tools .topline-icon-link {
    white-space: nowrap;
    font-size: 13px;
}

.header-wa-link {
    display: none;
}

.section-title {
    color: #f1f3f6;
    margin-bottom: 30px;
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid rgba(242, 169, 21, 0.45);
    padding-bottom: 8px;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
    color: #151515;
    font-weight: 800;
    border-radius: 10px;
    padding: 10px 18px;
    transition: all 0.25s;
}

.btn-primary:hover {
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(242, 169, 21, 0.25);
}

.btn-outline-primary {
    color: #f2c25e;
    border-color: rgba(242, 169, 21, 0.4);
    background: rgba(31, 33, 39, 0.92);
    border-radius: 10px;
    font-weight: 700;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #151515;
}

.card {
    border: 1px solid #3f434a;
    border-radius: 20px;
    background: #262a30;
    transition: all 0.25s;
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
}

.price {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
}

.badge-in-stock {
    background-color: #1f8a45;
}

.badge-on-order {
    background-color: #bf7e00;
    color: #111;
}

.badge-unavailable {
    background-color: #a22a2a;
}

.site-footer {
    background: #303239;
    border-top: 1px solid #4a4e57;
    color: #e9ecf2;
    padding: 52px 0 22px;
    margin-top: 66px;
}

main.home-main + .site-footer {
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.footer-grid > section {
    min-width: 0;
}

.footer-logo {
    font-size: 30px;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.9;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-logo-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    min-width: 0;
}

.footer-logo-car {
    width: 64px;
    height: 28px;
    flex-shrink: 0;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #eceff3;
    font-size: 14px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.footer-contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary-color);
}

.footer-sub,
.footer-lang {
    color: var(--muted);
}

.footer-social {
    display: flex;
    gap: 10px;
    margin: 16px 0;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #6a6f79;
    border-radius: 8px;
    text-decoration: none;
    color: #f2f5f9;
}

.site-footer h5 {
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    display: grid;
    gap: 8px;
    padding-left: 0;
    min-width: 0;
}

.footer-links a,
.footer-contact-list a {
    color: #eceff3;
    text-decoration: none;
    font-size: 17px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-links a:hover,
.footer-contact-list a:hover {
    color: var(--primary-color);
}

.footer-contact-list {
    display: grid;
    gap: 9px;
    font-size: 18px;
    min-width: 0;
}

.footer-wa-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.14);
    border: 1px solid rgba(37, 211, 102, 0.36);
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid #5b5f68;
    padding-top: 18px;
    margin-top: 22px;
    text-align: left;
    color: #d2d6de;
    font-size: 18px;
}

.whatsapp-btn {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 58px;
    height: 58px;
    background-color: var(--success);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.36);
    transition: all 0.25s;
    z-index: 999;
}

.whatsapp-btn:hover {
    transform: scale(1.08);
    color: #fff;
}

.no-result {
    text-align: center;
    padding: 44px 20px;
    color: #a4aab5;
}

.no-result h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #e5e9f1;
}

.legal-hero {
    margin: 28px 0 22px;
    padding: 28px;
    border: 1px solid #3d4148;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(242, 169, 21, 0.16), transparent 28%),
        linear-gradient(145deg, #23262d 0%, #1d1f24 100%);
}

.legal-hero-badge,
.legal-note-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(242, 169, 21, 0.14);
    border: 1px solid rgba(242, 169, 21, 0.32);
    color: #ffd07f;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.legal-hero-title {
    margin: 16px 0 12px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.05;
    font-weight: 900;
    color: #fff;
}

.legal-hero-text,
.legal-note-card p {
    max-width: 840px;
    color: #c4cad5;
    font-size: 16px;
}

.legal-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.legal-updated {
    margin-top: 18px;
    color: #9098a6;
    font-size: 13px;
}

.legal-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.legal-card,
.legal-note-card {
    min-width: 0;
    padding: 22px;
    border-radius: 20px;
    border: 1px solid #3b4048;
    background: linear-gradient(145deg, #282c33 0%, #23262d 100%);
}

.legal-card h2,
.legal-note-card h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.legal-list {
    margin: 0;
    padding-left: 18px;
    color: #d8dde6;
    display: grid;
    gap: 10px;
}

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1100;
}

.cookie-banner-inner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    border-radius: 22px;
    border: 1px solid rgba(242, 169, 21, 0.28);
    background: linear-gradient(145deg, rgba(34, 37, 43, 0.98), rgba(26, 28, 33, 0.98));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.cookie-banner-copy {
    min-width: 0;
}

.cookie-banner-title {
    color: #fff;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    margin-bottom: 8px;
}

.cookie-banner-copy p {
    margin: 0;
    color: #bcc3cf;
    font-size: 14px;
    max-width: 820px;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-accept-btn {
    min-height: 52px;
    padding: 0 28px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #f2a915 0%, #ffbf42 100%);
    color: #17181b;
    font-size: 18px;
    font-weight: 800;
}

.cookie-policy-link {
    color: #ffe1a6;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 225, 166, 0.4);
}

.cookie-policy-link:hover {
    color: #fff0cf;
    border-bottom-color: rgba(255, 240, 207, 0.7);
}

@media (max-width: 1100px) {
    .header-content {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px 0;
    }

    .header-nav {
        justify-content: start;
    }

    .header-tools {
        justify-content: start;
        flex-wrap: wrap;
    }

    .header-auth-links {
        justify-content: start;
        flex-wrap: wrap;
    }

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

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 1360px) {
    .header-content {
        gap: 14px;
    }

    .header-nav {
        gap: 12px;
    }

    .header-nav a {
        font-size: 13px;
        letter-spacing: 0.03em;
    }

    .header-tools .topline-icon-link {
        font-size: 12px;
    }

    .header-auth-links {
        gap: 8px;
    }

    .site-footer h5 {
        font-size: 24px;
    }

    .footer-links a,
    .footer-contact-list a,
    .footer-contact-list {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .container-fluid {
        padding-left: 16px;
        padding-right: 16px;
    }

    .topline-inner {
        min-height: 40px;
    }

    .topline-right {
        display: none;
    }

    .logo,
    .footer-logo {
        font-size: 38px;
    }

    .header-nav {
        gap: 12px;
    }

    .header-nav a {
        font-size: 12px;
        padding: 6px 0;
    }

    .header-tools {
        gap: 10px;
        flex-wrap: wrap;
    }

    .header-account-links,
    .header-auth-links {
        gap: 8px;
        flex-wrap: wrap;
    }

    .section-title {
        font-size: 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-footer h5 {
        font-size: 24px;
    }

    .whatsapp-btn {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .legal-hero {
        margin-top: 18px;
        padding: 22px 18px;
        border-radius: 20px;
    }

    .legal-card,
    .legal-note-card {
        padding: 18px;
        border-radius: 18px;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-banner-inner {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .cookie-banner-title {
        font-size: 20px;
    }

    .cookie-accept-btn {
        width: 100%;
        min-height: 48px;
        font-size: 16px;
    }

    .cookie-policy-link {
        font-size: 15px;
    }
}
