/* Устанавливаем box-sizing и убираем боковую прокрутку для всей страницы */
* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto !important;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

main {
    min-height: 200vh;
    display: block;
    overflow: visible;
}

/* Геройский блок */
.hero {
    background: #FFFFFF;
    padding: 25px 20px 40px 20px; /* Сверху оставляем меньше, снизу 40px как у остальных */
    color: #1C2526;
    margin-top: 100px; /* Отступ сверху для шапки */
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

.hero-text {
    flex: 1;
    text-align: left !important;
}

.hero-text h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6em;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
    text-align: left;
}

.partner-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    width: 470px; /* Увеличиваем ширину, чтобы учесть эффект scale(1.02) */
    margin-left: -1px; /* Смещение влево на 1px, как в исходном */
}

.partner-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Текст будет внизу */
    align-items: center;
    width: 460px; /* Размер карточки соответствует размеру исходного изображения */
    height: 180px; /* Высота карточки соответствует размеру исходного изображения */
    background: url('uploads/TC.png') no-repeat center center; /* Фоновое изображение */
    background-size: cover; /* Изображение заполняет карточку */
    border-radius: 10px;
    box-shadow: 0 9px 18px rgba(0, 0, 0, 0.4);
    padding: 10px; /* Уменьшенный padding, чтобы текст был ближе к нижнему краю */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Добавляем переход для тени */
    position: relative; /* Для позиционирования текста */
    text-decoration: none; /* Убираем подчеркивание ссылки */
}

.partner-card:hover {
    transform: scale(1.02); /* Легкое увеличение */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5); /* Усиливаем тень при наведении */
}

.partner-text-hero {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 1.5em; /* Уменьшен размер шрифта, чтобы текст помещался */
    font-weight: 500;
    color: #000; /* Черный цвет текста */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Тень вокруг текста */
    text-align: center;
    margin: 0; /* Убираем отступы, чтобы текст был ближе к нижнему краю */
    z-index: 1; /* Убедимся, что текст поверх изображения */
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

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

/* Адаптивность для геройского блока */
@media (max-width: 768px) {
    .hero {
        padding: 25px 15px 40px 15px; /* Сверху 25px, снизу 40px */
        margin-top: 70px; /* Учитываем шапку */
        margin-bottom: 0; /* Убираем возможный дополнительный margin */
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
        justify-content: center;
        align-items: center;
        min-height: auto; /* Убираем min-height, чтобы не добавлять лишнее пространство */
        text-align: left !important;
    }

    .hero-text {
        order: 2;
        margin-top: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left !important;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 2em;
    }

    .hero-text p {
        font-size: 1em;
    }

    .hero-image {
        order: 1;
        text-align: center;
        margin-top: 0;
        width: 100%;
        height: 70%;
        overflow: hidden;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
    }

    .partner-block {
        margin: 0 auto;
        width: 290px; /* Учитываем scale(1.02) */
    }

    .partner-card {
        width: 280px;
        height: 130px;
        padding: 15px;
    }

    .partner-text-hero {
        font-size: 1.2em; /* Уменьшенный шрифт для планшетов */
        margin: 0;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Тень вокруг текста */
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 25px 15px 40px 15px;
        margin-top: 70px;
        margin-bottom: 0;
    }

    .hero-content {
        padding: 0 15px;
        justify-content: center;
        align-items: center;
        min-height: auto;
        text-align: left !important;
    }

    .hero-text h1 {
        font-size: 1.8em;
    }

    .hero-text p {
        font-size: 0.9em;
    }

    .hero-image {
        margin-top: 0;
        height: 70%;
        overflow: hidden;
    }

    .hero-image img {
        object-fit: cover;
        object-position: top;
    }

    .partner-block {
        margin: 0 auto;
        width: 290px; /* Учитываем scale(1.02) */
    }

    .partner-card {
        width: 280px;
        height: 130px;
        padding: 15px;
    }

    .partner-text-hero {
        font-size: 1em; /* Еще меньший шрифт для мобильных */
        margin: 0;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Тень вокруг текста */
    }
}

/* Криптовалютные кредиты */
.crypto-loan-info {
    background: #FFFFFF;
    padding: 100px 20px;
    text-align: left;
}

.crypto-loan-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

.crypto-loan-content h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.7em;
    font-weight: 800;
    color: #1C2526;
    margin-bottom: 10px;
    text-align: left;
}

.crypto-loan-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6em;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
    text-align: left;
}

.learn-more-button {
    background-color: #F5F5F5;
    color: #000000;
    padding: 8px 22px;
    border: none;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 1.2em;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s ease;
}

.learn-more-button:hover {
    background-color: #D3D3D3;
    transform: translateY(-2px);
}

.learn-more-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .crypto-loan-info {
        padding: 40px 15px;
        margin-top: 0; /* Убираем возможный дополнительный margin */
    }

    .crypto-loan-content {
        text-align: left !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
    }

    .crypto-loan-content h2 {
        font-size: 1.7em;
        text-align: left !important;
    }

    .crypto-loan-content p {
        font-size: 1em;
        text-align: left !important;
    }

    .learn-more-button {
        font-size: 1.1em;
        padding: 12px 20px;
        display: block;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .crypto-loan-content h2 {
        font-size: 1.7em;
        text-align: left !important;
    }

    .crypto-loan-content p {
        font-size: 0.9em;
        text-align: left !important;
    }

    .learn-more-button {
        font-size: 1em;
        padding: 10px 16px;
        display: block;
        margin: 0 auto;
    }
}

/* Новый блок "Разблокируйте бесконечные возможности" */
.unlock-possibilities {
    background: #FFFFFF;
    padding: 100px 20px;
    text-align: left;
}

.unlock-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.unlock-content h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.7em;
    font-weight: 800;
    color: #1C2526;
    margin-bottom: 10px;
    text-align: left;
}

.unlock-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6em;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
    text-align: left;
}

.possibilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.possibility-card {
    background: #F5F5F5;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease;
}

.possibility-card:hover {
    transform: translateY(-5px);
}

.possibility-image {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
}

.possibility-card h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4em;
    font-weight: 600;
    color: #1C2526;
    margin-bottom: 10px;
}

.possibility-card p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95em;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
}

