@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/inter-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/inter-latin.woff2") 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 {
    --bg: #0a0e1a;
    --text: #e5e7eb;
    --text-muted: #9ca3af;
    --accent: #22d3ee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
}

.hero {
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    background-image: url("images/hero-bg.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 14, 26, 0.35) 0%, rgba(10, 14, 26, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
}

.hero h1 {
    font-size: clamp(4rem, 10vw, 7.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.95;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin: 4px 0 48px;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects {
    position: relative;
    display: inline-block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 16px 48px;
    background: var(--accent);
    color: #0a0e1a;
    text-decoration: none;
    border: 0;
    border-radius: 50px;
    font: inherit;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    list-style: none;
    transition: background 0.3s, transform 0.3s;
}

.btn::-webkit-details-marker {
    display: none;
}

.btn::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
}

.projects[open] > .btn {
    background: #67e8f9;
}

.projects[open] > .btn::after {
    transform: translateY(2px) rotate(225deg);
}

.btn:hover {
    background: #67e8f9;
    transform: translateY(-2px);
}

.btn:focus-visible,
.projects-menu a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.projects-menu {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: calc(100% + 12px);
    transform: translateX(-50%);
    min-width: min(240px, calc(100vw - 48px));
    margin: 0;
    padding: 6px;
    list-style: none;
    text-align: center;
    background: rgba(10, 14, 26, 0.94);
    border: 1px solid rgba(34, 211, 238, 0.5);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.projects-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 18px;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
}

.projects-menu a:hover,
.projects-menu a:focus-visible {
    background: rgba(34, 211, 238, 0.16);
    color: #67e8f9;
}

@media (prefers-reduced-motion: reduce) {
    .btn,
    .btn::after {
        transition: none;
    }

    .btn:hover {
        transform: none;
    }
}

@media (max-width: 640px) {
    .btn {
        padding: 14px 32px;
    }

    .team {
        margin-bottom: 36px;
    }
}
