/* =========================================================
   СТРАНИЦА СРАВНЕНИЯ
   ========================================================= */




/* =========================================================
   ХЛЕБНЫЕ КРОШКИ
   ========================================================= */










/* =========================================================
   ЗАГОЛОВОК
   ========================================================= */

.comparison-page__header {
    margin-bottom: 28px;
}





.comparison-page__title::after {
    content: "";

    display: block;

    width: 165px;
    height: 4px;

    margin-top: 13px;

    background: #f2a20d;

    border-radius: 4px;
}


/*
   Не ограничиваем текст искусственно узкой шириной.
   На десктопе он спокойно помещается в одну нормальную строку.
*/

.comparison-page__intro {
    width: 100%;
    max-width: none;

    margin: 20px 0 0;

    color: #74829c;

    font-size: 17px;
    line-height: 1.45;
}


/* =========================================================
   ВЫБОР СТИЛЕЙ
   ========================================================= */

.comparison-selector {
    padding: 22px;

    border: 1px solid #dce9e1;
    border-radius: 15px;

    background: #f5f9f6;
}


.comparison-selector__fields {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 14px;
}


.comparison-selector__field {
    min-width: 0;
}


.comparison-selector__field label {
    display: block;
    width: 100%;

    margin-bottom: 8px;

    color: #34423d;

    font-family: inherit !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}


.comparison-selector__field select {
    width: 100%;
    height: 44px;

    padding: 0 36px 0 12px;

    color: #17201d;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400;
    line-height: normal;

    border: 1px solid #d8dfda;
    border-radius: 9px;

    background-color: #ffffff;

    cursor: pointer;
}


.comparison-selector__field select option {
    font-family: inherit !important;
    font-size: 14px;
}


.comparison-selector__field select:focus {
    outline: 2px solid rgba(8, 117, 63, 0.15);
    outline-offset: 1px;

    border-color: #87bba3;
}


.comparison-selector__button {
    margin-top: 16px;

    padding: 11px 28px;

    color: #ffffff;

    font-family: inherit !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;

    border: 0;
    border-radius: 24px;

    background: #08753f;

    cursor: pointer;

    transition: background 0.18s ease;
}


.comparison-selector__button:hover {
    background: #066735;
}


/* =========================================================
   ЗАГОЛОВКИ РАЗДЕЛОВ
   ========================================================= */

.comparison-main {
    margin-top: 38px;
}


.comparison-section-title {
    margin: 0 0 20px;

    display: flex;
    align-items: center;

    gap: 14px;

    color: #10201c;

    font-size: 30px;
    line-height: 1.2;
}





/* =========================================================
   ОСНОВНАЯ ТАБЛИЦА
   ========================================================= */

.comparison-table-wrapper {
    overflow-x: auto;

    border: 1px solid #e7ebe8;
    border-radius: 15px;

    background: #ffffff;
}


.comparison-table {
    width: 100%;
    min-width: 760px;

    border-collapse: collapse;

    background: #ffffff;
}


.comparison-table th,
.comparison-table td {
    padding: 16px;

    vertical-align: middle;

    border-right: 1px solid #ecefec;
    border-bottom: 1px solid #ecefec;
}


.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
    border-bottom: 0;
}


.comparison-table th:last-child,
.comparison-table td:last-child {
    border-right: 0;
}


.comparison-table tbody th,
.comparison-table__label {
    width: 180px;

    background: #f8faf8;

    color: #526079;

    text-align: left;

    font-size: 14px;
    font-weight: 600;
}


.comparison-table thead th:not(:first-child) {
    min-width: 210px;

    vertical-align: top;

    text-align: left;
}


/* =========================================================
   ФОТО СТИЛЯ В ТАБЛИЦЕ

   Полная высота изображения.
   Лишнее по ширине обрезается.
   Узкие изображения получают фон по бокам.
   ========================================================= */

.comparison-table__style {
    min-width: 0;
}


