/* Сравнение автомобилей (body.compare на /compare/). */

body.compare > .container.compare-container {
    padding-top: 12px;
    padding-bottom: 36px;
    background: #fff;
    color: #0e2438;
}

body.compare > .container.compare-container.is-loading {
    pointer-events: none;
    opacity: 0.58;
}

body.compare .site-header,
body.compare .site-header *,
body.compare table#compare__table.cmp-table thead,
body.compare table#compare__table.cmp-table thead * {
    -webkit-transition: none !important;
    transition: none !important;
}

body.compare .crumbs-wrap {
    display: none;
}

body.compare .crumbs a {
    color: #8aa0b5;
}

body.compare .crumbs a:hover {
    color: #1488c4;
}

body.compare .compare-container > h1 {
    margin: 4px 0 18px;
    color: #0e2438;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.3;
    text-align: left;
}

body.compare .compare-container > h1 span {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    color: #5a7388;
    font-weight: 400;
    font-size: 0.86em;
    line-height: 1.4;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body.compare .compare-wrap {
    max-width: 640px;
    padding: 22px 22px 24px;
    background: #f4f7fa;
    border: 1px solid #e2eaf0;
    border-radius: 8px;
}

body.compare .compare-wrap p {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.5;
    color: #5a7388;
}

body.compare a.add-compare-start {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 22px;
    margin: 0;
    border-radius: 6px;
    background: #5ec4f2;
    color: #0e2438;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

body.compare a.add-compare-start:before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    background:
        linear-gradient(#0e2438, #0e2438) center / 12px 2px no-repeat,
        linear-gradient(#0e2438, #0e2438) center / 2px 12px no-repeat;
}

body.compare a.add-compare-start:hover {
    background: #7ad0f5;
    color: #0e2438;
}

body.compare .cmp-board {
    position: relative;
    margin-left: -20px;
    margin-right: -20px;
}

body.compare .cmp-scroll {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 6;
    height: 0;
    pointer-events: none;
}

body.compare .cmp-scroll.is-off {
    display: none;
}

body.compare .cmp-scroll-btn,
body.compare .cmp-add {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    outline: none;
}

body.compare .cmp-scroll-btn:focus,
body.compare .cmp-scroll-btn:active,
body.compare .cmp-add:focus,
body.compare .cmp-add:active {
    outline: none;
}

body.compare .cmp-scroll-btn::-moz-focus-inner,
body.compare .cmp-add::-moz-focus-inner {
    border: 0;
    padding: 0;
}

body.compare .cmp-scroll-btn {
    pointer-events: auto;
    position: absolute;
    top: 168px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid #d5dee6;
    border-radius: 50%;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 16px;
    box-shadow: 0 4px 16px rgba(14, 36, 56, 0.16);
    cursor: pointer;
}

body.compare .cmp-scroll-btn--prev {
    left: 208px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230e2438' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' d='M10 3.5L5.5 8l4.5 4.5'/%3E%3C/svg%3E");
}

body.compare .cmp-scroll-btn--next {
    right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230e2438' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' d='M6 3.5L10.5 8 6 12.5'/%3E%3C/svg%3E");
}

body.compare .cmp-scroll-btn:hover {
    border-color: #5ec4f2;
    background-color: #eef6fb;
}

body.compare .cmp-scroll-btn[disabled] {
    display: none;
}

body.compare .compare-result-wrap.cmp-wrap {
    padding: 0 0 32px;
    font-size: 14px;
    overflow: visible;
    overflow-x: auto;
    scrollbar-width: none;
}

body.compare .compare-result-wrap.cmp-wrap::-webkit-scrollbar {
    display: none;
}

body.compare table#compare__table.cmp-table {
    display: table;
    table-layout: fixed;
    width: max-content;
    min-width: 0;
    max-width: none;
    border-collapse: separate;
    border-spacing: 0;
    line-height: 1.4;
}

body.compare table#compare__table.cmp-table thead {
    background: #fff;
}

body.compare table#compare__table.cmp-table thead.fixed {
    position: fixed;
    box-sizing: border-box;
    top: 56px;
    z-index: 8;
    margin-left: 0;
    padding: 0;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    background: #fff;
    box-shadow: 0 8px 20px rgba(14, 36, 56, 0.12);
}

