:root {
    --v4-cyan: #00c3d4;
    --v4-magenta: #ff52c3;
    --v4-paper: #f6f8fb;
    --v4-muted: rgba(246, 248, 251, 0.64);
    --v4-line: rgba(255, 255, 255, 0.11);
    --wm-cyan: #00c3d4;
    --wm-magenta: #ff52c3;
}

body.v4-chrome-page { padding-top: 70px; }

.v4-container {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.v4-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    padding: 14px 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}

body.v4-chrome-page .v4-header,
.v4-header.is-scrolled {
    background: rgba(5, 6, 17, 0.88);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--v4-line);
}

.v4-header__inner {
    display: flex;
    align-items: center;
    gap: 22px;
}

.v4-logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.v4-logo img { width: 98px; height: auto; display: block; }

.v4-nav {
    display: flex;
    gap: 18px;
    margin-left: auto;
}

.v4-nav a {
    color: var(--v4-muted);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 650;
    transition: color 0.2s ease;
}

.v4-nav a:hover,
.v4-nav a:focus-visible { color: var(--v4-paper); }

.v4-header__actions { display: flex; align-items: center; }

.v4-header__contact {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 13px;
    color: rgba(246, 248, 251, 0.9);
    border: 1px solid rgba(25, 211, 230, 0.36);
    border-radius: 6px;
    background: rgba(5, 6, 17, 0.5);
    font: 700 0.82rem/1 Inter, system-ui, sans-serif;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.v4-header__contact i { color: var(--v4-cyan); font-size: 1rem; }

.v4-header__contact:hover,
.v4-header__contact:focus-visible {
    color: #fff;
    border-color: rgba(25, 211, 230, 0.72);
    background: rgba(25, 211, 230, 0.1);
}

.v4-nav-toggle {
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--v4-line);
    border-radius: 8px;
    color: var(--v4-paper);
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.25rem;
    cursor: pointer;
}

.wm-btn {
    position: relative;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    isolation: isolate;
    padding: 13px 18px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: transparent;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 850;
    text-align: center;
    white-space: normal;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.wm-btn::before,
.wm-btn::after {
    position: absolute;
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.wm-btn::before {
    inset: -34px;
    z-index: -2;
    background: conic-gradient(from 90deg, var(--wm-cyan), transparent 28%, transparent 50%, var(--wm-magenta), transparent 78%, var(--wm-cyan));
    opacity: 0.66;
    animation: site-btn-spin 6.4s linear infinite;
    transition: opacity 0.18s ease;
}

.wm-btn::after {
    inset: 1px;
    z-index: -1;
    background: linear-gradient(180deg, rgba(7, 10, 24, 0.96), rgba(3, 5, 14, 0.92));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wm-btn i { color: var(--wm-cyan); font-size: 1.05em; }
.wm-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 52px rgba(0, 0, 0, 0.36), 0 0 26px rgba(0, 195, 212, 0.16), 0 0 22px rgba(255, 82, 195, 0.12); }
.wm-btn:hover::before { opacity: 0.94; }
.wm-btn--sm { min-height: 40px; padding: 10px 14px; font-size: 0.85rem; }
.wm-btn--primary { color: #fff; box-shadow: 0 18px 42px rgba(0, 195, 212, 0.18), 0 0 32px rgba(255, 82, 195, 0.12); }
.wm-btn--primary::before { opacity: 0.86; }

@keyframes site-btn-spin { to { transform: rotate(1turn); } }

.v4-footer {
    position: relative;
    z-index: 2;
    padding: 80px 0 130px;
    border-top: 1px solid var(--v4-line);
    color: var(--v4-paper);
    background: #050611;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.v4-footer__top {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 54px;
}

.v4-footer__brand img { width: 112px; height: auto; display: block; margin-bottom: 22px; }

.v4-footer__brand h2 {
    max-width: 620px;
    margin: 0 0 14px;
    font-size: 1.5rem;
    font-weight: 830;
    line-height: 1.25;
    letter-spacing: 0;
}

.v4-footer__brand p {
    max-width: 480px;
    margin: 0 0 26px;
    color: var(--v4-muted);
    line-height: 1.65;
}

.v4-footer__links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.v4-footer__links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--v4-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.v4-footer__links a:hover,
.v4-footer__links a:focus-visible { color: var(--v4-paper); }
.v4-footer__links i { color: var(--v4-cyan); }

.v4-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    padding-top: 26px;
    border-top: 1px solid var(--v4-line);
    color: rgba(246, 248, 251, 0.45);
    font-size: 0.85rem;
}

.v4-footer__legal { display: inline-flex; flex-wrap: wrap; gap: 10px 16px; }
.v4-footer__legal a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
.v4-footer__legal a:hover,
.v4-footer__legal a:focus-visible { color: var(--v4-paper); }

@media (max-width: 900px) {
    .v4-nav {
        position: absolute;
        top: calc(100% + 10px);
        right: 24px;
        left: 24px;
        z-index: 110;
        display: none;
        flex-direction: column;
        gap: 4px;
        margin-left: 0;
        padding: 16px;
        border: 1px solid var(--v4-line);
        border-radius: 8px;
        background: #090b16;
        box-shadow: 0 22px 60px rgba(0, 0, 0, 0.52);
    }

    .v4-nav.is-open { display: flex; }
    .v4-nav a { padding: 10px 12px; color: rgba(246, 248, 251, 0.88); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .v4-nav a:last-child { border-bottom: 0; }
    .v4-nav-toggle { display: inline-flex; }
    .v4-header__actions { margin-left: auto; }
    .v4-header__inner { position: relative; }
    .v4-footer__top { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 560px) {
    body.v4-chrome-page { padding-top: 68px; }
    .v4-container { width: min(100% - 32px, 1180px); }
    .v4-header { padding: 13px 0; }
    .v4-header__actions .wm-btn { width: 42px; min-height: 42px; padding: 0; }
    .v4-header__actions .wm-btn i { margin: 0; }
    .v4-header__actions .wm-btn { font-size: 0; }
    .v4-header__actions .wm-btn i { font-size: 1.1rem; }
    .v4-footer { padding: 64px 0 92px; }
    .v4-footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .wm-btn::before { animation: none; }
}
