@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("/fonts/manrope-cyrillic.woff2?v=2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
    src: url("/fonts/manrope-latin.woff2?v=2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --gold: #d3ad72;
    --gold-2: #ffefd4;
    --line: rgba(211, 173, 114, 0.78);
    --side: 40px;
    --gutter: clamp(260px, 27vw, 500px);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    color: #f4efe6;
    font-family: Manrope, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 90% at -8% 48%, rgba(98, 42, 168, 0.42), transparent 58%),
        url("/assets/services/blueprint.png") center / cover no-repeat;
    opacity: 0.42;
}

#stage {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
}

.frame {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0 var(--side);
}

.top {
    position: relative;
    z-index: 4;
    flex: none;
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.4vw, 28px);
    height: clamp(68px, 12vh, 124px);
}

.brand {
    display: flex;
    height: 68%;
    width: auto;
    flex: none;
}

.brand img {
    height: 100%;
    width: auto;
    display: block;
}

.divider {
    height: 62%;
    width: auto;
    flex: none;
}

.tagline {
    margin: 0;
    flex: 0 1 220px;
    min-width: 9.5em;
    color: #ffefd4;
    font-size: clamp(12px, 1.05vw, 16px);
    font-weight: 400;
    line-height: 1.25;
    text-shadow: 0 6.7px 6.7px rgba(0, 0, 0, 0.25);
}

.discuss {
    position: relative;
    margin-left: auto;
    height: clamp(36px, 5.2vh, 48px);
    padding: 0 1.3em;
    white-space: nowrap;
    border: 0.77px solid #d3ad72;
    border-radius: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    background-image: linear-gradient(5deg, #d3ad72 0%, #ffefd4 94%);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: clamp(12px, 1.05vw, 16.8px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: uppercase;
    text-shadow: none;
}

.discuss::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.phone {
    display: flex;
    align-items: baseline;
    gap: 0.25em;
    color: transparent;
    background-image: linear-gradient(5deg, #d3ad72 0%, #ffefd4 94%);
    -webkit-background-clip: text;
    background-clip: text;
    text-decoration: none;
    text-shadow: 0 6.7px 6.7px rgba(0, 0, 0, 0.25);
    font-weight: 500;
    font-size: clamp(18px, 2vw, 32px);
    line-height: 1;
    white-space: nowrap;
}

.phone span {
    font-weight: 400;
    font-size: 0.7em;
}

.msg {
    width: clamp(26px, 2.5vw, 36px);
    height: auto;
    flex: none;
}

.msg img { width: 100%; height: auto; display: block; }

.foot {
    position: relative;
    z-index: 5;
    flex: none;
    height: clamp(36px, 6vh, 56px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #cdcdcd;
    font-size: clamp(12px, 1vw, 16px);
    line-height: 1.2;
    text-shadow: 0 6.7px 6.7px rgba(0, 0, 0, 0.25);
}

.foot nav {
    display: flex;
    gap: 14px;
}

.foot a {
    color: inherit;
    text-decoration: none;
}

.foot a:hover { color: #ffefd4; }

.privacy {
    margin-right: max(0px, calc(var(--gutter) - var(--side) + 64px));
}

.panel {
    position: relative;
    z-index: 2;
    flex: 1;
    min-height: 0;
    width: calc(100vw - var(--side) - var(--gutter));
    max-width: 100%;
    padding: 0 10px 8px 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.board {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.service {
    container-type: size;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(92px, 0.92fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
        "title title"
        "list art";
    align-items: center;
    column-gap: 2%;
    padding: 4.2% 3.2% 3.6% 5.4%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.72);
    box-shadow: inset 0 0 0 1px rgba(255, 239, 212, 0.04);
}

.service:hover {
    border-color: #f0d7a8;
    box-shadow:
        inset 0 0 0 1px rgba(255, 239, 212, 0.08),
        0 0 24px rgba(211, 173, 114, 0.16);
}

.copy { display: contents; }

.service h2 {
    grid-area: title;
    margin: 0 0 0.28em;
    color: #fff;
    font-size: clamp(12px, 8.6cqh, 22px);
    white-space: nowrap;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.service h2 em {
    font-style: normal;
    background: linear-gradient(8deg, #d3ad72 0%, #ffefd4 120%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.service ul {
    grid-area: list;
    align-self: center;
    margin: 0;
    padding: 0 0 0 1.05em;
}

.service li {
    color: #e4e4e4;
    font-size: clamp(11px, 7.4cqh, 16px);
    font-weight: 500;
    line-height: 1.38;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}

.service li + li { margin-top: 0.12em; }

.service a {
    color: inherit;
    text-decoration: none;
}

.service a:hover,
.service a:focus-visible {
    color: var(--gold-2);
}

.service img {
    grid-area: art;
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center right;
    pointer-events: none;
}

.mouth {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 3;
    margin: 0;
    width: 860px;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff8ee;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    pointer-events: none;
    transform-origin: 0 0;
    text-shadow:
        0 0 4px rgba(255, 252, 245, 1),
        0 0 12px rgba(255, 228, 176, 0.95),
        0 0 28px rgba(255, 196, 110, 0.8),
        0 0 48px rgba(211, 173, 114, 0.55);
    opacity: 0;
    transition: opacity 0.12s linear;
}

.mouth.is-on { opacity: 1; }
.mouth.is-blank { opacity: 0; }

.status {
    position: fixed;
    left: 36px;
    bottom: 24px;
    margin: 0;
    color: var(--gold);
    z-index: 4;
}

.status[hidden] { display: none; }

@media (max-width: 1100px) {
    :root { --gutter: 190px; }
    .board { gap: 8px; }
    .service { border-radius: 12px; padding: 4% 2% 4% 5%; }
}

@media (max-width: 800px) {
    :root { --gutter: 0px; }

    html, body {
        height: auto;
        min-height: 100%;
        overflow: auto;
    }
    body::before { opacity: 0.28; }
    #stage, .mouth { display: none; }
    .service { background: rgba(0, 0, 0, 0.9); }
    .frame {
        height: auto;
        min-height: 100dvh;
    }
    .panel {
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 8px 0 20px;
    }
    .board {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 10px;
    }
    .service { min-height: 168px; }
}

@media (max-width: 760px) {
    :root { --side: 16px; }

    .top {
        height: auto;
        gap: 6px clamp(4px, 2.56vw, 10px);
        padding: 0;
        flex-wrap: wrap;
        align-items: center;
    }

    .brand {
        order: 1;
        height: 36px;
        margin-block: 14px;
    }

    .divider,
    .discuss { display: none; }

    .tagline {
        order: 4;
        position: static;
        flex: 1 0 100%;
        min-width: 0;
        margin: 0;
        font-size: 22px;
        font-weight: 600;
        line-height: 1.2;
        color: #ffe7c4;
    }

    .tagline br { display: none; }

    .phone {
        order: 2;
        margin-left: auto;
        font-size: clamp(13px, 4.1vw, 16px);
        flex-shrink: 0;
    }

    .msg {
        order: 3;
        width: clamp(24px, 7.69vw, 30px);
        flex-shrink: 0;
    }

    .panel { padding-top: 12px; }

    .foot {
        gap: 10px;
        font-size: min(11px, 2.85vw);
        white-space: nowrap;
    }

    .foot nav { gap: 6px; }
}
