/* Homepage v2 — isolated from classic homepage assets.
   Global resets are scoped so WP header / auth modal stay intact. */

:root {
    --color-primary: #10274d;
    --color-primary-dark: #0c203f;
    --color-white: #ffffff;
    --color-text: #142746;
    --color-text-light: #6c7480;
    --color-border: #e4e7eb;
    --color-background: #f7f7f6;
    --container-width: 1320px;
    --transition: 0.25s ease;
}

.mk-homepage-v2,
.mk-homepage-v2-footer {
    font-family: "IRANYekan", "IRANYekanFaNum", "Vazirmatn", sans-serif;
    color: var(--color-text);
    background-color: var(--color-white);
}

.mk-homepage-v2 {
    line-height: normal;
}

.mk-homepage-v2 h1,
.mk-homepage-v2 h2,
.mk-homepage-v2 h3,
.mk-homepage-v2 h4,
.mk-homepage-v2 h5,
.mk-homepage-v2 h6 {
    margin: 0;
    padding: 0;
}

.mk-homepage-v2 p,
.mk-homepage-v2 ul,
.mk-homepage-v2 ol,
.mk-homepage-v2 figure,
.mk-homepage-v2 blockquote {
    margin: 0;
    padding: 0;
}

.mk-homepage-v2 ul,
.mk-homepage-v2 ol {
    list-style: none;
}

.mk-homepage-v2 *,
.mk-homepage-v2-footer * {
    box-sizing: border-box;
}

/* Weak resets: must not beat section button/link/image rules. */
@layer mk-hpv2-reset {
    .mk-homepage-v2 a,
    .mk-homepage-v2-footer a {
        color: inherit;
        text-decoration: none;
    }

    .mk-homepage-v2 button {
        font-family: inherit;
        border: none;
        background: none;
        cursor: pointer;
    }

    .mk-homepage-v2 img,
    .mk-homepage-v2-footer img {
        display: block;
        max-width: 100%;
        height: auto;
    }
}

.mk-homepage-v2 .container,
.mk-homepage-v2-footer .container {
    width: min(calc(100% - 48px), var(--container-width));
    margin-inline: auto;
}

.mk-homepage-v2 {
    overflow-x: hidden;
}



/* ========================================
HERO SECTION (video background)
======================================== */

.hero {
    --hero-height: min(92vh, 900px);
    --hero-height: min(92svh, 900px);

    position: relative;

    min-height: var(--hero-height);

    overflow: hidden;

    background: #0b1220;
}

.hero--video {
    display: flex;
    align-items: flex-start;
}



/* ========================================
HERO BACKGROUND
======================================== */

.hero__background {
    position: absolute;

    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 0;

    contain: layout paint style;

    transform: translateZ(0);
}

.hero__bg-image,
.hero__bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
}

.hero__bg-image {
    z-index: 0;
}

.hero__bg-video {
    z-index: 1;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero__bg-video.is-failed {
    display: none;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(
            105deg,
            rgba(8, 14, 28, 0.82) 0%,
            rgba(8, 14, 28, 0.55) 42%,
            rgba(8, 14, 28, 0.28) 100%
        );
}



/* ========================================
HERO WRAPPER
======================================== */

.hero__wrapper {
    position: relative;

    z-index: 2;

    min-height: var(--hero-height);

    display: flex;

    align-items: flex-start;

    justify-content: flex-start;

    /* Keep copy/CTAs close to the header */
    padding: 20px 0 80px;
}



/* ========================================
HERO CONTENT
======================================== */

.hero__content {
    width: min(100%, 640px);

    padding-right: 20px;

    padding-top: 250px;

    z-index: 2;
}



/* ========================================
HERO TITLE
======================================== */

.hero__title {
    margin-bottom: 14px;

    font-size: 48px;

    font-weight: 700;

    line-height: 1.55;

    color: #ffffff;

    letter-spacing: -1px;

    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}



/* ========================================
HERO DESCRIPTION
======================================== */

.hero__description {
    margin-bottom: 28px;

    font-size: 15px;

    line-height: 2;

    color: rgba(255, 255, 255, 0.88);
}



/* ========================================
HERO ACTIONS
======================================== */

.hero__actions {
    display: flex;

    align-items: center;

    gap: 16px;
    margin-top: 25px;
}


.hero__button {
    width: 210px;

    height: 64px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 24px;

    border-radius: 8px;

    font-size: 15px;

    font-weight: 400;

    transition:
        background-color var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}


.hero__button i {
    font-size: 13px;
}



/* ========================================
PRIMARY HERO BUTTON
======================================== */

.hero__button--primary,
.hero__button--primary:link,
.hero__button--primary:visited {
    color: #ffffff;

    background-color: var(--color-primary);
}


.hero__button--primary:hover,
.hero__button--primary:focus {
    color: #ffffff;

    background-color: var(--color-primary-dark);

    transform: translateY(-2px);
}



/* ========================================
SECONDARY HERO BUTTON
======================================== */

.hero__button--secondary,
.hero__button--secondary:link,
.hero__button--secondary:visited {
    color: #ffffff;

    background-color: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.55);
}


.hero__button--secondary:hover,
.hero__button--secondary:focus {
    color: #ffffff;

    background-color: rgba(255, 255, 255, 0.16);
}



/* ========================================
BRANDS SECTION
======================================== */

.brands {
    padding: 24px 0 45px;

    background-color: var(--color-white);
}



/* ========================================
BRAND TABS
======================================== */

.brands__tabs {
    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 10px;

    margin-bottom: 34px;

    padding-right: 30px;
}


.brands__tab {
    min-width: 120px;

    height: 40px;

    padding: 0 20px;

    border: 1px solid #e0e3e7;

    border-radius: 8px;

    color: #6c7480;

    background-color: #ffffff;

    font-size: 12px;

    cursor: pointer;

    transition:
        background-color var(--transition),
        color var(--transition),
        border-color var(--transition);
}


.brands__tab:hover {
    color: #6c7480;

    background-color: #ffffff;

    border-color: #aeb6c0;
}


.brands__tab--active,
.brands__tab--active:hover {
    color: #ffffff;

    background-color: var(--color-primary);

    border-color: var(--color-primary);
}



/* ========================================
BRANDS SLIDER WRAPPER
======================================== */

.brands__slider-wrapper {
    position: relative;

    padding: 0 34px;
}


.brands-swiper {
    width: 100%;

    overflow: hidden;

    padding: 2px;
}



/* ========================================
BRAND CARD
======================================== */

.brand-card {
    height: 155px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 14px;

    padding: 18px 12px;

    border: 1px solid #e3e5e8;

    border-radius: 8px;

    background-color: #ffffff;

    transition:
        border-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}


.brand-card:hover {
    transform: translateY(-3px);

    border-color: #c8cdd4;

    box-shadow:
        0 8px 20px
        rgba(16, 39, 77, 0.06);
}



/* ========================================
BRAND LOGO
======================================== */

.brand-card__logo {
    width: 78px;

    height: 65px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.brand-card__logo img {
    width: 100%;

    height: 100%;

    object-fit: contain;
}



/* ========================================
BRAND NAME
======================================== */

.brand-card__name {
    font-size: 12px;

    color: #3f4957;

    white-space: nowrap;
}



/* ========================================
BRANDS NAVIGATION
======================================== */

.brands__nav {
    position: absolute;

    top: 50%;

    z-index: 5;

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    transform: translateY(-50%);

    border-radius: 50%;

    color: #596474;

    background-color: #ffffff;

    border: 1px solid #e0e3e7;

    box-shadow:
        0 4px 12px
        rgba(16, 39, 77, 0.08);

    transition:
        color var(--transition),
        background-color var(--transition);
}


.brands__nav:hover {
    color: #ffffff;

    background-color: var(--color-primary);
}


.brands__nav--prev {
    right: 0;
}


.brands__nav--next {
    left: 0;
}


.brands__nav i {
    font-size: 12px;
}



/* ========================================
RESPONSIVE
======================================== */

@media (max-width: 1200px) {

    .hero__title {
        font-size: 42px;
    }


    .hero__content {
        padding-right: 0;
    }


    .hero__button {
        width: 190px;
    }

}



@media (max-width: 992px) {

    .hero {
        --hero-height: min(78vh, 720px);
        --hero-height: min(78svh, 720px);
    }


    .hero__wrapper {
        padding: 16px 0 56px;

        justify-content: center;
    }


    .hero__content {
        width: 100%;

        max-width: 100%;

        padding-right: 0;

        text-align: center;
    }


    .hero__overlay {
        background:
            linear-gradient(
                180deg,
                rgba(8, 14, 28, 0.78) 0%,
                rgba(8, 14, 28, 0.55) 100%
            );
    }


    .hero__actions {
        justify-content: center;
        flex-wrap: wrap;
    }

}



@media (max-width: 768px) {

    .mk-homepage-v2 .container,
    .mk-homepage-v2-footer .container {
        width: min(
            calc(100% - 32px),
            var(--container-width)
        );
    }


    .hero__title {
        font-size: 34px;
    }


    .hero__description {
        font-size: 13px;
    }


    .brands__tabs {
        flex-wrap: wrap;

        justify-content: center;

        padding-right: 0;
    }


    .brands__slider-wrapper {
        padding: 0 25px;
    }


    .brand-card {
        height: 140px;
    }

}



@media (max-width: 480px) {

    .hero {
        --hero-height: min(70vh, 620px);
        --hero-height: min(70svh, 620px);
    }


    .hero__wrapper {
        padding: 12px 0 48px;
    }


    .hero__title {
        font-size: 28px;
    }


    .hero__actions {
        flex-direction: column;

        gap: 10px;
    }


    .hero__button {
        width: 100%;
    }


    .brands__tabs {
        margin-bottom: 24px;
    }


    .brands__tab {
        min-width: 110px;
    }

}

/* ========================================
SERVICES SECTION
======================================== */

.services {
    padding: 20px 0 80px;

    background-color: #ffffff;
}


/* ========================================
SERVICES HEADER
======================================== */

.services__header {
    margin-bottom: 38px;

    text-align: right;
}


.services__title {
    margin: 0 0 8px;

    color: var(--color-primary);

    font-size: 32px;

    font-weight: 700;

    line-height: 1.6;
}


.services__description {
    margin: 0;

    color: #6c7480;

    font-size: 14px;

    line-height: 2;
}


/* ========================================
SERVICES GRID
======================================== */

.services__grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    max-width: 1000px;

    margin-inline: auto;
}


