/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* ===== ШАПКА ===== */
header {
    background: #ffcc00;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-wrapper img {
    height: 80px;
    width: auto;
    vertical-align: middle;
}

.logo-text strong {
    font-size: 1.5rem;
    color: #222;
}

.logo-text p {
    font-size: 0.8rem;
    color: #555;
    margin-top: 5px;
}

.contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.contacts a {
    text-decoration: none;
    color: #222;
    font-weight: bold;
    background: #fff3d1;
    padding: 5px 12px;
    border-radius: 20px;
    transition: 0.2s;
}

.contacts a:hover {
    background: #fff;
}

.driver-btn {
    background: #4680c2 !important;
    color: #fff !important;
}

/* ===== ОСНОВНЫЕ КАРТОЧКИ ===== */
.info-card {
    background: #fff;
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-card h3 {
    color: #ffcc00;
    margin-bottom: 15px;
    font-size: 22px;
}

/* Блок телефонов */
.phone-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.phone-item {
    text-align: center;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    flex: 1;
    min-width: 180px;
}

.phone-item .label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.phone-item .number {
    font-size: 22px;
    font-weight: bold;
}

.phone-item .number a {
    text-decoration: none;
    color: #222;
}

/* Кнопки приложений и телефонов */
.app-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #222;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.app-btn:hover {
    background: #444;
    transform: translateY(-2px);
}

.phone-btn {
    display: inline-block;
    background: #ffcc00;
    color: #222;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
}

/* Популярные направления */
.directions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.direction-card {
    background: #f0f8ff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    flex: 1;
    min-width: 180px;
    transition: 0.2s;
}

.direction-card a {
    text-decoration: none;
    font-weight: bold;
    color: #222;
    display: block;
}

.direction-card:hover {
    background: #e0f0ff;
    transform: translateY(-3px);
}

/* Блок преимуществ для водителей */
.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.benefit-card {
    flex: 1;
    min-width: 180px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    transition: 0.2s;
}

.benefit-card:hover {
    transform: translateY(-3px);
}

.benefit-card h4 {
    color: #ffcc00;
    margin: 10px 0;
}

/* FAQ (аккордеон) */
.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.faq-question {
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    color: #ffcc00;
}

.faq-answer {
    display: none;
    margin-top: 10px;
    padding-left: 10px;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Общие кнопки */
.btn {
    display: inline-block;
    background: #ffcc00;
    color: #222;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

.btn:hover {
    background: #e6b800;
    transform: translateY(-2px);
}

/* Виджет Uptaxi */
#order-form-uptaxi {
    width: 100%;
    overflow: visible;
}

#order-form-uptaxi iframe {
    width: 100% !important;
    border: none;
}

.hidden-widget {
    display: none;
}

.visible-widget {
    display: block;
}

/* ===== ПОДВАЛ ===== */
footer {
    background: #333;
    color: #ddd;
    padding: 30px 0 20px;
    margin-top: 40px;
    width: 100%;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h4 {
    color: #ffcc00;
    margin-bottom: 15px;
}

.footer-col p,
.footer-col li {
    color: #dddddd;
    font-size: 14px;
    line-height: 1.5;
}

.footer-col ul {
    list-style: none;
    padding-left: 0;
}

.footer-col a {
    color: #ffcc00;
    text-decoration: none;
    transition: 0.2s;
}

.footer-col a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #555;
    font-size: 12px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    header .container {
        flex-direction: column;
        text-align: center;
    }
    .logo-wrapper {
        flex-direction: column;
        text-align: center;
    }
    .logo-wrapper img {
        height: 50px;
    }
    .logo-text strong {
        font-size: 1.2rem;
    }
    .contacts {
        justify-content: center;
    }
    .phone-block {
        flex-direction: column;
        align-items: stretch;
    }
    .directions-grid,
    .benefits-grid {
        flex-direction: column;
    }
    .footer-grid {
        flex-direction: column;
        text-align: center;
    }
    #order-form-uptaxi {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    #order-form-uptaxi iframe {
        min-width: 480px;
        width: auto !important;
    }
}

@media (max-width: 480px) {
    .info-card {
        padding: 15px;
    }
    .btn, .app-btn, .phone-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}