:root {

    --global-color: #6996ba;
    --primary-blue: #007AFF;
    --dark-blue: #0F172A;
    --bg-color: #F2F7FB;
    --text-color: #1E293B;
    --text-secondary: #64748B;
    --border-color: #E2E8F0;
    --success-green: #10B981;
    --warning-red: #EF4444;
    --neutral-gray: #94A3B8;
    --card-bg: #FFFFFF;



    /* Основные цвета */
    --coc-primary: #2196f3;       /* Синий */
    --coc-primary-dark: #1976d2;  /* Тёмно-синий */
    --coc-success: #4caf50;       /* Зелёный */
    --coc-warning: #ff9800;       /* Оранжевый */
    --coc-danger: #f44336;        /* Красный */

    /* Тексты */
    --coc-text: #2c3e50;          /* Тёмный текст */
    --coc-text-light: #7f8c8d;    /* Серый текст */

    /* Фон и границы */
    --coc-bg: #ffffff;            /* Белый фон карточки */
    --coc-bg-alt: #f8f9fa;        /* Светло-серый фон блоков */
    --coc-border: #eaeaea;        /* Светлая граница */

    /* Тени и отступы */
    --coc-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --coc-radius: 16px;
    --coc-touch-min: 48px;        /* Удобный размер для пальца */




    --odp-bg: #f4f6f8;         /* Фон страницы (светло-серый) */
    --odp-card-bg: #ffffff;    /* Фон карточек */
    --odp-text: #2c3e50;
    --odp-text-light: #7f8c8d;
    --odp-primary: #2196f3;
    --odp-danger: #f44336;
    --odp-radius: 16px;




}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}


html, body {
    overflow-x: hidden;
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    background-color: var(--bg-color) !important;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    font-family: "Golos Text",sans-serif;
    box-sizing: border-box;

}


/*------header------*/



.Header {
    height: 70px !important;
}


.logoContent {
    padding: 10px !important;
    margin-top: 7px !important;
}

.logoContent img {
    width: 156px !important;
}

.contact {
    margin-top: -11px;
}

.phoneContent a, .mailContent a {
    font-size: 18px !important;
}

.inBurgerInfo {
    border-radius: 43px !important;

}

.inBurgerInfo i {
    color: #5699d7;
    font-size: 22px !important;
}

.inContent {
    display: unset !important;
    align-items: unset !important;
}

.infoHeader {
    top: 72px !important;
}


.content-profile {
    margin-top: 120px;
    margin-bottom: 115px;

}


.autoReg {
    width: 500px;
    margin: 0 auto;
}


.switchWindow {
    background-color: #e9e9e9;
    border-radius: 50px;
    padding: 6px;
    display: flex;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.switchBut {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
    text-align: center;
}

.onSwitch {
    background-color: #1a8ad5;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.windowAutoReg {
    background-color: #F4F6F8;
    width: 100%;
    max-width: 498px;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    color: #0F172A;
    margin-top: -40px;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px);

}

.forInputLineLabel {
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #0f2c4c;
}

.headAutoReg {
    background: #062847;
    color: white;
    font-size: 20px;
    text-align: center;
    padding: 14px;
    border-radius: 10px 10px 0 0;
    box-shadow: #6f767c 0 0 6px 4px;
    display: none;
}


.bodyAutoReg {
    display: grid;
    gap: 10px;
    padding: 25px;
}

.input-auto-reg {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    background-color: white;
    font-size: 15px;
    color: #334155;
    transition: box-shadow 0.2s;
}

.input-auto-reg::placeholder {
    color: #CBD5E1;
    letter-spacing: normal;
    font-size: 16px;
}

.input-auto-reg:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}




#forPassOpenClose {
    position: relative;
}

#ShowHidePassword {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 30px;
    cursor: pointer;
}


.footerAutoReg {
    padding: 5px;
    margin-top: 10px;
}

.buttonBlue {
    margin: 0 auto;
}


.errMsgAuto, .errMsgReg {
    text-align: center;
    line-height: 1em;
    font-size: 14px;
    height: 20px;
    color: red;
}

.forButAutoReg {
    margin-bottom: 5px;
}


.forRecoverPass {
    text-align: center;
    margin-top: 20px;
}

.forRecoverPass a {
    color: var(--global-color);
    font-weight: 600;
}


.nameRegOk {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--global-color);
    line-height: 1.3;
}

.forRegOkCode {
    margin-bottom: 30px;
}