/* ========================================
SERVICE CARD
======================================== */

.service-card {
    width: 100%;

    min-height: 280px;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    padding: 28px 18px 20px;

    border: 1px solid #e3e5e8;

    border-radius: 10px;

    background-color: #ffffff;

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.service-card:hover {
    transform: translateY(-3px);

    border-color: #cbd1d9;

    box-shadow:
        0 8px 22px
        rgba(16, 39, 77, 0.06);
}


/* ========================================
SERVICE ICON
======================================== */

.service-card__icon {
    width: 70px;

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    margin: 0 auto 18px;

    color: var(--color-primary);

    text-align: center;
}


.service-card__icon i {
    display: block;

    font-size: 40px;

    line-height: 1;
}


/* ========================================
SERVICE CONTENT
======================================== */

.service-card__content {
    width: 100%;

    flex: 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: flex-start;

    text-align: center;
}


.service-card__title {
    width: 100%;

    margin: 0 0 8px;

    color: var(--color-primary);

    font-size: 16px;

    font-weight: 700;

    line-height: 1.8;

    text-align: center;
}


.service-card__description {
    width: 100%;

    max-width: 190px;

    margin: 0 auto;

    color: #747c87;

    font-size: 11px;

    line-height: 2;

    text-align: center;
}


/* ========================================
SERVICE LINK
======================================== */

.service-card__link {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 34px;

    margin-top: 20px;

    padding-top: 16px;

    color: #075fc7;

    border-top: 1px solid #edf0f3;

    font-size: 11px;

    font-weight: 400;

    text-align: center;

    white-space: nowrap;

    transition:
        color var(--transition);
}


.service-card__link:hover {
    color: #004a9f;
}


.service-card__link i {
    flex-shrink: 0;

    font-size: 10px;

    transition:
        transform var(--transition);
}


.service-card__link:hover i {
    transform: translateX(-3px);
}


/* ========================================
TABLET
======================================== */

@media (max-width: 1100px) {

    .services__grid {
        max-width: 700px;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px;
    }

}


/* ========================================
MOBILE
======================================== */

@media (max-width: 600px) {

    .services {
        padding: 50px 0 60px;
    }


    .services__header {
        margin-bottom: 28px;

        text-align: center;
    }


    .services__title {
        font-size: 27px;
    }


    .services__description {
        font-size: 13px;
    }


    .services__grid {
        max-width: 270px;

        grid-template-columns: 1fr;

        gap: 14px;
    }


    .service-card {
        min-height: 270px;

        padding: 28px 18px 20px;
    }

}


/* ========================================
SMALL MOBILE
======================================== */

@media (max-width: 360px) {

    .services__grid {
        max-width: 100%;
    }

}


/* ========================================
CAR PRICES SECTION
======================================== */

.car-prices {
    padding: 70px 0 80px;

    background-color: #ffffff;
}


/* ========================================
PRICE HEADER
======================================== */

.car-prices__header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    margin-bottom: 30px;
}


.car-prices__header-content {
    text-align: right;
}


.car-prices__title {
    margin: 0 0 6px;

    color: var(--color-primary);

    font-size: 32px;

    font-weight: 700;

    line-height: 1.6;
}


.car-prices__subtitle {
    margin: 0;

    color: #697382;

    font-size: 14px;

    line-height: 1.8;
}


.car-prices__update {
    padding-top: 12px;

    color: #697382;

    font-size: 12px;

    line-height: 1.8;

    white-space: nowrap;
}


/* ========================================
PRICE CONTROLS
======================================== */

.car-prices__controls {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 18px;

     flex-direction: row-reverse;
}


/* ========================================
TOOLS
======================================== */

.car-prices__tools {
    display: flex;

    align-items: center;

    gap: 12px;

    direction: ltr;
}


/* ========================================
FILTER BUTTON
======================================== */

.car-prices__filter {
    position: relative;

    min-width: 105px;

    height: 46px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 0 14px;

    color: var(--color-primary);

    background-color: #ffffff;

    border: 1px solid var(--color-primary);

    border-radius: 7px;

    font-size: 13px;

    direction: rtl;

    cursor: pointer;

    transition:
        background-color var(--transition),
        color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.car-prices__filter:hover,
.car-prices__filter.is-active,
.car-prices__filter.has-filters {
    color: #ffffff;

    background-color: var(--color-primary);
}


.car-prices__filter-badge {
    position: absolute;

    top: -7px;

    left: -7px;

    min-width: 18px;

    height: 18px;

    padding: 0 5px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 999px;

    background: #e11d48;

    color: #ffffff;

    font-size: 11px;

    font-weight: 700;

    line-height: 1;
}


/* ========================================
INLINE FILTER PANEL
======================================== */

.car-prices__filters {
    margin: 0 0 18px;

    padding: 18px 18px 14px;

    border: 1px solid #e6e9ee;

    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #ffffff 100%
        );

    box-shadow: 0 10px 28px rgba(16, 39, 77, 0.05);
}


.car-prices__filters[hidden] {
    display: none !important;
}


.car-prices__filters-inner {
    display: grid;

    grid-template-columns: 1.1fr 0.9fr 1.6fr;

    gap: 16px 18px;

    align-items: end;
}


.car-prices__filter-group {
    display: flex;

    flex-direction: column;

    gap: 10px;

    min-width: 0;
}


.car-prices__filter-label {
    color: var(--color-primary);

    font-size: 12px;

    font-weight: 700;
}


.car-prices__chips,
.car-prices__budget-chips {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}


.car-prices__chip {
    height: 36px;

    padding: 0 14px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border: 1px solid #dbe1e8;

    border-radius: 999px;

    background: #ffffff;

    color: #5b6573;

    font-size: 12px;

    cursor: pointer;

    transition:
        background-color var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}


.car-prices__chip:hover {
    border-color: #b7c1ce;

    color: var(--color-primary);

    transform: translateY(-1px);
}


.car-prices__chip.is-active {
    color: #ffffff;

    background: var(--color-primary);

    border-color: var(--color-primary);
}


.car-prices__select {
    width: 100%;

    height: 44px;

    padding: 0 14px;

    border: 1px solid #dbe1e8;

    border-radius: 10px;

    background: #ffffff;

    color: var(--color-text);

    font-family: inherit;

    font-size: 13px;

    outline: none;

    transition: border-color var(--transition), box-shadow var(--transition);
}


.car-prices__select:focus {
    border-color: var(--color-primary);

    box-shadow: 0 0 0 3px rgba(16, 39, 77, 0.08);
}


.car-prices__filter-actions {
    grid-column: 1 / -1;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding-top: 4px;

    border-top: 1px dashed #e4e8ee;
}


.car-prices__clear {
    height: 36px;

    padding: 0 14px;

    border: 1px solid #e2e6ec;

    border-radius: 8px;

    background: #ffffff;

    color: #6b7280;

    font-size: 12px;

    cursor: pointer;

    transition: background-color var(--transition), color var(--transition);
}


.car-prices__clear:hover {
    color: #b91c1c;

    border-color: #fecdd3;

    background: #fff1f2;
}


.car-prices__results-count {
    color: #697382;

    font-size: 12px;
}


@media (max-width: 992px) {
    .car-prices__filters-inner {
        grid-template-columns: 1fr 1fr;
    }

    .car-prices__filter-group--budget {
        grid-column: 1 / -1;
    }
}


@media (max-width: 640px) {
    .car-prices__filters {
        padding: 14px;
    }

    .car-prices__filters-inner {
        grid-template-columns: 1fr;
    }

    .car-prices__filter-group--budget {
        grid-column: auto;
    }

    .car-prices__filter-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .car-prices__results-count {
        text-align: center;
    }
}


.car-prices__filter i {
    font-size: 14px;
}


/* ========================================
SEARCH
======================================== */

.car-prices__search {
    position: relative;

    width: 275px;

    height: 46px;
}


.car-prices__search input {
    width: 100%;

    height: 100%;

    padding: 0 18px 0 44px;

    color: var(--color-text);

    background-color: #ffffff;

    border: 1px solid #dfe3e8;

    border-radius: 7px;

    outline: none;

    font-family: inherit;

    font-size: 12px;

    direction: rtl;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}


