@font-face {
    font-family: "MontBold";
    src: url("../fonts/Mont-Bold.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "MontRegular";
    src: url("../fonts/Mont-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "MontThinItalic";
    src: url("../fonts/Mont-ThinItalic.ttf") format("truetype");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

:root {
    --navy: #104b73;
    --deep: #071d2f;
    --cyan: #03a8d4;
    --white: #ffffff;
    --card: #f1f2f4;
    --card-soft: #d7d7d9;
    --photo-bg: #e3e4e6;
    --photo-shape: #aeb3b7;
    --text: #1e1f21;
    --gap-x: clamp(18px, 1.75vw, 32px);
    --gap-y: clamp(18px, 2.8vh, 34px);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--deep);
    color: var(--text);
    font-family: "MontRegular", Arial, Helvetica, sans-serif;
}

.contacts-shell {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    place-items: center;
    align-content: center;
    gap: clamp(8px, 1.1vh, 14px);
    padding: clamp(8px, 1vh, 14px);
    background: var(--deep);
}

.contacts-board {
    width: min(calc(100vw - clamp(16px, 2vw, 28px)), calc((100dvh - clamp(26px, 3.4vh, 44px)) * 16 / 9));
    height: min(calc(100dvh - clamp(26px, 3.4vh, 44px)), calc((100vw - clamp(16px, 2vw, 28px)) * 9 / 16));
    aspect-ratio: 16 / 9;
    background: var(--navy);
    display: grid;
    grid-template-rows: 18.2% 1.15% 1fr;
    overflow: hidden;
}

.contacts-header {
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 3vw, 52px);
    padding: clamp(16px, 2.9vh, 34px) clamp(28px, 3.1vw, 54px) clamp(10px, 1.6vh, 20px);
}

.contacts-title {
    min-width: 0;
}

.contacts-title h1 {
    margin: 0;
    color: var(--text);
    font-family: "MontBold", Arial, Helvetica, sans-serif;
    font-size: clamp(26px, 4.1vh, 46px);
    line-height: 0.98;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.contacts-title p {
    margin: clamp(7px, 1vh, 12px) 0 0;
    color: var(--text);
    font-family: "MontRegular", Arial, Helvetica, sans-serif;
    font-size: clamp(24px, 3.9vh, 43px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.contacts-brand {
    min-width: 24%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.contacts-brand img {
    max-width: min(22vw, 350px);
    max-height: min(10.5vh, 96px);
    object-fit: contain;
}

.brand-fallback {
    display: none;
    color: #154b72;
    text-align: right;
    line-height: 0.9;
}

.brand-fallback strong {
    display: block;
    font-family: "MontBold", Arial, Helvetica, sans-serif;
    font-size: clamp(28px, 4.5vh, 54px);
    letter-spacing: -0.05em;
}

.brand-fallback span {
    display: block;
    font-family: "MontRegular", Arial, Helvetica, sans-serif;
    font-size: clamp(14px, 2.25vh, 24px);
}

.cyan-rule {
    background: var(--cyan);
}

.contacts-area {
    min-height: 0;
    background: var(--navy);
    padding: clamp(22px, 4vh, 46px) clamp(28px, 3.1vw, 48px) clamp(24px, 4.8vh, 52px);
}

.contacts-grid {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    column-gap: var(--gap-x);
    row-gap: var(--gap-y);
}

.contact-card {
    min-width: 0;
    min-height: 0;
    background: var(--card);
    display: grid;
    grid-template-columns: 22.7% 1fr;
    overflow: hidden;
}

.contact-card.is-soft {
    background: var(--card-soft);
}

.contact-photo {
    min-width: 0;
    min-height: 0;
    background: var(--photo-bg);
    overflow: hidden;
    position: relative;
}

.contact-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.photo-placeholder::before {
    content: "";
    width: 45%;
    aspect-ratio: 1;
    border-radius: 999px;
    background: var(--photo-shape);
    position: absolute;
    left: 50%;
    top: 23%;
    transform: translateX(-50%);
}

.photo-placeholder::after {
    content: "";
    width: 102%;
    aspect-ratio: 1.45 / 1;
    border-radius: 50% 50% 0 0;
    background: var(--photo-shape);
    position: absolute;
    left: 50%;
    bottom: -34%;
    transform: translateX(-50%);
}

.contact-info {
    min-width: 0;
    padding: clamp(14px, 2.2vh, 26px) clamp(16px, 1.55vw, 28px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.contact-info h2 {
    margin: 0;
    color: var(--text);
    font-family: "MontBold", Arial, Helvetica, sans-serif;
    font-size: clamp(20px, 3.05vh, 34px);
    line-height: 1;
    letter-spacing: -0.025em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.role-line {
    margin: clamp(18px, 3.1vh, 36px) 0 0;
    color: var(--text);
    font-family: "MontRegular", Arial, Helvetica, sans-serif;
    font-size: clamp(20px, 3.08vh, 34px);
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.role-line strong {
    font-family: "MontBold", Arial, Helvetica, sans-serif;
}

.pipe {
    font-family: "MontBold", Arial, Helvetica, sans-serif;
    padding-inline: 0.04em;
}

.extension {
    margin: clamp(18px, 3vh, 34px) 0 0;
    color: var(--text);
    font-family: "MontRegular", Arial, Helvetica, sans-serif;
    font-size: clamp(20px, 3.08vh, 34px);
    line-height: 1;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.extension strong {
    font-family: "MontBold", Arial, Helvetica, sans-serif;
}

.screen-footer {
    width: min(calc(100vw - clamp(16px, 2vw, 28px)), calc((100dvh - clamp(26px, 3.4vh, 44px)) * 16 / 9));
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(10px, 1.3vw, 18px);
    min-height: 16px;
    padding-inline: clamp(8px, 0.4vw, 12px);
    font-size: clamp(11px, 1.35vh, 14px);
    color: var(--white);
    opacity: 0.78;
    pointer-events: none;
}

.status-dot {
    position: relative;
    padding-left: 14px;
}

.status-dot::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #f3c969;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.status-dot.is-online::before {
    background: #48e58c;
}

.status-dot.is-error::before {
    background: #ff625d;
}

@media (max-aspect-ratio: 16 / 9) {
    .contacts-title h1 {
        font-size: clamp(24px, 3.9vw, 44px);
    }

    .contacts-title p {
        font-size: clamp(22px, 3.55vw, 40px);
    }
}

@media (max-width: 900px) {
    .contacts-title h1,
    .contacts-title p,
    .contact-info h2,
    .role-line,
    .extension {
        white-space: normal;
    }

    .screen-footer {
        display: none;
    }
}


.back-hotspot {
    position: fixed;
    left: 10px;
    top: 10px;
    z-index: 20;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.45);
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 18px;
    opacity: .18;
    transition: opacity .2s ease, background .2s ease;
}
.back-hotspot:hover { opacity: 1; background: rgba(255,255,255,.18); color: #fff; }