/* =========================================================================
   contact.css — страница «Контакты» (/contact)
   Оформление в духе новой страницы матча (match2.css): мягкие карточки,
   токены цветов, аккуратные тени и адаптивная сетка.
   Все правила ограничены .bt-contact, чтобы не задевать остальные страницы.
   ========================================================================= */

.bt-contact {
    --bc-card: #ffffff;
    --bc-ink: #1c2b42;
    --bc-ink-soft: #5d6b81;
    --bc-muted: #8a94a3;
    --bc-line: #e6eaf0;
    --bc-line-soft: #f0f3f8;
    --bc-bg: #f8f9fc;
    --bc-brand: #cc1d14;
    --bc-accent: #ffda33;
    --bc-green: #2f9a4d;
    --bc-blue: #2a5a9f;
    --bc-danger: #b33a24;
    --bc-radius: 18px;
    --bc-radius-sm: 12px;
    --bc-shadow: 0 6px 24px rgba(19, 31, 53, .07);
    --bc-shadow-sm: 0 3px 12px rgba(19, 31, 53, .05);
    width: 100%;
    max-width: 1180px;
    padding-left: 14px;
    padding-right: 14px;
    color: var(--bc-ink);
}

.bt-contact *,
.bt-contact *::before,
.bt-contact *::after {
    box-sizing: border-box;
}

.bt-contact p {
    margin: 0 0 12px;
    color: #33415a;
    line-height: 1.65;
}

.bt-contact p:last-child {
    margin-bottom: 0;
}

.bt-contact a {
    color: var(--bc-blue);
}

.bt-contact__inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bt-contact .breadcrumb {
    margin: 6px 0 10px !important;
    padding-left: 0 !important;
}

/* ---------- Первый экран ---------- */
.bt-contact__hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
    align-items: center;
    gap: 28px;
    padding: 30px 32px;
    border: 1px solid var(--bc-line);
    border-radius: var(--bc-radius);
    background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 58%, #fff8e1 100%);
    box-shadow: var(--bc-shadow);
}

.bt-contact__hero::before,
.bt-contact__hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.bt-contact__hero::before {
    width: 240px;
    height: 240px;
    right: -80px;
    top: -110px;
    background: rgba(255, 218, 51, .22);
}

.bt-contact__hero::after {
    width: 180px;
    height: 180px;
    left: -70px;
    bottom: -110px;
    background: rgba(42, 90, 159, .07);
}

.bt-contact__hero-body,
.bt-contact__hero-art {
    position: relative;
    z-index: 1;
}

.bt-contact__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff3c4;
    color: #6f5500;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bt-contact__eyebrow::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bc-green);
    box-shadow: 0 0 0 3px rgba(47, 154, 77, .18);
}

.bt-contact__hero h1 {
    margin: 0 0 10px;
    color: var(--bc-ink);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -.015em;
    text-align: left;
}

.bt-contact__lead {
    max-width: 58ch;
    margin: 0 0 18px !important;
    color: var(--bc-ink-soft);
    font-size: 15px;
    line-height: 1.6;
}

.bt-contact__hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.bt-contact__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 11px 18px;
    border: 1px solid #d7e1f0;
    border-radius: 10px;
    background: #fff;
    color: var(--bc-ink) !important;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: var(--bc-shadow-sm);
    transition: transform .12s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.bt-contact__btn:hover {
    transform: translateY(-1px);
    border-color: #c6d4e8;
    box-shadow: 0 6px 16px rgba(19, 31, 53, .1);
}

.bt-contact__btn--primary {
    border-color: var(--bc-brand);
    background: var(--bc-brand);
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(204, 29, 20, .28);
}

.bt-contact__btn--primary:hover {
    border-color: #b41a12;
    background: #b41a12;
    box-shadow: 0 8px 20px rgba(204, 29, 20, .34);
}

.bt-contact__btn:focus-visible,
.bt-contact__channel:focus-visible,
.bt-contact__link:focus-visible,
.bt-contact__submit:focus-visible {
    outline: 3px solid rgba(42, 90, 159, .35);
    outline-offset: 2px;
}

