html, body {
    margin: 0;
    padding: 0;
    background-color: #F2F2F2;
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 92vh;
    padding: 20px 20px 0;
    text-align: center;
    background-color: #FFFFFF;
    box-sizing: border-box;
    border-radius: 0 0 32px 32px;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: 90%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    z-index: 0;
    pointer-events: none;
}

.hero > *:not(#hero-video):not(.hero-glass) {
    position: relative;
    z-index: 2;
}

.hero-image img {
    width: 200px;
    max-width: 50%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 24px;
}

/* Заголовок */
#hero-title {
    overflow: hidden;
    text-align: center;
    display: inline-block;
    line-height: 1.2;
}

.hero-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.6em);
    animation: heroCharIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    vertical-align: bottom;
}

@keyframes heroCharIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Социальные ссылки с анимацией появления */
.hero-socials {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
}

.social-link {
    text-decoration: none;
    font-weight: 400;
    opacity: 0;
    transform: translateY(0.5em);
    animation: socialFadeIn 0.6s ease forwards;
    animation-delay: 1.5s; /* появляется после заголовка */
}

@keyframes socialFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-glass {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 1024px) {
    #hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    #hero-title {
        font-size: 1.5rem;
    }

    .hero-image img {
        width: 200px;
    }

    .hero-socials {
        gap: 24px;
    }
}

.hero-transition {
    position: relative;
    width: 100%;
    height: 8vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: transparent;
}

.scroll-down {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: transparent;
}

.scroll-down .toggle-icon {
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0;
}

.scroll-down .toggle-icon:hover {
    background-color: #EBEBEB;
}

.scroll-down .toggle-icon img {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}
.hero-image img,
.hero-socials .social-link {
  opacity: 0;
  transform: translateY(0.8em);
  animation: fadeInUp 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
