/* ============================================================
   SERVICE.CSS - СТИЛИ СТРАНИЦЫ ОДНОЙ УСЛУГИ
   Копия стилей product.php + специфичные для услуг блоки.
   ============================================================ */

.product-page {
    padding: 80px 0;
    background: #232323;
}

/* ============================================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================================ */
.breadcrumbs {
    font-size: 14px;
    color: #8a8a8a;
    margin-bottom: 24px;
    padding: 0;
    width: 100%;
}
.breadcrumbs a {
    color: #8a8a8a;
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumbs a:hover { color: #d0d0d0; }
.breadcrumbs span { margin: 0 8px; }
.breadcrumbs .current { color: #d0d0d0; }

/* ============================================================
   ОСНОВНАЯ СЕТКА: ФОТО + ИНФОРМАЦИЯ
   ============================================================ */
.product-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* ============================================================
   ГАЛЕРЕЯ
   ============================================================ */
.product-gallery {
    background: transparent;
    border-radius: 0;
    padding: 0;
}
.product-gallery__main {
    width: 100%;
    max-width: 80%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: transparent;
    position: relative;
    cursor: pointer;
    margin: 0 auto;
}
.product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}
.product-gallery__main:hover img { transform: scale(1.03); }
.product-gallery__zoom-hint {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.product-gallery__main:hover .product-gallery__zoom-hint { opacity: 1; }

.product-gallery__thumbs-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    position: relative;
    max-width: 100%;
    justify-content: center;
}
.product-gallery__thumbs-scroll {
    flex: 1;
    overflow: hidden;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
    scrollbar-width: none;
    width: 100%;
    max-width: 488px;
    margin: 0 auto;
}
.product-gallery__thumbs-scroll::-webkit-scrollbar { display: none; }
.product-gallery__thumbs {
    display: flex;
    gap: 12px;
    width: max-content;
    min-width: 100%;
    justify-content: center;
    margin: 0 auto;
}
.product-gallery__thumb {
    width: 88px;
    height: 88px;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-gallery__thumb:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}
.product-gallery__thumb.active { border-color: #4a90d9; }

.thumbs-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    font-size: 12px;
}
.thumbs-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.thumbs-arrow--prev { margin-right: 4px; }
.thumbs-arrow--next { margin-left: 4px; }

.product-gallery__placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    border-radius: 12px;
    color: #4a4a4a;
    font-size: 48px;
}

/* ============================================================
   ПРАВАЯ КОЛОНКА: ИНФОРМАЦИЯ
   ============================================================ */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.product-title {
    font-size: 28px;
    font-weight: 600;
    color: #f0f0f0;
    margin: 0;
}

.product-price-stock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
}
.price-block {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.product-price {
    font-size: 28px;
    font-weight: 700;
    color: #f0f0f0;
}
.product-old-price {
    font-size: 18px;
    color: #ff4444;
    text-decoration: line-through;
    font-weight: 400;
}
.stock-block {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(74, 144, 217, 0.4);
    background: rgba(74, 144, 217, 0.08);
    color: #4a90d9;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    height: 34px;
    box-sizing: border-box;
}
.share-btn i { font-size: 14px; color: #4a90d9; }
.share-btn:hover {
    background: rgba(74, 144, 217, 0.18);
    border-color: rgba(74, 144, 217, 0.7);
    color: #5a9ee9;
    transform: translateY(-1px);
}

/* ============================================================
   СПЕЦИФИЧНО ДЛЯ УСЛУГ: СРОК + ГАРАНТИЯ
   ============================================================ */
.service-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 14px 18px;
    background: #2a2a2a;
    border-radius: 10px;
    border: 1px solid #3a3a3a;
    margin: 0;
}
.service-meta__item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #d0d0d0;
    font-size: 14px;
}
.service-meta__item i {
    color: #8a8a8a;
    font-size: 16px;
    width: 20px;
    text-align: center;
}
.service-meta__item strong {
    color: #8a8a8a;
    font-weight: 500;
    margin-right: 4px;
}