.reCode {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.subRecode {
    font-size: 14px;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}


.codeAgain {
    cursor: pointer;
    font-size: 18px;
}

.codeAgain:hover {
    color: #51799e;
}


.closeRegister {
    font-size: 15px;
    font-weight: 600;
    color: #007AFF;
    cursor: pointer;
    text-decoration: none;
    padding: 14px 40px;
    border: 2px solid #007AFF;
    border-radius: 50px;
    transition: all 0.2s;
    background: transparent;
    display: inline-block;
    white-space: nowrap;
}
.closeRegister:hover {
    background-color: #F0F9FF;
    transform: translateY(-1px);
}

.endRegister {
    position: relative;
}

.endRegisterText {
    position: absolute;
    color: white;
    top: 0;
    width: 100%;
    text-align: center;
    margin-top: 48px;
    font-size: 19px;
}



.endRegister img {
    width: 440px;
    border-radius: 16px;
}


/*-------Create-Acc--------*/

.boxCreateAccount {
    width: 1200px;
    margin: 0 auto;
}




.modal {
    background-color: #F4F6F8;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.modal-header {
    background-color: #0a2647;
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
}

.close-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 30px 25px;
}

.role-selector {
    margin-bottom: 30px;
}

.role-label {
    font-size: 24px;
    color: #b0b0b0;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.role-options {
    display: flex;
    background-color: #e0e0e0;
    border-radius: 25px;
    padding: 5px;
    gap: 5px;
}

.role-option {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background-color: transparent;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s;
}

.role-option.active {
    background-color: white;
    color: #0a2647;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.role-option:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.5);
}

.content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

#contentCreateAccount {
    display: block;
}

.text-content {
    flex: 1;
}

.features-title {
    font-size: 22px;
    color: #007AFF;
    font-weight: 600;
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    color: #333;
    font-size: 15px;
    line-height: 1.4;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #34c759;
    font-weight: bold;
    font-size: 18px;
}

.illustration {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration svg {
    width: 200px;
    height: auto;
}

.modal-footer {
    padding: 20px 25px 30px;
    display: grid;
    gap: 10px;
}

.continue-btn {
    width: 100%;
    padding: 16px;
    background-color: #007AFF;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.back-btn {
    width: 100%;
    padding: 16px;
    background-color: #4d6989;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.forPolicy {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.errMsgCreate {
    text-align: center;
    margin-top: -20px;
}


.continue-btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.continue-btn:active {
    transform: translateY(0);
}






.checkBox {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 20px;
}

.checkBox a {
    font-size: 16px;
    color: #007aff;
    font-family: math;
}

.checkBox input[type="checkbox"] {
    opacity: 0;
}


.checkBox label {
    position: relative;
    display: inline-block;

    /*16px width of fake checkbox + 6px distance between fake checkbox and text*/
    padding-left: 22px;
}


.checkBox label::before,
.checkBox label::after {
    position: absolute;
    content: "";

    /*Needed for the line-height to take effect*/
    display: inline-block;
}


.checkBox label::before{
    height: 16px;
    width: 16px;

    border: 1px solid;
    left: 0px;

    /*(24px line-height - 16px height of fake checkbox) / 2 - 1px for the border
     *to vertically center it.
     */
    top: 3px;
}

/*Checkmark of the fake checkbox*/
.checkBox label::after {
    height: 5px;
    width: 9px;
    border-left: 2px solid;
    border-bottom: 2px solid;

    transform: rotate(-45deg);

    left: 4px;
    top: 7px;
}



.checkBox input[type="checkbox"] + label::after {
    content: none;
}

/*Unhide on the checked state*/
.checkBox input[type="checkbox"]:checked + label::after {
    content: "";
}



@media (max-width: 600px) {


    .logoContent {
        margin-top: 22px !important;
    }

    .autoReg {
        width: 98%;
    }

    .content-profile {
        margin-top: 110px;
    }

    .endRegister img {
        width: 100%;
    }

    .content {
        flex-direction: column;
        margin-top: -20px;
    }

    .illustration {
        order: -1;
        margin-bottom: 20px;
    }

    .illustration svg {
        width: 150px;
    }

    .role-options {
        flex-direction: column;
    }

    .role-option {
        text-align: center;
    }


    .switchWindow {
        flex-direction: column;
    }

    .boxCreateAccount {
        width: 100%;
    }
    .modal {
        width: 98%;
    }

    .OkReg img {
        width: 100%;
    }


    .lkContent, .botContent {
        height: 33px !important;
    }
}







/*-------LK--------*/


.content-lk {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 90px;
    margin-bottom: 20px;
    width: 1200px;

}

@media screen and (max-width: 1200px) {
    .content-lk {
        width: 100%;

    }
}


@media screen and (max-width: 800px) {
    .dashboard-grid {
        display: flex !important;
        flex-direction: column;
    }
}



@media screen and (max-width: 600px) {


    .content-lk {
        width: 100%;

    }

    .filters {
        display: grid !important;
        grid-template-columns: repeat(auto-fill,minmax(40%,1fr));
    }


    .dashboard-grid {
        display: flex !important;
        flex-direction: column;
    }

    .ohp-car-main {
        flex-direction: column;
        gap: 10px;
    }

    .ohp-timeline-item .content {
        height: 100px;
    }

}

/* Main Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.welcome-text h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--dark-blue);
}

.phone-number {
    color: var(--text-secondary);
    font-size: 14px;
}

.phone-number strong {
    color: var(--text-color);
    font-weight: 600;
}

/* Balance Card */
.balance-card {
    background: var(--dark-blue);
    color: white;
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.balance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.order-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.badge-count {
    background: var(--primary-blue);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.badge-count.secondary {
    background: rgba(255,255,255,0.2);
}

.ref-code {
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.balance-amount-label {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
}

.balance-actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-primary.home {
    background: #3c5774;
}

/* Tabs & Filters */
.tabs-container {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.tabs-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    background: #F1F5F9;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tab.active {
    background: var(--primary-blue);
    color: white;
}

.tab-count {
    background: white;
    color: var(--primary-blue);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.tab.active .tab-count {
    background: rgba(255,255,255,0.2);
    color: white;
}

.filters {
    display: flex;
    gap: 10px;
}

.btn-create {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all .6s;
}


#createOrder:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 78, 136, 0.47);
    background: #1a3a5c;
}

.filter-select {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: white;
    color: var(--text-secondary);
    cursor: pointer;
}

.notOrders {
    font-size: 20px;
    margin-top: 50px;
    margin-bottom: 50px;
    text-align: center;
}

/* Orders List */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.order-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.order-card.urgent {
    border-color: var(--warning-red);
    background: #FFFBFB;
}

.order-card.cancelled {
    border-color: var(--neutral-gray);
    background: #F8FAFC;
}

.order-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.order-number {
    font-weight: 800;
    font-size: 16px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.openDetails {
    text-decoration: none;
    color: white;
}

.status-new { background: var(--primary-blue); color: white; }
.status-cancelled { background: var(--neutral-gray); color: white; }
.status-completed { background: var(--success-green); color: white; }
.status-urgent { background: var(--warning-red); color: white; }

.order-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 15px;
    line-height: 1.4;
}

.order-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.price {
    color: var(--text-color);
    font-weight: 600;
}

.btn-details {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    float: right;
}

.load-more {
    width: 100%;
    padding: 15px;
    background: white;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.textOkReg {
    font-size: 20px;
    text-align: center;
    margin-bottom: 10px;
}

.OkReg img {
    min-width: 100%;
}




/*-----------------------------------Карточка заказа***************/


/* ===== Карточка ===== */
.client-order-card {
    background: var(--coc-bg);
    border-radius: var(--coc-radius);
    box-shadow: var(--coc-shadow);
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--coc-border);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--coc-text);
}

/* ===== Шапка ===== */
.coc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--coc-border);
    gap: 10px;
    flex-wrap: wrap;
}

.coc-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.coc-order-id {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--coc-text);
}

