/* ==================== ОСНОВНЫЕ СТИЛИ ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0B0C10;
    color: #C5C6C7;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
}

/* ==================== ШАПКА ==================== */
.header {
    background: rgba(11, 12, 16, 0.95);
    border-bottom: 1px solid #1F2833;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
}

.logo .bluz {
    /*color: #A855F7;*/
    color: #66FCF1;
}

.logo .mobile {
    color: #FFFFFF;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: #C5C6C7;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
    font-size: 15px;
}

.nav-menu a:hover {
    color: #66FCF1;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-telegram,
.btn-viber {
    color: #C5C6C7;
    font-size: 20px;
    transition: 0.3s;
}

.btn-telegram:hover {
    color: #0088cc;
}

.btn-viber:hover {
    color: #7b519d;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #C5C6C7;
    font-size: 24px;
    cursor: pointer;
}

/* ==================== ФЛЕШ-СООБЩЕНИЯ ==================== */
.flash-message {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    color: #fff;
    font-size: 15px;
    border: 1px solid transparent;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.flash-message.flash-success {
    background: #0d2b1f;
    border-color: #2ecc71;
    color: #a8e6cf;
}

.flash-message.flash-success .flash-text::before {
    content: '✅ ';
}

.flash-message.flash-danger {
    background: #2b0d0d;
    border-color: #e74c3c;
    color: #f5a5a5;
}

.flash-message.flash-danger .flash-text::before {
    content: '❌ ';
}

.flash-message.flash-warning {
    background: #2b1f0d;
    border-color: #f39c12;
    color: #f5d7a5;
}

.flash-message.flash-warning .flash-text::before {
    content: '⚠️ ';
}

.flash-message.flash-info {
    background: #0d1f2b;
    border-color: #3498db;
    color: #a8d4f5;
}

.flash-message.flash-info .flash-text::before {
    content: 'ℹ️ ';
}

.flash-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    padding: 0 5px;
    transition: 0.3s;
    line-height: 1;
}

.flash-close:hover {
    color: #fff;
    transform: scale(1.2);
}

.flash-text {
    flex: 1;
}

/* ==================== ГЕРОЙ ==================== */
.hero {
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Затемнение */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(11, 12, 16, 0.92) 0%, rgba(11, 12, 16, 0.7) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content h1 .accent {
    color: #66FCF1;
}

.hero-content p {
    font-size: 20px;
    color: #C5C6C7;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    background: #45A29E;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #66FCF1;
    color: #0B0C10;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(69, 162, 158, 0.3);
    text-decoration: none;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
        min-height: 60vh;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-content p {
        font-size: 16px;
    }
}

/* ==================== СЕКЦИЯ УСЛУГ (ГЛАВНАЯ) ==================== */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 50px;
}

.section-title .accent {
    color: #66FCF1;
}

.category-block {
    margin-bottom: 50px;
}

.category-title {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1F2833;
}

.category-icon {
    margin-right: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.service-card {
    background: #1F2833;
    border-radius: 12px;
    padding: 30px 25px;
    transition: all 0.3s ease;
    border: 1px solid #2C3E50;
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: #45A29E;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.service-card .icon {
    font-size: 36px;
    color: #66FCF1;
    margin-bottom: 15px;
}

.service-card h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-card p {
    color: #8892B0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.service-card .price {
    display: inline-block;
    color: #66FCF1;
    font-weight: 700;
    font-size: 18px;
}

.empty-message {
    color: #8892B0;
    font-size: 16px;
    padding: 20px;
    text-align: center;
    background: #1F2833;
    border-radius: 8px;
    border: 1px dashed #2C3E50;
    grid-column: 1 / -1;
}

/* ==================== СТРАНИЦА УСЛУГ ==================== */

/* Шапка страницы */
.page-header {
    padding: 60px 0 40px;
    text-align: center;
}

.page-title {
    font-size: 42px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.page-title .accent {
    color: #66FCF1;
}

.page-subtitle {
    font-size: 18px;
    color: #8892B0;
}

/* Фильтры */
.filters-section {
    padding: 0 0 40px;
}

.filters-wrapper {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #1F2833;
    color: #8892B0;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-btn:hover {
    background: #2C3E50;
    color: #fff;
    text-decoration: none;
}

.filter-btn.active {
    background: #45A29E;
    color: #fff;
    border-color: #66FCF1;
    box-shadow: 0 4px 15px rgba(69, 162, 158, 0.3);
}

.filter-btn i {
    font-size: 14px;
}

/* Результаты */
.services-results {
    padding: 0 0 80px;
}

.results-count {
    color: #8892B0;
    font-size: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.results-count strong {
    color: #66FCF1;
}

/* Карточки услуг (расширенные) */
.service-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.service-card .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #2C3E50;
}

.service-card .btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #C5C6C7;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
}

.service-card .btn-detail:hover {
    color: #66FCF1;
    text-decoration: none;
}

.service-card .btn-detail i {
    transition: 0.3s;
}

.service-card .btn-detail:hover i {
    transform: translateX(4px);
}

.service-card .service-meta {
    margin-top: 10px;
    color: #8892B0;
    font-size: 13px;
}

.service-card .service-meta i {
    color: #66FCF1;
    margin-right: 4px;
}

/* ==================== ВИЗУАЛЬНЫЕ УРОВНИ (без текста) ==================== */

/* Базовый уровень — минималистичный */
.service-card[data-category="budget"] {
    border-color: #2C3E50;
}

.service-card[data-category="budget"] .icon {
    color: #8892B0;
}

.service-card[data-category="budget"] .price {
    color: #8892B0;
}

.service-card[data-category="budget"]:hover {
    border-color: #45A29E;
}

/* Оптимальный уровень — легкое свечение */
.service-card[data-category="medium"] {
    border-color: #45A29E;
}

.service-card[data-category="medium"] .icon {
    color: #66FCF1;
}

.service-card[data-category="medium"] .price {
    color: #66FCF1;
}

.service-card[data-category="medium"]:hover {
    border-color: #66FCF1;
    box-shadow: 0 8px 30px rgba(69, 162, 158, 0.2);
}

/* Максимальный уровень — золотой акцент */
.service-card[data-category="premium"] {
    border-color: #a10539;
    background: linear-gradient(145deg, #1F2833, #2A2A2A);
}

.service-card[data-category="premium"] .icon {
    color: #0560a1;
}

.service-card[data-category="premium"] .price {
    /*color: #FFD700;*/
    color: #0560a1;
}

.service-card[data-category="premium"]:hover {
    border-color: #a10539;
    box-shadow: 0 8px 40px rgb(80 4 29);
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    color: #2C3E50;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #fff;
    margin-bottom: 10px;
}

.empty-state p {
    color: #8892B0;
    margin-bottom: 20px;
}

/* ==================== ПОДВАЛ ==================== */
.footer {
    background: #0B0C10;
    border-top: 1px solid #1F2833;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h5 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    color: #8892B0;
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-col ul li a {
    color: #8892B0;
    text-decoration: none;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #66FCF1;
}

.footer-col ul li i {
    width: 20px;
    color: #66FCF1;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: #8892B0;
    font-size: 20px;
    transition: 0.3s;
}

.social-links a:hover {
    color: #66FCF1;
}

.footer-bottom {
    border-top: 1px solid #1F2833;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #8892B0;
    font-size: 14px;
}

.admin-link {
    color: #8892B0;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.admin-link:hover {
    color: #66FCF1;
}

/* ==================== АДАПТИВ ==================== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-menu.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #1F2833;
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid #2C3E50;
        z-index: 99;
    }

    .mobile-toggle {
        display: block;
    }

    .hero {
        padding: 40px 0;
        min-height: 50vh;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .category-title {
        font-size: 20px;
    }

    .page-title {
        font-size: 30px;
    }

    .filters-wrapper {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .service-card .card-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .service-card .btn-detail {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .filter-btn {
        font-size: 12px;
        padding: 6px 14px;
    }

    .filter-btn i {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .logo {
        font-size: 22px;
    }

    .service-card {
        padding: 20px;
    }
}

/* ==================== СТРАНИЦА КОНТАКТОВ ==================== */

.contacts-section {
    padding: 0 0 80px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Левая колонка */
.contacts-info h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 15px;
}

.contacts-description {
    color: #8892B0;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Правая колонка — форма */
.contacts-form-wrapper {
    display: flex;
    align-items: flex-start;
}

.contacts-form-card {
    background: #1F2833;
    border-radius: 16px;
    padding: 35px;
    width: 100%;
    border: 1px solid #2C3E50;
}

.contacts-form-card h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 5px;
}

.contacts-form-card > p {
    color: #8892B0;
    margin-bottom: 25px;
}

.contacts-form-card .form-group {
    margin-bottom: 18px;
}

.contacts-form-card .form-group label {
    display: block;
    color: #C5C6C7;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 5px;
}

.contacts-form-card .form-group input,
.contacts-form-card .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: #0B0C10;
    border: 1px solid #2C3E50;
    border-radius: 8px;
    color: #C5C6C7;
    font-size: 15px;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
}

.contacts-form-card .form-group input:focus,
.contacts-form-card .form-group textarea:focus {
    outline: none;
    border-color: #45A29E;
    box-shadow: 0 0 0 3px rgba(69, 162, 158, 0.2);
}

.contacts-form-card .form-group input::placeholder,
.contacts-form-card .form-group textarea::placeholder {
    color: #8892B0;
}

.contacts-form-card .form-note {
    color: #8892B0;
    font-size: 13px;
    margin-top: 15px;
    text-align: center;
}

.contacts-form-card .form-note i {
    color: #66FCF1;
    margin-right: 5px;
}

/* Карта */
.map-wrapper {
    margin-top: 20px;
}

.map-wrapper h3 {
    color: #fff;
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #2C3E50;
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
}

.map-hint {
    color: #8892B0;
    font-size: 14px;
    text-align: center;
    margin-top: 12px;
}

.map-hint a {
    color: #66FCF1;
    text-decoration: none;
}

.map-hint a:hover {
    text-decoration: underline;
}

/* ==================== КОНТАКТЫ — 2 КОЛОНКИ ==================== */

.contacts-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 30px;
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 14px;
    background: #141a24;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.contact-item:hover {
    border-color: #2C3E50;
    background: #1a2230;
}

.contact-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #1F2833;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #66FCF1;
    transition: 0.3s;
}

.contact-icon.telegram {
    color: #0088cc;
}

.contact-icon.viber {
    color: #7b519d;
}

.contact-icon.instagram {
    color: #E1306C;
}

.contact-item:hover .contact-icon {
    transform: scale(1.05);
}

.contact-content h4 {
    color: #8892B0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0px;
}

.contact-content a {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
    display: block;
}

.contact-content a:hover {
    color: #66FCF1;
}

.contact-content span {
    display: block;
    color: #8892B0;
    font-size: 13px;
}

.contact-hint {
    font-size: 12px !important;
    color: #6a7a8a !important;
    margin-top: 1px;
}

/* ==================== АДАПТИВ КОНТАКТЫ ==================== */
@media (max-width: 992px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacts-form-wrapper {
        order: -1;
    }

    .contacts-grid-2col {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .contacts-grid-2col {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contact-item {
        padding: 10px 12px;
    }

    .contact-content a {
        font-size: 14px;
    }

    .contacts-form-card {
        padding: 25px 20px;
    }

    .map-container iframe {
        height: 250px;
    }
}

/* ==================== ГАЛЕРЕЯ ==================== */

/* Группы фильтров */
.filters-group {
    margin-bottom: 20px;
}

.filters-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    color: #8892B0;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Результаты галереи */
.gallery-results {
    padding: 0 0 80px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.gallery-card {
    background: #1F2833;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #2C3E50;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-card:hover {
    transform: translateY(-6px);
    border-color: #45A29E;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.gallery-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ===== Изображения ===== */
.gallery-images {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    position: relative;
    background: #1F2833;
    padding: 12px 12px 0 12px;
}

.gallery-before,
.gallery-after {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    height: 200px;
    min-height: 200px;
}

.gallery-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0B0C10;
    overflow: hidden;
}

.gallery-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== Одиночное фото (на всю ширину) ===== */
.gallery-single {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    grid-column: 1 / -1;
    height: 200px;
    min-height: 200px;
}

.gallery-single .gallery-image-placeholder {
    height: 100%;
    min-height: 200px;
}

.gallery-single .gallery-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-single.gallery-before-full,
.gallery-single.gallery-after-full {
    /* наследует все от .gallery-single */
}

.gallery-single.no-image-full {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    min-height: 200px;
    background: #1F2833;
    border-radius: 8px 8px 0 0;
}

/* ===== Метки ДО/ПОСЛЕ ===== */
.gallery-label {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

.gallery-label.before {
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
}

.gallery-label.after {
    background: rgba(46, 204, 113, 0.9);
    color: #fff;
}

.gallery-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1F2833;
    padding: 0 6px;
    min-width: 32px;
    color: #66FCF1;
    font-size: 16px;
    z-index: 1;
    height: 200px;
}

.no-image {
    color: #8892B0;
    font-size: 13px;
    padding: 20px;
    text-align: center;
}

/* ===== Информация карточки ===== */
.gallery-card-info {
    padding: 16px 20px 16px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery-card-body {
    flex: 1;
}

.gallery-card-info h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.gallery-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.gallery-category {
    color: #8892B0;
    font-size: 13px;
}

.gallery-year {
    color: #8892B0;
    font-size: 13px;
    background: #0B0C10;
    padding: 2px 10px;
    border-radius: 12px;
}

.gallery-description {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    font-size: 13px;
}

.gallery-description .desc-before {
    color: #e74c3c;
}

.gallery-description .desc-after {
    color: #2ecc71;
}

.gallery-result {
    color: #8892B0;
    font-size: 14px;
    margin-bottom: 10px;
}

.gallery-result i {
    color: #66FCF1;
    margin-right: 6px;
}

.gallery-result strong {
    color: #66FCF1;
}

/* ===== Подвал карточки ===== */
.gallery-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid #2C3E50;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-service-link {
    font-size: 13px;
    color: #8892B0;
}

.gallery-service-link i {
    color: #66FCF1;
    margin-right: 6px;
}

.gallery-service-link a {
    color: #66FCF1;
    text-decoration: none;
    transition: 0.3s;
}

.gallery-service-link a:hover {
    color: #fff;
    text-decoration: underline;
}

.gallery-detail-btn {
    background: none;
    border: 1px solid #45A29E;
    color: #66FCF1;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gallery-detail-btn:hover {
    background: #45A29E;
    color: #fff;
}

/* ===== ПАГИНАЦИЯ ===== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #1F2833;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #1F2833;
    color: #C5C6C7;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: 0.3s;
    border: 1px solid #2C3E50;
}

.pagination-btn:hover {
    background: #45A29E;
    color: #fff;
    border-color: #66FCF1;
    text-decoration: none;
}

.pagination-info {
    color: #8892B0;
    font-size: 14px;
}

/* ===== МОДАЛЬНОЕ ОКНО ГАЛЕРЕИ ===== */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.gallery-modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gallery-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
}

.gallery-modal-content {
    position: relative;
    background: #1F2833;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    border: 1px solid #2C3E50;
    animation: slideUp 0.3s ease;
    z-index: 1;
}

.gallery-modal-close {
    position: sticky;
    top: 0;
    float: right;
    background: none;
    border: none;
    color: #8892B0;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0 0 0 20px;
    z-index: 2;
    line-height: 1;
}

.gallery-modal-close:hover {
    color: #66FCF1;
}

.gallery-modal-body {
    padding-top: 5px;
}

.gallery-modal-loader {
    text-align: center;
    padding: 40px;
    color: #8892B0;
}

.gallery-modal-loader i {
    font-size: 32px;
    color: #66FCF1;
    margin-bottom: 15px;
}

.gallery-modal-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.gallery-modal-images .modal-image {
    border-radius: 12px;
    overflow: hidden;
    background: #0B0C10;
    height: 250px;
    position: relative;
}

.gallery-modal-images .modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-modal-images .modal-image .modal-label {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

.gallery-modal-images .modal-image .modal-label.before {
    background: rgba(231, 76, 60, 0.9);
    color: #fff;
}

.gallery-modal-images .modal-image .modal-label.after {
    background: rgba(46, 204, 113, 0.9);
    color: #fff;
}

.gallery-modal-images .modal-image-single {
    grid-column: 1 / -1;
}

.gallery-modal-info h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 5px;
}

.gallery-modal-info .modal-meta {
    color: #8892B0;
    font-size: 14px;
    margin-bottom: 15px;
}

.gallery-modal-info .modal-description {
    color: #C5C6C7;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.gallery-modal-info .modal-additional {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #2C3E50;
}

.gallery-modal-info .modal-additional-item {
    color: #8892B0;
    font-size: 14px;
    margin-bottom: 6px;
}

.gallery-modal-info .modal-additional-item:last-child {
    margin-bottom: 0;
}

.gallery-modal-info .modal-additional-item strong {
    color: #C5C6C7;
}

/* ==================== АДАПТИВ ==================== */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-images {
        padding: 10px 10px 0 10px;
    }

    .gallery-before,
    .gallery-after {
        height: 160px;
        min-height: 160px;
    }

    .gallery-single {
        height: 160px;
        min-height: 160px;
    }

    .gallery-single .gallery-image-placeholder {
        min-height: 160px;
    }

    .gallery-single.no-image-full {
        height: 160px;
        min-height: 160px;
    }

    .gallery-arrow {
        height: 160px;
        min-width: 24px;
        font-size: 12px;
        padding: 0 4px;
    }

    .gallery-label {
        font-size: 10px;
        padding: 3px 10px;
        top: 10px;
        left: 10px;
    }

    .gallery-card-info {
        padding: 14px 16px 16px 16px;
    }

    .gallery-modal-content {
        padding: 20px;
        width: 95%;
    }

    .gallery-modal-images {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-modal-images .modal-image {
        height: 180px;
    }

    .gallery-modal-info h2 {
        font-size: 20px;
    }

    .pagination-wrapper {
        flex-wrap: wrap;
        gap: 12px;
    }

    .pagination-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .gallery-images {
        padding: 8px 8px 0 8px;
    }

    .gallery-before,
    .gallery-after {
        height: 130px;
        min-height: 130px;
    }

    .gallery-single {
        height: 130px;
        min-height: 130px;
    }

    .gallery-single .gallery-image-placeholder {
        min-height: 130px;
    }

    .gallery-single.no-image-full {
        height: 130px;
        min-height: 130px;
    }

    .gallery-arrow {
        height: 130px;
        min-width: 20px;
        font-size: 10px;
        padding: 0 3px;
    }

    .gallery-modal-images .modal-image {
        height: 150px;
    }

    .filters-group .filters-wrapper {
        gap: 6px;
    }

    .filters-group .filter-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ==================== ДЕТАЛЬНАЯ СТРАНИЦА УСЛУГИ ==================== */

/* Hero */
.service-hero {
    padding: 40px 0 60px;
}

.service-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.service-hero-text.full-width {
    grid-column: 1 / -1;
}

.service-breadcrumb {
    font-size: 14px;
    color: #8892B0;
    margin-bottom: 15px;
}

.service-breadcrumb a {
    color: #8892B0;
    text-decoration: none;
    transition: 0.3s;
}

.service-breadcrumb a:hover {
    color: #66FCF1;
}

.service-breadcrumb i {
    margin: 0 8px;
    font-size: 10px;
}

.service-breadcrumb span {
    color: #66FCF1;
}

.service-hero-text h1 {
    font-size: 38px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
}

.service-hero-description {
    font-size: 18px;
    color: #8892B0;
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-full-description {
    color: #C5C6C7;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.service-full-description p {
    margin-bottom: 15px;
}

.service-hero-level .level-label {
    display: block;
    font-size: 13px;
    color: #8892B0;
    margin-bottom: 2px;
}

.service-hero-level .level-value {
    font-size: 16px;
    font-weight: 600;
    color: #C5C6C7;
}

.service-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #1F2833;
}

.service-hero-price .price-label {
    display: block;
    font-size: 13px;
    color: #8892B0;
    margin-bottom: 2px;
}

.service-hero-price .price-value {
    font-size: 16px;
    font-weight: 700;
    color: #66FCF1;
}

.service-hero-duration {
    display: flex;
    flex-direction: column;
}

.service-hero-duration .duration-label {
    display: block;
    font-size: 13px;
    color: #8892B0;
    margin-bottom: 2px;
}

.service-hero-duration .duration-value {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #C5C6C7;
}

.service-hero-duration .duration-value i {
    color: #66FCF1;
    font-size: 18px;
}

/* Кнопки */
.service-hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    background: transparent;
    color: #C5C6C7;
    border: 2px solid #2C3E50;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-secondary:hover {
    border-color: #45A29E;
    color: #66FCF1;
    text-decoration: none;
}

/* Фото (правая колонка) */
.service-hero-image {
    border-radius: 16px;
    overflow: hidden;
    background: #1F2833;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 90px;
}

.service-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    display: block;
}

/* Основная информация */
.service-detail {
    padding: 60px 0;
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.service-description-content h2 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 20px;
}

.service-full-description {
    color: #C5C6C7;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.service-full-description p {
    margin-bottom: 15px;
}

/* Материалы */
.service-materials h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 12px;
}

.service-materials-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    margin-bottom: 25px;
}