body.compare table#compare__table.cmp-table thead.fixed::-webkit-scrollbar {
    display: none;
}

body.header-compact.compare table#compare__table.cmp-table thead.fixed {
    top: 40px;
}

body.compare table#compare__table.cmp-table .cmp-add-th {
    box-sizing: border-box;
    width: 196px;
    min-width: 196px;
    max-width: 196px;
    height: 1px;
    padding: 0 12px 12px 20px;
    vertical-align: stretch;
    background: #fff;
    overflow: visible;
}

body.compare table#compare__table.cmp-table .cmp-car-th {
    box-sizing: border-box;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    height: 1px;
    padding: 0 6px 12px;
    vertical-align: stretch;
    text-align: left;
    background: #fff;
}

body.compare .cmp-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 16px 12px;
    border: 1px dashed #c5d4e0;
    border-radius: 10px;
    background: #f4f7fa;
    color: #0e2438;
    font: 600 13px/1.3 inherit;
    text-align: center;
    cursor: pointer;
}

body.compare .cmp-add:before {
    content: '';
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background:
        linear-gradient(#0e2438, #0e2438) center / 14px 2px no-repeat,
        linear-gradient(#0e2438, #0e2438) center / 2px 14px no-repeat,
        #fff;
    border: 1px solid #d5dee6;
}

body.compare .cmp-add:hover {
    border-color: #5ec4f2;
    background: #eef6fb;
}

body.compare .cmp-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: 100%;
    position: relative;
    padding: 8px 8px 10px;
    border: 1px solid #e2eaf0;
    border-radius: 10px;
    background: #fff;
    text-align: left;
}

body.compare .cmp-head {
    position: relative;
    margin: 0 0 10px;
}

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

body.compare .cmp-pic img {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

body.compare .cmp-name {
    display: block;
    margin: 0 0 4px;
    color: #0e2438;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
}

body.compare .cmp-name:hover {
    color: #1488c4;
}

body.compare .cmp-trim {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #8aa0b5;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    text-decoration: none;
}

body.compare .cmp-trim:hover {
    color: #1488c4;
}

body.compare .cmp-trim-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0 0 6px;
}

body.compare .cmp-trim-caret {
    flex: 0 0 18px;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    margin: -2px 0 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%238aa0b5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    cursor: pointer;
}

body.compare .cmp-trim-caret:hover,
body.compare .cmp-trim-wrap.is-open .cmp-trim-caret {
    background-color: #eef6fb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%231488c4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M2.5 4.5L6 8l3.5-3.5'/%3E%3C/svg%3E");
}

body.compare .cmp-kt-dd {
    display: none;
    box-sizing: border-box;
    z-index: 240;
    max-height: 280px;
    overflow: auto;
    padding: 4px 0;
    border: 1px solid #e2eaf0;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(14, 36, 56, 0.18);
}

body.compare .cmp-kt-item {
    display: flex;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
    width: 100%;
    padding: 7px 8px 7px 10px;
    color: #0e2438;
    font-size: 12px;
    line-height: 1.3;
    cursor: pointer;
}

body.compare .cmp-kt-item:hover {
    background: #eef6fb;
}

body.compare .cmp-kt-item.is-current {
    background: #f4fafd;
}

body.compare .cmp-kt-check {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
}

body.compare .cmp-kt-item.is-current .cmp-kt-check {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%231488c4' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' d='M2 6.2l2.6 2.6L10 3.5'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

body.compare .cmp-kt-item-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.compare .cmp-kt-item-price {
    flex: 0 0 auto;
    color: #0e2438;
    font-weight: 600;
    white-space: nowrap;
}

body.compare .cmp-kt-add {
    flex: 0 0 22px;
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    border: 1px solid #d5dee6;
    border-radius: 6px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%230e2438' stroke-width='1.8' stroke-linecap='round' d='M6 2.2v8M2.2 6h8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    cursor: pointer;
}

body.compare .cmp-kt-add:hover {
    border-color: #5ec4f2;
    background-color: #eef6fb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%231488c4' stroke-width='1.8' stroke-linecap='round' d='M6 2.2v8M2.2 6h8'/%3E%3C/svg%3E");
}

body.compare .cmp-kt-add-slot {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
}

body.compare .cmp-price {
    font-size: 15px;
    font-weight: 600;
    color: #0e2438;
    text-align: left;
}

body.compare .cmp-del {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 1;
    width: 28px;
    height: 28px;
    border: 1px solid #d5dee6;
    border-radius: 8px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230e2438' stroke-width='1.75' stroke-linecap='round' d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 16px;
}

body.compare .cmp-del:hover {
    border-color: #5ec4f2;
    background-color: #eef6fb;
}

body.compare table#compare__table.cmp-table tbody th,
body.compare table#compare__table.cmp-table tbody td {
    padding: 9px 10px;
    border-bottom: 1px solid #d6e4f0;
    vertical-align: top;
    background: #fff;
}

body.compare table#compare__table.cmp-table tbody th {
    box-sizing: border-box;
    width: 196px;
    min-width: 196px;
    max-width: 196px;
    padding-left: 20px;
    color: #5a7388;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}

body.compare table#compare__table.cmp-table tbody td {
    box-sizing: border-box;
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    color: #0e2438;
    font-size: 14px;
}