.coc-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Статусы (светлые фоны) */
.coc-status-badge.status-in-progress {
    background: #e3f2fd;
    color: var(--coc-primary-dark);
}
.coc-status-badge.status-new {
    background: #fff3e0;
    color: #ef6c00;
}
.coc-status-badge.status-completed {
    background: #e8f5e9;
    color: var(--coc-success);
}
.coc-status-badge.status-cancelled {
    background: #ffebee;
    color: var(--coc-danger);
}

.coc-created-at {
    font-size: 0.85rem;
    color: var(--coc-text-light);
    width: 100%;
}

/* ===== Трекер статуса (Мобильный) ===== */
.coc-tracker {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 4px;
    margin: 8px 0 16px;
    background: var(--coc-bg-alt);
    border-radius: 12px;
    position: relative;
}

/* Линия соединения */
.coc-tracker::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: #dfe6e9;
    z-index: 0;
}

.coc-tracker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.coc-tracker-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #dfe6e9;
    margin-bottom: 6px;
    transition: all 0.3s ease;
    display: grid;
    place-content: center;
}

.coc-tracker-item.active .coc-tracker-dot {
    background: var(--coc-primary);
    border-color: var(--coc-primary);
}

/* Анимация пульсации для текущего шага */
.coc-tracker-dot-pulse {
    animation: cocPulse 2s infinite;
}

@keyframes cocPulse {
    0% { box-shadow: 0 0 0 0 rgba(33,150,243,0.4); }
    50% { box-shadow: 0 0 0 20px rgba(33,150,243,0); }
    100% { box-shadow: 0 0 0 0 rgba(33,150,243,0); }
}

.coc-tracker-text {
    font-size: 0.7rem;
    color: var(--coc-text-light);
    text-align: center;
    max-width: 50px;
    line-height: 1.2;
}

.coc-tracker-item.active .coc-tracker-text,
.coc-tracker-item.current .coc-tracker-text {
    color: var(--coc-text);
    font-weight: 600;
}