.bt-contact__hero-art {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bt-contact__hero-art img {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(19, 31, 53, .12));
}

/* ---------- Способы связи ---------- */
.bt-contact__channels {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.bt-contact__channel {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid var(--bc-line);
    border-radius: var(--bc-radius-sm);
    background: #fff;
    color: var(--bc-ink) !important;
    text-decoration: none !important;
    box-shadow: var(--bc-shadow-sm);
    transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}

a.bt-contact__channel:hover {
    transform: translateY(-1px);
    border-color: #c9d7ec;
    background: #f9fbff;
    box-shadow: 0 6px 16px rgba(19, 31, 53, .08);
}

.bt-contact__channel-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #f1f5fb;
    color: var(--bc-blue);
}

.bt-contact__channel-icon svg {
    display: block;
    width: 22px;
    height: 22px;
}

.bt-contact__channel-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bt-contact__channel-caption {
    color: var(--bc-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bt-contact__channel strong {
    overflow: hidden;
    color: var(--bc-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    text-overflow: ellipsis;
}

.bt-contact__channel-hint {
    color: var(--bc-ink-soft);
    font-size: 12px;
    line-height: 1.35;
}

/* ---------- Двухколоночная раскладка ---------- */
.bt-contact__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 16px;
    align-items: start;
}

.bt-contact__card {
    min-width: 0;
    padding: 24px 26px;
    border: 1px solid var(--bc-line);
    border-radius: var(--bc-radius);
    background: var(--bc-card);
    box-shadow: var(--bc-shadow);
}

.bt-contact__card--form {
    padding: 26px 28px;
    scroll-margin-top: 120px;
}

.bt-contact__card-head {
    margin-bottom: 18px;
}

.bt-contact__card-head .bt-contact__eyebrow {
    margin-bottom: 10px;
}

.bt-contact__title {
    position: relative;
    margin: 0 0 10px;
    padding-left: 14px;
    color: var(--bc-ink);
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
    text-align: left;
}

.bt-contact__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    bottom: .18em;
    width: 4px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--bc-brand), var(--bc-accent));
}

.bt-contact__subtitle {
    margin: 0 !important;
    color: var(--bc-ink-soft);
    font-size: 14px;
    line-height: 1.6;
}

/* ---------- Уведомления ---------- */
.bt-contact__alert {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid var(--bc-line);
    border-radius: var(--bc-radius-sm);
    background: var(--bc-bg);
    font-size: 14px;
    line-height: 1.5;
}

.bt-contact__alert::before {
    content: "i";
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--bc-blue);
    font-size: 14px;
    font-weight: 800;
    box-shadow: var(--bc-shadow-sm);
}

.bt-contact__alert h3 {
    margin: 0 0 4px;
    color: inherit;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 800;
    text-align: left;
}

.bt-contact__alert p {
    margin: 0;
    color: inherit;
    font-size: 13px;
    line-height: 1.5;
}

.bt-contact__alert--success {
    border-color: #bfe5c6;
    background: #f1faf2;
    color: #256d36;
}

.bt-contact__alert--success::before {
    content: "✓";
    color: var(--bc-green);
}

.bt-contact__alert--error {
    border-color: #f3cfc1;
    background: #fff5f3;
    color: #9d3522;
}

.bt-contact__alert--error::before {
    content: "!";
    color: var(--bc-danger);
}

/* ---------- Форма ---------- */
.bt-contact__form {
    margin: 0;
}

.bt-contact__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 16px;
}

.bt-contact__field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    scroll-margin-top: 120px;
}

.bt-contact__field--full {
    grid-column: 1 / -1;
}

.bt-contact__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.bt-contact__label {
    color: var(--bc-ink);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;
}

.bt-contact__req {
    color: var(--bc-brand);
    font-weight: 900;
}

.bt-contact__optional {
    margin-left: 4px;
    color: var(--bc-muted);
    font-size: 11px;
    font-weight: 500;
}

