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

:root {
    --primary-color: #5696f7;
    --secondary-color: #4e9b6b;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
    --shadow:
        0 1px 3px 0 rgb(0 0 0 / 0.1),
        0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg:
        0 10px 15px -3px rgb(0 0 0 / 0.1),
        0 4px 6px -4px rgb(0 0 0 / 0.1);
    --carousel-perspective-y: -5deg;
    --carousel-perspective-x: 2deg;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #a1a1aa;
        --bg-primary: #0a0a0a;
        --bg-secondary: #111111;
        --border-color: #262626;
        --card-bg: #1a1a1a;
        --shadow:
            0 1px 3px 0 rgb(0 0 0 / 0.4),
            0 1px 2px -1px rgb(0 0 0 / 0.4);
        --shadow-lg:
            0 10px 15px -3px rgb(0 0 0 / 0.4),
            0 4px 6px -4px rgb(0 0 0 / 0.4);
    }
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    touch-action: manipulation;
}

body {
    touch-action: manipulation;
    font-family: "Inter", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
    overflow-x: hidden;
}


@keyframes slideFade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.animate-slide-fade {
    animation: slideFade 0.3s ease-out forwards;
}

.custom-scrollbar::-webkit-scrollbar {
    height: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #e2e8f0;
    border-radius: 10px;
}

.custom-scrollbar:hover::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
}


/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem 2rem;
    background: var(--bg-primary);
}

.hero-content {
    max-width: 980px;
    width: 100%;
}

.hero-animation {
    width: clamp(360px, 52vw, 620px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    margin: 0 auto;
    position: relative;
}

.hero-animation.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-logo-container {
    width: min(100%, 560px);
    aspect-ratio: 440 / 560;
    margin: 0 auto;
    position: relative;
    touch-action: manipulation;
}

.hero-hover-trigger {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 58%;
    z-index: 4;
    cursor: pointer;
    background: transparent;
}

.hero-chat-layer {
    position: absolute;
    top: 56%;
    left: 7%;
    width: 86%;
    height: 40%;
    z-index: 1;
    pointer-events: none;
}

.hero-chat-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 0;
    transform: translateY(-22%) scale(0.3);
    transform-origin: top center;
    transition: opacity 0.4s ease-in, transform 0.6s cubic-bezier(0.34, -0.2, 0.64, 1);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 98%);
    mask-image: linear-gradient(to bottom, black 0%, black 65%, transparent 98%);
}

.hero-logo-container.is-hovered .hero-chat-wrapper,
.hero-logo-container.is-active .hero-chat-wrapper {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.5s ease-out, transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.hero-chat-track {
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: opacity 0.5s ease;
}

.hero-msg-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 0;
    margin-bottom: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, margin-bottom 0.4s ease-out, opacity 0.4s ease-out;
}

.hero-msg-container.show {
    max-height: 320px;
    margin-bottom: 10px;
    opacity: 1;
}

.hero-msg {
    max-width: 88%;
    padding: 0.55rem 0.8rem;
    font-size: clamp(0.64rem, 1.4vw, 0.88rem);
    line-height: 1.35;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    transform: scale(0);
    opacity: 0;
    display: inline-block;
    word-break: break-word;
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.4s ease-out;
}

.hero-msg.show {
    transform: scale(1);
    opacity: 1;
}

.hero-msg-container.user {
    align-items: flex-end;
}

.hero-msg-container.user .hero-msg {
    background: var(--site-paper);
    color: var(--site-ink);
    border: 1.7px solid #3584e4;
    border-radius: 14px 14px 3px 14px;
    transform-origin: bottom right;
}

.hero-msg-container.ai {
    align-items: flex-start;
}

.hero-msg-container.ai .hero-msg {
    background: var(--site-paper);
    color: var(--site-ink);
    border: 1.7px solid #279d66;
    border-radius: 14px 14px 14px 3px;
    transform-origin: bottom left;
}

.hero-msg-container.ai .hero-msg.terminal {
    font-family: "Fira Code", monospace;
    color: #279d66;
    font-size: clamp(0.58rem, 1.1vw, 0.76rem);
    background: var(--site-paper);
    border-color: #279d66;
    width: 100%;
}