/* ===== Информация ===== */
.coc-info {
    margin: 8px 0 16px;
}

.coc-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px dashed var(--coc-border);
    gap: 12px;
}

.coc-info-row:last-child {
    border-bottom: none;
}

.coc-label {
    color: var(--coc-text-light);
    font-weight: 500;
    flex-shrink: 0;
    min-width: 90px;
}

.coc-value {
    font-weight: 600;
    color: var(--coc-text);
    text-align: right;
    word-break: break-word;
}

/* Бейдж "Автоэлектрик" */
.coc-service-type {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e3f2fd;
    color: var(--coc-primary-dark);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.coc-address {
    font-weight: 500;
}

.coc-price-row .coc-label {
    align-self: center;
}

.coc-price {
    color: var(--coc-success);
    font-size: 1.15rem;
    font-weight: 700;
}

.coc-tel a {
    color: var(--coc-primary);
}

/* ===== Исполнитель ===== */
.coc-executor {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--coc-bg-alt);
    border-radius: 12px;
    margin: 8px 0 16px;
    border: 1px solid #f0f0f0;
}

.coc-executor-photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--coc-primary), var(--coc-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    color: white;
    box-shadow: 0 4px 10px rgba(33,150,243,0.3);
}

.coc-executor-details {
    flex: 1;
    min-width: 0;
}

.coc-executor-name {
    font-weight: 700;
    color: var(--coc-text);
    margin-bottom: 2px;
    font-size: 1rem;
}

.coc-executor-meta {
    font-size: 0.85rem;
    color: var(--coc-text-light);
    margin-bottom: 10px;
}

.coc-rating {
    color: #ffc107;
    font-weight: 600;
}

.coc-executor-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.coc-action-btn {
    min-height: var(--coc-touch-min);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    white-space: nowrap;
}

/* Кнопка звонка (светлая) */
.coc-action-call {
    background: #ffffff;
    border: 1px solid var(--coc-border);
    color: var(--coc-text);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.coc-action-call:hover, .coc-action-call:active {
    border-color: var(--coc-primary);
    color: var(--coc-primary);
    background: #f0f7ff;
}

/* Кнопка Telegram (синяя) */
.coc-action-tg {
    background: #0088cc;
    color: white;
    border: 1px solid #0088cc;
    box-shadow: 0 2px 5px rgba(0,136,204,0.3);
}
.coc-action-tg:hover, .coc-action-tg:active {
    background: #0077b5;
    border-color: #0077b5;
}

/* ===== Уведомление ===== */
.coc-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    margin: 8px 0 16px;
    font-size: 0.9rem;
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid var(--coc-primary);
}

.coc-alert-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.coc-alert-text {
    line-height: 1.3;
}

/* ===== Кнопки действий ===== */
.coc-actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
}

.coc-btn {
    min-height: var(--coc-touch-min);
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

/* Главная кнопка */
.coc-btn-primary {
    background: linear-gradient(135deg, var(--coc-primary), var(--coc-primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(33,150,243,0.3);
}
.coc-btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(33,150,243,0.3);
}

/* Второстепенная кнопка */
.coc-btn-secondary {
    background: #ffffff;
    border: 1px solid var(--coc-border);
    color: var(--coc-text-light);
}
.coc-btn-secondary:hover,
.coc-btn-secondary:active {
    border-color: var(--coc-danger);
    color: var(--coc-danger);
    background: #fff5f5;
}

/* ===== АДАПТИВ: Планшеты и десктоп ===== */
@media (min-width: 600px) {
    .client-order-card {
        padding: 24px;
        font-size: 16px;
    }

    .coc-tracker::before {
        left: 30px;
        right: 30px;
        top: 16px;
    }

    .coc-tracker-dot {
        width: 24px;
        height: 24px;
    }

    .coc-tracker-text {
        font-size: 0.8rem;
        max-width: none;
    }

    .coc-label {
        min-width: 120px;
    }

    .coc-executor-photo {
        width: 64px;
        height: 64px;
        font-size: 2.2rem;
    }

    .coc-actions {
        grid-template-columns: auto auto;
        justify-content: flex-end;
    }

    .coc-btn {
        min-width: 160px;
    }
}

/* ===== Доступность ===== */
.coc-btn:focus-visible,
.coc-action-btn:focus-visible {
    outline: 2px solid var(--coc-primary);
    outline-offset: 2px;
}


/*/-----------------ДЕТАЛИ-----===========*/


/* ===== Настройки страницы ===== */
:root {
    --ohp-bg: #f4f6f8;
    --ohp-card: #ffffff;
    --ohp-text: #2c3e50;
    --ohp-text-light: #7f8c8d;
    --ohp-primary: #2196f3;
    --ohp-success: #4caf50;
    --ohp-radius: 16px;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--ohp-bg);
    color: var(--ohp-text);
}

.order-history-page {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
}

/* ===== Шапка ===== */
.ohp-header {
    background: var(--ohp-card);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid #eaeaea;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ohp-back {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--ohp-text);
    cursor: pointer;
    padding: 0 10px 0 0;
}

.ohp-title-block {
    text-align: center;
    flex: 1;
}

.ohp-title-block h1 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--ohp-success); /* Зеленый, так как выполнено */
}

