/* ===== Header layout ===== */

/* Desktop: logo — left, nav — middle, actions — right */
.header-left {
    display: none;
}

.header-right {
    flex: 1;
    margin-left: 2rem;
    justify-content: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Mobile: toggler | logo | actions — equal thirds */
@media (max-width: 991px) {
    .header-left {
        display: block;
       
    }

    .logo {
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .header-right {
        display: none;
    }

    .header-actions {
        flex: 1;
        justify-content: flex-end;
        margin-left: 0;
    }
}


/* ===== About Page ===== */

.about-intro {
    padding: 40px 0 20px;
    max-width: 760px;
}

.about-intro__title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #111;
    margin-bottom: 20px;
}

.about-intro__text p {
    font-size: 1rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 14px;
}

.about-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 36px 0 20px;
}

.about-divider__line {
    flex: 1;
    height: 1px;
    background: #d0d0d0;
}

.about-divider__text {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
    white-space: nowrap;
}

.about-catalog-lead {
    font-size: 1rem;
    line-height: 1.65;
    color: #555;
    margin-bottom: 32px;
    max-width: 680px;
}

/* Brand cards grid */

.about-brands {
    padding-bottom: 60px;
}

.about-brands__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.about-brand-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    background: #fff;
}

.about-brand-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    border-color: #bbb;
    text-decoration: none;
    color: inherit;
}

.about-brand-card__img-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f5;
}

.about-brand-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.about-brand-card:hover .about-brand-card__img-wrap img {
    transform: scale(1.04);
}

.about-brand-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.about-brand-card__name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #111;
    margin: 0 0 8px;
}

.about-brand-card__desc {
    font-size: 1rem;
    line-height: 1.55;
    color: #666;
    margin: 0 0 16px;
    flex: 1;
}

.about-brand-card__link {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent, #E63946);
    border-bottom: 1px solid currentColor;
    align-self: flex-start;
}

/* Responsive */

@media (max-width: 991px) {
    .about-brands__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .about-brands__grid {
        grid-template-columns: 1fr;
    }

    .about-intro__title {
        font-size: 1.5rem;
    }
}


/* ===== Pay Page ===== */

.pay-page__title {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #111;
    margin: 20px 0 40px;
}

.pay-section {
    margin-bottom: 56px;
}

.pay-section__title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111;
    margin: 0 0 24px;
    padding-bottom: 12px;
}

/* Order steps */

.pay-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #e0e0e0;
    border: 1px solid #e0e0e0;
}

.pay-step {
    background: #fff;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pay-step__num {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: #e8e8e8;
    letter-spacing: -0.02em;
}

