/* Специфичные стили для страницы кредитов */

/* Преимущества кредитов */
.credit-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.benefit-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 5px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.03) 0%, rgba(236, 240, 241, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.benefit-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-icon {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-flex;
    width: 90px;
    height: 90px;
    background: rgba(231, 76, 60, 0.08);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.15) rotate(5deg);
}

/* Типы кредитов */
.credit-types {
    margin: 5rem 0;
}

.credit-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.type-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border-left: 5px solid var(--secondary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.type-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 1;
}

.type-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.type-card:hover::after {
    transform: scaleX(1);
}

.type-card h3 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    z-index: 2;
}

.type-card-icon {
    font-size: 2.2rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 12px;
}

.type-card ul {
    position: relative;
    z-index: 2;
}

.type-card li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.8rem;
    display: block;
    font-size: 1.1rem;
}

.type-card li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.2);
}

.process-section {
    text-align: center;
    margin: 5rem 0;
    position: relative;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent 0%, var(--accent) 50%, transparent 100%);
    opacity: 0.1;
    z-index: 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    padding: 3rem 0 5rem 0;
    position: relative;
    z-index: 1;
}

.process-step {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.process-step:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.15);
    border-color: rgba(231, 76, 60, 0.2);
}

.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), #c0392b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.4rem;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    transition: all 0.4s ease;
}

.process-step:hover .step-number {
    transform: translateX(-50%) scale(1.15);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

.process-note {
    margin: 3rem 0;
    font-style: italic;
    color: var(--dark);
    opacity: 0.8;
    background: rgba(236, 240, 241, 0.5);
    padding: 1.5rem;
    border-radius: 12px;
    display: inline-block;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

/* Общие стили для новых блоков */
.mortgage-details, 
.consumer-credit, 
.business-credit-details, 
.credit-history, 
.choose-credit, 
.refinance-section {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    margin: 4rem 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.credit-intro h2, 
.mortgage-details h2, 
.consumer-credit h2, 
.business-credit-details h2, 
.credit-history h2, 
.choose-credit h2, 
.refinance-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    position: relative;
    font-size: 2.2rem;
}

.credit-intro h2:after, 
.mortgage-details h2:after, 
.consumer-credit h2:after, 
.business-credit-details h2:after, 
.credit-history h2:after, 
.choose-credit h2:after, 
.refinance-section h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    border-radius: 3px;
}

/* Стили для параметров кредита */
.credit-params {
    background: linear-gradient(to right, rgba(44, 62, 80, 0.02), rgba(236, 240, 241, 0.3));
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2.5rem;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.credit-params::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--accent);
    transform: translateY(100%);
    transition: transform 0.6s ease;
}

.credit-params:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.credit-params:hover::before {
    transform: translateY(0);
}

.credit-params h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.credit-params h3 i {
    color: var(--accent);
    font-size: 1.8rem;
}

.credit-params ul {
    list-style-type: none;
    padding-left: 0;
}

.credit-params li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.2rem;
    font-size: 1.15rem;
    display: flex;
    align-items: flex-start;
}

.credit-params li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Сетки для блоков */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.03) 0%, rgba(236, 240, 241, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.feature-card:hover::after {
    opacity: 1;
}

.feature-card h3 {
    position: relative;
    z-index: 1;
}

.feature-icon {
    font-size: 2.8rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-flex;
    width: 80px;
    height: 80px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    background: rgba(231, 76, 60, 0.15);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
}

/* Дополнительная информация */
.additional-info, .requirements {
    background: linear-gradient(to right, rgba(52, 152, 219, 0.03), rgba(236, 240, 241, 0.3));
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2.5rem;
    border-left: 5px solid #3498db;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.additional-info::before, .requirements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.additional-info:hover, .requirements:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.1);
}

.additional-info:hover::before, .requirements:hover::before {
    opacity: 1;
}

.additional-info h3, .requirements h3 {
    color: var(--primary);
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.additional-info h3 i, .requirements h3 i {
    color: #3498db;
    font-size: 1.8rem;
}

/* Стили для кредитной истории */
.history-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.history-card {
    background: linear-gradient(to bottom, rgba(46, 204, 113, 0.03), rgba(236, 240, 241, 0.3));
    border-radius: 16px;
    padding: 2.5rem 2rem;
    border-left: 5px solid #2ecc71;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.history-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.history-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(46, 204, 113, 0.15);
}

.history-card:hover::after {
    opacity: 1;
}

.history-icon {
    font-size: 3rem;
    color: #2ecc71;
    margin-bottom: 1.5rem;
    display: inline-flex;
    width: 80px;
    height: 80px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 20px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}

.history-card:hover .history-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.2);
}

/* Советы по выбору кредита */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.tip-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible; 
}

.tip-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.03) 0%, rgba(236, 240, 241, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    border-radius: 16px; 
}

