:root {
    --unit: 16px;
    --unit-half: 8px;
    --max-width: 600px;
    --text-color: #333;
    --text-light: lightslategray;
    --border-color: lightsteelblue;
    --header-bg-color: #fff;
    --main-bg-color: #e9f0f9;
    --bg-clip-path: polygon(0% 0%, 100% 0%, 100% 87%, 98% 87%, 98% 84%, 99% 84%, 99% 80%, 98% 80%, 98% 84%, 89% 84%, 89% 87%, 78% 87%, 78% 84%, 74% 84%, 74% 87%, 66% 87%, 66% 81%, 45% 81%, 45% 85%, 36% 85%, 36% 82%, 35% 82%, 35% 85%, 8% 85%, 8% 80%, 10% 80%, 10% 78%, 8% 78%, 8% 82%, 0 82%);
}

body {
    position: relative;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--main-bg-color);
    font-size: 16px;
    line-height: 140%;
    font-family: Inter, sans-serif;
    /* font-family: Montserrat, sans-serif; */
}

header {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    padding: var(--unit);
    background-color: var(--header-bg-color);
}

#logo {
    display: flex;
    gap: var(--unit-half);
}

#logo img {
    width: calc(2 * var(--unit));
    aspect-ratio: 1/1;
}

header::after,
header::before {
    content: '';
    height: 34px;
    -webkit-mask-position: top left;
    mask-position: top left;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100%;
    mask-size: 100%;
    max-width: 45%;
    position: absolute;
    top: 100%;
    transform: translateY(-1px);
    background-color: var(--header-bg-color);
}

header::after {
    -webkit-mask-image: url(i/after.svg);
    mask-image: url(i/after.svg);
    right: 0;
    width: 480px;
}

header::before {
    -webkit-mask-image: url(i/before.svg);
    mask-image: url(i/before.svg);
    left: 0;
    width: 434px;
}

main {
    margin: 0;
    padding: 0;
}

#epic {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 70vh;
    @media (max-width: 480px) {
        height: 50vh;
    }
}

#epic::before {
    content: "";
    background: linear-gradient(0deg, #f00f379e, #f00f3700 60%);
    z-index: 1;
}

#epic::after {
    content: "";
    background: linear-gradient(0deg, #1514148c, #1514148c);
    z-index: 0;
}

#epic video,
#epic::before,
#epic::after {
    clip-path: var(--bg-clip-path);
    height: 100%;
    left: 0;
    -o-object-fit: cover;
    object-fit: cover;
    position: absolute;
    top: 0;
    width: 100%;
}

#epic h1 {
    position: relative;
    color: white;
    font-weight: 800;
    font-size: 100px;
    line-height: 110%;
    display: block;
    text-align: center;
    z-index: 2;
    @media (max-width: 480px) {
        font-size: 50px;
    }
}

#epic h1 span {
    display: block;
}

#epic h1 span img {
    display: inline-block;
    height: 1em;
    margin: 0 var(--unit);
}

/* Контентный блок с ограничением по ширине */
.content {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    margin-bottom: calc(5 * var(--unit));
    @media (max-width: 480px) {
        margin: 0 var(--unit);
        margin-bottom: calc(3 * var(--unit));
    }
}

h2 {
    font-weight: 800;
    font-size: 44px;
    line-height: 120%;
    margin: 0 0 var(--unit);
    text-transform: uppercase;
    @media (max-width: 480px) {
        font-size: 28px;
    }
}

h3 {
    font-weight: 600;
    font-size: 24px;
    line-height: 120%;
    margin: 0;
    text-transform: uppercase;
    @media (max-width: 480px) {
        font-size: 22px;
    }
}

#faq h3 {
    display: flex;
    gap: calc(2 * var(--unit));
}
#faq h3 img {
    flex: 0 0 auto;
    display: block;
    height: 1em;
    width: 1em;
    transform: rotate(180deg);
    transition: transform 250ms;
}
#faq h3 span {
    flex: 1 1 auto;
}
#faq article {
    cursor: pointer;
    margin-bottom: var(--unit);
}
#faq article div {
    max-height: 0;
    overflow: hidden;
    transition: max-height 250ms;
}
#faq article.visible div {
    max-height: 100vh;
    transition: max-height 250ms;
}
#faq article.visible img {
    transform: rotate(270deg);
    transition: transform 250ms;
}

#contacts a {
    color: white;
    display: inline-block;
    margin-top: calc(2 * var(--unit));
    padding: var(--unit) calc(2 * var(--unit));
    background-image: url(i/back.svg);
    background-repeat: no-repeat;
    background-size: 100%;
    text-transform: uppercase;
    text-decoration: none;
}

footer {
    color: var(--text-light);
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: var(--unit);
}

footer a {
    color: var(--text-light);
}

.inter {
    font-family: Inter, sans-serif;
}

.montserrat {
    font-family: Montserrat, sans-serif;
}