.bt-contact__counter {
    flex: 0 0 auto;
    color: var(--bc-muted);
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.bt-contact .bt-contact__input,
.bt-contact .bt-contact__textarea {
    display: block;
    width: 100%;
    height: auto;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #dbe2ec;
    border-radius: 10px;
    background: #fff;
    color: var(--bc-ink);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.45;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.bt-contact .bt-contact__textarea {
    min-height: 148px;
    resize: vertical;
}

.bt-contact .bt-contact__input::placeholder,
.bt-contact .bt-contact__textarea::placeholder {
    color: #9aa4b2;
}

.bt-contact .bt-contact__input:hover,
.bt-contact .bt-contact__textarea:hover {
    border-color: #c6d4e8;
}

.bt-contact .bt-contact__input:focus,
.bt-contact .bt-contact__textarea:focus {
    outline: 0;
    border-color: var(--bc-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(42, 90, 159, .13);
}

.bt-contact .bt-contact__input[aria-invalid="true"],
.bt-contact .bt-contact__textarea[aria-invalid="true"] {
    border-color: #e08d7b;
    background: #fffafa;
}

.bt-contact__hint {
    margin: 0 !important;
    color: var(--bc-muted);
    font-size: 12px;
    line-height: 1.45;
}

.bt-contact__error {
    display: none;
    margin: 0 !important;
    color: var(--bc-danger);
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.45;
}

.bt-contact__field.is-invalid .bt-contact__error,
.bt-contact__error.is-visible {
    display: block;
}

/* ---------- Согласие ---------- */
.bt-contact__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    scroll-margin-top: 120px;
    padding: 12px 14px;
    border: 1px solid var(--bc-line);
    border-radius: var(--bc-radius-sm);
    background: var(--bc-bg);
    color: var(--bc-ink-soft);
    font-size: 12.5px;
    line-height: 1.55;
    transition: border-color .15s ease, background-color .15s ease;
}

.bt-contact__consent.is-invalid {
    border-color: #e08d7b;
    background: #fff8f6;
}

.bt-contact .bt-contact__consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--bc-brand);
}

.bt-contact__consent label {
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 500;
    line-height: inherit;
    cursor: pointer;
}

