.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 15px;
    flex: 1;
    background: linear-gradient(180deg, #f5f7f6 0%, #fff 100%);
    box-sizing: border-box;
    width: 100%;
}

.hero-section {
    position: relative;
    text-align: center;
    padding: 0;
    margin-bottom: 3rem;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    width: 100%;
    /* Убрано: full-width vw + margin-left calc */
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    box-sizing: border-box;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.hero-text {
    position: relative;
    color: #fff;
}

.index-page .hero-text {
    padding: 1rem;
    max-width: 700px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.hero-text h1 {
    font-size: 2.5rem;
    margin: 0 0 1rem 0;
    color: #fff;
}

.hero-text p {
    font-size: 1.2rem;
    margin: 0 0 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
}

.hero-button {
    background-color: #005b2e;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s ease;
}

.hero-button:hover {
    background-color: #003018;
}

.mini-hero-button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    animation: pulse 1.5s infinite;
}

.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: #004022;
}

.loan-types-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 0;
    margin: 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, #f5f7f6 0%, #e8f0ee 100%);
}

.loan-type {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loan-icon {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, #ffffff 0%, #e8f0ee 100%);
    border: 1px solid #004022;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #004022;
    font-size: 3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.loan-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.loan-text {
    margin-top: 0.5rem;
    color: #004022;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.loan-text:hover {
    color: #003018;
}

.calculator-section {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #e8f0ee 0%, #fff 100%);
    border-radius: 12px;
    margin: 3rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    align-items: center;
}

.calculator-text {
    flex: 1;
}

.calculator-text h2 {
    font-size: 2rem;
    color: #333;
    margin: 0 0 1rem;
}

.calculator-text p {
    font-size: 1.2rem;
    color: #666;
    margin: 0 0 1rem;
}

.calculator-form {
    flex: 1;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.calculator-form label {
    display: block;
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.slider {
    width: 100%;
    accent-color: #004022;
    margin-bottom: 0.5rem;
}

.slider-value {
    display: block;
    font-size: 1rem;
    color: #004022;
    margin-bottom: 1rem;
}

.calc-button {
    background: #005b2e;
    color: #fff;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.calc-button:hover {
    background: #003018;
}

.calculator-result {
    flex: 1;
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease;
}

.calculator-result h3 {
    font-size: 1.6rem;
    color: #004022;
    margin-bottom: 1rem;
}

.result-details p {
    font-size: 1.2rem;
    color: #333;
    margin: 0.5rem 0;
}

.result-details p span {
    font-weight: bold;
    color: #004022;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.news-section {
    padding: 2rem;
    text-align: center;
    background: #e8f0ee;
    border-radius: 12px;
    margin: 3rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: scale(1.03);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-item h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 1rem;
}

.news-date {
    font-size: 0.9rem;
    color: #333;
    margin: 0 1rem;
}

.news-item p {
    font-size: 1rem;
    color: #333;
    margin: 0 1rem 1rem;
}

.news-link {
    display: inline-block;
    color: #004022;
    text-decoration: none;
    margin: 0 1rem 1rem;
    transition: all 0.3s ease;
}

.news-link:hover {
    color: #003018;
}

.why-choose-section {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, #e8f0ee 0%, #fff 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow-x: hidden;
}

.why-choose-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.why-choose-text h2 {
    font-size: 2rem;
    color: #333;
}

.why-choose-nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 0.3rem;
    flex-wrap: nowrap;
}

.why-choose-nav ul li a:link, 
.why-choose-nav ul li a:visited, 
.why-choose-nav ul li a:hover, 
.why-choose-nav ul li a:active {
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.why-choose-nav ul li a:hover {
    background-color: #e0e0e0;
}

.why-choose-nav ul li a.active {
    background-color: #004022;
    color: #fff;
    font-weight: bold;
}

.why-choose-content {
    width: 100%;
}

.content-block {
    width: 100%;
    background: linear-gradient(135deg, #fff 0%, #f5f7f6 100%);
    border: 1px solid #e8f0ee;
    border-radius: 8px;
    padding: 1.5rem;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.content-block p {
    font-size: 1.2rem;
    color: #666;
    margin: 0 0 1rem 0;
}

.content-block h3 {
    font-size: 1.6rem;
    color: #333;
    margin: 1rem 0 0.5rem 0;
    font-weight: bold;
}

.content-block h3 i {
    margin-right: 0.5rem;
}

.disclaimer-section {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: left;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.disclaimer-section p {
    font-size: 1rem;
    color: #444;
    margin: 0 0 1rem 0;
}

.icons-section {
    margin: 3rem 0;
    overflow: hidden;
}

.icons-slider {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: slideIcons 20s linear infinite;
}

.icons-slider img {
    width: 80px;
    height: auto;
}

@keyframes slideIcons {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.about-section {
    padding: 2rem 0;
}

.about-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    max-width: 400px;
    border-radius: 8px;
}

.about-text {
    flex: 1;
    padding-left: 1rem;
}

.about-text h2 {
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    color: #333;
}

.about-text h2 i {
    margin-right: 0.5rem;
}

.about-text p {
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
    color: #666;
}

.about-text a:link, 
.about-text a:visited, 
.about-text a:hover, 
.about-text a:active {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    background-color: #005b2e;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.about-text a:hover {
    background-color: #003018;
}

html, body {
    overflow-x: hidden;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        margin: 0;
        max-width: 100%;
    }

    .hero-section {
        height: 60vh;
        min-height: 400px;
        border-radius: 10px;
        width: 100%;
    }

    .hero-text {
        padding: 1.5rem;
        max-width: 90%;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    .hero-button {
        padding: 0.75rem 1.8rem;
        font-size: 1.2rem;
    }

    .slider-indicators {
        bottom: 20px;
    }

    .loan-types-section {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .loan-icon {
        width: 160px;
        height: 160px;
        font-size: 2.8rem;
    }

    .calculator-section {
        flex-direction: column;
        padding: 1.5rem;
        gap: 2rem;
    }

    .calculator-text h2 {
        font-size: 1.9rem;
    }

    .calculator-text p {
        font-size: 1.15rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .news-item img {
        height: 200px;
    }

    .why-choose-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }

    .why-choose-nav ul {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .why-choose-nav ul li a {
        flex: 1 1 45%;
        text-align: center;
        padding: 1rem;
        font-size: 1rem;
    }

    .about-block {
        flex-direction: column;
    }

    .about-image img {
        max-width: 100%;
    }

    .about-text {
        padding-left: 0;
        margin-top: 1.5rem;
    }

    .icons-slider img {
        width: 70px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 50vh;
        min-height: 350px;
        border-radius: 8px;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-button {
        padding: 0.65rem 1.5rem;
        font-size: 1.1rem;
    }

    .loan-icon {
        width: 140px;
        height: 140px;
        font-size: 2.5rem;
    }

    .calculator-text h2 {
        font-size: 1.7rem;
    }

    .why-choose-nav ul li a {
        flex: 1 1 100%;
    }

    .icons-slider img {
        width: 60px;
    }
}