.service-short-desc {
    color: #b0b0b0;
    font-size: 15px;
    line-height: 1.7;
}

/* ============================================================
   ХАРАКТЕРИСТИКИ
   ============================================================ */
.product-characteristics { margin: 0; }
.characteristics-table {
    width: 100%;
    border-collapse: collapse;
}
.characteristics-table td {
    padding: 6px 0;
    border-bottom: 1px solid #2a2a2a;
    color: #b0b0b0;
    font-size: 14px;
}
.characteristics-table td:first-child {
    color: #8a8a8a;
    font-weight: 500;
    width: 45%;
}
.hidden-char { display: none; }
.show-more-chars {
    background: none;
    border: none;
    color: #6a6a6a;
    font-size: 13px;
    margin-top: 10px;
    cursor: pointer;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-family: 'Inter', sans-serif;
}
.show-more-chars:hover { color: #4a90d9; }

/* ============================================================
   КНОПКИ "ПОЗВОНИТЬ" И "ЗАПИСАТЬСЯ"
   ============================================================ */
.product-actions { margin: 8px 0 0 0; }
.service-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.service-buttons .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1 1 200px;
    min-width: 180px;
    border: none;
}
.service-buttons__phone {
    background: transparent;
    color: #d0d0d0;
    border: 2px solid #4a4a4a;
}
.service-buttons__phone:hover {
    background: #3a3a3a;
    color: #fff;
    border-color: #5a5a5a;
    transform: translateY(-2px);
}
.service-buttons__order {
    background: #4a4a4a;
    color: #fff;
    border: 2px solid #5a5a5a;
}
.service-buttons__order:hover {
    background: #5a5a5a;
    border-color: #6a6a6a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   ПОЛНОЕ ОПИСАНИЕ
   ============================================================ */
.product-description-full {
    margin-top: 0;
    padding-top: 40px;
    border-top: 1px solid #333;
    width: 100%;
}
.product-description-full h2 {
    font-size: 20px;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 16px;
}
.product-description-content {
    color: #b0b0b0;
    line-height: 1.8;
}
.product-description-content h1,
.product-description-content h2,
.product-description-content h3 {
    color: #f0f0f0;
    margin-top: 20px;
    margin-bottom: 10px;
}
.product-description-content h1 { font-size: 28px; }
.product-description-content h2 { font-size: 22px; }
.product-description-content h3 { font-size: 18px; }
.product-description-content ul,
.product-description-content ol {
    padding-left: 30px;
    margin: 15px 0;
}
.product-description-content ul li,
.product-description-content ol li {
    margin-bottom: 8px;
    color: #d0d0d0;
}
.product-description-content p {
    margin-bottom: 15px;
    color: #d0d0d0;
    line-height: 1.8;
}
.product-description-content strong { color: #f0f0f0; }

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */
@media (max-width: 768px) {
    .product-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    .product-gallery__main { max-width: 90%; }
    .product-gallery__thumb { width: 66px; height: 66px; }
    .product-gallery__thumbs-scroll { max-width: 370px; }
    .product-title { font-size: 22px; }
    .product-price { font-size: 24px; }
    .product-old-price { font-size: 16px; }
    .breadcrumbs { font-size: 12px; margin-bottom: 16px; }
    .service-meta {
        flex-direction: column;
        gap: 10px;
        padding: 12px 14px;
    }
    .service-buttons { flex-direction: column; gap: 10px; }
    .service-buttons .btn { width: 100%; flex: 0 0 auto; min-width: 0; }
}
@media (max-width: 480px) {
    .product-gallery__main { max-width: 100%; }
    .product-gallery__thumb { width: 55px; height: 55px; }
    .product-gallery__thumbs-scroll { max-width: 307px; }
    .product-title { font-size: 18px; }
    .product-price { font-size: 20px; }
    .product-old-price { font-size: 14px; }
    .characteristics-table td { font-size: 12px; }
}