.ohp-subtitle {
    font-size: 0.8rem;
    color: var(--ohp-text-light);
}

.ohp-price-badge {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--ohp-text);
}

/* ===== Контейнер ===== */
.ohp-container {
    padding: 2px;
}

.ohp-section {
    margin-bottom: 20px;
}

.ohp-section-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--ohp-text);
}

/* ===== 1. Сообщение клиента ===== */
.ohp-client-message {
    background: var(--ohp-card);
    border-radius: var(--ohp-radius);
    padding: 16px;
    border: 1px solid #eaeaea;
}

.ohp-message-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ohp-avatar {
    width: 36px;
    height: 36px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.ohp-meta {
    display: flex;
    flex-direction: column;
}

.ohp-name {
    font-weight: 700;
    font-size: 0.9rem;
}

.ohp-time {
    font-size: 0.75rem;
    color: var(--ohp-text-light);
}

.ohp-message-body {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ohp-text);
    margin-bottom: 12px;
    border-left: 3px solid var(--ohp-primary);
}

.ohp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: #f0f0f0;
    color: #555;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== 2. Автомобиль ===== */
.ohp-car-card {
    background: var(--ohp-card);
    border-radius: var(--ohp-radius);
    padding: 16px;
    border: 1px solid #eaeaea;
}

.ohp-car-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eaeaea;
}

.ohp-car-model {
    font-weight: 700;
    font-size: 1.1rem;
}

.ohp-car-plate {
    background: #fff;
    border: 1px solid #ccc;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
}

.ohp-car-specs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-item .label {
    font-size: 0.7rem;
    color: var(--ohp-text-light);
    text-transform: uppercase;
}

.spec-item .val {
    font-weight: 600;
    font-size: 0.9rem;
}
.spec-item .val.mono {
    font-family: monospace;
}

/* ===== 3. Отчет мастера ===== */
.ohp-report-card {
    background: var(--ohp-card);
    border-radius: var(--ohp-radius);
    padding: 16px;
    border: 1px solid #eaeaea;
}

.ohp-report-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ohp-success);
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1rem;
}

.ohp-report-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ohp-text);
    margin-bottom: 16px;
}

.ohp-photos {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.addImg {
    min-width: 80px;
    height: 80px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #999;
    border: 1px dashed #ccc;
    cursor: pointer;
}

/* ===== 4. Финансы ===== */
.ohp-finance-card {
    background: var(--ohp-card);
    border-radius: var(--ohp-radius);
    padding: 16px;
    border: 1px solid #eaeaea;
}

.fin-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--ohp-text-light);
}

.fin-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    margin-top: 8px;
    border-top: 2px solid #f0f0f0;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--ohp-text);
}

.btn-receipt {
    width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    color: var(--ohp-text);
    font-weight: 600;
    cursor: pointer;
}

/* ===== 5. Оценка ===== */
.ohp-rating-box {
    background: var(--ohp-card);
    border-radius: var(--ohp-radius);
    padding: 20px;
    text-align: center;
    border: 1px solid #eaeaea;
}

.stars {
    font-size: 2rem;
    color: #e0e0e0;
    margin-bottom: 12px;
    cursor: pointer;
}

.stars .star.active {
    color: #ffc107;
}

.ohp-rating-box textarea {
    width: 100%;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    padding: 10px;
    font-family: inherit;
    margin-bottom: 12px;
    resize: vertical;
    box-sizing: border-box; /* Важно для padding */
}

.btn-submit-rating {
    background: var(--ohp-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
}

/* ===== 1. Карточка исполнителя (Новое) ===== */
.ohp-executor-card {
    background: var(--ohp-card);
    border-radius: var(--ohp-radius);
    padding: 16px;
    border: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    gap: 16px;
}

.ohp-executor-avatar {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(33,150,243,0.3);
}

.ohp-executor-info {
    flex: 1;
    min-width: 0; /* Для обрезки текста */
}

.ohp-executor-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ohp-text);
    margin-bottom: 4px;
}

.ohp-executor-id {
    font-size: 0.8rem;
    color: var(--ohp-text-light);
    margin-bottom: 4px;
}

.ohp-executor-id .mono {
    font-family: monospace;
    background: #f0f0f0;
    padding: 2px 4px;
    border-radius: 4px;
    color: #555;
}

