.contacts-page {
    padding: 0 0 72px;
}

.contacts-hero,
.contacts-section {
    padding: 32px 0;
}

.contacts-hero__grid {
    display: block;
}

.contacts-hero__copy,
.contacts-map-card,
.contacts-office-card,
.representation-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(43, 143, 235, 0.12);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(43, 143, 235, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.96));
    box-shadow: 0 28px 60px rgba(24, 45, 74, 0.08);
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.contacts-hero__copy:hover,
.contacts-map-card:hover,
.contacts-office-card:hover,
.representation-card:hover {
    transform: translateY(-4px);
    border-color: rgba(43, 143, 235, 0.28);
    box-shadow: 0 30px 68px rgba(43, 143, 235, 0.16);
    background:
        radial-gradient(circle at top right, rgba(43, 143, 235, 0.22), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(240, 247, 253, 0.98));
}

.contacts-hero__copy::before,
.contacts-map-card::before,
.contacts-office-card::before,
.representation-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/public/img/spider-r.svg') right top / 220px no-repeat;
    opacity: 0.08;
    pointer-events: none;
}

.contacts-hero__copy {
    padding: 42px;
}

.contacts-hero__copy h1 {
    margin: 0 0 2rem;
    max-width: none;
    color: #2b8feb;
    font-size: 40px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.contacts-hero__list {
    display: grid;
    gap: 12px;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.contacts-hero__list li {
    position: relative;
    padding-left: 28px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.contacts-hero__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2b8feb, #8dc7ff);
    box-shadow: 0 0 0 6px rgba(43, 143, 235, 0.12);
    transform: translateY(-50%);
}

.contacts-hero__copy p,
.contacts-section__head p,
.contacts-office-card p,
.representation-card p,
.contacts-section__note {
    margin: 0;
    color: #5a6878;
    font-size: 1rem;
    line-height: 1.72;
}

.contacts-hero__text-mobile {
    display: none;
}

.contacts-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.contacts-hero__actions:has(.landing-button--ghost:hover) .landing-button--primary {
    background: var(--page-bg);
    border-color: rgba(15,23,42,0.08);
    color: #0f172a;
    box-shadow: none;
}

.contacts-info-item {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(30, 89, 150, 0.09);
}

.contacts-info-item__label {
    color: #6f7f91;
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contacts-info-item__value,
.contacts-info-item__value a,
.contacts-office-card__list a,
.representation-card__link,
.representation-card__address {
    color: #173657;
    font-weight: 600;
    text-decoration: none;
}

.contacts-info-item__value--stack {
    display: grid;
    gap: 6px;
}

.contacts-section__head {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.contacts-section__head h2 {
    margin: 0 0 2rem;
    color: #2b8feb;
    font-size: 40px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.contacts-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.7fr);
    gap: 24px;
    align-items: stretch;
}

.contacts-map-card,
.contacts-office-card {
    padding: 22px;
}

.contacts-map-frame {
    position: relative;
    min-height: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: #dfe8f1;
}

.contacts-map-frame script {
    display: block;
}

.contacts-map-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 650px;
}

.contacts-map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.contacts-map-fallback {
    position: absolute;
    inset: 20px;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 14px;
    padding: 28px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(43, 143, 235, 0.16);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.contacts-map-fallback strong {
    color: #2b8feb;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 800;
    text-transform: uppercase;
}

.contacts-map-fallback p {
    margin: 0;
    color: #5a6878;
}

.contacts-office-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    color: #5a6878;
}

.contacts-office-card h3 {
    color: #2b8feb;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.representation-card h3 {
    margin: 0 0 1.5rem;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.contacts-office-card h3 {
    margin: 0 0 1.5rem;
    text-align: left;
}

.contacts-office-card__list strong {
    color: #2b8feb;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase !important;
}

.contacts-office-card__list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contacts-office-card__list li {
    display: grid;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(26, 75, 123, 0.1);
}

.contacts-office-card__list span,
.contacts-office-card__list a {
    color: #5a6878;
}

.contacts-office-card__list li > span,
.contacts-office-card__list li > span > a {
    text-transform: uppercase;
}

.contacts-office-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.contacts-office-card__phones {
    display: grid;
    gap: 4px;
}

.contacts-section__head--split {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: end;
    gap: 18px;
}

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

.representation-card {
    display: grid;
    gap: 16px;
    padding: 28px;
}

.representation-card__contacts {
    display: grid;
    gap: 10px;
}

.representation-card__link,
.representation-card__address {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: #0f172a;
}

.representation-card__link:hover,
.contacts-info-item__value a:hover,
.contacts-office-card__list a:hover {
    color: var(--brand-blue);
}

.representation-card:hover h3,
.representation-card:hover .representation-card__address {
    color: var(--brand-blue);
}

.representation-card__address {
    color: #496178;
    font-weight: 500;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .contacts-hero__grid,
    .contacts-map-layout,
    .contacts-section__head--split,
    .contacts-representation-grid {
        grid-template-columns: 1fr;
    }

    .contacts-map-frame {
        min-height: 520px;
    }
}

@media (max-width: 767px) {
    .contacts-page {
        padding-bottom: 56px;
    }

    .contacts-hero__actions {
        width: 100%;
    }

    .contacts-hero__actions .landing-button {
        width: 100%;
    }

    .contacts-hero__text-desktop {
        display: none;
    }

    .contacts-hero__text-mobile {
        display: inline;
    }

    .contacts-hero,
    .contacts-section {
        padding: 24px 0;
    }

    .contacts-hero__copy,
    .contacts-map-card,
    .contacts-office-card,
    .representation-card {
        border-radius: 22px;
    }

    .contacts-hero__copy,
    .representation-card {
        padding: 28px 22px;
    }

    .contacts-map-card,
    .contacts-office-card {
        padding: 16px;
    }

    .contacts-map-card {
        display: none;
    }

    .contacts-hero__copy h1 {
        max-width: none;
        font-size: 28px;
        margin-bottom: 1.25rem;
        line-height: 1.25;
    }

    .contacts-hero__list li,
    .contacts-section__head h2,
    .contacts-office-card h3,
    .representation-card h3,
    .contacts-office-card__list strong {
        font-size: 18px;
        line-height: 1.18;
    }

    .contacts-office-card__phones,
    .contacts-office-card__actions,
    .contacts-info-item__value,
    .contacts-info-item__value a,
    .contacts-office-card__list a,
    .representation-card__link {
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: clamp(12px, 4vw, 15px);
        line-height: 1.25;
    }

    .representation-card__address {
        min-width: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        align-items: flex-start;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .contacts-office-card__phones a {
        display: block;
    }

    .contacts-map-frame {
        min-height: 320px;
        max-height: 50vh;
        border-radius: 18px;
    }

    .contacts-map-embed {
        min-height: 320px;
        max-height: 50vh;
    }
}

@media (max-width: 420px) {
    .contacts-hero__copy h1 {
        font-size: 28px;
        line-height: 1.25;
    }

    .contacts-section__head h2 {
        font-size: 28px;
        line-height: 1.25;
    }

    .contacts-map-frame,
    .contacts-map-embed {
        min-height: 260px;
        max-height: 50vh;
    }
}