.hero-chat-img {
    width: min(220px, 100%);
    height: 120px;
    border-radius: 8px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: clamp(0.6rem, 1.1vw, 0.78rem);
    text-align: center;
}

.hero-placeholder-original {
    background: var(--site-paper);
    color: #3584e4;
    border: 1px solid currentColor;
}

.hero-placeholder-edited {
    background: var(--site-paper);
    color: #279d66;
    border: 1px solid currentColor;
}

.hero-chat-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    padding: 9px 0 0;
    border-radius: 0;
    margin-top: 8px;
    border: 0;
    border-top: 1px solid #279d6633;
}

.hero-chat-widget .icon { width: 28px; height: 28px; flex: 0 0 28px; color: #279d66; }
.hero-chat-widget .icon svg { width: 100%; height: 100%; }

.hero-chat-widget .info {
    text-align: left;
}

.hero-chat-widget .info span {
    font-weight: 600;
    font-size: clamp(0.65rem, 1.25vw, 0.82rem);
    color: var(--site-ink);
}

.hero-chat-widget .info small {
    display: block;
    font-size: clamp(0.56rem, 1.1vw, 0.7rem);
    color: var(--site-muted);
    margin-top: 2px;
}

.hero-svg-layer {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-svg-layer * {
    transform-box: fill-box;
    transform-origin: center;
    overflow: visible;
}

.hero-logo-core-blue,
.hero-logo-core-green {
    transition: transform 1s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.hero-logo-container.is-hovered .hero-logo-core-blue,
.hero-logo-container.is-active .hero-logo-core-blue {
    transform: translate(-10px, -10px) scale(0.93) rotate(-2deg);
}

.hero-logo-container.is-hovered .hero-logo-core-green,
.hero-logo-container.is-active .hero-logo-core-green {
    transform: translate(10px, 10px) scale(1.07) rotate(2deg);
}

.hero-tool-wrapper {
    opacity: 0;
    transform: translate(220px, 160px) scale(0);
    transition: all 1s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.hero-logo-container.is-hovered #hero-wrap-term,
.hero-logo-container.is-active #hero-wrap-term {
    opacity: 1;
    transform: translate(80px, 150px) scale(1) rotate(-12deg);
    transition-delay: 0s;
}

.hero-logo-container.is-hovered #hero-wrap-gear,
.hero-logo-container.is-active #hero-wrap-gear {
    opacity: 1;
    transform: translate(110px, 70px) scale(1);
    transition-delay: 0.1s;
}

.hero-logo-container.is-hovered #hero-wrap-mic,
.hero-logo-container.is-active #hero-wrap-mic {
    opacity: 1;
    transform: translate(180px, 30px) scale(1) rotate(-5deg);
    transition-delay: 0.2s;
}

.hero-logo-container.is-hovered #hero-wrap-puz,
.hero-logo-container.is-active #hero-wrap-puz {
    opacity: 1;
    transform: translate(260px, 30px) scale(1) rotate(5deg);
    transition-delay: 0.3s;
}

.hero-logo-container.is-hovered #hero-wrap-fold,
.hero-logo-container.is-active #hero-wrap-fold {
    opacity: 1;
    transform: translate(330px, 70px) scale(1) rotate(10deg);
    transition-delay: 0.4s;
}

.hero-logo-container.is-hovered #hero-wrap-glob,
.hero-logo-container.is-active #hero-wrap-glob {
    opacity: 1;
    transform: translate(360px, 150px) scale(1);
    transition-delay: 0.5s;
}

.hero-logo-container.is-hovered .hero-float-1,
.hero-logo-container.is-active .hero-float-1 {
    animation: hero-float 4s ease-in-out infinite alternate 0.1s;
}

.hero-logo-container.is-hovered .hero-float-2,
.hero-logo-container.is-active .hero-float-2 {
    animation: hero-float 4.5s ease-in-out infinite alternate 0.4s;
}

.hero-logo-container.is-hovered .hero-float-3,
.hero-logo-container.is-active .hero-float-3 {
    animation: hero-float 3.5s ease-in-out infinite alternate 0.2s;
}