.service-materials-list li {
    color: #C5C6C7;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-materials-list li i {
    color: #66FCF1;
    font-size: 14px;
}

.service-specs {
    margin-top: 30px;
}

/* Технические характеристики */
.service-specs h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 12px;
}

.service-specs-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}


.spec-item {
    background: #1F2833;
    border-radius: 12px;
    padding: 14px 24px;
    border: 1px solid #2C3E50;
    text-align: center;
    min-width: 140px;
}

.spec-icon {
    display: block;
    font-size: 22px;
    margin-bottom: 2px;
}

.spec-label {
    display: block;
    color: #8892B0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

/* Сайдбар */
.service-sidebar-card {
    background: #1F2833;
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #2C3E50;
    position: sticky;
    top: 90px;
}

.service-sidebar-card h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.service-sidebar-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.service-sidebar-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #2C3E50;
}

.service-sidebar-list li:last-child {
    border-bottom: none;
}

.sidebar-label {
    color: #8892B0;
    font-size: 14px;
}

.sidebar-value {
    color: #C5C6C7;
    font-weight: 500;
    font-size: 14px;
    text-align: right;
}

.sidebar-note {
    color: #8892B0;
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
}

.sidebar-note i {
    color: #66FCF1;
}

/* Галерея на странице услуги */
.service-gallery {
    padding: 60px 0;
    border-top: 1px solid #1F2833;
    border-bottom: 1px solid #1F2833;
}