/* Адаптивность для блока */
@media (max-width: 768px) {
    .unlock-possibilities {
        padding: 40px 15px;
    }

    .unlock-content {
        padding: 0;
    }

    .unlock-content h2 {
        font-size: 1.7em;
        text-align: left;
    }

    .unlock-subtitle {
        font-size: 1em;
        text-align: left;
    }

    .possibilities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .possibility-card {
        padding: 20px;
        text-align: left;
        max-width: none;
    }

    .possibility-image {
        max-width: 120px;
    }

    .possibility-card h3 {
        font-size: 1.1em;
    }

    .possibility-card p {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .unlock-content h2 {
        font-size: 1.7em;
    }

    .unlock-subtitle {
        font-size: 0.9em;
    }

    .possibility-card {
        padding: 15px;
    }

    .possibility-image {
        max-width: 100px;
    }

    .possibility-card h3 {
        font-size: 1em;
    }

    .possibility-card p {
        font-size: 0.85em;
    }
}
/* Пошаговая инструкция */
.loan-steps {
    padding: 40px 20px;
    background-color: #F5F5F5;
    text-align: center;
}

.loan-steps h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.7em;
    font-weight: 800;
    color: #1C2526;
    margin-bottom: 10px;
    text-align: center;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* Для абсолютного позиционирования step-icons */
    background: #FFFFFF;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    min-height: 580px;
    min-width: 350px;
    background-repeat: no-repeat;
    background-position: center calc(100% + 180px);
    background-size: auto 90%;
    overflow: visible;
}

.step:hover {
    transform: translateY(-5px);
}

/* Фоновые изображения для каждого шага */
.step-1 {
    background-image: url('uploads/6.png');
}

.step-2 {
    background-image: url('uploads/7.png');
}

.step-3 {
    background-image: url('uploads/8.png');
}

.step-4 {
    background-image: url('uploads/9.png');
}

.step-content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 150px; /* Фиксированная минимальная высота для текста */
}

.step-content h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2em;
    color: #1C2526;
    margin-bottom: 10px;
    font-weight: 500;
}

.step-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95em;
    color: #666;
    margin: 0 0 10px;
    font-weight: 400;
}

.step-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-direction: row;
    position: absolute; /* Абсолютное позиционирование внизу карточки */
    bottom: 420px; /* Отступ от нижнего края */
    left: 0;
    right: 0;
}

