:root {
    --contact-primary: #7e2525;
    --contact-primary-dark: #601a1a;
    --contact-primary-soft: #fbf3f3;
    --contact-text: #172033;
    --contact-muted: #687386;
    --contact-border: #e3e7ed;
    --contact-surface-soft: #f7f8fa;
}

.contact-page {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .56);
    border-radius: 18px;
    color: var(--contact-text);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 22px 60px rgba(9, 16, 29, .28);
    font-family: "Oswald", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    animation: contact-enter .42s ease-out both;
}

.contact-header {
    min-height: 94px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 18px 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--contact-primary) 0%, var(--contact-primary-dark) 100%);
}

.contact-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.contact-brand img {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    padding: 4px;
    object-fit: contain;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(45, 10, 13, .22);
}

.contact-brand div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.contact-brand span {
    display: block;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: .015em;
    line-height: 1.3;
}

.contact-back-link {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 9px;
    color: #fff;
    background: rgba(255, 255, 255, .09);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease;
}

.contact-back-link:hover {
    border-color: rgba(255, 255, 255, .48);
    color: #fff;
    background: rgba(255, 255, 255, .16);
}

.contact-back-link:focus-visible,
.contact-channel:focus-visible,
.contact-person a:focus-visible {
    outline: 3px solid rgba(126, 37, 37, .2);
    outline-offset: 3px;
}

.contact-information {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(270px, .7fr);
    gap: 24px;
    padding: 24px 30px 26px;
    border-bottom: 1px solid var(--contact-border);
}

.contact-addresses {
    display: grid;
    gap: 0;
}

.contact-detail {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 11px;
    padding: 12px 0;
    border-top: 1px solid var(--contact-border);
}

.contact-detail-icon,
.contact-channel-icon,
.contact-section-icon {
    display: inline-grid;
    place-items: center;
    color: var(--contact-primary);
    background: var(--contact-primary-soft);
}

.contact-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 15px;
}

.contact-detail-label {
    display: block;
    margin-bottom: 3px;
    color: var(--contact-text);
    font-size: 14.5px;
    font-weight: 500;
}

.contact-detail address {
    margin: 0;
    color: var(--contact-muted);
    font-size: 14.5px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
}

.contact-channels {
    display: grid;
    align-self: start;
    align-content: start;
    width: 100%;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--contact-border);
    border-radius: 12px;
    background: var(--contact-surface-soft);
}

.contact-channel {
    min-width: 0;
    min-height: 64px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    border-radius: 0;
    color: var(--contact-text);
    background: transparent;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.contact-channel + .contact-channel {
    border-top: 1px solid var(--contact-border);
}

.contact-channel:hover {
    color: var(--contact-primary);
    background: #fff;
    transform: translateX(2px);
}

.contact-channel-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #fff;
    background: var(--contact-primary);
}

.contact-channel > span:nth-child(2) {
    min-width: 0;
    display: grid;
}

.contact-channel small {
    color: var(--contact-muted);
    font-size: 12.5px;
    font-weight: 400;
}

.contact-channel strong {
    overflow: hidden;
    font-size: 14.5px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-channel > i {
    color: #9aa3b1;
    font-size: 12px;
}

.contact-board {
    margin: 18px 30px 0;
    padding: 17px 20px 8px;
    border: 1px solid var(--contact-border);
    border-radius: 10px;
    background: #fbfcfd;
}

.contact-board-last {
    margin-bottom: 24px;
    padding-bottom: 10px;
}

.contact-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
}

.contact-section-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 9px;
}

.contact-section-heading h2 {
    margin: 0;
    color: var(--contact-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
}

.contact-person-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: center;
    gap: 0 18px;
}

.contact-person {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    padding: 11px 0;
    text-align: center;
}

.contact-person-name {
    width: 100%;
    min-width: 0;
    display: grid;
    gap: 2px;
}

.contact-person-name strong {
    overflow: hidden;
    color: var(--contact-text);
    font-size: 14.5px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-person-name span {
    color: var(--contact-muted);
    font-size: 13.5px;
    font-weight: 400;
}

.contact-person a,
.contact-person-phone {
    flex: 0 0 auto;
    color: var(--contact-primary);
    font-size: 13.5px;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.contact-person a:hover {
    color: var(--contact-primary-dark);
    text-decoration: underline;
}

.contact-person-phone {
    color: var(--contact-muted);
}

.contact-person-list-compact {
    grid-template-columns: repeat(2, minmax(0, 175px));
}

@keyframes contact-enter {
    from {
        opacity: 0;
        transform: translateY(9px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .contact-information {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

}

@media (max-width: 767.98px) {
    .contact-header {
        align-items: flex-start;
        padding: 18px 20px;
    }

    .contact-brand img {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .contact-brand span {
        font-size: 13px;
    }

    .contact-back-link span {
        display: none;
    }

    .contact-back-link {
        width: 40px;
        padding: 0;
    }

    .contact-information,
    .contact-board {
        padding-right: 20px;
        padding-left: 20px;
    }

    .contact-board {
        margin-right: 20px;
        margin-left: 20px;
    }

    .contact-person-list,
    .contact-person-list-compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 480px) {
    .contact-page {
        border-radius: 14px;
    }

    .contact-header {
        min-height: 88px;
        gap: 10px;
        padding: 16px;
    }

    .contact-brand {
        gap: 9px;
    }

    .contact-brand img {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 9px;
    }

    .contact-brand span {
        font-size: 11.5px;
    }

    .contact-information,
    .contact-board {
        padding-right: 16px;
        padding-left: 16px;
    }

    .contact-board {
        margin-right: 16px;
        margin-left: 16px;
    }

}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
