/* CSS для страницы land4 - 24zaimi стили */

/* Управление отображением логотипов через CSS переменную */
.card_24zami__logo {
    display: var(--logo-display) !important;
}

/* Стили для заголовка и описания */
.cards-24zaimi__header {
    text-align: center;
    margin-bottom: 15px;
    padding: 10px 20px;
}

.cards-24zaimi__header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.2;
}

.cards-24zaimi__description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .cards-24zaimi__header {
        margin-bottom: 10px;
        padding: 5px 10px;
    }
    
    .cards-24zaimi__header h1 {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .cards-24zaimi__description {
        font-size: 14px;
        padding: 0 10px;
    }
}

/* Контейнер с отступами для desktop */
.cards-24zaimi__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px; /* Отступы слева и справа на desktop */
}

/* Grid для карточек - высокая специфичность для перебивания bankiru-style.css */
.cards-24zaimi .cards-24zaimi__grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
    width: 100% !important;
}

/* Стили для карточек в стиле banki.ru */
.card_24zami {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    min-height: 240px;
    position: relative;
}

.card_24zami:hover {
    border-color: #d0d0d0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Логотип (центрированный) */
.card_24zami__header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.card_24zami__logo {
    width: 100% !important;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.card_24zami__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Основной контент */
.card_24zami__content {
    flex: 1;
    margin-bottom: 12px;
}

.card_24zami__amount {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.2;
    text-align: center;
}

/* Параметры */
.card_24zami__params {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.param-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.param-label {
    font-size: 14px;
    color: #666;
    line-height: 1.2;
}

.param-value {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

/* Кнопка с фоном */
.card_24zami__button {
    background: #007bff;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.card_24zami__button:hover {
    background: #0056b3;
}

.card_24zami__button .btn-text {
    display: block;
    text-align: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 600;
}

.card_24zami__button:hover .btn-text {
    transform: scale(1.02);
}

/* Стили для кликнутых карточек */
.card_24zami.clicked {
    order: 1;
    opacity: 0.8;
    transform: none;
}

.card_24zami.clicked:hover {
    transform: none;
    opacity: 0.9;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .cards-24zaimi__container {
        padding: 0 30px; /* Уменьшенные отступы для планшетов */
    }
    
    .cards-24zaimi .cards-24zaimi__grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 768px) {
    .cards-24zaimi__container {
        padding: 0 20px; /* Отступы для мобильных устройств */
    }
    
    .cards-24zaimi .cards-24zaimi__grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        margin-bottom: 20px !important;
    }
    
    .card_24zami {
        padding: 12px;
        min-height: 180px;
    }
    
    .card_24zami__header {
        margin-bottom: 12px;
    }
    
    .card_24zami__logo {
        width: 100% !important;
        height: 70px;
    }
    
    .card_24zami__amount {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .param-label,
    .param-value {
        font-size: 13px;
    }
    
    .card_24zami__button {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .card_24zami__button .btn-text {
        font-size: 13px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .cards-24zaimi__container {
        padding: 0 15px; /* Минимальные отступы для маленьких экранов */
    }
    
    .cards-24zaimi .cards-24zaimi__grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* Стили для баннеров */
.banner-container {
    margin: 20px 0;
    text-align: center;
}

.banner-middle {
    margin: 30px 0;
}

.banner-bottom {
    margin-top: 30px;
}

.banner-link {
    display: inline-block;
    text-decoration: none;
    /* Защита от автоматических действий */
    pointer-events: auto;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.banner-image {
    width: 80%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.banner-image:hover {
    transform: scale(1.02);
}

/* Адаптивность для баннеров */
@media (max-width: 768px) {
    .banner-container {
        margin: 15px 0;
    }
    
    .banner-middle {
        margin: 20px 0;
    }
    
    .banner-bottom {
        margin-top: 20px;
    }
}

/* Стили для popup */
.banner-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.banner-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.banner-popup-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: translate(0, 0);
    margin: auto;
}

.banner-popup-text {
    font-size: 18px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 25px;
    font-weight: 500;
}

.banner-popup-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.banner-popup-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.banner-popup-close {
    background-color: #f5f5f5;
    color: #666;
    border: 2px solid #ddd;
}

.banner-popup-close:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

.banner-popup-confirm {
    background-color: #007bff;
    color: white;
    border: 2px solid #007bff;
}

.banner-popup-confirm:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Адаптивность для popup */
@media (max-width: 480px) {
    .banner-popup-content {
        padding: 20px;
        margin: 20px;
    }
    
    .banner-popup-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .banner-popup-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .banner-popup-button {
        width: 100%;
        padding: 14px 20px;
    }
}
