/* ==========================================================================
   Карта на странице контактов
   ========================================================================== */

.map-section {
    position: relative;
    height: 580px;
    box-sizing: border-box;
    border-top: 3px solid var(--lime);
    background: var(--ink);
    overflow: hidden;
}

.map-section__canvas {
    position: absolute;
    inset: 0;
    background: #dfe5e3;
}

/* Чёрно-белая подложка, цветным остаётся только маркер */
.map-section__canvas [class*="ground-pane"] {
    filter: grayscale(1) contrast(0.95) brightness(0.97);
}

/* Затемнение слева под панелью */
.map-section__shade {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(9, 23, 27, 0.55) 0%, rgba(9, 23, 27, 0) 60%);
}

.map-section__overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    pointer-events: none;
}

/* Панель */
.map-panel {
    position: relative;
    width: 380px;
    box-sizing: border-box;
    padding: 36px 34px 32px 38px;
    background-color: var(--ink);
    background-image:
            linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    color: #fff;
    box-shadow: 0 30px 60px rgba(9, 23, 27, 0.35);
    pointer-events: auto;
}

.map-panel::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--lime);
}

.map-panel h2 {
    font-size: 44px;
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0 0 26px;
    color: #fff;
}

.map-panel h2 em {
    color: var(--lime);
    font-style: normal;
}

.map-panel__lines {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 26px;
}

.map-panel__line {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 12px;
    align-items: start;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.map-panel__line > svg {
    color: var(--lime);
    margin-top: 2px;
}

.map-panel__line span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.map-panel__line small {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8fa0a4;
}

.map-panel__line b,
.map-panel__line a {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.map-panel__line a:hover {
    color: var(--lime);
}

.map-panel__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-panel__actions .btn {
    width: 100%;
}

/* ==========================================================================
   Маркер на карте
   ========================================================================== */

.custom-pin {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transform: translate(-50%, -100%); /* нижняя точка маркера = координата */
}

.custom-pin__body {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 6px 6px;
    background: #12242a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 40px;
    box-shadow: 0 8px 24px rgba(9, 23, 27, 0.45);
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.custom-pin:hover .custom-pin__body {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(9, 23, 27, 0.5);
}

.custom-pin__badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--pin-color, #d6f23d);
    display: grid;
    place-items: center;
    flex: none;
}

.custom-pin__icon {
    width: 17px;
    height: 17px;
    stroke: #12242a;
}

.custom-pin__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.custom-pin__text b {
    font-family: Oswald, sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    color: #fff;
}

.custom-pin__text small {
    font-family: Manrope, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
    color: #8fa0a4;
}

.custom-pin__tail {
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid #12242a;
    margin-top: -1px;
}

/* Пульсирующая точка в самой координате */
.custom-pin__dot {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--pin-color, #d6f23d);
    border: 2px solid #12242a;
    transform: translate(-50%, 50%);
}

.custom-pin__dot::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid var(--pin-color, #d6f23d);
    opacity: 0;
    animation: kb-pin-pulse 2.2s ease-out infinite;
}

@keyframes kb-pin-pulse {
    0%   { transform: scale(0.4); opacity: 0.9; }
    100% { transform: scale(2.2); opacity: 0; }
}
@media (max-width: 900px) {
    .map-section {
        height: auto !important;
        display: block !important;
        background: var(--soft) !important;
        overflow: hidden !important; /* Обрезаем всё, что вылезает */
    }
    .map-section__canvas {
        position: relative !important;
        height: 360px !important;
    }
    .map-section__shade {
        display: none !important;
    }
    .map-section__overlay {
        position: relative !important;
        margin-top: -48px !important;
        padding-bottom: 40px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Панель карты на мобильных */
    .map-panel {
        width: calc(100% - 32px) !important;
        margin: 0 auto !important;
        padding: 24px 20px !important;
        box-sizing: border-box !important;
        /* УБРАЛИ border-left: 4px solid var(--lime); */
    }

    .map-panel h2 {
        font-size: 32px !important;
    }

    /* Кнопки на мобильных */
    .map-panel__actions {
        width: 100% !important;
    }

    .map-panel__actions .btn {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 10px !important;
        font-size: 12px !important;
        white-space: normal !important; /* Разрешаем перенос текста */
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
    }
}
.page-hero--contacts {
    padding-bottom: 80px;
}

.page-hero--contacts .btn {
    margin-top: 4px;
}
.contact-strip-wrap {
    position: relative;
    z-index: 3;
    margin-top: -56px;
}

.contact-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--ink);
    border-top: 3px solid var(--lime);
    box-shadow: 0 25px 50px rgba(9, 23, 27, 0.25);
}

.contact-strip__item {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: start;
    padding: 26px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-strip__item:last-child {
    border-right: 0;
}

.contact-strip__icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--lime);
    font-style: normal;
}

.contact-strip__item span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.contact-strip__item small {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8fa0a4;
    margin-bottom: 2px;
}

.contact-strip__item a,
.contact-strip__item b {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    transition: color 0.2s;
}

.contact-strip__item a:hover {
    color: var(--lime);
}

/* Шаги слева */
.contact-steps {
    margin-top: 40px;
    border-top: 1px solid var(--line);
}

.contact-step {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.contact-step > b {
    font: 600 38px/1 Oswald, sans-serif;
    color: #8ea100;
}

.contact-step h3 {
    font-size: 21px;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.contact-step p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
    margin: 0;
}

/* Форма */
.contacts form {
    position: relative;
}

.contacts form::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--lime);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contacts input,
.contacts textarea {
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contacts input:focus,
.contacts textarea:focus {
    box-shadow: 0 0 0 3px rgba(214, 242, 61, 0.35);
}

.form-ok {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    margin-bottom: 22px;
    background: var(--lime);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

/* Панель на карте: текст и кнопки */
.map-panel p {
    font-size: 13px;
    line-height: 1.8;
    color: #aab8bb;
    margin: 0 0 26px;
}

.map-panel__actions .btn {
    font-family: inherit;
}

@media (min-width: 901px) {
    .map-section {
        height: 520px;
    }
}

@media (max-width: 1080px) {
    .contact-strip {
        grid-template-columns: 1fr 1fr;
    }
    .contact-strip__item:nth-child(2) {
        border-right: 0;
    }
    .contact-strip__item:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 760px) {
    .page-hero--contacts {
        padding-bottom: 60px;
    }
    .contact-strip-wrap {
        margin-top: -40px;
    }
    .contact-strip {
        grid-template-columns: 1fr;
    }
    .contact-strip__item,
    .contact-strip__item:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 20px;
    }
    .contact-strip__item:last-child {
        border-bottom: 0;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-step {
        grid-template-columns: 54px 1fr;
    }
}
.contacts form {
    box-sizing: border-box;
}

.contacts form label {
    min-width: 0;
}

.contacts input,
.contacts textarea {
    box-sizing: border-box;
    display: block;
    max-width: 100%;
}

.contacts form .btn {
    width: 100%;
    box-sizing: border-box;
}