@font-face {
    font-family: "Grotesk";
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/sofia-600-lat.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+2000-206F;
}

@font-face {
    font-family: "Grotesk";
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/sofia-600-cyr.woff2") format("woff2");
    unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Grotesk";
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/sofia-800-lat.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+2000-206F;
}

@font-face {
    font-family: "Grotesk";
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/sofia-800-cyr.woff2") format("woff2");
    unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Inter";
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/inter-400-lat.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+2000-206F;
}

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

@font-face {
    font-family: "Inter";
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/inter-600-lat.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+2000-206F;
}

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

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

img,
svg {
    -webkit-user-drag: none;
}

body {
    user-select: none;
    -webkit-user-select: none;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #070707;
    color: #e8e8e8;
    font-family: "Inter", system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(7, 7, 7, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topbar-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    height: 36px;
    display: block;
}

.brand-mark {
    image-rendering: pixelated;
}

.topbar nav {
    display: flex;
    gap: 26px;
    margin: 0 auto;
}

.topbar nav a {
    font-family: "Grotesk", sans-serif;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8d8d8d;
    text-decoration: none;
    transition: color 0.15s;
}

.topbar nav a:hover {
    color: #fff;
}

.tg-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #2aabee;
    color: #fff;
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.15s;
}

.tg-btn svg {
    width: 16px;
    height: 16px;
}

.tg-btn:hover {
    background: #1e9de0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.15s, color 0.15s;
}

.btn svg {
    width: 17px;
    height: 17px;
}

main {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.hero-stage {
    position: relative;
    min-height: 88svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -63px;
}

#bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45) saturate(0.85);
    opacity: 0;
    transition: opacity 1.2s ease;
}

#bg-video.ready {
    opacity: 1;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 7, 7, 0.75), rgba(7, 7, 7, 0.25) 30%, rgba(7, 7, 7, 0.25) 60%, #070707 100%);
    pointer-events: none;
}

.hero {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 140px 20px 60px;
}

