/* ============================================= */
/* hot-offers.css — СТИЛИ ТОЛЬКО ДЛЯ МОДУЛЯ */
/* ============================================= */

.hot-offers-section {
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hot-offers-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Gilroy', sans-serif;
}

/* === СВАЙПЕР === */
.hot-offers-swiper {
    display: block !important;
    padding: 10px 0 60px;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.hot-offers-swiper .swiper-wrapper {
    max-width: 100%;
    align-items: stretch;
}

.hot-offers-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* === ПАГИНАЦИЯ === */
.hot-offers-swiper .swiper-pagination {
    bottom: 12px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    text-align: center;
    z-index: 10;
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f3f4f6;
}

.hot-offers-swiper .swiper-pagination::-webkit-scrollbar { width: 6px; height: 6px; }
.hot-offers-swiper .swiper-pagination::-webkit-scrollbar-track { background: #f3f4f6; border-radius: 3px; }
.hot-offers-swiper .swiper-pagination::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.hot-offers-swiper .swiper-pagination::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

.hot-offers-swiper .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: #d1d5db !important;
    border-radius: 50% !important;
    opacity: 0.5 !important;
    margin: 0 !important;
    transition: all 0.3s ease !important;
    display: inline-block;
    flex-shrink: 0;
    cursor: pointer;
}

.hot-offers-swiper .swiper-pagination-bullet:hover {
    background: #9ca3af !important;
    opacity: 0.8 !important;
    transform: scale(1.15);
}

.hot-offers-swiper .swiper-pagination-bullet-active {
    background: #2563eb !important;
    width: 32px !important;
    height: 12px !important;
    border-radius: 6px !important;
    opacity: 1 !important;
}

/* === КАРТОЧКА ЗАЙМА === */
.loan-card {
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 30px 25px 25px;
    box-shadow: 0 4px 20px var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    box-sizing: border-box;
}

.loan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--card-shadow-hover);
}

@keyframes cardAppear {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.loan-card.appearing { animation: cardAppear 0.5s ease forwards; }

.loan-card--hiding { animation: hideCard 0.4s ease forwards; }
@keyframes hideCard {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.95); }
    100% { opacity: 0; transform: scale(0.8) translateX(-20px); }
}