.car-prices__search input::placeholder {
    color: #89919d;
}


.car-prices__search input:focus {
    border-color: #9ba9bb;

    box-shadow:
        0 0 0 3px
        rgba(16, 39, 77, 0.04);
}


.car-prices__search i {
    position: absolute;

    top: 50%;

    left: 16px;

    color: #7b8592;

    font-size: 15px;

    transform: translateY(-50%);

    pointer-events: none;
}


/* ========================================
PRICE TABS
======================================== */

.car-prices__tabs {
    display: flex;

    align-items: center;

    overflow: hidden;

    border: 1px solid var(--color-primary);

    border-radius: 7px;
}


.car-prices__tab {
    min-width: 160px;

    height: 44px;

    padding: 0 20px;

    color: var(--color-primary);

    background-color: #ffffff;

    font-size: 13px;

    cursor: pointer;

    transition:
        background-color var(--transition),
        color var(--transition);
}


.car-prices__tab--active,
.car-prices__tab--active:hover {
    color: #ffffff;

    background-color: var(--color-primary);
}


.car-prices__tab:hover:not(
    .car-prices__tab--active
) {
    background-color: #f5f7fa;
}


/* ========================================
PRICE TABLE WRAPPER
======================================== */

.car-prices__table-wrapper {
    width: 100%;

    overflow: hidden;

    border: 1px solid #e0e4e8;

    border-radius: 10px;

    background-color: #ffffff;
}


/* ========================================
PRICE TABLE
======================================== */

.car-prices__table {
    width: 100%;

    border-collapse: collapse;

    table-layout: fixed;

    direction: rtl;
}


/* ========================================
TABLE HEADER
======================================== */

.car-prices__table thead {
    background-color: #ffffff;
}


.car-prices__table th {
    height: 54px;

    padding: 0 16px;

    color: var(--color-primary);

    border-bottom: 1px solid #e2e5e9;

    font-size: 13px;

    font-weight: 700;

    text-align: center;

    white-space: nowrap;
}


/* ========================================
TABLE BODY
======================================== */

.car-prices__table td {
    height: 54px;

    padding: 0 14px;

    color: #303b4b;

    border-bottom: 1px solid #edf0f2;

    font-size: 12px;

    font-weight: 400;

    text-align: center;

    white-space: nowrap;
}


.car-prices__table tbody tr:last-child td {
    border-bottom: none;
}


.car-prices__table tbody tr {
    transition:
        background-color var(--transition);
}


.car-prices__table tbody tr:hover {
    background-color: #fafbfc;
}


/* ========================================
TABLE COLUMN WIDTHS
======================================== */

.car-prices__table th:nth-child(1),
.car-prices__table td:nth-child(1) {
    width: 27%;
}


.car-prices__table th:nth-child(2),
.car-prices__table td:nth-child(2) {
    width: 19%;
}


.car-prices__table th:nth-child(3),
.car-prices__table td:nth-child(3) {
    width: 19%;
}


.car-prices__table th:nth-child(4),
.car-prices__table td:nth-child(4) {
    width: 16%;
}


.car-prices__table th:nth-child(5),
.car-prices__table td:nth-child(5) {
    width: 19%;
}


/* ========================================
CAR CELL
======================================== */

.car-prices__car {
    min-height: 54px;

    display: flex;

    align-items: center;

    justify-content: flex-start;

    gap: 12px;

    padding-right: 8px;
}


.car-prices__car-image {
    width: 78px;

    height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;
}


.car-prices__car-image img {
    width: 100%;

    height: 100%;

    object-fit: contain;
}


.car-prices__car span {
    color: #303b4b;

    font-size: 12px;

    white-space: nowrap;
}


/* ========================================
PRICE CHANGE
======================================== */

.price-change {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 5px;

    min-width: 68px;

    height: 30px;

    padding: 0 9px;

    border-radius: 7px;

    font-size: 11px;
}


.price-change i {
    font-size: 11px;
}


/* UP */

.price-change--up {
    color: #16834b;

    background-color: #eef8f2;

    border: 1px solid #d6eddf;
}


/* DOWN */

.price-change--down {
    color: #e04a4a;

    background-color: #fff1f1;

    border: 1px solid #f5dcdc;
}


/* ========================================
DETAILS LINK
======================================== */

.car-prices__details {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    color: #274c84;

    font-size: 12px;

    transition:
        color var(--transition);
}


.car-prices__details:hover {
    color: #075fc7;
}


.car-prices__details i {
    font-size: 12px;

    transition:
        transform var(--transition);
}


.car-prices__details:hover i {
    transform: translateX(-3px);
}


/* ========================================
PRICE FOOTER
======================================== */

.car-prices__footer {
    display: flex;

    justify-content: center;

    margin-top: 18px;
}


.car-prices__all {
    min-width: 185px;

    height: 43px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 0 22px;

    color: var(--color-primary);

    background-color: #ffffff;

    border: 1px solid var(--color-primary);

    border-radius: 7px;

    font-size: 12px;

    transition:
        background-color var(--transition),
        color var(--transition);
}


.car-prices__all:hover {
    color: #ffffff;

    background-color: var(--color-primary);
}


/* ========================================
TABLET
======================================== */

@media (max-width: 1000px) {

    .car-prices__table-wrapper {
        overflow-x: auto;
    }


    .car-prices__table {
        min-width: 850px;
    }

}


/* ========================================
TABLET / SMALL
======================================== */

@media (max-width: 768px) {

    .car-prices {
        padding: 55px 0 65px;
    }


    .car-prices__header {
        align-items: flex-start;

        margin-bottom: 26px;
    }


    .car-prices__title {
        font-size: 28px;
    }


    .car-prices__subtitle {
        font-size: 13px;
    }


    .car-prices__update {
        font-size: 11px;
    }


    .car-prices__controls {
        flex-direction: column-reverse;

        align-items: stretch;

        gap: 14px;
    }


    .car-prices__tabs {
        align-self: flex-end;
    }


    .car-prices__tools {
        width: 100%;
    }


    .car-prices__search {
        flex: 1;

        width: auto;
    }

}


/* ========================================
MOBILE
======================================== */

@media (max-width: 560px) {

    .car-prices {
        padding: 45px 0 55px;
    }


    .car-prices__header {
        flex-direction: column;

        gap: 5px;

        text-align: right;
    }


    .car-prices__header-content {
        width: 100%;
    }


    .car-prices__title {
        font-size: 25px;
    }


    .car-prices__update {
        padding-top: 0;
    }


    .car-prices__tabs {
        width: 100%;
    }


    .car-prices__tab {
        min-width: 0;

        width: 50%;

        padding: 0 10px;

        font-size: 11px;
    }


    .car-prices__tools {
        gap: 8px;
    }


    .car-prices__filter {
        width: 90px;

        flex-shrink: 0;
    }


    .car-prices__search input {
        padding-right: 12px;

        padding-left: 40px;
    }


    .car-prices__footer {
        margin-top: 16px;
    }


    .car-prices__all {
        width: 100%;

        max-width: 220px;
    }

}

/* ========================================
BEST CARS BY BUDGET
======================================== */

.budget-cars {
    padding: 65px 0 70px;

    background-color: var(--color-white);
}


/* ========================================
SECTION HEADER
======================================== */

.budget-cars__header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    margin-bottom: 34px;
}


.budget-cars__heading {
    text-align: right;
}


.budget-cars__title {
    margin-bottom: 8px;

    font-size: 32px;

    font-weight: 700;

    line-height: 1.5;

    color: var(--color-primary);
}


.budget-cars__description {
    font-size: 14px;

    line-height: 2;

    color: var(--color-text-light);
}


/* ========================================
HEADER LEFT
======================================== */

.budget-cars__header-left {
    display: flex;

    flex-direction: row;

    align-items: center;

    gap: 18px;

    padding-top: 8px;
}


.budget-cars__counter {
    font-size: 13px;

    color: #6c7480;

    white-space: nowrap;
}


/* ========================================
NAVIGATION
======================================== */

.budget-cars__navigation {
    display: flex;

    align-items: center;

    gap: 10px;

    direction: ltr;
}


.budget-cars__nav {
    width: 50px;

    height: 50px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 8px;

    color: var(--color-primary);

    background-color: #ffffff;

    border: 1px solid #dfe3e8;

    box-shadow:
        0 3px 10px
        rgba(16, 39, 77, 0.06);

    transition:
        background-color var(--transition),
        color var(--transition),
        border-color var(--transition),
        transform var(--transition);
}


.budget-cars__nav--next {
    color: #ffffff;

    background-color: var(--color-primary);

    border-color: var(--color-primary);
}


.budget-cars__nav:hover {
    transform: translateY(-2px);
}


.budget-cars__nav--prev:hover {
    color: #ffffff;

    background-color: var(--color-primary);

    border-color: var(--color-primary);
}


.budget-cars__nav--next:hover {
    background-color: var(--color-primary-dark);

    border-color: var(--color-primary-dark);
}


.budget-cars__nav i {
    font-size: 12px;
}


/* ========================================
SLIDER
======================================== */

.budget-cars__slider-wrapper {
    position: relative;

    width: 100%;
}


.budget-cars-swiper {
    width: 100%;

    overflow: hidden;

    padding: 2px 2px 8px;
}


