/* Десктоп: ссылка на #contact; ≤768px — кнопка «Связаться с нами» + шит.
   Кнопка вынесена из responsive «микро-режима»: тот же ритм, что у основного CTA и шапки. */
.nav-cta-btn--contact-sheet {
    display: none;
}

@media (max-width: 768px) {
    .nav-cta-btn--desktop-nav {
        display: none !important;
    }

    .navbar .nav-cta-btn.nav-cta-btn--contact-sheet {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        position: relative;
        overflow: hidden;
        appearance: none;
        -webkit-appearance: none;
        min-height: 44px;
        min-width: 0;
        max-width: min(12rem, calc(100vw - 8.75rem));
        padding: 10px 16px;
        margin: 0;
        border-radius: 999px;
        border: 1px solid rgba(255, 215, 0, 0.52);
        background:
            radial-gradient(circle at 0% 0%, rgba(255, 215, 0, 0.28) 0, transparent 52%),
            linear-gradient(135deg, #020617, #0f172a);
        color: #fff;
        font-family: var(--font-h), system-ui, sans-serif;
        font-weight: 800;
        font-size: clamp(0.64rem, 3.15vw, 0.76rem);
        letter-spacing: 0.1em;
        line-height: 1.2;
        text-transform: uppercase;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.88);
        white-space: normal;
        text-align: center;
        cursor: pointer;
        box-shadow:
            0 1px 2px rgba(0, 0, 0, 0.35),
            0 0 0 1px rgba(255, 215, 0, 0.06),
            0 6px 22px -8px rgba(250, 204, 21, 0.32),
            0 14px 34px -18px rgba(0, 0, 0, 0.88),
            inset 0 1px 0 rgba(255, 255, 255, 0.12);
        transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .navbar .nav-cta-btn.nav-cta-btn--contact-sheet::before {
        border-radius: inherit;
    }

    .navbar .nav-cta-btn.nav-cta-btn--contact-sheet:hover,
    .navbar .nav-cta-btn.nav-cta-btn--contact-sheet:focus-visible {
        transform: translateY(-1px);
        border-color: rgba(255, 215, 0, 0.88);
        color: #fff;
        box-shadow:
            0 0 0 1px rgba(255, 215, 0, 0.45),
            0 0 28px rgba(250, 204, 21, 0.48),
            0 16px 40px -14px rgba(0, 0, 0, 0.92),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 430px) {
    .navbar .nav-cta-btn.nav-cta-btn--contact-sheet {
        max-width: min(10.75rem, calc(100vw - 7.85rem));
        padding: 9px 12px;
        min-height: 40px;
        font-size: clamp(0.62rem, 3.05vw, 0.72rem);
    }
}

@media (max-width: 375px) {
    .navbar .nav-cta-btn.nav-cta-btn--contact-sheet {
        max-width: min(10rem, calc(100vw - 7.25rem));
        padding: 8px 10px;
        font-size: clamp(0.6rem, 2.95vw, 0.68rem);
        letter-spacing: 0.09em;
    }
}

/* ——— Модальное окно / шит ——— */
.contact-nav-sheet {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding:
        max(12px, env(safe-area-inset-top, 0px))
        max(16px, env(safe-area-inset-right, 0px))
        max(12px, env(safe-area-inset-bottom, 0px))
        max(16px, env(safe-area-inset-left, 0px));
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition:
        opacity 0.28s ease,
        visibility 0.28s ease;
}

.contact-nav-sheet.is-open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
}

.contact-nav-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    cursor: pointer;
}

.contact-nav-sheet__panel {
    position: relative;
    z-index: 1;
    width: min(22rem, 100%);
    max-height: min(calc(100vh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)), 32rem);
    margin: auto;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
    border: 1px solid rgba(255, 215, 0, 0.28);
    background:
        linear-gradient(165deg, rgba(255, 215, 0, 0.08) 0%, transparent 42%),
        linear-gradient(180deg, #0a0b10 0%, #050508 100%);
    box-shadow:
        0 0 0 1px rgba(255, 250, 140, 0.12),
        0 0 40px rgba(255, 215, 0, 0.12),
        0 24px 60px rgba(0, 0, 0, 0.75);
    padding: clamp(18px, 4vw, 24px) clamp(16px, 4vw, 22px) clamp(20px, 4vw, 26px);
    transform: translateY(10px) scale(0.98);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-nav-sheet.is-open .contact-nav-sheet__panel {
    transform: translateY(0) scale(1);
}

.contact-nav-sheet__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 215, 0, 0.35);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}

.contact-nav-sheet__close:hover,
.contact-nav-sheet__close:focus-visible {
    border-color: var(--accent);
    background: rgba(255, 215, 0, 0.08);
    color: #fff;
}

.contact-nav-sheet__close:focus-visible {
    outline: 2px solid rgba(255, 215, 0, 0.55);
    outline-offset: 2px;
}

.contact-nav-sheet__kicker {
    margin: 0 0 8px;
    font-family: var(--font-label), ui-monospace, monospace;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 215, 0, 0.88);
}

.contact-nav-sheet__title {
    margin: 0 0 8px;
    padding-right: 44px;
    font-family: var(--font-h), system-ui, sans-serif;
    font-size: clamp(1.05rem, 4.2vw, 1.35rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.15;
}

.contact-nav-sheet__lead {
    margin: 0 0 18px;
    font-size: clamp(0.78rem, 2.8vw, 0.875rem);
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.58);
}

.contact-nav-sheet__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-nav-sheet__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    transition:
        border-color 0.22s ease,
        background 0.22s ease,
        box-shadow 0.22s ease;
}

.contact-nav-sheet__link:hover,
.contact-nav-sheet__link:focus-visible {
    border-color: rgba(255, 215, 0, 0.35);
    background: rgba(255, 215, 0, 0.06);
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.08);
}

.contact-nav-sheet__link:focus-visible {
    outline: 2px solid rgba(255, 215, 0, 0.45);
    outline-offset: 2px;
}

.contact-nav-sheet__link-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.22);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 215, 0, 0.95);
}

.contact-nav-sheet__link-icon--tg {
    color: #59c7ff;
    border-color: rgba(89, 199, 255, 0.35);
}

.contact-nav-sheet__link-icon--wa {
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.4);
}

.contact-nav-sheet__link-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

.contact-nav-sheet__link-label {
    font-family: var(--font-h), system-ui, sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.contact-nav-sheet__link-value {
    font-size: clamp(0.84rem, 3vw, 0.95rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    word-break: break-word;
}

html.contact-nav-sheet-open,
body.contact-nav-sheet-open {
    overflow: hidden;
}

@media (min-width: 520px) {
    .contact-nav-sheet__panel {
        width: min(24rem, 100%);
    }
}