/* Стили для контейнера кнопок App Store и Play Market */
.partner-links-step {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* Стили для самих изображений кнопок */
.partner-link-img {
    width: 120px;
    height: 42px;
    transition: opacity 0.3s ease;
}

.partner-link-img:hover {
    opacity: 0.8;
}

/* Стили для кнопки "Оформить займ" */
.apply-step-button {
    background-color: #000000;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.apply-step-button:hover {
    background-color: #000000;
    transform: translateY(-2px);
}

.apply-step-button:active {
    transform: translateY(0);
}

/* Стили для кнопки "Заморозить залог" */
.freeze-collateral-button {
    background-color: #000000;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.freeze-collateral-button:hover {
    background-color: #000000;
    transform: translateY(-2px);
}

.freeze-collateral-button:active {
    transform: translateY(0);
}

/* Убираем отрицательный margin-bottom во втором шаге */
.step:nth-child(2) .step-icons {
    margin-bottom: 0;
}

/* Стили для иконок в шагах */
.step-content .trust-wallet-logo {
    width: 72px;
    height: 72px;
    transition: opacity 0.3s ease;
}

.step-content .trust-wallet-logo:hover {
    opacity: 0.8;
}

.step-content .checkmark-icon {
    display: block;
    width: 72px;
    height: 72px;
}

/* Адаптивность для пошаговой инструкции */
@media (max-width: 1500px) and (min-width: 1000px) {
    .steps-container {
        justify-content: center;
        gap: 10px;
    }

    .step {
        flex: none;
        max-width: 350px;
        min-width: 300px;
        min-height: 500px;
        background-position: center calc(100% + 150px);
        background-size: auto 80%;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .partner-link-img {
        width: 110px;
        height: 38px;
    }

    .step-content {
        min-height: 120px; /* Уменьшаем высоту для меньших экранов */
    }

    .step-icons {
        bottom: 340px; /* Корректируем отступ снизу */
    }
}

@media (max-width: 768px) {
    .loan-steps {
        padding: 40px 15px;
    }

    .steps-container {
        flex-direction: column;
        gap: 40px;
        justify-content: center;
        align-items: center;
    }

    .step {
        flex: none;
        max-width: 600px;
        margin: 0 auto;
        min-height: 550px;
        min-width: 0;
        background-size: auto 100%;
        background-position: center calc(100% + 186px);
    }

    .step:not(:last-child)::after {
        top: auto;
        bottom: -20px;
        left: 50%;
        right: auto;
        width: 2px;
        height: 20px;
        transform: translateX(-50%);
    }

    .step-icons {
        flex-direction: row;
        gap: 10px;
        bottom: 15px;
    }

    .apply-step-button,
    .freeze-collateral-button {
        padding: 8px 16px;
        font-size: 0.95em;
    }

    .partner-link-img {
        width: 100px;
        height: 35px;
    }

    .step-content {
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    .loan-steps h2 {
        font-size: 1.7em;
    }

    .step {
        padding: 15px;
        max-width: 500px;
        min-height: 500px;
        background-size: auto 100%;
        background-position: center calc(100% + 184px);
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }

    .step-content h3 {
        font-size: 1em;
    }

    .step-content p {
        font-size: 0.85em;
    }

    .step-content .trust-wallet-logo,
    .step-content .checkmark-icon {
        width: 64px;
        height: 64px;
    }

    .apply-step-button,
    .freeze-collateral-button {
        padding: 6px 12px;
        font-size: 0.9em;
    }

    .partner-link-img {
        width: 90px;
        height: 32px;
    }

    .step-content {
        min-height: 80px;
    }

    .step-icons {
        bottom: 350px;
    }
}
/* Сравнительный блок */
.comparison {
    padding: 40px 20px;
    background-color: #FFFFFF;
    text-align: center;
}

.comparison h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.7em;
    font-weight: 800;
    color: #1C2526;
    margin-bottom: 10px;
    text-align: center;
}

.comparison-table {
    max-width: 1160px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.comparison-header {
    display: flex;
    background-color: #F5F5F5;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
}

.comparison-header .header-item {
    flex: 1;
    padding: 10px;
    border-bottom: 1px solid #E5E5E5;
}

.comparison-header .header-item:first-child {
    flex: 2;
    text-align: left;
    padding-left: 20px;
}

.comparison-row {
    display: flex;
    border-bottom: 1px solid #E5E5E5;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1em;
    color: #121212;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row .row-item {
    flex: 1;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-row .row-item:first-child {
    flex: 2;
    text-align: left;
    padding-left: 20px;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
}

.row-item-title {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
    font-weight: 700;
    color: #1C2526;
    margin-bottom: 5px;
}

.row-item-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9em;
    font-weight: 400;
    color: #666;
    line-height: 1.3;
}

.indicator {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 15px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.0em;
    font-weight: 300;
}

.indicator.yes {
    background-color: #6CFF27;
    color: #000000;
}

.indicator.no {
    color: #000000;
}

.comparison-footer {
    margin-top: 30px;
    text-align: center;
}

.wallet-button {
    background-color: #000000;
    color: #FFFFFF;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 1.2em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s ease;
    margin-bottom: 20px;
}

.wallet-button:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.wallet-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.app-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.apple-icon, .playmarket-icon {
    width: 120px;
    height: 40px;
    transition: opacity 0.3s ease;
}

.apple-icon:hover, .playmarket-icon:hover {
    opacity: 0.8;
}

/* Адаптивность для сравнительного блока */
@media (max-width: 768px) {
    .comparison {
        padding: 40px 15px;
    }

    .comparison h2 {
        font-size: 1.7em;
        text-align: left;
    }

    .comparison-table {
        box-shadow: none;
        margin: 0 auto;
    }

    .comparison-header {
        display: none;
    }

    .comparison-row {
        flex-direction: column;
        border: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        margin-bottom: 20px;
        padding: 15px;
        align-items: flex-start;
        text-align: left;
    }

    .comparison-row .row-item {
        padding: 10px;
        padding-left: 0;
        justify-content: flex-start;
        text-align: left;
        position: relative;
        width: 100%;
    }

    .comparison-row .row-item:first-child {
        padding-bottom: 10px;
        padding-left: 0;
        border-bottom: 1px solid #E5E5E5;
        text-align: left;
        justify-content: flex-start;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
    }

    .comparison-row .row-item:not(:first-child) {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .comparison-row .row-item:not(:first-child)::before {
        content: attr(data-label);
        font-family: 'Roboto', sans-serif;
        font-size: 0.9em;
        font-weight: 600;
        color: #666;
        text-transform: uppercase;
        margin-right: 10px;
        flex-grow: 0;
        margin-left: 0;
    }

    .comparison-row .row-item:nth-child(2)::before {
        content: "Криптовалютные кредиты";
    }

    .comparison-row .row-item:nth-child(3)::before {
        content: "Обычные кредиты";
    }

    .row-item-title {
        font-size: 0.95em;
        text-align: left !important;
        width: 100%;
    }

    .row-item-description {
        font-size: 0.85em;
        text-align: left !important;
        width: 100%;
    }

    .wallet-button {
        font-size: 1.1em;
        padding: 12px 20px;
    }

    .apple-icon, .playmarket-icon {
        width: 100px;
        height: 34px;
    }

    .comparison-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .app-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .comparison h2 {
        font-size: 1.7em;
        text-align: left;
    }

    .comparison-row {
        padding: 10px;
        margin-bottom: 15px;
    }

    .comparison-row .row-item {
        padding: 8px;
        padding-left: 0;
    }

    .comparison-row .row-item:not(:first-child)::before {
        font-size: 0.8em;
    }

    .row-item-title {
        font-size: 1.1em;
    }

    .row-item-description {
        font-size: 0.9em;
    }

    .indicator {
        font-size: 0.8em;
        padding: 4px 8px;
    }

    .wallet-button {
        font-size: 1em;
        padding: 10px 16px;
    }

    .apple-icon, .playmarket-icon {
        width: 90px;
        height: 30px;
    }
}

/* Новый калькулятор */
.simple-calculator {
    padding: 40px 20px;
    background-color: #FFFFFF;
    text-align: center;
}

.simple-calculator h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.7em;
    color: #121212;
    margin-bottom: 10px;
    font-weight: 700;
    text-align: left; /* Выравнивание по левой стороне */
    max-width: 1200px; /* Ограничение ширины, чтобы не выступал */
    margin-left: auto;
    margin-right: auto;
}

.calculator-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6em;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
    text-align: left; /* Выравнивание по левой стороне */
    max-width: 1200px; /* Ограничение ширины, чтобы не выступал */
    margin-left: auto;
    margin-right: auto;
}

.calculator-subtitle2 {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.3em;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
    margin-top: 10px;
    text-align: center; /* Выравнивание по левой стороне */
    max-width: 1200px; /* Ограничение ширины, чтобы не выступал */
    margin-left: auto;
    margin-right: auto;
}

.calc-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.calc-sliders-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.calc-input {
    flex: 0 0 48%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.calc-input label {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3em;
    color: #000;
    margin-bottom: 15px;
    display: block;
    text-align: center;
    font-weight: 500;
}

.calc-input input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    background: #E5E5E5;
    border-radius: 5px;
    outline: none;
    position: relative;
    display: block;
    margin: 0 auto;
    background: linear-gradient(to right, #000000 0%, #E5E5E5 0%); /* Начальный градиент */
}

.calc-input input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #000000;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
    position: relative;
}

.calc-input input[type="range"]::-webkit-slider-thumb:hover {
    background-color: #00FF00;
    border: 2px solid #000000;
}

.calc-input input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #000000;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
    position: relative;
}

.calc-input input[type="range"]::-moz-range-thumb:hover {
    background-color: #FF6200;
}

/* Уточняем стили для бегунков с высокими приоритетами */
#calc-amount::-webkit-slider-thumb {
    transform: translateY(-1px) !important;
}

#calc-term {
    --thumb-offset: -6px; /* Начальное смещение шарика */
}

#calc-term::-webkit-slider-thumb {
    transform: translateY(var(--thumb-offset)) !important;
}

#calc-amount::-moz-range-thumb {
    transform: translateY(-1px) !important;
}

#calc-term::-moz-range-thumb {
    transform: translateY(var(--thumb-offset)) !important;
}

.calc-input-value {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.calc-input-value span {
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    color: #121212;
    font-weight: 400;
}

.currency-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9em;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 400;
}

