* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Onest', sans-serif;
    color: #17181A;
    background-color: #FFFFFF;
}

/* Предотвращение висячих предлогов */
p, h1, h2, h3, h4, span, div {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Неразрывные пробелы для предлогов через CSS не поддерживаются напрямую,
   поэтому используем неразрывные пробелы в HTML */

/* Заглушка для мобильных устройств - скрыта для адаптивной версии */
.mobile-placeholder {
    display: none !important;
}

/* Анимации появления при скролле */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Классы для анимаций */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.39s ease-out, transform 0.39s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-up.animated {
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
}

.fade-in.animated {
    opacity: 1;
}

.slide-in-left {
    transform: translateX(-40px);
}

.slide-in-left.animated {
    transform: translateX(0);
}

.slide-in-right {
    transform: translateX(40px);
}

.slide-in-right.animated {
    transform: translateX(0);
}

.scale-in {
    transform: scale(0.9);
}

.scale-in.animated {
    transform: scale(1);
}

/* Задержки для последовательного появления */
.animate-delay-1 {
    transition-delay: 0.05s;
}

.animate-delay-2 {
    transition-delay: 0.1s;
}

.animate-delay-3 {
    transition-delay: 0.15s;
}

.animate-delay-4 {
    transition-delay: 0.2s;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1002;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    pointer-events: none;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.header.header--visible {
    transform: translateY(0);
}

.header__container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding: 8px 8px 8px 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(32px);
    box-shadow: 0px 2px 16px 0px rgba(0, 5, 154, 0.05);
    border-radius: 16px;
    width: fit-content;
    pointer-events: auto;
}

.header__logo {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.header__logo-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: brightness(0);
    transition: transform 0.5s ease-in-out;
}

.header__logo:hover .header__logo-icon {
    transform: rotate(360deg);
}

.header__title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5em;
    text-align: center;
    color: #161616;
}

.header__navigation {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
}

/* Увеличенные отступы для пунктов меню на десктопе */
@media (min-width: 1025px) {
    .header__navigation {
        gap: 48px !important;
    }
    
    .header__nav-link {
        margin: 0 12px !important;
    }
}

.header__nav-link {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5em;
    text-align: center;
    color: #17181A;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.6s ease-out, opacity 0.6s ease-out;
}

/* Анимация появления для элементов меню на десктопе */
@media (min-width: 1025px) {
    .header__logo,
    .header__nav-link,
    .header__button {
        opacity: 0;
        transform: translateY(-10px);
    }
    
    .header__telegram-link {
        opacity: 1;
        transform: translateY(0);
    }
    
    .header__logo.header-menu-animated,
    .header__nav-link.header-menu-animated,
    .header__button.header-menu-animated {
        opacity: 1;
        transform: translateY(0);
    }
    
    .header__telegram-link.header-menu-animated {
        opacity: 1;
        transform: translateY(0);
    }
}

.header__nav-link:hover {
    opacity: 0.7;
}

.header__nav-link--active {
    opacity: 1;
}

.header__button-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.header__telegram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: opacity 0.2s ease;
    text-decoration: none;
}

.header__telegram-link:hover {
    opacity: 0.7;
}

.header__telegram-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0);
}

/* Скрываем кнопку в навигации на десктопе и планшетах (она дублирует кнопку в контейнере) */
@media (min-width: 769px) {
    .header__button--mobile {
        display: none !important;
    }
    
    .header__telegram-link--mobile {
        display: none !important;
    }
}

/* Скрываем обычную иконку Telegram в контейнере на мобильных */
@media (max-width: 768px) {
    .header__button-container .header__telegram-link:not(.header__telegram-link--mobile) {
        display: none !important;
    }
}

/* Показываем иконку Telegram в контейнере на десктопе */
@media (min-width: 769px) {
    .header__button-container .header__telegram-link:not(.header__telegram-link--mobile) {
        display: flex !important;
    }
}

.header__button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #346DFF;
    border: none;
    border-radius: 10px;
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4285714285714286em;
    text-align: center;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
}

.header__button:hover,
.header__button:active,
.header__button:visited,
.header__button:focus {
    text-decoration: none;
}

.header__button:hover {
    background-color: #2A5AE6;
}

.header__button:active {
    background-color: #1E4FD9;
}

/* Гамбургер-меню */
.header__menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1003;
    position: relative;
}

.header__menu-icon {
    position: absolute;
    width: 24px;
    height: 24px;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
}

.header__menu-icon--burger {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.header__menu-icon--close {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
}

.header__menu-toggle--active .header__menu-icon--burger {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
}

.header__menu-toggle--active .header__menu-icon--close {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.header__menu-icon:hover {
    opacity: 0.7;
}

/* Оверлей для мобильного меню */
.header__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

@media (min-width: 1025px) {
    .header__overlay {
        display: none;
    }
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 64px;
    padding: 0 0 80px;
    margin: 0;
    width: 100%;
    min-height: 100vh;
    background-image: url('img/hero.avif');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    overflow: hidden;
}


.hero__content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: 900px;
    margin-top: 152px;
}

/* Анимация появления для hero-секции */
.hero__access-info,
.hero__main-title,
.hero__subtitle,
.hero__buttons-container {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero__access-info.hero-animated,
.hero__main-title.hero-animated,
.hero__subtitle.hero-animated,
.hero__buttons-container.hero-animated {
    opacity: 1;
    transform: translateY(0);
}

.hero__image-container {
    opacity: 0;
}

.hero__image-container.hero-animated {
    opacity: 1;
}

.hero__text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    gap: 16px;
}

.hero__access-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 999px;
}

.hero__access-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.hero__access-text {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4285714285714286em;
    text-align: center;
    color: #17181A;
}

.hero__main-title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 56px;
    line-height: 1.1em;
    letter-spacing: -0.02em;
    text-align: center;
    color: #17181A;
    width: 100%;
}

.hero__title-accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: #346DFF;
}


.hero__subtitle {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.5em;
    text-align: center;
    color: #17181A;
    width: 100%;
}

.hero__buttons-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.hero__button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #346DFF;
    border: none;
    border-radius: 12px;
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.25em;
    text-align: center;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
    width: 230px;
}

.hero__button--video {
    background: #FFFFFF;
    border: 1px solid #E4E6F7;
    color: #17181A;
    transition: none;
}

.hero__button--video:hover {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    border-color: #E4E6F7 !important;
    color: #17181A !important;
}

.hero__button--video:active {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    border-color: #E4E6F7 !important;
    color: #17181A !important;
}

.hero__button:not(.hero__button--video):hover,
.hero__button:not(.hero__button--video):active,
.hero__button:not(.hero__button--video):visited,
.hero__button:not(.hero__button--video):focus {
    text-decoration: none;
    color: #FFFFFF;
}

.hero__button:not(.hero__button--video):hover {
    background-color: #2A5AE6;
}

.hero__button:not(.hero__button--video):active {
    background-color: #1E4FD9;
}

.hero__image-container {
    width: calc(100% - 64px);
    max-width: 1280px;
    background: #FFFFFF;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.hero__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center;
    transition: opacity 0.3s ease;
    background-color: #FFFFFF;
}

.hero__image[poster] {
    background-size: cover;
    background-position: center;
}

.hero__video-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    z-index: 10;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hero__video-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero__loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #E8EEFE;
    border-top-color: #346DFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.benefits {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 120px 32px;
    width: 100%;
    max-width: 1344px;
    margin: 0 auto;
    background-color: #FFFFFF;
}

.benefits__title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 1.2em;
    letter-spacing: -0.03em;
    text-align: center;
    color: #17181A;
    width: 100%;
}

.benefits__title-accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: #346DFF;
}

.benefits__cards {
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    margin: 0 auto;
}

.benefits__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 24px 24px 0;
    border-radius: 24px;
    flex: 1;
    overflow: hidden;
}

.benefits__card--purple {
    background: radial-gradient(circle at 50% 0%, rgba(248, 245, 255, 1) 0%, rgba(225, 210, 255, 1) 100%);
    align-items: flex-end;
}

.benefits__card--blue {
    background: radial-gradient(circle at 50% 0%, rgba(232, 252, 255, 1) 0%, rgba(170, 244, 255, 1) 100%);
}

.benefits__card--yellow {
    background: radial-gradient(circle at 50% 0%, rgba(255, 247, 225, 1) 0%, rgba(255, 241, 203, 1) 100%);
    align-items: center;
}

.benefits__graph {
    position: absolute;
    width: 551.24px;
    height: 163.13px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

.benefits__card--purple .benefits__graph {
    left: -57px;
    top: 235px;
}

.benefits__card--blue .benefits__graph {
    left: -36.67px;
    top: 188px;
}

.benefits__card--yellow .benefits__graph {
    left: -54.33px;
    top: 256px;
}

.benefits__card-title {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.4em;
    letter-spacing: -0.01em;
    text-align: center;
    color: #17181A;
    width: 100%;
    height: 108px;
    position: relative;
    z-index: 1;
}

.benefits__card-image {
    width: 100%;
    height: 302px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.benefits__card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
}


.features {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding: 120px 32px;
    width: 100%;
    max-width: 1344px;
    margin: 0 auto;
    background-color: #FFFFFF;
}

.features__title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 1.2em;
    letter-spacing: -0.03em;
    text-align: center;
    color: #17181A;
    width: 100%;
}

