/* Сброс и защита от прокрутки */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    color: #333;
    background: transparent;
}

/* Базовые отступы */
header, section {
    padding: 20px;
}

h1, h2 {
    margin-bottom: 15px;
}

/* Кнопка */
button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

/* 1. Шапка */
header {
    background-color: #e9ecef;
    text-align: center;
    color: #000000;
}

.title{
    background: #04457e;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: aliceblue;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.slogan {
    font-size: 16px;
    margin-top: 20px;
    font-weight: 600;
}

.contacts {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

/* 2. Баннер */
#banner {
    background: #e9ecef;
    text-align: center;
    padding: 40px 20px;
}

/* 3. Услуги */


#services .cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: pointer;
}

.card:hover{
    background: #00aae7;
    color: #ffffff;
}

/* 4. Карта */
#map_box {
    background: #00000085 url(/img/Companions/Companion_1/car.png) no-repeat center;
    background-size: cover;
    width: 100vw;
    height: 461px;
    display: flex;
    flex-direction: column;
    background-blend-mode: hard-light;
    border-top: 4px solid aliceblue;
    border-bottom: 4px solid darkgray;
}

#map {
    width: 44vw;
    height: 343px;
    background: #ccc;
    border-radius: 8px;
    /* z-index: 1000; */
    /* position: relative; */
    border: 2px dashed #e9ecef;
    /*position: absolute;*/
}

/* 5. Примеры работ */
#portfolio .examples {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.photo {
    height: 150px;
    background-color: #ddd;
    border-radius: 8px;
}

blockquote {
    font-style: italic;
    color: #555;
    margin: 0;
    padding-left: 10px;
    border-left: 4px solid #007bff;
}

#city-input{
    width: 132px;
}

.open_num_orders{
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.open_phone_telegram{
    width: 90%;
    height: 90px;
}

.open_phone_telegram::placeholder{
    font-size: 15px;
    color: #b3b3b3;
}

.btn_open_fields_num_orders, .btn_open_num_orders{
    background: #dfdfdf;
    color: #278cfb;
    cursor: pointer;
}

.btn_open_fields_num_orders:hover, .btn_open_num_orders:hover{
    background: #b3b1b1;
    color: #278cfb;
}

.opt{
    display: none;
}

/* 6. Партнёрка */
#partners {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
}

/* 7. Контактная форма */
.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input, select, textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.problem{
    padding: 10px;
    font-size: 16px;
    border: 1px solid #8dffab;
    border-radius: 6px;
    height: 83px;
}

.problem::placeholder{
    font-size: 15px;
    color: #b3b3b3;
}

.phone_telegram{
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    height: 90px;
}

.phone_telegram::placeholder{
    font-size: 15px;
    color: #b3b3b3;
}

.brand{
    border: 1px solid #8dffab;
}

.brand::placeholder{
    font-size: 15px;
    color: #b3b3b3;
}
#location-status{
    margin: 15px 0 0 0;
    font-size: 12px;
}

#manual-city{
    display: none;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin: 15px 0 0 0;
    flex-flow: row wrap;
}

#btn-city-input{
    cursor: pointer;
}

#btn-city-input:hover{
    background: #9e9e9e;
    color: #ffffff;
}

.services_order{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 23px;
    margin: 23px;
}

.service_order{
    display: flex;
    align-items: center;
    gap: 20px;
}

.service_label{

}

/* 8. Футер */
.footer {
    background: #f1f1f1;
    font-size: 14px;
    color: #666;
    text-align: center;
    padding: 20px;
}

.footer-links{
    padding-bottom: 10px;
}

.footer-links a {
    margin: 0 5px;
    color: #007bff;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.fieldset {
    margin: 0 0 6px 0;
    border: none;
    padding: 0;
}

legend {
    font-weight: bold;
    margin-bottom: 10px;
}

.btn_order{
    margin-top: 18px;
}

.fullscreen {
    position: absolute;
    width: 25px;
    height: 25px;
    background: url(/img/Companions/Companion_1/fullscreen.png) no-repeat center;
    background-size: cover;
    z-index: 1;
    transform: scaleX(-1);
    margin: 10px;
    padding: 13px;
    filter: drop-shadow(2px 4px 6px black);
    cursor: pointer;
}

.cart{
    font-size: 23px;
    font-weight: 600;
}

.popup-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-size: 16px;
    z-index: 9999;
    opacity: 0.95;
    animation: slideIn 0.4s ease-out;
    margin: 0 0 0 15px;
}

.popup-message-del {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #af4c6a;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-size: 16px;
    z-index: 9999;
    opacity: 0.95;
    animation: slideIn 0.4s ease-out;
    margin: 0 0 0 15px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 0.95;
    }
}


/* Адаптивность */
@media (min-width: 600px) {
    #services .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    #services .cards {
        grid-template-columns: repeat(4, 1fr);
    }

    #portfolio .examples {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .examples > .photo, .examples > blockquote {
        flex: 1 1 45%;
    }
}