.service-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-gallery-item {
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: #1F2833;
    border: 1px solid #2C3E50;
    transition: 0.3s;
}

.service-gallery-item:hover {
    transform: translateY(-4px);
    border-color: #45A29E;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.service-gallery-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #0B0C10;
}

.service-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
    gap: 8px;
    color: #fff;
}

.service-gallery-item:hover .service-gallery-overlay {
    opacity: 1;
}

.service-gallery-overlay i {
    font-size: 28px;
    color: #66FCF1;
}

.service-gallery-overlay span {
    font-size: 14px;
    color: #C5C6C7;
}

.service-gallery-info {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-gallery-car {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.service-gallery-category {
    color: #8892B0;
    font-size: 12px;
}

/* Похожие услуги */
.similar-services {
    padding: 60px 0;
}

.similar-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.similar-service-card {
    background: #1F2833;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    border: 1px solid #2C3E50;
    transition: 0.3s;
    text-decoration: none;
    display: block;
}

.similar-service-card:hover {
    transform: translateY(-4px);
    border-color: #45A29E;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.similar-service-icon {
    font-size: 32px;
    color: #66FCF1;
    margin-bottom: 12px;
}

.similar-service-card h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 8px;
}

.similar-service-card p {
    color: #8892B0;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.similar-service-price {
    display: inline-block;
    color: #66FCF1;
    font-weight: 700;
    font-size: 16px;
}

/* CTA секция */
.cta-section {
    padding: 80px 0;
    background: #1F2833;
    border-top: 1px solid #2C3E50;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    color: #fff;
    font-size: 32px;
    margin-bottom: 10px;
}

.cta-content p {
    color: #8892B0;
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== АДАПТИВ ==================== */
@media (max-width: 992px) {
    .service-hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-hero-image {
        min-height: 200px;
        position: static;
        order: -1;
    }

    .service-hero-image img {
        min-height: 200px;
    }

    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-sidebar-card {
        position: static;
    }

    .service-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .similar-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-hero-text h1 {
        font-size: 28px;
    }

    .service-hero-meta {
        gap: 15px;
    }

    .service-materials-list {
        grid-template-columns: 1fr;
    }

    .service-specs-grid {
        grid-template-columns: 1fr;
    }

    .service-gallery-grid {
        grid-template-columns: 1fr;
    }

    .service-gallery-image {
        height: 180px;
    }

    .similar-services-grid {
        grid-template-columns: 1fr;
    }

    .spec-item {
        min-width: auto;
    }

    .service-hero-actions {
        flex-direction: column;
    }

    .service-hero-actions .btn-primary,
    .service-hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .cta-content h2 {
        font-size: 24px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

}

@media (max-width: 480px) {
    .service-hero-text h1 {
        font-size: 24px;
    }

    .service-hero-description {
        font-size: 15px;
    }

    .service-sidebar-card {
        padding: 20px;
    }
}

/* ==================== ЦЕНТРИРОВАНИЕ КАРТОЧЕК ==================== */

/* Для галереи на странице услуги */
.service-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Центрирование при 1 или 2 карточках */
.service-gallery-grid.centered {
    grid-template-columns: repeat(2, 1fr);
    max-width: 70%;
    margin: 0 auto;
}


.service-gallery-grid.centered:has(.service-gallery-item:only-child) {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

/* Для похожих услуг */
.similar-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.similar-services-grid.centered {
    grid-template-columns: repeat(2, 1fr);
    max-width: 70%;
    margin: 0 auto;
}

.similar-services-grid.centered:has(.similar-service-card:only-child) {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .service-gallery-grid.centered {
        max-width: 80%;
    }

    .similar-services-grid.centered {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .service-gallery-grid,
    .service-gallery-grid.centered {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }

    .service-gallery-grid.centered:has(.service-gallery-item:only-child) {
        max-width: 300px;
        margin: 0 auto;
    }

    .similar-services-grid,
    .similar-services-grid.centered {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }

    .similar-services-grid.centered:has(.similar-service-card:only-child) {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .service-gallery-grid,
    .service-gallery-grid.centered {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .service-gallery-grid.centered:has(.service-gallery-item:only-child) {
        max-width: 100%;
    }

    .similar-services-grid,
    .similar-services-grid.centered {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .similar-services-grid.centered:has(.similar-service-card:only-child) {
        max-width: 100%;
    }
}