/* ============================================
   PAGES.CSS - Стили для внутренних страниц
   ============================================ */

/* ============================================
   BREADCRUMBS - Хлебные крошки
   ============================================ */
.breadcrumbs {
    padding: 16px 0;
    background-color: var(--md-sys-color-surface-container-low);
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--md-sys-color-on-surface-variant);
}

.breadcrumbs__link {
    color: var(--md-sys-color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumbs__link:hover {
    color: var(--md-sys-color-primary-hover);
    text-decoration: underline;
}

.breadcrumbs__separator {
    font-size: 12px;
    color: var(--md-sys-color-outline);
}

.breadcrumbs__current {
    color: var(--md-sys-color-on-surface);
}

/* ============================================
   PAGE HERO - Заголовок внутренних страниц
   ============================================ */
.page-hero {
    padding: 100px 0 48px;
    background: linear-gradient(135deg, #2D2D2D 0%, #1a1a1a 100%);
    text-align: center;
}

.page-hero__title {
    font-family: 'Bebas Neue Cyrillic', 'Arial Black', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.page-hero__subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .page-hero {
        padding: 140px 0 64px;
    }

    .page-hero__title {
        font-size: 48px;
        letter-spacing: 3px;
    }

    .page-hero__subtitle {
        font-size: 18px;
    }
}

@media (min-width: 1024px) {
    .page-hero__title {
        font-size: 56px;
    }
}

/* ============================================
   CATEGORY GRID - Сетка карточек категорий
   ============================================ */
.category-section {
    padding: 48px 0;
}

.category-section__title {
    font-size: 24px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    text-align: center;
    margin-bottom: 32px;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 576px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.category-grid--two {
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 576px) {
    .category-grid--two {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   CATEGORY CARD - Карточка категории/бренда
   ============================================ */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(226, 106, 53, 0.15);
    border-color: var(--md-sys-color-primary);
}

.category-card__image {
    width: 100%;
    height: 160px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--md-sys-color-surface-container);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.category-card__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--md-sys-color-on-surface-variant);
}

.category-card__placeholder .material-icons {
    font-size: 48px;
    opacity: 0.5;
}

.category-card__icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--md-sys-color-primary-container);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.category-card:hover .category-card__icon {
    background-color: var(--md-sys-color-primary);
}

.category-card__icon .material-icons {
    font-size: 40px;
    color: var(--md-sys-color-primary);
    transition: color 0.3s ease;
}

.category-card:hover .category-card__icon .material-icons {
    color: #fff;
}

.category-card__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    margin: 0 0 8px 0;
    text-align: center;
}

.category-card__description {
    font-size: 14px;
    color: var(--md-sys-color-on-surface-variant);
    text-align: center;
    margin: 0;
    line-height: 1.5;
}

.category-card__arrow {
    margin-top: 16px;
    color: var(--md-sys-color-primary);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.category-card:hover .category-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   ISSUES SECTION - Секция поломок
   ============================================ */
.issues-section {
    padding: 48px 0;
}

.issues-section__title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--md-sys-color-on-surface);
    text-align: center;
}

@media (min-width: 768px) {
    .issues-section__title {
        font-size: 32px;
    }
}

/* ============================================
   BENEFITS BOX - Блок "Что мы сделаем"
   ============================================ */
.benefits-section {
    padding: 48px 0;
    background-color: var(--md-sys-color-surface-container-low);
}

.benefits-box {
    background: linear-gradient(135deg, #FFFAF7 0%, #FFF5EE 100%);
    border-radius: 24px;
    padding: 32px 24px;
    border: 1px solid rgba(226, 106, 53, 0.15);
    max-width: 700px;
    margin: 0 auto;
}

.benefits-box__title {
    font-size: 24px;
    font-weight: 600;
    color: var(--md-sys-color-on-surface);
    margin: 0 0 24px 0;
    text-align: center;
}

.benefits-box__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.benefits-box__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    color: var(--md-sys-color-on-surface);
    line-height: 1.5;
}

.benefits-box__item .material-icons {
    color: var(--md-sys-color-primary);
    font-size: 24px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .benefits-box {
        padding: 40px 48px;
    }

    .benefits-box__title {
        font-size: 28px;
    }

    .benefits-box__item {
        font-size: 18px;
    }
}

/* ============================================
   WHATSAPP CTA - Кнопка WhatsApp
   ============================================ */
.cta-section {
    padding: 32px 0 48px;
    text-align: center;
}

.whatsapp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 280px;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--md-sys-color-primary) 0%, #F08A55 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(226, 106, 53, 0.35);
    transition: all 0.3s ease;
}

.whatsapp-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(226, 106, 53, 0.45);
}

.whatsapp-cta:active {
    transform: translateY(-1px);
}

.whatsapp-cta svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

@media (min-width: 768px) {
    .whatsapp-cta {
        font-size: 18px;
        padding: 20px 40px;
    }
}

/* ============================================
   SERVICE CARD LINK - Кликабельная карточка услуги
   ============================================ */
.service-card--link {
    text-decoration: none;
    cursor: pointer;
    position: relative;
}

.service-card--link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--md-sys-color-primary), var(--md-sys-color-primary-hover));
    border-radius: 16px 16px 0 0;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card--link:hover::after {
    transform: scaleX(1);
}

.service-card__arrow {
    display: block;
    margin-top: 12px;
    color: var(--md-sys-color-primary);
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.3s ease;
}

.service-card--link:hover .service-card__arrow {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   BACK LINK - Ссылка "Назад"
   ============================================ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--md-sys-color-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}

.back-link:hover {
    color: var(--md-sys-color-primary-hover);
}

.back-link .material-icons {
    font-size: 20px;
}

/* ============================================
   BEFORE-AFTER - Блок До/После
   ============================================ */
.faq-item.is-open .faq-item__answer:has(.before-after) {
    max-height: 1200px;
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 0 20px 20px;
}

@media (min-width: 768px) {
    .before-after {
        padding: 0 24px 24px;
    }
}

.before-after__card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.before-after__image {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.before-after__image .material-icons {
    font-size: 48px;
    color: #bbb;
}

.before-after__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-after__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   ISSUE CTA BUTTON - Кнопка в неисправностях
   ============================================ */
.issue-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    padding: 12px 20px;
    background-color: #25D366;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.issue-cta:hover {
    background-color: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.issue-cta svg {
    flex-shrink: 0;
}
