/* =========================================================
   HERO
   ========================================================= */

.home-hero {
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            #ffffff 48%,
            #faf7ef 100%
        );
}


.home-hero__inner {
    position: relative;

    min-height: 390px;

    display: flex;
    align-items: center;

    padding-top: 38px;
    padding-bottom: 34px;
}


/* =========================================================
   HERO — ТЕКСТ
   ========================================================= */

.home-hero__content {
    position: relative;
    z-index: 3;

    width: 57%;
    max-width: 690px;
}


.home-hero__title {
    margin: 0 0 20px;

    color: #10201c;

    font-size: 58px;
    font-weight: 800;
    line-height: 0.96;

    letter-spacing: -0.035em;
}


.home-hero__title-line {
    display: block;
    white-space: nowrap;
}


.home-hero__accent-word {
    position: relative;

    display: inline-block;

    padding-bottom: 10px;
}


.home-hero__accent-word::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 4px;

    background: #f2a20d;

    border-radius: 4px;
}


.home-hero__accent-word + .home-hero__accent-word {
    margin-left: 14px;
}


.home-hero__description {
    max-width: 590px;

    margin: 0;

    color: #68758d;

    font-size: 16px;
    line-height: 1.35;
}


/* =========================================================
   HERO — ИНФОРМАЦИОННЫЕ БЛОКИ
   ========================================================= */

.home-hero__stats {
    width: 100%;

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

    gap: 18px;

    margin-top: 30px;
}


.home-stat {
    min-width: 0;

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

    align-items: start;

    gap: 11px;
}


/*
   Здесь специально жёстко сбрасываем старое оформление.
   Если раньше на .home-stat__icon была рамка,
   она больше не должна отображаться.
*/

.home-stat__icon {
    display: block;

    width: 44px !important;
    height: 44px !important;

    max-width: none !important;

    padding: 0 !important;
    margin: 0 !important;

    object-fit: contain;

    background: transparent !important;

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

    outline: 0 !important;

    box-shadow: none !important;
}


.home-stat__content {
    min-width: 0;
}


.home-stat__value {
    display: block;

    margin: 0;

    color: #10201c;

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

    white-space: nowrap;
}


.home-stat__text {
    display: block;

    margin-top: 5px;

    color: #7f8ba0;

    font-size: 12px;
    line-height: 1.28;
}


/* =========================================================
   HERO — ГЛАВНОЕ ИЗОБРАЖЕНИЕ
   ========================================================= */

.home-hero__visual {
    position: absolute;

    z-index: 1;

    top: 0;
    right: 0;
    bottom: 0;

    width: 58%;

    overflow: hidden;
}


.home-hero__image {
    display: block;

    width: 100%;
    height: 100%;

    max-width: none;

    object-fit: cover;
    object-position: center;
}


/*
   Белый переход позволяет текстовой части визуально
   немного заходить на фотографию.
*/

.home-hero__visual::after {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            #ffffff 0%,
            rgba(255, 255, 255, 0.93) 7%,
            rgba(255, 255, 255, 0.65) 15%,
            rgba(255, 255, 255, 0.18) 25%,
            rgba(255, 255, 255, 0) 34%
        );
}


/* =========================================================
   ОБЩИЕ СЕКЦИИ
   ========================================================= */

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


.home-section--comparison {
    padding-bottom: 0;
}


.home-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}


.home-section__title {
    display: flex;
    align-items: center;

    gap: 14px;

    margin: 0;

    color: #10201c;

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


.home-section__title::before {
    content: "";

    width: 28px;
    height: 4px;

    flex: 0 0 28px;

    background: #f2a20d;

    border-radius: 4px;
}


.home-section__link {
    color: #08753f;

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

    border-bottom: 1px solid #08753f;
}


.home-section__link:hover {
    color: #055e33;
    border-color: #055e33;
}


/* =========================================================
   СЕТКА КАРТОЧЕК
   ========================================================= */

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

    gap: 18px;
}


.home-card {
    min-width: 0;
    min-height: 146px;

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

    overflow: hidden;

    background: #ffffff;

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

    box-shadow:
        0 5px 20px rgba(20, 40, 30, 0.05);

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


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

    border-color: #d8e7df;

    box-shadow:
        0 9px 26px rgba(20, 40, 30, 0.09);
}


/* =========================================================
   ФОТО В КАРТОЧКАХ

   Логика:
   - высота изображения показывается полностью;
   - если фото слишком широкое — края обрезаются;
   - если фото узкое — по бокам остаётся фон.
   ========================================================= */

.home-card__media {
    width: 110px;
    height: 128px;

    margin: 8px;

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

    overflow: hidden;

    background: #f2f0e9;

    border-radius: 11px;
}





.home-card__image-placeholder {
    padding: 10px;

    color: #a2a7a2;

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

    text-align: center;
}


/* =========================================================
   ТЕКСТ КАРТОЧЕК
   ========================================================= */

.home-card__body {
    min-width: 0;

    display: flex;
    flex-direction: column;

    padding: 17px 13px 13px 0;
}


.home-card__title {
    margin: 0;

    color: #17201d;

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


.home-card__subtitle {
    margin: 5px 0 0;

    color: #8490a7;

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


.home-card__meta {
    margin-top: auto;

    padding-top: 10px;

    color: #8490a7;

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


/* =========================================================
   БЛОК СРАВНЕНИЯ
   ========================================================= */

.home-comparison {
    padding: 20px 26px;

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

    gap: 30px;

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

    background: #f4f9f6;
}


.home-comparison__main {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 18px;
}


.home-comparison__icon {
    display: block;

    width: 54px !important;
    height: 54px !important;

    max-width: none !important;

    flex: 0 0 54px;

    padding: 0 !important;

    object-fit: contain;

    background: transparent !important;

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

    outline: 0 !important;

    box-shadow: none !important;
}


.home-comparison__title {
    margin: 0;

    color: #076b3b;

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


.home-comparison__text {
    margin: 5px 0 0;

    color: #8390a5;

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


.home-comparison__button {
    flex: 0 0 auto;

    padding: 10px 24px;

    color: #08753f;

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

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

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


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

    background: #08753f;
}


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

/* Финальная редактура hero */
.home-hero__title-line--accent {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.home-hero__title-line--accent::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: #f2a20d;
    border-radius: 4px;
}

.home-stat__value {
    white-space: normal;
}
