:root {
    --primary: #3b5d50;
    --primary-light: #4d7a6b;
    --primary-dark: #2a4238;
    --accent: #f9b23f;
    --light: #f8f9f5;
    --dark: #1f2c28;
    --shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    background: linear-gradient(145deg, #ffffff 0%, #f2f7f2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6, .display {
    font-family: 'Unbounded', cursive;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.navbar {
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Unbounded', cursive;
    font-weight: 700;
    color: var(--primary) !important;
    font-size: 1.6rem;
}

.nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    margin: 0 0.5rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    box-shadow: 0 8px 20px -8px var(--primary);
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -8px var(--primary-dark);
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.btn-link:hover {
    text-decoration: underline;
}

.hero {
    padding: 120px 0 80px;
    background: linear-gradient(145deg, #ffffff 0%, #f2f7f2 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,93,80,0.03) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
}

.hero p {
    font-size: 1.2rem;
    color: #5d6f68;
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: #6c7e76;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.feature-card {
    background: white;
    border-radius: 40px;
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow);
    height: 100%;
    transition: transform 0.3s;
    border: 1px solid rgba(0,0,0,0.02);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-light);
    color: white;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.8rem;
}

.step-card {
    background: white;
    border-radius: 30px;
    padding: 2rem;
    box-shadow: var(--shadow);
    height: 100%;
    border: 1px solid #ecf3ef;
    position: relative;
}

.step-number {
    font-family: 'Unbounded', cursive;
    font-weight: 700;
    font-size: 3rem;
    color: var(--primary-light);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    right: 20px;
}

.city-badge {
    background: white;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    font-weight: 500;
    color: var(--primary-dark);
    border: 1px solid #e3ece7;
    transition: all 0.2s;
    display: inline-block;
    margin: 0.3rem;
}

.city-badge:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.testimonial-card {
    background: white;
    border-radius: 30px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid #e9f0ec;
    margin: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: #d9e3de;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
}

.form-control, .form-select {
    border-radius: 50px;
    border: 1px solid #dde5e0;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(59,93,80,0.25);
}

.card-form {
    background: white;
    border-radius: 40px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.02);
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

.error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.success-message {
    color: #28a745;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.role-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 1rem 0;
}

.role-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 2px solid #dde5e0;
    transition: all 0.2s;
}

.role-option.active {
    border-color: var(--primary);
    background-color: rgba(59,93,80,0.05);
}

.role-option input[type="radio"] {
    display: none;
}

.role-option i {
    font-size: 1.2rem;
    color: var(--primary);
}

.verification-section {
    background: #f8fbf9;
    border-radius: 30px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid #e3ece7;
}

.verification-badge {
    background: var(--primary-light);
    color: white;
    border-radius: 30px;
    padding: 0.3rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.resend-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
}

.resend-link:hover {
    text-decoration: underline;
}

.timer-text {
    color: #6c7e76;
    font-size: 0.9rem;
}

.footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 0 30px;
    border-radius: 60px 60px 0 0;
    margin-top: 60px;
}

.footer a {
    color: #c7ddd2;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: white;
}

.footer hr {
    background-color: #5f897b;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
 /* чтобы центральный элемент выступал вверх */
    padding: 5px 0 0;
    border-radius: 30px 30px 0 0;
    z-index: 1000;
    height: 80px;
}

.bottom-nav a {
    color: var(--dark);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.2s;
    padding: 10px 0 15px;
    flex: 1;
    border-radius: 30px 30px 0 0;
}

.bottom-nav a i {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.bottom-nav a.central {
    font-size: 1.1rem;
    background-color: var(--primary);
    color: white;
    border-radius: 30px 30px 0 0;
    padding: 15px 0 20px;
    margin-top: -10px;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.15);
    flex: 1.2;
 /* делаем чуть шире */;
}

.bottom-nav a.central i {
    font-size: 1.8rem;
}

.bottom-nav a.central span {
    font-weight: 600;
}

.bottom-nav a:hover {
    color: var(--primary);
}

.bottom-nav a.central:hover {
    background-color: var(--primary-dark);
    color: white;
}

#map {
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Кнопка геолокации */
.locate-btn {
    position: fixed;
    right: 20px;
    bottom: 100px;
    background: white;
    border: none;
    border-radius: 40px;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    transition: transform 0.2s;
}

.locate-btn:hover {
    transform: scale(1.1);
}

/* Кнопка открытия окна заказа */
.open-order-btn {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 2000;
    cursor: pointer;
    transition: all 0.2s;
}

.open-order-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Модальное окно заказа */
.order-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 3000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.order-modal-content {
    background: white;
    border-radius: 30px 30px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.order-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    border-radius: 30px 30px 0 0;
}

.order-modal-title {
    margin: 0;
    font-weight: 600;
}

.order-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.order-modal-close:hover {
    background: #f5f5f5;
}