.budget-cars-swiper .swiper-slide {
    height: auto;
}


/* ========================================
BUDGET CAR CARD
======================================== */

.budget-car-card {
    height: 380px;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    border: 1px solid #e0e3e7;

    border-radius: 14px;

    background-color: #ffffff;

    box-shadow:
        0 3px 12px
        rgba(16, 39, 77, 0.05);

    transition:
        transform var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}


.budget-car-card:hover {
    transform: translateY(-4px);

    border-color: #cbd1d9;

    box-shadow:
        0 10px 24px
        rgba(16, 39, 77, 0.09);
}


/* ========================================
CARD IMAGE
======================================== */

.budget-car-card__image {
    width: 100%;

    height: 190px;

    overflow: hidden;

    background-color: #f5f5f4;
}


.budget-car-card__image img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.35s ease;
}


.budget-car-card:hover
.budget-car-card__image img {
    transform: scale(1.025);
}


/* ========================================
CARD CONTENT
======================================== */

.budget-car-card__content {
    flex: 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    padding: 18px 18px 15px;
}


/* ========================================
BADGE
======================================== */

.budget-car-card__badge {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 94px;

    height: 28px;

    padding: 0 14px;

    margin-bottom: 10px;

    border-radius: 14px;

    color: #5f4a00;

    background-color: #ffd21a;

    font-size: 11px;

    font-weight: 500;

    white-space: nowrap;
}


/* ========================================
PRICE
======================================== */

.budget-car-card__price {
    margin-bottom: 4px;

    font-size: 21px;

    font-weight: 700;

    line-height: 1.6;

    color: var(--color-primary);

    white-space: nowrap;
}


/* ========================================
DESCRIPTION
======================================== */

.budget-car-card__description {
    margin-bottom: auto;

    font-size: 11px;

    line-height: 1.9;

    color: #7a828d;

    text-align: center;
}


/* ========================================
CARD DIVIDER
======================================== */

.budget-car-card__divider {
    width: 100%;

    height: 1px;

    margin: 13px 0 12px;

    background-color: #e7e9ec;
}


/* ========================================
CARD LINK
======================================== */

.budget-car-card__link {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    color: #1554a3;

    font-size: 12px;

    font-weight: 500;

    text-align: center;

    transition:
        color var(--transition),
        gap var(--transition);
}


.budget-car-card__link:hover {
    color: #0d3f80;

    gap: 16px;
}


.budget-car-card__link i {
    font-size: 11px;
}


/* ========================================
PAGINATION
======================================== */

.budget-cars__pagination {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    margin-top: 30px;
}


.budget-cars__pagination .swiper-pagination-bullet {
    width: 10px;

    height: 10px;

    margin: 0 !important;

    opacity: 1;

    border: 1px solid #c7ccd3;

    background-color: #ffffff;

    transition:
        width var(--transition),
        background-color var(--transition),
        border-color var(--transition);
}


.budget-cars__pagination
.swiper-pagination-bullet-active {
    width: 10px;

    height: 10px;

    background-color: #f6ca00;

    border-color: #f6ca00;
}


/* ========================================
RESPONSIVE
======================================== */

@media (max-width: 1200px) {

    .budget-cars__title {
        font-size: 29px;
    }


    .budget-car-card {
        height: 365px;
    }


    .budget-car-card__image {
        height: 175px;
    }

}


@media (max-width: 992px) {

    .budget-cars {
        padding: 55px 0 60px;
    }


    .budget-cars__header {
        margin-bottom: 28px;
    }


    .budget-cars__title {
        font-size: 27px;
    }


    .budget-cars__description {
        font-size: 13px;
    }


    .budget-cars__nav {
        width: 44px;

        height: 44px;
    }


    .budget-car-card {
        height: 355px;
    }


    .budget-car-card__image {
        height: 170px;
    }

}


@media (max-width: 768px) {

    .budget-cars {
        padding: 45px 0 50px;
    }


    .budget-cars__header {
        flex-direction: column;

        align-items: stretch;

        gap: 22px;
    }


    .budget-cars__heading {
        text-align: center;
    }


    .budget-cars__title {
        font-size: 25px;
    }


    .budget-cars__description {
        font-size: 12px;
    }


    .budget-cars__header-left {
        justify-content: space-between;

        padding-top: 0;
    }


    .budget-cars__navigation {
        gap: 8px;
    }


    .budget-cars__nav {
        width: 42px;

        height: 42px;
    }


    .budget-cars-swiper {
        padding-inline: 1px;
    }


    .budget-car-card {
        height: 350px;
    }


    .budget-car-card__image {
        height: 175px;
    }

}


@media (max-width: 480px) {

    .budget-cars__title {
        font-size: 22px;
    }


    .budget-cars__description {
        font-size: 11px;
    }


    .budget-cars__header-left {
        gap: 12px;
    }


    .budget-cars__counter {
        font-size: 12px;
    }


    .budget-car-card {
        height: 345px;
    }


    .budget-car-card__image {
        height: 170px;
    }


    .budget-car-card__price {
        font-size: 19px;
    }


    .budget-cars__pagination {
        gap: 14px;

        margin-top: 24px;
    }

}

/* ========================================
COMPARE SECTION
======================================== */

.compare {
    padding: 70px 0 80px;

    background-color: var(--color-white);
}


/* ========================================
COMPARE HEADER
======================================== */

.compare__header {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}


.compare__header-content {
    text-align: right;
}


.compare__title {
    margin: 0 0 8px;

    color: var(--color-primary);

    font-size: 30px;

    font-weight: 700;

    line-height: 1.6;
}


.compare__description {
    margin: 0;

    color: var(--color-text-light);

    font-size: 13px;

    line-height: 2;
}


.compare__all-link {
    display: flex;

    align-items: center;

    gap: 9px;

    flex-shrink: 0;

    padding-bottom: 5px;

    color: var(--color-primary);

    font-size: 13px;

    transition: color var(--transition);
}


.compare__all-link:hover {
    color: #174b96;
}


.compare__all-link i {
    font-size: 11px;
}



/* ========================================
MAIN COMPARE BOX
======================================== */

.compare__box {
    position: relative;

    width: 100%;

    padding: 34px 38px 30px;

    background-color: #ffffff;

    border: 1px solid #e3e6ea;

    border-radius: 12px;

    box-shadow:
        0 8px 25px
        rgba(16, 39, 77, 0.06);
}



/* ========================================
SELECTORS
======================================== */

.compare__selectors {
    position: relative;

    display: flex;

    align-items: stretch;

    width: 100%;
}



/* ========================================
CAR SELECTOR
======================================== */

.compare__car-selector {
    position: relative;

    width: calc(50% - 30px);

    padding: 0 18px 24px;

    display: flex;

    flex-direction: column;

    align-items: stretch;
}


.compare__car-selector--right {
    padding-left: 28px;
}


.compare__car-selector--left {
    padding-right: 28px;
}



/* ========================================
SELECT ROW
======================================== */

.compare__select-row {
    display: flex;

    align-items: flex-end;

    gap: 14px;

    width: 100%;

    margin-bottom: 24px;
}


.compare__field {
    flex: 1;

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 8px;
}


.compare__field label {
    color: var(--color-text);

    font-size: 12px;

    font-weight: 500;

    text-align: right;
}


.compare__select {
    width: 100%;

    height: 48px;

    padding: 0 14px;

    color: #5d6877;

    background-color: #ffffff;

    border: 1px solid #dfe3e8;

    border-radius: 7px;

    outline: none;

    font-family: inherit;

    font-size: 12px;

    cursor: pointer;

    transition:
        border-color var(--transition),
        box-shadow var(--transition);
}


.compare__select:focus {
    border-color: var(--color-primary);

    box-shadow:
        0 0 0 3px
        rgba(16, 39, 77, 0.06);
}


.compare__select:disabled {
    color: #a0a7b0;

    background-color: #fafafa;

    cursor: not-allowed;
}



/* ========================================
CAR IMAGE
======================================== */

.compare__car-image {
    width: 100%;

    height: 220px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;
}


.compare__car-img {
    width: 100%;

    height: 100%;

    object-fit: contain;

    display: none !important;
}


.compare__car-img.is-visible {
    display: block !important;
}


.compare__car-placeholder {
    width: 100%;

    height: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 12px;

    color: #a7afb9;
}


.compare__car-placeholder i {
    font-size: 48px;

    color: #c5cbd2;
}


.compare__car-placeholder span {
    font-size: 12px;
}



/* ========================================
CAR INFORMATION
======================================== */

.compare__car-info {
    width: 100%;

    margin-top: 8px;

    padding-top: 18px;

    text-align: center;

    border-top: 1px solid #e5e7ea;
}


.compare__car-title {
    margin-bottom: 11px;

    color: var(--color-primary);

    font-size: 18px;

    font-weight: 700;

    line-height: 1.7;
}


.compare__car-specs {
    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 0;

    color: #626c78;

    font-size: 11px;

    line-height: 2;
}


.compare__car-specs span {
    position: relative;

    padding: 0 13px;
}


.compare__car-specs span:not(:last-child)::after {
    content: "|";

    position: absolute;

    left: 0;

    top: 50%;

    transform: translateY(-50%);

    color: #c9ced4;
}



/* ========================================
CHANGE BUTTON
======================================== */

