/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;700&display=swap');

/* --- CSS Variables --- */
:root {
    --primary-color: #0057FF; /* Professional Blue */
    --primary-hover-color: #0048D6;
    --secondary-color: #F0F5FF; /* Light Blue Background */
    --accent-color: #00D68F;   /* Bright Green for highlights */
    --text-color: #1D2B4F;     /* Dark Blue for text */
    --text-light-color: #5A6789;
    --border-color: #DDE5F5;
    --background-color: #FFFFFF;
    --header-height: 80px;
    --border-radius: 12px;
    --shadow: 0 10px 30px rgba(0, 87, 255, 0.08);
}

/* --- General Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
p { color: var(--text-light-color); margin-bottom: 1rem; }

.section-title {
    margin-bottom: 1rem;
    color: var(--text-color);
}
.section-subtitle {
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 50px auto;
}
.text-center { text-align: center; }

/* --- Animated Background --- */
.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), rgba(240, 245, 255, 0));
    animation: move 20s infinite alternate;
}
.circle-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -150px;
    animation-duration: 25s;
}
.circle-2 {
    width: 500px;
    height: 500px;
    bottom: -200px;
    right: -200px;
    animation-duration: 30s;
}
.circle-3 {
    width: 300px;
    height: 300px;
    top: 50%;
    right: -100px;
    animation-duration: 22s;
}

@keyframes move {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(100px, 50px) rotate(180deg); }
}


/* --- Header --- */
.site-header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}
.logo span {
    color: var(--text-color);
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}
.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}
.main-nav a:not(.btn):hover {
    color: var(--primary-color);
}
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-color); cursor: pointer; }

/* --- Buttons --- */
.btn {
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}
.btn-lg { padding: 16px 36px; }
.btn-full { width: 100%; text-align: center; }
.btn-primary {
    background-color: var(--primary-color);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 87, 255, 0.2);
}
.btn-secondary {
    background-color: var(--background-color);
    color: var(--primary-color);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--primary-color);
}
.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* --- Hero Section --- */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 60px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}
.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}
.hero-content {
    flex: 1;
    max-width: 550px;
}
.hero-content p { font-size: 1.2rem; }
.hero-buttons { margin-top: 30px; display: flex; gap: 15px; }
.hero-image-container { flex: 1; }
.hero-image {
    max-width: 100%;
    height: auto;
}

/* --- Why Us Section (Features) --- */
.why-us-section {
    background-color: var(--secondary-color);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.feature-card {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 87, 255, 0.12);
}
.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}
.feature-card h3 {
    margin-bottom: 10px;
}

/* --- Comparison Section --- */
.table-wrapper {
    overflow-x: auto;
    background: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 20px;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}
.comparison-table th, .comparison-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.comparison-table th {
    font-weight: 600;
    color: var(--text-light-color);
}
.comparison-table td {
    vertical-align: middle;
}
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}
.comparison-table td:last-child {
    text-align: right;
}
.icon-mr { margin-right: 10px; color: var(--primary-color); }
.disclaimer { font-size: 0.9rem; margin-top: 20px; color: var(--text-light-color); }

/* --- FAQ Section --- */
.faq-section {
    background-color: var(--secondary-color);
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background-color: #fff;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
}
.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary-color);
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
}
.faq-answer p {
    padding: 0 25px 20px 25px;
    margin: 0;
}

/* --- Form Section --- */
.form-container {
    display: flex;
    align-items: center;
    gap: 60px;
    background-color: #fff;
    padding: 60px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}
.form-image-container {
    flex: 1;
    max-width: 400px;
}
.form-image-container img { max-width: 100%; }
.form-content { flex: 1.2; }

.loan-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.form-group input {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.15);
}
.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-group-checkbox label { font-size: 0.9rem; color: var(--text-light-color); }
.form-group-checkbox label a { color: var(--primary-color); text-decoration: none; }
.form-group-checkbox input { width: auto; }

/* --- Footer --- */
.site-footer-main {
    background-color: var(--text-color);
    color: #fff;
    padding: 60px 0 20px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 40px;
}
.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.footer-column p, .footer-column li, .footer-column a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}
.footer-column.about p { line-height: 1.8; }
.footer-column.links ul { list-style: none; }
.footer-column.links li { margin-bottom: 10px; }
.footer-column.links a:hover { color: #fff; }
.footer-column.contact p { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
}
.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    margin: 0;
}

/* --- Animations --- */
.fade-in { animation: fadeIn 0.8s ease-out forwards; }
.fade-in-delay-1 { animation: fadeIn 0.8s 0.2s ease-out forwards; opacity: 0; }
.fade-in-delay-2 { animation: fadeIn 0.8s 0.4s ease-out forwards; opacity: 0; }
.fade-in-delay-3 { animation: fadeIn 0.8s 0.6s ease-out forwards; opacity: 0; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .hero-image-container { display: none; } /* Hide image on smaller screens for focus */
    .form-container { flex-direction: column; padding: 40px 20px; }
    .form-image-container { display: none; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-column.contact p { justify-content: center; }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    .main-nav.active { display: flex; }
    .main-nav a.btn { display: block; text-align: center; margin-top: 10px; }
    .menu-toggle { display: block; }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 2rem; }
    section { padding: 60px 0; }
}

/* --- Stylish Highlight for Key Numbers --- */
.highlight-text {
  font-weight: 700; /* Делает шрифт насыщенным, но не таким грубым */
  color: var(--primary-color); /* Использует основной синий цвет сайта */
}

/* --- Offers Section --- */
.offers-section {
    background-color: var(--secondary-color);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.offer-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 87, 255, 0.12);
}

.offer-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.offer-logo {
    height: 40px;
    width: auto;
    max-width: 120px;
}

.offer-lender {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.offer-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.offer-details {
    list-style: none;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes button to the bottom */
}

.offer-details li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--text-light-color);
}

.offer-details li i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.offer-description {
    font-size: 0.9rem;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes button to the bottom */
}

/* Special Offer Badge */
.special-offer-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 0 var(--border-radius) 0 var(--border-radius);
}

.offer-card.special-offer {
    border-color: var(--accent-color);
}

/* --- Stylish Highlight for Key Numbers --- */
.highlight-text {
  font-weight: 700; /* Делает шрифт насыщенным, но не таким грубым */
  color: var(--primary-color); /* Использует основной синий цвет сайта */
}

/* --- Category Section --- */
.category-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--secondary-color);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    background-color: #fff;
    border-color: var(--primary-color);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.category-title {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.category-card p {
    font-size: 1rem;
    color: var(--text-light-color);
}

/* --- Footer layout adjustment --- */
.footer-container-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .footer-container-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .footer-container-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}