body.compare table#compare__table.cmp-table tbody tr.cmp-row.is-diff th,
body.compare table#compare__table.cmp-table tbody tr.cmp-row.is-diff td {
    background: #eaf6fb;
}

body.compare table#compare__table.cmp-table tbody tr.cmp-row.is-same th,
body.compare table#compare__table.cmp-table tbody tr.cmp-row.is-same td {
    background: #f8f4e0;
}

body.compare table#compare__table.cmp-table tbody tr.cmp-row:hover {
    background: none;
}

body.compare table#compare__table.cmp-table tbody tr.cmp-row:hover td {
    background: #d2f1fb;
}

body.compare table#compare__table.cmp-table tbody tr.cmp-row.is-diff:hover td {
    background: #d2f1fb;
}

body.compare table#compare__table.cmp-table tbody tr.cmp-row.is-same:hover td {
    background: #eee4c0;
}

body.compare table#compare__table.cmp-table tbody tr.cmp-h2 th,
body.compare table#compare__table.cmp-table tbody tr.cmp-h2 td {
    padding-top: 28px;
    padding-bottom: 8px;
    border-bottom: 1px solid #d6e4f0;
    background: #fff;
}

body.compare table#compare__table.cmp-table tbody tr.cmp-h2 th {
    color: #0e2438;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

body.compare table#compare__table.cmp-table tbody tr.cmp-h3 th,
body.compare table#compare__table.cmp-table tbody tr.cmp-h3 td {
    padding-top: 16px;
    padding-bottom: 6px;
    border-bottom: 1px solid #d6e4f0;
    background: #fff;
}

body.compare table#compare__table.cmp-table tbody tr.cmp-h3 th {
    color: #0e2438;
    font-size: 14px;
    font-weight: 600;
}

body.compare table#compare__table.cmp-table thead th:first-child,
body.compare table#compare__table.cmp-table tbody th {
    position: sticky;
    left: 0;
    z-index: 2;
}

body.compare table#compare__table.cmp-table thead th:first-child {
    z-index: 4;
}

body.compare table#compare__table.cmp-table thead.fixed .cmp-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 6px;
}

body.compare table#compare__table.cmp-table thead.fixed .cmp-pic {
    display: block;
    flex: 0 0 67px;
    box-sizing: border-box;
    width: 67px;
    height: 50px;
    padding-bottom: 0;
    border-radius: 6px;
}

body.compare table#compare__table.cmp-table thead.fixed .cmp-pic img {
    display: block;
}

body.compare table#compare__table.cmp-table thead.fixed .cmp-add {
    min-height: 0;
    padding: 10px 8px;
    gap: 6px;
}