.compare__change-btn {
    position: absolute;

    bottom: 0;

    width: 110px;

    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    color: var(--color-primary);

    background-color: #ffffff;

    border: 1px solid var(--color-primary);

    border-radius: 6px;

    font-family: inherit;

    font-size: 11px;

    cursor: pointer;

    transition:
        color var(--transition),
        background-color var(--transition),
        transform var(--transition);
}


.compare__car-selector--right .compare__change-btn {
    right: 18px;
}


.compare__car-selector--left .compare__change-btn {
    left: 18px;
}


.compare__change-btn:hover {
    color: #ffffff;

    background-color: var(--color-primary);

    transform: translateY(-1px);
}


.compare__change-btn i {
    font-size: 13px;
}



/* ========================================
VS CENTER
======================================== */

.compare__vs {
    position: relative;

    width: 60px;

    min-width: 60px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.compare__vs::before {
    content: "";

    position: absolute;

    top: 0;

    bottom: 0;

    left: 50%;

    width: 1px;

    background-color: #dfe2e5;

    transform: translateX(-50%);
}


.compare__vs span {
    position: relative;

    z-index: 2;

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #ffffff;

    background-color: var(--color-primary);

    border-radius: 50%;

    font-size: 12px;

    font-weight: 700;
}



/* ========================================
COMPARE BUTTON
======================================== */

.compare__action {
    display: flex;

    align-items: center;

    justify-content: center;

    padding-top: 12px;
}


.compare__button {
    min-width: 205px;

    height: 52px;

    padding: 0 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 13px;

    color: var(--color-primary);

    background-color: #f7cf00;

    border: none;

    border-radius: 7px;

    font-family: inherit;

    font-size: 13px;

    font-weight: 500;

    cursor: pointer;

    transition:
        background-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}


.compare__button:hover {
    background-color: #e8bd00;

    transform: translateY(-2px);

    box-shadow:
        0 7px 18px
        rgba(232, 189, 0, 0.22);
}


.compare__button i {
    order: 2;

    font-size: 19px;
}



/* ========================================
POPULAR COMPARISONS
======================================== */

.compare__popular {
    width: 100%;

    margin-top: 42px;
}



/* ========================================
POPULAR HEADER
======================================== */

.compare__popular-header {
    display: flex;

    align-items: center;

    justify-content: flex-start;

    margin-bottom: 20px;
}


.compare__popular-title {
    margin: 0;

    color: var(--color-primary);

    font-size: 22px;

    font-weight: 700;

    line-height: 1.6;
}



/* ========================================
POPULAR GRID
======================================== */

.compare__popular-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}



/* ========================================
COMPARE CARD
======================================== */

.compare-card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    background-color: #ffffff;

    border: 1px solid #e4e7eb;

    border-radius: 10px;

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}


.compare-card:hover {
    transform: translateY(-3px);

    border-color: #cfd5dc;

    box-shadow:
        0 8px 22px
        rgba(16, 39, 77, 0.07);
}



/* ========================================
CARS AREA
======================================== */

.compare-card__cars {
    position: relative;

    min-height: 190px;

    display: grid;

    grid-template-columns:
        1fr 48px 1fr;

    align-items: center;

    padding: 20px 18px 16px;
}



/* ========================================
CARD CAR
======================================== */

.compare-card__car {
    min-width: 0;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 10px;

    text-align: center;
}



/* ========================================
CARD IMAGE
======================================== */

.compare-card__image {
    width: 100%;

    height: 105px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.compare-card__image img {
    width: 100%;

    height: 100%;

    object-fit: contain;
}



/* ========================================
CARD NAME
======================================== */

.compare-card__name {
    color: var(--color-text);

    font-size: 13px;

    font-weight: 700;

    line-height: 1.5;

    white-space: nowrap;
}



/* ========================================
CARD VS
======================================== */

.compare-card__vs {
    width: 36px;

    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    align-self: center;

    color: #ffffff;

    background-color: var(--color-primary);

    border-radius: 50%;

    font-family: Arial, sans-serif;

    font-size: 10px;

    font-weight: 700;

    direction: ltr;

    z-index: 2;
}



/* ========================================
CARD BOTTOM
======================================== */

.compare-card__bottom {
    min-height: 50px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    padding: 0 18px;

    border-top: 1px solid #edf0f2;

    color: var(--color-primary);

    background-color: #fafafa;

    font-size: 12px;

    line-height: 1.6;
}


.compare-card__bottom span {
    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


.compare-card__bottom i {
    flex-shrink: 0;

    font-size: 10px;

    color: var(--color-primary);

    transition:
        transform var(--transition),
        color var(--transition);
}


.compare-card:hover .compare-card__bottom i {
    transform: translateX(-3px);

    color: #075fc7;
}



/* ========================================
TABLET RESPONSIVE
======================================== */

@media (max-width: 992px) {

    .compare {
        padding: 60px 0 70px;
    }


    .compare__box {
        padding: 28px 24px 26px;
    }


    .compare__car-selector {
        padding-inline: 12px;
    }


    .compare__car-selector--right {
        padding-left: 20px;
    }


    .compare__car-selector--left {
        padding-right: 20px;
    }


    .compare__select-row {
        gap: 10px;
    }


    .compare__car-image {
        height: 180px;
    }


    .compare__popular-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}



/* ========================================
MOBILE RESPONSIVE
======================================== */

@media (max-width: 768px) {

    .compare {
        padding: 45px 0 55px;
    }


    /* Header */

    .compare__header {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;

        margin-bottom: 22px;
    }


    .compare__title {
        font-size: 25px;
    }


    .compare__description {
        font-size: 12px;

        line-height: 1.9;
    }


    .compare__all-link {
        padding-bottom: 0;
    }



    /* Main Box */

    .compare__box {
        padding: 22px 14px 20px;

        border-radius: 10px;
    }


    /* Selectors */

    .compare__selectors {
        align-items: stretch;
    }


    .compare__car-selector {
        width: calc(50% - 22px);

        padding: 0 8px 18px;
    }


    .compare__car-selector--right {
        padding-left: 12px;
    }


    .compare__car-selector--left {
        padding-right: 12px;
    }


    /* Selects become vertical */

    .compare__select-row {
        flex-direction: column;

        align-items: stretch;

        gap: 10px;

        margin-bottom: 14px;
    }


    .compare__field {
        gap: 5px;
    }


    .compare__field label {
        font-size: 10px;
    }


    .compare__select {
        height: 40px;

        padding: 0 8px;

        font-size: 10px;
    }



    /* VS */

    .compare__vs {
        width: 44px;

        min-width: 44px;
    }


    .compare__vs span {
        width: 34px;

        height: 34px;

        font-size: 10px;
    }



    /* Car Image */

    .compare__car-image {
        height: 130px;
    }


    .compare__car-placeholder {
        gap: 8px;
    }


    .compare__car-placeholder i {
        font-size: 36px;
    }


    .compare__car-placeholder span {
        font-size: 10px;

        text-align: center;
    }



    /* Car Info */

    .compare__car-info {
        margin-top: 4px;

        padding-top: 12px;
    }


    .compare__car-title {
        margin-bottom: 7px;

        font-size: 14px;
    }


    .compare__car-specs {
        flex-direction: column;

        gap: 3px;

        font-size: 9px;
    }


    .compare__car-specs span {
        padding: 0;
    }


    .compare__car-specs span:not(:last-child)::after {
        display: none;
    }



    /* Change Buttons */

    .compare__change-btn {
        position: static;

        width: 100%;

        height: 34px;

        margin-top: 12px;

        gap: 5px;

        font-size: 9px;
    }


    .compare__change-btn i {
        font-size: 11px;
    }



    /* Compare Action */

    .compare__action {
        padding-top: 20px;
    }


    .compare__button {
        width: 100%;

        min-width: 0;

        height: 48px;

        font-size: 12px;
    }



    /* Popular */

    .compare__popular {
        margin-top: 32px;
    }


    .compare__popular-title {
        font-size: 20px;
    }


    .compare__popular-grid {
        gap: 12px;
    }


    .compare-card__cars {
        min-height: 170px;

        padding: 15px 12px;

        grid-template-columns:
            1fr 38px 1fr;
    }


    .compare-card__image {
        height: 85px;
    }


    .compare-card__name {
        font-size: 11px;
    }


    .compare-card__vs {
        width: 30px;

        height: 30px;

        font-size: 8px;
    }


    .compare-card__bottom {
        min-height: 46px;

        padding: 0 12px;

        font-size: 10px;
    }

}



/* ========================================
SMALL MOBILE
======================================== */

@media (max-width: 480px) {

    .compare__title {
        font-size: 22px;
    }


    .compare__description {
        font-size: 11px;
    }


    .compare__box {
        padding: 16px 8px;
    }


    .compare__car-selector {
        width: calc(50% - 19px);

        padding-inline: 6px;
    }


    .compare__car-selector--right {
        padding-left: 8px;
    }


    .compare__car-selector--left {
        padding-right: 8px;
    }


    .compare__vs {
        width: 38px;

        min-width: 38px;
    }


    .compare__vs span {
        width: 30px;

        height: 30px;

        font-size: 9px;
    }


    .compare__field label {
        font-size: 9px;
    }


    .compare__select {
        height: 36px;

        padding: 0 5px;

        font-size: 9px;
    }


    .compare__car-image {
        height: 105px;
    }


    .compare__car-placeholder i {
        font-size: 30px;
    }


    .compare__car-placeholder span {
        font-size: 9px;
    }


    .compare__car-title {
        font-size: 12px;
    }


    .compare__car-specs {
        font-size: 8px;
    }


    .compare__change-btn {
        height: 32px;

        font-size: 8px;
    }


    /* Popular cards */

    .compare__popular-grid {
        grid-template-columns: 1fr;
    }


    .compare-card__cars {
        min-height: 165px;

        padding-inline: 24px;
    }


    .compare-card__image {
        height: 90px;
    }


    .compare-card__name {
        font-size: 12px;
    }


    .compare-card__bottom {
        font-size: 11px;
    }

}

/* =====================================================
   COMPARE MODAL (popup)
===================================================== */

body.compare-modal-open {
    overflow: hidden;
}

.compare-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    font-family: "IRANYekan", "IRANYekanFaNum", "Vazirmatn", sans-serif;
    direction: rtl;
    box-sizing: border-box;
}

.compare-modal *,
.compare-modal *::before,
.compare-modal *::after {
    box-sizing: border-box;
}

.compare-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.compare-modal[hidden] {
    display: none !important;
}

.compare-modal.is-open[hidden] {
    display: flex !important;
}

.compare-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 28, 0.62);
    backdrop-filter: blur(2px);
}

