/* Глобальные переменные для повторяющихся значений */
:root {
    --primary-color: #003366;
    --secondary-color: #003087;
    --background-light: #f4f6f8;
    --input-bg: #F9F9F9;
    --shadow: inset 0px 4px 4px rgba(0, 0, 0, 0.25);
    --border-light: 1px solid rgba(0, 83, 165, 0.4);
    --border-gray: 1px solid #ddd;
    --transition: all 0.3s ease;
}

/* Сетка карточек */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
}

/* Стили карточек */
.feature-card {
    background: var(--background-light);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 320px;
    width: 300px;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(-50px);
}

.feature-card.custom-fadeindown {
    animation: fadeInDownCustom 1s ease-out forwards;
}

@keyframes fadeInDownCustom {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Внутренние элементы карточек */
.feature-card .top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}

.feature-card .number {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 200px;
    font-weight: 900;
    color: var(--primary-color);
    line-height: 0.8;
    letter-spacing: -20px;
    margin-right: 40px;
}

.icon { width: 40%; }

.feature-card .icon img { width: 100%; }

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 10px;
}

.feature-card p {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    margin: 0;
}

/* Лесенка для карточек */
.feature-card:nth-child(1) { margin-top: 80px; }
.feature-card:nth-child(2) { margin-top: 170px; }
.feature-card:nth-child(3) { margin-top: 250px; }
.feature-card:nth-child(4) { margin-top: 0; }
.feature-card:nth-child(5) { margin-top: 100px; }
.feature-card:nth-child(6) { margin-top: 200px; }
.feature-card:nth-child(7) { margin-top: 0; }
.feature-card:nth-child(8) { margin-top: 100px; }
.feature-card:nth-child(9) { margin-top: 200px; }
.feature-card:nth-child(10) { margin-top: 0; }

/* Адаптация карточек */
@media (max-width: 992px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .feature-card:nth-child(n+2) { margin-top: 0; }
}

@media (max-width: 600px) {
    .features { grid-template-columns: 1fr; }
}

/* Дополнительные стили */
.btn {
    display: inline-block;
    vertical-align: top;
    margin: 0 10px 10px 0;
    padding: 0 15px;
    text-decoration: none;
    transition: var(--transition);
    background: #003371;
    border: 1px solid #003371;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    line-height: 40px;
    color: #fff;
}

.img, a.img { padding: 15px; }

.hero h1 { font-size: 36px; }
.hero p { font-size: 20px; }

.icon-containter {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 40px;
}

.icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    border: 1px solid #003371;
    border-radius: 4px;
    background: #fff;
    text-align: center;
}

.icons .title {
    font-size: 18px;
    padding: 9px 0;
    font-weight: 600;
    width: 100%;
    color: white;
    background: #003371;
    border-radius: 4px;
}

.icons .img img { max-width: 100%; height: auto; }

.assortment {
    padding: 40px 20px;
    text-align: center;
}

.assortment h2 {
    margin-top: 50px;
    font-size: 40px;
    color: var(--secondary-color);
}

.assortment p {
    max-width: 800px;
    margin: 20px auto;
    font-size: 20px;
    line-height: 26px;
    color: var(--secondary-color);
}

.ten-reasons {
    padding: 40px 20px;
    background-color: #f8f8f8;
}

.ten-reasons h2 {
    text-align: center;
    font-size: 28px;
    color: var(--secondary-color);
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.reason {
    background-color: #fff;
    padding: 20px;
    border: var(--border-gray);
    border-radius: 5px;
}

.reason h3 { font-size: 18px; color: var(--secondary-color); }

.dealer-form {
    padding: 40px 20px;
    text-align: center;
}

.dealer-form h2 {
    font-size: 28px;
    color: var(--secondary-color);
}

.dealer-form form {
    max-width: 900px;
    margin: 0 auto;
}

/* Форма */
.d_form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    align-items: start;
    width: 100%;
}

.d_form .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.d_form label {
    font-weight: bold;
    text-align: left;
    font-size: 14px;
}

.d_form input,
.d_form select,
.d_form textarea {
    padding: 0 50px 0 20px;
    overflow: hidden;
    background: var(--input-bg);
    height: 42px;
    border-radius: 6px;
    box-shadow: var(--shadow);
    border: none;
    position: relative;
    box-sizing: border-box;
    width: 100%;

}

.d_form textarea {
    /*height: 100px;*/
    /*resize: vertical;*/
    /*padding: 0 50px 0 20px; !* Добавлен отступ как в инпутах *!*/
}

.d_form input::placeholder,
.d_form select::placeholder,
.d_form textarea::placeholder {
    color: var(--primary-color); /* Красный цвет для плейсхолдеров */
    opacity: 1; /* Убеждаемся, что цвет виден */
}

.d_form .checkbox-group,
.d_form button {
    grid-column: 1 / span 2;
}

.d_form .checkbox-label {
    margin: 20px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.d_form .checkbox-label a {
    margin: 0 5px;
}

.d_form button {
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.d_form button:hover { background-color: #001f4d; }

@media (max-width: 768px) {
    .assortment {
        padding: 0 20px;
    }
    .assortment img {
        width: 100%;
    }
    .features { grid-template-columns: repeat(2, 1fr); }
    .d_form { grid-template-columns: 1fr; }
    .d_form .form-group { grid-column: 1; }
    .feature-card:nth-child(n+2) { margin-top: 0; }
    .main-panel {
        margin: 0;
    }
    .assortment h2 {
        margin-top: 20px;
        font-size: 20px;
        line-height: 30px;
    }
    .icons {
        flex-wrap: wrap;
        margin: 10px;
        flex-basis: 40%;
    }
    .icon-containter {
        margin: 0;
    }

    .feature-card {
        margin: 0 auto;
    }
    .feature-card:nth-child(1) {
         margin-top: 0px;
    }
    .d_form {
        width: auto;
    }
    .img a {
        border: 0 !important;
    }

}

@media (max-width: 600px) {
    .features { grid-template-columns: 1fr; }
}