/* css/style.css?v=3 */ 
/* ====== ОБЩИЕ СТИЛИ ====== */
/* css/style.css --primary-цвет скопирован из логотипа */
:root {
    --primary-color: #065aa0;
    --sidebar-width: 280px;
    
    /* Цвета для соцсетей */
    --telegram-color: #0088cc;
    --matrix-color: #0dbd8b;
    --nextcloud-color: #0d6efd;
}

body {
    overflow-x: hidden;
}

/* ====== КАРТОЧКИ ====== */
.equipment-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.equipment-card img {
    width: 80%;
    height: 80%;
    object-fit: cover;
}

/* ====== ВЫЕЗЖАЮЩЕЕ МЕНЮ (для телефона) ====== */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 60%;
    height: 60%;
    background: rgba(0,0,0,0.5);
    z-index: 1049;
}

.mobile-overlay.active {
    display: block;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 1050;
    transition: right 0.3s ease;
    box-shadow: -2px 0 15px rgba(0,0,0,0.2);
    overflow-y: auto;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar .list-group-item {
    border: none;
    padding: 12px 20px;
    font-size: 0.95rem;
}

.mobile-sidebar .list-group-item:hover {
    background: #f8f9fa25;
}

/* ====== TELEGRAM КНОПКА ====== */
.telegram-float-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(0,136,204,0.4); }
    50% { box-shadow: 0 4px 30px rgba(0,136,204,0.7); }
    100% { box-shadow: 0 4px 15px rgba(0,136,204,0.4); }
}

/* ====== АДАПТИВ ДЛЯ ТЕЛЕФОНА ====== */
@media (max-width: 991.98px) {
    /* Шапка: скрываем почту */
    header .d-none.d-lg-inline-flex {
        display: none !important;
    }
    
    /* Основной контент */
    #page-content-wrapper {
        padding: 0 !important;
    }
    
    /* Карточки */
    .equipment-card img {
        height: 180px;
    }
    
    /* Таблицы */
    .table {
        font-size: 0.8rem;
    }
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 575.98px) {
    /* Шапка: телефон компактно */
    header .container-fluid .row .col-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    header .container-fluid .row .col-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
    header img {
        max-height: 35px !important;
    }
    header a[href^="tel"] span {
        font-size: 0.7rem;
    }
    
    /* Карточки */
    .equipment-card img {
        height: 150px;
    }
    
    /* Заголовки */
    h1 {
        font-size: 1.4rem !important;
    }
    h2 {
        font-size: 1.1rem !important;
    }
}
/* ====== ШАПКА ====== */
header {
    overflow: hidden;
}

/* Чтобы логотип и face1.png были одной высоты */
header .container-fluid {
    min-height: 120px;
    display: flex;
    align-items: center;
}

header .row {
    width: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
}

/* Логотип — точно по высоте */
header .col-4.col-md-3.col-lg-2 img {
    max-height: 100px; /* ← ОСНОВНАЯ ВЫСОТА */
    width: auto;
    min-width: 100px;
}

/* На больших экранах логотип может быть крупнее */
@media (min-width: 1200px) {
    header .col-4.col-md-3.col-lg-2 img {
        max-height: 100px;
    }
    header .container-fluid {
        min-height: 100px;
    }
}

