/* Посадочная для продавцов /board/sell. (Ссылка на неё со /board — в dlc.css, .board-page__sell-link.) Отступы — из spacing.css, цвет раздела объявлений — зелёный кнопки «Подать». */
.board-sell-page {
    --bs-green: #00ae5d;
    --bs-green-dark: #008f4c;
    --bs-wa: #25d366;
    --bs-ink: #1f2328;
    --bs-muted: #5f6670;
    --bs-line: #e3e6ea;
    --bs-soft: #f3faf6;
    color: var(--bs-ink);
}

.board-sell-page h1 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.15;
}

.board-sell-page h2 {
    margin: 0 0 var(--sp-card);
    font-size: 24px;
    line-height: 1.2;
}

.board-sell-page h3 {
    margin: 0 0 6px;
    font-size: 17px;
    line-height: 1.3;
}

/* style.css задаёт абзацам 10px — на этой странице текст читают, размер свой */
.board-sell-page p,
.board-sell-page li {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.55;
}

.board-sell-page .board-sell__lead {
    font-size: 18px;
}

.board-sell-page .board-sell__hint {
    font-size: 14px;
}

.board-sell-page .board-sell__cats li {
    margin: 0;
    font-size: 14px;
}

.board-sell__hero {
    max-width: 820px;
    padding: var(--sp-pad) 0 0;
}

.board-sell__lead {
    font-size: 18px;
    color: var(--bs-muted);
}

.board-sell__section {
    margin-top: var(--sp-section);
    padding-top: var(--sp-section);
    border-top: 1px solid var(--bs-line);
}

/* Кнопки */
.board-sell__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.board-sell__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 24px;
    box-sizing: border-box;
    font: 700 16px/1.2 Roboto, Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.board-sell__btn--main {
    background: var(--bs-green);
    color: #fff;
}

.board-sell__btn--main:hover,
.board-sell__btn--main:focus-visible {
    background: var(--bs-green-dark);
    color: #fff;
}

.board-sell__btn--ghost {
    border-color: var(--bs-green);
    color: var(--bs-green-dark);
    background: #fff;
}

.board-sell__btn--ghost:hover,
.board-sell__btn--ghost:focus-visible {
    background: var(--bs-soft);
    color: var(--bs-green-dark);
}

.board-sell__btn--wa {
    background: var(--bs-wa);
    color: #fff;
    margin: 6px 0 10px;
}

.board-sell__btn--wa:hover,
.board-sell__btn--wa:focus-visible {
    background: #1ebe5a;
    color: #fff;
}

.board-sell__hint {
    font-size: 14px;
    color: var(--bs-muted);
}

.board-sell__hint a,
.board-sell__faq a {
    color: var(--bs-green-dark);
}

/* Зачем размещать */
.board-sell__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-card);
}

.board-sell__card {
    padding: var(--sp-pad);
    border: 1px solid var(--bs-line);
    border-radius: 12px;
    background: #fff;
}

.board-sell__card p {
    color: var(--bs-muted);
    margin: 0;
}

.board-sell__card-num,
.board-sell__card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--bs-soft);
    color: var(--bs-green-dark);
    font: 700 22px/1 Roboto, Arial, sans-serif;
}

/* Три шага */
.board-sell__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp-card);
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    counter-reset: bs-step;
}

.board-sell__steps li {
    position: relative;
    padding: 0 0 0 52px;
    counter-increment: bs-step;
}

.board-sell__steps li:before {
    content: counter(bs-step);
    position: absolute;
    left: 0;
    top: -4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bs-green);
    color: #fff;
    font: 700 18px/1 Roboto, Arial, sans-serif;
}

.board-sell__steps p {
    color: var(--bs-muted);
}

/* Разместим за вас */
.board-sell__for-you {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: calc(var(--sp-card) * 2);
    align-items: start;
}

.board-sell__form-card {
    position: relative;
    padding: var(--sp-pad);
    border-radius: 12px;
    background: var(--bs-soft);
}

.board-sell__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--sp-card);
}

.board-sell__form .string {
    margin: 0 0 14px;
}

.board-sell__form label {
    display: block;
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 500;
}

.board-sell__form input[type="text"],
.board-sell__form input[type="tel"],
.board-sell__form input[type="url"],
.board-sell__form textarea {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cfd5db;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    font: 16px/1.4 Roboto, Arial, sans-serif;
    color: var(--bs-ink);
}

.board-sell__form textarea {
    resize: vertical;
    min-height: 88px;
}

.board-sell__form input:focus,
.board-sell__form textarea:focus {
    border-color: var(--bs-green);
    outline: 2px solid rgba(0, 174, 93, .2);
}

.board-sell__form .help-block,
.board-sell__form .help-block-error {
    margin-top: 4px;
    font-size: 13px;
    color: #c62828;
}

.board-sell__form .board-sell__btn {
    width: 100%;
    margin: 4px 0 10px;
}

.board-sell__done {
    display: none;
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    color: var(--bs-green-dark);
}

.board-sell__for-you.is-sent .board-sell__done {
    display: block;
}

.board-sell__for-you.is-sent .board-sell__form {
    display: none;
}

/* FAQ */
.board-sell__faq {
    max-width: 900px;
}

.board-sell__faq details {
    border-bottom: 1px solid var(--bs-line);
}

.board-sell__faq summary {
    position: relative;
    padding: 14px 36px 14px 0;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    list-style: none;
}

.board-sell__faq summary::-webkit-details-marker {
    display: none;
}

.board-sell__faq summary:after {
    content: '+';
    position: absolute;
    right: 4px;
    top: 10px;
    color: var(--bs-green-dark);
    font-size: 24px;
    line-height: 1;
}

.board-sell__faq details[open] summary:after {
    content: '−';
}

.board-sell__faq details p {
    padding: 0 0 14px;
    color: var(--bs-muted);
}

/* Рубрики */
.board-sell__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.board-sell__cats a {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid var(--bs-line);
    border-radius: 20px;
    background: #fff;
    color: var(--bs-ink);
    text-decoration: none;
}

.board-sell__cats a:hover {
    border-color: var(--bs-green);
    color: var(--bs-green-dark);
}

@media screen and (max-width: 999px) {
    .board-sell__cards,
    .board-sell__steps {
        grid-template-columns: minmax(0, 1fr);
    }

    .board-sell__steps li {
        padding-bottom: 4px;
    }

    .board-sell__for-you {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .board-sell-page h1 {
        font-size: 26px;
    }

    .board-sell-page h2 {
        font-size: 21px;
    }

    .board-sell-page .board-sell__lead {
        font-size: 16px;
    }

    .board-sell__actions .board-sell__btn,
    .board-sell__btn--wa {
        width: 100%;
    }

    .board-sell__row {
        grid-template-columns: minmax(0, 1fr);
    }
}