.compare-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 920px);
    max-height: min(92vh, 900px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(8, 14, 28, 0.28);
    overflow: hidden;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.22s ease;
}

.compare-modal.is-open .compare-modal__dialog {
    transform: translateY(0) scale(1);
}

.compare-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--color-border);
    background: #f8f9fb;
    flex-shrink: 0;
}

.compare-modal__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.5;
}

.compare-modal__close {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--color-primary);
    background: #ffffff;
    border: 1px solid var(--color-border);
    flex-shrink: 0;
    transition: background-color var(--transition), color var(--transition);
}

.compare-modal__close:hover,
.compare-modal__close:focus {
    background: var(--color-primary);
    color: #ffffff;
}

.compare-modal__body {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 22px 24px;
    -webkit-overflow-scrolling: touch;
}

.compare-modal__cars {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.compare-modal__car {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    min-width: 0;
}

.compare-modal__car-image {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f3f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-modal__car-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.compare-modal__car-placeholder {
    color: #9aa3af;
    font-size: 28px;
}

.compare-modal__car-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.45;
}

.compare-modal__car-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--color-primary) !important;
    border: 1px solid var(--color-border);
    background: #ffffff;
    transition: background-color var(--transition), border-color var(--transition);
}

.compare-modal__car-link:hover,
.compare-modal__car-link:focus {
    background: #f3f5f8;
    border-color: #c9d0d8;
}

.compare-modal__vs {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}

.compare-modal__table {
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
}

.compare-modal__row {
    display: grid;
    grid-template-columns: 1fr minmax(90px, 140px) 1fr;
    grid-template-areas: "a label b";
    align-items: stretch;
    border-bottom: 1px solid var(--color-border);
}

.compare-modal__row:last-child {
    border-bottom: none;
}

.compare-modal__row--head {
    background: #f3f5f8;
    font-weight: 700;
}

.compare-modal__row.is-same .compare-modal__cell--a,
.compare-modal__row.is-same .compare-modal__cell--b {
    color: #6c7480;
}

.compare-modal__cell {
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
    word-break: break-word;
}

.compare-modal__cell--label {
    grid-area: label;
    background: #fafbfc;
    color: var(--color-primary);
    font-weight: 600;
    border-inline: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-modal__cell--a {
    grid-area: a;
}

.compare-modal__cell--b {
    grid-area: b;
}

.compare-modal__cell--a,
.compare-modal__cell--b {
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare-modal__row:not(.compare-modal__row--head):not(.is-same) .compare-modal__cell--a,
.compare-modal__row:not(.compare-modal__row--head):not(.is-same) .compare-modal__cell--b {
    font-weight: 600;
}

.compare-modal__empty {
    padding: 28px 16px;
    text-align: center;
    color: var(--color-text-light);
    font-size: 14px;
}

@media (max-width: 768px) {
    .compare-modal {
        padding: 0;
        align-items: flex-end;
    }

    .compare-modal__dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 18px 18px 0 0;
    }

    .compare-modal__header {
        padding: 14px 16px;
    }

    .compare-modal__title {
        font-size: 15px;
    }

    .compare-modal__body {
        padding: 14px 14px 22px;
    }

    .compare-modal__cars {
        gap: 8px;
        margin-bottom: 16px;
    }

    .compare-modal__car-image {
        max-width: 140px;
        aspect-ratio: 4 / 3;
    }

    .compare-modal__car-name {
        font-size: 13px;
    }

    .compare-modal__car-link {
        padding: 6px 10px;
        font-size: 12px;
    }

    .compare-modal__vs {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }

    .compare-modal__row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "label"
            "a"
            "b";
        gap: 0;
    }

    .compare-modal__row--head {
        display: none;
    }

    .compare-modal__cell {
        padding: 8px 12px;
        font-size: 13px;
    }

    .compare-modal__cell--label {
        border-inline: none;
        border-bottom: 1px solid #eef1f4;
        background: #f3f5f8;
        padding-top: 10px;
        padding-bottom: 6px;
        font-size: 12px;
    }

    .compare-modal__cell--a,
    .compare-modal__cell--b {
        justify-content: space-between;
        text-align: right;
        padding-top: 6px;
        padding-bottom: 6px;
        gap: 10px;
    }

    .compare-modal__cell--a::before,
    .compare-modal__cell--b::before {
        content: attr(data-car);
        color: #8a93a0;
        font-size: 11px;
        font-weight: 500;
        flex: 0 1 42%;
        text-align: right;
        line-height: 1.4;
    }

    .compare-modal__row:not(.compare-modal__row--head) .compare-modal__cell--b {
        padding-bottom: 12px;
        border-bottom: 1px solid var(--color-border);
    }

    .compare-modal__row:last-child .compare-modal__cell--b {
        border-bottom: none;
    }
}

@media (max-width: 420px) {
    .compare-modal__car-link {
        display: none;
    }

    .compare-modal__car-name {
        font-size: 12px;
    }
}

/* =====================================================
   MEDIA SECTION
===================================================== */

.media-section {
    width: 100%;
    max-width: none;
    direction: rtl;
    background: #001b3b;
    color: #ffffff;
    padding: 70px 0 90px;
    box-sizing: border-box;
    margin-top: 60px;
}

.media-section *,
.media-section *::before,
.media-section *::after {
    box-sizing: border-box;
}

.media-container {
    width: min(calc(100% - 48px), var(--container-width));
    max-width: var(--container-width);
    margin-inline: auto;
}


/* =====================================================
   SECTION HEADER
===================================================== */

.section-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 25px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 7px;
}

.section-title h2,
.video-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 27px;
    line-height: 1.5;
    font-weight: 800;
}

.section-arrow {
    color: #f4b900;
    font-size: 34px;
    line-height: 1;
}

.section-more {
    height: 40px;
    padding: 0 15px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 1px solid #6c7d91;
    border-radius: 4px;

    color: #ffffff;
    text-decoration: none;

    font-size: 11px;
    white-space: nowrap;

    transition: all .25s ease;
}

.section-more span {
    color: #f4b900;
    font-size: 22px;
    line-height: 1;
}

.section-more:hover {
    color: #f4b900;
    border-color: #f4b900;
}


/* =====================================================
   ARTICLES
===================================================== */

.articles-section {
    margin-bottom: 75px;
}


/* 
   IMPORTANT:
   RTL طبیعی:
   ستون اول = سمت راست
   ستون دوم = سمت چپ
*/

.articles-layout {
    width: 100%;
    display: grid;

    grid-template-columns: 1.05fr 1fr;

    gap: 14px;
    align-items: stretch;
}


/* =====================================================
   FEATURED ARTICLE
===================================================== */

.article-featured {
    width: 100%;
    overflow: hidden;

    background: #03274e;
    border: 1px solid rgba(130, 155, 180, .25);
    border-radius: 5px;

    transition: .25s ease;
}

.article-featured:hover {
    border-color: rgba(244, 185, 0, .45);
    transform: translateY(-2px);
}

.article-featured > a {
    display: block;
    height: 100%;
}

.article-image {
    width: 100%;
    height: 265px;
    position: relative;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
    object-position: center;

    transition: transform .4s ease;
}

.article-featured:hover .article-image img {
    transform: scale(1.03);
}

.article-badge {
    position: absolute;

    right: 10px;
    bottom: 10px;

    padding: 5px 9px;

    background: #f4b900;
    color: #09203c;

    border-radius: 2px;

    font-size: 10px;
    font-weight: 700;
}

.article-body {
    padding: 14px 18px 17px;
}

.article-category {
    display: block;

    color: #71869d;
    font-size: 10px;
}

.article-body h3 {
    margin: 9px 0 13px;

    color: #ffffff;

    font-size: 19px;
    line-height: 1.8;
    font-weight: 800;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;

    color: #73879d;
    font-size: 9px;
}


/* =====================================================
   SMALL ARTICLES
===================================================== */

.articles-small-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;
}

