/**
 * Basic Styles
 * Базовые стили и utility классы
 */

:root {
    /* Шрифты */
    --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-family-heading: 'Muller', 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-size-base: 17px;

    /* Размеры */
    --header-height: 87px;
    --container-width: 1340px;
    --container-padding: 20px;

    /* Скругления */
    --border-radius: 5px;
    --border-radius-round: 1000px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* Заголовки используют Muller */
h1, h2, h3, h4, h5, h6, .section-title {
    font-family: var(--font-family-heading);
}

ul {
    list-style-position: inside;
}

.container {
    max-width: var(--container-width);
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto;
}

/* Универсальная ссылка "Все" со стрелками */
.section-all-link {
    color: #E01F26;
    font-size: 20px;
    font-weight: 400;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease;
}

.section-all-link:hover {
    opacity: 0.8;
}

.section-all-link svg {
    width: 23px;
    height: 11px;
}

/* Универсальный заголовок секции */
.section-title {
    color: #383E4B;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 30px;
    text-align: center;
}

/* ========================================
   Общие стили фильтров
   Универсальные стили для кнопок фильтров на всех страницах
   ======================================== */

.filter-tab {
    padding: 12px 30px;
    border: 1px solid #E0E0E0;
    border-radius: 50px;
    background: #FFFFFF;
    color: #383E4B;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.filter-tab:hover {
    border-color: #E01F26;
}

.filter-tab.active {
    background: #FFFFFF;
    border-color: #E01F26;
    color: #E01F26;
}

/* ========================================
   Общие стили кнопок
   ======================================== */

.btn {
    font-size: 17px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border: none;
}

.btn-primary {
    background-color: #E01F26;
    border-radius: 1000px;
    color: #FAFAFA;
    padding: 18px 45px;
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #383E4B;
    border-radius: 1000px;
    color: #383E4B;
    padding: 18px 45px;
}

.btn-outline:hover {
    background-color: rgba(56, 62, 75, 0.05);
}

/* ========================================
   Хлебные крошки
   ======================================== */

.breadcrumbs {
    margin: 50px 0;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs-link {
    color: #999999;
    text-decoration: none;
}

.breadcrumbs-link:hover {
    color: var(--color-primary);
}

.breadcrumbs-separator {
    color: #999999;
    user-select: none;
}

.breadcrumbs-current span {
    color: var(--color-text);
}

/* ========================================
   Навигация слайдера (точки + стрелки)
   Универсальный компонент для всех слайдеров
   ======================================== */

.slider-navigation {
    display: flex;
    align-items: center;
    margin-top: 35px;
}

/* Неактивная навигация (когда точек <= 1, некуда листать) */
.slider-navigation-inactive {
    opacity: 0.4;
    pointer-events: none;
}

.slider-navigation-inactive .dot {
    background-color: #cccccc !important;
    cursor: default;
}

.slider-navigation-inactive .arrow-btn {
    opacity: 0.5;
    cursor: default;
}

/* Точки индикатора */
.slider-dots {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(224, 31, 38, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dots .dot.active {
    width: 14px;
    height: 14px;
    background-color: #E01F26;
}

.slider-dots .dot:hover {
    background-color: rgba(224, 31, 38, 0.6);
}

/* Кнопки навигации */
.slider-arrows {
    display: flex;
    gap: 12px;
    margin-right: 100px;
}

.arrow-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.3s ease;
}

.arrow-btn:hover {
    opacity: 0.85;
}

.arrow-btn svg {
    width: 51px;
    height: 51px;
    display: block;
}

/* ========================================
   Универсальная обертка контента с чередующимся фоном
   Используется для создания секций с белым или прозрачным фоном
   ======================================== */

.content-wrapper {
    max-width: 1670px;
    margin: 0 auto;
    padding: 60px 0;
}

.content-wrapper-white {
    background-color: white;
}

.content-wrapper-transparent {
    background-color: transparent;
}

@media (max-width: 1300px) {
    .breadcrumbs {
        margin: clamp(25px, calc(8.333vw - 58.333px), 50px) 0;
    }
}

/* Мобильные стили */
@media (max-width: 1000px) {
    .container {
        padding: 0 20px;
    }

    .breadcrumbs {
        margin: 20px 0;
    }

    .slider-navigation {
        margin-top: 0;
        justify-content: space-between;
    }

    .slider-dots {
        margin: 0;
    }

    .slider-arrows {
        margin-right: 0;
    }

    .arrow-btn svg {
        width: 43px;
        height: 43px;
    }

    .content-wrapper {
        padding: 40px 0;
    }
}

@media (max-width: 600px) {
    .content-wrapper {
        padding: 30px 0;
    }
}
