:root {
    --color-background-dark: #000029;
    --color-background-purple: #271173;
    --color-header: #14094f;

    --color-white: #ffffff;
    --color-turquoise: #0edad6;
    --color-purple: #9751ff;
    --color-orange: #ff9354;

    --container-content-width: 1200px;
    --container-padding: 20px;
}

/* =========================
   Base
   ========================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    color: var(--color-white);
    background-color: var(--color-background-dark);

    font-family: "Nunito Sans", Arial, sans-serif;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.container {
    width: min(calc(var(--container-content-width) + var(--container-padding) * 2),
            100%);

    margin-inline: auto;
    padding-inline: var(--container-padding);
}

/* =========================
   Header
   ========================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

    width: 100%;

    background-color: transparent;

    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}

.site-header--scrolled,
.site-header--menu-open {
    background-color: var(--color-header);
}

.site-header--scrolled {
    box-shadow: 0 8px 30px rgb(0 0 0 / 12%);
}

.site-header__inner {
    min-height: 100px;

    display: flex;
    align-items: center;

    gap: 30px;
}

.site-header__logo {
    flex: 0 0 auto;
}

.site-header__logo img {
    width: 166px;
    height: auto;
}

.site-nav {
    flex: 1;

    display: flex;
    align-items: center;
}

.site-nav__list {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 30px;
}

.site-nav__link {
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;

    white-space: nowrap;

    transition: color 0.2s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
    color: var(--color-turquoise);
}

.site-header__trial-button {
    min-width: 209px;
    min-height: 50px;

    margin-left: 30px;
    padding: 12px 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 2px solid var(--color-turquoise);
    border-radius: 30px;

    color: var(--color-turquoise);

    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.site-header__trial-button:hover,
.site-header__trial-button:focus-visible {
    color: var(--color-white);
    border-color: transparent;

    background:
        linear-gradient(45deg,
            #0edad6,
            #00a7be);
}

/* =========================
   Mobile menu button
   ========================= */

.menu-toggle {
    display: none;

    width: 42px;
    height: 32px;

    margin-left: auto;
    padding: 0;

    position: relative;
    z-index: 1010;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    left: 0;

    width: 100%;
    height: 5px;

    border-radius: 2px;

    background-color: var(--color-turquoise);

    transition:
        top 0.25s ease,
        transform 0.25s ease,
        opacity 0.25s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 13px;
}

.menu-toggle span:nth-child(3) {
    top: 26px;
}

.menu-toggle.is-open span:nth-child(1) {
    top: 13px;
    transform: rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    top: 13px;
    transform: rotate(-45deg);
}

/* =========================
   Hero
   ========================= */