.ohp-executor-rating {
    font-size: 0.85rem;
    color: var(--ohp-text);
    font-weight: 600;
}

.star-icon {
    color: #ffc107;
}

.ohp-executor-actions {
    flex-shrink: 0;
}

.btn-icon-call {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e3f2fd;
    color: #1976d2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-icon-call:hover {
    background: #bbdefb;
}

/* ===== 2. Бейдж типа работ (Новое) ===== */
.ohp-service-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e3f2fd;
    color: #1565c0;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 12px;
    border: 1px solid #bbdefb;
}

.ohp-service-type-badge .icon {
    font-size: 1.1rem;
}

/* ===== Адаптив для исполнителя ===== */
@media (max-width: 360px) {
    .ohp-executor-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .ohp-executor-actions {
        width: 100%;
    }

    .btn-icon-call {
        width: 100%;
        background: #1976d2;
        color: white;
    }
}


/* ===== Баннер даты закрытия (НОВОЕ) ===== */
.ohp-closed-date-banner {
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0 16px 16px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ohp-closed-date-banner .icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ohp-closed-date-banner .text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ohp-closed-date-banner .label {
    font-size: 0.85rem;
    color: #2e7d32;
    font-weight: 600;
}

.ohp-closed-date-banner .date {
    font-size: 1rem;
    color: #1b5e20;
    font-weight: 700;
}

/* ===== Дата в отчете исполнителя (НОВОЕ) ===== */
.ohp-report-closed {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px;
    margin: 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px dashed #dfe6e9;
}

.ohp-report-closed .label {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.ohp-report-closed .value {
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 700;
}

/* ===== Таймлайн с датой закрытия (НОВОЕ) ===== */
.ohp-timeline {
    background: var(--ohp-card);
    border-radius: var(--ohp-radius);
    padding: 20px 16px;
    border: 1px solid #eaeaea;
    position: relative;
}

.ohp-timeline::before {
    content: '';
    position: absolute;
    left: 26px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: #eaeaea;
}

.ohp-timeline-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
}

.ohp-timeline-item:last-child {
    margin-bottom: 0;
}

.ohp-timeline-item .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 3px solid var(--ohp-card);
    flex-shrink: 0;
    margin-top: 2px;
    z-index: 2;
}

.ohp-timeline-item.completed .dot {
    background: #2196f3;
}

.ohp-timeline-item.closed .dot {
    background: #4caf50;
    box-shadow: 0 0 0 4px rgba(76,175,80,0.2);
}

.ohp-timeline-item.closed-dot {
    background: #4caf50 !important;
}

.ohp-timeline-item .content {
    display: flex;
    flex-direction: column;
}

.ohp-timeline-item .time {
    font-size: 0.75rem;
    color: #7f8c8d;
    margin-bottom: 2px;
}

.ohp-timeline-item .text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2c3e50;
}

.ohp-timeline-item.closed .text {
    color: #4caf50;
    font-weight: 700;
}



/* ===== Адаптив для даты закрытия ===== */
@media (max-width: 360px) {
    .ohp-closed-date-banner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .ohp-report-closed {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}



/*----------ФОТО СЛАЙДЕРА================*/


/* ===== Фотогалерея в отчете ===== */
.ohp-photos {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 8px 0;
    margin-top: 12px;
    -webkit-overflow-scrolling: touch;
}

.ohp-photos::-webkit-scrollbar {
    height: 4px;
}

.ohp-photos::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 2px;
}

.ohp-photos::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.photo-item {
    min-width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid #eaeaea;
    transition: transform 0.2s, border-color 0.2s;
}

.photo-item:hover {
    transform: scale(1.05);
    border-color: #2196f3;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-overlay span {
    font-size: 1.5rem;
    color: white;
}

.ohp-photos-count {
    font-size: 0.8rem;
    color: #7f8c8d;
    text-align: right;
    margin-top: 4px;
}

/* ===== Модальное окно слайдера ===== */
.photo-slider-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-slider-modal.active {
    display: block;
    opacity: 1;
}

.psm-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
}

.psm-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Кнопка закрытия */
.psm-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
    backdrop-filter: blur(10px);
}

.psm-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Кнопки навигации */
.psm-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
    backdrop-filter: blur(10px);
}

.psm-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.psm-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.psm-prev {
    left: 16px;
}

.psm-next {
    right: 16px;
}

/* Контейнер изображения */
.psm-image-container {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.psm-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s, transform 0.3s;
}

.psm-image.loaded {
    opacity: 1;
    transform: scale(1);
}

