body {
    line-height: 1.6;
    color: #fff;
    background: #000;
    background-color: #000;

    margin: 0;

    font-size: 18px;
    font-weight: 400;
    font-family: "-apple-system", "BlinkMacSystemFont", "Roboto",
        "Helvetica Neue", sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.stop {
    overflow: auto;
}

#page {
    position: relative;
    transition: 1s all ease-in-out;
    /* overflow: hidden; */
}

#page.menuopen {
    opacity: 0.5;
    filter: blur(50px);
    transform: scale(0.98);
    transform-origin: top;
    transform-origin: center;
    transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
}

section {
    display: flex;
    min-height: 100dvh;
    height: 100dvh;
    width: 100dvw;
    justify-content: center;
    align-items: center;
    background: #000;
    color: #fff;
    position: relative;
}

/* section:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    background: #000;
    opacity: 0.5;
    height: 100%;
    width: 100%;
} */

section h1 {
    font-size: 120px;
    margin: 0;
    z-index: 2;
    position: relative;
}

section h2 {
    font-size: 100px;
    margin: 0;
    z-index: 2;
    position: relative;
}

section h3 {
    font-size: 80px;
    margin: 0;
    z-index: 2;
    position: relative;
}

header {
    z-index: 99999;
    position: relative;
}

header #logo {
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    width: 100px;
    height: auto;
    margin: 0 auto;
    opacity: 1;
    transition: 0.3s all cubic-bezier(0.075, 0.82, 0.165, 1) 0.6s;
}

header nav {
    display: flex;
    height: 100px;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    position: fixed;
    left: 0;
    right: 0;
    width: 80dvw;
    max-width: 550px;
    margin: 0 auto;
    top: 120px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 200px;
    z-index: 9;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: 1s all cubic-bezier(0.075, 0.82, 0.165, 1) 0.2s;
}

header nav a {
    width: 2rem;
    text-align: center;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: block;
    padding: 10px 20px;
    line-height: 1;
    font-size: 15px;
    letter-spacing: 2px;
    text-transform: lowercase;
    transition: 0.3s all cubic-bezier(0.075, 0.82, 0.165, 1) 0.6s;
}

header nav a {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-width: 50px;
    /* все ссылки не меньше 80px */
    padding: 10px 20px;

    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: lowercase;
    line-height: 1;
    font-size: 15px;
    letter-spacing: 2px;
    transition: 0.3s all cubic-bezier(0.075, 0.82, 0.165, 1);
}

header nav button {
    -webkit-appearance: none;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    z-index: 99;
    left: 0;
    margin: auto;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    height: 60px;
    border-radius: 100%;
    outline: 0;
    border: 0;
    cursor: pointer;
    transition: 0.3s all cubic-bezier(0.075, 0.82, 0.165, 1) 0.2s;
    transform: scale(0);
}

header nav button span {
    width: 40%;
    background: #fff;
    height: 2px;
    display: block;
    margin: 5px auto;
    transform: scalex(0);
    transition:
        0.6s transform cubic-bezier(0.075, 0.82, 0.165, 1) 0s,
        0.3s margin ease-in 0s;
}

header nav button:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

header nav button:hover span {
    margin: 10px auto;
}

header.sticky #logo {
    top: 0;
    transform: scale(1.8);
    opacity: 0;
    transition-delay: 0.5s;
}

header.sticky nav {
    top: 20px;
    padding: 0;
    width: 90px;
    height: 90px;
    transition-delay: 0.5s;
}

header.sticky nav button {
    transform: scale(1);
    transition-delay: 0.6s;
}

header.sticky nav button span {
    transform: scalex(1);
    transition:
        0.6s transform cubic-bezier(0.075, 0.82, 0.165, 1) 0.8s,
        0.3s margin ease-in 0s;
}

header.sticky nav a {
    padding: 0;
    opacity: 0;
    letter-spacing: 0px;
    transform: scale(0.3);
    transition-delay: 0.2s;
}


/* The secret sauce that enables gradient rotation. NOTE: does not work in all browsers. https://caniuse.com/?search=%40property */
@property --border-angle-1 {
    syntax: "<angle>";
    inherits: true;
    initial-value: 0deg;
}

@property --border-angle-2 {
    syntax: "<angle>";
    inherits: true;
    initial-value: 90deg;
}

@property --border-angle-3 {
    syntax: "<angle>";
    inherits: true;
    initial-value: 180deg;
}