.bt-contact__consent a {
    color: var(--bc-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bt-contact__consent-error {
    margin: 7px 0 0 !important;
}

/* ---------- Кнопка отправки ---------- */
.bt-contact__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.bt-contact__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    margin: 0;
    padding: 13px 24px;
    border: 0;
    border-radius: 10px;
    background: var(--bc-brand);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: none;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(204, 29, 20, .28);
    transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
}

.bt-contact__submit:hover {
    transform: translateY(-1px);
    background: #b41a12;
    box-shadow: 0 8px 20px rgba(204, 29, 20, .34);
}

.bt-contact__submit svg {
    display: block;
    width: 18px;
    height: 18px;
}

.bt-contact__submit[disabled] {
    opacity: .7;
    cursor: default;
    transform: none;
}

.bt-contact__actions-note {
    color: var(--bc-muted);
    font-size: 12px;
    line-height: 1.4;
}

.bt-contact__form-status {
    margin: 0 0 12px;
    color: var(--bc-danger);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

.bt-contact__form-status:empty {
    display: none;
}

/* ---------- Боковая колонка ---------- */
.bt-contact__side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bt-contact__facts {
    margin: 16px 0 0;
}

.bt-contact__fact {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 0;
    border-top: 1px solid var(--bc-line-soft);
    font-size: 13px;
    line-height: 1.45;
}

.bt-contact__fact:first-child {
    padding-top: 0;
    border-top: 0;
}

.bt-contact__fact dt {
    color: var(--bc-muted);
    font-weight: 700;
}

.bt-contact__fact dd {
    margin: 0;
    color: var(--bc-ink);
    overflow-wrap: anywhere;
}

.bt-contact__fact a {
    color: var(--bc-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(42, 90, 159, .25);
}

.bt-contact__fact a:hover {
    border-bottom-color: currentColor;
}

.bt-contact__age {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    margin-top: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fdecec;
    color: #a3231b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.bt-contact__tips {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.bt-contact__tips li {
    position: relative;
    padding-left: 22px;
    color: var(--bc-ink-soft);
    font-size: 13px;
    line-height: 1.5;
}

.bt-contact__tips li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaf7eb;
    color: var(--bc-green);
    font-size: 10px;
    font-weight: 900;
}

.bt-contact__links {
    display: grid;
    margin-top: 10px;
}

.bt-contact__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 2px;
    border-bottom: 1px solid var(--bc-line-soft);
    color: var(--bc-ink) !important;
    font-size: 13.5px;
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none !important;
}

.bt-contact__link:last-child {
    border-bottom: 0;
}

.bt-contact__link span {
    flex: 0 0 auto;
    color: var(--bc-muted);
    font-size: 18px;
    line-height: 1;
    transition: transform .15s ease, color .15s ease;
}

.bt-contact__link:hover span {
    color: var(--bc-blue);
    transform: translateX(3px);
}

.bt-contact__help-note {
    margin-top: 12px !important;
    color: var(--bc-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* ---------- Адаптив ---------- */
@media screen and (max-width: 1024px) {
    .bt-contact__hero {
        grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
        gap: 20px;
        padding: 26px;
    }

    .bt-contact__channels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bt-contact__layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    }
}

/* В двухколоночной раскладке на средних экранах боковая колонка узкая —
   подписи и значения в реквизитах лучше показывать друг под другом. */
@media screen and (min-width: 901px) and (max-width: 1100px) {
    .bt-contact__fact {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }
}

@media screen and (max-width: 900px) {
    .bt-contact__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .bt-contact__side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .bt-contact__side > .bt-contact__card:last-child {
        grid-column: 1 / -1;
    }
}

@media screen and (max-width: 640px) {
    .bt-contact {
        padding-left: 10px;
        padding-right: 10px;
    }

    .bt-contact__inner {
        gap: 12px;
    }

    .bt-contact__hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding: 20px 18px;
        border-radius: 14px;
    }

    .bt-contact__hero h1 {
        font-size: clamp(26px, 8vw, 34px);
    }

    .bt-contact__lead {
        font-size: 14px;
    }

    .bt-contact__hero-art {
        justify-content: flex-start;
    }

    .bt-contact__hero-art img {
        max-width: 230px;
    }

    .bt-contact__hero-actions {
        align-items: stretch;
    }

    .bt-contact__btn {
        flex: 1 1 auto;
        min-height: 48px;
    }

    .bt-contact__channels {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .bt-contact__channel {
        padding: 12px 13px;
    }

    .bt-contact__channel-icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .bt-contact__card,
    .bt-contact__card--form {
        padding: 18px 15px;
        border-radius: 14px;
    }

    .bt-contact__side {
        display: flex;
        flex-direction: column;
    }

    .bt-contact__side > .bt-contact__card:last-child {
        grid-column: auto;
    }

    .bt-contact__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .bt-contact__title {
        font-size: 18px;
    }

    .bt-contact__fact {
        grid-template-columns: minmax(0, 1fr);
        gap: 2px;
    }

    .bt-contact__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .bt-contact__submit {
        width: 100%;
        min-height: 52px;
    }

    .bt-contact__actions-note {
        text-align: center;
    }
}

@media screen and (max-width: 390px) {
    .bt-contact__hero {
        padding: 16px 14px;
    }

    .bt-contact__eyebrow {
        font-size: 10px;
    }

    .bt-contact__channel strong {
        font-size: 13px;
    }
}

/* Уважаем системную настройку «меньше движения» */
@media (prefers-reduced-motion: reduce) {
    .bt-contact__btn,
    .bt-contact__channel,
    .bt-contact__submit,
    .bt-contact__link span,
    .bt-contact .bt-contact__input,
    .bt-contact .bt-contact__textarea {
        transition: none !important;
    }
}