.tip-number {
    position: absolute;
    top: -15px; /* Уменьшил отступ сверху */
    left: -15px; /* Уменьшил отступ слева */
    width: 40px; /* Уменьшил размер */
    height: 40px; /* Уменьшил размер */
    background: linear-gradient(135deg, var(--accent), #c0392b);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem; /* Уменьшил размер шрифта */
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    transition: all 0.4s ease;
    z-index: 2; /* Увеличил z-index */
}

.tip-card:hover .tip-number {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4);
}

/* Рефинансирование */
.refinance-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 3rem;
}

.refinance-text {
    flex: 1;
    min-width: 300px;
}

.refinance-cta {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05), rgba(236, 240, 241, 0.95));
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.refinance-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.refinance-cta:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.15);
}

.refinance-cta:hover::before {
    opacity: 1;
}

.benefits {
    background: linear-gradient(to right, rgba(241, 196, 15, 0.05), rgba(249, 249, 249, 0.3));
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    border-left: 5px solid #f1c40f;
    position: relative;
    z-index: 1;
}

/* Кнопки призыва */
.cta-container {
    text-align: center;
    margin: 3rem 0;
    padding: 2.5rem;
    background: linear-gradient(to right, rgba(44, 62, 80, 0.03), rgba(236, 240, 241, 0.3));
    border-radius: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.cta-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.1);
}

.cta-container:hover::before {
    opacity: 1;
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), #c0392b);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    margin-top: 1.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c0392b, var(--accent));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.cta-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 25px rgba(231, 76, 60, 0.4);
}

.cta-btn:hover::before {
    opacity: 1;
}

.big-btn {
    padding: 1.2rem 3.5rem;
    font-size: 1.2rem;
    margin-top: 2rem;
}

.calculate-btn {
    display: flex;
    justify-content: center;
}

/* СТИЛИ ДЛЯ БЛОКА БИЗНЕС-КРЕДИТА */
.business-credit-details {
    --accent-business: #2980b9;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(249, 249, 249, 0.95));
    border: 1px solid rgba(41, 128, 185, 0.1);
    box-shadow: 0 20px 60px rgba(41, 128, 185, 0.15);
    overflow: visible;
}

.business-credit-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(41, 128, 185, 0.03)" stroke-width="1"/></svg>');
    opacity: 0.3;
    z-index: 0;
}

.business-credit-details h2 {
    position: relative;
    z-index: 2;
}

.business-credit-details h2:after {
    background: linear-gradient(90deg, var(--accent-business), #1a5276);
}

.business-section {
    background: white;
    border-radius: 18px;
    padding: 2.5rem;
    margin: 2.5rem 0;
    box-shadow: 0 10px 40px rgba(41, 128, 185, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    border: 1px solid rgba(41, 128, 185, 0.1);
}

.business-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(41, 128, 185, 0.2);
}

.business-section h3 {
    color: var(--accent-business);
    font-size: 1.7rem;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(41, 128, 185, 0.1);
}

.business-section h3 i {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(41, 128, 185, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
    margin-top: 1.5rem;
}

.business-feature {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 1.2rem;
    border-radius: 12px;
    background: rgba(236, 240, 241, 0.3);
    transition: all 0.3s ease;
}

.business-feature:hover {
    background: rgba(41, 128, 185, 0.05);
    transform: translateX(8px);
}

.business-feature i {
    font-size: 1.8rem;
    color: var(--accent-business);
    min-width: 50px;
    height: 50px;
    background: rgba(41, 128, 185, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.business-cta {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(41, 128, 185, 0.1);
}

.business-credit-details .cta-btn {
    box-shadow: 0 5px 15px rgba(41, 128, 185, 0.3);
    animation: pulseBusiness 2s infinite;
}

.business-credit-details .cta-btn:hover {
    box-shadow: 0 12px 25px rgba(41, 128, 185, 0.4);
}

@keyframes pulseBusiness {
    0% { box-shadow: 0 0 0 0 rgba(41, 128, 185, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(41, 128, 185, 0); }
    100% { box-shadow: 0 0 0 0 rgba(41, 128, 185, 0); }
}

/* Адаптивность */
@media (max-width: 992px) {
    .business-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .refinance-content {
        flex-direction: column;
    }
    
    .features-grid, 
    .credit-types-grid, 
    .history-grid, 
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .type-cards {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        margin-bottom: 3rem;
    }

    .business-credit-details {
        padding: 2rem 1.5rem;
    }
    
    .business-section {
        padding: 2rem 1.5rem;
    }
    
    .cta-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
    
    .big-btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .credit-intro h2, 
    .mortgage-details h2, 
    .consumer-credit h2, 
    .business-credit-details h2, 
    .credit-history h2, 
    .choose-credit h2, 
    .refinance-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .benefit-card, 
    .type-card, 
    .feature-card, 
    .history-card {
        padding: 1.8rem 1.5rem;
    }
    
    .business-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .tip-card {
        padding: 2.2rem 1.5rem 1.5rem; /* Увеличил верхний отступ */
    }
    
    .tip-number {
        top: -12px;
        left: -12px;
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}