/* На телефоне */
@media (max-width: 767.98px) {
    header .container-fluid {
        min-height: 100px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
    
    header .row {
        min-height: 80px !important;
    }
    
    header .col-4.col-md-3.col-lg-2 img {
        max-height: 40px !important;
        min-width: 40px !important;
    }
    
    header h1 {
        font-size: 0.9rem !important;
    }
    
    header small {
        font-size: 0.55rem !important;
        letter-spacing: 1px !important;
    }
    
    header a[href^="tel"] span {
        font-size: 0.7rem !important;
    }
    
    header .btn {
        font-size: 0.6rem !important;
        padding: 1px 10px !important;
    }
}

/* Планшеты */
@media (min-width: 768px) and (max-width: 991.98px) {
    header .container-fluid {
        min-height: 90px !important;
    }
    
    header .row {
        min-height: 80px !important;
    }
    
    header .col-4.col-md-3.col-lg-2 img {
        max-height: 60px !important;
    }
}

/* ====== ШАПКА ====== */
.header-title {
    font-size: 1.4rem;
    letter-spacing: 3px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8), 0 0 40px rgba(0,100,255,0.1);
    background: linear-gradient(90deg, #ffffff 60%, #a8c8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-subtitle {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.8);
    background: linear-gradient(90deg, #ffffff 70%, #8ab4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-slogan {
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.4;
    text-shadow: 0 2px 15px rgba(0,0,0,0.8);
    letter-spacing: 0.3px;
    color: white;
}

.header-phone {
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 2px 15px rgba(0,0,0,0.8);
    letter-spacing: 0.5px;
    color: white;
    text-decoration: none;
}
/* ====== КОНТАКТЫ ====== */
.contact-btn {
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: 500;
    min-width: 180px;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-btn i {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.contact-btn span {
    font-size: 0.95rem;
    white-space: nowrap;
}

/* На телефоне кнопки чуть меньше */
@media (max-width: 575.98px) {
    .contact-btn {
        min-width: 140px;
        padding: 10px 16px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
    .contact-btn i {
        font-size: 1.1rem;
    }
    .contact-btn span {
        font-size: 0.8rem;
        white-space: normal;
    }
    
    /* Таблица на телефоне — компактно */
    .table-wrapper table {
        font-size: 0.85rem;
    }
    .table-wrapper td {
        padding: 8px 10px !important;
    }
}

/* Стили для таблицы контактов */
.table-contact {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table-contact td {
    padding: 10px 16px;
    vertical-align: middle;
    border: none;
}

.table-contact .label {
    font-weight: 600;
    color: #1a3a5c;
    width: 30%;
}

.table-contact .value {
    width: 70%;
}

/* ====== СВАЙП-МЕНЮ (мобильная карусель) ====== */
.swipe-menu-wrapper {
    overflow: hidden;
    padding: 10px 0;
    position: relative;
}

.swipe-menu {
    display: flex;
    gap: 16px;
    padding: 0 16px 10px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* Убираем скроллбар */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.swipe-menu::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.swipe-item {
    flex: 0 0 140px;
    min-height: 160px;
    scroll-snap-align: start;
    background: white;
    border-radius: 16px;
    padding: 20px 12px;
    text-decoration: none;
    color: #1a3a5c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.swipe-item:active {
    transform: scale(0.95);
    background: #f0f7ff;
}

.swipe-item-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 4px 12px rgba(13,110,253,0.25);
}

.swipe-item-text {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    color: #1a3a5c;
}

/* Индикаторы (точки) */
.swipe-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px 0 16px 0;
}

.swipe-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
    transition: all 0.3s ease;
    cursor: default;
}

.swipe-dots .dot.active {
    background: #0d6efd;
    width: 24px;
    border-radius: 4px;
}

/* Цвета для разных пунктов */
.swipe-item:nth-child(1) .swipe-item-icon {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
}
.swipe-item:nth-child(2) .swipe-item-icon {
    background: linear-gradient(135deg, #198754, #157347);
}
.swipe-item:nth-child(3) .swipe-item-icon {
    background: linear-gradient(135deg, #fd7e14, #e06b0a);
}
.swipe-item:nth-child(4) .swipe-item-icon {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
}
.swipe-item:nth-child(5) .swipe-item-icon {
    background: linear-gradient(135deg, #dc3545, #b02a37);
}
.swipe-item:nth-child(6) .swipe-item-icon {
    background: linear-gradient(135deg, #0dcaf0, #0aa5c9);
}


/* ====== ВЕРТИКАЛЬНЫЙ СВАЙП-МЕНЮ ====== */
.swipe-menu-wrapper-vertical {
    overflow: hidden;
    padding: 8px 12px 20px 12px;
    position: relative;
    height: 100%;
    max-height: calc(100vh - 180px);
}

.swipe-menu-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 4px 4px 20px 4px;
    height: 100%;
    /* Убираем скроллбар */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.swipe-menu-vertical::-webkit-scrollbar {
    display: none;
}

.swipe-item-vertical {
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: white;
    border-radius: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: #1a3a5c;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
    border: 1px solid rgba(0,0,0,0.04);
    min-height: 64px;
}

.swipe-item-vertical:active {
    transform: scale(0.98);
    background: #f0f7ff;
    border-color: #0d6efd;
}

.swipe-item-icon-vertical {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Цвета для иконок */
.swipe-item-vertical:nth-child(1) .swipe-item-icon-vertical {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
}
.swipe-item-vertical:nth-child(2) .swipe-item-icon-vertical {
    background: linear-gradient(135deg, #198754, #157347);
}
.swipe-item-vertical:nth-child(3) .swipe-item-icon-vertical {
    background: linear-gradient(135deg, #fd7e14, #e06b0a);
}
.swipe-item-vertical:nth-child(4) .swipe-item-icon-vertical {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
}
.swipe-item-vertical:nth-child(5) .swipe-item-icon-vertical {
    background: linear-gradient(135deg, #dc3545, #b02a37);
}
.swipe-item-vertical:nth-child(6) .swipe-item-icon-vertical {
    background: linear-gradient(135deg, #0dcaf0, #0aa5c9);
}
.swipe-item-vertical:nth-child(7) .swipe-item-icon-vertical {
    background: linear-gradient(135deg, #143c44, #133c46);
}

.swipe-item-content-vertical {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.swipe-item-title-vertical {
    font-size: 1rem;
    font-weight: 600;
    color: #1a3a5c;
    line-height: 1.2;
}

.swipe-item-desc-vertical {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.2;
}

.swipe-item-arrow-vertical {
    color: #adb5bd;
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.swipe-item-vertical:active .swipe-item-arrow-vertical {
    transform: translateX(4px);
    color: #0d6efd;
}

/* Адаптив для телефона */
@media (max-width: 575.98px) {
    .swipe-item-vertical {
        padding: 12px 14px;
        min-height: 56px;
    }
    .swipe-item-icon-vertical {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 10px;
    }
    .swipe-item-title-vertical {
        font-size: 0.9rem;
    }
    .swipe-item-desc-vertical {
        font-size: 0.7rem;
    }
    .swipe-menu-wrapper-vertical {
        max-height: calc(100vh - 160px);
        padding: 4px 8px 16px 8px;
    }
}
/* Если хочешь сделать логотип в основной шапке тоже более заметным: */
.logo-link {
    display: inline-block;
    position: relative;
}

.logo-link:hover img {
    transform: scale(1.05);
}

.logo-tooltip {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: #6c757d;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.logo-link:hover .logo-tooltip {
    opacity: 1;
}
/* Подсветка активного пункта */
.nav-link.active {
    background-color: #0d6efd !important; /* синий фон как в Bootstrap */
    color: #ffffff !important;
    border-radius: 8px;
    font-weight: 600;
}

/* Или если используете кастомные цвета */
.navbar-nav .nav-link.active {
    color: #007bff !important;
    font-weight: 700;
    border-bottom: 3px solid #007bff;
}
