.mp-contacts-page {
    --ct-paper: #e3e6fc;
    --ct-ink: #171730;
    --ct-purple: #792ad2;
    --ct-accent: linear-gradient(145deg, #a742ee, #4d149a);
}

.ct-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: white;
    background: linear-gradient(#111931 60%, #2e3b77 83%, var(--ct-paper));
}

.ct-hero-art {
    position: absolute;
    z-index: -1;
    inset: 0 0 auto auto;
    width: min(60%, 830px);
    height: 100%;
    object-fit: cover;
    object-position: right center;
    mask-image: linear-gradient(to right, transparent, #000 30%),
        linear-gradient(to bottom, #000 79%, transparent 99%);
    mask-composite: intersect;
}

.ct-hero-copy { min-height: 335px; padding: 24px 0 72px; }

.ct-hero nav {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 14px;
}

.ct-hero nav a { color: inherit; }

.ct-hero h1 {
    margin: 0 0 19px;
    font: normal 850 clamp(36px, 5.3vw, 70px)/1.05 Arial, Helvetica, sans-serif;
    letter-spacing: -.032em;
    text-shadow: 0 2px 12px #10182f;
}

.ct-hero p {
    margin: 0;
    width: fit-content;
    padding-left: 17px;
    border-left: 4px solid #bc85ff;
    font-size: clamp(17px, 2.1vw, 27px);
    line-height: 1.28;
    text-shadow: 0 2px 10px #10182f;
}

.ct-content {
    padding: 0 0 52px;
    color: var(--ct-ink);
    background: linear-gradient(var(--ct-paper), #eff0ff 52%, #d9ddfb);
}

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

.ct-card {
    padding: clamp(17px, 2.6vw, 32px);
    border: 1px solid #fff;
    border-radius: 26px;
    background: linear-gradient(130deg, #fffdfedd, #e7e6fc);
    box-shadow: 0 9px 25px #354ead25;
}

.ct-card h2 {
    margin: 0;
    font-size: clamp(21px, 2.4vw, 33px);
    line-height: 1.1;
    letter-spacing: -.03em;
}

.ct-phone, .ct-channel-title {
    display: flex;
    align-items: center;
    gap: clamp(13px, 2vw, 24px);
}

.ct-phone > div {
    padding-left: clamp(12px, 2vw, 24px);
    border-left: 3px solid #a46be3;
}

.ct-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: clamp(52px, 7.7vw, 103px);
    aspect-ratio: 1;
    border-radius: 32%;
    color: #fff;
    background: var(--ct-accent);
    box-shadow: 0 5px 12px #742bd144;
}

.ct-icon svg {
    width: 59%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ct-button {
    display: inline-block;
    padding: 10px 17px;
    margin-top: 12px;
    border-radius: 15px;
    color: #fff;
    background: var(--ct-accent);
    font-weight: 750;
    font-size: clamp(15px, 2vw, 27px);
    line-height: 1.22;
    text-decoration: none;
}

.ct-phone .ct-button { white-space: nowrap; }

.ct-channel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(100px, 36%);
    align-items: center;
    gap: clamp(10px, 2vw, 25px);
}

.ct-channel h2 a { color: inherit; }
.ct-channel .ct-icon { width: clamp(40px, 6vw, 80px); }
.ct-icon-telegram { background: linear-gradient(145deg, #13bdfa, #007abf); }
.ct-icon-max { background: linear-gradient(145deg, #7d08e2, #005eff); }

.ct-channel p, .ct-warehouse p, .ct-warehouse address {
    margin: 13px 0 0;
    font-size: clamp(16px, 1.8vw, 24px);
    line-height: 1.3;
}

.ct-qr {
    display: block;
    padding: 3px;
    border: 2px solid #9958e7;
    border-radius: 14px;
    background: white;
}

.ct-qr img, .ct-map img { display: block; width: 100%; height: auto; }
.ct-qr img { aspect-ratio: 1; }

.ct-warehouse {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: .86fr 1fr;
    align-items: center;
    gap: 25px;
}

.ct-warehouse > div:first-child { border-left: 4px solid #a36be3; padding-left: 20px; }
.ct-warehouse address { font-style: normal; }
.ct-map { display: block; overflow: hidden; border-radius: 18px; }

@media (max-width: 760px) {
    .ct-hero { display: flex; flex-direction: column; }
    .ct-hero-copy { min-height: auto; padding: 20px 0 12px; }
    .ct-hero-art {
        position: relative;
        order: 1;
        inset: auto;
        width: 100%;
        height: auto;
        mask-image: linear-gradient(to bottom, transparent, #000 17%, #000 82%, transparent);
    }
    .ct-grid { grid-template-columns: 1fr; gap: 14px; }
    .ct-warehouse { grid-template-columns: 1fr; }
}

.ct-phone > div {
    flex: 1;
    min-width: 0;
    container-type: inline-size;
}

#contact-support {
    font-size: min(27px, 5.9cqw);
    white-space: nowrap;
}

.ct-map {
    position: relative;
    isolation: isolate;
}

.ct-map-pin {
    position: absolute;
    inset: 0;
    background: url('../images/contacts-site/warehouse-plan.jpg') center / 100% 100%;
    clip-path: polygon(
        46.19% 10.77%, 49.62% 11.58%, 52.06% 14.70%, 53.72% 18.62%,
        54.61% 23.93%, 53.72% 30.16%, 51.18% 35.94%, 47.96% 42.40%,
        46.19% 45.75%, 44.09% 42.40%, 40.98% 35.94%, 38.55% 30.16%,
        37.66% 23.93%, 38.55% 18.62%, 40.32% 14.81%, 42.87% 11.69%
    );
    transform-origin: 46.19% 45.75%;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .ct-motion-ready [data-contact-reveal] {
        opacity: 0;
        transform: translateY(22px);
        transition: opacity 550ms ease, transform 550ms cubic-bezier(.22, 1, .36, 1);
        transition-delay: var(--ct-reveal-delay, 70ms);
    }

    .ct-motion-ready [data-contact-reveal].is-revealed {
        opacity: 1;
        transform: none;
    }

    .ct-grid > :nth-child(2) { --ct-reveal-delay: 130ms; }
    .ct-grid > :nth-child(3) { --ct-reveal-delay: 260ms; }
    .ct-grid > :nth-child(4) { --ct-reveal-delay: 390ms; }
    .ct-warehouse { --ct-reveal-delay: 520ms; }

    .ct-map-pin { animation: ct-pin-hop 3.5s ease-in-out infinite; }

    @keyframes ct-pin-hop {
        0%, 52%, 100% { transform: none; }
        73% { transform: translateY(-2px) scale(1.045, 1.19); }
    }
}

[data-site-ambient] .ct-map-pin {
    animation-play-state: var(--site-ambient-state);
}

@media (max-width: 520px) {
    .ct-phone {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px 13px;
    }

    .ct-phone > div { display: contents; }
    .ct-phone h2,
    #contact-support {
        grid-column: 1 / -1;
        grid-row: 1;
        font-size: clamp(15px, 4.3vw, 21px);
    }

    .ct-phone .ct-icon { grid-row: 2; width: 42px; }
    .ct-phone .ct-button {
        justify-self: start;
        min-height: 44px;
        margin: 0;
        padding: 12px 15px;
    }

    .ct-warehouse .ct-button {
        min-height: 44px;
        padding: 12px 14px;
    }
}
