@import "base/reset.css";
@import "base/layout.css";
@import "base/variables.css";
@import "base/header.css";
@import "base/labels.css";
@import "base/breadcrumbs.css";

.buyout-main {
    max-width: 1350px;
    margin: 0 auto 2em;
    padding: 32px 0;
    display: flex;
    flex-direction: column;
}
.buyout-main__inner {
    display: flex;
    gap: 48px;
    justify-content: center;
}
.buyout-main__info {
    flex: 1 1 440px;
    max-width: 470px;
}
.buyout-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #151515;
    margin-bottom: 14px;
}
.buyout-subtitle {
    font-size: 1.2rem;
    color: #6a6a6a;
    margin-bottom: 24px;
}
.buyout-badges {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    list-style: none;
    padding: 0;
}
.badge-icon {
    display: inline-block;
    width: 18px; height: 18px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}
.badge-green { background: #1eda66; }
.badge-red { background: #ea2b2b; }
.badge-gray { background: #bcbcbc; }

.buyout-form__card {
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    box-shadow: 0 6px 36px rgba(34,34,34,0.10);
    padding: 28px 24px 22px 24px;
    margin-bottom: 0;
    backdrop-filter: blur(7px);
}
.form-group {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px;
}
.form-group label {
    font-size: 0.98rem;
    color: #232323;
}
.form-group input {
    border: 1.5px solid #d7d7d7;
    background: #f7f7f7;
    border-radius: 8px;
    padding: 11px 13px;
    font-size: 1.04rem;
    outline: none;
    transition: border 0.2s;
    margin-top: 10px;
}
.form-group input:focus {
    border: 1.5px solid #e80f2a;
    background: #fff;
}
.btn-red {
    width: 100%;
    background: linear-gradient(97deg, #e80f2a 20%, #232629 90%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 13px 0;
    font-weight: 700;
    font-size: 1.08rem;
    cursor: pointer;
    transition: box-shadow 0.2s;
    box-shadow: 0 2px 12px rgba(232,15,42,0.10);
}
.btn-red:hover { box-shadow: 0 4px 20px rgba(232,15,42,0.19); }

.buyout-main__img img {
    max-width: 700px;
    width: 100%;
    border-radius: 22px;
    object-fit: cover;
}

.buyout-how {
    max-width: 1160px;
    margin: 0 auto 36px;
}
h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: #151515;
}
.buyout-how__steps {
    display: flex;
    justify-content: space-between;
    gap: 32px;
}
.how-step {
    flex: 1 1 0;
    background: rgba(245, 245, 245, 0.86);
    border-radius: 8px;
    padding: 24px 20px;
    font-size: 1.12rem;
    color: #262626;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 1px 5px rgba(120,120,120,0.04);
}

.buyout-advantages {
    max-width: 1160px;
    margin: 0 auto 36px;
}
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.adv-card {
    background: rgba(240,241,245,0.88);
    border-radius: 8px;
    padding: 28px 18px 22px 18px;
    box-shadow: 0 2px 16px rgba(44,44,44,0.07);
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 152px;
}
.adv-title {
    color: #e80f2a;
    font-size: 1.16rem;
    font-weight: 700;
    margin-bottom: 9px;
}
.adv-desc {
    font-size: 1.01rem;
    color: #363636;
    font-weight: 400;
}
.glass {
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.75);
    border: 1.5px solid #ededed;
}

.how-sell-cars-block {
    max-width: 1200px;
    margin: 0 auto 56px;
    padding: 0 12px;
}

.block-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: #151515;
    text-align: left;
}

.decision-heart {
    top: -70px;
    right: -100px;
    width: 256px;
    height: 200px;
    z-index: 1;
    position: absolute;
}

.sell-cars-options {
    display: flex;
    gap: 24px;
    align-items: stretch
}

.sell-option {
    background: #f7f8fa;
    border-radius: 8px;
    padding: 32px 28px 28px 28px;
    min-width: 310px;
    box-shadow: 0 4px 20px rgba(44, 44, 44, 0.06);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.sell-option--inycar {
    background: linear-gradient(120deg, #fff 70%, #ececec 100%);
    border: 2.2px solid #e80f2a;
    box-shadow: 0 6px 24px rgba(232, 15, 42, 0.08);
}
.sell-option--inycar .option-title {
    color: #e80f2a;
    font-weight: 700;
}

.option-header {
    font-size: 1.32rem;
    font-weight: 600;
    margin-bottom: 18px;
}

.option-list {
    list-style: none;
    padding: 0;
    margin: 0 0 26px 0;
}
.option-list li {
    display: flex;
    align-items: center;
    font-size: 1.08rem;
    margin-bottom: 14px;
    color: #26292b;
}
.check-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 10px;
    background: url("../../img/check-red.svg") center/contain no-repeat;
}
.cross-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    margin-right: 10px;
    background: url("../../img/cross-gray.svg") center/contain no-repeat;
}
.option-btn {
    margin-top: auto;
    width: 100%;
    padding: 13px 0;
    background: linear-gradient(92deg, #e80f2a 22%, #232629 90%);
    color: #fff;
    font-size: 1.09rem;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.17s;
    box-shadow: 0 2px 10px rgba(232, 15, 42, 0.07);
}

.option-btn--fake {
    visibility: hidden;
    pointer-events: none;
    height: 48px;
    margin-top: auto;
    width: 100%;
    padding: 13px 0;
    background: none !important;
    box-shadow: none !important;
}

.option-btn:hover { box-shadow: 0 4px 20px rgba(232, 15, 42, 0.16); }

@media (max-width: 900px) {
    .sell-cars-options { flex-direction: column; gap: 18px; }
    .sell-option { min-width: 0; }
}


@media (max-width: 900px) {
    .buyout-main__inner { flex-direction: column; gap: 20px; align-items: stretch;}
    .buyout-main__img img { max-width: 100%; }
    .advantages-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .buyout-main { padding: 16px 0;}
    .buyout-title { font-size: 2rem; }
    .buyout-how__steps { flex-direction: column; gap: 16px;}
    .advantages-grid { grid-template-columns: 1fr; gap: 14px;}
}

@media (max-width: 500px) {
    .buyout-main,
    .buyout-main__inner,
    .buyout-main__info,
    .buyout-form__card,
    .buyout-how,
    .buyout-advantages,
    .how-sell-cars-block {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .buyout-main { padding: 10px 0 !important; }
    .buyout-form__card { padding: 16px 6px 18px 6px !important; margin-top: 20px}

    .buyout-title {
        font-size: 1.24rem !important;
        word-break: break-word;
        line-height: 1.1;
    }
    .buyout-subtitle { font-size: 0.95rem !important; }

    .buyout-badges { gap: 7px; flex-wrap: wrap; font-size: 0.94rem; flex-direction: column; margin-bottom: 10px }
    .badge-icon { width: 14px; height: 14px; margin-right: 5px; }

    .form-group input { font-size: 1rem; padding: 9px 9px; margin-top: 10px}

    .btn-red { padding: 12px 0; font-size: 1.01rem; }

    .buyout-main__img img {
        max-width: 100%;
        height: auto;
        min-width: 0;
        border-radius: 14px;
    }

    .block-title, h2 {
        font-size: 1.18rem !important;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .how-step, .adv-card, .sell-option {
        font-size: 0.96rem;
        padding: 14px 9px;
        min-height: unset;
    }
    .decision-heart { display: none !important; }

    .sell-cars-options { flex-direction: column; gap: 10px; }
    .sell-option { min-width: 0; padding: 18px 9px 16px 9px; }
}

@media (max-width: 400px) {
    .buyout-title, .block-title, h2 { font-size: 1.03rem !important; }
    .buyout-form__card { padding: 10px 10px 10px 10px !important; }
}

@media (max-width: 1283px) {
    .buyout-badges {gap: 10px; flex-direction: column}
}
