/* pages/services.css — from services/index.blade.php */

.services-page {
    padding-bottom: 60px;
}

/* Хлебные крошки */
.breadcrumbs {
    margin: 20px 0;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
}

.breadcrumbs__item a {
    color: #6b7280;
    text-decoration: none;
}

.breadcrumbs__item a:hover {
    color: #f0cf4c;
}

.breadcrumbs__sep {
    margin: 0 8px;
    color: #d1d5db;
    font-size: 10px;
}

.breadcrumb_last {
    color: #1a1a1a;
    font-weight: 500;
}

/* Шапка с заголовком и conversion */
._block-group__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

._block-group__head-left {
    width: 70%;
    padding-right: 20px;
}

._block-title-wrapper {
    margin-bottom: 12px;
}

._block-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.aluminumrolled__listing-products-shown {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px;
}

.aluminumrolled__listing-products-shown span {
    font-weight: 600;
    color: #1a1a1a;
}

/* Описание */
.aluminumrolled__listing-descr {
    margin-top: 16px;
}

.aluminumrolled__listing-descr-content {
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
    max-height: 75px;
    overflow: hidden;
    position: relative;
}

.aluminumrolled__listing-descr-content.expanded {
    max-height: none;
}

.aluminumrolled__listing-descr-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}

.aluminumrolled__listing-descr-content.expanded::after {
    display: none;
}

.aluminumrolled__listing-descr-content p {
    margin: 0 0 12px;
}

.aluminumrolled__listing-descr-content p:last-child {
    margin-bottom: 0;
}

.aluminumrolled__listing-descr-content ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.aluminumrolled__listing-descr-content li {
    margin-bottom: 4px;
}

.aluminumrolled__listing-descr-toggle {
    background: none;
    border: none;
    padding: 0;
    margin-top: 12px;
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
    font-weight: 500;
}

.aluminumrolled__listing-descr-toggle:hover {
    color: #f0cf4c;
}

/* Conversion блок */
.conversion {
    width: 30%;
    background: #f9fafb;
    border-radius: 10px;
    padding: 14px 16px;
}

.conversion ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

.conversion ul li {
    font-size: 12px;
    color: #374151;
    padding: 3px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
}

.conversion ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 11px;
}

.conversion__bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 10px;
}

.conversion__online {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.conversion__online-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.conversion__online p {
    font-size: 12px;
    color: #374151;
    margin: 0;
}

.conversion__contacts {
    display: flex;
    gap: 8px;
    align-items: center;
}

.conversion__contacts a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    background: #fff;
    transition: all 0.2s ease;
}

.conversion__contacts a:hover {
    background: #f0cf4c;
}

/* Адаптивность conversion */
@media (max-width: 991px) {
    ._block-group__head-left {
        width: 60%;
    }
    
    .conversion {
        width: 40%;
    }
    
    ._block-title {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    ._block-group__head {
        flex-direction: column;
    }
    
    ._block-group__head-left {
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .conversion {
        width: 100%;
    }
    
    ._block-title {
        font-size: 20px;
    }
}

/* Сетка услуг - стиль категорий */
.services-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.service-category-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-subservices {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 10px;
    border-left: 2px solid #f3f4f6;
}

.service-subservices__item {
    font-size: 13px;
    color: #4b5563;
    text-decoration: none;
    line-height: 1.25;
}

.service-subservices__item:hover {
    color: #f0cf4c;
}

@media (max-width: 1200px) {
    .services-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .services-list {
        grid-template-columns: 1fr;
    }
}

.service-category {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    text-decoration: none;
}

.service-category:hover {
    border-color: #f0cf4c;
    background: #fafafa;
}

.service-category-img {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.service-category-icon {
    font-size: 24px;
    color: #f0cf4c;
}

.service-category-name {
    margin-left: 14px;
    flex: 1;
    min-width: 0;
}

.service-category-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.3;
}

.service-category:hover .service-category-name {
    color: #f0cf4c;
}

.no-services {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

/* ── Service detail page (/uslugi/{slug}) ── */
.service-page {
    padding-bottom: 60px;
}

.service-hero {
    margin-bottom: 18px;
}

.service-hero__main {
    max-width: 980px;
}

.service-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.3;
}

.service-lead {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.service-detail-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 991px) {
    .service-detail-layout {
        grid-template-columns: 1fr;
    }
}

.news-single-sidebar {
    position: sticky;
    top: 24px;
}

.news-sidebar-widget {
    background: #fafbfc;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #eef0f2;
}

.news-sidebar-widget:last-child {
    margin-bottom: 0;
}

.news-sidebar-widget__title {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

.news-sidebar-widget__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-sidebar-widget__list li {
    margin-bottom: 6px;
}

.news-sidebar-widget__list li:last-child {
    margin-bottom: 0;
}

.news-sidebar-widget__list a {
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    display: block;
    padding: 6px 0;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
}

.news-sidebar-widget__list a:hover {
    color: #b8860b;
    background: rgba(240, 207, 76, 0.08);
}

.service-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-bullets li {
    font-size: 13px;
    color: #334155;
    padding: 4px 0 4px 18px;
    position: relative;
    line-height: 1.4;
}

.service-bullets li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 11px;
}

.service-contacts {
    display: grid;
    gap: 10px;
}

.service-order-btn {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #f0cf4c;
    background: #f0cf4c;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    box-sizing: border-box;
}

.service-order-btn:hover {
    background: #e5bf38;
    border-color: #e5bf38;
}

.service-order-btn:active {
    transform: translateY(1px);
}

.service-contacts__row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.service-contacts__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
}

.service-contacts__phone:hover {
    color: #b8860b;
}

.service-contacts__social {
    display: flex;
    gap: 8px;
    align-items: center;
}

.service-contacts__social a {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #eef0f2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.service-contacts__social a:hover {
    background: #f0cf4c;
    border-color: #f0cf4c;
}

.service-contacts__social .wa {
    color: #25d366;
}

.service-contacts__social .tg {
    color: #0088cc;
}

.service-contacts__social .mail,
.service-contacts__social .phone {
    color: #111827;
}

.service-content {
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
}

.service-content h2 {
    font-size: 18px;
    margin: 16px 0 8px;
    color: #1a1a1a;
}

.service-content p {
    margin: 0 0 12px;
}

.service-content ul,
.service-content ol {
    margin: 0 0 12px;
    padding-left: 20px;
}

.service-content li {
    margin-bottom: 4px;
}

.service-media {
    margin: 18px 0;
}

.service-media img {
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    max-width: 100%;
    height: auto;
}

.service-related {
    margin-top: 28px;
}

.service-related__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1a1a1a;
}

.service-related__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 700px) {
    .service-related__grid {
        grid-template-columns: 1fr;
    }
}

.service-related-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #eef0f2;
    background: #fff;
    text-decoration: none;
    color: #111827;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.service-related-card:hover {
    border-color: rgba(240, 207, 76, 0.9);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.service-related-card:active {
    transform: translateY(1px);
}

.service-related-card__name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
}

.service-related-card__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(240, 207, 76, 0.2);
    color: #b8860b;
    flex: 0 0 auto;
}

@media (max-width: 1100px) {
    .service-hero__main {
        max-width: none;
    }
}

@media (max-width: 700px) {
    .service-title {
        font-size: 22px;
    }
}