.comparison-table__media {
    width: 150px;
    height: 118px;

    margin-bottom: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #f2f0e9;

    border-radius: 10px;
}





.comparison-table__placeholder {
    padding: 10px;

    color: #a1a7a3;

    font-size: 12px;
    line-height: 1.3;

    text-align: center;
}


.comparison-table__style-name {
    display: block;

    color: #17201d;

    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}


.comparison-table__style-name:hover {
    color: #08753f;
}


.comparison-table__style-en {
    display: block;

    margin-top: 4px;

    color: #8490a7;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
}


.comparison-table__category {
    color: #08753f;

    font-size: 14px;
    font-weight: 600;
}


.comparison-table__category:hover {
    text-decoration: underline;
}


.comparison-table__value {
    color: #08753f;

    font-size: 16px;
    font-weight: 700;
}


/* =========================================================
   ПОДРОБНОЕ СРАВНЕНИЕ

   Теперь это таблица:
   каждая характеристика является отдельной общей строкой.
   Поэтому начало каждого параметра у всех стилей
   находится строго на одной высоте.
   ========================================================= */

.comparison-details {
    margin-top: 42px;
}


.comparison-details__wrapper {
    overflow-x: auto;

    border: 1px solid #e7ebe8;
    border-radius: 15px;

    background: #ffffff;
}


.comparison-details__table {
    width: 100%;
    min-width: 820px;

    border-collapse: collapse;

    table-layout: fixed;
}


.comparison-details__table th,
.comparison-details__table td {
    padding: 20px;

    vertical-align: top;

    border-right: 1px solid #ecefec;
    border-bottom: 1px solid #ecefec;
}


.comparison-details__table th:last-child,
.comparison-details__table td:last-child {
    border-right: 0;
}


.comparison-details__table tbody tr:last-child th,
.comparison-details__table tbody tr:last-child td {
    border-bottom: 0;
}


/* Заголовки стилей */

.comparison-details__table thead th {
    background: #f8faf8;

    color: #17201d;

    font-size: 16px;
    font-weight: 700;

    text-align: left;
}


.comparison-details__label {
    width: 190px;

    color: #526079 !important;

    font-size: 14px !important;
}


/* Название характеристики */

.comparison-details__table tbody th {
    width: 190px;

    background: #f8faf8;

    color: #17201d;

    font-size: 15px;
    font-weight: 700;

    text-align: left;
}


/* Текст характеристики */

.comparison-details__text {
    color: #5e6b81;

    font-size: 14px;
    line-height: 1.6;
}


.comparison-details__text p {
    margin: 0 0 10px;
}


.comparison-details__text p:last-child {
    margin-bottom: 0;
}


.comparison-details__text ul,
.comparison-details__text ol {
    margin-top: 8px;
    margin-bottom: 8px;

    padding-left: 20px;
}


.comparison-details__empty {
    color: #a0a8b3;

    font-size: 16px;
}


/* =========================================================
   СООБЩЕНИЕ
   ========================================================= */

.comparison-message {
    margin-top: 30px;

    padding: 26px;

    color: #74829c;

    text-align: center;

    border: 1px dashed #cbd8d0;
    border-radius: 14px;
}


/* =========================================================
   АДАПТИВНОСТЬ
   ========================================================= */


/* =========================================================
   ВЫРАВНИВАНИЕ СТРАНИЦЫ СРАВНЕНИЯ
   ========================================================= */

.comparison-selector__field label {
    width: 100%;
    margin-bottom: 8px;
    color: #34423d;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.comparison-table thead th:not(:first-child) {
    text-align: center;
}

.comparison-table__style,
.comparison-table__style-name,
.comparison-table__style-en {
    text-align: center;
}

.comparison-table__media {
    margin-left: auto;
    margin-right: auto;
}

.comparison-table tbody td,
.comparison-table__value {
    text-align: center;
}

.comparison-details__table thead th:not(:first-child) {
    text-align: center;
}
