/* Block1  */
/* Первый блок - 3 элемента в строку */
.row-3 {
    margin-bottom: 30px;
}
p{
    margin: 0px;
    line-height: 30px;
    font-size: 20px;
}
.item-3 {
    display: inline-block;
    padding: 16px;
    margin-right: 20px;
    height: 56px;
    background-color: #F5F5F5;
    border-radius: 8px;
}
.item-3 p{
    font-size: 24px;
    font-weight: bold;
    line-height: 24px;
}

/* Второй блок - 6 элементов в строку (на мобиле 2) */
.row-6 {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.item-6 {
    flex: 1 1 calc(16.666% - 16px);
    padding: 32px;
    background-color: #F5F5F5;
    border-radius: 8px;
    text-align: center;
    min-width: 120px;
}

.item-6 img {
    max-width: 50px;
    height: 32px;
    margin-bottom: 10px;
}

/* Стили для последнего блока в row-6 */
.row-6 .item-6:last-child {
    display: flex;
    justify-content: center; /* центрирование по горизонтали */
    align-items: center;     /* центрирование по вертикали */
    background-color: #232323; /* темный фон */
    color: white; /* белый текст */
    text-align: center;
    padding: 32px 16px; /* можно настроить по желанию */
}


.block6{
    padding-bottom: 70px;
}
/* Адаптивность */

@media (max-width: 1376px) {
    .item-3 {
        flex: 1 1 100%;
    }

    .item-6 {
        flex: 1 1 calc(33.333% - 16px);
    }
}

@media (max-width: 698px) {

    .item-6 {
        flex: 1 1 calc(50% - 16px);
        padding: 15px;
    }
   .item-6 img {
            margin-bottom: 0px;
    }
    .item-3 p {
        font-size: 14px;
    }
    .item-3{
        margin-right: 2px;
    }


   .item-6 p{
        font-size: 16px;
        line-height: 24px;
    }
}
/* Block1  */
/* Block2 Calculation */

.container-calc{
    max-width: 1200px;
    margin: 0 auto;
}
.container_flex_calc {
    display: flex;
    gap: 40px;
}

.container-calc h2 {
    width: 100%;
    text-align: center;
}

.calculation_block {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 730px;
}

.calc_form_block {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 380px;
}

.calculation_block p {
    color: #555;
    margin-bottom: 5px;
    font-size: 16px;
}

.calculation_block .pay {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: black;
    margin-bottom: 20px;
}

.interest-info {
    margin-bottom: 25px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #ff0000;
}

.interest-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.interest-rate {
    font-weight: bold;
    color: #ff0000;
}

.slider-container {
    margin-bottom: 30px;
}

.slider-container label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.slider-value {
    font-weight: bold;
    color: #333;
}


input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px; /* Тонкая линия */
    border-radius: 2px;
    background: #ff0000; /* Чисто красный цвет */
    outline: none;
    margin: 15px 0; /* Центрирование по вертикали */
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff0000; /* Чисто красный цвет */
    cursor: pointer;
    margin-top: -4px; /* Центрирование по вертикали: (18px - 4px) / 2 = 7px */
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff0000; /* Чисто красный цвет */
    cursor: pointer;
    border: none;
}

/* Для Firefox нужно добавить фон трека */
input[type="range"]::-moz-range-track {
    background: #ff0000;
    height: 4px;
    border-radius: 2px;
}



.calc_form_block form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc_form_block input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.calc_form_block input:focus {
    outline: none;
    border-color: #2c7be5;
}

.calc_form_block button {
    background: #232323;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.calc_form_block button:hover {
    background: #232323c4;
}

.calc_form_block p {
    font-size: 12px;
    color: #777;
    text-align: center;
    margin-top: 10px;
}

.calc_form_block a {
    color: #2c7be5;
    text-decoration: none;
}