.currency-label::after {
    content: '▼';
    font-size: 0.8em;
}

.calc-values-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.4em;
    font-weight: 700;
    color: #121212;
}

.calc-results-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
    position: relative;
}

.calc-result-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.calc-result-item:not(:first-child)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    border-left: 2px solid #E5E5E5;
}

.calc-result-item .result-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8em;
    color: #666;
    display: block;
    margin: 5px;
    font-weight: 500;
}

.calc-result-item span {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2em;
    font-weight: 400;
    color: #121212;
}

.calc-total-row {
    margin-top: 20px;
    text-align: center;
}

.calc-total-row p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1em;
    color: #121212;
    font-weight: 400;
}

.calc-total-row span {
    font-size: 1.3em;
    font-weight: 700;
}

.calc-apply-button {
    background-color: #000000;
    color: #FFFFFF;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 1.2em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s ease;
    width: 100%;
    margin-top: 20px;
}

.calc-apply-button:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.calc-apply-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Стили для datalist (опционально) */
input[type="range"][list]::-webkit-slider-thumb {
    /* Дополнительные стили для меток, если требуется */
}

input[type="range"][list]::-moz-range-thumb {
    /* Дополнительные стили для меток, если требуется */
}

/* Адаптивность для калькулятора */
@media (max-width: 768px) {
    .simple-calculator {
        padding: 40px 15px;
    }

    .simple-calculator h2 {
        font-size: 1.7em;
        text-align: left;
        max-width: 100%;
        margin-left: 15px;
        margin-right: 15px;
    }

    .calculator-subtitle {
        font-size: 0.95em;
        text-align: left;
        max-width: 100%;
        margin-left: 15px;
        margin-right: 15px;
    }

    .calc-container {
        max-width: 100%;
        padding: 20px 0;
        margin: 0;
        border-radius: 0;
    }

    .calc-sliders-row {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 25px;
        justify-content: center;
        align-items: center;
    }

    .calc-input {
        flex: 0 0 100%;
        width: 100%;
    }

    .calc-input label {
        font-size: 1.1em;
        margin-bottom: 8px;
    }

    .calc-input input[type="range"] {
        height: 12px;
        width: 400px;
        max-width: 100%;
    }

    .calc-input input[type="range"]::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
        transform: translateY(-8px) !important;
    }

    .calc-input input[type="range"]::-moz-range-thumb {
        width: 28px;
        height: 28px;
        transform: translateY(-8px) !important;
    }

    /* Корректировка для #calc-amount */
    #calc-amount::-webkit-slider-thumb {
        transform: translateY(-8px) !important; /* Возвращаем прежнюю позицию */
    }

    #calc-amount::-moz-range-thumb {
        transform: translateY(-8px) !important; /* Возвращаем прежнюю позицию */
    }

    /* Корректировка для #calc-term */
    #calc-term {
        --thumb-offset: -4px; /* Начальное смещение для мобильных */
    }

    #calc-term::-webkit-slider-thumb {
        transform: translateY(var(--thumb-offset)) !important;
    }

    #calc-term::-moz-range-thumb {
        transform: translateY(var(--thumb-offset)) !important;
    }

    .calc-input-value {
        margin-top: 10px;
    }

    .calc-input-value span {
        font-size: 1.2em;
    }

    .calc-values-row {
        flex-direction: column;
        gap: 15px;
        font-size: 1.5em;
        justify-content: center;
        align-items: center;
    }

    .calc-results-row {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
        padding: 0 10px;
        justify-content: center;
        align-items: center;
    }

    .calc-result-item {
        min-width: 100%;
        padding: 10px 0;
    }

    .calc-result-item:not(:first-child)::before {
        display: none;
    }

    .calc-result-item .result-label {
        font-size: 1em;
        margin-bottom: 8px;
    }

    .calc-result-item span {
        font-size: 1.3em;
    }

    .calc-total-row {
        margin-top: 30px;
        padding: 0 10px;
    }

    .calc-total-row p {
        font-size: 1.1em;
    }

    .calc-total-row span {
        font-size: 1.3em;
        color: #000000;
    }

    .calc-apply-button {
        font-size: 1.1em;
        padding: 12px 20px;
        margin-top: 30px;
        margin-left: 10px;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .simple-calculator h2 {
        font-size: 1.7em;
        text-align: left;
        margin-left: 10px;
        margin-right: 10px;
    }

    .calculator-subtitle {
        font-size: 1.0em;
        text-align: left;
        margin-left: 10px;
        margin-right: 10px;
    }

    .calc-container {
        max-width: 100%;
        padding: 15px 0;
        margin: 0;
        border-radius: 0;
    }

    .calc-sliders-row {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
        justify-content: center;
        align-items: center;
    }

    .calc-input {
        flex: 0 0 100%;
        width: 100%;
    }

    .calc-input label {
        font-size: 1em;
        margin-bottom: 6px;
    }

    .calc-input input[type="range"] {
        height: 10px;
        width: 360px;
        max-width: 100%;
    }

    .calc-input input[type="range"]::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
        transform: translateY(-7px) !important;
    }

    .calc-input input[type="range"]::-moz-range-thumb {
        width: 24px;
        height: 24px;
        transform: translateY(-7px) !important;
    }

    /* Корректировка для #calc-amount */
    #calc-amount::-webkit-slider-thumb {
        transform: translateY(0px) !important; /* Возвращаем прежнюю позицию */
    }

    #calc-amount::-moz-range-thumb {
        transform: translateY(0px) !important; /* Возвращаем прежнюю позицию */
    }

    /* Корректировка для #calc-term */
    #calc-term {
        --thumb-offset: 0px; /* Начальное смещение для мобильных */
    }

    #calc-term::-webkit-slider-thumb {
        transform: translateY(var(--thumb-offset)) !important;
    }

    #calc-term::-moz-range-thumb {
        transform: translateY(var(--thumb-offset)) !important;
    }

    .calc-input-value {
        margin-top: 8px;
    }

    .calc-input-value span {
        font-size: 1.1em;
    }

    .calc-values-row {
        flex-direction: column;
        gap: 12px;
        font-size: 1.2em;
        justify-content: center;
        align-items: center;
    }

    .calc-results-row {
        flex-direction: column;
        gap: 12px;
        font-size: 1.2em;
        margin-top: 25px;
        padding: 0 5px;
        justify-content: center;
        align-items: center;
    }

    .calc-result-item {
        min-width: 100%;
        padding: 8px 0;
    }

    .calc-result-item:not(:first-child)::before {
        display: none;
    }

    .calc-result-item .result-label {
        font-size: 0.95em;
        margin-bottom: 6px;
    }

    .calc-result-item span {
        font-size: 1.2em;
    }

    .calc-total-row {
        margin-top: 25px;
        padding: 0 5px;
    }

    .calc-total-row p {
        font-size: 1em;
    }

    .calc-total-row span {
        font-size: 1.2em;
    }

    .calc-apply-button {
        font-size: 1em;
        padding: 10px 16px;
        margin-top: 25px;
        margin-left: 5px;
        margin-right: 5px;
    }
}