.article-small {
    min-width: 0;
    overflow: hidden;

    background: #03274e;

    border: 1px solid rgba(130, 155, 180, .25);
    border-radius: 5px;

    transition: .25s ease;
}

.article-small:hover {
    border-color: rgba(244, 185, 0, .45);
    transform: translateY(-2px);
}

.article-small > a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-small-image {
    width: 100%;
    height: 137px;
    overflow: hidden;
    flex: 0 0 137px;
}

.article-small-image img,
.article-small img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
    object-position: center;
}

.article-small-body {
    padding: 8px 12px 10px;
}

.article-small-body > span {
    display: block;

    color: #71869d;
    font-size: 9px;
}

.article-small-body h3 {
    margin: 6px 0 8px;

    color: #ffffff;

    font-size: 12px;
    line-height: 1.75;
    font-weight: 700;
}

.small-meta {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #6e8299;
    font-size: 8px;
}


/* =====================================================
   LATEST ARTICLES
===================================================== */

.latest-heading {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    margin: 25px 0 12px;
}

.latest-heading span {
    color: #f4b900;
    font-size: 27px;
    line-height: 1;
}

.latest-heading h3 {
    margin-right: 10px;

    color: #ffffff;

    font-size: 17px;
    font-weight: 800;
}

.latest-articles {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;
}

.latest-article {
    min-height: 88px;

    display: flex;
    flex-direction: row;

    overflow: hidden;

    background: #03274e;

    border: 1px solid rgba(130, 155, 180, .25);
    border-radius: 5px;

    transition: .25s ease;
}

.latest-article:hover {
    border-color: rgba(244, 185, 0, .45);
}

.latest-article > a {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 88px;
}

.latest-article-image {
    width: 42%;
    flex: 0 0 42%;
    min-height: 88px;
    overflow: hidden;
}

.latest-article-image img,
.latest-article img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
    object-position: center;
}

.latest-article a > div {
    flex: 1;
    min-width: 0;

    padding: 10px 13px;
}

.latest-article a > div > span {
    color: #71869d;
    font-size: 9px;
}

.latest-article h3 {
    margin: 5px 0 6px;

    color: #ffffff;

    font-size: 11px;
    line-height: 1.7;
    font-weight: 700;
}

.latest-meta {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #6e8299;
    font-size: 8px;
}


/* =====================================================
   VIDEOS SECTION
===================================================== */

.videos-section {
    width: 100%;
}

.video-heading {
    text-align: right;
}

.video-heading h2 {
    font-size: 27px;
}

.video-heading p {
    margin: 7px 0 0;

    color: #778ba1;

    font-size: 11px;
    line-height: 1.8;
}

.videos-more {
    color: #f4b900;
    border-color: #d7a900;
}


/* =====================================================
   VIDEO LAYOUT
===================================================== */

.videos-layout {
    width: 100%;

    display: grid;

    grid-template-columns: 1.05fr 1fr;

    gap: 14px;

    align-items: stretch;
}


/* =====================================================
   FEATURED VIDEO
===================================================== */

.video-featured {
    overflow: hidden;

    background: #03274e;

    border: 1px solid rgba(130, 155, 180, .25);
    border-radius: 5px;

    transition: .25s ease;
}

.video-featured:hover {
    border-color: rgba(244, 185, 0, .45);
}

.video-featured-image {
    width: 100%;
    height: 265px;

    position: relative;
    overflow: hidden;
}

.video-featured-image > img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;

    transition: transform .4s ease;
}

.video-featured:hover .video-featured-image > img {
    transform: scale(1.03);
}


/* =====================================================
   PLAY BUTTON
===================================================== */

.video-play {
    position: absolute;

    top: 50%;
    right: 50%;

    transform: translate(50%, -50%);

    width: 53px;
    height: 53px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #f4b900;
    border-radius: 50%;

    background: rgba(0, 20, 45, .4);

    color: #f4b900;

    cursor: pointer;

    transition: all .25s ease;
}

.video-play span {
    font-size: 17px;
    margin-right: 3px;
}

.video-play:hover {
    background: #f4b900;
    color: #06203c;
    transform: translate(50%, -50%) scale(1.08);
}


/* =====================================================
   VIDEO LABELS
===================================================== */

.video-duration {
    position: absolute;

    left: 8px;
    bottom: 8px;

    padding: 4px 7px;

    border-radius: 3px;

    background: rgba(0, 0, 0, .75);

    color: #ffffff;

    font-size: 9px;
    direction: ltr;
}

.video-badge {
    position: absolute;

    right: 8px;
    bottom: 8px;

    padding: 5px 8px;

    border-radius: 2px;

    background: #f4b900;
    color: #08213c;

    font-size: 9px;
    font-weight: 700;
}

.video-featured-body {
    padding: 13px 17px 16px;
}

.video-featured-body h3 {
    margin: 0 0 9px;

    color: #ffffff;

    font-size: 18px;
    font-weight: 800;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 14px;

    color: #70849a;

    font-size: 9px;
}


/* =====================================================
   SMALL VIDEOS
===================================================== */

.videos-small-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;
}

.video-small {
    min-width: 0;
    overflow: hidden;

    background: #03274e;

    border: 1px solid rgba(130, 155, 180, .25);
    border-radius: 5px;

    transition: .25s ease;
}

.video-small:hover {
    border-color: rgba(244, 185, 0, .45);
    transform: translateY(-2px);
}

.video-small-image {
    width: 100%;
    height: 137px;

    position: relative;
    overflow: hidden;
}

.video-small-image > img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
}


/* small play */

.small-play {
    position: absolute;

    top: 50%;
    right: 50%;

    transform: translate(50%, -50%);

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 0 0 2px;

    border: 1px solid #f4b900;
    border-radius: 50%;

    background: rgba(0, 20, 45, .35);

    color: #f4b900;

    font-size: 10px;

    cursor: pointer;

    transition: .25s ease;
}

.small-play:hover {
    background: #f4b900;
    color: #06203c;
}

.video-small-body {
    padding: 8px 12px 10px;
}

.video-small-body > span {
    display: block;

    color: #f4b900;

    font-size: 9px;
}

.video-small-body h3 {
    margin: 6px 0 6px;

    color: #ffffff;

    font-size: 12px;
    line-height: 1.7;
    font-weight: 700;
}

.video-small-body small {
    color: #70849a;
    font-size: 8px;
}

.video-small-body small b {
    margin: 0 3px;
    color: #536b83;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .media-container {
        max-width: calc(100% - 30px);
    }

    .articles-layout,
    .videos-layout {
        grid-template-columns: 1fr;
    }

    .article-image,
    .video-featured-image {
        height: 330px;
    }

    .articles-small-grid,
    .videos-small-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .media-section {
        padding: 45px 0 60px;
    }

    .media-container {
        max-width: calc(100% - 24px);
    }

    .section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .section-title h2,
    .video-heading h2 {
        font-size: 22px;
    }

    .video-heading p {
        font-size: 10px;
    }

    .section-more {
        height: 38px;
    }

    .articles-small-grid,
    .videos-small-grid,
    .latest-articles {
        grid-template-columns: 1fr;
    }

    .article-image,
    .video-featured-image {
        height: 230px;
    }

    .article-small-image,
    .video-small-image {
        height: 190px;
        flex-basis: 190px;
    }

    .article-body h3 {
        font-size: 16px;
    }

    .video-featured-body h3 {
        font-size: 16px;
    }

    .latest-article {
        min-height: 100px;
    }
}


.blog-categories {
    width: 100%;
    direction: rtl;
    padding: 70px 20px 80px;
    background: #fff;
}

.blog-categories__container {
    width: min(960px, 100%);
    margin: 0 auto;
}

/* Header */

.blog-categories__header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 38px;
}

.blog-categories__header h2 {
    margin: 0;
    color: #102b55;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.5;
}

.blog-categories__header-icon {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 25px;
    font-size: 0;
}

.blog-categories__header-icon::before,
.blog-categories__header-icon::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 7px;
    transform: skewX(-30deg);
}

.blog-categories__header-icon::before {
    top: 4px;
    right: 2px;
    background: #f6c400;
}

.blog-categories__header-icon::after {
    bottom: 3px;
    right: 0;
    background: #132e59;
}

/* Cards */

