.credit-section {
    background-image: url('/src/img/bg13.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Эффект параллакса */
    padding: 100px 20px;
    position: relative;
    text-align: center;
    overflow-x: hidden;
}

.credit-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.credit-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    color: white;
}

.credit-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
}

.credit-subtitle {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-credit {
    background-color: white;
    color: rgb(25, 142, 56);
    padding: 18px 50px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-credit:hover {
    background-color: rgb(25, 142, 56);
    color: white;
}

/* Модальное окно */
.credit-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
}

.credit-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.credit-modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 900px;
    width: 100%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.credit-modal-overlay.active .credit-modal-content {
    transform: scale(1);
}

.credit-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 2px solid #000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s;
}

.credit-modal-close:hover {
    background: #000;
    color: white;
}

.credit-modal-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

.modal-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.modal-benefits {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 30px;
    text-align: left;
}

.modal-benefits li {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: rgb(25, 142, 56);
}

.btn-submit {
    width: 100%;
    background-color: #a4d65e;
    color: white;
    padding: 20px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #8bc34a;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: rgb(25, 142, 56);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    margin: 0 auto 25px;
    animation: successScale 0.5s ease;
}

@keyframes successScale {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.success-message h3 {
    font-size: 28px;
    color: rgb(25, 142, 56);
    margin-bottom: 15px;
}

.success-message p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-success-close {
    background-color: rgb(25, 142, 56);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-success-close:hover {
    background-color: rgb(20, 120, 45);
}

/* Адаптивность */
@media (max-width: 768px) {
    .credit-section {
        padding: 60px 20px;
        background-attachment: scroll; /* На мобилке убираем fixed */
    }

    .credit-title {
        font-size: 32px;
    }

    .credit-subtitle {
        font-size: 16px;
    }

    .credit-modal-content {
        padding: 30px 20px;
    }

    .credit-modal-content h3 {
        font-size: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .credit-title {
        font-size: 28px;
    }

    .btn-credit {
        padding: 15px 35px;
        font-size: 14px;
    }

    .credit-modal-content h3 {
        font-size: 20px;
    }

    .btn-submit {
        padding: 15px;
        font-size: 16px;
    }

    .success-message h3 {
        font-size: 22px;
    }

    .success-message p {
        font-size: 14px;
    }

    .success-icon {
        width: 70px;
        height: 70px;
        font-size: 40px;
    }
}