/* Новый блок с преимуществами */
.advantages {
    background: #F5F5F5;
    padding: 100px 20px;
    text-align: left;
}

.advantages-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.advantages-content h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.7em;
    font-weight: 800;
    color: #1C2526;
    margin-bottom: 10px;
    text-align: left;
}

.advantages-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6em;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
    text-align: left;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.advantage-card {
    background: #F5F5F5;
    border-radius: 10px;
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 350px; /* Фиксируем минимальную высоту для равных карточек */
    justify-content: space-between; /* Равномерно распределяем содержимое */
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-image {
    width: 100%;
    max-width: 250px;
    height: 250px;
    margin-bottom: 15px;
}

.advantage-card h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4em;
    font-weight: 600;
    color: #1C2526;
    margin-bottom: 10px;
    max-height: 50px; /* Ограничиваем высоту заголовка */
    overflow: hidden;
}

.advantage-card p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95em;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
    flex-grow: 1; /* Текст заполняет доступное пространство */
    max-height: 120px; /* Ограничиваем высоту текста */
    overflow: hidden;
}

/* Адаптивность для блока с преимуществами */
@media (max-width: 768px) {
    .advantages {
        padding: 40px 15px;
    }

    .advantages-content {
        padding: 0;
    }

    .advantages-content h2 {
        font-size: 1.7em;
        text-align: left;
    }

    .advantages-subtitle {
        font-size: 1em;
        text-align: left;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .advantage-card {
        padding: 20px;
        text-align: left;
        max-width: none;
        min-height: 300px; /* Уменьшаем высоту для мобильных */
    }

    .advantage-image {
        max-width: 150px;
        max-height: 150px;
    }

    .advantage-card h3 {
        font-size: 1.1em;
        max-height: 40px;
    }

    .advantage-card p {
        font-size: 0.9em;
        max-height: 150px;
    }
}

@media (max-width: 480px) {
    .advantages-content h2 {
        font-size: 1.7em;
    }

    .advantages-subtitle {
        font-size: 0.9em;
    }

    .advantage-card {
        padding: 15px;
        min-height: 280px; /* Ещё меньше высота */
    }

    .advantage-image {
        max-width: 150px;
        max-height: 150px;
    }

    .advantage-card h3 {
        font-size: 1em;
        max-height: 36px;
    }

    .advantage-card p {
        font-size: 0.85em;
        max-height: 150px;
    }
}

/* Новый блок "Что такое криптозайм Crypto?" */
.crypto-info {
    background: #FFFFFF;
    padding: 100px 20px;
}

.crypto-info .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: block; /* Гарантируем вертикальное расположение */
}

.ci-header {
    margin-bottom: 40px;
}

.crypto-info h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.7em;
    font-weight: 800;
    color: #000000;
    margin-bottom: 15px;
    text-align: left;
}

.crypto-info-subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6em;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
    text-align: left;
}

.ci-steps-wrapper {
    display: grid;
    grid-template-columns: 60px 3fr 3fr; /* Уменьшили первую колонку до 60px */
    grid-template-rows: repeat(4, auto); /* 4 строки для каждого шага */
    gap: 20px 10px; /* Уменьшили горизонтальный отступ между колонками до 10px */
    margin-bottom: 40px;
    justify-items: start; /* Выравнивание содержимого ячеек по левой стороне */
}

.ci-steps-images,
.ci-steps-left,
.ci-steps-right {
    display: contents; /* Убираем flex, используем grid для управления */
}

.ci-steps-images .ci-step-number:nth-child(1),
.ci-steps-left .ci-step:nth-child(1),
.ci-steps-right .ci-step-card:nth-child(1) {
    grid-row: 1; /* Первая строка */
}

.ci-steps-images .ci-step-number:nth-child(2),
.ci-steps-left .ci-step:nth-child(2),
.ci-steps-right .ci-step-card:nth-child(2) {
    grid-row: 2; /* Вторая строка */
}

.ci-steps-images .ci-step-number:nth-child(3),
.ci-steps-left .ci-step:nth-child(3),
.ci-steps-right .ci-step-card:nth-child(3) {
    grid-row: 3; /* Третья строка */
}

.ci-steps-images .ci-step-number:nth-child(4),
.ci-steps-left .ci-step:nth-child(4),
.ci-steps-right .ci-step-card:nth-child(4) {
    grid-row: 4; /* Четвёртая строка */
}

.ci-steps-images .ci-step-number {
    grid-column: 1; /* Первая колонка для картинок */
    width: 48px;
    height: 48px;
}

.ci-steps-left .ci-step {
    grid-column: 2; /* Вторая колонка для текста шагов */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.ci-steps-right .ci-step-card {
    grid-column: 3; /* Третья колонка для карточек */
}

.ci-step h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4em;
    font-weight: 600;
    color: #1C2526;
    margin-bottom: 10px;
}

.ci-step p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95em;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
}

.ci-step-card {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-height: 78px; /* Синхронизируем высоту с ci-step */
}

.ci-step-side h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.4em;
    font-weight: 600;
    color: #1C2526;
    margin-bottom: 10px;
}

.ci-step-side p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95em;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
}

.ci-footer-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1em;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
    text-align: left;
}

