:root {
    --green-bar: #59B443;
    --red-bar: #FB004E;
    --blue-bar: #008EF1;
    /* Новые переменные для слайдера */
    --slide-width: 750px;
    --slide-gap: 20px;
    --slide-padding: 80px; /* Отступы для стрелок */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Подключение локальных шрифтов (.ttf) */
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/Montserrat-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #fff;
    color: #000;
}

/* Общий контейнер для контента (1370px) */
.container {
    width: 1370px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header и Footer — ограничены 1370px */
.header-container {
    max-width: 1370px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 4fr 1fr;
    align-items: center;
    gap: 75px;
    height: 80px;
}

.logo img {
    display: block;
}

/* Header */
header {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 30px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: relative;
    z-index: 100;
}

/* Меню (основное) */
ul.left-menu {
    background: none !important;
    display: flex;              /* <-- Горизонтальное меню */
    list-style: none;           /* <-- Убираем маркеры */
    gap: 24px;                  /* <-- Отступы между пунктами */
    margin: 0;                  /* <-- Убираем отступ по умолчанию */
    padding: 0;                 /* <-- Убираем padding */
    justify-content: center; /* <-- Центрируем пункты меню */
}

ul.left-menu a {
    background: none !important;
    text-decoration: none !important;
    color: #000 !important;                /* <-- Цвет текста */
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;           /* <-- Шрифт */
    font-size: 16px !important;
    transition: opacity 0.2s;
}

ul.left-menu a:hover {
    background: none !important;
    opacity: 0.7;               /* <-- Эффект при наведении */
}

/* Универсальное уничтожение подложки */
ul.left-menu li,
ul.left-menu li a {
    background: transparent;
    box-shadow: none;
    border: none;
    outline: none;
}

ul.left-menu li a::before,
ul.left-menu li a::after {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: left;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #000;
    text-decoration: none;
}

.logout-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #000;
    text-decoration: underline;
}

.logout-link:hover {
    opacity: 0.7;
}

.auth-btn {
    background: none;
    border: 1px solid #000;
    padding: 8px 16px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.auth-btn:hover {
    background: #f5f5f5;
}

.auth-btn-mobile {
    width: 100%;
    margin-top: 12px;
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.burger span {
    width: 24px;
    height: 2px;
    background: #000;
    margin: 3px 0;
    transition: 0.3s;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    flex-direction: column;
    gap: 16px;
    z-index: 99;
}

.mobile-menu a,
.mobile-menu .user-name {
    text-decoration: none;
    color: #000;
    font-size: 18px;
    font-weight: 400;
}

.mobile-user-menu a {
    display: block;
    margin-top: 8px;
    color: #000;
    text-decoration: none;
}

.mobile-menu.active {
    display: flex;
}

/* Modal (для авторизации) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    justify-content: center;
    align-items: center;
}

.modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    padding: 32px;
    position: relative;
}

.modal-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
}

.tab-btn {
    background: none;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #999;
    cursor: pointer;
}

.tab-btn.active {
    color: #000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
}

.form-control.error {
    border-color: #e74c3c;
}

.error-text {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 4px;
    display: none;
}

.btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.resend-info {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #666;
}

.resend-info span {
    display: block;
    margin-bottom: 8px;
}

/* Кнопки навигации по инфоблокам */
.iblock-nav-buttons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 7rem;
}

.iblock-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    height: 5rem;
    min-width: 50rem;
}

.iblock-nav-btn:hover {
    background: #0056b3;
    text-decoration: none;
}

/* Footer */
footer {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 30px;
    background: #fff;
    border-top: 1px solid #eee;
}

/* Main page */
main {
    padding: 60px 0;
}

.main-container {
    max-width: 1370px;
    margin: 0 auto;
    padding-top: 55px;
    padding-bottom: 55px;
}

