/*
 * sel-teh.ru — общие стили поверх темы Kept: кнопки шапки, подвал, окно заявки.
 * Все новые классы начинаются с st-, чтобы не пересекаться со стилями темы
 * (framework.min.css задаёт глобальные правила на ul, li, p, h1-h6, .btn и др.).
 * Подключается ПОСЛЕ стилей темы.
 */

/* ---------- Корзины, закладок и сравнения на сайте нет ---------- */
a.wishlist,
a.compare,
.col-filter-compare {
    display: none !important;
}

/* ---------- Шапка: кнопки в верхней полосе ---------- */
header .contact-info a.info-button.st-call {
    background: #c02c2c;
    border-color: #c02c2c;
}

header .contact-info a.info-button.st-call:hover {
    background: #a52222;
    border-color: #a52222;
}

/* «Контакты» и MAX — контурные; контур внутренней тенью, чтобы не менять высоту кнопки */
header .contact-info a.info-button.st-ghost {
    background: transparent;
    box-shadow: inset 0 0 0 2px #555;
}

header .contact-info a.info-button.st-ghost:hover {
    background: #c02c2c;
    box-shadow: inset 0 0 0 2px #c02c2c;
}

@media screen and (max-width: 739px) {
    /* На телефоне в верхней полосе остаются номер и кнопка звонка */
    header .contact-info a.info-button.st-ghost {
        display: none !important;
    }

    header .contact-info a.info-button.st-call {
        font-size: 12px;
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ---------- Подвал ---------- */
.st-footer .st-fbody {
    float: left;
    width: 100%;
    background: #1a1a1a;
    color: #c9c9c9;
    padding: 34px 0 40px;
    font: 400 14px/22px 'Open Sans', sans-serif;
    text-align: left;
}

/* Тема сбрасывает ul/li/p в inline-block на всю ширину — возвращаем нормальный поток */
.st-footer .st-fbody ul,
.st-footer .st-fbody li,
.st-footer .st-fbody p {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 22px;
    color: inherit;
}

.st-footer .st-fgrid {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.st-footer .st-fcol {
    -webkit-flex: 1 1 260px;
    flex: 1 1 260px;
    margin: 0 12px 22px;
    min-width: 0;
}

.st-footer .st-fcol b {
    color: #fff;
    font-weight: 700;
}

.st-footer .st-fcol ul.st-links {
    -webkit-columns: 2;
    columns: 2;
    -webkit-column-gap: 20px;
    column-gap: 20px;
}

.st-footer .st-fcol ul.st-links li {
    margin-bottom: 4px;
    break-inside: avoid;
}

/* Контакты кликабельны: при наведении — красная «кнопка» */
.st-footer .st-fbody a {
    color: #fff;
    text-decoration: none;
}

.st-footer .st-fbody a.st-fc {
    display: inline-block;
    border: 2px solid transparent;
    border-radius: 2px;
    padding: 2px 8px;
    margin-left: -10px;
    transition: background .15s, border-color .15s;
}

.st-footer .st-fbody a.st-fc:hover,
.st-footer .st-fbody a.st-fc:focus-visible {
    background: #c02c2c;
    border-color: #c02c2c;
    color: #fff;
}

.st-footer .st-fcol ul.st-links a:hover,
.st-footer .st-fcol ul.st-links a:focus-visible {
    color: #ee5a52;
}

.st-footer .st-fbody a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.st-footer .st-fbody p.st-legal {
    clear: both;
    margin-top: 10px;
    font-size: 11px;
    line-height: 17px;
    color: #8a8a8a;
}

/* ---------- Окно заявки ---------- */
html.st-lock {
    overflow: hidden;
}

.st-modal {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .6);
    overflow-y: auto;
}

.st-modal[hidden] {
    display: none !important;
}

.st-modal .st-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: auto;
    padding: 26px 22px 22px;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
    text-align: left;
    color: #1a1a1a;
}

.st-modal .st-x {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: none;
    font: 400 28px/36px Arial, sans-serif;
    color: #777;
    cursor: pointer;
}

.st-modal .st-x:hover,
.st-modal .st-x:focus-visible {
    color: #c02c2c;
}

.st-modal .st-title {
    display: block;
    width: auto;
    margin: 0 28px 4px 0;
    font: 700 24px/30px 'Open Sans Condensed', sans-serif;
    text-transform: uppercase;
    color: #1a1a1a;
}

.st-modal .st-sub {
    display: block;
    width: auto;
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 20px;
    color: #555;
}

.st-modal .st-lab {
    display: block;
    width: 100%;
    margin: 0 0 12px;
}

.st-modal .st-lab > span {
    display: block;
    margin: 0 0 4px;
    font: 600 13px/18px 'Open Sans', sans-serif;
    color: #333;
}

/* Согласие: используем «рисованный» чекбокс темы (input скрыт, рамку рисует span:before) */
.st-modal .st-consent {
    display: block;
    width: 100%;
    margin: 4px 0 16px;
    cursor: pointer;
}

.st-modal .st-consent > span {
    position: relative;
    display: block;
    min-height: 24px;
    padding-left: 34px;
    font-size: 12px;
    line-height: 17px;
    color: #555;
}

.st-modal .st-consent > span a {
    color: #c02c2c;
    text-decoration: underline;
}

.st-modal .st-submit {
    display: block;
    width: 100%;
    padding: 16px 20px;
    border: 0;
    border-radius: 3px;
    background: #c02c2c;
    color: #fff;
    font: 700 15px/20px 'Open Sans', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
}

.st-modal .st-submit:hover,
.st-modal .st-submit:focus-visible {
    background: #a52222;
}

.st-modal .st-submit:disabled {
    opacity: .6;
    cursor: default;
}

.st-modal .st-msg {
    min-height: 20px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 20px;
}

.st-modal .st-msg-ok {
    color: #2e7d32;
    font-weight: 600;
}

.st-modal .st-msg-err {
    color: #b3261e;
}

/* После успешной отправки поля прячем, остаётся сообщение */
.st-modal form.st-done .st-lab,
.st-modal form.st-done .st-consent,
.st-modal form.st-done .st-submit,
.st-modal form.st-done .st-sub {
    display: none;
}

/* Приманка для ботов — вне экрана, но не display:none (боты такие поля заполняют) */
.st-hp {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