/* === БЕЙДЖИ === */
.card-badge {
    position: absolute; 
    top: 0; 
    right: 0; 
    padding: 8px 20px;
    border-radius: 0 20px 0 20px; 
    font-size: 12px; 
    font-weight: 700;
    color: white; 
    z-index: 10; 
    font-family: 'Gilroy', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: right;
}
.card-badge.premium { background: linear-gradient(135deg, #7ce900, #2acb03); box-shadow: 0 2px 8px rgba(124, 233, 0, 0.3); }
.card-badge.standard { background: linear-gradient(135deg, #00c6ff, #0072ff); box-shadow: 0 2px 8px rgba(0, 198, 255, 0.3); }

/* === РЕЙТИНГ === */
.loan-card__rating {
	display: none; 
    position: absolute; 
    top: 0; 
    left: 0; 
    align-items: center;
    gap: 3px; 
    padding: 8px 12px; 
    border-radius: 20px 0 20px 0;
    font-weight: 700; 
    color: var(--text-primary); 
    z-index: 10;
    background: #fff8e1; 
    font-family: 'Gilroy', sans-serif;
    box-shadow: 0 2px 8px rgba(255, 184, 0, 0.2);
}
.loan-card__rating-value { letter-spacing: 2px; font-size: 15px; line-height: 1; font-weight: 700; color: #FFB800; }

/* === ЛОГОТИП === */
.loan-card__logo-wrapper {
    width: 100%; 
    height: 90px; 
    min-height: 90px;
    border-radius: 12px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 12px; 
    margin-bottom: 16px; 
    flex-shrink: 0; 
    background: transparent;
    overflow: hidden;
}
.loan-card__logo {
    max-width: 100%; 
    max-height: 100%; 
    min-height: 90px;
    width: auto; 
    height: auto; 
    border-radius: 0; 
    object-fit: contain;
}

/* === ЗАГОЛОВОК КАРТОЧКИ === */
.loan-card__header { display: flex; align-items: center; gap: 12px; flex-direction: column; flex-wrap: nowrap; }
.loan-card__info { display: flex; flex: 1; min-width: 0; }
.loan-card__name { display: none; font-weight: 700; font-size: 16px; margin-bottom: 4px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; width: 100%; font-family: 'Gilroy', sans-serif; }

/* === ПРОМО === */
.loan-card__promo {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--text-inverse); 
    text-align: center; 
    font-weight: 700;
    padding: 10px; 
    border-radius: 10px; 
    margin: 16px 0; 
    font-size: 14px;
    font-family: 'Gilroy', sans-serif;
}

/* === ХАРАКТЕРИСТИКИ === */
.loan-card__specs { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--border-color); flex-grow: 1; }
.loan-card__specs-list { list-style: none; padding: 0; margin: 0; }
.loan-card__spec-item { display: flex; justify-content: space-between; padding-left: 14px; margin-bottom: 10px; position: relative; }
.loan-card__spec-item::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background-color: var(--primary); }
.loan-card__spec-label { font-weight: 500; font-size: 13px; color: var(--text-muted); font-family: 'Gilroy', sans-serif; }
.loan-card__spec-value { font-weight: 600; font-size: 13px; color: var(--text-primary); text-align: right; font-family: 'Gilroy', sans-serif; }

/* === КНОПКА КАРТОЧКИ === */
.loan-card__button-wrapper { margin-top: 20px; }
.loan-card__button {
    display: block; width: 100%; height: 48px; background-color: var(--calc-button-bg); color: var(--text-inverse);
    border: none; border-radius: 50px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.3s; text-align: center; line-height: 48px; font-family: 'Gilroy', sans-serif;
}
.loan-card__button:hover { background-color: var(--calc-button-hover); transform: scale(1.02); box-shadow: 0 4px 12px var(--shadow-md); }

/* === КОМПАНИЯ === */
.loan-card__company { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 12px; font-weight: 400; font-family: 'Gilroy', sans-serif; }

/* === ЗАГРУЗКА === */
.loading-container { text-align: center; width: 100%; padding: 40px 20px; }
.loading-box { display: inline-block; padding: 30px; background-color: var(--bg-card); border-radius: 12px; box-shadow: var(--shadow-md); }
.loading-text { font-size: 16px; color: var(--text-muted); margin-bottom: 15px; font-family: 'Gilroy', sans-serif; }
.loading-spinner { width: 40px; height: 40px; border: 4px solid var(--primary); border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.reset-button {
    margin-top: 20px; padding: 12px 24px; background: var(--primary); color: var(--text-inverse);
    border: none; border-radius: 50px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all 0.3s; font-family: 'Gilroy', sans-serif;
}
.reset-button:hover { background: var(--accent); transform: scale(1.05); box-shadow: 0 4px 12px var(--shadow-md); }

/* === АДАПТИВНОСТЬ === */
@media (max-width: 1200px) { .hot-offers-title { font-size: 26px; margin-bottom: 28px; } }
@media (max-width: 1024px) { .loan-card { padding: 25px 20px 20px; } }
@media (max-width: 768px) {
    .hot-offers-title { font-size: 24px; margin-bottom: 24px; }
    .hot-offers-section { margin-top: 40px; }
    .loan-card { padding: 20px 18px 15px; }
}
@media (max-width: 640px) {
    .loan-card__button { min-height: 48px; font-size: 15px; }
    .card-badge { padding: 6px 16px; font-size: 12px; }
}
@media (max-width: 480px) {
    .hot-offers-section { margin-top: 30px; }
    .hot-offers-title { font-size: 22px; }
    .loan-card { padding: 18px 14px 12px; }
    .loan-card__spec-label, .loan-card__spec-value { font-size: 12px; }
    .hot-offers-swiper .swiper-pagination-bullet { width: 10px !important; height: 10px !important; }
    .hot-offers-swiper .swiper-pagination-bullet-active { width: 26px !important; height: 10px !important; }
    .hot-offers-swiper .swiper-pagination { gap: 8px; padding: 6px 12px; }
}
@media (max-width: 360px) {
    .loan-card { min-width: auto; width: 100%; padding: 16px 12px 10px; }
    .loan-card__logo-wrapper { height: 75px; min-height: 75px; }
    .loan-card__logo { min-height: 80px; }
    .loan-card__spec-label, .loan-card__spec-value { font-size: 11px; }
    .loan-card__button { font-size: 13px; height: 44px; line-height: 44px; }
    .card-badge { padding: 6px 14px; font-size: 11px; }
}
@media (hover: none) and (pointer: coarse) {
    .loan-card__button { min-height: 48px; }
    .loan-card:active { transform: scale(0.98); }
}
@supports not (display: grid) { .hot-offers-swiper { display: block; } }