/* Лоадер */
.psm-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.psm-loading.show {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Счетчик */
.psm-counter {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Подпись */
.psm-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    max-width: 80%;
    text-align: center;
}

/* ===== АДАПТИВ для мобильных ===== */
@media (max-width: 600px) {
    .psm-nav {
        width: 44px;
        height: 44px;
    }

    .psm-prev {
        left: 8px;
    }

    .psm-next {
        right: 8px;
    }

    .psm-close {
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
    }

    .psm-image-container {
        max-width: 95%;
    }

    .psm-counter {
        bottom: 70px;
        font-size: 0.85rem;
    }

    .psm-caption {
        bottom: 30px;
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

/* Скрываем навигацию если фото одно */
.photo-slider-modal.single-image .psm-nav {
    display: none;
}

/* Анимация при свайпе */
.psm-image.swiping-left {
    transform: translateX(-50px) scale(0.95);
    opacity: 0.5;
}

.psm-image.swiping-right {
    transform: translateX(50px) scale(0.95);
    opacity: 0.5;
}




/*----------Ошибка Модальное окно----------*/


.createOrderError {}


.createOrderError.showError .overlayErrorModal,
.createOrderError.showError .windowErrorModal {

    opacity: 1;
    z-index: 100;
}

.createOrderError.hideError .overlayErrorModal,
.createOrderError.hideError .windowErrorModal {

    opacity: 1;
    z-index: 100;
}


.overlayErrorModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 21, 21, 0.55);
    transition: all .3s;
}


.windowErrorModal {
    margin: 0 auto;
    width: 400px;
    height: 120px;
    background: white;
    margin-top: 200px;
    padding: 8px;
    border-radius: 15px;
    display: grid;
    gap: 10px;
    text-align: center;
    border: 3px solid #2e76e3;
}


.textError {
    font-size: 16px;
    font-family: system-ui;
    font-weight: 500;
}

.okError {
    background: #1566bd;
    width: 120px;
    margin: 0 auto;
    padding: 4px;
    color: white;
    border-radius: 10px;
    cursor: pointer;
}

.okError:hover {
    background: #0f2c4c;
}



.overlayErrorModal, .windowErrorModal {
    opacity: 0;
    z-index: -1;
}



/*----------Создание заказа-------------------*/

.form-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}


.form-card h2 {
    margin-bottom: 10px;
    color: #1e3c72;
    font-size: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
}


.step-description {
    color: #666;
    font-size: 15px;
    margin-bottom: 25px;
    padding-left: 42px;
}


.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.service-card {
    border: 3px solid #e0e0e0;
    border-radius: 16px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    background: #fafafa;
}

.service-card:hover {
    border-color: var(--coc-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 159, 234, 0.2);
}

.service-card.selected {
    border-color: var(--primary-blue);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}


.service-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.service-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
    color: #1e3c72;
}

.service-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}


.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin: 20px 0;
}


.subcategory-item {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    background: white;
}


.subcategory-item:hover {
    border-color: var(--coc-primary);
    background: #f8f9ff;
}

.subcategory-item.selected {
    border-color: var(--coc-primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.subcategory-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.subcategory-name {
    font-weight: 600;
    color: #1e3c72;
}

.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.vehicle-item {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
}

.vehicle-item:hover {
    border-color: var(--coc-primary);
    background: #f8f9ff;
}

.vehicle-item.selected {
    border-color: var(--coc-primary);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.vehicle-icon {
    font-size: 32px;
}

.vehicle-name {
    font-weight: 600;
    color: #1e3c72;
    font-size: 15px;
}


.form-group {
    margin-bottom: 22px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e3c72;
    font-size: 15px;
}

.required::after {
    content: ' *';
    color: #e53e3e;
}
input,
input[type="number"],
input[type="text"],
input[type="tel"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}
input:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="datetime-local"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--coc-primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    padding: 0;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.radio-item:hover,
.checkbox-item:hover {
    border-color: var(--coc-primary);
    background: #f8f9ff;
}

.radio-item.selected,
.checkbox-item.selected {
    border-color:var(--coc-primary);
    background: rgba(102, 126, 234, 0.08);
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    align-self: end;
}


/*---------------Для поиска-------------*/




/* Стили для выпадающего списка */
#results-list {
    position: absolute;
    top: 100%; /* Сразу под инпутом */
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
    display: none; /* Скрыт по умолчанию */
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

#results-list li {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

#results-list li:last-child {
    border-bottom: none;
}

#results-list li:hover {
    background-color: #f0f7ff;
    color: #4a90e2;
}

.no-results {
    padding: 15px;
    color: #888;
    text-align: center;
    font-style: italic;
}






.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 78, 136, 0.47);
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    margin-right: 12px;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn-group .btn {
    flex: 1;
    margin-top: 0;
}

.hidden {
    display: none;
}

.change-radio {
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    margin: 0;
    padding: 10px;
}


.file-upload {
    border: 3px dashed var(--coc-primary);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    background: #f8f9ff;
}