.hero-logo-container.is-hovered .hero-float-4,
.hero-logo-container.is-active .hero-float-4 {
    animation: hero-float 5s ease-in-out infinite alternate 0.6s;
}

.hero-logo-container.is-hovered .hero-gear-spin,
.hero-logo-container.is-active .hero-gear-spin {
    animation: hero-spin 10s linear infinite;
}

.hero-logo-container.is-hovered .hero-cursor-blink,
.hero-logo-container.is-active .hero-cursor-blink {
    animation: hero-blink 1s step-end infinite;
}

.hero-logo-container.is-hovered .hero-orbit-spin,
.hero-logo-container.is-active .hero-orbit-spin {
    animation: hero-spin 8s linear infinite;
}

.hero-logo-container.is-hovered .hero-orbit-anti,
.hero-logo-container.is-active .hero-orbit-anti {
    animation: hero-spin-reverse 8s linear infinite;
}

@keyframes hero-float {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-12px);
    }
}

@keyframes hero-spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes hero-spin-reverse {
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes hero-blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

.hero-copy {
    position: relative;
    z-index: 3;
    margin-top: clamp(-370px, -32vw, -220px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
    filter: blur(0);
}

.hero-logo-container.is-hovered + .hero-copy,
.hero-logo-container.is-active + .hero-copy {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    filter: blur(4px);
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: #4285e6;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-green {
    background: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow);
}

.btn-green:hover {
    background: #3d7f56;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-discord {
    background: #5865F2;
    color: white;
    box-shadow: var(--shadow);
}

.btn-discord:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video Section */
.video-section {
    padding: 0;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Screenshots Section - 3D Carousel */
.carousel-wrapper {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
    overflow: visible;
    padding: 3rem 0;
}

.carousel-track-container {
    width: 100%;
    max-width: 700px;
    overflow: visible;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    transform-style: preserve-3d;
}

.carousel-slide a {
    display: block;
    width: 100%;
}

.carousel-image {
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    box-shadow:
        0 30px 60px -12px rgba(0, 0, 0, 0.25),
        0 18px 36px -18px rgba(0, 0, 0, 0.3),
        0 0 0 1px var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotateY(var(--carousel-perspective-y)) rotateX(var(--carousel-perspective-x));
    object-fit: cover;
    display: block;
}

.carousel-slide.active .carousel-image {
    transform: rotateY(0deg) rotateX(0deg) scale(1);
}

.carousel-slide.prev .carousel-image,
.carousel-slide.next .carousel-image {
    opacity: 0.5;
    filter: blur(2px);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    border-color: var(--primary-color);
}

.carousel-btn-prev {
    left: 0;
}

.carousel-btn-next {
    right: 0;
}

@media (prefers-color-scheme: dark) {
    .carousel-image {
        box-shadow:
            0 30px 60px -12px rgba(0, 0, 0, 0.5),
            0 18px 36px -18px rgba(0, 0, 0, 0.6),
            0 0 0 1px var(--border-color);
    }
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 2rem 0;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-image {
        border-radius: 16px;
        transform: rotateY(0deg) rotateX(0deg);
    }
}

/* Installation Section */

/* Extensions Section */
/* Extensions Carousel */
.ext-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(78, 155, 107, 0.12);
    color: var(--secondary-color);
    border: 1px solid rgba(78, 155, 107, 0.25);
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 600;
    margin-left: 0.6rem;
    vertical-align: middle;
    white-space: nowrap;
}

.ext-carousel {
    position: relative;
    overflow: hidden;
    padding: 0.75rem 0 1.5rem;
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.ext-carousel-track {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    width: max-content;
    animation: ext-scroll 40s linear infinite;
}

@media (hover: hover) and (pointer: fine) {
    .ext-carousel:hover .ext-carousel-track, .ext-carousel:focus-within .ext-carousel-track { animation-play-state: paused; }
}

@keyframes ext-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.ext-card {
    display: flex;
    flex-direction: column;
    width: 220px;
    flex-shrink: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.ext-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.ext-card-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.6rem;
    flex-shrink: 0;
}

.ext-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ext-card-body {
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ext-card-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.ext-card-author {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.ext-card-author img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.ext-card-stars {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
}

.ext-card-stars i {
    color: #f59e0b;
    font-size: 0.65rem;
}

.ext-cta-area {
    text-align: center;
    margin-top: 0.5rem;
}

.ext-carousel-skeleton {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 0.75rem 0 1.5rem;
}

.ext-carousel-skeleton.ext-hidden,
.ext-carousel.ext-hidden {
    display: none;
}

.ext-skel-card {
    width: 220px;
    height: 170px;
    border-radius: 14px;
    background: var(--bg-secondary);
    animation: ext-skel-pulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

.ext-count-badge.ext-hidden {
    display: none;
}

@keyframes ext-skel-pulse {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 2rem;
}

.copyright {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Scroll to Top Button */

/* Intersection Observer Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) {

    /* Исправляем анимации для планшетов */
    .slide-in-left,
    .slide-in-right {
        transform: translateY(30px);
    }

    .slide-in-left.visible,
    .slide-in-right.visible {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 5rem 1rem 2rem;
    }

    .hero-animation {
        width: min(100%, 620px);
    }

    .hero-copy {
        margin-top: clamp(-290px, -40vw, -180px);
    }

    .hero-description {
        margin-bottom: 1.8rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-marquee {
        padding: 0.6rem 0;
    }

    .features-pill {
        min-height: 58px;
        padding: 0.7rem 1rem;
    }

    .features-pill-title {
        font-size: 0.92rem;
    }

    .features-pill-subtitle {
        font-size: 0.76rem;
    }

    .screenshot-container {
        flex-direction: column;
        gap: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .ext-card {
        width: 190px;
    }

    .ext-skel-card {
        width: 190px;
    }

    /* Video Section Mobile */
    .video-container {
        height: 40vh;
        min-height: 250px;
    }

    /* Убираем горизонтальный скролл для мобильных */
    .slide-in-left,
    .slide-in-right {
        transform: translateY(20px);
    }

    .slide-in-left.visible,
    .slide-in-right.visible {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 0.75rem 2rem;
    }

    .hero-copy {
        margin-top: -170px;
    }

    .hero-description {
        max-width: 340px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    /* Video Section Mobile Small */
    .video-container {
        height: 30vh;
        min-height: 200px;
    }
}

@media (max-width: 320px) {
    .hero {
        padding: 3rem 0.5rem 2rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .hero-description {
        display: none;
    }
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 1001;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
}

/* Discord Announcement Modal */


/* A top-layer gallery keeps the full image accessible at every viewport size. */
.screenshot-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.screenshot-viewer { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 18px 24px 24px; border: 0; background: #000; color: #fff; }
.screenshot-viewer[open] { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; grid-template-rows: 44px minmax(0, 1fr); gap: 12px; }
.screenshot-viewer::backdrop { background: #000; }
html:has(.screenshot-viewer[open]) { overflow: hidden; }
.viewer-toolbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; }
#viewerPosition { margin-right: auto; font: 12px ui-monospace, monospace; color: #aaa; }
#viewerProject { color: #fff; font-size: 12px; text-underline-offset: 4px; }
.screenshot-viewer button { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 8px; color: #fff; background: transparent; }
.screenshot-viewer button:hover { background: #ffffff18; }
.screenshot-viewer button:focus { outline: none; box-shadow: none; }
.screenshot-viewer button:focus-visible svg { stroke-width: 2.3; }
.viewer-prev, .viewer-next { align-self: center; }
.viewer-image-area { display: flex; align-items: center; justify-content: center; min-height: 0; min-width: 0; }
#viewerImage { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
@media (max-width: 600px) {
    .screenshot-viewer { padding: 10px 12px max(12px, env(safe-area-inset-bottom)); }
    .screenshot-viewer[open] { grid-template-columns: 1fr 1fr; grid-template-rows: 44px minmax(0, 1fr) 44px; gap: 8px; }
    .viewer-image-area { grid-row: 2; grid-column: 1 / -1; }
    .viewer-prev, .viewer-next { grid-row: 3; justify-self: center; }
}

.hero-chat-img svg { width: 120px; height: 80px; }
