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

.main {
    width: 100%;
    margin: 0;
    padding: 0;
}

.hero {
    position: relative;

    width: 100%;
    min-height: 760px;

    background: #111214;

    color: #ffffff;

    overflow: hidden;

    font-family: "Manrope", Arial, sans-serif;
}
.hero::before {
    content: "";

    position: absolute;
    z-index: 1;

    top: 18px;
    left: 50%;

    width: 360px;
    height: 740px;

    transform: translateX(95px);

    background:
        radial-gradient(
            ellipse at 50% 50%,
            rgba(170, 136, 101, 0.26) 0%,
            rgba(154, 121, 91, 0.18) 24%,
            rgba(126, 101, 80, 0.09) 42%,
            rgba(82, 68, 58, 0.035) 58%,
            rgba(17, 18, 20, 0) 76%
        );

    filter: blur(18px);

    pointer-events: none;
}


/* ========================================
   КОНТЕЙНЕР
======================================== */

.hero__container {
    position: relative;
    z-index: 5;

    width: 100%;
    max-width: 1220px;
    min-height: 760px;

    margin: 0 auto;
    padding: 92px 24px 34px;

    display: flex;
    align-items: flex-start;

    box-sizing: border-box;
}


/* ========================================
   БОЛЬШОЕ СЛОВО ЮРИСТ
======================================== */

.hero__background-word {
    position: absolute;
    z-index: 1;

    top: 8px;
    left: 50%;

    width: 1180px;

    transform: translateX(-50%);

    font-size: clamp(140px, 15vw, 245px);
    line-height: 0.9;

    font-weight: 700;
    letter-spacing: -12px;

    color: rgba(176, 154, 129, 0.13);

    white-space: nowrap;

    pointer-events: none;
    user-select: none;
}


/* ========================================
   ФОТО
======================================== */

.hero__photo {
    position: absolute;
    z-index: 2;

    bottom: 0;
    left: 50%;

    width: 550px;
    height: 760px;

    /* Немного смещаем мужчину влево, чтобы увеличить расстояние до карточки */
    transform: translateX(-15px);

    overflow: hidden;

    /*
        Плавно растворяем фотографию по краям,
        чтобы ее фон смешивался с основным фоном.
    */
    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            rgba(0,0,0,0.65) 10%,
            #000 24%,
            #000 82%,
            rgba(0,0,0,0.55) 94%,
            transparent 100%
        );

    mask-image:
        linear-gradient(
            to right,
            transparent 0%,
            rgba(0,0,0,0.65) 43%,
            #000 53%,
            #000 59%,
            rgba(0,0,0,0.55) 68%,
            transparent 100%
        );
}

.hero__photo::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to right,
            rgba(17,18,20,0.9) 0%,
            rgba(17,18,20,0.15) 25%,
            rgba(17,18,20,0) 60%,
            rgba(17,18,20,0.08) 100%
        );

    pointer-events: none;
}

.hero__photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    /*
        Смещаем исходную вертикальную фотографию,
        чтобы человек оказался примерно как на макете.
    */
    object-position: 50% 28%;

    filter:
        brightness(0.78)
        contrast(1.05)
        saturate(0.82);
}


/* ========================================
   ЛЕВАЯ КОЛОНКА
======================================== */

.hero__content {
    position: relative;
    z-index: 6;

    width: 640px;
}


/* ========================================
   H1
======================================== */

.hero__title {
    margin: 0;

    max-width: 640px;

    color: #f6f6f6;

    font-size: 43px;
    line-height: 1.16;

    font-weight: 500;
    letter-spacing: -1.1px;
}


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

.hero__description {
    max-width: 620px;

    margin: 20px 0 0;

    color: #a7a7a7;

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

    font-weight: 400;
}



/* ========================================
   ВАЖНАЯ ИНФОРМАЦИЯ / СУДЕБНЫЕ РАСХОДЫ
======================================== */

.hero__legal-note {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;

    width: 100%;
    max-width: 650px;

    margin-top: 24px;
    padding: 18px 20px;

    box-sizing: border-box;

    border: 1px solid rgba(174, 117, 69, 0.48);
    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            rgba(42, 36, 31, 0.72) 0%,
            rgba(20, 21, 23, 0.86) 100%
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.025),
        0 12px 30px rgba(0, 0, 0, 0.14);
}