.file-upload-icon {
    font-size: 48px;
    margin-bottom: 12px;
}


.price-section {
    background: linear-gradient(135deg, rgba(102, 155, 234, 0.1) 0%, rgba(75, 113, 162, 0.18) 100%);
    border: 2px solid var(--coc-primary);
    border-radius: 16px;
    padding: 12px;
    margin: 25px 0;
}

.price-display {
    text-align: center;
    margin-bottom: 20px;
}

.price-label {
    font-size: 16px;
    color: #666;
    margin-bottom: 8px;
}

.price-value {
    font-size: 42px;
    font-weight: bold;
    color: var(--coc-primary);
}

.price-options {
    margin-top: 20px;
}

.success-message {
    text-align: center;
    padding: 5px 20px;
}

.success-icon {
    font-size: 100px;
    margin-bottom: 25px;
}

.success-message h2 {
    justify-content: center;
    margin-bottom: 15px;
}

.success-message p {
    color: #666;
    margin-bottom: 10px;
    font-size: 16px;
}

.photoOrder {
    padding: 20px;
}

.photoOrder ol li {

}

.deleteFile {
    cursor: pointer;
    width: 70px;
    background: red;
    color: white;
    text-align: center;
    border-radius: 10px;

}

.containerForTeg {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
}

.forTegOn {
    margin-top: 6px;
}

.tegOn {
    background: #e0e0e0;
    padding: 5px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: #5a8db9 0 0 3px 1px;
    font-size: 12px;
    display: inline-block;
    margin: 10px 4px 0 0;
}

.tegOn:hover {
    background: var(--coc-primary);
    color:white;
}
.tegOn:active {
    box-shadow: inset #5a8db9 0 0 3px 2px;
}


#textForTeg {
    border: none;
    outline: none;
    width: auto;
}

#textForTeg:focus {
    border-color: unset;
    box-shadow: unset;
}

.tegIn {
    display: inline-block;
    background: #e0e0e0;
    padding: 8px;
    border-radius: 15px;
    margin: 4px;
    box-shadow: aliceblue 0 0 0 0;
    height: 40px;
}

.tegIn p:first-child {
    font-size: 14px;
    display: inline-block;
    transition: all .6s;
}


.tegIn p:last-child {
    font-weight: bold;
    font-size: 19px;
    margin-top: -5px;
    height: 1px;
    cursor: pointer;
    display: inline-block;
    transition: all .6s;
}

.tegIn p:last-child:hover {
    transform: scale(1.2);
}



@media screen and (max-width: 600px) {
    .service-grid {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-secondary {
        margin-right: 0;
    }

    .form-card {
        padding: 16px;
    }

    .success-message {
        padding: 5px 10px;
    }

    #orderSuccessText {
        font-size: 17px;
    }

    #orderPriceFinish {
        font-size: 16px;
    }

}



/*------------Для карт Модал--------------*/


.mapModal {}


.mapModal.show .mapOverlay,
.mapModal.show .mapWindow {
    opacity: 10;
    z-index: 10;
}


.mapModal.hide .mapOverlay,
.mapModal.hide .mapWindow {
    opacity: 10;
    z-index: 10;
}

.mapOverlay {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(22, 21, 21, 0.91);
    transition: all .3s;;

}


.mapWindow {
    margin: 0 auto;
    margin-top: 100px;
    width: 600px;
}

.mapOverlay, .mapWindow {
    opacity: 0;
    z-index: -1;
}

.forMapBut {
    display: flex;
    gap: 10px;
    text-align: center;
}
.controls { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
/*#addr-input { flex: 1; min-width: 200px; padding: 8px; font-size: 14px; border: 1px solid #ccc; border-radius: 6px; }*/
button, .ym-btn { padding: 8px 12px; background: #007BFF; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; }
.ym-btn { display: none; background: #FC3F1D; text-decoration: none; margin-bottom: 10px; }
#status { margin: 8px 0; font-weight: 500; color: #333; min-height: 20px; background: white ;padding: 5px ;border-radius: 7px ; }
#map { width: 600px!important; height: 300px !important; border-radius: 8px !important; border: 1px solid #ccc !important;  }

@media (max-width: 600px) {
    .windowErrorModal{width: 96%}

    .mapWindow {
        width: 96%;
    }
}
    #map { width: 100%!important;)

    #addr-input {
        min-width: 100%;
    }
}




@media screen and (max-width: 1450px ) {
  .headerContent {

  }

    .contact {
        margin-top: 0 !important;
    }
}



@media screen and (max-width: 1100px){
    .contact {
        margin-top: 0 !important;
    }
    .inContent {
        margin-top: 0 !important;
    }

}

@media screen and (max-width: 768px) {

    .inContent {
        margin-top: 13px !important;
    }
}


@media screen and (max-width: 600px) {

}