.features__title-accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: #346DFF;
}

.features__container {
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    max-width: 1280px;
    border-radius: 32px;
}

.features__card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 77px;
    padding: 24px;
    border-radius: 24px;
    flex: 1;
    background: radial-gradient(circle at 50% 0%, rgba(224, 233, 255, 1) 0%, rgba(245, 247, 255, 1) 100%);
}

.features__card:nth-child(2),
.features__card:nth-child(4) {
    background: radial-gradient(circle at 50% 0%, rgba(224, 226, 255, 1) 0%, rgba(245, 247, 255, 1) 100%);
}

.features__icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.features__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.features__card-title {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.4em;
    letter-spacing: -0.01em;
    text-align: left;
    color: #17181A;
}

.features__card-description {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5em;
    text-align: left;
    color: #17181A;
}

.how-it-works-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    padding: 120px 116px;
    width: 100%;
    max-width: 1512px;
    margin: 0 auto;
    background-color: #FFFFFF;
}

.how-it-works-steps__title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 1.2em;
    letter-spacing: -0.03em;
    text-align: center;
    color: #17181A;
    margin: 0;
    width: 100%;
}

.how-it-works-steps__title-accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: #346DFF;
}

.how-it-works-steps__container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 48px;
    width: 100%;
}

.how-it-works-steps__card {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 56px 32px;
    width: 100%;
    max-width: 1288px;
    border-radius: 24px;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp1 0.6s ease-out forwards;
}

.how-it-works-steps__card:first-child {
    transform: rotate(-4deg);
    animation-delay: 0.1s;
    animation-name: fadeInUp1;
}

.how-it-works-steps__card:nth-child(2) {
    transform: rotate(2deg);
    animation-delay: 0.2s;
    animation-name: fadeInUp2;
}

.how-it-works-steps__card:nth-child(3) {
    transform: rotate(-2deg);
    animation-delay: 0.3s;
    animation-name: fadeInUp3;
}

.how-it-works-steps__card:nth-child(4) {
    transform: rotate(4deg);
    animation-delay: 0.4s;
    animation-name: fadeInUp4;
}

@keyframes fadeInUp1 {
    from {
        opacity: 0;
        transform: translateX(-100px) rotate(-4deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(-4deg);
    }
}

@keyframes fadeInUp2 {
    from {
        opacity: 0;
        transform: translateX(100px) rotate(2deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(2deg);
    }
}

@keyframes fadeInUp3 {
    from {
        opacity: 0;
        transform: translateY(50px) rotate(-2deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(-2deg);
    }
}

@keyframes fadeInUp4 {
    from {
        opacity: 0;
        transform: translateX(-100px) rotate(4deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(4deg);
    }
}

.how-it-works-steps__card--blue {
    background: radial-gradient(circle at 50% 0%, rgba(245, 247, 255, 1) 0%, rgba(183, 203, 255, 1) 100%);
    background-color: #F2F6FC;
}

.how-it-works-steps__card--purple {
    background: radial-gradient(circle at 50% 0%, rgba(248, 245, 255, 1) 0%, rgba(225, 210, 255, 1) 100%);
    background-color: #F2F6FC;
}

.how-it-works-steps__card--yellow {
    background: radial-gradient(circle at 50% 0%, rgba(255, 247, 225, 1) 0%, rgba(255, 241, 203, 1) 100%);
    background-color: #F2F6FC;
}

.how-it-works-steps__card--pink {
    background: radial-gradient(circle at 50% 0%, rgba(255, 245, 248, 1) 0%, rgba(255, 210, 219, 1) 100%);
    background-color: #F2F6FC;
}

.how-it-works-steps__number {
    position: absolute;
    right: 0;
    top: 30%;
    transform: translateY(-50%);
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    font-style: italic;
    font-size: 180px;
    line-height: 1.42em;
    letter-spacing: -0.03em;
    text-align: center;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}

.how-it-works-steps__card--blue .how-it-works-steps__number {
    color: #8CAEFF;
}

.how-it-works-steps__card--purple .how-it-works-steps__number {
    color: #BE9DFF;
}

.how-it-works-steps__card--yellow .how-it-works-steps__number {
    color: #FFD667;
}

.how-it-works-steps__card--pink .how-it-works-steps__number {
    color: #FFAABB;
}

.how-it-works-steps__bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 24px;
}

.how-it-works-steps__card--blue .how-it-works-steps__bar {
    background-color: #8CAEFF;
    height: 100%;
    top: 0;
}

.how-it-works-steps__card--purple .how-it-works-steps__bar {
    background-color: #BE9DFF;
    height: 162px;
    top: 0;
}

.how-it-works-steps__card--yellow .how-it-works-steps__bar {
    background-color: #FFD667;
    height: 100%;
    top: 0;
}

.how-it-works-steps__card--pink .how-it-works-steps__bar {
    background-color: #FFAABB;
    height: 162px;
    top: 0;
}

.how-it-works-steps__text {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.2em;
    letter-spacing: -0.01em;
    text-align: center;
    color: #000000;
    margin: 0;
    max-width: 932px;
    position: relative;
    z-index: 2;
}

.library {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 80px 32px;
    width: 100%;
    max-width: 1344px;
    margin: 0 auto;
    background-color: #FFFFFF;
}

.library__title-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.library__title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 1.2em;
    letter-spacing: -0.03em;
    text-align: left;
    color: #17181A;
    width: 100%;
}

.library__title-accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: #346DFF;
}

.library__main-content {
    display: flex;
    flex-direction: row;
    gap: 24px;
    width: 100%;
}

.library__books-block {
    flex: 0 0 auto;
    width: 840px;
}

.library__books-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 64px 64px 0;
    width: 100%;
    height: 498px;
    background: #F2F6FC;
    border-radius: 24px;
    overflow: hidden;
}

.library__books-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom;
}

.library__info-section {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    gap: 24px;
    flex: 1;
}

.library__info-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 32px;
    background: #E8EEFE;
    border-radius: 24px;
    flex: 1;
}

.library__info-card--pink {
    background: #FEE8E8;
}

.library__info-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.library__info-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.library__info-title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.4em;
    letter-spacing: -0.01em;
    text-align: left;
    color: #17181A;
}

.library__info-description {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5em;
    text-align: left;
    color: #17181A;
}

.highlight {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 80px 32px;
    width: 100%;
    max-width: 1344px;
    margin: 0 auto;
    background-color: #FFFFFF;
}

.highlight__title-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.highlight__title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 1.2em;
    letter-spacing: -0.03em;
    text-align: left;
    color: #17181A;
    width: 100%;
}

.highlight__title-accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: #346DFF;
}

.highlight__main-content {
    display: flex;
    flex-direction: row;
    gap: 24px;
    width: 100%;
}

.highlight__info-cards {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    gap: 24px;
    flex: 1;
}

.highlight__info-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 32px;
    background: #F4F0FE;
    border-radius: 24px;
    flex: 1;
}

.highlight__info-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.highlight__info-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.highlight__info-title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.4em;
    letter-spacing: -0.01em;
    text-align: left;
    color: #17181A;
}

.highlight__info-description {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5em;
    text-align: left;
    color: #17181A;
}

.highlight__image-block {
    flex: 0 0 auto;
    width: 840px;
}

.highlight__image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 64px 64px 0;
    width: 100%;
    height: 498px;
    background: #F2F6FC;
    border-radius: 24px;
    overflow: hidden;
}

.highlight__image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom;
}

.meaning {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 80px 32px;
    width: 100%;
    max-width: 1344px;
    margin: 0 auto;
    background-color: #FFFFFF;
}

.meaning__title-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.meaning__title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 1.2em;
    letter-spacing: -0.03em;
    text-align: left;
    color: #17181A;
    width: 100%;
}

.meaning__title-accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: #346DFF;
}

.meaning__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.meaning__image-block {
    width: 100%;
}

.meaning__image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 64px 180px 0;
    width: 100%;
    height: 498px;
    background: #F2F6FC;
    border-radius: 24px;
    overflow: hidden;
}

.meaning__image {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom;
}

.meaning__footer {
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

.meaning__footer-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    padding: 32px;
    background: #FFF4D7;
    border-radius: 24px;
    flex: 1;
}

.meaning__footer-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.meaning__footer-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.meaning__footer-title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.4em;
    letter-spacing: -0.01em;
    text-align: left;
    color: #17181A;
}

.meaning__footer-text {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5em;
    text-align: left;
    color: #17181A;
}

.video-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 120px 32px;
    width: 100%;
    margin: 0 auto;
    background-image: url('img/hero.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.video-section__title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 1.2em;
    letter-spacing: -0.03em;
    text-align: center;
    color: #17181A;
    width: 100%;
    margin: 0;
}

.video-section__title-accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: #346DFF;
}

.video-section__container {
    width: 100%;
    max-width: 1344px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-section__image-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px;
    border-radius: 24px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-section__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.video-section__play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 128px;
    height: 128px;
    border: none;
    border-radius: 50%;
    background: rgba(52, 109, 255, 0.15);
    backdrop-filter: blur(13.71428394317627px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0px 0px 0px 1.14px rgba(52, 109, 255, 0.05);
}

.video-section__play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(52, 109, 255, 0) 18%, rgba(52, 109, 255, 0.12) 100%);
    z-index: -2;
}