.hero {
    min-height: 670px;

    overflow: hidden;

    background:
        linear-gradient(180deg,
            #000029 0%,
            #271173 100%);
}

.hero__inner {
    min-height: 670px;

    padding-top: 160px;

    position: relative;

    display: grid;
    grid-template-columns: 560px 1fr;

    gap: 40px;
}

.hero__content {
    position: relative;
    z-index: 2;
}

.hero__title {
    width: fit-content;

    display: inline-block;

    margin: 0;

    color: transparent;

    font-family: "Play", Arial, sans-serif;
    font-size: 80px;
    line-height: 1.2;
    font-weight: 700;

    background:
        linear-gradient(115deg,
            #0edad6 0%,
            #9751ff 100%);

    background-clip: text;
    -webkit-background-clip: text;

    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.hero__subtitle {
    margin-top: 0;

    max-width: 560px;

    font-family: "Play", Arial, sans-serif;
    font-size: 50px;
    line-height: 1.2;
    font-weight: 400;
}

.hero__description {
    max-width: 427px;

    margin: 46px 0 0;

    font-size: 23px;
    line-height: 1.2;
    font-weight: 600;
}

.hero__cta {
    width: 430px;
    height: 55px;

    margin-top: 56px;

    position: relative;
}

.hero__free {
    width: 256px;

    position: absolute;
    top: 0;
    left: 0;

    color: var(--color-orange);

    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;

    white-space: nowrap;
}

.hero__arrow-text {
    position: absolute;
    top: 29px;
    left: 117px;

    color: var(--color-orange);

    font-size: 24px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -1px;

    white-space: nowrap;
}

.hero__button {
    width: 160px;
    height: 55px;

    position: absolute;
    top: 0;
    left: 300px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 30px;

    color: var(--color-white);
    background-color: var(--color-orange);

    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.hero__button:hover,
.hero__button:focus-visible {
    background:
        linear-gradient(111deg,
            #0edad6 0%,
            #0093ad 100%);

    transform: translateY(-2px);
}

/* 
.hero__button {
    width: 160px;
    height: 55px;

    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 30px;

    color: var(--color-white);
    background-color: var(--color-orange);

    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.hero__button:hover,
.hero__button:focus-visible {
    background:
        linear-gradient(
            111deg,
            #0edad6 0%,
            #0093ad 100%
        );

    transform: translateY(-2px);
} */

.hero__visual {
    width: 692px;

    position: relative;
    z-index: 1;
}

.hero__visual img {
    width: 692px;
    height: auto;
}

/* =========================
   Temporary section
   ========================= */

.temporary-section {
    min-height: 700px;

    padding: 100px 0;

    color: #111111;
    background-color: #ffffff;

    font-size: 40px;
    font-weight: 700;
}

/* =========================
   Benefits
   ========================= */

.benefits {
    position: relative;

    padding: 90px 0 135px;

    overflow: hidden;

    color: #281176;
    background-color: #ffffff;
}

.benefits__wave {
    width: 100%;
    height: 95px;

    position: absolute;
    top: -94px;
    left: 0;

    overflow: hidden;

    background-color: #ffffff;
}

.benefits__wave img {
    width: 100%;
    height: 100%;

    object-fit: fill;
}

.benefits__container {
    position: relative;
}

.benefits__title {
    margin: 0 0 105px;

    color: #281176;

    font-family: "Play", Arial, sans-serif;
    font-size: 50px;
    line-height: 1.2;
    font-weight: 400;
    text-align: center;
}

.benefits__viewport {
    overflow: visible;
}

.benefits__track {
    display: grid;
    grid-template-columns: repeat(2, 500px);

    justify-content: center;

    column-gap: 40px;
    row-gap: 83px;
}

.benefit-card {
    width: 500px;
    min-height: 500px;

    position: relative;

    padding:
        164px 60px 45px;

    border-radius: 50px;

    color: #ffffff;
}

.benefit-card--purple {
    background:
        linear-gradient(124deg,
            #7224e4 0%,
            #9751ff 100%);
}

.benefit-card--orange {
    background:
        linear-gradient(124deg,
            #dc6622 0%,
            #ff9354 100%);
}

.benefit-card--turquoise {
    background:
        linear-gradient(123deg,
            #00a7be 0%,
            #0edad6 100%);
}

.benefit-card__icon {
    width: 329px;
    height: 329px;

    position: absolute;
    top: -50px;
    left: -79px;

    object-fit: contain;

    pointer-events: none;
}

.benefit-card__icon--method {
    width: 175px;
    height: 175px;

    top: -39px;
    left: 62px;
}

.benefit-card__title {
    margin: 0 0 25px;

    font-family: "Play", Arial, sans-serif;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
}

.benefit-card__text {
    max-width: 380px;

    margin: 0;

    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
}

.benefits__controls {
    display: none;
}


/* =========================
   Responsive: under 1200
   ========================= */

@media screen and (max-width: 1199px) {
    .site-header__inner {
        min-height: 90px;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 0;
        right: 0;

        z-index: 1005;

        width: min(370px, 100%);
        height: 100dvh;

        padding: 120px 40px 40px;

        flex-direction: column;
        align-items: stretch;

        background-color: #160953;

        transform: translateX(100%);

        transition: transform 0.3s ease;
    }

    .site-nav.is-open {
        transform: translateX(0);
    }

    .site-nav__list {
        margin: 0;

        flex-direction: column;
        align-items: flex-start;

        gap: 24px;
    }

    .site-nav__link {
        font-size: 18px;
    }

    .site-header__trial-button {
        width: 100%;

        margin: 40px 0 0;
    }

    .hero {
        min-height: 730px;
    }

    .hero__inner {
        min-height: 730px;

        grid-template-columns: 470px 1fr;

        gap: 0;
    }

    .hero__description {
        margin-top: 50px;
    }

    .hero__visual {
        width: 620px;

        margin-left: -40px;
    }

    .hero__visual img {
        width: 620px;
        max-width: none;
    }
}

/* =========================
   Tablet
   ========================= */

@media screen and (max-width: 959px) {
    .hero {
        min-height: 1110px;
    }

    .hero__inner {
        min-height: 1110px;

        padding-top: 160px;

        display: block;
    }

    .hero__subtitle {
        max-width: 580px;
    }

    .hero__description {
        max-width: 600px;

        margin-top: 46px;
    }

    .hero__visual {
        width: 692px;

        position: absolute;
        top: 610px;
        left: 10px;

        margin: 0;
    }

    .hero__visual img {
        width: 692px;
    }
}

/* =========================
   Small tablet
   ========================= */

@media screen and (max-width: 639px) {
    .hero {
        min-height: 1100px;
    }

    .hero__inner {
        min-height: 1100px;
    }

    .hero__subtitle {
        max-width: 430px;
    }

    .hero__description {
        max-width: 443px;

        margin-top: 50px;
    }

    .hero__visual {
        width: 579px;

        top: 690px;
        left: -20px;
    }

    .hero__visual img {
        width: 579px;
    }

    .hero__cta {
        width: 410px;
    }

    .hero__button {
        left: 285px;
    }
}

/* =========================
   Mobile
   ========================= */

@media screen and (max-width: 479px) {
    :root {
        --container-padding: 10px;
    }

    .site-header__inner {
        min-height: 96px;

        padding-inline: 30px;
    }

    .site-header__logo img {
        width: 200px;
    }

    .menu-toggle {
        width: 36px;
        height: 28px;
    }

    .menu-toggle span {
        height: 4px;
    }

    .menu-toggle span:nth-child(2) {
        top: 12px;
    }

    .menu-toggle span:nth-child(3) {
        top: 24px;
    }

    .menu-toggle.is-open span:nth-child(1),
    .menu-toggle.is-open span:nth-child(3) {
        top: 12px;
    }

    .hero {
        min-height: 960px;
    }

    .hero__inner {
        min-height: 960px;

        padding-top: 130px;
    }

    .hero__title {
        font-size: 60px;
        line-height: 1.2;
    }

    .hero__subtitle {
        width: 280px;

        font-size: 32px;
        line-height: 1.1;
    }

    .hero__description {
        width: 303px;

        margin-top: 74px;

        font-size: 23px;
        line-height: 1.2;
    }

    .hero__button {
        width: 180px;

        font-size: 16px;
    }

    .hero__visual {
        width: 414px;

        top: 683px;
        left: -21px;
    }

    .hero__visual img {
        width: 414px;
    }

    .hero__cta {
        width: 100%;
        height: 109px;

        margin-top: 54px;

        position: relative;
    }

    .hero__free {
        width: 275px;

        top: 0;
        left: 50%;

        text-align: center;
        white-space: normal;

        transform: translateX(-50%);
    }

    .hero__arrow-text {
        display: none;
    }

    .hero__button {
        width: 180px;
        height: 55px;

        top: 54px;
        left: 50%;

        font-size: 16px;

        transform: translateX(-50%);
    }

    .hero__button:hover,
    .hero__button:focus-visible {
        transform:
            translateX(-50%) translateY(-2px);
    }

    .temporary-section {
        font-size: 28px;
    }
}

@media screen and (min-width: 690px) and (max-width: 750px) {
    .container {
        padding-inline: 44px;
    }

    .hero__content {
        padding-left: 10px;
    }

    .hero__visual {
        left: 45px;
    }
}

@media screen and (min-width: 750px) and (max-width: 790px) {
    .container {
        padding-inline: 55px;
    }

    .hero__content {
        padding-left: 10px;
    }

    .hero__visual {
        left: 55px;
    }
}

@media screen and (min-width: 790px) and (max-width: 820px) {
    .container {
        padding-inline: 70px;
    }

    .hero__content {
        padding-left: 10px;
    }

    .hero__visual {
        left: 70px;
    }
}

@media screen and (min-width: 820px) and (max-width: 890px) {
    .container {
        padding-inline: 90px;
    }

    .hero__content {
        padding-left: 10px;
    }

    .hero__visual {
        left: 90px;
    }
}

@media screen and (min-width: 890px) and (max-width: 980px) {
    .container {
        padding-inline: 110px;
    }

    .hero__content {
        padding-left: 10px;
    }

    .hero__visual {
        left: 110px;
    }
}

@media screen and (max-width: 1199px) and (min-width: 980px) {
    .benefits__track {
        grid-template-columns: repeat(2, 460px);

        column-gap: 20px;
    }

    .benefit-card {
        width: 460px;

        padding-right: 60px;
        padding-left: 60px;
    }

    .benefit-card:nth-child(3),
    .benefit-card:nth-child(4) {
        min-height: 550px;
    }
}

@media screen and (max-width: 979px) {
    .benefits {
        padding:
            90px 0 60px;
    }

    .benefits__title {
        margin-bottom: 65px;
    }

    .benefits__viewport {
        width: min(560px, calc(100% - 40px));

        margin-inline: auto;
        padding-top: 48px;

        overflow-x: hidden;
        overflow-y: visible;
    }

    .benefits__track {
        display: flex;

        justify-content: flex-start;
        align-items: flex-start;

        column-gap: 0;
        row-gap: 0;

        transition: transform 0.35s ease;
    }

    .benefits__track {
        display: flex;

        justify-content: flex-start;

        column-gap: 0;
        row-gap: 0;

        transition: transform 0.35s ease;
    }

    .benefit-card {
        width: 100%;
        min-width: 100%;
        min-height: 520px;

        flex: 0 0 100%;

        padding:
            180px 55px 45px;
    }

    .benefits__controls {
        margin-top: 30px;

        display: flex;
        align-items: center;
        justify-content: center;

        gap: 24px;
    }

    .benefits__arrow {
        width: 44px;
        height: 44px;

        padding: 0;

        display: inline-flex;
        align-items: center;
        justify-content: center;

        border: 0;
        border-radius: 50%;

        color: #ffffff;
        background-color: #281176;

        font-size: 34px;
        line-height: 1;

        cursor: pointer;
    }

    .benefits__dots {
        display: flex;
        align-items: center;

        gap: 10px;
    }

    .benefits__dot {
        width: 10px;
        height: 10px;

        padding: 0;

        border: 0;
        border-radius: 50%;

        background-color: #281176;

        opacity: 0.35;

        cursor: pointer;
    }

    .benefits__dot.is-active {
        background-color: #0edad6;

        opacity: 1;
    }
}

@media screen and (max-width: 479px) {
    .benefits {
        padding-top: 120px;
    }

    .benefits__wave {
        height: 25px;

        top: -24px;
    }

    .benefits__title {
        width: 304px;

        margin:
            0 auto 55px;

        font-size: 32px;
        line-height: 1.1;
    }

    .benefits__viewport {
        width: calc(100% - 30px);
    }

    .benefit-card {
        min-height: 500px;

        padding:
            165px 30px 35px;

        border-radius: 40px;
    }

    .benefit-card__icon {
        width: 250px;
        height: 250px;

        top: -35px;
        left: -50px;
    }

    .benefit-card__icon--method {
        width: 150px;
        height: 150px;

        top: -20px;
        left: 35px;
    }

    .benefit-card__title {
        font-size: 27px;
    }

    .benefit-card__text {
        font-size: 17px;
        line-height: 1.35;
    }
}

/* =========================
   Projects
   ========================= */

.projects {
    padding: 105px 0 120px;

    overflow: hidden;

    color: #ffffff;

    background:
        linear-gradient(180deg,
            #271173 0%,
            #14094f 100%);
}

.projects__title {
    margin: 0 0 70px;

    font-family: "Play", Arial, sans-serif;
    font-size: 50px;
    line-height: 1.2;
    font-weight: 400;
    text-align: center;
}

/* =========================
   Carousel layout
   ========================= */

.projects-carousel {
    width: 100%;

    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    align-items: start;

    gap: 22px;
}

.projects-carousel__viewport {
    width: 100%;
    min-width: 0;

    overflow: hidden;
}

.projects-carousel__track {
    display: flex;
    flex-direction: row;
    align-items: flex-start;

    gap: 30px;

    transform: translateX(0);

    transition: transform 0.4s ease;
    will-change: transform;
}

.project-slide {
    min-width: 0;

    flex: 0 0 auto;

    display: flex;
    flex-direction: column;
}

/* =========================
   YouTube preview
   ========================= */

.project-video {
    width: 100%;

    position: relative;

    aspect-ratio: 3 / 2;

    overflow: hidden;

    border-radius: 0;

    background-color: #050018;
}

.project-video__preview {
    width: 100%;
    height: 100%;

    position: relative;

    display: block;

    margin: 0;
    padding: 0;

    overflow: hidden;

    border: 0;

    background-color: #050018;

    cursor: pointer;
}

.project-video__poster {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

.project-video__preview:hover .project-video__poster,
.project-video__preview:focus-visible .project-video__poster {
    transform: scale(1.025);

    opacity: 0.82;
}

/* =========================
   Play button
   ========================= */

.project-video__play {
    width: 70px;
    height: 70px;

    position: absolute;
    top: 50%;
    left: 50%;

    display: block;

    transform: translate(-50%, -50%);

    transition: transform 0.2s ease;

    pointer-events: none;
}

.project-video__play svg {
    width: 100%;
    height: 100%;

    display: block;
}

.project-video__play circle {
    fill: rgba(0, 0, 0, 0.82);
}

.project-video__play path {
    fill: #ffffff;
}

.project-video__preview:hover .project-video__play,
.project-video__preview:focus-visible .project-video__play {
    transform:
        translate(-50%, -50%) scale(1.12);
}

/* iframe появляется вместо preview после клика */

.project-video iframe {
    width: 100%;
    height: 100%;

    position: absolute;
    inset: 0;

    display: block;

    border: 0;
}

/* =========================
   Project information
   ========================= */

.project-slide__title {
    margin: 31px 0 22px;

    color: #0edad6;

    font-family: "Play", Arial, sans-serif;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
}

.project-slide__info {
    margin: 0 0 26px;

    color: transparent;

    font-size: 18px;
    line-height: 1.55;
    font-weight: 600;

    white-space: pre-line;

    background:
        linear-gradient(121deg,
            #0edad6 0%,
            #9751ff 100%);

    background-clip: text;
    -webkit-background-clip: text;
}

.project-slide__description {
    margin: 0;

    color: #ffffff;

    font-size: 18px;
    line-height: 1.3;
    font-weight: 400;
}

/* =========================
   Carousel arrows
   ========================= */

.projects-carousel__arrow {
    width: 54px;
    height: 54px;

    margin-top: 93px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    color: #ffffff;
    background-color: #281176;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.2);

    font-family: Arial, sans-serif;
    font-size: 38px;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.projects-carousel__arrow:hover,
.projects-carousel__arrow:focus-visible {
    background-color: #0edad6;

    transform: scale(1.07);
}

.projects-carousel__arrow:disabled {
    opacity: 0.35;

    cursor: default;
}

/* =========================
   Carousel dots
   ========================= */

.projects-carousel__dots {
    min-height: 12px;

    margin-top: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;
}

.projects-carousel__dot {
    width: 10px;
    height: 10px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background-color: #ffffff;

    opacity: 0.35;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.projects-carousel__dot:hover,
.projects-carousel__dot:focus-visible {
    opacity: 0.7;
}

.projects-carousel__dot.is-active {
    background-color: #0edad6;

    opacity: 1;

    transform: scale(1.15);
}

/* =========================
   Medium desktop / tablet:
   two projects
   ========================= */

@media screen and (max-width: 1199px) {
    .projects {
        padding-top: 95px;
    }

    .projects__title {
        margin-bottom: 60px;

        font-size: 46px;
    }

    .projects-carousel {
        grid-template-columns: 48px minmax(0, 1fr) 48px;

        gap: 16px;
    }

    .projects-carousel__arrow {
        width: 48px;
        height: 48px;

        margin-top: 83px;

        font-size: 34px;
    }

    .project-slide__title {
        font-size: 29px;
    }
}

/* =========================
   Small tablet / mobile:
   one project
   ========================= */

@media screen and (max-width: 699px) {
    .projects {
        padding:
            85px 0 95px;
    }

    .projects__title {
        margin-bottom: 48px;

        font-size: 36px;
        line-height: 1.15;
    }

    .projects-carousel {
        grid-template-columns: minmax(0, 1fr);

        display: block;
    }

    .projects-carousel__viewport {
        width: calc(100% - 60px);

        margin-inline: auto;
    }

    .projects-carousel__arrow {
        width: 44px;
        height: 44px;

        margin: 0;

        position: absolute;
        z-index: 5;

        top: 50%;

        font-size: 31px;

        transform: translateY(-50%);
    }

    .projects-carousel {
        position: relative;
    }

    #projects-prev {
        left: 0;
    }

    #projects-next {
        right: 0;
    }

    .projects-carousel__arrow:hover,
    .projects-carousel__arrow:focus-visible {
        transform:
            translateY(-50%) scale(1.07);
    }

    .project-slide__title {
        margin-top: 26px;

        font-size: 27px;
    }

    .project-slide__info {
        margin-bottom: 22px;

        font-size: 17px;
        line-height: 1.5;
    }

    .project-slide__description {
        font-size: 17px;
        line-height: 1.35;
    }

    .project-video__play {
        width: 60px;
        height: 60px;
    }

    .projects-carousel__dots {
        margin-top: 32px;
    }
}

/* =========================
   Narrow phones
   ========================= */

@media screen and (max-width: 479px) {
    .projects {
        padding:
            75px 0 85px;
    }

    .projects__title {
        margin-bottom: 42px;

        font-size: 32px;
    }

    .projects-carousel__viewport {
        width: calc(100% - 48px);
    }

    .projects-carousel__arrow {
        width: 38px;
        height: 38px;

        font-size: 28px;
    }

    .project-slide__title {
        font-size: 24px;
    }

    .project-slide__info {
        font-size: 16px;
    }

    .project-slide__description {
        font-size: 16px;
    }

    .project-video__play {
        width: 54px;
        height: 54px;
    }
}

/* =========================================================
   Program
   ========================================================= */

.program {
    overflow-x: hidden;

    color: #ffffff;
    background-color: #160953;
}

/* =========================================================
   Program heading
   ========================================================= */

.program-heading {
    min-height: 250px;

    background:
        linear-gradient(180deg,
            #14094f 0%,
            #160953 100%);
}

.program-heading__inner {
    min-height: 250px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    padding-top: 45px;
}

.program-heading__title {
    margin: 0;

    color: #ffffff;

    font-family: "Play", Arial, sans-serif;
    font-size: 50px;
    line-height: 1.2;
    font-weight: 400;
    text-align: center;
}

.program-heading__decor {
    width: 68px;
    height: 68px;

    position: absolute;
    top: 48px;
    left: 0;

    object-fit: contain;
}

/* =========================================================
   Course buttons
   ========================================================= */

.program-tabs {
    padding: 24px 0 34px;

    background:
        linear-gradient(180deg,
            #160953 0%,
            #1c0b5e 100%);
}

.program-tabs__desktop {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;

    gap: 14px;
}

.program-tab {
    min-width: 0;
    min-height: 74px;

    flex:
        1 1 calc(25% - 11px);

    padding: 17px 16px;

    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
        2px solid rgb(151 81 255 / 32%);

    border-radius: 18px;

    color: #ffffff;

    background:
        rgb(255 255 255 / 4%);

    font-family:
        "Nunito Sans",
        Arial,
        sans-serif;

    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;

    white-space: normal;

    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.program-tab:hover {
    color: #0edad6;

    border-color: #0edad6;

    background:
        rgb(14 218 214 / 7%);

    transform: translateY(-2px);
}

.program-tab:focus-visible {
    color: #0edad6;

    border-color: #0edad6;

    outline:
        3px solid rgb(14 218 214 / 25%);

    outline-offset: 3px;
}

.program-tab.is-active {
    color: #ffffff;

    border-color: transparent;

    background:
        linear-gradient(120deg,
            #7224e4 0%,
            #9751ff 58%,
            #0edad6 145%);

    box-shadow:
        0 14px 32px rgb(0 0 0 / 24%);

    transform: translateY(-2px);
}

.program-tabs__mobile,
.program-select {
    display: none !important;
}

/* =========================================================
   Course panels
   ========================================================= */

.program-panels {
    background-color: #160953;
}

.program-panel {
    padding:
        15px 0 100px;

    background:
        linear-gradient(180deg,
            #160953 0%,
            #2a1279 100%);
}

.program-panel[hidden] {
    display: none;
}

/* =========================================================
   Course introduction
   ========================================================= */

.program-intro {
    display: grid;

    grid-template-columns:
        minmax(0, 560px) minmax(0, 560px);

    align-items: start;
    justify-content: space-between;

    gap: 60px;
}

.program-intro__content {
    min-width: 0;

    padding-top: 4px;
}

.program-course-title {
    width: fit-content;

    margin: 0;

    color: transparent;

    font-family:
        "Play",
        Arial,
        sans-serif;

    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;

    background:
        linear-gradient(127deg,
            #ff9354 0%,
            #9751ff 100%);

    background-clip: text;
    -webkit-background-clip: text;
}

.program-course-summary {
    max-width: 490px;

    margin-top: 30px;

    font-size: 23px;
    line-height: 1.22;
    font-weight: 600;
}

.program-course-summary p {
    margin: 0;
}

.program-course-summary p+p {
    margin-top: 28px;
}

.program-goal {
    margin-top: 44px;
}

.program-section-title {
    margin:
        0 0 15px;

    color: #ff9354;

    font-family:
        "Play",
        Arial,
        sans-serif;

    font-size: 25px;
    line-height: 1.15;
    font-weight: 400;
}

.program-goal p {
    max-width: 470px;

    margin: 0;

    font-size: 18px;
    line-height: 1.35;
    font-weight: 400;
}

/* =========================================================
   Course illustration
   ========================================================= */

.program-intro__visual {
    width: 100%;

    aspect-ratio: 560 / 320;

    overflow: hidden;

    border-radius: 20px;

    background-color:
        rgb(255 255 255 / 6%);

    box-shadow:
        0 18px 45px rgb(0 0 0 / 20%);
}

.program-intro__visual img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}

/* =========================================================
   Syllabus
   ========================================================= */

.program-syllabus {
    margin-top: 58px;
}

.program-syllabus__grid {
    display: grid;

    grid-template-columns:
        repeat(2,
            minmax(0, 1fr));

    column-gap: 55px;
    row-gap: 34px;
}

.program-item {
    min-height: 155px;

    position: relative;

    padding:
        28px 15px 20px 88px;
}

.program-item__number {
    position: absolute;
    top: -8px;
    left: 0;

    color: transparent;

    font-family:
        "Nunito Sans",
        Arial,
        sans-serif;

    font-size: 120px;
    line-height: 1;
    font-weight: 700;

    opacity: 0.5;

    background:
        linear-gradient(114deg,
            #ff9354 0%,
            #9751ff 100%);

    background-clip: text;
    -webkit-background-clip: text;

    pointer-events: none;
}

.program-item__text {
    position: relative;
    z-index: 1;

    margin: 0;

    font-size: 18px;
    line-height: 1.35;
    font-weight: 400;
}

.program-item__text strong {
    font-weight: 800;
}

/* =========================================================
   Result and certificate
   ========================================================= */

.program-bottom {
    margin-top: 85px;

    display: grid;

    grid-template-columns:
        minmax(0, 560px) 350px;

    align-items: stretch;
    justify-content: space-between;

    gap: 70px;
}

.program-result {
    min-height: 500px;

    position: relative;

    padding:
        165px 60px 48px;

    border-radius: 50px;

    box-shadow:
        0 20px 50px rgb(0 0 0 / 18%);
}

.program-result--purple {
    background:
        linear-gradient(124deg,
            #7224e4 0%,
            #9751ff 100%);
}

.program-result--orange {
    background:
        linear-gradient(124deg,
            #dc6622 0%,
            #ff9354 100%);
}

.program-result--turquoise {
    background:
        linear-gradient(124deg,
            #00a7be 0%,
            #0edad6 100%);
}

.program-result__icon {
    width: 329px;
    height: 329px;

    position: absolute;
    top: -62px;
    left: -79px;

    display: block;

    object-fit: contain;

    pointer-events: none;
}

.program-result__icon--small {
    width: 180px;
    height: 180px;

    top: -47px;
    left: 60px;
}

.program-result__title {
    margin:
        0 0 28px;

    font-family:
        "Play",
        Arial,
        sans-serif;

    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
}

.program-result__text {
    margin: 0;

    font-size: 22px;
    line-height: 1.35;
    font-weight: 600;
}

/* =========================================================
   Certificate
   ========================================================= */

.program-certificate {
    width: 350px;
    height: 500px;

    overflow: hidden;

    border-radius: 20px;

    background-color: #ffffff;

    box-shadow:
        0 20px 50px rgb(0 0 0 / 22%);
}

.program-certificate img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}

/* =========================================================
   Smaller desktop
   ========================================================= */

@media screen and (max-width: 1199px) {
    .program-heading__decor {
        left: 20px;
    }

    .program-intro {
        grid-template-columns:
            minmax(0, 1fr) minmax(0, 1fr);

        gap: 35px;
    }

    .program-bottom {
        grid-template-columns:
            minmax(0, 1fr) 320px;

        gap: 45px;
    }

    .program-certificate {
        width: 320px;
        height: auto;

        aspect-ratio: 350 / 500;
    }
}

/* =========================================================
   Tablet — buttons 2 × 2
   ========================================================= */

@media screen and (max-width: 999px) {
    .program-tab {
        flex-basis:
            calc(50% - 7px);
    }

    .program-intro {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .program-intro__visual {
        max-width: 650px;
    }

    .program-syllabus__grid {
        grid-template-columns: 1fr;

        row-gap: 10px;
    }

    .program-item {
        min-height: 145px;

        padding-right: 30px;
        padding-left: 90px;
    }

    .program-bottom {
        grid-template-columns: 1fr;

        gap: 65px;
    }

    .program-result {
        max-width: 600px;
    }

    .program-certificate {
        width: 350px;
        height: 500px;

        margin-inline: auto;
    }
}

/* =========================================================
   Mobile — buttons remain flex 2 × 2
   ========================================================= */

@media screen and (max-width: 599px) {
    .program-heading {
        min-height: 205px;
    }

    .program-heading__inner {
        min-height: 205px;

        padding-top: 35px;
    }

    .program-heading__title {
        font-size: 36px;
    }

    .program-heading__decor {
        display: none;
    }

    .program-tabs {
        padding:
            18px 0 28px;
    }

    .program-tabs__desktop {
        gap: 10px;
    }

    .program-tab {
        min-height: 64px;

        flex:
            1 1 calc(50% - 5px);

        padding:
            12px 8px;

        border-radius: 14px;

        font-size: 13px;
        line-height: 1.15;
    }

    .program-panel {
        padding:
            10px 0 85px;
    }

    .program-course-title {
        font-size: 28px;
    }

    .program-course-summary {
        margin-top: 25px;

        font-size: 21px;
    }

    .program-section-title {
        font-size: 24px;
    }

    .program-goal p {
        font-size: 17px;
    }

    .program-intro {
        gap: 42px;
    }

    .program-intro__visual {
        border-radius: 16px;
    }

    .program-syllabus {
        margin-top: 50px;
    }

    .program-item {
        min-height: auto;

        padding:
            25px 5px 36px 72px;
    }

    .program-item__number {
        font-size: 90px;
    }

    .program-item__text {
        font-size: 17px;
    }

    .program-bottom {
        margin-top: 58px;

        gap: 55px;
    }

    .program-result {
        min-height: 520px;

        padding:
            165px 42px 42px;

        border-radius: 40px;
    }

    .program-result__text {
        font-size: 20px;
    }

    .program-certificate {
        width:
            min(350px,
                100%);

        height: auto;

        aspect-ratio: 350 / 500;
    }
}

/* =========================================================
   Narrow phones
   ========================================================= */

@media screen and (max-width: 379px) {
    .program-heading__title {
        font-size: 31px;
    }

    .program-tab {
        min-height: 60px;

        padding:
            10px 5px;

        font-size: 11px;
    }

    .program-course-title {
        font-size: 25px;
    }

    .program-course-summary {
        font-size: 19px;
    }

    .program-item {
        padding-left: 58px;
    }

    .program-item__number {
        font-size: 70px;
    }

    .program-result {
        min-height: 570px;

        margin-inline: -5px;

        padding:
            150px 32px 36px;

        border-radius: 30px;
    }

    .program-result__icon {
        width: 235px;
        height: 235px;

        top: -42px;
        left: -45px;
    }

    .program-result__icon--small {
        width: 145px;
        height: 145px;

        top: -28px;
        left: 30px;
    }

    .program-result__title {
        font-size: 27px;
    }

    .program-result__text {
        font-size: 18px;
    }
}

@media screen and (max-width: 360px) {
    .program-tab {
        flex-basis: 100%;

        min-height: 56px;

        font-size: 13px;
    }
}

/* =========================================================
   Format — «Как проходит обучение»
   ========================================================= */

.format {
    padding: 135px 0 120px;

    position: relative;

    overflow: hidden;

    color: #000029;
    background-color: #ffffff;
}

.format__container {
    position: relative;
}

/* =========================================================
   Основная сетка

   Слева:
   — заголовок;
   — поясняющий текст.

   Справа:
   — четыре карточки.
   ========================================================= */

.format__layout {
    display: grid;
    grid-template-columns:
        320px minmax(0, 760px);

    align-items: start;
    justify-content: space-between;

    gap: 80px;
}

/* =========================================================
   Левая колонка
   ========================================================= */

.format__intro {
    min-width: 0;
}

.format__title {
    max-width: 320px;

    margin: 0 0 115px;

    color: #281176;

    font-family: "Play", Arial, sans-serif;
    font-size: 50px;
    line-height: 1.2;
    font-weight: 400;

    white-space: normal;
}

.format__intro-text {
    max-width: 305px;

    font-family: "Nunito Sans", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 400;
}

.format__intro-text p {
    margin: 0;
}

.format__intro-text p+p {
    margin-top: 24px;
}

/* =========================================================
   Сетка карточек
   ========================================================= */

.format__cards {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 360px));

    gap: 40px;
}

.format-card {
    min-height: 360px;

    padding: 49px 50px 40px;

    position: relative;

    overflow: hidden;

    border-radius: 50px;

    color: #ffffff;

    box-shadow:
        0 18px 45px rgb(40 17 118 / 15%);
}

.format-card--purple {
    background:
        linear-gradient(323deg,
            #7224e4 0%,
            #9751ff 100%);
}

.format-card--turquoise {
    background:
        linear-gradient(323deg,
            #00a7be 0%,
            #0edad6 100%);
}

.format-card--orange {
    background:
        linear-gradient(310deg,
            #dc6622 0%,
            #ff9354 100%);
}

.format-card__icon {
    width: 52px;
    height: 52px;

    display: block;

    object-fit: contain;
}

.format-card__title {
    margin: 23px 0 24px;

    font-family: "Play", Arial, sans-serif;
    font-size: 32px;
    line-height: 1.1;
    font-weight: 700;
}

.format-card__text {
    max-width: 270px;

    margin: 0;

    font-family: "Nunito Sans", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
}

/* =========================================================
   Декоративные изображения
   ========================================================= */

.format__decor {
    position: absolute;

    display: block;

    pointer-events: none;
    user-select: none;
}

.format__decor--top-left {
    width: 113px;

    top: -275px;
    left: -100px;
}

.format__decor--right {
    width: 144px;

    top: 75px;
    right: -155px;
}

.format__decor--bottom-left {
    width: 90px;

    bottom: -8px;
    left: 20px;
}

.format__decor--bottom-far-left {
    width: 182px;

    bottom: -47px;
    left: -187px;
}

.format__decor--bottom-right {
    width: 76px;

    right: -75px;
    bottom: -85px;
}

/* =========================================================
   Ширина 1000–1199 px
   ========================================================= */

@media screen and (min-width: 1000px) and (max-width: 1199px) {
    .format {
        padding:
            125px 0 105px;
    }

    .format__layout {
        grid-template-columns:
            280px minmax(0, 620px);

        gap: 40px;
    }

    .format__title {
        max-width: 280px;

        margin-bottom: 105px;

        font-size: 45px;
        line-height: 1.2;
    }

    .format__intro-text {
        max-width: 275px;

        font-size: 17px;
    }

    .format__cards {
        grid-template-columns:
            repeat(2, minmax(0, 300px));

        gap: 20px;
    }

    .format-card {
        min-height: 375px;

        padding:
            40px 36px 36px;

        border-radius: 45px;
    }

    .format-card__title {
        font-size: 29px;
    }

    .format-card__text {
        max-width: none;

        font-size: 17px;
    }

    .format__decor--top-left {
        left: -35px;
    }

    .format__decor--right {
        right: -80px;
    }

    .format__decor--bottom-far-left {
        display: none;
    }
}

/* =========================================================
   Планшет: меньше 999 px
   ========================================================= */

@media screen and (max-width: 999px) {
    .format {
        padding:
            120px 0 100px;
    }

    .format__layout {
        display: block;
    }

    .format__intro {
        margin-bottom: 70px;
    }

    .format__title {
        width: 100%;
        max-width: none;

        margin: 0 0 38px;

        font-size: 46px;
        line-height: 1.2;
    }

    .format__intro-text {
        max-width: 630px;

        font-size: 18px;
    }

    .format__cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

    .format-card {
        min-height: 360px;

        padding:
            40px 40px 36px;

        border-radius: 45px;
    }

    .format-card__text {
        max-width: none;

        font-size: 17px;
    }

    .format__decor {
        display: none;
    }
}

/* =========================================================
   Небольшой планшет: карточки по одной
   ========================================================= */

@media screen and (max-width: 639px) {
    .format {
        padding:
            110px 0 85px;
    }

    .format__intro {
        margin-bottom: 65px;
    }

    .format__title {
        margin-bottom: 40px;

        font-size: 40px;
    }

    .format__intro-text {
        max-width: 455px;
    }

    .format__cards {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .format-card {
        width: 100%;
        min-height: 300px;

        padding:
            40px 40px 38px;

        border-radius: 40px;
    }

    .format-card__text {
        max-width: none;
    }
}

/* =========================================================
   Телефон
   ========================================================= */

@media screen and (max-width: 479px) {
    .format {
        padding:
            100px 0 75px;
    }

    .format__intro {
        margin-bottom: 65px;
    }

    .format__title {
        width: 304px;
        max-width: 100%;

        margin: 0 0 42px;

        font-size: 32px;
        line-height: 1.1;
    }

    .format__intro-text {
        width: 302px;
        max-width: 100%;

        font-size: 18px;
        line-height: 1.3;
    }

    .format-card {
        min-height: 340px;

        padding:
            30px 30px 34px;

        border-radius: 30px;
    }

    .format-card__icon {
        width: 52px;
        height: 52px;
    }

    .format-card__title {
        margin:
            22px 0 22px;

        font-size: 25px;
    }

    .format-card__text {
        font-size: 18px;
        line-height: 1.3;
    }
}

/* =========================================================
   Offline events
   ========================================================= */

.events {
    padding:
        135px 0 135px;

    overflow: hidden;

    color: #000029;
    background-color: #ffffff;
}

.events__title {
    margin:
        0 0 65px;

    color: #281176;

    font-family:
        "Play",
        Arial,
        sans-serif;

    font-size: 50px;
    line-height: 1.2;
    font-weight: 400;
    text-align: center;
}

/* =========================================================
   Events layout
   ========================================================= */

.events__layout {
    display: grid;

    grid-template-columns:
        minmax(0, 470px) minmax(0, 730px);

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.events__content {
    max-width: 470px;

    font-family:
        "Nunito Sans",
        Arial,
        sans-serif;

    font-size: 18px;
    line-height: 1.3;
    font-weight: 400;
}

.events__content p {
    margin: 0;
}

.events__content p+p {
    margin-top: 25px;
}

/* =========================================================
   Events gallery
   ========================================================= */

.events-gallery {
    width: 730px;
    max-width: 100%;

    position: relative;

    aspect-ratio: 730 / 476;
}

.events-gallery__frame {
    width: 100%;
    height: 100%;

    position: absolute;
    inset: 0;

    z-index: 1;

    display: block;

    object-fit: contain;

    pointer-events: none;
}

.events-gallery__viewport {
    width: 76.72%;
    height: 84.03%;

    position: absolute;
    top: 13.03%;
    left: 19.18%;

    z-index: 2;

    overflow: hidden;

    background-color: #eeeeee;
}

.events-gallery__track {
    width: 100%;
    height: 100%;

    display: flex;

    transform: translateX(0);

    transition: transform 0.42s ease;
    will-change: transform;
}

.events-gallery__slide {
    width: 100%;
    height: 100%;

    flex: 0 0 100%;

    margin: 0;
}

.events-gallery__slide img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}

/* =========================================================
   Gallery arrows
   ========================================================= */

.events-gallery__arrow {
    width: 42px;
    height: 42px;

    position: absolute;
    top: 54%;

    z-index: 4;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    color: #281176;
    background-color: #e8e8e8;

    box-shadow:
        0 8px 20px rgb(0 0 0 / 15%);

    font-family:
        Arial,
        sans-serif;

    font-size: 31px;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.events-gallery__arrow--previous {
    left: 13.7%;
}

.events-gallery__arrow--next {
    right: 0.5%;
}

.events-gallery__arrow:hover,
.events-gallery__arrow:focus-visible {
    color: #ffffff;
    background-color: #0edad6;

    transform:
        translateY(-50%) scale(1.08);
}

.events-gallery__arrow:focus-visible {
    outline:
        3px solid rgb(14 218 214 / 25%);

    outline-offset: 3px;
}

/* =========================================================
   Decoration
   ========================================================= */

.events-gallery__decor {
    width: 140px;

    position: absolute;
    top: -9%;
    right: 5%;

    z-index: 3;

    display: block;

    pointer-events: none;
}

/* =========================================================
   Gallery dots
   ========================================================= */

.events-gallery__dots {
    position: absolute;
    bottom: -36px;
    left: 57%;

    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    transform: translateX(-50%);
}

.events-gallery__dot {
    width: 10px;
    height: 10px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 50%;

    background-color: #281176;

    opacity: 0.3;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.events-gallery__dot.is-active {
    background-color: #0edad6;

    opacity: 1;

    transform: scale(1.15);
}

/* =========================================================
   Smaller desktop
   ========================================================= */

@media screen and (min-width: 1000px) and (max-width: 1199px) {
    .events {
        padding:
            120px 0 125px;
    }

    .events__layout {
        grid-template-columns:
            minmax(0, 360px) minmax(0, 590px);

        align-items: center;

        gap: 30px;
    }

    .events__content {
        width: 100%;
        max-width: 360px;
    }

    .events-gallery {
        width: 590px;
        max-width: 100%;

        justify-self: end;

        margin: 0;

        transform: none;
    }
}


/* =========================================================
   До 999 px:
   ========================================================= */

@media screen and (max-width: 999px) {
    .events {
        padding:
            115px 0 115px;
    }

    .events__title {
        margin-bottom: 52px;
    }

    .events__layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr);

        gap: 55px;
    }

    .events__content {
        width: 100%;
        max-width: 680px;

        margin-inline: auto;
    }

    .events-gallery {
        width: min(730px,
                calc(100% - 30px));

        max-width: none;

        justify-self: center;

        margin-inline: auto;

        transform: translateX(-7.5%);
    }
}


/* =========================================================
   Небольшой планшет
   ========================================================= */

@media screen and (max-width: 699px) {
    .events {
        padding:
            105px 0 100px;
    }

    .events__title {
        margin-bottom: 46px;

        font-size: 42px;
    }

    .events__layout {
        gap: 45px;
    }

    .events__content {
        max-width: 100%;
    }

    .events-gallery {
        width: min(620px,
                calc(100% - 50px));

        transform: translateX(-7.5%);
    }

    .events-gallery__arrow {
        width: 38px;
        height: 38px;

        font-size: 28px;
    }

    .events-gallery__decor {
        width: 100px;
    }

    .events-gallery__dots {
        bottom: -32px;
    }
}


/* =========================================================
   Телефон
   ========================================================= */

@media screen and (max-width: 479px) {
    .events {
        padding:
            95px 0 85px;
    }

    .events__title {
        margin-bottom: 40px;

        font-size: 32px;
        line-height: 1.1;
    }

    .events__content {
        font-size: 18px;
        line-height: 1.3;
    }

    .events__content p+p {
        margin-top: 24px;
    }

    .events__layout {
        gap: 38px;
    }

    .events-gallery {
        width: calc(100% - 42px);

        margin-inline: auto;

        transform: translateX(-7%);
    }

    .events-gallery__arrow {
        width: 34px;
        height: 34px;

        font-size: 25px;
    }

    .events-gallery__arrow--previous {
        left: 12%;
    }

    .events-gallery__arrow--next {
        right: 0;
    }

    .events-gallery__decor {
        width: 74px;
    }

    .events-gallery__dots {
        bottom: -29px;
    }

    .events-gallery__dot {
        width: 9px;
        height: 9px;
    }
}


/* =========================================================
   Очень узкий телефон
   ========================================================= */

@media screen and (max-width: 359px) {
    .events-gallery {
        width: calc(100% - 34px);

        transform: translateX(-6%);
    }

    .events-gallery__arrow {
        width: 30px;
        height: 30px;

        font-size: 22px;
    }

    .events-gallery__decor {
        width: 64px;
    }
}

/* =========================================================
   Reviews
   ========================================================= */

.reviews {
    padding: 60px 0 105px;

    position: relative;

    overflow: hidden;

    color: #000029;

    background:
        linear-gradient(180deg,
            #000029 0%,
            #0d0642 48%,
            #2d137e 100%);
}

.reviews__container {
    position: relative;
    z-index: 2;
}

.reviews__title {
    max-width: 980px;

    margin:
        0 auto 65px;

    color: #ffffff;

    font-family: "Play", Arial, sans-serif;
    font-size: 50px;
    line-height: 1.2;
    font-weight: 400;
    text-align: center;
}

/* =========================================================
   Decorative elements
   ========================================================= */

.reviews__decor {
    position: absolute;

    z-index: 1;

    display: block;

    pointer-events: none;
    user-select: none;
}

.reviews__decor--left {
    width: 130px;

    left: 3%;
    bottom: 70px;
}

.reviews__decor--right {
    width: 83px;

    top: 90px;
    right: 6%;
}

.reviews__decor--top {
    width: 110px;

    top: 175px;
    left: 8%;
}

/* =========================================================
   Carousel
   ========================================================= */

.reviews-carousel {
    max-width: 900px;

    margin-inline: auto;

    display: grid;
    grid-template-columns:
        54px minmax(0, 760px) 54px;

    align-items: center;
    justify-content: center;

    gap: 16px;
}

.reviews-carousel__viewport {
    width: 100%;

    overflow: hidden;

    border-radius: 20px;
}

.reviews-carousel__track {
    display: flex;

    transform: translateX(0);

    transition: transform 0.42s ease;
    will-change: transform;
}

/* =========================================================
   Review card
   ========================================================= */

.review-card {
    width: 100%;
    min-width: 100%;
    min-height: 365px;

    position: relative;

    flex: 0 0 100%;

    padding:
        40px 60px 32px;

    overflow: hidden;

    border-radius: 20px;

    background-color: #ffffff;

    box-shadow:
        0 22px 55px rgb(0 0 0 / 22%);
}

.review-card__author {
    display: flex;
    align-items: center;

    gap: 28px;
}

.review-card__avatar {
    width: 100px;
    height: 100px;

    flex: 0 0 100px;

    display: block;

    border-radius: 50%;

    object-fit: cover;
    object-position: center;

    background-color: #eeeeee;
}

.review-card__avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    background:
        linear-gradient(135deg,
            #7224e4 0%,
            #0edad6 130%);

    font-family: "Play", Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
}

.review-card__person {
    min-width: 0;
}

.review-card__name {
    margin: 0;

    font-family: "Play", Arial, sans-serif;
    font-size: 25px;
    line-height: 1.1;
    font-weight: 700;
}

.review-card__subtitle {
    margin: 7px 0 0;

    color: #5b5680;

    font-size: 17px;
    line-height: 1.2;
    font-weight: 600;
}

.review-card__body {
    max-height: 174px;

    margin-top: 25px;

    position: relative;

    overflow: hidden;

    font-size: 18px;
    line-height: 1.3;
    font-weight: 400;
}

/*
   Затухание появляется только тогда,
   когда часть текста действительно скрыта.
*/

.review-card__body.is-overflowing {
    mask-image:
        linear-gradient(to bottom,
            #000000 0%,
            #000000 78%,
            transparent 100%);

    -webkit-mask-image:
        linear-gradient(to bottom,
            #000000 0%,
            #000000 78%,
            transparent 100%);
}

.review-card__body p {
    margin: 0;
}

.review-card__body p+p {
    margin-top: 18px;
}

.review-card__more {
    margin-top: 13px;
    padding: 0;

    border: 0;

    color: #281176;
    background: transparent;

    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;

    cursor: pointer;

    transition: color 0.2s ease;
}

.review-card__more:hover,
.review-card__more:focus-visible {
    color: #0edad6;
}

.review-card__more[hidden] {
    display: none;
}

/* =========================================================
   Carousel arrows
   ========================================================= */

.reviews-carousel__arrow {
    width: 54px;
    height: 54px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    color: #281176;
    background-color: #ffffff;

    box-shadow:
        0 12px 28px rgb(0 0 0 / 25%);

    font-family: Arial, sans-serif;
    font-size: 38px;
    line-height: 1;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.reviews-carousel__arrow:hover,
.reviews-carousel__arrow:focus-visible {
    color: #ffffff;
    background-color: #0edad6;

    transform: scale(1.08);
}

/* =========================================================
   Carousel dots
   ========================================================= */

.reviews-carousel__dots {
    margin-top: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;
}

.reviews-carousel__dot {
    width: 10px;
    height: 10px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background-color: #ffffff;

    opacity: 0.35;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.reviews-carousel__dot.is-active {
    background-color: #0edad6;

    opacity: 1;

    transform: scale(1.18);
}

/* =========================================================
   Modal
   ========================================================= */

body.reviews-modal-open {
    overflow: hidden;
}

.reviews-modal {
    position: fixed;
    inset: 0;

    z-index: 3000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
}

.reviews-modal[hidden] {
    display: none;
}

.reviews-modal__overlay {
    position: absolute;
    inset: 0;

    padding: 0;
    border: 0;

    background-color:
        rgb(0 0 20 / 78%);

    cursor: pointer;
}

.reviews-modal__panel {
    width: min(820px, 100%);
    max-height: 86vh;

    position: relative;
    z-index: 1;

    padding:
        42px 50px 48px;

    overflow-y: auto;

    border-radius: 24px;

    color: #000029;
    background-color: #ffffff;

    box-shadow:
        0 30px 90px rgb(0 0 0 / 45%);
}

.reviews-modal__close {
    width: 42px;
    height: 42px;

    position: absolute;
    top: 15px;
    right: 15px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    color: #ffffff;
    background-color: #281176;

    font-size: 30px;
    line-height: 1;

    cursor: pointer;
}

.reviews-modal__author .review-card__author {
    padding-right: 45px;
}

.reviews-modal__body {
    margin-top: 30px;

    font-size: 18px;
    line-height: 1.45;
}

.reviews-modal__body p {
    margin: 0;
}

.reviews-modal__body p+p {
    margin-top: 22px;
}

/* =========================================================
   Tablet
   ========================================================= */

@media screen and (max-width: 959px) {
    .reviews {
        padding:
            55px 0 95px;
    }

    .reviews__title {
        margin-bottom: 55px;

        font-size: 46px;
    }

    .reviews-carousel {
        max-width: 760px;

        grid-template-columns:
            48px minmax(0, 1fr) 48px;

        gap: 12px;
    }

    .review-card {
        min-height: 390px;

        padding:
            38px 45px 32px;
    }

    .review-card__body {
        max-height: 195px;
    }

    .reviews__decor {
        display: none;
    }
}

/* =========================================================
   Small tablet and mobile
   ========================================================= */

@media screen and (max-width: 639px) {
    .reviews {
        padding:
            65px 0 85px;
    }

    .reviews__title {
        margin-bottom: 45px;

        font-size: 38px;
        text-align: left;
    }

    .reviews-carousel {
        max-width: none;

        position: relative;

        display: block;
    }

    .reviews-carousel__viewport {
        width: 100%;
    }

    .reviews-carousel__arrow {
        width: 42px;
        height: 42px;

        position: absolute;
        top: 50%;

        z-index: 5;

        font-size: 31px;

        transform: translateY(-50%);
    }

    #reviews-prev {
        left: -6px;
    }

    #reviews-next {
        right: -6px;
    }

    .reviews-carousel__arrow:hover,
    .reviews-carousel__arrow:focus-visible {
        transform:
            translateY(-50%) scale(1.08);
    }

    .review-card {
        min-height: 440px;

        padding:
            32px 38px 30px;
    }

    .review-card__author {
        gap: 20px;
    }

    .review-card__avatar {
        width: 80px;
        height: 80px;

        flex-basis: 80px;
    }

    .review-card__avatar--initials {
        font-size: 25px;
    }

    .review-card__name {
        font-size: 20px;
    }

    .review-card__subtitle {
        font-size: 15px;
    }

    .review-card__body {
        max-height: 225px;

        margin-top: 25px;

        font-size: 18px;
    }

    .reviews-modal {
        padding: 15px;
    }

    .reviews-modal__panel {
        padding:
            38px 25px 35px;

        border-radius: 20px;
    }
}

/* =========================================================
   Narrow phone
   ========================================================= */

@media screen and (max-width: 479px) {
    .reviews {
        padding:
            70px 0 80px;
    }

    .reviews__title {
        width: 304px;
        max-width: 100%;

        margin-bottom: 42px;

        font-size: 32px;
        line-height: 1.1;
    }

    .review-card {
        min-height: 480px;

        padding:
            28px 28px 28px;
    }

    .review-card__author {
        align-items: flex-start;

        gap: 16px;
    }

    .review-card__avatar {
        width: 72px;
        height: 72px;

        flex-basis: 72px;
    }

    .review-card__body {
        max-height: 265px;

        font-size: 17px;
        line-height: 1.35;
    }

    .reviews-carousel__arrow {
        width: 36px;
        height: 36px;

        font-size: 27px;
    }

    #reviews-prev {
        left: -4px;
    }

    #reviews-next {
        right: -4px;
    }

    .reviews-carousel__dots {
        margin-top: 28px;
    }

    .reviews-modal__author .review-card__avatar {
        width: 68px;
        height: 68px;

        flex-basis: 68px;
    }

    .reviews-modal__body {
        font-size: 17px;
    }
}

/* =========================================================
   Mentors
   ========================================================= */

.mentors {
    padding:
        125px 0 115px;

    overflow: hidden;

    color: #000029;
    background-color: #ffffff;
}

.mentors__title {
    margin:
        0 0 70px;

    color: #281176;

    font-family:
        "Play",
        Arial,
        sans-serif;

    font-size: 50px;
    line-height: 1.2;
    font-weight: 400;
}

/* =========================================================
   Founder
   ========================================================= */

.mentor-founder {
    min-height: 390px;

    display: grid;
    grid-template-columns:
        minmax(0, 460px) minmax(0, 1fr);

    align-items: start;

    gap: 40px;
}

.mentor-founder__visual {
    width: 460px;
    max-width: 100%;

    align-self: end;
}

.mentor-founder__photo {
    width: 100%;
    height: auto;

    display: block;

    object-fit: contain;
    object-position: bottom center;
}

.mentor-founder__content {
    max-width: 580px;

    padding-top: 55px;
}

.mentor-founder__name {
    margin: 0;

    color: #281176;

    font-family:
        "Play",
        Arial,
        sans-serif;

    font-size: 35px;
    line-height: 1.15;
    font-weight: 700;
}

.mentor-founder__meta {
    margin:
        12px 0 0;

    color: #5c5680;

    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
}

.mentor-founder__role {
    margin:
        23px 0 0;

    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.mentor-founder__quote {
    max-width: 525px;

    margin:
        38px 0 0;

    position: relative;

    padding-left: 80px;

    font-size: 18px;
    line-height: 1.35;
    font-weight: 400;
}

.mentor-founder__quote::before {
    content: "“";

    position: absolute;
    top: -27px;
    left: 0;

    color: #9751ff;

    font-family:
        Georgia,
        serif;

    font-size: 100px;
    line-height: 1;
    font-weight: 700;
}

/* =========================================================
   Mentor cards
   ========================================================= */

.mentors__grid {
    margin-top: 80px;

    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 40px;
}

.mentor-card {
    min-width: 0;
    min-height: 425px;

    position: relative;

    overflow: hidden;

    border-radius: 24px;

    color: #000029;
    background-color: #f5f3ff;

    box-shadow:
        0 18px 45px rgb(40 17 118 / 14%);
}

.mentor-card__photo-wrap {
    width: 100%;

    aspect-ratio: 260 / 210;

    overflow: hidden;

    background-color: #eee9ff;
}

.mentor-card__photo {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}

.mentor-card__content {
    padding:
        24px 24px 28px;
}

.mentor-card__name {
    margin: 0;

    color: #281176;

    font-family:
        "Play",
        Arial,
        sans-serif;

    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
}

.mentor-card__meta {
    margin:
        10px 0 0;

    color: #625c83;

    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
}

.mentor-card__role {
    margin:
        17px 0 0;

    font-size: 17px;
    line-height: 1.3;
    font-weight: 600;
}

/* =========================================================
   Quote overlay on desktop
   ========================================================= */

.mentor-card__overlay {
    position: absolute;
    inset: 0;

    z-index: 2;

    padding:
        48px 30px 32px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    color: #ffffff;

    background:
        linear-gradient(145deg,
            rgb(40 17 118 / 97%) 0%,
            rgb(114 36 228 / 96%) 65%,
            rgb(151 81 255 / 96%) 100%);

    opacity: 0;

    transform: translateY(15px);

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

/* =========================================================
   Mentor quote controls
   ========================================================= */

.mentor-card__toggle {
    margin-top: 22px;
    padding: 0;

    display: inline-flex;
    align-items: center;

    gap: 10px;

    border: 0;

    color: #281176;
    background: transparent;

    font: inherit;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 800;

    cursor: pointer;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}

.mentor-card__toggle:hover,
.mentor-card__toggle:focus-visible {
    color: #0edad6;
    gap: 14px;
}

.mentor-card__toggle:focus-visible {
    outline: 3px solid rgb(14 218 214 / 28%);
    outline-offset: 5px;
    border-radius: 3px;
}

.mentor-card__toggle-icon {
    font-size: 20px;
    line-height: 1;
}

/* =========================================================
   Quote overlay
   ========================================================= */

.mentor-card__overlay {
    position: absolute;
    inset: 0;

    z-index: 2;

    padding:
        48px
        30px
        32px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    color: #ffffff;

    background:
        linear-gradient(
            145deg,
            rgb(40 17 118 / 98%) 0%,
            rgb(114 36 228 / 97%) 65%,
            rgb(151 81 255 / 97%) 100%
        );

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px);

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

/* Открыто после клика */

.mentor-card.is-quote-open .mentor-card__overlay {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;
}

/*
   Hover — только дополнительный preview
   на устройствах с мышью.
*/

@media (hover: hover) and (pointer: fine) {
    .mentor-card:not(.is-quote-open):hover
    .mentor-card__overlay {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);

        pointer-events: auto;
    }
}

.mentor-card__close {
    width: 38px;
    height: 38px;

    position: absolute;
    top: 17px;
    right: 17px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 2px solid rgb(255 255 255 / 65%);
    border-radius: 50%;

    color: #ffffff;
    background: rgb(255 255 255 / 10%);

    font-family: Arial, sans-serif;
    font-size: 26px;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.mentor-card__close:hover,
.mentor-card__close:focus-visible {
    background-color: rgb(255 255 255 / 22%);
    transform: scale(1.07);
}

.mentor-card__quote-mark {
    height: 65px;

    font-family: Georgia, serif;
    font-size: 90px;
    line-height: 1;
    font-weight: 700;
}

.mentor-card__quote {
    margin: 5px 0 0;

    font-size: 17px;
    line-height: 1.35;
    font-weight: 600;
}

/* =========================================================
   Smaller desktop
   ========================================================= */

@media screen and (max-width: 1199px) {
    .mentor-founder {
        grid-template-columns:
            minmax(0, 400px) minmax(0, 1fr);

        gap: 30px;
    }

    .mentor-founder__visual {
        width: 400px;
    }

    .mentor-founder__content {
        padding-top: 40px;
    }

    .mentors__grid {
        gap: 20px;
    }

    .mentor-card__content {
        padding:
            21px 20px 25px;
    }

    .mentor-card__name {
        font-size: 21px;
    }

    .mentor-card__role {
        font-size: 16px;
    }

    .mentor-card__overlay {
        padding:
            35px 22px 27px;
    }

    .mentor-card__quote {
        font-size: 15px;
    }
}

/* =========================================================
   Tablet
   ========================================================= */

@media screen and (max-width: 1000px) {
    .mentors {
        padding:
            110px 0 100px;
    }

    .mentors__title {
        margin-bottom: 55px;

        font-size: 46px;
    }

    .mentor-founder {
        grid-template-columns:
            minmax(0, 340px) minmax(0, 1fr);

        gap: 25px;
    }

    .mentor-founder__visual {
        width: 340px;
    }

    .mentor-founder__content {
        padding-top: 20px;
    }

    .mentor-founder__name {
        font-size: 31px;
    }

    .mentor-founder__quote {
        margin-top: 30px;
        padding-left: 60px;
    }

    .mentor-founder__quote::before {
        font-size: 80px;
    }

    .mentors__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 30px;

        margin-top: 70px;
    }

    .mentor-card__name {
        font-size: 24px;
    }

    .mentor-card__role {
        font-size: 17px;
    }

    .mentor-card__quote {
        font-size: 17px;
    }
}

/* =========================================================
   Small tablet / touch devices
   ========================================================= */

/* =========================================================
   Mentors — screens up to 699px
   ========================================================= */

@media screen and (max-width: 699px) {

    /* Founder */

    .mentor-founder {
        display: flex;
        flex-direction: column;

        gap: 20px;
    }

    .mentor-founder__visual {
        width: min(460px, 100%);

        margin-inline: auto;
    }

    .mentor-founder__photo {
        width: 100%;
        height: auto;

        display: block;

        object-fit: contain;
        object-position: center bottom;
    }

    .mentor-founder__content {
        width: 100%;
        max-width: 100%;

        padding-top: 10px;
    }

    .mentor-founder__quote {
        width: 100%;
        max-width: 100%;
    }


    /* Mentors grid */

    .mentors__grid {
        grid-template-columns: 1fr;

        gap: 30px;
    }


    /* Mentor card */

    .mentor-card {
        width: 100%;
        min-height: auto;

        overflow: hidden;
    }


    /* Mentor photo */

    .mentor-card__photo-wrap {
        width: 100%;
        height: clamp(340px, 65vw, 470px);

        padding-top: 32px;

        display: flex;
        align-items: flex-end;
        justify-content: center;

        overflow: hidden;

        background-color: #eee9ff;
    }

    .mentor-card__photo {
        width: 100%;
        height: 100%;

        display: block;

        object-fit: contain;
        object-position: center bottom;
    }


    /* Main information */

    .mentor-card__content {
        padding:
            25px
            25px
            30px;
    }

    .mentor-card__toggle {
        margin-top: 22px;

        font-size: 16px;
    }


    /* Quote overlay

       Не делаем overlay статичным:
       он остаётся поверх всей карточки
       и открывается только после клика.
    */

    .mentor-card__overlay {
        position: absolute;
        inset: 0;

        padding:
            65px
            27px
            35px;

        display: flex;
        flex-direction: column;
        justify-content: center;

        opacity: 0;
        visibility: hidden;

        transform: translateY(15px);

        pointer-events: none;
    }

    .mentor-card.is-quote-open
    .mentor-card__overlay {
        opacity: 1;
        visibility: visible;

        transform: translateY(0);

        pointer-events: auto;
    }

    .mentor-card__quote-mark {
        height: 48px;

        font-size: 70px;
    }

    .mentor-card__quote {
        margin-top: 5px;

        font-size: 17px;
        line-height: 1.35;
    }

    .mentor-card__close {
        top: 16px;
        right: 16px;
    }
}

/* =========================================================
   Phone
   ========================================================= */

@media screen and (max-width: 479px) {
    .mentors {
        padding:
            95px 0 85px;
    }

    .mentors__title {
        margin-bottom: 45px;

        font-size: 32px;
    }

    .mentor-founder__name {
        font-size: 28px;
    }

    .mentor-founder__meta {
        font-size: 17px;
    }

    .mentor-founder__role {
        font-size: 18px;
    }

    .mentor-founder__quote {
        margin-top: 35px;

        padding-left: 45px;

        font-size: 17px;
    }

    .mentor-founder__quote::before {
        top: -20px;

        font-size: 65px;
    }

    .mentors__grid {
        margin-top: 60px;

        gap: 24px;
    }

    .mentor-card {
        border-radius: 20px;
    }

    .mentor-card__content {
        padding:
            24px 24px 27px;
    }

    .mentor-card__name {
        font-size: 23px;
    }

    .mentor-card__meta {
        font-size: 15px;
    }

    .mentor-card__role {
        font-size: 17px;
    }

    .mentor-card__overlay {
        padding:
            22px 24px 27px;
    }

    .mentor-card__quote {
        font-size: 16px;
    }
}


/* =========================================================
   FAQ
   ========================================================= */

.faq {
    padding:
        135px
        0
        110px;

    position: relative;

    overflow: hidden;

    color: #000029;
    background-color: #ffffff;
}

.faq__container {
    position: relative;
}

/* =========================================================
   FAQ heading
   ========================================================= */

.faq__heading {
    min-height: 90px;

    position: relative;

    display: flex;
    align-items: center;

    margin-bottom: 70px;
}

.faq__title {
    margin: 0;

    color: #281176;

    font-family:
        "Play",
        Arial,
        sans-serif;

    font-size: 50px;
    line-height: 1.2;
    font-weight: 400;
}

.faq__decor {
    position: absolute;

    display: block;

    pointer-events: none;
    user-select: none;
}

.faq__decor--left {
    width: 90px;

    top: -75px;
    left: 355px;
}

.faq__decor--right {
    width: 93px;

    top: 70px;
    left: 780px;
}

/* =========================================================
   FAQ columns
   ========================================================= */

.faq__columns {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    align-items: start;

    gap: 60px;
}

.faq__column {
    min-width: 0;

    border-bottom:
        1px
        solid
        #ddd9ec;
}

/* =========================================================
   FAQ item
   ========================================================= */

.faq-item {
    border-top:
        1px
        solid
        #ddd9ec;
}

.faq-item__question {
    min-height: 94px;

    padding:
        25px
        0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    color: #000029;

    list-style: none;

    cursor: pointer;

    transition:
        color 0.2s ease;
}

.faq-item__question::-webkit-details-marker {
    display: none;
}

.faq-item__question::marker {
    content: "";
}

.faq-item__question:hover,
.faq-item__question:focus-visible {
    color: #0edad6;
}

.faq-item__question:focus-visible {
    outline:
        3px
        solid
        rgb(14 218 214 / 25%);

    outline-offset: 5px;

    border-radius: 4px;
}

.faq-item__question-text {
    max-width: 470px;

    font-family:
        "Nunito Sans",
        Arial,
        sans-serif;

    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}

/* =========================================================
   Plus / minus button
   ========================================================= */

.faq-item__icon {
    width: 44px;
    height: 44px;

    position: relative;

    flex: 0 0 44px;

    border-radius: 50%;

    background-color: transparent;

    transition:
        background-color 0.2s ease,
        transform 0.25s ease;
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: "";

    position: absolute;
    top: 50%;
    left: 50%;

    width: 22px;
    height: 2px;

    background-color: #0edad6;

    transform:
        translate(-50%, -50%);

    transition:
        background-color 0.2s ease,
        transform 0.25s ease,
        opacity 0.25s ease;
}

.faq-item__icon::after {
    transform:
        translate(-50%, -50%)
        rotate(90deg);
}

.faq-item__question:hover
.faq-item__icon,
.faq-item__question:focus-visible
.faq-item__icon {
    background-color: #0edad6;
}

.faq-item__question:hover
.faq-item__icon::before,
.faq-item__question:hover
.faq-item__icon::after,
.faq-item__question:focus-visible
.faq-item__icon::before,
.faq-item__question:focus-visible
.faq-item__icon::after {
    background-color: #ffffff;
}

.faq-item[open]
.faq-item__icon {
    background-color: #0edad6;

    transform: rotate(180deg);
}

.faq-item[open]
.faq-item__icon::before {
    background-color: #ffffff;
}

.faq-item[open]
.faq-item__icon::after {
    background-color: #ffffff;

    opacity: 0;

    transform:
        translate(-50%, -50%)
        rotate(90deg)
        scaleX(0);
}

/* =========================================================
   FAQ answer
   ========================================================= */

.faq-item__answer {
    padding:
        0
        74px
        32px
        0;

    color: #302b4d;

    font-family:
        "Nunito Sans",
        Arial,
        sans-serif;

    font-size: 18px;
    line-height: 1.45;
    font-weight: 400;
}

.faq-item[open]
.faq-item__answer {
    animation:
        faq-answer-appear
        0.25s
        ease;
}

.faq-item__answer a {
    color: #0aaeb8;

    font-weight: 700;

    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-item__answer a:hover,
.faq-item__answer a:focus-visible {
    color: #9751ff;
}

.faq__empty {
    margin: 0;

    font-size: 18px;
}

@keyframes faq-answer-appear {
    from {
        opacity: 0;
        transform: translateY(-7px);
    }

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

/* =========================================================
   FAQ — tablet
   ========================================================= */

@media screen and (max-width: 959px) {
    .faq {
        padding:
            115px
            0
            95px;
    }

    .faq__heading {
        margin-bottom: 55px;
    }

    .faq__title {
        font-size: 46px;
    }

    .faq__columns {
        gap: 35px;
    }

    .faq-item__question {
        min-height: 100px;

        gap: 20px;
    }

    .faq-item__question-text {
        font-size: 20px;
    }

    .faq-item__answer {
        padding-right: 45px;

        font-size: 17px;
    }

    .faq__decor--left {
        left: 260px;
    }

    .faq__decor--right {
        right: 60px;
        left: auto;
    }
}

/* =========================================================
   FAQ — one column
   ========================================================= */

@media screen and (max-width: 699px) {
    .faq {
        padding:
            100px
            0
            85px;
    }

    .faq__columns {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .faq__column:first-child {
        border-bottom: 0;
    }

    .faq__heading {
        margin-bottom: 45px;
    }

    .faq__decor {
        display: none;
    }

    .faq-item__question {
        min-height: 90px;
    }

    .faq-item__answer {
        padding-right: 55px;
    }
}

/* =========================================================
   FAQ — mobile
   ========================================================= */

@media screen and (max-width: 479px) {
    .faq {
        padding:
            105px
            0
            80px;

        color: #ffffff;

        background:
            linear-gradient(
                180deg,
                #000029 0%,
                #2d137e 100%
            );
    }

    .faq__title {
        color: #ffffff;

        font-size: 42px;
    }

    .faq__heading {
        min-height: auto;

        margin-bottom: 55px;
    }

    .faq__column {
        border-bottom-color: #9751ff;
    }

    .faq-item {
        border-top-color: #9751ff;
    }

    .faq-item__question {
        min-height: 95px;

        padding:
            24px
            0;

        color: #ffffff;

        gap: 17px;
    }

    .faq-item__question-text {
        font-size: 19px;
        line-height: 1.3;
    }

    .faq-item__icon {
        width: 40px;
        height: 40px;

        flex-basis: 40px;
    }

    .faq-item__icon::before,
    .faq-item__icon::after {
        width: 20px;
    }

    .faq-item__answer {
        padding:
            0
            15px
            28px
            0;

        color:
            rgb(255 255 255 / 85%);

        font-size: 17px;
        line-height: 1.45;
    }

    .faq-item__answer a {
        color: #0edad6;
    }

    .faq__empty {
        color: #ffffff;
    }
}

/* =========================================================
   Trial
   ========================================================= */

.trial {
    padding: 120px 0 110px;

    position: relative;

    overflow: hidden;

    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            #281176 0%,
            #14094f 100%
        );
}

.trial__container {
    position: relative;
}

.trial__layout {
    display: grid;
    grid-template-columns:
        minmax(0, 560px)
        minmax(0, 500px);

    align-items: start;
    justify-content: space-between;

    gap: 70px;
}

/* =========================================================
   Trial content
   ========================================================= */

.trial__content {
    min-width: 0;
}

.trial__title {
    max-width: 550px;

    margin: 0;

    font-family: "Play", Arial, sans-serif;
    font-size: 50px;
    line-height: 1.15;
    font-weight: 400;
}

.trial__description {
    max-width: 530px;

    margin-top: 45px;

    font-size: 20px;
    line-height: 1.4;
    font-weight: 600;
}

.trial__description p {
    margin: 0;
}

.trial__description p + p {
    margin-top: 25px;
}

.trial__photo {
    width: 430px;
    max-width: 100%;

    margin-top: 40px;
    margin-left: auto;

    display: block;

    object-fit: contain;
}

/* =========================================================
   Trial form
   ========================================================= */

.trial-form {
    width: 100%;

    padding: 48px 50px 45px;

    border-radius: 40px;

    color: #000029;
    background-color: #ffffff;

    box-shadow:
        0 25px 70px
        rgb(0 0 0 / 27%);
}

.trial-form__field + .trial-form__field {
    margin-top: 27px;
}

.trial-form__label {
    display: block;

    margin-bottom: 10px;

    color: #281176;

    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
}

.trial-form__input {
    width: 100%;
    height: 58px;

    padding: 0 20px;

    border:
        2px
        solid
        #ded9ef;

    border-radius: 15px;

    color: #000029;
    background-color: #ffffff;

    font-size: 17px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.trial-form__input::placeholder {
    color: #9995ad;
}

.trial-form__input:focus {
    border-color: #0edad6;

    box-shadow:
        0 0 0 4px
        rgb(14 218 214 / 14%);
}

.trial-form__input.is-invalid {
    border-color: #df3d60;
}

.trial-form__error {
    min-height: 19px;

    margin-top: 6px;

    display: block;

    color: #c52d4d;

    font-size: 14px;
    line-height: 1.3;
}

/* =========================================================
   Consent checkbox
   ========================================================= */

.trial-form__consent {
    margin-top: 22px;

    position: relative;

    display: grid;
    grid-template-columns: 24px 1fr;

    align-items: start;

    gap: 12px;

    color: #4d4865;

    font-size: 14px;
    line-height: 1.4;

    cursor: pointer;
}

.trial-form__checkbox {
    width: 1px;
    height: 1px;

    position: absolute;

    opacity: 0;
}

.trial-form__custom-checkbox {
    width: 24px;
    height: 24px;

    position: relative;

    border:
        2px
        solid
        #9751ff;

    border-radius: 6px;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.trial-form__checkbox:checked +
.trial-form__custom-checkbox {
    border-color: #0edad6;
    background-color: #0edad6;
}

.trial-form__checkbox:checked +
.trial-form__custom-checkbox::after {
    content: "";

    width: 7px;
    height: 12px;

    position: absolute;
    top: 3px;
    left: 7px;

    border:
        solid
        #ffffff;

    border-width:
        0
        2px
        2px
        0;

    transform: rotate(45deg);
}

.trial-form__checkbox:focus-visible +
.trial-form__custom-checkbox {
    outline:
        3px
        solid
        rgb(14 218 214 / 22%);

    outline-offset: 3px;
}

.trial-form__consent a {
    color: #0aaeb8;

    font-weight: 700;
    text-decoration: underline;
}

/* =========================================================
   Submit button
   ========================================================= */

.trial-form__submit {
    width: 100%;
    min-height: 58px;

    margin-top: 25px;
    padding: 15px 25px;

    border: 0;
    border-radius: 30px;

    color: #ffffff;

    background:
        linear-gradient(
            110deg,
            #ff9354 0%,
            #ee6e27 100%
        );

    font-size: 16px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.trial-form__submit:hover,
.trial-form__submit:focus-visible {
    transform: translateY(-2px);

    box-shadow:
        0 12px 28px
        rgb(238 110 39 / 30%);
}

.trial-form__submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.trial-form__status {
    min-height: 22px;

    margin: 18px 0 0;

    color: #281176;

    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    text-align: center;
}

.trial-form__status.is-success {
    color: #078e7e;
}

.trial-form__status.is-error {
    color: #c52d4d;
}

/* =========================================================
   Decorations
   ========================================================= */

.trial__decor {
    position: absolute;

    display: block;

    pointer-events: none;
}

.trial__decor--left {
    width: 150px;

    left: -170px;
    bottom: 50px;
}

.trial__decor--top {
    width: 130px;

    top: -100px;
    right: 410px;
}

/* =========================================================
   Trial — tablet: 700–959 px
   ========================================================= */

@media screen and (max-width: 959px) {
    .trial {
        padding:
            105px
            0
            100px;
    }

    .trial__layout {
        grid-template-columns: 1fr;

        gap: 60px;
    }

    .trial__content {
        width: 100%;
        max-width: none;

        position: relative;

        padding-right: 155px;
    }

    .trial__title {
        max-width: 520px;
    }

    .trial__description {
        max-width: 560px;
    }

    /*
       Вместо большого смайлика показываем
       маленькую иллюстрацию справа от заголовка.
    */

    .trial__photo {
        width: 120px;
        height: auto;
        max-width: none;

        position: absolute;
        top: 5px;
        right: 0;

        margin: 0;

        display: block;

        object-fit: contain;

        pointer-events: none;
        user-select: none;
    }

    .trial-form {
        width: 100%;
        max-width: 600px;
    }

    .trial__decor {
        display: none;
    }
}

/* =========================================================
   Trial — screen below 700 px
   ========================================================= */

@media screen and (max-width: 699px) {
    .trial {
        padding:
            100px
            0
            90px;
    }

    .trial__layout {
        gap: 50px;
    }

    .trial__content {
        padding-right: 0;
    }

    /*
       На узких экранах смайлик полностью скрываем,
       чтобы он не мешал тексту и форме.
    */

    .trial__photo {
        display: none;
    }

    .trial__title {
        max-width: 540px;
    }

    .trial__description {
        max-width: 540px;
    }

    .trial-form {
        max-width: 100%;
    }
}

/* =========================================================
   Trial — small tablet
   ========================================================= */

@media screen and (max-width: 599px) {
    .trial {
        padding:
            95px
            0
            85px;
    }

    .trial__layout {
        gap: 48px;
    }

    .trial__title {
        max-width: 440px;

        font-size: 40px;
        line-height: 1.15;
    }

    .trial__description {
        margin-top: 35px;

        font-size: 18px;
        line-height: 1.4;
    }

    .trial__description p + p {
        margin-top: 23px;
    }

    .trial-form {
        padding:
            38px
            30px
            35px;

        border-radius: 30px;
    }

    .trial-form__field + .trial-form__field {
        margin-top: 23px;
    }
}

/* =========================================================
   Trial — mobile
   ========================================================= */

@media screen and (max-width: 479px) {
    .trial {
        padding:
            90px
            0
            80px;
    }

    .trial__layout {
        gap: 45px;
    }

    .trial__title {
        max-width: 310px;

        font-size: 32px;
        line-height: 1.1;
    }

    .trial__description {
        max-width: 100%;

        margin-top: 32px;

        font-size: 17px;
        line-height: 1.4;
    }

    .trial__description p + p {
        margin-top: 22px;
    }

    .trial-form {
        padding:
            32px
            22px
            30px;

        border-radius: 24px;
    }

    .trial-form__label {
        font-size: 16px;
    }

    .trial-form__input {
        height: 55px;

        padding-inline: 16px;

        font-size: 16px;
    }

    .trial-form__consent {
        grid-template-columns:
            22px
            minmax(0, 1fr);

        gap: 10px;

        font-size: 13px;
    }

    .trial-form__custom-checkbox {
        width: 22px;
        height: 22px;
    }

    .trial-form__checkbox:checked
    + .trial-form__custom-checkbox::after {
        top: 2px;
        left: 6px;
    }

    .trial-form__submit {
        min-height: 55px;

        margin-top: 22px;

        font-size: 15px;
    }
}

/* =========================================================
   Trial — very narrow mobile
   ========================================================= */

@media screen and (max-width: 359px) {
    .trial__title {
        font-size: 29px;
    }

    .trial-form {
        padding:
            28px
            18px
            27px;
    }

    .trial-form__input {
        padding-inline: 13px;
    }
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    padding: 50px 0 42px;

    position: relative;

    overflow: hidden;

    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            #000029 0%,
            #271173 100%
        );
}

.site-footer__container {
    position: relative;
}

/* =========================================================
   Footer top
   ========================================================= */

.site-footer__top {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns:
        200px
        minmax(0, 1fr)
        210px;

    align-items: start;

    gap: 55px;
}

/* =========================================================
   Footer logo
   ========================================================= */

.site-footer__logo {
    display: inline-block;
}

.site-footer__logo img {
    width: 166px;
    height: auto;

    display: block;
}

/* =========================================================
   Footer navigation
   ========================================================= */

.site-footer__nav {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    column-gap: 35px;
    row-gap: 20px;
}

.site-footer__nav a {
    width: fit-content;

    color: #ffffff;

    font-size: 16px;
    line-height: 1.3;
    font-weight: 600;

    transition:
        color 0.2s ease;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
    color: #0edad6;
}

/* =========================================================
   Trial button
   ========================================================= */

.site-footer__trial {
    min-height: 50px;

    padding: 13px 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #0edad6;
    border-radius: 30px;

    color: #0edad6;
    background-color: transparent;

    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.site-footer__trial:hover,
.site-footer__trial:focus-visible {
    color: #000029;
    background-color: #0edad6;

    transform: translateY(-2px);
}

/* =========================================================
   Footer bottom
   ========================================================= */

.site-footer__bottom {
    margin-top: 46px;
    padding-top: 28px;
    padding-right: 145px;

    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    border-top:
        1px
        solid
        rgb(255 255 255 / 18%);
}

.site-footer__policy {
    color: #0edad6;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;

    transition:
        color 0.2s ease;
}

.site-footer__policy:hover,
.site-footer__policy:focus-visible {
    color: #ffffff;
}

.site-footer__copyright {
    margin: 0;

    color:
        rgb(255 255 255 / 62%);

    font-size: 14px;
    line-height: 1.4;
}

/* =========================================================
   Footer decoration
   ========================================================= */

.site-footer__decor {
    width: 120px;
    height: auto;

    position: absolute;
    right: 0;
    bottom: 18px;

    z-index: 1;

    display: block;

    opacity: 0.82;

    pointer-events: none;
    user-select: none;
}
/* =========================================================
   Footer — medium desktop
   ========================================================= */

@media screen and (max-width: 1399px) {
    .site-footer__decor {
        width: 90px;

        right: 5px;
        bottom: 24px;
    }

    .site-footer__bottom {
        padding-right: 110px;
    }
}


/* =========================================================
   Footer — tablet / small desktop
   ========================================================= */

@media screen and (max-width: 1099px) {
    .site-footer__top {
        grid-template-columns:
            180px
            minmax(0, 1fr);

        gap: 40px;
    }

    .site-footer__nav {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        column-gap: 30px;
        row-gap: 20px;
    }

    .site-footer__trial {
        width: 210px;

        grid-column: 2;

        justify-self: start;
    }

    .site-footer__decor {
        width: 75px;

        right: 5px;
        bottom: 28px;
    }

    .site-footer__bottom {
        padding-right: 90px;
    }
}


/* =========================================================
   Footer — mobile
   ========================================================= */

@media screen and (max-width: 699px) {
    .site-footer {
        padding:
            48px
            0
            38px;
    }

    .site-footer__top {
        grid-template-columns: 1fr;

        gap: 38px;
    }

    .site-footer__logo img {
        width: 166px;
    }

    .site-footer__nav {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        column-gap: 25px;
        row-gap: 19px;
    }

    .site-footer__trial {
        width: min(240px, 100%);

        grid-column: auto;
        justify-self: start;
    }

    .site-footer__bottom {
        margin-top: 40px;
        padding-top: 28px;
        padding-right: 0;

        align-items: flex-start;
        flex-direction: column;

        gap: 18px;
    }

    /*
     * На мобильных декоративный смайлик скрываем:
     * он не пересекается с текстом и не занимает место.
     */
    .site-footer__decor {
        display: none;
    }
}


/* =========================================================
   Footer — narrow mobile
   ========================================================= */

@media screen and (max-width: 399px) {
    .site-footer {
        padding:
            42px
            0
            34px;
    }

    .site-footer__top {
        gap: 32px;
    }

    .site-footer__logo img {
        width: 155px;
    }

    .site-footer__nav {
        grid-template-columns: 1fr;

        row-gap: 17px;
    }

    .site-footer__trial {
        width: 100%;
    }

    .site-footer__bottom {
        margin-top: 34px;
    }

    .site-footer__policy,
    .site-footer__copyright {
        font-size: 13px;
    }
}

/* =========================================================
   Legal document
   ========================================================= */

.legal-page {
    min-height: 100vh;

    padding:
        160px
        0
        100px;

    color: #ffffff;

    background:
        linear-gradient(
            180deg,
            #000029 0%,
            #271173 100%
        );
}

.legal-document {
    width: min(
        1000px,
        100%
    );

    margin-inline: auto;
}

.legal-document__header {
    margin-bottom: 45px;
}

.legal-document__back {
    display: inline-flex;

    margin-bottom: 35px;

    color: #0edad6;

    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.legal-document__back:hover,
.legal-document__back:focus-visible {
    color: #ffffff;

    transform: translateX(-4px);
}

.legal-document__title {
    max-width: 900px;

    margin: 0;

    font-family:
        "Play",
        Arial,
        sans-serif;

    font-size: 50px;
    line-height: 1.15;
    font-weight: 400;
}

.legal-document__content {
    padding:
        55px
        65px;

    border:
        1px
        solid
        rgb(255 255 255 / 15%);

    border-radius: 32px;

    color: #000029;
    background-color: #ffffff;

    box-shadow:
        0 25px 70px
        rgb(0 0 0 / 25%);

    font-size: 18px;
    line-height: 1.5;
}

.legal-document__content h2 {
    margin:
        55px
        0
        22px;

    color: #281176;

    font-family:
        "Play",
        Arial,
        sans-serif;

    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
}

.legal-document__content h2:first-of-type {
    margin-top: 45px;
}

.legal-document__content p {
    margin:
        0
        0
        20px;
}

.legal-document__content ul {
    margin:
        0
        0
        25px;

    padding-left: 25px;

    list-style: disc;
}

.legal-document__content li + li {
    margin-top: 10px;
}

.legal-document__content a {
    color: #049da9;

    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-document__content a:hover,
.legal-document__content a:focus-visible {
    color: #7224e4;
}

.site-footer__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 14px;
}

.site-footer__phone {
    width: fit-content;

    color: #0edad6;

    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.site-footer__phone:hover,
.site-footer__phone:focus-visible {
    color: #ffffff;

    transform: translateX(3px);
}

/* =========================================================
   Legal responsive
   ========================================================= */

@media screen and (max-width: 699px) {
    .legal-page {
        padding:
            130px
            0
            80px;
    }

    .legal-document__title {
        font-size: 40px;
    }

    .legal-document__content {
        padding:
            42px
            35px;

        border-radius: 25px;
    }

    .legal-document__content h2 {
        font-size: 28px;
    }
}

@media screen and (max-width: 479px) {
    .legal-page {
        padding:
            120px
            0
            65px;
    }

    .legal-document__header {
        margin-bottom: 35px;
    }

    .legal-document__back {
        margin-bottom: 28px;
    }

    .legal-document__title {
        font-size: 31px;
        line-height: 1.15;
    }

    .legal-document__content {
        padding:
            32px
            22px;

        border-radius: 20px;

        font-size: 17px;
        line-height: 1.5;
    }

    .legal-document__content h2 {
        margin-top: 42px;

        font-size: 25px;
    }
}








/* =========================================================
   Floating contact widget
   ========================================================= */

.contact-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;

    z-index: 5000;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-widget__items {
    margin-bottom: 13px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 12px;

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px);

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.contact-widget.is-open
.contact-widget__items {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;
}

.contact-widget__item {
    width: 58px;
    height: 58px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    box-shadow:
        0 8px 24px
        rgb(0 0 0 / 25%);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-widget__item:hover,
.contact-widget__item:focus-visible {
    transform: scale(1.09);

    box-shadow:
        0 12px 30px
        rgb(0 0 0 / 32%);
}

.contact-widget__item svg {
    width: 30px;
    height: 30px;

    fill: #ffffff;
}

.contact-widget__item--whatsapp {
    background-color: #25d366;
}

.contact-widget__item--phone {
    background-color: #000000;
}

.contact-widget__item--telegram {
    background-color: #229ed9;
}

/* Main button */

.contact-widget__toggle {
    width: 68px;
    height: 68px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
        2px
        solid
        #ffffff;

    border-radius: 50%;

    color: #ffffff;
    background-color: #0edad6;

    box-shadow:
        0 10px 30px
        rgb(0 0 0 / 28%);

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.contact-widget__toggle:hover,
.contact-widget__toggle:focus-visible {
    transform: scale(1.07);
}

.contact-widget__toggle svg {
    width: 35px;
    height: 35px;

    position: absolute;

    fill: currentColor;

    transition:
        opacity 0.2s ease,
        transform 0.25s ease;
}

.contact-widget__toggle-chat {
    opacity: 1;
    transform: scale(1);
}

.contact-widget__toggle-close {
    opacity: 0;
    transform:
        rotate(-90deg)
        scale(0.6);
}

.contact-widget.is-open
.contact-widget__toggle {
    color: #000000;
    background-color: #ffffff;
}

.contact-widget.is-open
.contact-widget__toggle-chat {
    opacity: 0;

    transform:
        rotate(90deg)
        scale(0.6);
}

.contact-widget.is-open
.contact-widget__toggle-close {
    opacity: 1;

    transform:
        rotate(0)
        scale(1);
}

/* Footer reserves space for the fixed widget */

.site-footer__decor {
    right: 105px;
    bottom: 55px;
}

.site-footer__bottom {
    padding-right: 100px;
}

/* Mobile */

@media screen and (max-width: 699px) {
    .contact-widget {
        right: 16px;
        bottom: 16px;
    }

    .contact-widget__toggle {
        width: 60px;
        height: 60px;
    }

    .contact-widget__toggle svg {
        width: 31px;
        height: 31px;
    }

    .contact-widget__item {
        width: 52px;
        height: 52px;
    }

    .contact-widget__item svg {
        width: 27px;
        height: 27px;
    }

    .site-footer {
        padding-bottom: 120px;
    }

    .site-footer__bottom {
        padding-right: 0;
    }
}