/* sRGB color. */
:root {
    --bright-blue: rgb(0, 100, 255);
    --bright-green: rgb(0, 255, 0);
    --bright-red: rgb(255, 0, 0);
    --background: black;
    --foreground: white;
    --border-size: 2px;
    --border-radius: 0.75em;
}

/* Display-P3 color, when supported. */
@supports (color: color(display-p3 1 1 1)) {
    :root {
        --bright-blue: color(display-p3 10 2 1);
        --bright-green: color(display-p3 0 0.2 4);
        --bright-red: color(display-p3 0 0.2 4);
    }
}

@keyframes rotateBackground {
    to {
        --border-angle-1: 360deg;
    }
}

@keyframes rotateBackground2 {
    to {
        --border-angle-2: -270deg;
    }
}

@keyframes rotateBackground3 {
    to {
        --border-angle-3: 540deg;
    }
}

.button22 {
    --border-angle-1: 0deg;
    --border-angle-2: 90deg;
    --border-angle-3: 180deg;
    color: inherit;
    font-size: calc(0.8rem + 4vmin);
    font-family: inherit;
    border: 0;
    max-width: 60dvws;
    padding: var(--border-size);
    display: flex;
    width: max-content;
    border-radius: var(--border-radius);
    background-color: transparent;
    background-image: conic-gradient(from var(--border-angle-1) at 100% 15%,
            transparent,
            var(--bright-blue) 10%,
            transparent 30%,
            transparent),
        conic-gradient(from var(--border-angle-2) at 70% 60%,
            transparent,
            var(--bright-green) 10%,
            transparent 60%,
            transparent),
        conic-gradient(from var(--border-angle-3) at 50% 20%,
            transparent,
            var(--bright-red) 10%,
            transparent 50%,
            transparent);
    animation:
        rotateBackground 3s linear infinite,
        rotateBackground2 8s linear infinite,
        rotateBackground3 13s linear infinite;
}

/* Change this background to transparent to see how the gradient works */
.button22 div {
    background: var(--background);
    padding: 1em 1.5em;
    border-radius: calc(var(--border-radius) - var(--border-size));
    color: var(--foreground);
}

/* carousel */

:root {
    --bg-width1: 65rem;
    --bg-height1: 8rem;
    --bg-width2: 30rem;
    --bg-height2: 6rem;
}

@keyframes moveBg {
    from {
        background-position: 0 50%;
    }

    to {
        background-position: var(--bg-width1) 50%;
    }
}

@keyframes moveBg2 {
    from {
        background-position: 0 50%;
    }

    to {
        background-position: var(--bg-width2) 50%;
    }
}

.carousel {
    position: relative;
    margin-top: 1rem;
    --blur: 6px;
    --contrast: 105%;
    --speed1: 6s;
    height: var(--bg-height1);
    max-width: 700px;
    width: 100%;
    z-index: 1;
}

.carousel2 {
    position: relative;
    --blur: 6px;
    --contrast: 105%;
    --speed2: 6s;
    height: var(--bg-height2);
    max-width: 700px;
    width: 100%;
    z-index: 1;
}