.video-section__play-button::after {
    content: '';
    position: absolute;
    top: 14.3%;
    left: 14.3%;
    width: 71.4%;
    height: 71.4%;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(52, 109, 255, 0) 0%, rgba(52, 109, 255, 0.1) 100%);
    z-index: -1;
    backdrop-filter: blur(13.71428394317627px);
}

.video-section__play-button:hover {
    transform: translate(-50%, -50%) scale(1.05);
    background: rgba(52, 109, 255, 0.2);
}

.video-section__play-button:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.video-section__play-icon {
    width: 40px;
    height: 40px;
    z-index: 1;
    filter: drop-shadow(0px 2px 8px rgba(52, 109, 255, 0.3));
}

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.video-modal--open {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.video-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.video-modal__content {
    position: relative;
    width: 90%;
    max-width: 1280px;
    z-index: 10001;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal.video-modal--open .video-modal__content {
    transform: scale(1);
}

.video-modal__close {
    position: absolute;
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(32px);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
}

.video-modal__close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.video-modal__close img {
    width: 24px;
    height: 24px;
}

.video-modal__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000000;
    border-radius: 24px;
    overflow: hidden;
}

.video-modal__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 24px;
}

.philosopher {
    display: block;
    padding: 0;
    margin-top: 320px;
    width: 100%;
    height: 100vh;
    background-color: #FFFFFF;
    position: relative;
}

/* Скрываем блок philosopher на разрешении меньше 1024px */
@media (max-width: 1024px) {
    .philosopher {
        display: none !important;
    }
}

.philosopher__container {
    position: relative;
    width: 100%;
    min-height: 1200px;
}

.philosopher__text-wrapper {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    max-width: 1344px;
    padding: 240px 32px;
    margin: 0 auto;
    z-index: 2;
    text-align: left;
}

.philosopher__text {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 40px;
    line-height: 1.5em;
    letter-spacing: -0.03em;
    text-align: left;
    color: #17181A;
    margin: 0;
}

.philosopher__line {
    display: inline-block;
    position: relative;
}

.philosopher__char {
    display: inline-block;
    opacity: 0.2;
    will-change: opacity;
    transition: opacity 0.05s linear;
}

.philosopher__accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: #346DFF;
}

.philosopher__accent .philosopher__char {
    color: #346DFF;
}

.features-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    padding: 120px 32px;
    margin-top: 120px;
    width: 100%;
    background-image: url('img/block-8.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.features-grid__title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 1.2em;
    letter-spacing: -0.03em;
    text-align: center;
    color: #17181A;
    margin: 0;
}

.features-grid__title-accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: #346DFF;
}

.features-grid__container {
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
    gap: 24px;
    width: 100%;
    max-width: 1280px;
}

.features-grid__card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 64px 24px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    flex: 1;
}

.features-grid__icon {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.features-grid__text {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.4em;
    letter-spacing: -0.01em;
    text-align: center;
    color: #17181A;
    margin: 0;
}

.books {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding: 120px 32px;
    background-color: #FFFFFF;
}

.books__title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 1.2em;
    letter-spacing: -0.03em;
    text-align: center;
    color: #17181A;
    margin: 0;
}

.books__title-accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: #346DFF;
}

.books__wrapper {
    position: relative;
    width: 100%;
}

.books__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    height: 500px;
}

.books__card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 32px;
    border-radius: 20px;
    height: 500px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease, box-shadow 0.3s ease;
}

.books__card--featured {
    width: 400px;
    background: radial-gradient(circle at 50% 0%, rgba(245, 247, 255, 1) 0%, rgba(183, 203, 255, 1) 100%);
}

.books__card--featured.books__card--open {
    width: 400px;
}

.books__card--purple {
    width: 100px;
    background: radial-gradient(circle at 50% 0%, rgba(248, 245, 255, 1) 0%, rgba(225, 210, 255, 1) 100%);
}

.books__card--cyan {
    width: 100px;
    background: radial-gradient(circle at 50% 0%, rgba(232, 252, 255, 1) 0%, rgba(170, 244, 255, 1) 100%);
}

.books__card--yellow {
    width: 100px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 247, 225, 1) 0%, rgba(255, 241, 203, 1) 100%);
}

.books__card--blue {
    width: 100px;
    background: radial-gradient(circle at 50% 0%, rgba(245, 247, 255, 1) 0%, rgba(210, 223, 255, 1) 100%);
}

.books__card--pink {
    width: 100px;
    background: radial-gradient(circle at 50% 0%, rgba(255, 245, 248, 1) 0%, rgba(255, 210, 219, 1) 100%);
}

.books__card--purple-pink {
    width: 100px;
    background: radial-gradient(circle at 50% 0%, rgba(254, 245, 255, 1) 0%, rgba(255, 210, 250, 1) 100%);
}

.books__card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    width: 100%;
    height: 100%;
}

.books__card-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.books__card-name {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 1.4em;
    letter-spacing: -0.01em;
    text-align: center;
    color: #17181A;
    margin: 0;
}

.books__card--featured .books__card-name {
    text-align: center;
}

.books__card:not(.books__card--open) {
    align-items: flex-start;
    justify-content: flex-end;
}

.books__card:not(.books__card--open) .books__card-content {
    align-items: flex-start;
    justify-content: flex-end;
    width: 100%;
}

.books__card:not(.books__card--open) .books__card-name {
    text-align: left;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    width: 100%;
    padding-left: 0;
    opacity: 1;
}

.books__card:not(.books__card--open).books__card--closed .books__card-name {
    opacity: 0;
    animation: fadeInVerticalText 0.3s ease-out 0.6s forwards;
}

@keyframes fadeInVerticalText {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Анимация при наведении */
.books__card:hover {
    transform: translateY(-8px);
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease, box-shadow 0.3s ease;
}

/* Открытое состояние книги */
.books__card--open {
    width: 400px !important;
    z-index: 10;
}

.books__card--open .books__card-content {
    align-items: center;
    justify-content: center;
}

.books__card--open .books__card-name {
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    transform: none !important;
    text-align: center !important;
}

.books__card--open .books__card-description {
    display: block;
    opacity: 0;
}

.books__card--closing .books__card-name,
.books__card--closing .books__card-description {
    animation: fadeOutText 0.3s ease-out forwards;
}

@keyframes fadeOutText {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.books__card--open .books__card-name {
    opacity: 0;
}

/* Анимация применяется через JavaScript для контроля */
.books__card--open.books__card--animated .books__card-name {
    animation: fadeInText 0.4s ease-out 0.6s forwards;
    color: #17181A !important;
}

.books__card--open.books__card--animated .books__card-description {
    animation: fadeInText 0.4s ease-out 0.7s forwards;
    color: #17181A !important;
}

/* Логотип на фоне открытых книг */
.books__card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 150%;
    height: 150%;
    background-image: url('favicon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    filter: brightness(0) invert(1);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.5s ease-out 0.3s, transform 0.5s ease-out 0.3s;
}

.books__card--open::before {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1);
}

.books__card--open .books__card-content {
    position: relative;
    z-index: 2;
}

/* Скрываем описание для закрытых книг */
.books__card:not(.books__card--open) .books__card-description {
    display: none;
    opacity: 0;
    animation: none;
}

/* Закрываем остальные книги при открытии одной */
.books__card:not(.books__card--open) {
    width: 100px;
}

.books__card--featured:not(.books__card--open) {
    width: 100px;
}


.books__card-description {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5em;
    text-align: center;
    color: #17181A;
    margin: 0;
}

.books__button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #346DFF;
    border: none;
    border-radius: 12px;
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.25em;
    text-align: center;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
}

.books__button:hover,
.books__button:active,
.books__button:visited,
.books__button:focus {
    text-decoration: none;
    color: #FFFFFF;
}

.books__button:hover {
    background-color: #2A5AE6;
}

.books__button:active {
    background-color: #1E4FD9;
}

/* Testimonials Section */
.testimonials {
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding: 120px 32px;
    background-color: #FFFFFF;
    overflow-x: auto;
    width: 100%;
}

.testimonials__title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 1.2em;
    letter-spacing: -0.03em;
    text-align: center;
    color: #17181A;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.testimonials__title-accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: #346DFF;
}

.testimonials__wrapper {
    position: relative;
    width: 100%;
}

.testimonials__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.testimonials__container::-webkit-scrollbar {
    display: none;
}

.testimonials__card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 24px;
    width: 560px;
    min-width: 560px;
    height: 360px;
    background-color: #F2F6FC;
    border-radius: 24px;
    flex-shrink: 0;
}

.testimonials__content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.testimonials__stars {
    display: flex;
    flex-direction: row;
}

.testimonials__stars-img {
    width: 152px;
    height: 24px;
}

.testimonials__text {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5em;
    text-align: left;
    color: #17181A;
    margin: 0;
}

.testimonials__card:last-child .testimonials__text {
    color: #161A33;
}

.testimonials__text .intuition-highlight {
    font-weight: 500;
    color: #0066FF;
}

.testimonials__profile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.testimonials__avatar {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #FFFFFF;
}

