main{
    background: url("../image/backgr-3.png");
    background-size: cover;
    margin-top: -32px;

}
body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
}
.control-label{
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}
/* Заголовки */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.route-header h1 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
}

/* Сетка формы */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 171px 0 56px 0;
}

/* Секции формы */
.form-section {
    background-color: #ffffff;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

/* Элементы формы */
.form-group {
    margin-bottom: 1.75rem;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.025em;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    transition: all 0.2s;
    background-color: #ffffff;
}

.form-control:focus {
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Выпадающий список */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}

/* Кнопка */
.btn-submit {
    width: 100%;
    padding: 1rem;
    background-color: #2563eb;
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.btn-submit:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Карта */
.map-container {
    height: 500px;
    width: 100%;
    border: 1px solid #e2e8f0;
    background-color: #f1f5f9;
    margin-top: 1rem;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .form-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }

    .map-container {
        height: 400px;
    }
}

/* Календарь */
input[type="date"] {
    font-family: 'Manrope', sans-serif;
    padding: 0.875rem 1rem;
}

.select-city-btn {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
}

/* Карта */
.map-container {
    height: 600px;
    width: 100%;
    border: 1px solid #e2e8f0;
    background-color: #f1f5f9;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Секции формы */
.form-section {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: #475569;
    outline: none;
    box-shadow: inset 0 0 0 1px #475569;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Выпадающий список */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* Кнопка */
.btn-submit {
    width: 100%;
    padding: 16px;
    background-color: #1946c6;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background-color: #1e293b;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .route-content {
        padding: 24px;
    }

    .map-container {
        height: 400px;
    }
}

/* Стили для Яндекс.Карт */
.ymaps-2-1-79-balloon__content {
    padding: 16px !important;
    margin: 0 !important;
}

.ymaps-2-1-79-balloon__tail {
    display: none !important;
}

.city-balloon {
    font-family: inherit;
}

.city-balloon h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
}

.select-city-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #0f172a;
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.select-city-btn:hover {
    background-color: #1e293b;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-section {
    animation: fadeIn 0.3s ease-out forwards;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