/* Адаптивность для блока "Что такое криптозайм Crypto?" */
@media (max-width: 768px) {
    .crypto-info {
        padding: 40px 15px;
    }

    .crypto-info .container {
        max-width: 100%;
        padding: 0 10px;
    }

    .ci-header {
        margin-bottom: 25px;
    }

    .crypto-info h2 {
        font-size: 1.7em;
        text-align: center;
        text-align: left;
    }

    .crypto-info-subtitle {
        font-size: 1em;
        text-align: center;
        text-align: left;
    }

    .ci-steps-wrapper {
        display: grid;
        grid-template-columns: 40px 1fr; /* Картинки слева, текст справа */
        grid-template-rows: repeat(8, auto); /* 4 строки для картинок и текста + 4 строки для карточек */
        gap: 10px 5px; /* Уменьшенные отступы */
        margin-bottom: 15px;
        justify-items: start; /* Выравнивание по левой стороне */
    }

    /* Размещение элементов в ячейках */
    .ci-steps-images .ci-step-number:nth-child(1),
    .ci-steps-left .ci-step:nth-child(1) {
        grid-row: 1; /* Первая строка */
    }

    .ci-steps-images .ci-step-number:nth-child(2),
    .ci-steps-left .ci-step:nth-child(2) {
        grid-row: 2; /* Вторая строка */
    }

    .ci-steps-images .ci-step-number:nth-child(3),
    .ci-steps-left .ci-step:nth-child(3) {
        grid-row: 3; /* Третья строка */
    }

    .ci-steps-images .ci-step-number:nth-child(4),
    .ci-steps-left .ci-step:nth-child(4) {
        grid-row: 4; /* Четвёртая строка */
    }

    .ci-steps-right .ci-step-card:nth-child(1) {
        grid-row: 5; /* Карточки начинаются с 5-й строки */
        grid-column: 1 / 3; /* Занимают обе колонки */
    }

    .ci-steps-right .ci-step-card:nth-child(2) {
        grid-row: 6;
        grid-column: 1 / 3;
    }

    .ci-steps-right .ci-step-card:nth-child(3) {
        grid-row: 7;
        grid-column: 1 / 3;
    }

    .ci-steps-right .ci-step-card:nth-child(4) {
        grid-row: 8;
        grid-column: 1 / 3;
    }

    .ci-steps-images .ci-step-number {
        grid-column: 1; /* Картинки в первой колонке */
        width: 40px;
        height: 40px;
    }

    .ci-steps-left .ci-step {
        grid-column: 2; /* Текст шагов во второй колонке */
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .ci-step,
    .ci-step-side {
        align-items: center;
        text-align: center;
    }

    .ci-step h3,
    .ci-step-side h3 {
        font-size: 1.2em;
    }

    .ci-step p,
    .ci-step-side p {
        font-size: 0.9em;
    }

    .ci-step-card {
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .ci-footer-text {
        font-size: 0.9em;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .crypto-info h2 {
        font-size: 1.7em;
        text-align: left;
    }

    .crypto-info-subtitle {
        font-size: 0.9em;
        text-align: left;
    }

    .ci-steps-wrapper {
        grid-template-columns: 36px 1fr; /* Уменьшили первую колонку */
        gap: 8px 5px;
    }

    .ci-steps-images .ci-step-number {
        width: 36px;
        height: 36px;
    }

    .ci-step h3,
    .ci-step-side h3 {
        font-size: 1.1em;
    }

    .ci-step p,
    .ci-step-side p {
        font-size: 0.85em;
    }

    .ci-step-card {
        padding: 10px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }

    .ci-footer-text {
        font-size: 0.85em;
        text-align: left;
    }
}
/* Отзывы — Карусель с 4 карточками */
.reviews {
    padding: 40px 20px;
    background-color: #FFFFFF;
    text-align: center;
}

.reviews h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2em;
    color: #1C2526;
    margin-bottom: 30px;
    font-weight: 500;
}

.reviews-actions {
    margin-bottom: 20px;
}

.add-review-button {
    background-color: #000000;
    color: #FFFFFF;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.add-review-button:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.add-review-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.reviews-container {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden; /* Ограничиваем прокрутку по горизонтали */
    overflow-y: visible; /* Разрешаем вертикальную видимость, чтобы не обрезать карточки */
    padding: 20px;
}

.reviews-track {
    display: flex;
    width: 100%;
    height: 240px; /* Высота ролика 240px */
    transition: transform 0.5s ease-in-out;
    align-items: center; /* Центрируем карточки по вертикали */
}

.review-card {
    flex: 0 0 24%; /* 4 карточки в ряд: 100% / 4 = 25%, минус небольшой зазор */
    margin: 0 10px;
    background: #FFFFFF;
    border-radius: 12px;
    color: #1C2526;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px; /* Уменьшаем внутренние отступы */
    height: 200px; /* Фиксированная высота карточек */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.review-card p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95em; /* Уменьшаем шрифт */
    margin: 0 0 10px 0;
    flex-grow: 1;
    line-height: 1.4;
    font-weight: 400;
    color: #1C2526;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Ограничиваем текст до 4 строк */
    -webkit-box-orient: vertical;
}

.review-card span {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8em;
    color: #666;
    text-align: right;
    padding-top: 5px;
    border-top: 1px solid #E5E5E5;
    font-weight: 400;
    line-height: 1.2;
}

/* Стили для модального окна добавления отзыва */
.review-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-in-out;
}

.review-modal .modal-content {
    background: linear-gradient(145deg, #FFFFFF, #F5F5F5);
    border-radius: 16px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    font-family: 'Open Sans', sans-serif;
    transform: scale(0.95);
    animation: scaleIn 0.3s ease-in-out forwards;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.95); }
    to { transform: scale(1); }
}

.review-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    color: #555;
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
}

.review-modal .close-modal:hover {
    color: #F28C38;
    transform: rotate(90deg);
}

/* Заголовок */
.review-modal .modal-content h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.8em;
    color: #1C2526;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Форма */
.review-modal .form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.review-modal .form-group label {
    display: block;
    font-size: 1em;
    color: #1C2526;
    margin-bottom: 8px;
    font-weight: 500;
}

.review-modal .form-group label .required {
    color: #F28C38;
    font-size: 0.85em;
}

/* Поля ввода */
.review-modal .form-group input[type="text"],
.review-modal .form-group textarea {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95em;
    border: 1px solid #D9D9D9;
    border-radius: 8px;
    background-color: #FAFAFA;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-weight: 400;
}

.review-modal .form-group textarea {
    height: 100px;
    resize: none;
}

.review-modal .form-group input[type="text"]::placeholder,
.review-modal .form-group textarea::placeholder {
    color: #999;
    font-size: 0.9em;
}