.testimonials__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.testimonials__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.testimonials__name {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.4em;
    letter-spacing: -0.02em;
    text-align: left;
    color: #17181A;
    margin: 0;
}

.testimonials__scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(32px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 2px 16px 0px rgba(0, 5, 154, 0.05);
    color: #17181A;
}

/* Скрываем кнопки скролла на тач-устройствах */
@media (hover: none) and (pointer: coarse) {
    .testimonials__scroll-btn {
        display: none !important;
    }
}

.testimonials__scroll-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px 2px 16px 0px rgba(0, 5, 154, 0.05);
    transform: translateY(-50%) scale(1.1);
}

.testimonials__scroll-btn--left {
    left: 32px;
}

.testimonials__scroll-btn--right {
    right: 32px;
}

.testimonials__scroll-btn svg {
    width: 24px;
    height: 24px;
}

/* Subscription Section */
.subscription {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding: 120px 32px;
    background-image: url('img/subscription-bg.avif');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.subscription__title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 1.2em;
    letter-spacing: -0.03em;
    text-align: center;
    color: #17181A;
    margin: 0;
}

.subscription__title-accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: #346DFF;
}

.subscription__container {
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
    gap: 24px;
    width: 1280px;
    max-width: 100%;
}

.subscription__card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 24px;
    flex: 1;
    height: 480px;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(32px);
    border-radius: 24px;
}

.subscription__plan {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.subscription__name-container {
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    align-items: stretch;
    gap: 16px;
    width: 100%;
}

.subscription__name {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2em;
    text-align: left;
    color: #17181A;
    margin: 0;
}

.subscription__price-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.subscription__price {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 1.4em;
    letter-spacing: -0.03em;
    text-align: left;
    color: #17181A;
    margin: 0;
}

.subscription__card:nth-child(2) .subscription__price,
.subscription__card:nth-child(3) .subscription__price {
    font-size: 36px;
}

.subscription__price-frequency {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    text-align: left;
    color: #17181A;
    margin: 0;
}

.subscription__features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.subscription__feature {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.subscription__feature-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.subscription__feature-text {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    text-align: left;
    color: #17181A;
    margin: 0;
}

.subscription__button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    width: 100%;
    border: none;
    border-radius: 12px;
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.25em;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
}

.subscription__button:hover,
.subscription__button:active,
.subscription__button:visited,
.subscription__button:focus {
    text-decoration: none;
}

.subscription__button--primary {
    background-color: #346DFF;
    color: #FFFFFF;
}

.subscription__button--primary:hover,
.subscription__button--primary:active,
.subscription__button--primary:visited,
.subscription__button--primary:focus {
    text-decoration: none;
    color: #FFFFFF;
}

.subscription__button--primary:hover {
    background-color: #2A5AE6;
}

.subscription__button--primary:active {
    background-color: #1E4FD9;
}

.subscription__button--secondary {
    background-color: rgba(52, 109, 255, 0.15);
    color: #346DFF;
}

.subscription__button--secondary:hover,
.subscription__button--secondary:active,
.subscription__button--secondary:visited,
.subscription__button--secondary:focus {
    text-decoration: none;
    color: #346DFF;
}

.subscription__button--secondary:hover {
    background-color: rgba(52, 109, 255, 0.25);
}

.subscription__button--secondary:active {
    background-color: rgba(52, 109, 255, 0.35);
}

/* FAQ Section */
.faq {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    padding: 120px 32px;
    background-color: #FFFFFF;
}

.faq__title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 48px;
    line-height: 1.2em;
    letter-spacing: -0.03em;
    text-align: center;
    color: #17181A;
    margin: 0;
}

.faq__title-accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: #346DFF;
}

.faq__container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 768px;
    max-width: 100%;
}

.faq__item {
    background-color: #F2F6FC;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq__content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
}

.faq__item--active .faq__content {
    flex-direction: row;
    align-items: flex-start;
}

.faq__text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.faq__question {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 1.4em;
    letter-spacing: -0.01em;
    text-align: left;
    color: #17181A;
    margin: 0;
}

.faq__answer {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5em;
    text-align: left;
    color: #17181A;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
    margin-top: 0;
}

.faq__item--active .faq__answer {
    max-height: 500px;
    opacity: 1;
    margin-top: 8px;
}

.faq__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.faq__item--active .faq__icon {
    transform: rotate(0deg);
}

/* CTA Section */
.cta {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100vh;
}

.cta__container {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
}

.cta__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 80px 24px 120px;
    width: 100%;
    height: 100vh;
    background-image: url('img/subscription-bg.avif');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    box-sizing: border-box;
}

.cta__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.cta__icon {
    width: 96px;
    height: 96px;
    transition: transform 0.5s ease-in-out;
}

.cta__header:hover .cta__icon {
    transform: rotate(360deg);
}

.cta__title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 56px;
    line-height: 1.1em;
    letter-spacing: -0.02em;
    text-align: center;
    color: #17181A;
    margin: 0;
}

.cta__title-accent {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    color: #346DFF;
}

.cta__button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(87, 133, 252, 1) 0%, rgba(52, 109, 255, 1) 100%);
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5em;
    text-align: center;
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
}

.cta__button:hover,
.cta__button:active,
.cta__button:visited,
.cta__button:focus {
    text-decoration: none;
    color: #FFFFFF;
}

.cta__button:hover {
    background: linear-gradient(180deg, rgba(70, 115, 235, 1) 0%, rgba(42, 90, 230, 1) 100%);
}

.cta__button:active {
    background: linear-gradient(180deg, rgba(55, 95, 215, 1) 0%, rgba(30, 79, 217, 1) 100%);
}

.cta__footer {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 24px;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(32px);
    border-radius: 24px;
    width: calc(100% - 48px);
    max-width: 1456px;
    box-sizing: border-box;
}

.cta__footer-text {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2em;
    text-align: left;
    color: #17181A;
    margin: 0;
}

.cta__footer-text-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: #17181A;
    text-decoration: none;
    transition: opacity 0.2s ease;
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2em;
}

.cta__footer-text-link:hover {
    opacity: 0.7;
}

.cta__telegram-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(224deg) brightness(104%) contrast(97%);
}

.cta__footer-link {
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.375em;
    text-align: right;
    color: #17181A;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.cta__footer-link:hover {
    opacity: 0.7;
}

.cta__footer-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cta__footer-logo-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: brightness(0);
}

.cta__footer-title {
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.5em;
    color: #17181A;
}

/* ============================================
   АДАПТИВНЫЕ СТИЛИ ДЛЯ ВСЕХ УСТРОЙСТВ
   ============================================ */

/* Десктоп (больше 1280px) */
@media (min-width: 1281px) {
    .header__navigation {
        gap: 48px;
    }
    
    .header__nav-link {
        margin: 0 8px;
    }
}

