html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Fira Mono", monospace;
    color: var(--color-main-text-black);
    overflow: hidden;
}

header {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

header.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    user-select: none;
}

#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background: rgba(145, 145, 145, 0.1);
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: filter 0.5s ease, transform 0.5s ease, opacity 3s ease-in-out;
    opacity: 0;
    pointer-events: none;
}

.video-bg.active {
    opacity: 1;
}

body.blur .video-bg {
    filter: blur(6px) brightness(0.7);
    transform: scale(1.05);
}

#wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav ul li a {
    color: var(--color-main-text-whire);
    text-decoration: none;
    font-weight: bold;
    border: 2px solid rgba(0, 0, 0, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(0, 0, 0, 0.7);
    border-color: rgba(0, 0, 0, 0.7);
}

section {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all 0.5s ease;

    position: absolute;
    top: 15%;
    left: 20%;
    width: 60%;

    max-height: 75vh;
    overflow-y: auto;

    color: var(--color-main-text-whire);
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 1rem;
    font-size: 18px;
    box-sizing: border-box;
}

section.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    display: block;
}

.split-content {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
}

.split-content .left, .split-content .right {
    flex: 1;
    text-align: justify;
}

.split-content img {
    display: block;
    margin: 0 auto;
    height: auto;
    border-radius: 0.5rem;
}

.info-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    opacity: 1;
    visibility: visible;
    overflow: hidden;
    /*transition: opacity 0.5s ease, max-height 0.5s ease, visibility 0.5s ease;*/ /*Плавность (PS: Криво работает)*/
}

.info-content img {
    object-fit: cover;
    align-self: flex-start;
    border-radius: 5%;
}

.info-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.hidden-text {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    margin-top: 0;
    visibility: hidden;
}

.hidden-text.show {
    opacity: 1;
    max-height: 1000px;
    margin-top: 10px;
    visibility: visible;
}

.info-content.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    margin: 0;
    padding: 0;
    /*transition: all 0.4s ease;*/ /*Плавность (PS: Криво работает)*/
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    color: var(--color-main-text-whire);
    font-size: 2rem;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.close-btn:hover {
    color: var(--color-error);
}

.checklist {
    list-style: none;
    padding-left: 0;
}

.checklist li::before {
    content: '✔';
    color: var(--color-error);
    margin-right: 0.5rem;
}

.contacts {
    position: fixed;
    bottom: 0;
    width: 100%;
    color: white;
    text-align: center;
    padding: 1rem;
}