body.compare table#compare__table.cmp-table thead.fixed .cmp-add:before {
    width: 24px;
    height: 24px;
}

body.compare table#compare__table.cmp-table thead.fixed .cmp-name,
body.compare table#compare__table.cmp-table thead.fixed .cmp-trim,
body.compare table#compare__table.cmp-table thead.fixed .cmp-price {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.compare table#compare__table.cmp-table thead.fixed .cmp-del {
    position: static;
    flex: 0 0 28px;
    margin-left: auto;
}

body.compare table#compare__table.cmp-table thead.fixed .cmp-add-th,
body.compare table#compare__table.cmp-table thead.fixed .cmp-car-th {
    padding-bottom: 8px;
}

body.compare table#compare__table.cmp-table thead.fixed .cmp-scroll-btn {
    top: 28px;
}

body.compare .modal-box-shadow {
    background: #0e2438;
    opacity: 0.45;
    z-index: 210;
}

body.compare .makes-modal-box.cmp-pick {
    top: 56px;
    left: 50%;
    width: 920px;
    margin-left: -460px;
    height: auto;
    max-height: calc(100vh - 72px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px 20px 18px;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(14, 36, 56, 0.28);
    z-index: 220;
}

body.header-compact.compare .makes-modal-box.cmp-pick {
    top: 44px;
    max-height: calc(100vh - 56px);
}

body.compare .cmp-pick-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px 12px;
    flex: 0 0 auto;
    min-height: 44px;
    margin: 0 0 12px;
    padding: 0;
    position: relative;
}

body.compare .cmp-pick-tools {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin: 0;
}

body.compare .cmp-pick-bar .marks-filter,
body.compare .makes-modal-box.cmp-pick .marks-filter {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    margin: 0;
    position: static;
    top: auto;
}

body.compare .cmp-pick-bar h2,
body.compare .makes-modal-box.cmp-pick h2 {
    margin: 0;
    text-align: left;
    color: #0e2438;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    flex: 1 1 0;
    min-width: 0;
}

body.compare .cmp-pick-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 0;
    min-width: 0;
}

body.compare .cmp-pick-brand img {
    display: block;
    height: 32px;
    width: auto;
    max-width: 80px;
}

body.compare .cmp-pick-brand h2 {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.compare .cmp-pick .modal-close,
body.compare .cmp-pick .modal-prev {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    flex: 0 0 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #d5dee6;
    border-radius: 8px;
    background-color: #f4f7fa;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    cursor: pointer;
}

body.compare .cmp-pick .modal-close {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    margin: 0;
}

body.compare .cmp-pick .modal-close {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230e2438' stroke-width='1.75' stroke-linecap='round' d='M4 4l8 8M12 4l-8 8'/%3E%3C/svg%3E");
}

body.compare .cmp-pick .modal-prev {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230e2438' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' d='M10 3.5L5.5 8l4.5 4.5'/%3E%3C/svg%3E");
}

body.compare .cmp-pick .modal-close:before,
body.compare .cmp-pick .modal-close:after,
body.compare .cmp-pick .modal-prev > span,
body.compare .cmp-pick .modal-prev > span:before {
    display: none;
    content: none;
    border: 0;
    background: none;
}

body.compare .cmp-pick .modal-close:hover,
body.compare .cmp-pick .modal-prev:hover {
    border-color: #5ec4f2;
    background-color: #eef6fb;
}

body.compare .cmp-body {
    flex: 1 1 auto;
    overflow: auto;
    min-height: 0;
    padding: 0 4px 4px 0;
}

body.compare .cmp-pick .marks-filter {
    display: inline-flex;
    align-items: stretch;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
    padding: 2px;
    background: #f4f7fa;
    border: 1px solid #d5dee6;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
}

body.compare .cmp-pick .marks-filter__btn {
    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;
}

body.compare .cmp-pick .marks-filter__btn:hover {
    background: #eef6fb;
    color: #0e2438;
}

body.compare .cmp-pick .marks-filter__btn.is-active {
    background: #0e2438;
    color: #fff;
    font-weight: 600;
    cursor: default;
}

body.compare .cmp-search {
    display: block;
    width: 100%;
    height: 40px;
    margin: 0 0 12px;
    padding: 0 12px;
    border: 1px solid #d5dee6;
    border-radius: 8px;
    background: #fff;
    color: #0e2438;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
}

body.compare .cmp-search:focus {
    outline: none;
    border-color: #5ec4f2;
    box-shadow: 0 0 0 3px rgba(94, 196, 242, 0.35);
}

body.compare .cmp-pick .makes-modal-wrap {
    column-count: auto;
    padding: 0;
}

body.compare .cmp-marks {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px 8px;
    margin: 0;
    padding: 0;
}

body.compare .cmp-mark {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
}

body.compare .cmp-mark:hover {
    background: #f4f7fa;
}

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

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

body.compare .cmp-mark-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    color: #0e2438;
}