.order-modal-body {
    padding: 20px;
}

/* Модальное окно выбора местоположения */
.location-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 3500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.location-picker-content {
    background: white;
    border-radius: 30px 30px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.location-picker-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
}

.location-picker-body {
    padding: 20px;
}

/* Остальные стили */
.location-input {
    background: #f5f7fa;
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.location-input:hover {
    background: #edf0f5;
}

.location-icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.location-icon-a {
    background: #4CAF50;
    color: white;
}

.location-icon-b {
    background: var(--primary);
    color: white;
}

.location-details {
    flex: 1;
}

.location-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2px;
}

.location-address {
    font-weight: 500;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.swap-btn-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.swap-btn {
    background: #f5f7fa;
    border: 1px solid #ddd;
    border-radius: 40px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    color: var(--primary);
    font-weight: 500;
}

.swap-btn:hover {
    background: #edf0f5;
}

.trip-info {
    background: #f5f7fa;
    border-radius: 20px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.trip-info-item {
    text-align: center;
    flex: 1;
}

.trip-info-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark);
}

.trip-info-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.tariff-info {
    margin: 20px 0;
}

.order-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px;
    width: 100%;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 20px 0;
    transition: all 0.2s;
}

.order-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px var(--primary);
}

.order-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.custom-marker-a, .custom-marker-b {
    background: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 3px solid;
}

.custom-marker-a {
    background: #4CAF50;
    border-color: white;
    color: white;
}

.custom-marker-b {
    background: var(--primary);
    border-color: white;
    color: white;
}

        /* Точки маршрута */
.location-input {
    background: #f5f7fa;
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.location-input:hover {
    background: #edf0f5;
}

.location-icon {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.location-icon-a {
    background: #4CAF50;
    color: white;
}

.location-icon-b {
    background: var(--primary);
    color: white;
}

.location-details {
    flex: 1;
}

.location-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2px;
}

.location-address {
    font-weight: 500;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.swap-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

        /* Тарифы */
.tariffs-grid {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.tariffs-grid::-webkit-scrollbar {
    display: none;
}

.tariff-card {
    flex: 0 0 100px;
    background: #f5f7fa;
    border-radius: 20px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.tariff-card.selected {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 5px 15px rgba(59,93,80,0.1);
}

.tariff-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.tariff-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.tariff-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
}

        /* Кнопка заказа */
.order-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 18px;
    width: 100%;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 20px 0;
    transition: all 0.2s;
}

.order-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px var(--primary);
}

.order-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

        /* Информация о поездке */
.trip-info {
    background: #f5f7fa;
    border-radius: 20px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.trip-info-item {
    text-align: center;
    flex: 1;
}

.trip-info-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark);
}

.trip-info-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

        /* Кнопка геолокации */
.locate-btn {
    position: fixed;
    right: 20px;
    background: white;
    border: none;
    border-radius: 40px;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 2001;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    cursor: pointer;
    transition: transform 0.2s;
     bottom: 90px;
}

.locate-btn:hover {
    transform: scale(1.1);
}

.locate-btn i {
    font-size: 1.3rem;
}

        /* Кастомные маркеры */
.custom-marker-a, .custom-marker-b {
    background: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 3px solid;
}

.custom-marker-a {
    background: #4CAF50;
    border-color: white;
    color: white;
}

.custom-marker-b {
    background: var(--primary);
    border-color: white;
    color: white;
}

        /* Геокодер поверх карты */
.geocoder-container {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
}

.leaflet-control-geocoder {
    width: 100%;
    border-radius: 50px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

        /* Стили для пикера местоположения */
.location-picker {
    padding: 15px 0;
    max-height: 60vh;
    overflow-y: auto;
}

.location-picker .list-group-item {
    cursor: pointer;
    border-left: none;
    border-right: none;
    padding: 12px 15px;
}

.location-picker .list-group-item:first-child {
    border-top: none;
}

.location-picker .list-group-item:last-child {
    border-bottom: none;
}

.location-picker .list-group-item:hover {
    background-color: #f5f7fa;
}

.btn-close {
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .order-panel {
        transform: translateY(calc(100% - 60px));
    }

    .panel-handle {
        height: 60px;
    }

    .locate-btn {
        bottom: 70px;
    }
}

.tariff-info {
    margin: 20px 0;
}

.tariff-info #tariffDetails {
    border-radius: 20px;
    background-color: #f5f7fa;
    padding: 15px;
}

@media (max-width: 768px) {
    .filter-card {
        max-height: 35vh;
        overflow-y: auto;
    }
}
@media (max-width: 768px) {
    .order-panel .panel-content {
        padding-bottom: 80px;
    }
}
@media (max-width: 768px) {
    .locate-btn {
        bottom: 90px;
    }
}
/* Уведомление на карте */
.map-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    z-index: 2000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    pointer-events: none;
    text-align: center;
    white-space: nowrap;
}