.section {
    margin-bottom: 75px;
    font-weight: 900;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 28px;
    color: #000;
    margin-bottom: 55px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.razdel {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 28px;
    color: #000;
    margin-bottom: 55px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-title .bar {
    display: inline-block;
    width: 10px;
    height: 55px; /* Высота полоски как в макете */
    vertical-align: top;
}

.bar.green {
    background: var(--green-bar);
}

.bar.red {
    background: var(--red-bar);
}

.bar.blue {
    background: var(--blue-bar);
}

/* --- НОВЫЕ СТИЛИ ДЛЯ СЛАЙДЕРА НА CSS SCROLL SNAP (Vue.js) --- */

/* Общий контейнер слайдера */
.slider-section {
    margin-bottom: 75px;
}

/* Контейнер для слайдов и стрелок */
.slider-container {
    position: relative;
    padding: 0 var(--slide-padding); /* Отступы для стрелок */
}

/* Обёртка слайдов */
.slider-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch;
    /* Скрываем полосу прокрутки */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.slider-wrapper::-webkit-scrollbar {
    width: 0px;
    height: 0px;
    background: transparent; /* Chrome/Safari/Webkit */
}

/* Один слайд */
.slide-card {
    scroll-snap-align: start;
    flex: 0 0 var(--slide-width);
    min-height: 250px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--slide-gap);
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-right: var(--slide-gap); /* spaceBetween */
}

/* Контейнер для цветного квадрата */
.slide-image-container {
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Цветной квадрат с фоном изображения */
.slide-color-box {
    width: 250px;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 12px 0 0 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Заглушка, если нет изображения */
.slide-color-box-placeholder {
    width: 250px;
    height: 250px;
    background: #eee;
    border-radius: 12px 0 0 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Название поверх квадрата */
.slide-title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    text-align: center;
    max-width: 90%;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Контейнер с описанием */
.slide-description-container {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 0 12px 12px 0;
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
}

/* Стрелки */
.slider-button-prev,
.slider-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: rgba(0, 0, 0, 0.3);
    border: none;
    width: 40px;
    height: 250px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    line-height: 1; /* <-- Убираем возможные отступы шрифта */
    z-index: 10;
    transition: background 0.5s;
    padding: 0; /* <-- Убираем внутренние отступы, если есть */
    box-sizing: border-box; /* <-- Убедиться, что ширина/высота включают границу */
    transform-origin: center; /* Указываем точку трансформации */
}

/* Растягиваем символ по вертикали */
.slider-button-prev::after,
.slider-button-next::after {
    content: attr(data-symbol); /* <-- Будем передавать символ через data-атрибут */
    display: block;
    transform: scale(1, 1.6); /* <-- Растягиваем по вертикали в 2 раза */
    /* transform: scale(1, 2); */ /* <-- Альтернатива: scale(X, Y) */
    line-height: 1;
    font-size: inherit; /* Наследуем размер шрифта от кнопки */
}

.slider-button-prev:hover,
.slider-button-next:hover {
    background: rgba(0, 0, 0, 0.1);
}

.slider-button-prev {
    left: 10px;
}

.slider-button-next {
    right: 10px;
}

.slider-button-prev:disabled,
.slider-button-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.slider-arrow-prev,
.slider-arrow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e2001a;
    color: #e2001a;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.slider-arrow-prev { left: 15px; }
.slider-arrow-next { right: 15px; }

.slider-arrow-prev:hover,
.slider-arrow-next:hover {
    background: #e2001a;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* Адаптивность для слайдера */

/* Мобилки (до 575px) */
@media (max-width: 575px) {
    :root {
        --slide-width: calc(100% - 40px);
        --slide-height: 80vh;
        --slide-gap: 10px;
        --slide-padding: 10px;
    }
    
    .slider-container {
        padding: 0 var(--slide-padding);
    }
    
    .slide-card {
        flex: 0 0 var(--slide-width);
        height: var(--slide-height);
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        margin-right: var(--slide-gap);
    }
    
    .slide-image-container,
    .slide-color-box,
    .slide-color-box-placeholder {
        width: 100%;
        height: 40%;
        border-radius: 12px 12px 0 0;
    }
    
    .slide-description-container {
        height: 60%;
        border-radius: 0 0 12px 12px;
        padding: 15px;
    }
    
    .slider-button-prev,
    .slider-button-next {
        width: 40px;
        height: 40px;
        top: auto;
        bottom: 15px;
        transform: none;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
    }
    
    .slider-button-prev { left: calc(var(--slide-padding) + 10px); }
    .slider-button-next { right: calc(var(--slide-padding) + 10px); }
    
    .slider-button-prev::after,
    .slider-button-next::after {
        transform: scale(1, 1);
        font-size: 24px;
    }
}

/* Крупные телефоны (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    :root {
        --slide-width: 95%;
        --slide-height: 75vh;
        --slide-gap: 15px;
        --slide-padding: 20px;
    }
    
    .slider-container {
        padding: 0 var(--slide-padding);
    }
    
    .slide-card {
        flex: 0 0 var(--slide-width);
        height: var(--slide-height);
        margin-right: var(--slide-gap);
    }
    
    .slide-color-box,
    .slide-color-box-placeholder {
        height: 45%;
    }
    
    .slider-button-prev,
    .slider-button-next {
        width: 45px;
        height: 45px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.85);
    }
}

/* Планшеты (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    :root {
        --slide-width: 400px;
        --slide-height: 450px;
        --slide-gap: 25px;
        --slide-padding: 40px;
    }
    
    .slider-container {
        padding: 0 var(--slide-padding);
    }
    
    .slide-card {
        flex: 0 0 var(--slide-width);
        height: var(--slide-height);
        margin-right: var(--slide-gap);
    }
    
    .slide-color-box,
    .slide-color-box-placeholder {
        height: 250px;
    }
    
    .slider-button-prev,
    .slider-button-next {
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.9);
    }
}

/* Ноутбуки (1024px - 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    :root {
        --slide-width: 350px;
        --slide-height: 420px;
        --slide-gap: 30px;
        --slide-padding: 60px;
    }
    
    .slider-container {
        padding: 0 var(--slide-padding);
    }
    
    .slide-card {
        flex: 0 0 var(--slide-width);
        height: var(--slide-height);
        margin-right: var(--slide-gap);
    }
    
    .slide-color-box,
    .slide-color-box-placeholder {
        height: 230px;
    }
    
    .slider-button-prev,
    .slider-button-next {
        width: 55px;
        height: 55px;
    }
}

/* Большие мониторы (1440px+) */
@media (min-width: 1440px) {
    .slide-card {
        flex: 0 0 750px !important;
    }
    
    .slider-container {
        padding: 0 80px !important;
    }
    
    .slider-button-prev,
    .slider-button-next {
        width: 48px !important;
        height: 250px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
    }
    
    .slide-description-container {
        height: auto !important;
    }
}

/* Адаптивность для кнопок навигации */
@media (max-width: 767px) {
    .iblock-nav-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .iblock-nav-btn {
        width: 100%;
        height: 3.5rem;
        font-size: 14px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .iblock-nav-btn {
        font-size: 14px;
        padding: 0 1rem;
    }
}

/* Адаптивность для заголовков разделов */
@media (max-width: 767px) {
    .section-title,
    .razdel {
        font-size: 24px;
        margin-bottom: 40px;
    }
    
    .section-title .bar,
    .razdel .bar {
        height: 45px;
    }
}