body.compare .cmp-pick .marks-list--actual .make-mainpage:not(.make-actual),
body.compare .cmp-pick .marks-list--actual .cmp-car:not(.make-actual),
body.compare .cmp-pick .marks-list--actual .cmp-kt-row:not(.make-actual),
body.compare .cmp-marks li.is-hidden-search,
body.compare .cmp-cars li.is-hidden-search {
    display: none;
}

body.compare .cmp-cars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 12px;
    margin: 0;
    padding: 0;
}

body.compare .cmp-car {
    display: block;
    color: #0e2438;
    cursor: pointer;
}

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

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

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

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

body.compare .cmp-car:hover .cmp-car-name {
    color: #1488c4;
}

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

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

body.compare .cmp-kt {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
    padding: 0;
}

body.compare .cmp-kt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
}

body.compare .cmp-kt-row:hover {
    background: #eef6fb;
}

body.compare .cmp-kt-row.is-in {
    background: #f4f7fa;
}

body.compare .cmp-kt-main {
    min-width: 0;
}

body.compare .cmp-kt-name {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #0e2438;
}

body.compare .cmp-kt-meta {
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.4;
    color: #8aa0b5;
}

body.compare .cmp-kt-price {
    flex: 0 0 auto;
    font-size: 15px;
    font-weight: 600;
    color: #0e2438;
    white-space: nowrap;
}

body.compare .cmp-kt-price span {
    font-weight: 500;
    color: #8aa0b5;
}