/* Промежуточный брейкпоинт (1024px - 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
    .header__container {
        gap: 32px;
        padding: 8px 8px 8px 16px;
    }
    
    .header__navigation {
        gap: 48px;
    }
    
    .header__nav-link {
        margin: 0 8px;
    }
    
    .hero__content-container {
        max-width: 900px;
        padding: 0 48px;
    }
    
    .hero__image-container {
        margin: 0 48px;
    }
    
    .hero__main-title {
        font-size: 48px;
    }
    
    .benefits {
        padding: 100px 48px;
        max-width: 1200px;
    }
    
    .benefits__title {
        font-size: 42px;
    }
    
    .benefits__cards {
        flex-direction: column;
        gap: 24px;
    }
    
    .benefits__card {
        flex-direction: row;
        align-items: flex-end;
        padding: 24px 24px 0;
        gap: 24px;
        min-height: auto;
    }
    
    .benefits__card-title {
        flex: 1;
        text-align: left;
        height: auto;
        font-size: 24px;
        margin-bottom: 0;
        padding-bottom: 24px;
    }
    
    .benefits__card-image {
        flex: 0 0 auto;
        width: 350px;
        height: 250px;
        align-self: flex-end;
        margin-bottom: 0;
    }
    
    .benefits__card--purple,
    .benefits__card--blue,
    .benefits__card--yellow {
        align-items: flex-end;
    }
    
    .features {
        padding: 100px 48px;
        max-width: 1200px;
    }
    
    .features__title {
        font-size: 42px;
    }
    
    .features__container {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .features__card {
        flex: 1 1 calc(50% - 10px);
        min-width: 280px;
    }
    
    .how-it-works-steps {
        padding: 100px 48px;
        max-width: 1200px;
    }
    
    .how-it-works-steps__title {
        font-size: 42px;
    }
    
    .how-it-works-steps__card {
        max-width: 100%;
        padding: 48px 24px;
    }
    
    .how-it-works-steps__card:first-child {
        transform: rotate(-4deg);
    }
    
    .how-it-works-steps__card:nth-child(2) {
        transform: rotate(2deg);
    }
    
    .how-it-works-steps__card:nth-child(3) {
        transform: rotate(-2deg);
    }
    
    .how-it-works-steps__card:nth-child(4) {
        transform: rotate(4deg);
    }
    
    @keyframes fadeInUp1 {
        from {
            opacity: 0;
            transform: translateX(-100px) rotate(-4deg);
        }
        to {
            opacity: 1;
            transform: translateX(0) rotate(-4deg);
        }
    }
    
    @keyframes fadeInUp2 {
        from {
            opacity: 0;
            transform: translateX(100px) rotate(2deg);
        }
        to {
            opacity: 1;
            transform: translateX(0) rotate(2deg);
        }
    }
    
    @keyframes fadeInUp3 {
        from {
            opacity: 0;
            transform: translateY(50px) rotate(-2deg);
        }
        to {
            opacity: 1;
            transform: translateY(0) rotate(-2deg);
        }
    }
    
    @keyframes fadeInUp4 {
        from {
            opacity: 0;
            transform: translateX(-100px) rotate(4deg);
        }
        to {
            opacity: 1;
            transform: translateX(0) rotate(4deg);
        }
    }
    
    .how-it-works-steps__text {
        font-size: 24px;
    }
    
    .how-it-works-steps__number {
        font-size: 140px;
    }
    
    .library {
        padding: 80px 48px;
        max-width: 1200px;
    }
    
    .library__title {
        font-size: 42px;
    }
    
    .library__main-content {
        flex-direction: row;
    }
    
    .library__books-block {
        width: 60%;
        flex: 0 0 auto;
    }
    
    .library__books-list {
        padding: 48px 48px 0;
    }
    
    .highlight {
        padding: 80px 48px;
        max-width: 1200px;
    }
    
    .highlight__title {
        font-size: 42px;
    }
    
    .highlight__main-content {
        flex-direction: row;
    }
    
    .highlight__image-block {
        width: 60%;
        flex: 0 0 auto;
    }
    
    .highlight__image-container {
        padding: 48px 48px 0;
    }
    
    .meaning {
        padding: 80px 48px;
        max-width: 1200px;
    }
    
    .meaning__title {
        font-size: 42px;
    }
    
    .meaning__image-container {
        padding: 48px 120px 0;
    }
    
    .meaning__footer {
        flex-direction: row;
    }
    
    .philosopher__text-wrapper {
        padding: 240px 48px;
    }
    
    .philosopher__text {
        font-size: 42px;
    }
    
    .features-grid {
        padding: 100px 48px;
    }
    
    .features-grid__title {
        font-size: 42px;
    }
    
    .features-grid__container {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .features-grid__card {
        flex: 1 1 calc(50% - 10px);
        min-width: 280px;
    }
    
    .books {
        padding: 100px 48px;
    }
    
    .books__title {
        font-size: 42px;
    }
    
    .testimonials {
        padding: 100px 48px;
    }
    
    .testimonials__title {
        font-size: 42px;
        padding: 0;
    }
    
    .testimonials__container {
        padding: 0;
    }
    
    .testimonials__card {
        flex-shrink: 0;
    }
    
    .subscription {
        padding: 100px 48px;
    }
    
    .subscription__title {
        font-size: 42px;
    }
    
    .subscription__container {
        flex-direction: row;
        width: 100%;
        max-width: 1100px;
        gap: 16px;
    }
    
    .subscription__card {
        flex: 1;
        height: auto;
        min-height: 450px;
        padding: 20px;
        gap: 24px;
    }
    
    .subscription__name {
        font-size: 18px;
    }
    
    .subscription__price {
        font-size: 24px;
    }
    
    .subscription__card:nth-child(2) .subscription__price,
    .subscription__card:nth-child(3) .subscription__price {
        font-size: 32px;
    }
    
    .subscription__price-frequency {
        font-size: 14px;
    }
    
    .subscription__feature-text {
        font-size: 15px;
    }
    
    .subscription__button {
        padding: 14px 18px;
        font-size: 15px;
    }
    
    .faq {
        padding: 100px 48px;
    }
    
    .faq__title {
        font-size: 42px;
    }
    
    .faq__container {
        max-width: 900px;
    }
    
    .cta__title {
        font-size: 48px;
    }
}

/* Кнопки скролла для книг */
.books__scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(32px);
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 2px 16px 0px rgba(0, 5, 154, 0.05);
    color: #17181A;
}

.books__scroll-btn:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0px 2px 16px 0px rgba(0, 5, 154, 0.05);
    transform: translateY(-50%) scale(1.1);
}

.books__scroll-btn--left {
    left: 16px;
}

.books__scroll-btn--right {
    right: 16px;
}

.books__scroll-btn svg {
    width: 24px;
    height: 24px;
}

/* Скрываем кнопки скролла на тач-устройствах */
@media (hover: none) and (pointer: coarse) {
    .books__scroll-btn {
        display: none !important;
    }
}

/* Дополнительная проверка для тач-устройств */
@media (pointer: coarse) {
    .books__scroll-btn {
        display: none !important;
    }
}

