/* ===== КОНТАКТЫ — тёмная секция ===== */
#contact {
    position: relative;
    overflow: hidden;
    /* высота по содержимому, а не на весь экран */
    display: flex;
    align-items: center;
    background:
        /* свечение вверху — внизу секция спокойная, переход в подвал ровный */
        radial-gradient(ellipse at 85% 25%, var(--glow-spot) 0%, transparent 55%),
        var(--bg-1);
    border-top: 1px solid var(--hairline);
}
#contact::before {
    content: '';
    position: absolute;
    top: -180px;
    left: -140px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30, 94, 255, 0.16), transparent 70%);
    pointer-events: none;
}

.contact-conteiner {
    position: relative;
    z-index: 2;
    /* без border-box боковые паддинги прибавлялись к width: 100%,
       блок вылезал за секцию и правый отступ съедался на 10px */
    box-sizing: border-box;
    width: 100%;
    /* блок во всю ширину, а боковой отступ считает --gutter — ровно так же,
       как у шапки и подвала. При max-width на самом блоке вместе с border-box
       предел 1720px срезал бы содержимое ещё раз, и текст был уже остальных. */
    max-width: none;
    margin: auto;
    padding: clamp(40px, 5vw, 70px) var(--gutter);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 4vw, 64px);
    /* обе колонки одной высоты: карта тянется по левой колонке */
    align-items: stretch;
}
.contact-left,
.contact-right {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
/* те же промежутки, что в левой колонке «Утилизации» */
.contact-left { gap: clamp(16px, 1.6vw, 22px); }
.contact-right { gap: 12px; }

.contact-kicker {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--blue-2);
}
.contact-kicker--muted {
    color: var(--text-mute);
}
.contact-header {
    color: var(--text);
    font-size: clamp(28px, 3.4vw, 50px);
    font-weight: 700;
    line-height: 1.1;
}
.contact-description {
    color: var(--text-dim);
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.65;
    max-width: 560px;
}

/* карточки «Адрес» и «Телефон» */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 8px;
}
.contact-card {
    padding: 22px;
    border-radius: var(--radius-md);
    background: var(--card-bg);
    border: 1px solid var(--card-brd);
}
.contact-label {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-mute);
}
.contact-value {
    display: block;
    font-style: normal;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    text-decoration: none;
}
/* цвет номера — на span: у tel-ссылок в main.css color: inherit !important */
.contact-phone span {
    font-size: 18px;
    color: var(--text);
    transition: color 0.25s ease;
}
.contact-phone:hover span {
    color: var(--blue-3);
}

.contact-button {
    border: none;
    box-sizing: border-box;
    /* пилюля по ширине надписи, с бликом при наведении */
    border-radius: 999px;
    background: var(--btn-grad);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    /* одна мягкая тень вместо трёх слоёв */
    box-shadow: 0 6px 18px rgba(30, 94, 255, 0.22);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    align-self: flex-start;
    /* кнопка — отдельное действие: отступаем от карточек чуть больше, чем между блоками текста */
    margin-top: clamp(10px, 1.2vw, 18px);
    height: 68px;
    flex-shrink: 0;
    font-size: clamp(16px, 1.4vw, 20px);
}
.contact-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}
.contact-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 8px 22px rgba(30, 94, 255, 0.3);
}
.contact-button:hover::after {
    left: 130%;
}
.contact-button:active {
    transform: translateY(0) scale(0.98);
}

/* Карта — рамка-линия, тянется до низа наравне с кнопкой */
.map {
    position: relative;
    aspect-ratio: 4 / 3;
    padding: 6px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-brd);
    background: var(--card-bg);
    box-sizing: border-box;
    overflow: hidden;
}
/* Карта остаётся в дневной схеме 2ГИС, фильтры на виджет не накладываем */
#map_281996780 {
    display: block;
    border-radius: 18px;
    width: 100% !important;
    height: 100% !important;
}

.mark {
    display: none;
}

/* крупный маркер у правого края: за картой, низ и край срезаны секцией */
.contact-mark {
    position: absolute;
    /* справа край срезан секцией, по высоте маркер целиком внутри блока, чуть выше низа */
    right: clamp(-180px, -6vw, -50px);
    bottom: 4%;
    height: min(90%, 780px);
    width: auto;
    aspect-ratio: 753 / 1017;
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 900px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
    .contact-mark {
        height: 360px;
        bottom: 20px;
    }
}

/* компьютер: карта не по своим пропорциям, а по высоте левой колонки —
   раньше 4:3 делало её выше текста, и слева всё было сжато кверху */
@media (min-width: 901px) {
    .map {
        aspect-ratio: auto;
        flex: 1 1 auto;
        min-height: 320px;
    }
}


/* 901–1000px: метка меньше и прижата к низу блока */
@media (min-width: 901px) and (max-width: 1000px) {
    .contact-mark {
        height: min(60%, 420px);
        bottom: 0;
    }
}
