.vehicle-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 10px;
    overflow: hidden;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-img-top {
    transition: opacity 0.3s;
}

.vehicle-card:hover .card-img-top {
    opacity: 0.9;
}

.badge {
    font-weight: 500;
}

.vehicle-block {
    display: flex;
    justify-content: space-between;
    background: #ffffff;
    border-left: 5px solid #6c757d;
    padding: 20px;
    margin-bottom: 20px;
}

.vehicle-info h1 {
    color: #495057;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.vehicle-info p {
    display: flex;
    margin-bottom: 5px;
    color: #6c757d;
}

.vehicle-info span {
    font-weight: 500;
    color: #495057;
    min-width: 120px;
}

.vehicle-counters {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    background: #f8f9fa;
}

.vehicle-counters p {
    margin: 0;
    padding: 8px 0;
    color: #212529;
    border-bottom: 1px dashed #dee2e6;
}

.vehicle-counters p:last-child {
    border-bottom: none;
}

.vehicle-regulation {
    max-width: 700px;
    margin: 0 auto;
}

.vehicle-regulation h2 {
    font-size: 18px;
    border-bottom: 1px solid #f1f1f1;
    padding: 10px;
    margin-bottom: 20px;
}

.maintenance-block {
    position: relative;
    padding: 20px;
    margin-bottom: 12px;
    background: linear-gradient(to right, #f8f9fa, #fff);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    box-shadow: 2px 2px 3px #f3f3f3;
}

.maintenance-block p:first-child {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.maintenance-block p:nth-child(2) {
    color: #5d6d7e;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.maintenance-block p:nth-child(3) {
    display: inline-block;
    background: #e8f4fc;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #2980b9;
    font-weight: bold;
    margin-bottom: 0;
}

.maintenance-block p:nth-child(3) {
    color: #7f8c8d;
    font-weight: normal;
    margin-right: 5px;
}

.maintenance-block p:last-child{
    font-size: 0.8em;
    font-style: italic;
    color: #858585;
}


/* Адаптивность */
@media (max-width: 768px) {
    .vehicle-card .card-title {
        font-size: 1.1rem;
    }

    .vehicle-block {
        flex-direction: column;
    }

    .vehicle-counters {
        margin-top: 20px;
        min-width: auto;
    }

    .vehicle-info h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .vehicle-block {
        padding: 15px;
    }

    .vehicle-info span {
        min-width: 120px;
        display: block;
        margin-bottom: 5px;
    }

    .vehicle-info p {
        flex-direction: column;
        align-items: flex-start;
    }
}

.tab-content>.tab-pane {
    padding: 20px 0;
}

#works-content {
    margin: -1rem 0;
    border-left: 5px solid #f4f4f4;
    padding: 20px 0;
}

.addwork {
    margin-bottom: 40px;
}

.work-block {
    display: flex;
    justify-content: space-between;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 0 8px 8px 0;
    padding: 1.25rem;
    position: relative;
    margin-bottom: 20px;
}

.work-content {
    display: flex;
}

.work-meta {
    gap: 1rem;
    font-size: 0.875rem;
    background: #f4f4f4;
    margin: -21px 0 -21px -21px;
    padding: 10px;
}

.work-info {
    margin-left: 20px;
}

.work-meta p:first-child {
    color: #2563eb;
    font-weight: 600;
}

.work-meta p:nth-child(2) {
    color: #6b7280;
}

.work-meta p:nth-child(3) {
    color: #059669;
    font-weight: 500;
    margin-left: auto;
}

.work-info > p:first-child {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.work-info > p:nth-child(2) {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.work-materials {
    margin-top: 1rem;
}

.work-materials p {
    padding: 0.5rem;
    background: #f9fafb;
    border-radius: 4px;
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: #374151;
}

.work-manage {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
    justify-content: flex-end;
}

.work-prices{
    text-align: right;
}

.work-prices > p:first-child,
.work-prices > p:nth-child(2) {
    font-weight: 500;
    margin: 0.25rem 0;
}

.work-prices > p:nth-child(2) {
    font-size: 1.125rem;
    color: #dc2626;
}

.task-block {
    display: flex;
    justify-content: space-between;
    background: #ffffff;
    border-left: 5px solid #6c757d;
    padding: 20px;
    margin-bottom: 20px;
}

.task-info h1 {
    color: #495057;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.task-info p {
    display: flex;
    margin-bottom: 5px;
    color: #6c757d;
}

.task-info span {
    font-weight: 500;
    color: #495057;
    min-width: 120px;
}

.task-solutions {
    max-width: 700px;
    margin: 0 auto;
}

.task-solutions h2 {
    font-size: 18px;
    border-bottom: 1px solid #f1f1f1;
    padding: 10px;
    margin-bottom: 20px;
}

.task-solution {
    position: relative;
    padding: 20px;
    margin-bottom: 12px;
    background: linear-gradient(to right, #f8f9fa, #fff);
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    box-shadow: 2px 2px 3px #f3f3f3;
}

.add-task-block {
    display: flex;
    justify-content: space-between;
}

.add-block {
    max-width: 49%;
    border: 1px solid #0dcaf0;
    padding: 20px;
    border-radius: 10px;
}

.add-task-block p {
    font-size: 0.8em;
    line-height: 1.2em;
    color: #619bbf;
    padding-top: 5px;
    margin: 0;
}

.ql-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Сохраняет правильные пропорции */
    border: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    padding: 10px 0;
}

.gallery-grid a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid a:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.gallery-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Квадрат */
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}