.blog-categories__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.blog-category {
    min-height: 108px;
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 12px;

    position: relative;

    text-decoration: none;
    color: #172b4d;

    background: #fff;
    border: 1px solid #e7ebf2;
    border-radius: 16px;

    box-shadow: 0 3px 12px rgba(16, 43, 85, 0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.blog-category:hover {
    transform: translateY(-3px);
    border-color: #dce3ee;
    box-shadow: 0 8px 22px rgba(16, 43, 85, 0.09);
}

/* Icon */

.blog-category__icon {
    width: 54px;
    height: 54px;

    flex: 0 0 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #edf3fc;
}

.blog-category__icon img {
    display: block;
    width: 38px;
    height: 38px;
    object-fit: contain;
}

/* Title */

.blog-category__title {
    flex: 1;

    color: #172b4d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;

    white-space: nowrap;
}

/* Arrow */

.blog-category__arrow {
    color: #f5c400;
    font-size: 27px;
    line-height: 1;

    transition: transform 0.25s ease;
}

.blog-category:hover .blog-category__arrow {
    transform: translateX(-3px);
}


/* Tablet */

@media (max-width: 900px) {
    .blog-categories {
        padding: 55px 20px 65px;
    }

    .blog-categories__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}


/* Mobile */

@media (max-width: 600px) {
    .blog-categories {
        padding: 40px 16px 50px;
    }

    .blog-categories__header {
        margin-bottom: 24px;
    }

    .blog-categories__header h2 {
        font-size: 20px;
    }

    .blog-categories__list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .blog-category {
        min-height: 88px;
        padding: 12px;
    }

    .blog-category__icon {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .blog-category__icon img {
        width: 34px;
        height: 34px;
    }

    .blog-category__title {
        font-size: 13px;
    }
}

/* Registration / sales-offer styles live in homepage-v2/assets/css/registration.css */


/* ========================================
   FAQ SECTION
======================================== */

.faq-section {
    width: 100%;
    direction: rtl;
    background: #fff;
    padding: 65px 20px 75px;
}

.faq-container {
    width: min(930px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 35px;

    align-items: start;
}


/* ========================================
   INTRO
======================================== */

.faq-intro {
    text-align: right;
}

.faq-label {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 18px;

    color: #172b4d;
    font-size: 12px;
    font-weight: 600;
}

.faq-label span {
    width: 7px;
    height: 7px;

    display: block;

    background: #f5c400;
    border-radius: 50%;
}


.faq-intro h2 {
    margin: 0 0 18px;

    color: #102b55;

    font-size: 25px;
    font-weight: 800;

    line-height: 1.65;
}


.faq-intro p {
    margin: 0;

    color: #737e90;

    font-size: 11px;
    font-weight: 500;

    line-height: 2.1;
}


/* ========================================
   IMAGE
======================================== */

.faq-image {
    width: 150px;
    height: 105px;

    margin: 22px auto 12px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* ========================================
   CONTACT BUTTON
======================================== */

.faq-contact {
    width: 100%;
    min-height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 8px 12px;

    border: 1px solid #102b55;
    border-radius: 5px;

    color: #102b55;

    font-size: 11px;
    font-weight: 600;

    text-decoration: none;

    transition: all .2s ease;
}

.faq-contact span {
    font-size: 20px;
    line-height: 1;
}

.faq-contact:hover {
    color: #fff;
    background: #102b55;
}


/* ========================================
   FAQ LIST
======================================== */

.faq-list {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 9px;
}


/* ========================================
   FAQ ITEM
======================================== */

.faq-item {
    width: 100%;

    overflow: hidden;

    background: #fff;

    border: 1px solid #dfe4eb;
    border-radius: 8px;

    transition:
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}


/* Active */

.faq-item.active {
    border: 2px solid #102b55;

    box-shadow:
        0 4px 14px rgba(16, 43, 85, 0.05);
}


/* ========================================
   QUESTION
======================================== */

.faq-question {
    width: 100%;
    min-height: 52px;

    padding: 0 16px;

    display: flex;
    align-items: center;

    gap: 14px;

    border: 0;

    background: transparent;

    color: #172b4d;

    font-family: inherit;

    font-size: 13px;
    font-weight: 700;

    text-align: right;

    cursor: pointer;
}


/* ========================================
   FAQ ICON
======================================== */

.faq-icon {
    position: relative;

    width: 22px;
    height: 22px;

    flex: 0 0 22px;

    display: block;

    color: #102b55;

    direction: ltr;
}


/* خط افقی */

.faq-icon::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 4px;

    width: 14px;
    height: 2px;

    background: #102b55;

    border-radius: 2px;

    transform: translateY(-50%);

    transition:
        transform 0.35s ease,
        opacity 0.25s ease;
}


/* خط عمودی */

.faq-icon::after {
    content: "";

    position: absolute;

    top: 4px;
    left: 50%;

    width: 2px;
    height: 14px;

    background: #102b55;

    border-radius: 2px;

    transform: translateX(-50%);

    transition:
        transform 0.35s ease,
        opacity 0.25s ease;
}


/* ========================================
   ACTIVE = MINUS
======================================== */

.faq-item.active .faq-icon::after {
    opacity: 0;

    transform:
        translateX(-50%)
        scaleY(0);
}


/* ========================================
   ANSWER
======================================== */

.faq-answer {
    display: grid;

    grid-template-rows: 0fr;

    transition:
        grid-template-rows 0.4s cubic-bezier(.4, 0, .2, 1),
        opacity 0.3s ease;
    
    opacity: 0;
}


/* محتوای داخل جواب */

.faq-answer p {
    min-height: 0;
    overflow: hidden;

    margin: 0;

    padding: 0 20px;

    color: #4d596b;

    font-size: 11px;

    line-height: 2.3;

    transition:
        padding 0.4s ease;
}


/* ========================================
   ACTIVE ANSWER
======================================== */

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;

    opacity: 1;
}


.faq-item.active .faq-answer p {
    padding-bottom: 17px;
}


/* ========================================
   HOVER
======================================== */

.faq-item:not(.active):hover {
    border-color: #b9c4d3;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 560px) {

    .faq-section {
        padding: 45px 15px 55px;
    }

    .faq-container {
        gap: 30px;
    }

    .faq-intro h2 {
        font-size: 21px;
    }

    .faq-intro p {
        font-size: 10px;
    }

    .faq-question {
        min-height: 58px;

        padding: 8px 12px;

        font-size: 12px;

        gap: 8px;
    }


    .faq-answer p {
        padding-left: 15px;
        padding-right: 15px;

        font-size: 10px;

        line-height: 2.2;
    }


    .faq-item.active .faq-answer p {
        padding-bottom: 15px;
    }

}


/* ========================================
   TABLET
======================================== */

@media (max-width: 800px) {

    .faq-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .faq-intro {
        text-align: center;
        max-width: 500px;
        margin: 0 auto;
    }

    .faq-label {
        justify-content: center;
    }

    .faq-image {
        margin-top: 15px;
    }

    .faq-contact {
        max-width: 300px;
        margin: 0 auto;
    }

}


/* ========================================
   SHARED HOMEPAGE ADS (same placements as v1)
======================================== */

.mk-homepage-v2 .mk-ads-section .mk-container {
    width: min(calc(100% - 48px), var(--container-width, 1320px));
    max-width: var(--container-width, 1320px);
    margin-inline: auto;
    padding-left: 0;
    padding-right: 0;
}

.mk-homepage-v2 .media-section .mk-magazine-layout {
    width: 100%;
    margin-bottom: 75px;
    align-items: start;
}

.mk-homepage-v2 .media-section .articles-section {
    margin-bottom: 0;
}

.mk-homepage-v2 .media-section .mk-magazine-ads {
    border-right-color: rgba(255, 255, 255, 0.12);
}

.mk-homepage-v2 .mk-ad-slot img {
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .mk-homepage-v2 .media-section .mk-magazine-layout {
        margin-bottom: 50px;
    }

    .mk-homepage-v2 .media-section .mk-magazine-ads {
        border-top-color: rgba(255, 255, 255, 0.12);
    }
}

@media (max-width: 768px) {
    .mk-homepage-v2 .hero__actions {
        width: 100%;
    }

    .mk-homepage-v2 .car-prices__tabs {
        width: 100%;
        overflow-x: auto;
    }

    .mk-homepage-v2 .car-prices__tab {
        min-width: 0;
        flex: 1;
    }
}

@media (max-width: 600px) {
    .mk-homepage-v2 .compare__selectors {
        flex-direction: column;
        align-items: stretch;
    }

    .mk-homepage-v2 .compare__car-selector,
    .mk-homepage-v2 .compare__car-selector--right,
    .mk-homepage-v2 .compare__car-selector--left {
        width: 100%;
        padding: 0 0 18px;
    }

    .mk-homepage-v2 .compare__vs {
        width: 100%;
        min-width: 0;
        padding: 4px 0 16px;
    }

    .mk-homepage-v2 .compare__vs::before {
        display: none;
    }

    .mk-homepage-v2 .hero__title {
        font-size: 26px;
        line-height: 1.45;
    }
}

.mk-homepage-v2 a.hero__button--primary,
.mk-homepage-v2 a.hero__button--primary:link,
.mk-homepage-v2 a.hero__button--primary:visited,
.mk-homepage-v2 a.hero__button--primary:hover,
.mk-homepage-v2 a.hero__button--primary:focus {
    color: #ffffff;
}

.mk-homepage-v2 a.hero__button--secondary,
.mk-homepage-v2 a.hero__button--secondary:link,
.mk-homepage-v2 a.hero__button--secondary:visited,
.mk-homepage-v2 a.hero__button--secondary:hover,
.mk-homepage-v2 a.hero__button--secondary:focus {
    color: #ffffff;
}

.mk-homepage-v2 button.brands__tab {
    color: #6c7480;
    background-color: #ffffff;
    border: 1px solid #e0e3e7;
}

.mk-homepage-v2 button.brands__tab.brands__tab--active,
.mk-homepage-v2 button.brands__tab.brands__tab--active:hover {
    color: #ffffff;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.mk-homepage-v2 button.car-prices__tab {
    color: var(--color-primary);
    background-color: #ffffff;
}

.mk-homepage-v2 button.car-prices__tab.car-prices__tab--active,
.mk-homepage-v2 button.car-prices__tab.car-prices__tab--active:hover {
    color: #ffffff;
    background-color: var(--color-primary);
}