.carousel .mask,
.carousel2 .mask {
    position: absolute;
    inset: 0;
    background: #000000;
    backdrop-filter: blur(var(--blur)) contrast(var(--contrast));
    -webkit-backdrop-filter: blur(var(--blur)) contrast(var(--contrast));
    -webkit-mask: linear-gradient(90deg,
            #000 50px,
            #0000 175px calc(100% - 175px),
            #fff calc(100% - 50px));
    pointer-events: none;
}

.carousel .logos {
    animation: moveBg var(--speed1) linear infinite;
    position: absolute;
    inset: 0;
    background: url(./dev.webp) 0 50% / var(--bg-width1) var(--bg-height1) repeat-x;
    -webkit-mask: linear-gradient(90deg,
            #0000 5px,
            #000 50px calc(100% - 50px),
            #0000 calc(100% - 5px));
}

.carousel2 .logos {
    animation: moveBg2 var(--speed2) linear infinite;
    position: absolute;
    inset: 0;
    background: url(./design.webp) 0 50% / var(--bg-width2) var(--bg-height2) repeat-x;
    -webkit-mask: linear-gradient(90deg,
            #0000 5px,
            #000 50px calc(100% - 50px),
            #0000 calc(100% - 5px));
}

.carousel:nth-of-type(2) {
    --blur: 9px;
    --contrast: 125%;
}

.carousel2:nth-of-type(2) {
    --blur: 9px;
    --contrast: 125%;
}

/* hero__main__title animation */

@keyframes animateIn {
    from {
        opacity: 0;
        transform: translateY(40%);
    }

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

@keyframes animateInN {
    from {
        opacity: 1;
        transform: translateY(0%);
    }

    to {
        opacity: 0;
        transform: translateY(50%);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero__main__title.in-view .word {
        opacity: 0;
        animation-name: animateIn;
        animation-duration: 2s;
        animation-fill-mode: forwards;
    }

    .centered-text-two.in-view {
        opacity: 0;
        animation-name: animateInN;
        animation-duration: 0.7s;
        animation-fill-mode: forwards;
    }
}

.centered-text-two {
    text-align: center;
    pointer-events: none;
    display: inline-block;
    font-size: 6rem;
}


.hero__main__title .word {
    display: inline-block;
    font-size: 6rem;
    /* Исходный размер шрифта */
    margin-right: 0.5em;
    margin: 0;
}

@media (max-width: 1200px) {
    .hero__main__title .word {
        font-size: 4em;
        /* Уменьшаем размер шрифта для окон шириной до 1200px */
    }
}

@media (max-width: 1000px) {
    .hero__main__title .word {
        font-size: 3rem;
        /* Уменьшаем размер шрифта для окон шириной до 1000px */
    }
}

.hero__main__title {
    pointer-events: none;
    z-index: 100;
    margin-top: 5rem;
    margin-bottom: 1rem;
}

.hero__main__title2 {
    pointer-events: none;
    z-index: 100;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

footer {
    background-color: #000;
    color: #fff;
    /* change text color */

    text-align: center;
    /* margin-top: 20px;
    margin-bottom: 20px; */
    line-height: 1.5;
    z-index: 120;
    scroll-snap-align: start;
}

footer a {
    color: #ff0000;
}

.class_spesiial_section {
    flex-direction: column;
    margin-top: 10rem;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.player2 {
    z-index: 40;
    pointer-events: none;
    width: 10dvh;
    height: 10dvh;
    position: absolute;
    bottom: 20dvh;

    transform: translateX(-50%);
    opacity: 1;
    animation: fadeOut 2s 2s forwards;
    /* применяем анимацию fadeOut длительностью 2 секунды с задержкой в 2 секунды */
}

.player3 {
    z-index: 50;
    pointer-events: none;
    width: 10dvh;
    height: 10dvh;
    position: absolute;
    /* top: 165dvh; */
    transform: translateX(-50%);
    opacity: 1;
    left: 50dvw;
    transition:
        opacity 0.5s ease,
        transform 1.2s ease;

    /* animation: fadeOut 2s 1s forwards; */
    /* применяем анимацию fadeOut длительностью 2 секунды с задержкой в 2 секунды */
}

body,
html {
    scroll-snap-type: y mandatory;
    background-color: black;
}

section {
    scroll-snap-align: start;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(0, 0, 0, 0.5); /* Полупрозрачный черный цвет */
    display: none;
    /* По умолчанию скрыт */
    z-index: 999;
    /* Находится поверх остального контента */
}


/* ==== SECTION CASE ==== */
.section-case {

    padding-top: 12rem;
    display: flex;
    flex-direction: column;
    height: max-content;
}

.section-case h1 {
    font-size: 4rem;
    text-align: center;
    /* выравнивание по центру */
    margin: 0 1rem;
    /* сверху и снизу 1rem, слева и справа 0 */
}

.cases h1 {
    font-size: 4rem;
    text-align: center;
    /* выравнивание по центру */
    margin: 0 1rem;
    /* сверху и снизу 1rem, слева и справа 0 */
}

.section-case::after {
    content: "";
    display: block;
    border-top: 3px dashed #ffffff;
    margin: 3rem auto;
    width: 80%;
}


/* ==== CONTENT ==== */
.section-case .content {
    height: max-content;
    margin-left: 3rem;
    margin-right: 3rem;
    margin-top: 8rem;
    text-align: left;
    font-size: 18px;
}

@media (min-width: 1100px) {
    .section-case .content {
        font-size: 19px;
    }
}

/* Заголовки внутри контента */
.section-case .content h2,
.section-case .content h3 {
    font-size: 22px;
    margin: 28px 0 10px;
    font-weight: 700;
}

.section-case .content h3 {
    font-size: 19px;
}

.section-case .content p {
    margin: 8px 0 14px;
}

.section-case .content ul {
    margin: 8px 0 16px 0;
    padding: 0;
    list-style: none;
}

.section-case .content ul li {
    margin: 6px 0;
}

/* ==== DIVIDER ==== */
.section-case .divider {
    border-top: 1px dashed #666;
    margin: 28px auto;
    width: 80%;
}