.review-modal .form-group input[type="text"]:focus,
.review-modal .form-group textarea:focus {
    border-color: #F28C38;
    box-shadow: 0 0 8px rgba(242, 140, 56, 0.3);
}

/* Кнопка отправки */
.review-modal .submit-button {
    display: block;
    width: 100%;
    max-width: 220px;
    margin: 20px auto 0;
    padding: 12px;
    background-color: #F28C38;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.review-modal .submit-button:hover {
    background-color: #FF6200;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(242, 140, 56, 0.4);
}

.review-modal .submit-button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Сообщение формы */
.review-modal .form-message {
    margin-top: 15px;
    font-size: 0.85em;
    color: #1C2526;
    text-align: center;
    font-weight: 400;
}

.review-modal .form-message.success {
    color: #28A745;
}

.review-modal .form-message.error {
    color: #DC3545;
}

/* Адаптивность для отзывов */
@media (max-width: 768px) {
    .reviews {
        padding: 40px 15px;
    }

    .reviews-actions {
        margin-bottom: 15px;
    }

    .add-review-button {
        font-size: 0.95em;
        padding: 8px 16px;
    }

    .reviews-container {
        max-width: 700px;
        padding: 0 10px;
    }

    .reviews-track {
        width: 100%;
        justify-content: center;
        align-items: center;
        height: 240px; /* Оставляем высоту ролика 240px */
    }

    .review-card {
        flex: 0 0 48%; /* 2 карточки в ряд на планшетах */
        margin: 0 5px;
        padding: 15px;
        height: 220px; /* Увеличиваем высоту карточек для мобильной версии */
    }

    .review-modal .modal-content {
        padding: 20px;
        max-width: 90%;
    }

    .review-modal h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    .review-modal .form-group label {
        font-size: 1em;
    }

    .review-modal .form-group input,
    .review-modal .form-group textarea {
        font-size: 0.9em;
        padding: 10px 12px;
    }

    .review-modal .submit-button {
        font-size: 1em;
        padding: 12px;
    }

    .review-modal .form-message {
        font-size: 0.85em;
    }

    .review-modal .close-modal {
        font-size: 24px;
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .reviews-actions {
        margin-bottom: 10px;
    }

    .add-review-button {
        font-size: 0.9em;
        padding: 6px 12px;
    }

    .reviews-container {
        max-width: 350px;
        padding: 0 5px;
    }

    .reviews-track {
        width: 100%;
        justify-content: center;
        align-items: center;
        height: 240px; /* Оставляем высоту ролика 240px */
    }

    .review-card {
        flex: 0 0 100%; /* 1 карточка в ряд на мобильных */
        padding: 10px;
        height: 220px; /* Увеличиваем высоту карточек для мобильной версии */
    }

    .review-modal .modal-content {
        padding: 15px;
        max-width: 92%;
    }

    .review-modal h2 {
        font-size: 1.3em;
        margin-bottom: 15px;
    }

    .review-modal .form-group label {
        font-size: 0.9em;
    }

    .review-modal .form-group input,
    .review-modal .form-group textarea {
        font-size: 0.85em;
        padding: 8px 10px;
    }

    .review-modal .submit-button {
        font-size: 0.9em;
        padding: 10px;
    }

    .review-modal .form-message {
        font-size: 0.8em;
    }

    .review-modal .close-modal {
        font-size: 20px;
        top: 8px;
        right: 8px;
    }
}

/* Блок полезных статей */
.articles {
    background: #FFFFFF; /* Белый фон секции */
    padding: 100px 20px;
    text-align: left;
}

.articles-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.articles-content h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 2.7em;
    font-weight: 800;
    color: #1C2526;
    margin-bottom: 30px;
    text-align: left;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.article-card {
    display: flex;
    flex-direction: column;
    min-height: 350px; /* Фиксируем высоту карточек */
    justify-content: space-between;
    transition: transform 0.3s ease; /* Плавный эффект для поднятия и тени */
}

.article-card:hover {
    transform: translateY(-5px); /* Поднимаем карточку при наведении */
}

.article-link {
    text-decoration: none; /* Убираем подчёркивание */
    color: inherit; /* Наследуем цвет текста */
    display: block; /* Для корректного клика по всей области */
}

.article-image {
    width: 100%; /* Растягиваем на всю ширину карточки */
    max-width: 100%; /* Убираем ограничение по ширине */
    height: 180px; /* Фиксированная высота для единообразия */
    object-fit: cover; /* Сохраняем пропорции, обрезая лишнее */
    margin-bottom: 15px;
    border-radius: 10px; /* Скругление углов изображения */
}

.article-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    font-weight: 600;
    color: #1C2526;
    margin-bottom: 10px;
    max-height: 50px; /* Ограничиваем высоту заголовка */
    overflow: hidden;
    padding: 0; /* Убираем отступы */
}

.article-card p {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95em;
    font-weight: 400;
    color: #666;
    line-height: 1.5;
    flex-grow: 1;
    max-height: 90px; /* Уменьшаем высоту текста */
    overflow: hidden;
    padding: 0; /* Убираем отступы */
}

/* Адаптивность для блока статей */
@media (max-width: 768px) {
    .articles {
        padding: 40px 15px;
    }

    .articles-content {
        padding: 0;
    }

    .articles-content h2 {
        font-size: 1.7em;
        text-align: left;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-card {
        /* Убираем фиксированную минимальную высоту, чтобы карточка адаптировалась к содержимому */
        min-height: auto;
        display: flex;
        flex-direction: column;
    }

    .article-image {
        /* Убираем фиксированную высоту, используем соотношение сторон */
        height: 150px;
        width: 100%;
        object-fit: cover; /* Масштабируем изображение без обрезки */
        border-radius: 10px 10px 0 0;
    }

    .article-card h3 {
        font-size: 1.1em;
        /* Убираем max-height, добавляем перенос текста */
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2; /* Ограничиваем на 2 строки */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin: 10px 0;
    }

    .article-card p {
        font-size: 0.9em;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3; /* Ограничиваем на 3 строки */
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .articles-content h2 {
        font-size: 1.5em;
    }

    .article-card {
        min-height: auto; /* Убираем фиксированную высоту */
    }

    .article-image {
        height: 180px; /* Уменьшаем высоту, но сохраняем object-fit */
        object-fit: cover;
    }

    .article-card h3 {
        font-size: 1em;
        line-height: 1.4;
        -webkit-line-clamp: 2; /* Ограничиваем на 2 строки */
    }

    .article-card p {
        font-size: 0.85em;
        line-height: 1.5;
        -webkit-line-clamp: 3; /* Ограничиваем на 3 строки */
    }
}

/* Стили для чата */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-button-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end; /* Выравниваем по правому краю */
}

.chat-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    order: 1; /* Помещаем .chat-buttons перед .chat-menu-button */
}

