:root {
    --gold: #d7b06a;
    --gold-soft: #c79a4a;
    --white: #ffffff;
    --text: #d8d8d8;
    --bg: #080808;
}

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

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    font-family:
        Inter,
        SF Pro Display,
        Segoe UI,
        Arial,
        sans-serif;
}

body {
    position: relative;
    animation: pageIn 0.8s ease;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100lvh;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.background__parallax {
    position: absolute;
    inset: -24px;
    will-change: transform;
}

.background img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    user-select: none;
    pointer-events: none;
    animation: bgMove 20s ease-in-out infinite alternate;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(8, 8, 8, 0.92) 0%,
        rgba(8, 8, 8, 0.8) 25%,
        rgba(8, 8, 8, 0.55) 45%,
        rgba(8, 8, 8, 0.25) 65%,
        rgba(8, 8, 8, 0.1) 100%
    );
    animation: glow 10s ease-in-out infinite;
}

.particles {
    position: absolute;
    left: 0;
    right: 0;
    top: -50%;
    height: 200%;
    pointer-events: none;
    opacity: 0.45;
    will-change: transform;
    background-image:
        radial-gradient(1.5px 1.5px at 8% 12%, rgba(255, 208, 120, 0.95), transparent),
        radial-gradient(1px 1px at 18% 28%, rgba(255, 208, 120, 0.7), transparent),
        radial-gradient(1.5px 1.5px at 26% 8%, rgba(255, 208, 120, 0.55), transparent),
        radial-gradient(1px 1px at 34% 42%, rgba(255, 208, 120, 0.65), transparent),
        radial-gradient(2px 2px at 42% 18%, rgba(255, 208, 120, 0.5), transparent),
        radial-gradient(1px 1px at 52% 36%, rgba(255, 208, 120, 0.75), transparent),
        radial-gradient(1.5px 1.5px at 61% 14%, rgba(255, 208, 120, 0.6), transparent),
        radial-gradient(1px 1px at 70% 48%, rgba(255, 208, 120, 0.45), transparent),
        radial-gradient(1.5px 1.5px at 78% 22%, rgba(255, 208, 120, 0.8), transparent),
        radial-gradient(1px 1px at 86% 40%, rgba(255, 208, 120, 0.55), transparent),
        radial-gradient(2px 2px at 92% 10%, rgba(255, 208, 120, 0.7), transparent),
        radial-gradient(1px 1px at 14% 58%, rgba(255, 208, 120, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 30% 72%, rgba(255, 208, 120, 0.65), transparent),
        radial-gradient(1px 1px at 48% 64%, rgba(255, 208, 120, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 66% 80%, rgba(255, 208, 120, 0.7), transparent),
        radial-gradient(1px 1px at 82% 68%, rgba(255, 208, 120, 0.55), transparent),
        radial-gradient(2px 2px at 95% 88%, rgba(255, 208, 120, 0.6), transparent),
        radial-gradient(1px 1px at 22% 90%, rgba(255, 208, 120, 0.45), transparent),
        radial-gradient(1.5px 1.5px at 55% 92%, rgba(255, 208, 120, 0.75), transparent),
        radial-gradient(1px 1px at 40% 52%, rgba(255, 208, 120, 0.5), transparent);
    animation: particles 16s ease-in-out infinite alternate;
}

.content {
    position: relative;
    z-index: 2;
    min-height: 100%;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: clamp(32px, 5vw, 80px);
}

.card {
    max-width: 560px;
    opacity: 0;
    transform: translateY(24px);
    animation: cardIn 0.8s 0.15s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.logo {
    margin-bottom: 70px;
}

.logo img {
    width: 320px;
    max-width: 100%;
    display: block;
    filter: drop-shadow(0 0 12px rgba(215, 176, 106, 0.12));
    transition: 0.35s;
}

.logo:hover img {
    filter: drop-shadow(0 0 20px rgba(215, 176, 106, 0.28));
}

h1 {
    color: white;
    font-size: clamp(42px, 5vw, 74px);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

h1::after {
    content: "";
    display: block;
    width: 90px;
    height: 2px;
    margin-top: 28px;
    background: linear-gradient(
        90deg,
        var(--gold),
        transparent
    );
}

.gold {
    color: var(--gold);
}

.subtitle {
    color: var(--text);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 55px;
}

.contacts {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 48px;
}

.item {
    display: flex;
    gap: 16px;
    align-items: center;
    transition:
        transform 0.25s,
        opacity 0.25s;
}

.item:hover {
    transform: translateX(8px);
}

.icon {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(215, 176, 106, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex: none;
    transition: 0.25s;
}

.item:hover .icon {
    background: rgba(215, 176, 106, 0.12);
    border-color: var(--gold);
    box-shadow: 0 0 18px rgba(215, 176, 106, 0.25);
}

.icon__glyph {
    display: block;
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
}

.icon__glyph--phone {
    -webkit-mask-image: url("icons/phone.svg");
    mask-image: url("icons/phone.svg");
}

.icon__glyph--pin {
    -webkit-mask-image: url("icons/pin.svg");
    mask-image: url("icons/pin.svg");
}

.icon__glyph--vk {
    width: 28px;
    height: 28px;
    -webkit-mask-image: url("icons/vk.svg");
    mask-image: url("icons/vk.svg");
}

.text {
    color: white;
    font-size: 18px;
    line-height: 1.6;
}

.text small {
    display: block;
    color: #989898;
    font-size: 15px;
}

a {
    color: var(--gold);
    text-decoration: none;
}

a:hover {
    color: white;
}

.footer {
    color: #777;
    font-size: 14px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

@keyframes pageIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes bgMove {
    from {
        transform: scale(1.03) translateX(-12px);
    }

    to {
        transform: scale(1.08) translateX(12px);
    }
}

@keyframes glow {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.92;
    }

    100% {
        opacity: 1;
    }
}

@keyframes particles {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(12px, -80px, 0);
    }
}

@media (max-width: 1000px) {
    .background img {
        object-position: 70% center;
    }

    .overlay {
        background: linear-gradient(
            90deg,
            rgba(8, 8, 8, 0.95),
            rgba(8, 8, 8, 0.9) 45%,
            rgba(8, 8, 8, 0.55)
        );
    }
}

@media (max-width: 576px) {
    html,
    body {
        height: auto;
        min-height: 100%;
        min-height: 100svh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .content {
        align-items: flex-start;
        padding: 34px 26px;
        min-height: 100svh;
    }

    .background {
        inset: auto;
        top: 0;
        left: 0;
        width: 100%;
        height: 100lvh;
    }

    .background__parallax {
        inset: -10% -5%;
        will-change: auto;
        transform: none !important;
    }

    .background img {
        object-position: 78% center;
        animation: none;
    }

    .particles {
        animation: none;
        will-change: auto;
    }

    .logo {
        margin-bottom: 40px;
        display: flex;
        justify-content: center;
    }

    .logo img {
        width: 240px;
    }

    h1,
    .subtitle,
    .footer {
        text-align: center;
    }

    h1::after {
        margin-left: auto;
        margin-right: auto;
    }

    .contacts {
        gap: 16px;
    }

    .icon {
        width: 40px;
        height: 40px;
    }

    .icon__glyph {
        width: 18px;
        height: 18px;
    }

    .icon__glyph--vk {
        width: 20px;
        height: 20px;
    }

    .text {
        font-size: 16px;
    }

    .item:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body,
    .card,
    .background img,
    .overlay,
    .particles {
        animation: none;
    }

    .card {
        opacity: 1;
        transform: none;
    }
}
