/* Mobile-first styles for h1, h2, h3, h4, .container, .section */

/* Base styles (mobile-first) */
.container {
    margin: 0 16px;
    padding: 0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

section {
    margin: 0;
}

.section {
    padding: 24px 12px;
    margin: 0;
}

.container,
h1,
h2,
h3,
h4 {
    margin-right: auto;
    margin-left: auto;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    font-family: "Inter", sans-serif;
}

h1,
.header__title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1.2px;
    text-align: center;
    line-height: 1.1;
    margin: 0;
}

h2 {
    margin-bottom: 0;
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    text-align: center;
}

h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: -0.4px;
}

h4 {
    /* Base styles for h4 */
}

.section__bottom-text {
    text-align: center;
    font-size: 18px;
    line-height: 24px;
}

.section__bottom-link {
    justify-content: center;
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 26px;
    margin-top: 16px;
}

.section__subtitle {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

/* Tablet styles (768px and up) */
@media screen and (min-width: 768px) {
    .container {
        padding-left: 0;
        padding-right: 0;
        max-width: 678px;
        margin: 0 auto;
        position: relative;
    }

    .section {
        padding: 24px 0;
    }

    h1 {
        font-size: 40px;
    }

    h2,
    .section__title {
        font-size: 30px;
    }

    .section__subtitle {
        font-size: 16px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        /* Tablet styles for h4 */
    }

    .section__bottom-text {
        font-size: 18px;
    }

    .section__bottom-link {
        font-size: 20px;
    }
}

/* Desktop styles (1024px and up) */
@media screen and (min-width: 1024px) {
    .container {
        max-width: 994px;
    }

    .section {
        padding: 24px 0;
    }

    h1 {
        font-size: 40px;
    }

    h2,
    .section__title {
        font-size: 40px;
        /* margin-bottom: 50px; */
    }

    .section__subtitle {
        font-size: 20px;
        line-height: 28px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        /* Desktop styles for h4 */
    }

    .section__bottom-text {
        width: 100%;
        font-size: 20px;
    }

    .section__bottom-link {
        margin-left: auto;
        margin-right: auto;
        font-size: 20px;
    }
}

/* Large desktop styles (1280px and up) */
@media screen and (min-width: 1280px) {
    .container {
        max-width: 1126px;
    }

    .section {
        padding: 32px 0;
    }

    h1 {
        font-size: 60px;
        line-height: 70px;
        margin: 0 0 40px;
        max-width: 100%;
        text-align: left;
        letter-spacing: -1.24px;
    }

    h2,
    .section__title {
        font-size: 40px;
        /* margin-bottom: 50px; */
    }

    .section__subtitle {
        font-size: 20px;
        line-height: 28px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        /* Large desktop styles for h4 */
    }

    .section__bottom-text {
        font-size: 20px;
    }

    .section__bottom-link {
        font-size: 20px;
    }
}

/* Extra large desktop styles (1600px and up) */
@media screen and (min-width: 1600px) {
    .container {
        max-width: 1296px;
    }

    .section {
        padding: 40px 0;
    }

    h1 {
        font-size: 72px;
        margin-bottom: 50px;
    }

    h2,
    .section__title {
        font-size: 40px;
        margin-bottom: 16px;
    }

    .section__subtitle {
        font-size: 20px;
        line-height: 28px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        /* Extra large desktop styles for h4 */
    }

    .section__bottom-text {
        font-size: 20px;
    }

    .section__bottom-link {
        margin-top: 16px;
        font-size: 20px;
    }

    .v3 .section__title {
        font-size: 52px;
        font-style: normal;
        font-weight: 700;
        line-height: 58px;
        letter-spacing: -1.04px;
    }
}

/* Additional utility classes */
.bg--gray {
    background: linear-gradient(51deg, rgba(157, 179, 195, 0.10) 35.33%, rgba(224, 233, 238, 0.60) 57.88%, rgba(250, 254, 255, 0.80) 80.86%);
}

.bg--gray-gradient {
    background: linear-gradient(329deg, rgba(185, 205, 217, 0.10) 26.32%, #F1F6F7 81.28%);
}

.bg--light-blue {
    background: linear-gradient(119deg, #DEE6EE 16.64%, #B7D1E8 93.71%);
    position: relative;
    overflow: hidden;
}

.bg--dark {
    position: relative;
    background: #0B2740;
    overflow: hidden;
}

.bg--dark:before {
    content: "";
    display: block;
    position: absolute;
    width: 997.022px;
    height: 998.384px;
    transform: rotate(26.129deg);
    left: -50%;
    top: -293.76px;
    border-radius: 998.384px;
    opacity: 0.3;
    background: #0C65DE;
    filter: blur(250px);
}

.bg--dark:after {
    content: "";
    display: block;
    position: absolute;
    border-radius: 1257.45px;
    background: #024D61;
    filter: blur(200px);
    right: 0;
    top: 0;
    width: 1248.377px;
    height: 1257.45px;
    transform: rotate(26.129deg);
    transition: transform 0.3s ease-out;
    transform-origin: center;
}

/* Анимация движения за мышкой */
.bg--dark {
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.bg--dark:after,
.bg--dark:before {
    transform: rotate(26.129deg) translate(calc((var(--mouse-x, 50%) - 50%) * 0.3), calc((var(--mouse-y, 50%) - 50%) * 0.3));
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bg--dark .section__title,
.bg--dark .section__subtitle,
.bg--dark .section__bottom-link {
    color: #ffffff;
}

.bg--dark .section__bottom-link svg path {
    fill: #ffffff;
}

.section--dark {
    text-align: center;
    background: var(--Black-Main);
    color: #ffffff;
}

.section--dark path {
    fill: #ffffff;
}

nav.category ul {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    gap: 4px;
    padding: 0;
    margin: 10px 0 0 16px;
}

nav.category li {
    font-family: Inter;
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
}

nav.category a {
    color: var(--color-text);
    text-decoration: none;
}

.m-0 {
    margin: 0 !important;
}

.is--desktop {
    display: none !important;
}

.link {
    cursor: pointer;
    text-decoration: underline;
}

@media screen and (min-width: 1024px) {
    .is--desktop {
        display: block !important;
    }

    .is--mobile {
        display: none !important;
    }
}