.pay-step__name {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.pay-step p {
    font-size: 1rem;
    line-height: 1.65;
    color: #555;
    margin: 0;
}

/* Delivery cards */

.pay-delivery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pay-delivery-card {
    border: 1px solid #e0e0e0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pay-delivery-card__label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #999;
}

.pay-delivery-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.pay-delivery-card__price {
    margin-top: auto;
    padding-top: 14px;
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
}

.pay-delivery-card__price span {
    font-size: 1rem;
    font-weight: 400;
    color: #777;
}

.pay-delivery-card__price-note {
    margin-top: auto;
    padding-top: 14px;
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

/* Payment blocks */

.pay-payment-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.pay-payment-block {
    background: #f9f9f9;
    border-left: 3px solid #111;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pay-payment-block__name {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.pay-payment-block p {
    font-size: 1rem;
    line-height: 1.65;
    color: #444;
    margin: 0;
}

.pay-security-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
    margin-top: 4px !important;
}

.pay-note {
    font-size: 1rem;
    color: #888;
    border-top: 1px solid #e0e0e0;
    padding-top: 10px;
    margin-top: 4px !important;
}

/* Return blocks */

.pay-return-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.pay-return-block {
    padding: 24px;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pay-return-block__name {
    font-size: 1rem;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.pay-return-block p {
    font-size: 1rem;
    line-height: 1.65;
    color: #444;
    margin: 0;
}

.pay-return-block a {
    color: var(--color-accent, #E63946);
    text-decoration: underline;
}

.pay-law-note {
    font-size: 1rem;
    line-height: 1.7;
    color: #888;
    border-top: 1px solid #e0e0e0;
    padding-top: 16px;
}

/* Shared: styled list */

.pay-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pay-list li {
    font-size: 1rem;
    line-height: 1.5;
    color: #444;
    padding-left: 14px;
    position: relative;
}

.pay-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    background: #111;
    border-radius: 50%;
}

/* Responsive */

@media (max-width: 991px) {
    .pay-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .pay-delivery-grid {
        grid-template-columns: 1fr;
    }

    .pay-return-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .pay-steps {
        grid-template-columns: 1fr;
    }

    .pay-payment-grid {
        grid-template-columns: 1fr;
    }

    .pay-page__title {
        font-size: 1.5rem;
    }
}


/* ===== Contacts Page ===== */

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #e0e0e0;
    border: 1px solid #e0e0e0;
    margin-bottom: 48px;
}

.contacts-block {
    background: #fff;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contacts-block__label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
}

.contacts-block__value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
    text-decoration: none;
}

.contacts-block__value--phone:hover {
    color: var(--color-accent, #E63946);
}

.contacts-block__value p {
    margin: 0;
}

.contacts-block__note {
    font-size: 1rem;
    color: #888;
    line-height: 1.5;
    margin: 0;
}

/* Requisites */

.contacts-requisites {
    margin-bottom: 56px;
}

.contacts-requisites__title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #111;
    margin: 0 0 20px;
    padding-bottom: 12px;
}

.contacts-req-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    max-width: 560px;
}

.contacts-req-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #ebebeb;
}

.contacts-req-row dt {
    font-size: 1rem;
    color: #888;
    flex: 0 0 180px;
}

.contacts-req-row dd {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
    margin: 0;
}

/* Responsive */

@media (max-width: 767px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contacts-req-row {
        flex-direction: column;
        gap: 4px;
    }

    .contacts-req-row dt {
        flex: none;
    }
}


/* ===== Cars Catalog Page ===== */

:root {
    --color-accent-blue: #1A73E8;
}

/* Hero */

.cars-hero {
    padding: 64px 0 48px;
}

.cars-hero__title {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #111;
    margin: 0 0 16px;
}

.cars-hero__lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
    max-width: 600px;
}

/* Brands section */

.cars-brands {
    padding-bottom: 80px;
}

/* Single brand block */

.cars-brand {
    padding: 32px 24px;
    margin-bottom: 16px;
    border-radius: 6px;
}

.cars-brand--light {
    background: #f5f5f5;
}

.cars-brand--white {
    background: #fff;
}

.cars-brand__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.cars-brand__logo-link {
    flex-shrink: 0;
    height: 56px;
    display: flex;
    align-items: center;
}

.cars-brand__logo-link img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.cars-brand__all-link {
    flex-shrink: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-accent-blue);
    text-decoration: none;
    white-space: nowrap;
    padding: 10px 24px;
    border: 1px solid var(--color-accent-blue);
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.cars-brand__all-link:hover {
    background: var(--color-accent-blue);
    color: #fff;
    text-decoration: none;
}

/* Model cards */

.cars-model-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 12px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.cars-brand--light .cars-model-card {
    background: #fff;
}

.cars-model-card:hover {
    border-color: #d0d0d0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
}

.cars-model-card__img {
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.cars-model-card__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.cars-model-card__name {
    font-size: 1rem;
    font-weight: 600;
    color: #111;
}

/* Responsive */

@media (max-width: 767px) {
    .cars-hero {
        padding: 40px 0 32px;
    }

    .cars-hero__title {
        font-size: 1.8rem;
    }

    .cars-brand--light {
        padding: 24px 16px;
    }

    .cars-brand__header {
        flex-wrap: wrap;
    }

    .cars-brand__all-link {
        width: 100%;
        text-align: center;
    }
}
