@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-ext.woff2?v=2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@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;
    --side: 40px;
    color-scheme: dark;
}

* { box-sizing: border-box; }

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

.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;
}

.frame {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 0 var(--side);
    background: #000;
}

.stage {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    container-type: size;
}

.bg {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 0;
    bottom: 8%;
    opacity: 0.5;
    overflow: hidden;
    pointer-events: none;
}

.bg img {
    position: absolute;
    height: 141.82%;
    left: -13.06%;
    top: 0;
    width: 123.83%;
    max-width: none;
}

.desk {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 12cqh;
    pointer-events: none;
}

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

.laptop {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: -3.8cqh;
    width: min(94cqw, calc(82cqh * 2));
    aspect-ratio: 1017 / 659;
    transform: translateX(-50%);
    background: url("/assets/home/laptop-frame.png?v=5") 0 0 / 100% 100% no-repeat;
}

.laptop canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.screen {
    position: absolute;
    left: 12.6%;
    top: 8%;
    width: 73%;
    height: 72.8%;
    pointer-events: none;
    opacity: 0;
    container-type: size;
    background: radial-gradient(ellipse 80% 70% at 50% 40%, #0b0c11 0%, #050609 100%);
    border-radius: 3%;
    overflow: hidden;
    z-index: 2;
}

@media (min-width: 761px) {
    .laptop canvas { display: none; }
    .screen {
        opacity: 1;
        visibility: visible;
    }
}

.screen-preview {
    position: absolute;
    inset: 0;
    z-index: 5;
    overflow: hidden;
    background: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.screen.is-preview .screen-preview { opacity: 1; }

.screen.is-preview .cards,
.screen.is-preview .caption {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screen.is-preview::after {
    opacity: 0;
    transition: opacity 0.45s ease 0.7s;
}

.screen-preview iframe {
    position: absolute;
    border: 0;
    background: #000;
    color-scheme: dark;
}

body.is-flying #stage,
body.is-flying .top,
body.is-flying .foot,
body.is-flying .bg,
body.is-flying .desk,
body.is-flying .robot-slot {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.fly-veil {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fly-veil.is-on { opacity: 1; }

.screen::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    border-radius: inherit;
    background:
        linear-gradient(118deg, rgba(255, 255, 255, 0.075) 0%, rgba(255, 255, 255, 0.03) 34%, rgba(255, 255, 255, 0) 34.2%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 18%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 0 28px rgba(0, 0, 0, 0.55);
}

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

.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; }

.cards {
    position: absolute;
    left: 3%;
    top: 3%;
    width: 94%;
    height: 80%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 4% 2.5%;
    pointer-events: none;
}

.card {
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    container-type: size;
    min-width: 0;
    min-height: 0;
    border: 1px solid #d3ad72;
    border-radius: 10px;
    text-decoration: none;
    color: #fffefe;
    pointer-events: auto;
    transition:
        color 0.5s var(--ease),
        border-color 0.5s var(--ease),
        border-radius 0.5s var(--ease),
        box-shadow 0.6s var(--ease),
        transform 0.5s var(--ease);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(133deg, #e6c591 1.4%, #ffffff 96%);
    opacity: 0;
    transition: opacity 0.55s var(--ease);
}

.card::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: 0;
    width: 45%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0) 15%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 85%);
    opacity: 0;
    transform: translateX(-130%) skewX(-18deg);
}

.card:is(:hover, :focus-visible, .is-lit) {
    color: #000;
    border-color: #ffefd4;
    border-radius: 16px;
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(255, 239, 212, 0.35), 0 10px 32px rgba(211, 173, 114, 0.38);
}

.card:is(:hover, :focus-visible, .is-lit)::before { opacity: 1; }

.card:is(:hover, :focus-visible, .is-lit)::after {
    opacity: 1;
    transform: translateX(330%) skewX(-18deg);
    transition: transform 1.1s var(--ease) 0.08s, opacity 0.2s;
}

.card-icon {
    position: absolute;
    left: 6%;
    top: 10%;
    width: 30cqh;
    height: 30cqh;
}

.card-icon img,
.card-fill,
.card-glyph {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.card-icon img { width: 100%; height: auto; }

.card-fill {
    width: 90%;
    height: 90%;
    border-radius: 50%;
    border: 1.5px solid #ffefd4;
    background: linear-gradient(200deg, #e6c591 0%, #ffffff 100%);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}

.card:is(:hover, :focus-visible, .is-lit) .card-fill {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-glyph {
    width: var(--gw);
    height: var(--gh);
    background: #ffefd4;
    -webkit-mask: var(--glyph) center / contain no-repeat;
    mask: var(--glyph) center / contain no-repeat;
    transition: background-color 0.5s var(--ease);
}

.card-services { --glyph: url("/assets/home/icon-services.svg"); --gw: 48%; --gh: 41%; }
.card-cases { --glyph: url("/assets/home/icon-cases.svg"); --gw: 55%; --gh: 41%; }
.card-talk { --glyph: url("/assets/home/icon-talk.svg"); --gw: 46.5%; --gh: 46.5%; }
.card-products { --glyph: url("/assets/home/icon-products.svg"); --gw: 53.5%; --gh: 46.5%; }

.card:is(:hover, :focus-visible, .is-lit) .card-glyph { background-color: #000; }

.card-title {
    position: absolute;
    left: calc(10% + 30cqh);
    top: 10%;
    right: 5%;
    min-height: 30cqh;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    color: #ffe7c4;
    transition: color 0.5s var(--ease);
}

.card:is(:hover, :focus-visible, .is-lit) .card-title { color: #000; }

.card-text {
    position: absolute;
    left: calc(10% + 30cqh);
    top: 47%;
    right: 5%;
    bottom: 22%;
    margin: 0;
    overflow: hidden;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
}

.more {
    position: absolute;
    right: 5%;
    bottom: 6%;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    line-height: 1.2;
    color: #ffe7c4;
    transition: color 0.5s var(--ease);
}

.more-arrow {
    display: block;
    width: 0.67em;
    height: 1em;
    background: currentColor;
    -webkit-mask: url("/assets/home/arrow-dark.svg") center / contain no-repeat;
    mask: url("/assets/home/arrow-dark.svg") center / contain no-repeat;
    transition: transform 0.5s var(--ease);
}

.card:is(:hover, :focus-visible, .is-lit) .more { color: #1a140c; }

.card:is(:hover, :focus-visible, .is-lit) .more-arrow { transform: translateX(3px); }

.caption {
    position: absolute;
    left: 2%;
    top: auto;
    bottom: 3.5%;
    width: 96%;
    margin: 0;
    white-space: nowrap;
    text-align: center;
    font-size: min(14px, 2cqw);
    line-height: 1.25;
    color: #ffe7c4;
}

.robot-slot {
    position: relative;
    flex: 0 0 auto;
    align-self: flex-end;
    width: calc(min(28cqw, 58cqh) * 0.5);
    height: min(28cqw, 58cqh);
    flex-shrink: 0;
    margin-bottom: 3cqh;
    pointer-events: none;
}

.robot-slot-left { margin-left: max(35px, calc(50cqw - 98.5cqh)); }
.robot-slot-right { margin-right: max(35px, calc(50cqw - 98.5cqh)); }

.robot-slot::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 12%;
    width: 92%;
    height: 76%;
    transform: translateX(-50%) scaleY(0.15);
    background: linear-gradient(180deg, transparent, rgba(255, 239, 212, 0.95) 42%, rgba(211, 173, 114, 0.15) 70%, transparent);
    filter: blur(10px);
    opacity: 0;
    pointer-events: none;
}

.robot-slot.is-leaving::after { animation: teleport-out 160ms ease-in forwards; }
.robot-slot.is-arriving::after { animation: teleport-in 280ms ease-out forwards; }

@keyframes teleport-out {
    0% { opacity: 0; transform: translateX(-50%) scaleY(0.15); }
    35% { opacity: 1; }
    100% { opacity: 1; transform: translateX(-50%) scaleY(1.05); }
}

@keyframes teleport-in {
    0% { opacity: 1; transform: translateX(-50%) scaleY(1.05); }
    100% { opacity: 0; transform: translateX(-50%) scaleY(0.2); }
}

.foot {
    position: relative;
    z-index: 4;
    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; }

#stage {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    background: transparent;
}

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

.status {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 6;
    margin: 0;
    color: #ffefd4;
    font: 14px Manrope, sans-serif;
}

.status[hidden] { display: none; }

.preloader {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
    transition: opacity 0.7s ease, visibility 0.7s;
}

.preloader-center {
    display: flex;
    flex: none;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    width: 180px;
    max-width: calc(100% - 48px);
    min-width: 0;
}

.preloader.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-width: 0;
    animation: preloader-pulse 1.8s ease-in-out infinite;
}

.preloader-bar {
    width: 100%;
    height: 2px;
    overflow: hidden;
    border-radius: 1px;
    background: rgba(211, 173, 114, 0.18);
}

.preloader-bar span {
    display: block;
    height: 100%;
    background: var(--gold);
    transform: scaleX(0.12);
    transform-origin: left;
    transition: transform 0.5s ease;
}

@keyframes preloader-pulse {
    50% { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
    .robot-slot.is-leaving::after,
    .robot-slot.is-arriving::after { animation: none; }
    .preloader-logo { animation: none; }
    .card::after { display: none; }
    .card:is(:hover, :focus-visible, .is-lit) { transform: none; }
}

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

    .top {
        height: 64px;
        gap: 10px;
    }

    .brand { height: 58%; }
    .divider,
    .discuss { display: none; }

    .tagline {
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 6px);
        min-width: 0;
        font-size: 20px;
        font-weight: 600;
        line-height: 1.2;
        color: #ffe7c4;
    }

    .phone {
        margin-left: auto;
        font-size: 16px;
    }

    .msg { width: 30px; }

    .robot-slot-left { display: none; }

    .robot-slot-right {
        width: 25cqw;
        height: 50cqw;
        margin: 0 0 3cqh auto;
    }

    .laptop {
        left: 0;
        right: 0;
        bottom: -28px;
        width: auto;
        height: calc(min(80cqw, (100cqh - 84px) * 0.5) * 2 + 64px);
        aspect-ratio: auto;
        transform: none;
        background: none;
    }

    .preloader-center {
        gap: 18px;
        width: 156px;
    }

    .screen { border-radius: 22px; }

    .screen::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 2%;
        z-index: 7;
        width: 30%;
        height: 3.2%;
        border-radius: 99px;
        background: #000;
        transform: translateX(-50%);
    }

    .cards {
        left: 4%;
        top: 7.5%;
        width: 92%;
        height: 89%;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        gap: 2%;
    }

    .card-text {
        left: 6%;
        top: calc(10% + 30cqh + 12px);
        bottom: 3%;
    }

    .card-text br,
    .more,
    .caption { display: none; }

    .tagline {
        top: calc(100% + 14px);
        font-size: 22px;
    }

    .tagline br { display: none; }

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

    .foot nav { gap: 6px; }
}

@media (max-width: 760px) and (max-height: 720px) {
    .card-title {
        font-size: 16px;
        line-height: 1.05;
    }

    .card-text {
        top: calc(10% + 30cqh + 8px);
        font-size: 13px;
        line-height: 1.1;
    }
}
