/* Стили для страницы услуг */

/* Стили для хлебных крошек */
.breadcrumbs-container {
    background-color: #f8f9fa;
    padding: 10px 0;
    margin-bottom: 30px;
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
}

.breadcrumbs li:after {
    content: "/";
    margin-left: 5px;
    color: #6c757d;
}

.breadcrumbs li:last-child:after {
    display: none;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Категории услуг */
.services-categories-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.category-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.category-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background-color: #f0f0f0;
}

.category-btn.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.services-category {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.services-category.active {
    display: block;
}

.category-title {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 28px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 80px 30px; /* 80px между рядами, 30px между колонками */
}

/* Карточки услуг */
.service-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card:hover:before {
    opacity: 1;
}

.service-icon {
    margin-bottom: 15px;
    width: 60px;
    height: 60px;
    background-color: #ebf5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: #3498db;
}

.service-icon i {
    font-size: 24px;
    color: #3498db;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon i {
    color: #fff;
}

.service-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 600;
}

.service-features {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-features li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
    color: #555;
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.service-card .btn {
    margin-top: auto;
    align-self: center;
}

.service-card .btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* Процесс работы */
.process-section {
    padding: 70px 0;
    background-color: #fff;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step-icon {
    width: 70px;
    height: 70px;
    background-color: #ebf5ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.step-icon i {
    font-size: 30px;
    color: #3498db;
}

/* Отзывы */
.reviews-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.reviews-container {
    position: relative;
    margin: 40px 0;
}

.review-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    display: none;
}

.review-card:first-child {
    display: block;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-author-info {
    display: flex;
    align-items: center;
}

.review-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

.review-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-author {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
}

.review-rating {
    display: flex;
}

.star {
    color: #ddd;
    margin-right: 2px;
}

.star.filled {
    color: #f1c40f;
}

.review-service {
    font-size: 14px;
    color: #7f8c8d;
    background-color: #f0f0f0;
    padding: 5px 10px;
    border-radius: 4px;
}

.reviews-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.review-nav {
    background: none;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-nav:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.review-dots {
    display: flex;
    margin: 0 15px;
}

.review-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.review-dot.active {
    background-color: #3498db;
}

.reviews-cta {
    text-align: center;
    margin-top: 30px;
}

/* Форма заказа */
.order-section {
    padding: 80px 0;
    background-color: var(--bg-light, #f9f9f9);
}

.order-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.order-info {
    flex: 1;
    min-width: 300px;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-color, #3498db) 0%, var(--primary-dark, #2980b9) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.order-info:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("/otlichnik/assets/images/patterns/dots.svg");
    opacity: 0.1;
    z-index: 1;
}

.order-info h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.order-info p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.order-benefits {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.order-benefit {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.order-benefit i {
    color: var(--accent-color, #f1c40f);
    margin-right: 15px;
    font-size: 1.2rem;
}

.order-contact {
    position: relative;
    z-index: 2;
}

.order-contact h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.contact-method {
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateX(5px);
    color: var(--accent-color, #f1c40f);
}

.contact-method i {
    margin-right: 10px;
}

.order-form-container {
    flex: 2;
    min-width: 300px;
    padding: 40px;
}

.order-form {
    max-width: 600px;
}

.file-upload-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: -1; /* Скрываем input за пределами видимости */
}

.file-upload-button {
    padding: 12px 20px;
    background-color: rgba(45, 58, 109, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.file-upload-button i {
    margin-right: 10px;
}

.file-upload-button:hover {
    background-color: rgba(45, 58, 109, 0.1);
}

/* Styles for multiple file display */
.selected-files-container {
    width: 100%;
    margin-top: 10px;
    position: relative;
    z-index: 2; /* Выше, чем у input[type="file"] */
}

.selected-files-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.selected-file-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: rgba(45, 58, 109, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.selected-file-item:hover {
    background-color: rgba(45, 58, 109, 0.08);
    border-color: rgba(45, 58, 109, 0.1);
}

.file-icon {
    color: #3498db;
    margin-right: 10px;
    font-size: 1rem;
}

.file-name-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
    font-size: 0.9rem;
    color: var(--text-color, #333);
}

.file-size {
    font-size: 0.8rem;
    color: var(--text-secondary, #7f8c8d);
    margin-right: 10px;
}

.remove-file-btn {
    background-color: rgba(231, 76, 60, 0.1);
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    min-width: 28px;
    min-height: 28px;
    margin-left: 5px;
    position: relative;
    z-index: 3; /* Самый высокий z-index для кнопки удаления */
}

.remove-file-btn:hover {
    background-color: rgba(231, 76, 60, 0.2);
    transform: scale(1.1);
}

.remove-file-btn:active {
    background-color: rgba(231, 76, 60, 0.3);
    transform: scale(0.95);
}

.remove-file-btn i {
    font-size: 1rem;
}

/* Добавляем класс для центрирования текста */
.text-center {
    text-align: center;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .category-navigation {
        flex-direction: column;
        align-items: center;
    }

    .category-btn {
        width: 100%;
        max-width: 300px;
        margin-bottom: 5px;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
    }

    .form-row {
        flex-direction: column;
        gap: 20px;
    }

    .order-info,
    .order-form-container {
        padding: 30px;
    }

    .selected-file-item {
        flex-wrap: wrap;
    }

    .file-name-text {
        max-width: 200px;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-service {
        margin-top: 10px;
    }

    .main-services,
    .additional-services,
    .order-section {
        padding: 60px 0;
    }

    .order-info h2 {
        font-size: 1.8rem;
    }

    .selected-file-item {
        padding: 8px;
    }

    .file-name-text {
        max-width: 150px;
    }
}
