/* Главная: витрина каталога. */

body.home {
    background: #fff;
}

body.home > .container.home-wrap {
    padding-top: 0;
    padding-bottom: 0;
    background: #fff;
}

.home {
    color: #0e2438;
}

.home-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.home-hero {
    background: #0e2438;
    color: #d5e4ef;
    margin: 0 -20px;
    padding: 24px 20px 22px;
}

.home-hero-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.home-hero h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.home-hero-head a {
    color: #8aa0b5;
    font-size: 14px;
    text-decoration: none;
}

.home-hero-head a:hover {
    color: #5ec4f2;
}

.home-find-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 12px;
}

.home-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
    flex: 1 1 140px;
}

.home-field span {
    font-size: 12px;
    font-weight: 500;
    color: #8aa0b5;
}

.home-find select {
    height: 42px;
    width: 100%;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #fff;
    color: #0e2438;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
}

.home-find select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(94, 196, 242, 0.35);
}

.home-find-row button {
    height: 42px;
    padding: 0 22px;
    border: 0;
    border-radius: 6px;
    background: #5ec4f2;
    color: #0e2438;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.home-find-row button:hover {
    background: #7ad0f5;
}

.home-section {
    padding: 32px 0 8px;
}

.home-marks-wrap {
    margin: 16px -20px 0;
    padding: 28px 20px 20px;
    background: #f4f7fa;
}

.home-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.home-head h1,
.home-head h2 {
    margin: 0;
    color: #0e2438;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.home-head > a {
    color: #8aa0b5;
    font-size: 14px;
    text-decoration: none;
}

.home-head > a:hover {
    color: #1488c4;
}

.home-cars {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-car {
    display: block;
    color: #0e2438;
    text-decoration: none;
}

.home-car:hover {
    color: #0e2438;
}

.home-car-pic {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 75%;
    overflow: hidden;
    margin-bottom: 10px;
    background: #eef3f7;
    border-radius: 8px;
}

.home-car-pic img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.home-car:hover .home-car-pic img {
    transform: scale(1.03);
    transition: transform 0.25s ease;
}

.home-car-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.home-car:hover .home-car-name {
    color: #1488c4;
}

.home-car-meta {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: #8aa0b5;
}

.home-car-price {
    display: block;
    margin-top: 2px;
    font-size: 14px;
    font-weight: 500;
}

.home-marks-filter {
    display: inline-flex;
    align-items: stretch;
    padding: 2px;
    background: #fff;
    border: 1px solid #d5dee6;
    border-radius: 8px;
}

.home-marks-filter button {
    padding: 6px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #1488c4;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.2;
    cursor: pointer;
}

.home-marks-filter button.is-active {
    background: #0e2438;
    color: #fff;
    font-weight: 600;
    cursor: default;
}

.home-marks-filter button:not(.is-active):hover {
    background: #eef6fb;
    color: #0e2438;
}

.home-marks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-marks.is-actual .home-mark:not(.is-actual) {
    display: none;
}

.home-mark a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 6px 10px;
    border-radius: 8px;
    color: #0e2438;
    text-decoration: none;
}

.home-mark a:hover {
    background: #fff;
    color: #0e2438;
}

.home-mark-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 40px;
    flex-shrink: 0;
}

.home-mark-ico img {
    display: block;
    max-height: 40px;
    max-width: 48px;
    width: auto;
    height: auto;
}

.home-mark-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
}

.home-news {
    padding: 32px 0 17px;
}

.home-news .news-on-car {
    margin: 0;
}

.home-new {
    padding-top: 37px;
    padding-bottom: 36px;
}

body.cars .home-marks-wrap {
    margin-top: 0;
}

body.cars .home-hero {
    margin-top: 0;
    background: #d5e4ef;
    color: #0e2438;
}

body.cars .home-hero h2 {
    color: #0e2438;
}

body.cars .home-hero-head a {
    color: #5a7388;
}

body.cars .home-hero-head a:hover {
    color: #1488c4;
}

body.cars .home-field span {
    color: #5a7388;
}

body.cars .home-find select {
    border-color: #c5d4e0;
}

@media only screen and (max-width: 900px) {
    .home-cars {
        grid-template-columns: repeat(4, 1fr);
    }

    .home-marks {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (max-width: 700px) {
    .home-hero {
        padding: 20px 20px 20px;
    }

    .home-field {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }

    .home-find-row button {
        width: 100%;
    }

    .home-cars {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 12px;
    }

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

    .home-news .news-tile {
        width: 50%;
    }
}

@media only screen and (max-width: 500px) {
    .home-news .news-tile {
        width: 100%;
    }
}

@media only screen and (max-width: 349px) {
    .home-cars {
        grid-template-columns: 1fr;
    }
}