.mega-logo {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.mega-logo img {
    height: clamp(72px, 14vw, 150px);
    display: block;
}

.mega-logo img + img {
    margin-left: -0.6vw;
}


.tagline {
    margin-top: 22px;
    color: #9a9a9a;
    font-size: 15px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.hero-stats {
    margin-top: 18px;
    color: #9a9a9a;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.btn-primary {
    color: #fff;
    background: #2aabee;
    border-radius: 999px;
    padding: 12px 26px;
}

.btn-primary:hover {
    background: #1e9de0;
}

.btn-ghost {
    color: #8d8d8d;
    padding: 12px 0;
}

.btn-ghost:hover {
    color: #cfcfcf;
}

.banner {
    display: block;
    margin-top: 100px;
}

.banner img {
    display: block;
    width: 100%;
    opacity: 0.92;
    transition: opacity 0.2s;
}

.banner:hover img {
    opacity: 1;
}

h2 {
    font-family: "Grotesk", sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.about {
    margin-top: 100px;
}

.how {
    display: flex;
    gap: 56px;
    align-items: center;
}

.phone {
    flex-shrink: 0;
    border: 7px solid #161616;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.phone:hover {
    transform: translateY(-10px) rotate(-1.5deg);
    box-shadow: 0 34px 64px rgba(0, 0, 0, 0.75);
}

.screen {
    width: 290px;
    display: block;
}

.tg-window {
    flex: 1;
    max-width: 440px;
    background: #0e1621;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1c2733;
}

.tg-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: #17212b;
    border-bottom: 1px solid #0b131c;
}

.tg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.tg-title {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.tg-name {
    font-weight: 600;
    font-size: 14.5px;
    color: #f5f5f5;
}

.tg-status {
    font-size: 12.5px;
    color: #6d7f8f;
}

.chat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 14px;
}

.bubble {
    position: relative;
    background: #182533;
    border-radius: 12px;
    border-bottom-left-radius: 4px;
    padding: 9px 58px 9px 13px;
    max-width: 92%;
}

.tg-inline-btn {
    display: block;
    text-align: center;
    background: rgba(255, 255, 255, 0.07);
    color: #6ab3f3;
    text-decoration: none;
    font-size: 14px;
    padding: 10px;
    border-radius: 8px;
    margin-top: 2px;
    transition: background 0.15s;
}

.tg-inline-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.tg-window.js-anim .bubble,
.tg-window.js-anim .tg-inline-btn {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.tg-window.js-anim .bubble.show,
.tg-window.js-anim .tg-inline-btn.show {
    opacity: 1;
    transform: translateY(0);
}

.bubble h3 {
    font-family: "Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6ab3f3;
    margin-bottom: 3px;
}

.bubble p {
    color: #dfe6ec;
    font-size: 15px;
    line-height: 1.45;
}

.bubble .time {
    position: absolute;
    right: 12px;
    bottom: 9px;
    font-size: 11.5px;
    color: #6d7f8f;
    user-select: none;
    -webkit-user-select: none;
}

.gallery {
    margin-top: 100px;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 30px 0 20px;
}

.grid img {
    position: relative;
    width: 196px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 9px solid #ececec;
    border-bottom-width: 36px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
    filter: grayscale(35%) contrast(1.03);
    transition: transform 0.25s ease, filter 0.25s, box-shadow 0.25s, z-index 0s;
}

.grid img + img {
    margin-left: -26px;
}

.grid img:nth-child(1) { transform: rotate(-5deg) translateY(8px); }
.grid img:nth-child(2) { transform: rotate(3deg) translateY(-10px); }
.grid img:nth-child(3) { transform: rotate(-2deg) translateY(12px); }
.grid img:nth-child(4) { transform: rotate(4deg) translateY(-6px); }
.grid img:nth-child(5) { transform: rotate(-4deg) translateY(6px); }

.grid img:hover {
    transform: rotate(0deg) translateY(-8px) scale(1.06);
    filter: none;
    z-index: 3;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.8);
}

.about,
.gallery {
    scroll-margin-top: 84px;
}

.doc-back {
    margin-left: auto;
    font-family: "Grotesk", sans-serif;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8d8d8d;
    text-decoration: none;
    transition: color 0.15s;
}

.doc-back:hover {
    color: #fff;
}

.doc {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 20px 80px;
}

.doc h1 {
    font-family: "Grotesk", sans-serif;
    font-weight: 700;
    font-size: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.doc-date {
    color: #6f6f6f;
    font-size: 13px;
    margin-top: 6px;
}

.doc h2 {
    font-size: 18px;
    letter-spacing: 0.5px;
    margin: 34px 0 10px;
}

.doc p,
.doc li {
    color: #b5b5b5;
    font-size: 15px;
}

.doc ul {
    padding-left: 20px;
    margin-top: 6px;
}

.doc li + li {
    margin-top: 5px;
}

.doc a {
    color: #6ab3f3;
    text-decoration: none;
}

.doc a:hover {
    text-decoration: underline;
}

footer {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px;
    color: #555;
    font-size: 13px;
    border-top: 1px solid #1a1a1a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-mark {
    height: 24px;
    border-radius: 4px;
}

.footer-slogan {
    margin-left: auto;
    font-family: "Grotesk", sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6f6f6f;
}


.ts-widget {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 50;
}

a:focus-visible,
.btn:focus-visible,
.tg-btn:focus-visible {
    outline: 2px solid #e8e8e8;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    #bg-video {
        display: none;
    }

    .phone {
        transition: none;
    }

    .phone:hover {
        transform: none;
    }
}

@media (max-width: 700px) {
    .topbar nav {
        display: none;
    }

    .topbar-inner {
        padding: 12px 16px;
    }

    .tg-btn {
        margin-left: auto;
        padding: 8px;
    }

    .tg-btn span {
        display: none;
    }

    .tg-btn svg {
        width: 18px;
        height: 18px;
    }

    .hero {
        padding: 90px 18px 48px;
    }

    .mega-logo img {
        height: clamp(58px, 17.5vw, 150px);
    }

    .tagline {
        font-size: 14px;
        margin-top: 18px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 30px;
        max-width: 340px;
    }

    .btn {
        justify-content: center;
    }

    .btn-primary {
        padding: 13px 26px;
    }

    h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    main {
        padding-bottom: 56px;
    }

    .about,
    .gallery {
        margin-top: 64px;
    }

    .banner {
        margin-top: 64px;
    }

    .how {
        flex-direction: column;
        gap: 40px;
    }

    .phone {
        transform: none;
        align-self: center;
    }

    .screen {
        width: 260px;
    }

    .bubble {
        padding-right: 48px;
    }

    .grid {
        padding-top: 16px;
    }

    .grid img {
        width: 150px;
        border-width: 7px;
        border-bottom-width: 26px;
    }

    .grid img + img {
        margin-left: -18px;
    }

    footer {
        flex-wrap: wrap;
    }

    .footer-slogan {
        margin-left: 0;
        width: 100%;
    }
}