@media only screen and (max-width: 980px) {
    body.compare .makes-modal-box.cmp-pick {
        width: calc(100% - 24px);
        margin-left: 0;
        left: 12px;
        transform: none;
    }

    body.compare .cmp-marks,
    body.compare .cmp-cars {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media only screen and (max-width: 900px) {
    body.compare .cmp-board {
        margin-left: -10px;
        margin-right: -10px;
    }
}

@media only screen and (max-width: 700px) {
    body.compare .makes-modal-box.cmp-pick {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        max-height: none;
        margin-left: 0;
        border-radius: 0;
    }

    body.compare .cmp-pick-bar {
        align-items: center;
    }

    body.compare .cmp-marks,
    body.compare .cmp-cars {
        grid-template-columns: repeat(2, 1fr);
    }

    body.compare table#compare__table.cmp-table thead.fixed {
        position: fixed;
        top: 50px;
        margin-left: 0;
        min-height: 0;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scrollbar-width: none;
        box-shadow: none;
        border-bottom: 1px solid #d6e4f0;
    }

    body.header-compact.compare table#compare__table.cmp-table thead.fixed {
        top: 40px;
    }

    body.compare .cmp-wrap {
        --cmp-col: 150px;
        --cmp-view: 100%;
        --cmp-n: 1;
        --cmp-label: min(var(--cmp-view), calc(var(--cmp-n) * var(--cmp-col)));
    }

    body.compare table#compare__table.cmp-table {
        display: block;
        width: max-content;
    }

    body.compare table#compare__table.cmp-table thead,
    body.compare table#compare__table.cmp-table tbody {
        display: block;
    }

    body.compare table#compare__table.cmp-table tbody {
        padding-top: 8px;
    }

    body.compare table#compare__table.cmp-table thead {
        padding-bottom: 0;
        border-bottom: 1px solid #d6e4f0;
    }

    body.compare table#compare__table.cmp-table thead tr {
        display: flex;
        align-items: stretch;
        width: max-content;
    }

    body.compare table#compare__table.cmp-table thead th.cmp-add-th {
        position: sticky;
        left: 0;
        z-index: 7;
        flex: none;
        align-self: stretch;
        width: 0;
        min-width: 0;
        max-width: 0;
        height: auto;
        padding: 0;
        overflow: visible;
        background: transparent;
        pointer-events: none;
    }

    body.compare table#compare__table.cmp-table .cmp-car-th {
        flex: 0 0 var(--cmp-col);
        width: var(--cmp-col);
        min-width: var(--cmp-col);
        max-width: var(--cmp-col);
        height: auto;
        padding-left: 4px;
        padding-right: 4px;
        border-right: 1px solid #e2eaf0;
    }

    body.compare table#compare__table.cmp-table .cmp-car-th:last-child {
        border-right: 0;
    }

    body.compare .cmp-card {
        padding: 8px 8px 10px;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    body.compare .cmp-add {
        pointer-events: auto;
        position: absolute;
        left: auto;
        right: 8px;
        top: calc(100% + 8px);
        bottom: auto;
        z-index: 7;
        display: block;
        -webkit-flex: none;
        flex: none;
        -webkit-flex-shrink: 0;
        flex-shrink: 0;
        box-sizing: border-box;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        max-width: 44px;
        max-height: 44px;
        padding: 0;
        gap: 0;
        font-size: 0;
        line-height: 0;
        color: transparent;
        overflow: visible;
        border: 1px solid #c5d4e0;
        border-radius: 8px;
        background:
            linear-gradient(#0e2438, #0e2438) center / 18px 2px no-repeat,
            linear-gradient(#0e2438, #0e2438) center / 2px 18px no-repeat,
            #fff;
        box-shadow: none;
    }

    body.compare .cmp-add:hover {
        border: 1px solid #5ec4f2;
        background:
            linear-gradient(#0e2438, #0e2438) center / 18px 2px no-repeat,
            linear-gradient(#0e2438, #0e2438) center / 2px 18px no-repeat,
            #eef6fb;
    }

    body.compare .cmp-add:before {
        display: none;
        content: none;
        width: 0;
        height: 0;
    }

    body.compare .cmp-add:hover:before {
        border-color: #5ec4f2;
    }

    body.compare .cmp-scroll-btn {
        box-sizing: border-box;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        max-width: 44px;
        max-height: 44px;
        background-size: 18px 16px;
    }

    body.compare .cmp-scroll-btn--prev {
        left: 8px;
    }

    body.compare table#compare__table.cmp-table thead.fixed .cmp-scroll-btn {
        top: 17px;
    }

    body.compare table#compare__table.cmp-table thead.fixed th.cmp-add-th {
        position: sticky;
        left: 0;
        width: 0;
        min-width: 0;
        max-width: 0;
        height: auto;
        padding: 0;
    }

    body.compare table#compare__table.cmp-table thead.fixed .cmp-add {
        position: absolute;
        left: auto;
        right: 8px;
        top: calc(100% + 8px);
        bottom: auto;
        padding: 0;
        min-width: 44px;
        min-height: 44px;
        width: 44px;
        height: 44px;
        border: 1px solid #c5d4e0;
        background:
            linear-gradient(#0e2438, #0e2438) center / 18px 2px no-repeat,
            linear-gradient(#0e2438, #0e2438) center / 2px 18px no-repeat,
            #fff;
        box-shadow: 0 3px 10px rgba(14, 36, 56, 0.4);
    }

    body.compare .cmp-add.is-under {
        box-shadow: 0 3px 10px rgba(14, 36, 56, 0.4);
    }

    body.compare table#compare__table.cmp-table thead.fixed .cmp-add:before {
        display: none;
        content: none;
        width: 0;
        height: 0;
    }

    body.compare table#compare__table.cmp-table .cmp-car-th,
    body.compare table#compare__table.cmp-table tbody td {
        width: var(--cmp-col);
        min-width: var(--cmp-col);
        max-width: var(--cmp-col);
    }

    body.compare table#compare__table.cmp-table tbody tr.cmp-h2,
    body.compare table#compare__table.cmp-table tbody tr.cmp-h3 {
        display: block;
        width: max-content;
        min-width: 100%;
        font-size: 0;
    }

    body.compare table#compare__table.cmp-table tbody tr.cmp-row {
        display: grid;
        grid-template-columns: repeat(var(--cmp-n), var(--cmp-col));
        justify-content: start;
        align-items: stretch;
        width: max-content;
        min-width: max-content;
    }

    body.compare table#compare__table.cmp-table tbody tr.cmp-row th,
    body.compare table#compare__table.cmp-table tbody tr.cmp-h2 th,
    body.compare table#compare__table.cmp-table tbody tr.cmp-h3 th {
        display: block;
        position: sticky;
        left: 0;
        z-index: 3;
        box-sizing: border-box;
        width: var(--cmp-label);
        min-width: 0;
        max-width: var(--cmp-label);
        justify-self: start;
        padding: 8px 16px 6px;
        font-size: 13px;
        color: #0e2438;
        text-align: left;
        background: transparent;
        border-bottom: 1px solid #d6e4f0;
    }

    body.compare table#compare__table.cmp-table tbody tr.cmp-h2 th {
        padding-top: 8px;
        padding-bottom: 6px;
        color: #0e2438;
        font-size: 18px;
        font-weight: 700;
        background: transparent;
        border-bottom: 1px solid #d6e4f0;
    }

    body.compare table#compare__table.cmp-table tbody tr.cmp-h3 th {
        padding-top: 14px;
        color: #0e2438;
        font-size: 14px;
        font-weight: 600;
        background: transparent;
    }

    body.compare table#compare__table.cmp-table tbody tr.cmp-h2 td,
    body.compare table#compare__table.cmp-table tbody tr.cmp-h3 td {
        display: none;
    }

    body.compare table#compare__table.cmp-table tbody tr.cmp-row th {
        grid-column: 1 / -1;
        width: var(--cmp-label);
        min-width: 0;
        max-width: var(--cmp-label);
        justify-self: start;
    }

    body.compare table#compare__table.cmp-table tbody tr.cmp-row td {
        display: block;
        box-sizing: border-box;
        width: var(--cmp-col);
        min-width: var(--cmp-col);
        max-width: var(--cmp-col);
        padding: 8px 10px 12px;
        font-size: 14px;
        border-bottom: 1px solid #d6e4f0;
        border-right: 1px solid #d6e4f0;
    }

    body.compare table#compare__table.cmp-table tbody tr.cmp-row td:last-child {
        border-right: 0;
    }

    body.compare table#compare__table.cmp-table tbody tr.cmp-row:hover th {
        background: transparent;
    }

    body.compare table#compare__table.cmp-table tbody tr.cmp-row.is-diff th,
    body.compare table#compare__table.cmp-table tbody tr.cmp-row.is-diff td {
        background: #eaf6fb;
    }

    body.compare table#compare__table.cmp-table tbody tr.cmp-row.is-same th,
    body.compare table#compare__table.cmp-table tbody tr.cmp-row.is-same td {
        background: #f8f4e0;
    }
}

@media only screen and (max-width: 500px) {
    body.compare .cmp-pick-bar {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    body.compare .cmp-pick .modal-prev {
        order: 1;
    }

    body.compare .cmp-pick-bar > h2,
    body.compare .cmp-pick-brand {
        order: 2;
        flex: 1 1 0;
        min-width: 0;
    }

    body.compare .cmp-pick-bar > .modal-close {
        order: 3;
        margin-left: auto;
    }

    body.compare .cmp-pick-tools {
        flex: 0 0 100%;
        order: 4;
        margin: 0;
        justify-content: flex-start;
    }
}
