/* ========================
   Базовые настройки
   ======================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: #000;
    background-color: #fcfcfc;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* ========================
   Основной контент
   ======================== */
.distant-main {
    margin-top: 135px;
    padding-top: 0;
}

/* ========================
   Хлебные крошки
   ======================== */
.breadcrumbs {
    font-size: 18px;
    font-weight: 400;
    color: #929292;
    margin-bottom: 60px;
    padding-top: 0;
}

.breadcrumbs a {
    color: #929292;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #D90D26;
}

.breadcrumbs__sep {
    margin: 0 2px;
}

.breadcrumbs__current {
    color: #929292;
}

/* ========================
   Заголовок и описание
   ======================== */

.distant-hero {
    margin-bottom: 60px;
}

.distant-hero__title {
    font-size: 50px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 30px;
    color: #000;
}

.distant-hero__desc {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    max-width: 1200px;
    margin-bottom: 60px;
    color: #000;
}

.distant-section__title {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 30px;
}

.distant-section__title2 {
    font-size: 25px;
    font-weight: 400;
    margin-bottom: 30px;
}

.distant-hero__text {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    max-width: 1200px;
    margin-bottom: 30px;
    margin-top: 20px;
    color: #000;
}

.distant__list li {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 10px;
    padding: 5px;
    margin-left: 40px;
}

.distant-list {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 10px;
}

.distant-list p {
    margin-bottom: 10px;
    margin-left: 30px;
}

/* ========================
   Призыв к действию
   ======================== */
.cta-block {
    display: flex;
    flex-direction: row; //
    justify-content: flex-end;   
    align-items: flex-start;
    gap: 158px;                  
    margin-bottom: 100px;
}

.cta-block__text {
    order: 1;
    max-width: 460px;
    flex-shrink: 0;             
}

.cta-block__heading {
    font-size: 40px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 30px;
    width: 660px;
}

.btn--cta {
    order: 4;
    margin-left: -1360px;
    margin-top: 140px;
    text-decoration: none;
    font-weight: 400;
}

.cta-block__images {
    order: 2;
    position: relative;         
    width: 580px;              
    height: auto;               
    flex-shrink: 0;
    display: block;
}

.cta-block__img {
    display: block;
    border-radius: 10px;
}

.cta-block__img--front {
    width: 580px;
    height: auto;
    position: relative;
    z-index: 2;
}

.cta-block__img--back {
    width: 346px;
    height: auto;
    object-fit: cover;
    position: absolute;
    top: 10px;
    left: -180px;                
    z-index: 1;
}

.cta-block__note {
    order: 3;
    font-size: 18px;
    font-weight: 300;
    color: #000;
    text-align: right;
    white-space: nowrap;
    z-index: 3;
    margin-top: 330px; 
    margin-left: -540px;
}

/* ========================
   Адаптивность
   ======================== */

@media (max-width: 768px) {
    /* Скрываем десктопные элементы */
    .desktop-only {
        display: none !important;
    }

    body {
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
    }

    .container {
        max-width: 328px;
        padding: 0;
        margin: 0 auto;
    }

    main { margin-top: 83px; }

    /* Хлебные крошки */
    .breadcrumbs {
        font-size: 12px;
        font-weight: 400;
        margin-top: -45px;
        margin-bottom: 30px;
    }

    /* Заголовки и отступы */
    .distant-section__title {
        font-size: 20px;
        font-weight: 500;
        margin-bottom: 15px;
    }
    .distant-section__title2 {
        font-size: 18px;
        font-weight: 400;
        margin-bottom: 15px;
    }
    .distant-hero__title {
        font-size: 30px;
        font-weight: 500;
        margin-bottom: 15px;
    }
    .distant-hero__desc {
        font-size: 14px;
        font-weight: 300;
        margin-bottom: 30px;
    }
    .distant-main {
        margin-bottom: 40px;
    }
    .distant-hero__text {
        font-size: 14px;
        font-weight: 300;
    }
    .distant-list {
        font-size: 14px;
        margin-left: -10px;
    }
    .distant-hero li {
        font-size: 14px;
        margin-left: 16px;
    }

    /* Блок призыва к действию */
    .cta-block {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 60px;
    }
    .cta-block__text {
        order: 1;
        text-align: center;
        max-width: 100%;
    }
    .cta-block__heading {
        font-size: 20px;
        width: auto;
        margin-bottom: 20px;
        word-break: break-word;
    }
    .cta-block__images {
        order: 2;
        position: relative;
        min-height: 220px;
        margin: 10px 0;
        margin-top: -30px;
        width: 100%;
    }
    .cta-block__img--back {
        position: absolute;
        left: -15px;
        top: -10px;
        width: 166px;
        height: auto;
        z-index: 1;
    }
    .cta-block__img--front {
        position: relative;
        width: 258px;
        margin-left: auto;
        z-index: 2;
    }
    .cta-block__note {
        order: 3;
        text-align: center;
        font-size: 14px;
        white-space: normal;
        width: 100%;
        margin: 0 auto 20px;
        margin-top: -90px;
        position: static;  
    }
    .btn--cta {
        order: 4;
        width: 220px;
        height: 55px;
        font-size: 16px;
        margin: 0 auto;
        display: block;
        margin-bottom: -10px;
    }
}