.hero__legal-icon {
    margin-top: -3px;

    color: #c58750;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 62px;
    line-height: 0.85;
    font-weight: 700;

    user-select: none;
}

.hero__legal-content {
    min-width: 0;
}

.hero__legal-main {
    color: #e2e2e2;

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

    font-weight: 600;

    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.hero__legal-details {
    margin-top: 5px;

    color: #a9a9a9;

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

    font-weight: 400;
}

/* После информационного блока кнопки располагаем немного ближе */
.hero__legal-note + .hero__actions {
    margin-top: 22px;
}


/* ========================================
   КНОПКИ
======================================== */

.hero__actions {
    margin-top: 30px;

    display: flex;
    align-items: center;

    gap: 18px;
}

.hero__button {
    min-height: 58px;

    padding: 0 27px;

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

    box-sizing: border-box;

    border-radius: 8px;

    text-decoration: none;

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

    font-weight: 500;

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


/* Основная кнопка */

.hero__button--primary {
    min-width: 220px;

    color: #ffffff;

    border: 1px solid #b78254;

    background:
        linear-gradient(
            180deg,
            #c89667 0%,
            #a87245 100%
        );

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.18),
        0 7px 20px rgba(0,0,0,0.16);
}

.hero__button--primary:hover {
    transform: translateY(-2px);

    background:
        linear-gradient(
            180deg,
            #d2a071 0%,
            #b67b4a 100%
        );
}


/* Вторая кнопка */

.hero__button--secondary {
    min-width: 205px;

    gap: 11px;

    color: #e4e4e4;

    border: 1px solid #5c5147;

    background: rgba(17, 18, 20, 0.62);
}

.hero__button--secondary:hover {
    border-color: #a77951;

    background: rgba(42, 35, 30, 0.85);
}


/* Круглая иконка */

.hero__button-icon {
    width: 25px;
    height: 25px;

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

    border: 1px solid #a4744b;
    border-radius: 50%;

    color: #b58255;

    font-size: 12px;
}


/* ========================================
   ПРЕИМУЩЕСТВА
======================================== */

.hero__advantages {
    margin-top: 34px;

    display: flex;
    align-items: flex-start;

    gap: 28px;
}

.hero__advantage {
    display: flex;
    align-items: flex-start;

    gap: 10px;
}

.hero__advantage-icon {
    width: 26px;
    height: 26px;

    flex: 0 0 26px;

    color: #a87549;
}

.hero__advantage-icon svg {
    width: 100%;
    height: 100%;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero__advantage-text {
    display: flex;
    flex-direction: column;

    max-width: 150px;
}

.hero__advantage-text strong {
    color: #d6d6d6;

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

    font-weight: 500;

    white-space: nowrap;
}

.hero__advantage-text span {
    margin-top: 2px;

    color: #77797c;

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


/* ========================================
   ПРАВАЯ КАРТОЧКА
======================================== */

.hero__stats {
    position: absolute;
    z-index: 10;

    top: 190px;

    /* Карточка ближе к правому краю контейнера, как на макете */
    right: 0;

    width: 200px;

    padding: 0px 21px;

    box-sizing: border-box;

    background: rgba(249, 247, 244, 0.96);

    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 17px;

    box-shadow:
        0 18px 45px rgba(0,0,0,0.16),
        inset 0 1px 0 rgba(255,255,255,0.7);

    color: #171717;
}

.hero__stat {
    min-height: 86px;

    display: flex;
    align-items: center;

    gap: 14px;

    border-bottom: 1px solid #dedbd7;
}

.hero__stat--last {
    border-bottom: 0;
}

.hero__stat-icon {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;

    color: #68645f;
}

.hero__stat-icon svg {
    width: 100%;
    height: 100%;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero__stat > div:last-child {
    display: flex;
    flex-direction: column;
}

.hero__stat strong {
    color: #161616;

    font-size: 18px;
    line-height: 1.1;

    font-weight: 600;
}

.hero__stat .hero__stat-small {
    font-size: 10px;
    line-height: 1.35;
}

.hero__stat span {
    margin-top: 4px;

    color: #686868;

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


/* ========================================
   НОУТБУКИ / НЕБОЛЬШИЕ ЭКРАНЫ
======================================== */

@media (max-width: 1180px) {

    .hero__container {
        max-width: 1000px;
    }

    .hero__title {
        font-size: 38px;
    }

    .hero__content {
        width: 570px;
    }

    .hero__legal-note {
        max-width: 570px;
    }

    .hero__photo {
        left: 52%;
        width: 520px;
        transform: translateX(-10px);
    }

    .hero__stats {
        right: 0;
    }

    .hero__advantages {
        gap: 18px;
    }

}


/* ========================================
   ПЛАНШЕТ
======================================== */

@media (max-width: 900px) {

    .hero {
        min-height: auto;
    }

    .hero__container {
        min-height: auto;

        padding-top: 65px;
        padding-bottom: 45px;

        flex-direction: column;
    }

    .hero__background-word {
        top: 45px;

        font-size: 130px;

        opacity: 0.7;
    }

    .hero__content {
        width: 100%;
        max-width: 620px;
    }

    .hero__title {
        font-size: 38px;
    }

    .hero__description br {
        display: none;
    }

    .hero__legal-note {
        max-width: 620px;
    }

    .hero__photo {
        position: relative;

        left: auto;
        bottom: auto;

        width: calc(100% + 48px);
        height: 570px;

        margin:
            40px
            -24px
            -45px;

        transform: none;

        order: 3;

        -webkit-mask-image:
            linear-gradient(
                to bottom,
                transparent 0%,
                #000 14%,
                #000 100%
            );

        mask-image:
            linear-gradient(
                to bottom,
                transparent 0%,
                #000 14%,
                #000 100%
            );
    }

    .hero__photo img {
        object-position: center 24%;
    }

    .hero__stats {
        top: auto;
        right: 24px;
        bottom: 45px;
    }

}


/* ========================================
   МОБИЛЬНЫЕ
======================================== */

@media (max-width: 650px) {

    .hero__container {
        padding:
            48px
            16px
            30px;
    }

    .hero__background-word {
        top: 25px;
        left: 16px;

        width: auto;

        transform: none;

        font-size: 88px;
        letter-spacing: -7px;
    }

    .hero__title {
        font-size: 32px;
        line-height: 1.18;

        letter-spacing: -0.8px;
    }

    .hero__description {
        margin-top: 17px;

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

    .hero__legal-note {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 11px;

        margin-top: 21px;
        padding: 16px 15px;

        border-radius: 7px;
    }

    .hero__legal-icon {
        font-size: 47px;
    }

    .hero__legal-main {
        font-size: 11px;
        line-height: 1.45;
    }

    .hero__legal-details {
        margin-top: 6px;

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

    .hero__legal-note + .hero__actions {
        margin-top: 20px;
    }

    .hero__actions {
        width: 100%;

        margin-top: 25px;

        flex-direction: column;
        align-items: stretch;

        gap: 12px;
    }

    .hero__button {
        width: 100%;
        min-width: 0;

        min-height: 54px;
    }

    .hero__advantages {
        margin-top: 32px;

        display: grid;
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .hero__advantage-text {
        max-width: none;
    }

    .hero__advantage-text strong {
        font-size: 11px;
    }

    .hero__advantage-text span {
        font-size: 10px;
    }

    .hero__photo {
        width: calc(100% + 32px);
        height: 530px;

        margin:
            35px
            -16px
            -30px;
    }

    .hero__photo img {
        object-position: center 20%;
    }

    .hero__stats {
        right: 16px;
        bottom: 20px;

        width: 176px;

        padding-left: 16px;
        padding-right: 16px;
    }

    .hero__stat {
        min-height: 76px;
    }

}


/* ========================================
   ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ
======================================== */

@media (max-width: 400px) {

    .hero__title {
        font-size: 28px;
    }

    .hero__photo {
        height: 480px;
    }

    .hero__stats {
        width: 165px;
    }

}