.conditions {
    width: 1350px;
    height: 896px;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    margin: 0 auto;
    padding-left: 88px;
    padding-right: 88px;
    padding-top: 45px;
    margin-bottom: 44px;
}

.conditions_title {
    font-family: var(--second-family), 'Manrope', Arial, sans-serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 1.23;
    line-height: 123%;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: center;
    color: #eac15b;
    margin-bottom: 41px;
}

.card,
.income-card {
    background-color: #0E0E0E;
    border: 1px solid rgba(255, 231, 178, 0.24);
    padding: 24px 28px;
    margin-bottom: 16px;
}

.card h2,
.income-card h2 {
    font-family: var(--second-family), 'Manrope', Arial, sans-serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 1.23;
    line-height: 123%;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #eac15b;
    margin-bottom: 12px;
}

.card p,
.income-card p {
    font-family: var(--third-family), 'NotoSerif', Georgia, serif;
    font-weight: 400;
    font-size: 18px;
    color: #979797;
}

.cards-container {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 16px 1fr;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cards-container .income-card:first-child {
    -ms-grid-column: 1;
    -ms-grid-column-span: 2;
    grid-column: 1 / -1;
}

.cards-container .card,
.cards-container .income-card {
    margin-bottom: 0;
}

.like {
    width: 100%;
    height: 294px;
    position: relative;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 70px;
}

.like_img {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    z-index: 1;
}

.like::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.like_title,
.like_text,
.like .card_buttons {
    position: relative;
    z-index: 3;
}

.like_title {
    font-family: var(--second-family), 'Manrope', Arial, sans-serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 1.23;
    line-height: 123%;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-align: center;
    color: #eac15b;
    margin: 0 0 10px 0;
}

.like_text {
    font-family: var(--third-family), 'NotoSerif', Georgia, serif;
    font-weight: 500;
    font-size: 18px;
    text-align: center;
    color: #eac767;
    margin: 0 0 30px 0;
}

.like .card_buttons {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 20px;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 40px;
    font-size: 15px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 240px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.btn-primary {
    background: -webkit-gradient(linear, left top, right bottom, from(#c8a84e), to(#a8883e));
    background: -webkit-linear-gradient(135deg, #c8a84e, #a8883e);
    background: -moz-linear-gradient(135deg, #c8a84e, #a8883e);
    background: -o-linear-gradient(135deg, #c8a84e, #a8883e);
    background: linear-gradient(135deg, #c8a84e, #a8883e);
    color: #1a1a2e;
    border: 2px solid #c8a84e;
}

.btn-primary:hover {
    background: -webkit-gradient(linear, left top, right bottom, from(#d4b85e), to(#b8984e));
    background: -webkit-linear-gradient(135deg, #d4b85e, #b8984e);
    background: -moz-linear-gradient(135deg, #d4b85e, #b8984e);
    background: -o-linear-gradient(135deg, #d4b85e, #b8984e);
    background: linear-gradient(135deg, #d4b85e, #b8984e);
    -webkit-box-shadow: 0 4px 15px rgba(200, 168, 78, 0.4);
    box-shadow: 0 4px 15px rgba(200, 168, 78, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #c8a84e;
    border: 2px solid #c8a84e;
}

.btn-secondary:hover {
    background: rgba(200, 168, 78, 0.1);
    -webkit-box-shadow: 0 4px 15px rgba(200, 168, 78, 0.2);
    box-shadow: 0 4px 15px rgba(200, 168, 78, 0.2);
}

@media (max-width: 1024px) {
    .conditions {
        width: 100%;
        max-width: 100%;
        height: auto;
        padding-left: 40px;
        padding-right: 40px;
    }
    
    .conditions_title {
        font-size: 40px;
    }
    
    .card h2,
    .income-card h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .conditions {
        width: 100%;
        height: auto;
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 30px;
        margin-bottom: 30px;
    }

    .conditions_title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .cards-container {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 12px;
    }

    .card,
    .income-card {
        padding: 18px 16px;
        margin-bottom: 0;
    }

    .card h2,
    .income-card h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .card p,
    .income-card p {
        font-size: 16px;
    }

    .like {
        height: auto;
        min-height: 294px;
        padding: 40px 20px;
        margin-bottom: 40px;
    }

    .like_title {
        font-size: 28px;
    }

    .like_text {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .like .card_buttons {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 12px;
        -webkit-box-align: center;
        -moz-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
    }

    .btn {
        min-width: 240px;
        padding: 12px 24px;
        width: 100%;
        max-width: 280px;
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .conditions_title {
        font-size: 24px;
    }

    .card h2,
    .income-card h2 {
        font-size: 20px;
    }

    .card p,
    .income-card p {
        font-size: 14px;
    }

    .like_title {
        font-size: 24px;
    }

    .like_text {
        font-size: 14px;
    }

    .btn {
        min-width: 200px;
        padding: 10px 16px;
    }
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .like {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .like_img {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

@-moz-document url-prefix() {
    .btn {
        line-height: normal;
    }
}

@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    .conditions {
        height: auto;
        overflow: hidden;
    }
    
    .cards-container {
        display: -ms-grid;
    }
    
    .btn-primary {
        background: #c8a84e;
    }
}