.calc_form_block a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .calc_form_block form{
        gap:15px;
    }
    .calc_form_block p{
        line-height: 20px;
        margin-top: -5px;
        margin-bottom: 10px;
    }
    .slider-container{
        margin-bottom: 0px;
    }
    .container-calc {
        flex-direction: column;
    }
    .container_flex_calc{
        display: block;
        gap:unset;
    }
    .calc_form_block {
        margin-top: -1px;
        flex: unset;
        background: white;
        padding: 0px 30px;
        border:none;
        box-shadow:none;
        max-width: 100%;
        border-radius: 0px 0px 8px 8px;
    }
    .calculation_block{
        border-radius: 8px 8px 0px 0px;
        padding: 10px 30px;
        border: none;
        box-shadow: none;
    }
}
@media (max-width: 1168px) {
    .calculation_block {
        min-width: auto;
    }
}
/* Block2 Calculation */

 /*  Block3 Credit terms */
.credit-cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    margin: 32px 0 40px 0;
}
.credit-card {
    background: #F5F5F5;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 28px 22px 22px 22px;
    flex: 1 1 220px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 340px;
    box-sizing: border-box;
}
.credit-card-title {
    font-size: 36px;
    line-height: 40px;
    font-weight: 700;
    margin-bottom: 18px;
}
.credit-card-icon-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}
.credit-card-icon {
    height: 32px;
}
.credit-card-percent, .credit-card-term, .credit-card-sum {
    font-size: 24px;
    line-height: 30px;
    font-weight: 600;
}
.credit-card-req-title {
    margin-top: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
}
.credit-card-req-list ul{
    margin: 0 0 0 25px;
    padding: 0;
    list-style-type: disc;
    color: #444;
}
.credit-card-req-list ul li {
    margin-bottom: 5px;
}
.credit-card-doc-btn {
    display: inline-block;
    padding: 13px 18px;
    background: #FFF;
    color: #000000;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    width: 100%;
    text-align: center;
    transition: background 0.2s;
}
     .credit-card-doc-btn:hover {
     background: #e0e0e0;
     transform: translateY(-2px);
     box-shadow: 0 4px 8px rgba(0,0,0,0.1);
 }
 .credit-card-docs {
     background: #232323 !important;
 }
 .credit-card-docs .credit-card-title {
     color: #fff;
 }
 .credit-card-docs .credit-card-req-list ul {
     color: #fff;
 }
 .credit-card-docs .credit-card-req-list ul li {
     color: #fff;
 }
 .credit-card-docs {
     justify-content: space-between;
 }
 .credit-card-docs .credit-card-doc-btn {
     margin-top: auto;
 }
 @media (max-width: 991px) {
    .credit-cards-row {
        margin: 0px 0 40px 0;
    }
 }
     @media (max-width: 658px) {
     .credit-cards-row {
         display: flex;
         flex-wrap: nowrap;
         overflow-x: auto;
         scroll-snap-type: x mandatory;
         gap: 16px;
         padding: 0 16px;
         margin: 0px;
         scrollbar-width: none;
         -ms-overflow-style: none;
         justify-content: flex-start;
     }
     .credit-cards-row::-webkit-scrollbar {
         display: none;
     }
     .credit-card {
         flex: 0 0 280px;
         min-width: 280px;
         max-width: 280px;
         scroll-snap-align: start;
         margin-right: 0;
     }
     .credit-card:last-child {
         margin-right: 16px;
     }
 }
 
 /*  Block3 Credit terms */
/*  Block4 Video */
 .video-block{
    padding-top: 0px;
}
.video iframe{
    height: 600px;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .video iframe{
        height: 400px;
    }
}
@media (max-width: 658px) {
    .video iframe{
        height: 300px;
    }
}
/*  Block4 Video */

/* Block 6 fiz lico */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}
.feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}
.feature-icon {
    margin-bottom: 16px;
}
.feature-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.feature-text {
    font-size: 1.1em;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}
.feature-card-dark {
    background: #232323;
}
.feature-card-dark .feature-text {
    color: #fff;
}
.feature-card-dark {
    cursor: pointer;
}
.feature-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 24px;
    background: #2a7b2e;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.2s;
}
.feature-btn:hover {
    background: #1a5e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .feature-card {
        min-height: 160px;
        padding: 24px 20px;
    }
    .feature-icon img {
        width: 32px;
        height: 32px;
    }
    .feature-text {
        font-size: 1em;
    }
}
@media (max-width: 450px) {
    .feature-card {
        padding: 12px 10px;
    }
    .credit-card-title {
        font-size: 28px;
    }
}

/* Block 6 fiz lico */