* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #f8fafc;
    background: #030712;
}

.v3-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    background: #141428e6;
    backdrop-filter: blur(20px);
    color: #fff;
    padding: 16px 24px;
}

.v3-header__inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.v3-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.v3-header__brand img {
    display: block;
    margin-left: -66px;
    width: 188px;
    max-width: 188px;
    max-height: 58px;
    height: 58px;
    object-fit: contain;
}

.v3-brand__text {
    margin-left: -66px;
    margin-top: -6px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.v3-header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.v3-header a {
    color: #fff;
    text-decoration: none;
    opacity: 0.78;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.v3-header .v3-header__brand,
.v3-footer__brand {
    opacity: 1;
    transition: filter 0.2s ease;
}

.v3-header__brand img,
.v3-footer__brand img {
    transition: filter 0.2s ease;
}

.v3-header__brand:hover,
.v3-footer__brand:hover {
    filter: brightness(1.18);
}

.v3-header__brand:hover .v3-brand__text,
.v3-footer__brand:hover .v3-brand__text {
    color: #fff;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.42);
}

.v3-header__nav a {
    position: relative;
    padding: 10px 14px 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 600;
}

.v3-header__nav a::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 5px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #6366f1 0%, #a855f7 100%);
    box-shadow: 0 0 14px rgba(99, 102, 241, 0.45);
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.v3-header a:hover {
    opacity: 1;
    color: #fff;
}

.v3-header__nav a.is-active {
    color: #fff;
    opacity: 1;
}

.v3-header__nav a.is-active::before,
.v3-header__nav a:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.v3-header__nav span {
    position: relative;
    z-index: 1;
}

.v3-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 88px 20px 48px;
}

.v3-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    padding: 20px;
}

.v3-footer {
    background: #141428e6;
    color: rgba(255, 255, 255, 0.74);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 42px 24px;
}

.v3-footer__inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    align-items: flex-start;
    gap: 28px;
}

.v3-footer__logo,
.v3-footer__info,
.v3-footer__qr {
    min-width: 0;
}

.v3-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: #fff;
    text-decoration: none;
}

.v3-footer__brand img {
    display: block;
    margin-left: -66px;
    width: 188px;
    max-width: 188px;
    height: 58px;
    object-fit: contain;
}

.v3-footer__info {
    display: grid;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
}

.v3-footer__info div {
    margin: 0;
}

.v3-footer__links,
.v3-footer__row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.v3-footer__links {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.v3-footer__links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.v3-footer__links a:hover {
    color: #fff;
}

.v3-footer__divider {
    color: rgba(255, 255, 255, 0.28);
}

.v3-footer__qr {
    justify-self: end;
    text-align: center;
}

.v3-footer__qr-title {
    margin: 0 0 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.v3-footer__qr-card {
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.v3-footer__qr-card img {
    display: block;
    width: 132px;
    height: 132px;
    border-radius: 12px;
    background: #fff;
}

.v3-footer__qr-text {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 720px) {
    .v3-header {
        padding: 12px 16px;
    }

    .v3-header__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .v3-header__nav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .v3-header__nav a {
        flex: 0 0 auto;
        padding: 8px 10px;
    }

    .v3-header__brand,
    .v3-footer__brand {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .v3-brand__text {
        margin-left: 0;
        font-size: 15px;
        white-space: normal;
    }

    .v3-footer {
        padding: 34px 18px;
    }

    .v3-footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .v3-footer__qr {
        justify-self: start;
        width: 100%;
        text-align: left;
    }

    .v3-footer__qr-card {
        display: inline-block;
        text-align: center;
    }
}