.chat-button-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.chat-button-label {
    color: #000;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    white-space: nowrap;
}

.chat-menu-button {
    display: none; /* Скрыта по умолчанию на десктопе */
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.2s ease;
    order: 2; /* Помещаем .chat-menu-button после .chat-buttons */
}

.chat-menu-button:hover {
    background-color: #333333;
    transform: scale(1.1);
}

.chat-menu-button:active {
    transform: scale(1);
}

.chat-menu-button i {
    font-size: 20px;
}

.chat-toggle-button,
.telegram-button,
.email-button {
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.2s ease;
}

.telegram-button,
.email-button {
    text-decoration: none; /* Убираем подчеркивание для ссылок */
}

.chat-toggle-button:hover,
.telegram-button:hover,
.email-button:hover {
    background-color: #333333; /* Темнее при наведении */
    transform: scale(1.1); /* Легкое увеличение при наведении */
}

.chat-toggle-button:active,
.telegram-button:active,
.email-button:active {
    transform: scale(1); /* Возвращаем масштаб при клике */
}

/* Иконки внутри кнопок */
.chat-toggle-button i,
.telegram-button i,
.email-button i {
    font-size: 20px; /* Размер иконок */
}

.chat-window {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 350px;
    height: 450px;
    max-height: 450px;
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 120px;
    right: 150px;
    overflow: hidden;
    /* Анимация */
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-window.open {
    opacity: 1;
    transform: scale(1);
}

.chat-window.closed {
    opacity: 0;
    transform: scale(0.9);
}

.chat-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Полупрозрачный чёрный фон */
    z-index: 999;
    /* Анимация */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.chat-overlay.active {
    display: block;
    opacity: 1;
}

.chat-header {
    background-color: #000;
    color: white;
    padding: 10px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    height: 48px;
    box-sizing: border-box;
}

.chat-new-session {
    background-color: #000;
    color: #fff;
    border: 1px solid #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

.chat-new-session:hover {
    background-color: #1557b0;
    color: #fff;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
}

.chat-close-button {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.chat-close-button:hover {
    color: red;
}

.chat-messages {
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #f4f4f9;
    height: calc(450px - 48px - 51px);
}

.chat-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 200px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    word-wrap: break-word;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.chat-message.user {
    background-color: #fff;
    color: black;
    margin-left: auto;
    text-align: right;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.chat-message.bot {
    background-color: #F5F5F5;
    color: #333;
    margin-right: auto;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.message-timestamp {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    text-align: inherit;
}

.chat-input {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    height: 50px;
    box-sizing: border-box;
    align-items: center;
    background-color: #fff;
}

.chat-input input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    height: 36px;
    box-sizing: border-box;
}

.chat-input button {
    background-color: #000;
    color: white;
    border: none;
    padding: 8px 12px;
    margin-left: 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    transition: background-color 0.3s;
    height: 36px;
    box-sizing: border-box;
}

.chat-input button:hover {
    background-color: #1557b0;
}

/* Анимация для появления кнопок */
.chat-buttons {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-buttons.hidden {
    opacity: 0;
    transform: translateY(-10px); /* Анимация сверху вниз */
    pointer-events: none;
    display: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .chat-window {
        width: 90%; /* Устанавливаем ширину 90% от экрана */
        max-width: 380px; /* Ограничиваем максимальную ширину */
        height: 450px;
        max-height: 450px;
        position: fixed; /* Используем fixed, чтобы окно было привязано к экрану */
        top: 50%; /* Центрируем по вертикали */
        left: 50%; /* Центрируем по горизонтали */
        transform: translate(-50%, -50%) translateY(100%); /* Центрируем и добавляем анимацию */
        bottom: auto; /* Убираем привязку к нижней части */
        right: auto; /* Убираем привязку к правой части */
    }

    .chat-window.open {
        transform: translate(-50%, -50%) translateY(0); /* Центрируем и убираем анимацию смещения */
    }

    .chat-window.closed {
        transform: translate(-50%, -50%) translateY(100%); /* Центрируем и добавляем анимацию смещения */
    }

    .chat-button-container {
        gap: 8px;
    }

    .chat-menu-button {
        display: flex; /* Показываем кнопку меню на мобильных */
    }

    .chat-buttons {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .chat-buttons.hidden {
        display: none;
    }

    .chat-button-wrapper {
        gap: 8px;
        justify-content: flex-end;
    }

    .chat-button-label {
        display: none;
    }

    .chat-toggle-button,
    .telegram-button,
    .email-button,
    .chat-menu-button {
        width: 45px;
        height: 45px;
    }

    .chat-toggle-button i,
    .telegram-button i,
    .email-button i,
    .chat-menu-button i {
        font-size: 18px;
    }

    .chat-new-session {
        font-size: 12px;
        padding: 4px 8px;
    }

    .chat-messages {
        height: calc(450px - 48px - 51px);
    }

    .chat-message {
        max-width: 180px;
    }

    .message-timestamp {
        font-size: 10px;
    }

    .chat-input {
        height: 50px;
    }

    .chat-input input {
        height: 36px;
    }

    .chat-input button {
        height: 36px;
    }

 .loan-button {
    display: inline-block;
    padding: 12px 24px;
    margin-top: 15px;
    background-color: #000000; /* Черный фон */
    color: #ffffff; /* Белый текст */
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 15px;
    transition: background-color 0.3s ease;
    text-align: center; /* Центрирование текста внутри кнопки */
    width: fit-content; /* Ширина по содержимому */
    margin-left: auto; /* Центрирование кнопки в контейнере */
    margin-right: auto;
}

.loan-button:hover {
    background-color: #333333; /* Темнее при наведении */
}

.mobile-only {
    display: none; /* Скрыто по умолчанию */
}

@media (max-width: 768px) {
    .mobile-only {
        display: block; /* Отображается на мобильных */
    }
}
  }