/* Специфика страницы стиля */

/* =========================================================
   СТРАНИЦА СТИЛЯ
   ========================================================= */




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










/* =========================================================
   HERO СТИЛЯ
   ========================================================= */

.style-hero {
    display: grid;
    grid-template-columns:
        minmax(310px, 410px)
        minmax(0, 1fr);

    gap: 48px;

    align-items: start;

    margin-bottom: 38px;
}





/* =========================================================
   ГЛАВНОЕ ФОТО

   Показываем фото полностью по высоте.
   Если оно широкое — обрезаем края.
   Если узкое — оставляем фон по бокам.
   ========================================================= */










.style-hero__caption {
    margin-top: 9px;

    color: #8490a7;

    font-size: 13px;
    line-height: 1.35;

    text-align: center;
}


/* =========================================================
   ОСНОВНОЕ ОПИСАНИЕ
   ========================================================= */

.style-hero__content {
    min-width: 0;
}


.style-hero__title {
    margin: 0;

    color: #10201c;

    font-size: clamp(40px, 5vw, 60px);
    line-height: 1;

    letter-spacing: -0.035em;
}





.style-hero__subtitle {
    margin: 14px 0 0;

    color: #60708c;

    font-size: 22px;
    line-height: 1.3;
}


.style-hero__category {
    margin-top: 12px;

    color: #65738a;

    font-size: 15px;
}


.style-hero__category a {
    color: #08753f;

    font-weight: 600;

    border-bottom: 1px solid #87bba3;
}


.style-hero__description {
    margin-top: 24px;

    color: #536078;

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








/* =========================================================
   СРАВНЕНИЕ
   ========================================================= */

.style-comparison {
    padding: 18px 20px;

    display: grid;
    grid-template-columns:
        240px
        minmax(0, 1fr)
        auto;

    gap: 22px;

    align-items: center;

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

    background: #f5f9f6;
}


/* Левая часть */

.style-comparison__intro {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 14px;
}


.style-comparison__icon {
    display: block;

    width: 52px !important;
    height: 52px !important;

    max-width: none !important;

    flex: 0 0 52px;

    padding: 0 !important;

    object-fit: contain;

    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    outline: 0 !important;

    box-shadow: none !important;
}


.style-comparison__intro h2 {
    width: 100%;
    margin: 0;

    color: #10201c;

    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}


.style-comparison__intro p {
    margin: 6px 0 0;

    color: #74829c;

    font-size: 13px;
    line-height: 1.4;
}


/* Карточки сравниваемых стилей */




.comparison-item--current {
    border-color: #08753f;

    box-shadow:
        inset 0 0 0 1px #08753f;
}



.style-comparison__items {
    min-width: 0;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 12px;
}


.comparison-item {
    min-width: 0;
    min-height: 104px;

    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);

    align-items: center;

    gap: 12px;

    padding: 10px;

    background: #ffffff;

    border: 1px solid #e3e9e5;
    border-radius: 12px;

    overflow: hidden;
}


.comparison-item--selectable {
    appearance: none;

    width: 100%;

    font: inherit;
    text-align: left;

    cursor: pointer;

    transition:
        border-color 0.18s ease,
        background 0.18s ease,
        box-shadow 0.18s ease;
}


.comparison-item--selectable:hover {
    border-color: #9fcdb9;
}


.comparison-item--selected {
    border-color: #08753f;

    background: #f1f8f4;

    box-shadow:
        inset 0 0 0 1px #08753f;
}


.comparison-item__media {
    width: 66px;
    height: 82px;

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

    overflow: hidden;

    background: #f2f0e9;

    border-radius: 8px;
}


.comparison-item__media .comparison-item__image {
    display: block !important;

    width: auto !important;
    height: 100% !important;

    max-width: none !important;

    flex: 0 0 auto !important;
}


.comparison-item__name {
    min-width: 0;

    display: block;

    color: #17201d;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;

    white-space: normal;

    overflow-wrap: anywhere;
    word-break: normal;
}





/* Кнопка сравнения */

.style-comparison__action {
    flex: 0 0 auto;
}


.style-comparison__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0 20px;

    color: #08753f;

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

    white-space: nowrap;

    border: 1px solid #08753f;
    border-radius: 22px;

    background: #ffffff;

    transition:
        color 0.18s ease,
        background 0.18s ease;
}


.style-comparison__button:hover {
    color: #ffffff;

    background: #08753f;
}


/* =========================================================
   ОБЩИЕ ЗАГОЛОВКИ СЕКЦИЙ
   ========================================================= */

.style-section {
    margin-top: 42px;
}


.style-section__title {
    margin: 0 0 20px;

    display: flex;
    align-items: center;

    gap: 14px;

    color: #10201c;

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





/* =========================================================
   ХАРАКТЕРИСТИКИ
   ========================================================= */

.style-characteristics {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 12px;
}


.characteristic-card {
    min-height: 112px;

    padding: 18px;

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

    text-align: center;

    border: 1px solid #eceeea;
    border-radius: 13px;

    background: #ffffff;

    box-shadow:
        0 4px 16px rgba(20, 40, 30, 0.045);
}


.characteristic-card__label {
    display: block;
    width: 100%;

    color: #10201c;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}


.characteristic-card__value {
    display: block;
    width: 100%;

    margin-top: 8px;

    color: #08753f;

    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}


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

.style-content-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}


.style-content-card {
    padding: 24px;

    border: 1px solid #eceeea;
    border-radius: 14px;

    background: #ffffff;
}


.style-content-card--wide {
    grid-column: 1 / -1;
}


.style-content-card h3 {
    margin: 0 0 12px;

    color: #10201c;

    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}


.style-content-card__text {
    color: #5e6b81;

    font-size: 15px;
    line-height: 1.65;
}


.style-content-card__text p:first-child {
    margin-top: 0;
}


.style-content-card__text p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ПОХОЖИЕ СТИЛИ
   ========================================================= */

.similar-style-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}


.similar-style-card {
    min-width: 0;

    display: grid;
    grid-template-columns:
        126px
        minmax(0, 1fr);

    gap: 14px;

    padding: 8px;

    border: 1px solid #eceeea;
    border-radius: 14px;

    background: #ffffff;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}


.similar-style-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 24px rgba(20, 40, 30, 0.08);
}


/* Фото похожего стиля */

.similar-style-card__media {
    width: 118px;
    height: 130px;

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

    overflow: hidden;

    background: #f2f0e9;

    border-radius: 10px;
}





.similar-style-card__placeholder {
    padding: 10px;

    color: #a1a7a3;

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

    text-align: center;
}


.similar-style-card__content {
    min-width: 0;

    padding: 10px 7px 7px 0;
}


.similar-style-card__title {
    margin: 0;

    color: #17201d;

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


.similar-style-card__subtitle {
    margin-top: 4px;

    color: #8090aa;

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


.similar-style-card__description {
    margin-top: 10px;

    color: #68758b;

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


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









.comparison-item--selectable {
    appearance: none;

    width: 100%;

    font: inherit;
    text-align: left;

    cursor: pointer;
}


.comparison-item--selectable:hover {
    border-color: #9fcdb9;
}


.comparison-item--selected {
    border-color: #08753f;

    background: #f1f8f4;

    box-shadow:
        inset 0 0 0 1px #08753f;
}


.comparison-item--current {
    cursor: default;
}


.style-comparison__button--disabled {
    opacity: 0.45;
    cursor: default;
}