/* Разрешение ниже 1280px - все книги открыты в ряд с горизонтальным скроллом */
@media (max-width: 1279px) {
    .books {
        padding: 120px 48px;
    }
    
    .books__wrapper {
        padding: 0;
    }
    
    .books__scroll-btn {
        display: flex;
    }
    
    .books__container {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: calc(100% + 96px);
        padding: 0 24px;
        margin: 0 -48px;
        box-sizing: border-box;
        justify-content: flex-start !important;
    }
    
    .books__container::-webkit-scrollbar {
        display: none;
    }
    
    .books__card {
        flex-shrink: 0;
        width: 320px !important;
        height: 400px;
        min-height: 400px;
        transition: none !important;
        transform: none !important;
        cursor: default !important;
        pointer-events: none;
        position: relative;
        z-index: 1;
    }
    
    .books__card--open {
        width: 320px !important;
        z-index: 1 !important;
    }
    
    .books__card:not(.books__card--open) {
        width: 320px !important;
    }
    
    .books__container {
        height: 400px;
    }
    
    .books__card--open .books__card-name,
    .books__card:not(.books__card--open) .books__card-name {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        transform: none !important;
        text-align: center !important;
        opacity: 1 !important;
        animation: none !important;
        color: #17181A !important;
    }
    
    .books__card--open .books__card-description,
    .books__card:not(.books__card--open) .books__card-description {
        display: block !important;
        opacity: 1 !important;
        animation: none !important;
        text-align: center !important;
        color: #17181A !important;
    }
    
    .books__card::before {
        opacity: 0.4 !important;
        transform: translate(-50%, -50%) scale(1) !important;
        transition: none !important;
        z-index: 0 !important;
    }
    
    .books__card:hover {
        transform: none !important;
        transition: none !important;
    }
    
    .books__card-content {
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .books__card-info {
        align-items: center !important;
        text-align: center !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .books__card-name,
    .books__card-description {
        position: relative !important;
        z-index: 10 !important;
    }
}

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    .header__container {
        gap: 24px;
        padding: 8px 8px 8px 12px;
    }
    
    .header__navigation {
        gap: 32px !important;
    }
    
    .header__nav-link {
        margin: 0 8px !important;
    }
    
    .hero__content-container {
        max-width: 100%;
        padding: 0 32px;
        margin-top: 120px;
        gap: 24px;
    }
    
    .hero__main-title {
        font-size: 42px;
    }
    
    .hero__subtitle {
        font-size: 18px;
    }
    
    .hero__image-container {
        max-width: 100%;
        margin: 0 24px;
    }
    
    .benefits {
        padding: 80px 24px;
        gap: 40px;
    }
    
    .benefits__title {
        font-size: 36px;
    }
    
    .benefits__cards {
        flex-direction: column;
        gap: 16px;
    }
    
    .benefits__card-image {
        height: 250px;
    }
    
    .features {
        padding: 80px 24px;
        gap: 40px;
    }
    
    .features__title {
        font-size: 36px;
    }
    
    .features__container {
        flex-wrap: wrap;
    }
    
    .features__card {
        flex: 1 1 calc(50% - 12px);
        min-width: 280px;
    }
    
    .how-it-works-steps {
        padding: 80px 24px;
        gap: 20px;
    }
    
    .how-it-works-steps__title {
        font-size: 36px;
    }
    
    .how-it-works-steps__container {
        gap: 16px;
    }
    
    .how-it-works-steps__card {
        max-width: 100%;
        padding: 40px 20px;
    }
    
    .how-it-works-steps__card:first-child {
        transform: rotate(-4deg);
    }
    
    .how-it-works-steps__card:nth-child(2) {
        transform: rotate(2deg);
    }
    
    .how-it-works-steps__card:nth-child(3) {
        transform: rotate(-2deg);
    }
    
    .how-it-works-steps__card:nth-child(4) {
        transform: rotate(4deg);
    }
    
    @keyframes fadeInUp1 {
        from {
            opacity: 0;
            transform: translateX(-100px) rotate(-4deg);
        }
        to {
            opacity: 1;
            transform: translateX(0) rotate(-4deg);
        }
    }
    
    @keyframes fadeInUp2 {
        from {
            opacity: 0;
            transform: translateX(100px) rotate(2deg);
        }
        to {
            opacity: 1;
            transform: translateX(0) rotate(2deg);
        }
    }
    
    @keyframes fadeInUp3 {
        from {
            opacity: 0;
            transform: translateY(50px) rotate(-2deg);
        }
        to {
            opacity: 1;
            transform: translateY(0) rotate(-2deg);
        }
    }
    
    @keyframes fadeInUp4 {
        from {
            opacity: 0;
            transform: translateX(-100px) rotate(4deg);
        }
        to {
            opacity: 1;
            transform: translateX(0) rotate(4deg);
        }
    }
    
    .how-it-works-steps__text {
        font-size: 20px;
        max-width: 100%;
    }
    
    .how-it-works-steps__number {
        font-size: 100px;
        display: none;
    }
    
    .how-it-works-steps__bar {
        width: 20px;
    }
    
    .library {
        padding: 60px 24px;
        gap: 40px;
    }
    
    .library__title {
        font-size: 36px;
    }
    
    .library__main-content {
        flex-direction: column;
    }
    
    .library__books-block {
        width: 100%;
    }
    
    .library__books-list {
        height: auto;
        min-height: 400px;
        padding: 40px 24px 0;
    }
    
    .highlight {
        padding: 60px 24px;
        gap: 40px;
    }
    
    .highlight__title {
        font-size: 36px;
    }
    
    .highlight__main-content {
        flex-direction: column;
    }
    
    .highlight__image-block {
        width: 100%;
    }
    
    .highlight__image-container {
        height: auto;
        min-height: 400px;
        padding: 40px 24px 0;
    }
    
    .meaning {
        padding: 60px 24px;
        gap: 40px;
    }
    
    .meaning__title {
        font-size: 36px;
    }
    
    .meaning__image-container {
        height: auto;
        min-height: 400px;
        padding: 40px 24px 0;
    }
    
    .meaning__footer {
        flex-direction: column;
    }
    
    .video-section {
        padding: 80px 24px;
        border-radius: 0;
        gap: 40px;
    }
    
    .video-section__title {
        font-size: 40px;
    }
    
    .video-section__image-wrapper {
        border-radius: 16px;
    }
    
    .video-section__play-button {
        width: 112px;
        height: 112px;
    }
    
    .video-section__play-icon {
        width: 36px;
        height: 36px;
    }
    
    .philosopher {
        margin-top: 160px;
    }
    
    .philosopher__text-wrapper {
        padding: 120px 24px;
    }
    
    .philosopher__text {
        font-size: 36px;
    }
    
    .features-grid {
        padding: 80px 24px;
        margin-top: 550px;
        gap: 40px;
    }
    
    .features-grid__title {
        font-size: 36px;
    }
    
    .features-grid__container {
        flex-wrap: wrap;
    }
    
    .features-grid__card {
        flex: 1 1 calc(50% - 12px);
        min-width: 280px;
    }
    
    .books {
        padding: 80px 24px;
        gap: 40px;
    }
    
    .books__title {
        font-size: 36px;
    }
    
    .books__button {
        font-weight: 500;
    }
    
    .books__container {
        flex-wrap: nowrap;
        height: 400px;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: calc(100% + 48px);
        padding: 0 16px;
        margin: 0 -24px;
        box-sizing: border-box;
    }
    
    .books__container::-webkit-scrollbar {
        display: none;
    }
    
    .books__card {
        flex-shrink: 0;
        width: 320px !important;
        height: 400px;
        min-height: 400px;
        transition: none !important;
        transform: none !important;
        cursor: default !important;
        pointer-events: none;
    }
    
    .books__card--featured {
        width: 320px !important;
        max-width: 320px;
    }
    
    .books__container {
        height: 400px;
    }
    
    .books__card:hover {
        transform: none !important;
        transition: none !important;
    }
    
    .books__card--open .books__card-name,
    .books__card:not(.books__card--open) .books__card-name {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        transform: none !important;
        text-align: center !important;
        opacity: 1 !important;
        animation: none !important;
        color: #17181A !important;
    }
    
    .books__card--open .books__card-description,
    .books__card:not(.books__card--open) .books__card-description {
        display: block !important;
        opacity: 1 !important;
        animation: none !important;
        text-align: center !important;
        color: #17181A !important;
    }
    
    .books__card::before {
        opacity: 0.4 !important;
        transform: translate(-50%, -50%) scale(1) !important;
        transition: none !important;
        z-index: 0 !important;
    }
    
    .books__card-content {
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .books__card-info {
        align-items: center !important;
        text-align: center !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .books__card-name,
    .books__card-description {
        position: relative !important;
        z-index: 10 !important;
    }
    
    .testimonials {
        padding: 80px 24px;
        gap: 40px;
    }
    
    .testimonials__title {
        font-size: 36px;
        padding: 0;
    }
    
    .testimonials__container {
        padding: 0;
    }
    
    .testimonials__card {
        width: 480px;
        min-width: 480px;
    }
    
    .testimonials__scroll-btn--left {
        left: 12px;
    }
    
    .testimonials__scroll-btn--right {
        right: 12px;
    }
    
    .subscription {
        padding: 80px 24px;
        gap: 40px;
    }
    
    .subscription__title {
        font-size: 36px;
    }
    
    .subscription__container {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }
    
    .subscription__card {
        height: auto;
        min-height: auto;
        width: 100%;
        padding: 24px;
    }
    
    .subscription__price {
        font-size: 24px;
    }
    
    .subscription__card:nth-child(2) .subscription__price,
    .subscription__card:nth-child(3) .subscription__price {
        font-size: 30px;
    }
    
    .subscription__button {
        width: 100%;
    }
    
    .faq {
        padding: 80px 24px;
        gap: 40px;
    }
    
    .faq__title {
        font-size: 36px;
    }
    
    .faq__container {
        width: 100%;
    }
    
    .cta__title {
        font-size: 48px;
    }
    
    .cta__footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .cta__footer-text {
        text-align: center;
    }
    
    .cta__footer-link {
        text-align: center;
    }
}

/* Планшеты (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .header__navigation {
        gap: 32px !important;
    }
    
    .header__nav-link {
        margin: 0 12px !important;
    }
    
    .hero__content-container {
        margin-top: 180px;
    }
    
    .hero__main-title {
        font-size: 48px;
    }
    
    .benefits {
        padding: 80px 24px;
        gap: 40px;
    }
    
    .benefits__title {
        font-size: 40px;
    }
    
    .benefits__cards {
        flex-direction: column;
        gap: 24px;
    }
    
    .benefits__card {
        flex-direction: row;
        align-items: flex-end;
        padding: 24px 24px 0;
        gap: 24px;
        min-height: auto;
    }
    
    .benefits__card-title {
        flex: 1;
        text-align: left;
        height: auto;
        font-size: 24px;
        margin-bottom: 0;
        padding-bottom: 24px;
    }
    
    .benefits__card-image {
        flex: 0 0 auto;
        width: 350px;
        height: 250px;
        align-self: flex-end;
        margin-bottom: 0;
    }
    
    .benefits__card--purple,
    .benefits__card--blue,
    .benefits__card--yellow {
        align-items: flex-end;
    }
    
    .features {
        padding: 80px 24px;
        gap: 40px;
    }
    
    .features__title {
        font-size: 40px;
    }
    
    .library {
        padding: 60px 24px;
        gap: 40px;
    }
    
    .library__title {
        font-size: 40px;
    }
    
    .highlight {
        padding: 60px 24px;
        gap: 40px;
    }
    
    .highlight__title {
        font-size: 40px;
    }
    
    .meaning {
        padding: 60px 24px;
        gap: 40px;
    }
    
    .meaning__title {
        font-size: 40px;
    }
    
    .meaning__footer {
        flex-direction: row;
    }
    
    .meaning__content {
        gap: 0;
    }
    
    .features-grid {
        padding: 80px 24px;
        margin-top: 0;
        gap: 40px;
    }
    
    .features-grid__title {
        font-size: 40px;
    }
    
    .books {
        padding: 80px 24px;
        gap: 40px;
    }
    
    .books__title {
        font-size: 40px;
    }
    
    .books__button {
        font-weight: 500;
    }
    
    .testimonials__title {
        font-size: 40px;
    }
    
    .subscription {
        padding: 80px 24px;
        gap: 40px;
    }
    
    .subscription__title {
        font-size: 40px;
    }
    
    .subscription__container {
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }
    
    .subscription__card {
        height: auto;
        min-height: auto;
        width: 100%;
        padding: 24px;
        gap: 24px;
    }
    
    .subscription__price {
        font-size: 24px;
    }
    
    .subscription__card:nth-child(2) .subscription__price,
    .subscription__card:nth-child(3) .subscription__price {
        font-size: 32px;
    }
    
    .faq {
        padding: 80px 24px;
        gap: 40px;
    }
    
    .faq__title {
        font-size: 40px;
    }
    
    .cta__title {
        font-size: 48px;
    }
    
    .cta__footer {
        flex-direction: row;
        text-align: left;
    }
    
    .cta__footer-text {
        text-align: left;
    }
    
    .cta__footer-link {
        text-align: left;
    }
}

/* Мобильные устройства (81px - 768px) */
@media (min-width: 81px) and (max-width: 768px) {
    .hero__main-title {
        font-size: 40px;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    /* Базовый размер шрифта для мобильных */
    body {
        font-size: 16px;
    }
    
    /* Уменьшаем border-radius с 24px до 16px */
    .hero__image-container,
    .benefits__card,
    .features__card,
    .library__books-list,
    .library__info-card,
    .highlight__image-container,
    .highlight__info-card,
    .meaning__image-container,
    .meaning__footer-card,
    .features-grid__card,
    .books__card,
    .testimonials__card,
    .cta__footer {
        border-radius: 16px;
    }
    
    .header__container {
        gap: 48px;
        padding: 16px;
        padding-bottom: 16px;
        justify-content: space-between;
        width: 100%;
        max-width: 100%;
        transition: padding-bottom 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), min-height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        min-height: 56px;
        overflow: hidden;
        position: relative;
    }
    
    .header__container--expanded {
        padding-bottom: calc(100vh - 80px);
        min-height: 100vh;
    }
    
    .header__logo {
        display: flex !important;
        position: absolute;
        top: 16px;
        left: 16px;
        z-index: 1004;
        flex-shrink: 0;
    }
    
    .header__telegram-link--mobile {
        display: flex !important;
        position: absolute;
        top: 12px;
        right: 56px;
        z-index: 1004;
        flex-shrink: 0;
    }
    
    .header__telegram-link--mobile .header__telegram-icon {
        width: 24px;
        height: 24px;
        filter: brightness(0);
    }
    
    .header__menu-toggle {
        display: flex !important;
        position: absolute;
        top: 12px;
        right: 16px;
        z-index: 1004;
        flex-shrink: 0;
    }
    
    .header__navigation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;


        padding: 0;
        flex-direction: column;
        justify-content: space-between;
        align-items: stretch;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transform: scale(0.95);
        transform-origin: center center;
        transition: opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1001;
        pointer-events: none;
    }
    
    .header__navigation.header__navigation--open {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
        pointer-events: auto;
    }
    
    .header__nav-links-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        flex: 1;
        padding: 24px 16px;
    }
    
    .header__nav-link {
        font-family: 'Onest', sans-serif;
        font-weight: 500;
        font-size: 22px;
        line-height: 1.5em;
        text-align: center;
        color: #17181A;
        text-decoration: none;
        width: 100%;
        padding: 0;
        transition: opacity 0.2s ease;
        opacity: 0;
        transform: translateY(-10px);
        align-self: center;
    }
    
    .header__navigation.header__navigation--open .header__nav-link {
        animation: fadeInUp 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    
    .header__navigation.header__navigation--open .header__nav-link:nth-child(1) {
        animation-delay: 0.05s;
    }
    
    .header__navigation.header__navigation--open .header__nav-link:nth-child(2) {
        animation-delay: 0.08s;
    }
    
    .header__navigation.header__navigation--open .header__nav-link:nth-child(3) {
        animation-delay: 0.11s;
    }
    
    .header__navigation.header__navigation--open .header__nav-link:nth-child(4) {
        animation-delay: 0.14s;
    }
    
    .header__nav-link:hover {
        opacity: 0.7;
    }
    
    .header__button--mobile {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 12px 20px;
        background: #346DFF;
        border: none;
        border-radius: 10px;
        font-family: 'Onest', sans-serif;
        font-weight: 500;
        font-size: 16px;
        line-height: 1.4285714285714286em;
        text-align: center;
        color: #FFFFFF;
        cursor: pointer;
        transition: background-color 0.3s ease, opacity 0.3s ease;
        text-decoration: none;
        width: calc(100% - 32px);
        margin: 0 16px 16px 16px;
        flex-shrink: 0;
        opacity: 0;
        transform: translateY(-10px);
        align-self: stretch;
    }
    
    .header__navigation.header__navigation--open .header__button--mobile {
        animation: fadeInUp 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
        animation-delay: 0.17s;
    }
    
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .header__button--mobile:hover {
        background-color: #2A5AE6;
    }
    
    .header__button--mobile:active {
        background-color: #1E4FD9;
    }
    
    .header__button-container {
        display: none !important;
    }
    
    .header__button {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .hero {
        min-height: 100vh;
        height: 100vh;
        justify-content: center;
        padding: 0;
        gap: 0;
    }
    
    .hero__content-container {
        margin-top: 0;
        gap: 20px;
        padding: 0 16px;
        justify-content: center;
    }
    
    .hero__buttons-container {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero__button--video {
        order: 2;
    }
    
    .hero__button:not(.hero__button--video) {
        order: 1;
    }
    
    .hero__main-title {
        font-size: 48px;
        line-height: 1.2em;
    }
    
    .hero__subtitle {
        font-size: 16px;
    }
    
    .hero__image-container {
        display: none !important;
    }
    
    .philosopher {
        display: none !important;
    }
    
    .benefits {
        padding: 60px 16px;
        gap: 32px;
    }
    
    .benefits__title {
        font-size: 36px;
    }
    
    .benefits__card {
        padding: 20px 20px 0;
        gap: 16px;
    }
    
    .benefits__card-title {
        font-size: 24px;
        height: auto;
        min-height: 80px;
    }
    
    .benefits__card-image {
        height: 200px;
    }
    
    .features {
        padding: 60px 16px;
        gap: 32px;
    }
    
    .features__title {
        font-size: 36px;
    }
    
    .features__container {
        flex-direction: column;
        gap: 16px;
    }
    
    .features__card {
        flex: 1 1 100%;
        height: 220px !important;
        min-height: 220px !important;
        max-height: 220px !important;
        padding: 24px;
        gap: 20px;
        box-sizing: border-box;
    }
    
    .features__card-title {
        font-size: 24px;
        font-weight: 400;
    }
    
    .features__card-description {
        font-size: 16px;
    }
    
    .how-it-works-steps {
        padding: 60px 16px;
        gap: 24px;
    }
    
    .how-it-works-steps__title {
        font-size: 32px;
    }
    
    .how-it-works-steps__container {
        gap: 12px;
    }
    
    .how-it-works-steps__card {
        max-width: 100%;
        padding: 32px 16px;
        border-radius: 16px;
    }
    
    .how-it-works-steps__card:first-child {
        transform: rotate(-4deg);
    }
    
    .how-it-works-steps__card:nth-child(2) {
        transform: rotate(2deg);
    }
    
    .how-it-works-steps__card:nth-child(3) {
        transform: rotate(-2deg);
    }
    
    .how-it-works-steps__card:nth-child(4) {
        transform: rotate(4deg);
    }
    
    @keyframes fadeInUp1 {
        from {
            opacity: 0;
            transform: translateX(-100px) rotate(-4deg);
        }
        to {
            opacity: 1;
            transform: translateX(0) rotate(-4deg);
        }
    }
    
    @keyframes fadeInUp2 {
        from {
            opacity: 0;
            transform: translateX(100px) rotate(2deg);
        }
        to {
            opacity: 1;
            transform: translateX(0) rotate(2deg);
        }
    }
    
    @keyframes fadeInUp3 {
        from {
            opacity: 0;
            transform: translateY(50px) rotate(-2deg);
        }
        to {
            opacity: 1;
            transform: translateY(0) rotate(-2deg);
        }
    }
    
    @keyframes fadeInUp4 {
        from {
            opacity: 0;
            transform: translateX(-100px) rotate(4deg);
        }
        to {
            opacity: 1;
            transform: translateX(0) rotate(4deg);
        }
    }
    
    .how-it-works-steps__text {
        font-size: 20px;
        max-width: 100%;
    }
    
    .how-it-works-steps__number {
        font-size: 80px;
        display: none;
    }
    
    .how-it-works-steps__bar {
        width: 16px;
        height: 120px;
    }
    
    .how-it-works-steps__card--blue .how-it-works-steps__bar {
        height: 100%;
        top: 0;
        width: 16px;
    }
    
    .how-it-works-steps__card--purple .how-it-works-steps__bar {
        height: 120px;
        top: 0;
    }
    
    .how-it-works-steps__card--yellow .how-it-works-steps__bar {
        height: 100%;
        top: 0;
    }
    
    .how-it-works-steps__card--pink .how-it-works-steps__bar {
        height: 120px;
        top: 0;
    }
    
    .library {
        padding: 60px 16px;
        gap: 32px;
    }
    
    .library__title {
        font-size: 36px;
    }
    
    .library__books-list {
        padding: 32px 16px 0;
        min-height: 240px;
    }
    
    .library__info-section {
        gap: 16px;
    }
    
    .library__info-card {
        padding: 24px;
    }
    
    .library__info-title {
        font-size: 18px;
    }
    
    .library__info-description {
        font-size: 16px;
    }
    
    .highlight {
        padding: 60px 16px;
        gap: 32px;
    }
    
    .highlight__title {
        font-size: 36px;
    }
    
    .highlight__main-content {
        gap: 16px;
    }
    
    .highlight__image-container {
        padding: 32px 16px 0;
        min-height: 240px;
    }
    
    .highlight__info-cards {
        gap: 16px;
    }
    
    .highlight__info-card {
        padding: 24px;
    }
    
    .highlight__info-title {
        font-size: 18px;
    }
    
    .highlight__info-description {
        font-size: 16px;
    }
    
    .meaning {
        padding: 60px 16px;
        gap: 32px;
    }
    
    .meaning__title {
        font-size: 36px;
    }
    
    .meaning__image-container {
        padding: 32px 16px 0;
        min-height: 240px;
    }
    
    .meaning__footer {
        gap: 16px;
    }
    
    .meaning__footer-card {
        padding: 24px;
    }
    
    .meaning__footer-title {
        font-size: 18px;
    }
    
    .meaning__footer-text {
        font-size: 16px;
    }
    
    .philosopher {
        margin-top: 80px;
    }
    
    .philosopher__container {
        min-height: 1000px;
    }
    
    .philosopher__text-wrapper {
        padding: 80px 16px;
    }
    
    .philosopher__text {
        font-size: 28px;
        line-height: 1.4em;
    }
    
    .features-grid {
        padding: 60px 16px;
        margin-top: 0;
        gap: 32px;
    }
    
    .features-grid__title {
        font-size: 36px;
    }
    
    .features-grid__container {
        flex-direction: column;
        gap: 16px;
    }
    
    .features-grid__card {
        flex: 1 1 100%;
        padding: 40px 20px;
    }
    
    .features-grid__text {
        font-size: 18px;
    }
    
    .books {
        padding: 60px 16px;
        gap: 32px;
    }
    
    .books__wrapper {
        padding: 0;
    }
    
    .books__scroll-btn--left {
        left: 8px;
    }
    
    .books__scroll-btn--right {
        right: 8px;
    }
    
    .books__title {
        font-size: 36px;
    }
    
    .books__container {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 16px;
        height: 400px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
        width: calc(100% + 32px);
        padding: 0 16px;
        margin: 0 -16px;
        box-sizing: border-box;
        justify-content: flex-start !important;
    }
    
    .books__container::-webkit-scrollbar {
        display: none;
    }
    
    .books__card {
        flex-shrink: 0;
        width: 320px !important;
        height: 400px;
        min-height: 400px;
        transition: none !important;
        transform: none !important;
        cursor: default !important;
        pointer-events: none;
    }
    
    .books__card:hover {
        transform: none !important;
        transition: none !important;
    }
    
    .books__card:not(.books__card--featured) .books__card-name {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        transform: none !important;
        text-align: center !important;
        opacity: 1 !important;
        animation: none !important;
        color: #17181A !important;
    }
    
    .books__card--open .books__card-name,
    .books__card:not(.books__card--open) .books__card-name {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        transform: none !important;
        text-align: center !important;
        opacity: 1 !important;
        animation: none !important;
        color: #17181A !important;
    }
    
    .books__card--open .books__card-description,
    .books__card:not(.books__card--open) .books__card-description {
        display: block !important;
        opacity: 1 !important;
        animation: none !important;
        text-align: center !important;
        color: #17181A !important;
    }
    
    .books__card::before {
        opacity: 0.4 !important;
        transform: translate(-50%, -50%) scale(1) !important;
        transition: none !important;
    }
    
    .books__card-content {
        align-items: center !important;
        justify-content: center !important;
    }
    
    .books__card-info {
        align-items: center !important;
        text-align: center !important;
    }
    
    .books__container {
        height: 400px;
    }
    
    .books__card-name {
        font-size: 20px;
    }
    
    .testimonials {
        padding: 60px 16px;
        gap: 32px;
    }
    
    .testimonials__title {
        font-size: 36px;
        padding: 0;
    }
    
    .testimonials__container {
        padding: 0;
    }
    
    .testimonials__card {
        width: 360px;
        min-width: 360px;
        height: 420px;
        min-height: 420px;
    }
    
    .testimonials__avatar {
        width: 48px;
        height: 48px;
    }
    
    .testimonials__text {
        font-size: 16px;
    }
    
    .testimonials__name {
        font-size: 18px;
    }
    
    .testimonials__scroll-btn {
        width: 40px;
        height: 40px;
    }
    
    .testimonials__scroll-btn--left {
        left: 8px;
    }
    
    .testimonials__scroll-btn--right {
        right: 8px;
    }
    
    .subscription {
        padding: 60px 16px;
        gap: 32px;
    }
    
    .subscription__title {
        font-size: 36px;
    }
    
    .subscription__container {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }
    
    .subscription__card {
        min-height: auto;
        width: 100%;
        padding: 20px;
        gap: 24px;
    }
    
    .subscription__name {
        font-size: 20px;
    }
    
    .subscription__price {
        font-size: 28px;
    }
    
    .subscription__card:nth-child(2) .subscription__price,
    .subscription__card:nth-child(3) .subscription__price {
        font-size: 36px;
    }
    
    .subscription__price-frequency {
        font-size: 14px;
    }
    
    .subscription__feature-text {
        font-size: 16px;
    }
    
    .subscription__button {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
    }
    
    .faq {
        padding: 60px 16px;
        gap: 32px;
    }
    
    .faq__title {
        font-size: 36px;
    }
    
    .faq__question {
        font-size: 20px;
    }
    
    .faq__answer {
        font-size: 16px;
    }
    
    .faq__content {
        padding: 20px;
        gap: 16px;
    }
    
    .cta {
        height: 100vh;
        min-height: 100vh;
    }
    
    .cta__content {
        padding: 60px 16px 100px;
        height: 100vh;
        min-height: 100vh;
    }
    
    .cta__icon {
        width: 72px;
        height: 72px;
    }
    
    .cta__title {
        font-size: 40px;
    }
    
    .cta__footer {
        bottom: 16px;
        left: 16px;
        right: 16px;
        transform: none;
        width: auto;
        padding: 20px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }
    
    .cta__footer-text {
        font-size: 16px;
        text-align: left;
    }
    
    .cta__footer-link {
        font-size: 14px;
        text-align: left;
    }
    
    .cta__button {
        font-size: 16px;
    }
    
    .books__button {
        font-size: 16px;
        font-weight: 500;
    }
    
    .video-section {
        padding: 60px 16px;
        border-radius: 0;
        gap: 32px;
    }
    
    .video-section__title {
        font-size: 32px;
    }
    
    .video-section__image-wrapper {
        border-radius: 16px;
    }
    
    .video-section__play-button {
        width: 96px;
        height: 96px;
    }
    
    .video-section__play-icon {
        width: 32px;
        height: 32px;
    }
    
    .video-modal__content {
        width: 95%;
    }
    
    .video-modal__close {
        top: -40px;
        width: 36px;
        height: 36px;
    }
    
    .video-modal__close img {
        width: 20px;
        height: 20px;
    }
}

/* Планшеты и средние мобильные устройства (480px - 768px) */
@media (min-width: 480px) and (max-width: 768px) {
    .hero__main-title {
        font-size: 40px;
    }
    
    .benefits__card-title {
        font-size: 20px;
    }
    
    .features__card-title {
        font-size: 20px;
    }
}

/* Маленькие мобильные устройства (до 480px) */
@media (max-width: 480px) {
    /* Базовый размер шрифта для маленьких мобильных */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    body {
        font-size: 16px;
    }
    
    .header__container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .header__navigation {
        max-width: 100%;
        padding: 70px 20px 24px;
    }
    
    .header__nav-link {
        font-size: 18px;
    }
    
    .header__button-container {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
    
    .hero__main-title {
        font-size: 40px;
    }
    
    .hero__subtitle {
        font-size: 16px;
    }
    
    .hero__image-container {
        min-height: 250px;
        margin: 0 16px;
    }
    
    .benefits__title,
    .features__title,
    .library__title,
    .highlight__title,
    .meaning__title,
    .features-grid__title,
    .books__title,
    .testimonials__title,
    .subscription__title,
    .faq__title {
        font-size: 32px;
    }
    
    .benefits__card-title {
        font-size: 20px;
        font-weight: 400;
    }
    
    .features__card-title {
        font-size: 20px;
        font-weight: 400;
    }
    
    .library__info-title {
        font-size: 18px;
    }
    
    .highlight__info-title,
    .meaning__footer-title {
        font-size: 18px;
    }
    
    .library__info-description,
    .highlight__info-description,
    .meaning__footer-text,
    .features__card-description,
    .testimonials__text,
    .faq__answer {
        font-size: 16px;
    }
    
    .philosopher__text {
        font-size: 24px;
    }
    
    .cta__title {
        font-size: 40px;
    }
    
    .faq__question {
        font-size: 20px;
    }
    
    .testimonials__card {
        width: 340px;
        min-width: 340px;
        height: 420px;
        min-height: 420px;
    }
    
    .testimonials__avatar {
        width: 48px;
        height: 48px;
    }
    
    .testimonials__name {
        font-size: 18px;
    }
    
    .books__card-name {
        font-size: 20px;
    }
    
    .books__card-description {
        font-size: 16px;
    }
    
    .subscription__name {
        font-size: 18px;
    }
    
    .subscription__container {
        gap: 16px;
    }
    
    .subscription__card {
        padding: 20px;
    }
    
    .subscription__price {
        font-size: 28px;
    }
    
    .subscription__card:nth-child(2) .subscription__price,
    .subscription__card:nth-child(3) .subscription__price {
        font-size: 36px;
    }
    
    .subscription__price-frequency {
        font-size: 14px;
    }
    
    .subscription__feature-text {
        font-size: 15px;
    }
    
    .subscription__button {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .cta__footer-text {
        font-size: 16px;
    }
}

/* Исправление для фоновых изображений */
@media (max-width: 768px) {
    .hero {
        background-size: cover;
        background-position: center;
    }
    
    .features-grid {
        background-size: cover;
        background-position: center;
    }
    
    .subscription {
        background-size: cover;
        background-position: center;
    }
    
    .cta__content {
        background-size: cover;
        background-position: center;
    }
}



