/* assets/css/style.css */

:root {
    --primary: #0a3d6b;
    --secondary: #1a6ea8;
    --accent: #f0a500;
    --light: #f4f7fa;
    --dark: #1a2332;
    --success: #28a745;
    --danger: #dc3545;
    --text: #333;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
}

/* Header */
header {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo h1 span {
    color: var(--accent);
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    background: var(--accent);
    color: var(--dark);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255,255,255,0.05);
    transform: rotate(15deg);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero .btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent);
    color: var(--dark);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(240, 165, 0, 0.4);
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Manufacturers Grid */
.manufacturers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.manufacturer-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.manufacturer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-color: var(--accent);
}

.manufacturer-card img {
    max-width: 100px;
    height: auto;
    margin-bottom: 10px;
}

.manufacturer-card h4 {
    font-size: 1rem;
    color: var(--primary);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.product-image {
    height: 200px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.product-info .manufacturer {
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.product-info .part-number {
    color: #888;
    font-size: 0.85rem;
    margin: 5px 0;
}

.product-info .price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 10px 0;
}

.product-info .stock {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stock.in-stock {
    background: #d4edda;
    color: #155724;
}

.stock.out-of-stock {
    background: #f8d7da;
    color: #721c24;
}

/* Filters */
.filters {
    background: var(--white);
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filters select,
.filters input {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: var(--white);
    min-width: 200px;
    transition: border-color 0.3s ease;
}

.filters select:focus,
.filters input:focus {
    border-color: var(--secondary);
    outline: none;
}

/* Footer */
footer {
    background: var(--dark);
    color: #ccc;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-container h4 {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-container a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin: 5px 0;
    transition: color 0.3s ease;
}

.footer-container a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    margin-top: 30px;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        justify-content: center;
        gap: 10px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .manufacturers-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}
/* Добавьте в конец style.css */

/* Кнопки */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(240, 165, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary);
}

/* Карточка товара - улучшения */
.product-card {
    position: relative;
}

.product-image {
    position: relative;
}

/* Адаптив для мобильных */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .product-info .price {
        font-size: 1.1rem;
    }
}
/* ===== ПОИСК В HEADER ===== */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50px;
    padding: 4px 4px 4px 18px;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.3s ease;
    min-width: 250px;
}

.search-container:focus-within {
    background: white;
    border-color: #f0a500;
    box-shadow: 0 0 25px rgba(240, 165, 0, 0.15);
}

.search-container:focus-within .search-icon {
    color: #f0a500;
}

.search-container:focus-within .search-input {
    color: #333;
}

.search-container:focus-within .search-input::placeholder {
    color: #aaa;
}

.search-icon {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.search-input {
    background: none;
    border: none;
    padding: 8px 12px;
    color: white;
    font-size: 0.9rem;
    width: 100%;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-btn {
    background: #f0a500;
    color: #1a2332;
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: #d4940a;
    transform: scale(1.02);
}

/* Адаптив для поиска */
@media (max-width: 992px) {
    .search-container {
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .search-container {
        min-width: 100%;
        width: 100%;
    }
    
    .search-input {
        font-size: 0.85rem;
    }
    
    .search-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .search-container {
        padding: 4px 4px 4px 12px;
    }
    
    .search-btn {
        padding: 5px 12px;
        font-size: 0.75rem;
    }
    
    .search-input {
        font-size: 0.8rem;
        padding: 6px 8px;
    }
}
/* ===== КОМПАКТНЫЙ ПОИСК ===== */
.search-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.search-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 8px 10px;
    transition: all 0.3s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-toggle:hover {
    color: #f0a500;
    background: rgba(255,255,255,0.05);
}

.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 12px;
    z-index: 1000;
    min-width: 340px;
    border: 1px solid rgba(0,0,0,0.05);
}

.search-dropdown.active {
    display: block;
    animation: searchFadeIn 0.2s ease;
}

@keyframes searchFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.search-dropdown-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f7fa;
    border-radius: 10px;
    padding: 4px 4px 4px 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.search-dropdown-form:focus-within {
    border-color: #f0a500;
    background: white;
    box-shadow: 0 0 20px rgba(240, 165, 0, 0.08);
}

.search-dropdown-form .search-icon-input {
    color: #aaa;
    font-size: 0.9rem;
}

.search-dropdown-form .search-input {
    border: none;
    background: none;
    padding: 10px 0;
    font-size: 0.95rem;
    width: 100%;
    outline: none;
    color: #333;
}

.search-dropdown-form .search-input::placeholder {
    color: #aaa;
}

.search-dropdown-form .search-submit {
    background: #f0a500;
    color: #1a2332;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-dropdown-form .search-submit:hover {
    background: #d4940a;
}

/* Автодополнение */
.search-autocomplete {
    display: none;
    margin-top: 10px;
    max-height: 280px;
    overflow-y: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
}

.search-autocomplete.active {
    display: block;
}

.search-autocomplete .suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.search-autocomplete .suggestion:hover {
    background: #f5f7fa;
}

.search-autocomplete .suggestion .sugg-icon {
    font-size: 1rem;
    flex: 0 0 28px;
    text-align: center;
}

.search-autocomplete .suggestion .sugg-title {
    font-size: 0.9rem;
    flex: 1;
    color: #333;
}

.search-autocomplete .suggestion .sugg-title .highlight {
    color: #f0a500;
    font-weight: 700;
}

.search-autocomplete .suggestion .sugg-type {
    font-size: 0.6rem;
    color: #888;
    background: #f0f0f0;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-autocomplete .suggestion .sugg-image {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 6px;
    background: #f8f9fa;
}

.search-autocomplete .no-results {
    padding: 15px;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}

.search-autocomplete .view-all {
    display: block;
    text-align: center;
    padding: 10px;
    color: #1a6ea8;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border-top: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    margin-top: 5px;
    border-radius: 0 0 8px 8px;
}

.search-autocomplete .view-all:hover {
    background: #f5f7fa;
    color: #f0a500;
}

/* Адаптив для поиска */
@media (max-width: 768px) {
    .search-dropdown {
        min-width: 280px;
        right: -10px;
        padding: 10px;
    }
    
    .search-dropdown-form {
        padding: 4px 4px 4px 12px;
    }
    
    .search-dropdown-form .search-input {
        font-size: 0.85rem;
        padding: 8px 0;
    }
    
    .search-dropdown-form .search-submit {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .search-dropdown {
        min-width: 200px;
        right: -20px;
        padding: 8px;
    }
    
    .search-dropdown-form {
        padding: 4px 4px 4px 10px;
        gap: 6px;
    }
    
    .search-dropdown-form .search-input {
        font-size: 0.8rem;
        padding: 6px 0;
    }
    
    .search-dropdown-form .search-submit {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
    
    .search-autocomplete .suggestion {
        padding: 6px 10px;
    }
    
    .search-autocomplete .suggestion .sugg-title {
        font-size: 0.8rem;
    }
}
/* ===== COOKIES БАННЕР ===== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
    border-top: 3px solid #f0a500;
    animation: cookieSlideUp 0.5s ease;
}

@keyframes cookieSlideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

#cookie-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 280px;
}

#cookie-text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #555;
}

#cookie-text a {
    color: #1a6ea8;
    text-decoration: underline;
}

#cookie-text a:hover {
    color: #f0a500;
}

#cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cookie-btn-accept {
    background: #f0a500;
    color: #1a2332;
}

.cookie-btn-accept:hover {
    background: #d4940a;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(240, 165, 0, 0.3);
}

.cookie-btn-settings {
    background: transparent;
    color: #555;
    border: 2px solid #e0e0e0;
}

.cookie-btn-settings:hover {
    background: #f5f7fa;
    border-color: #aaa;
}

/* ===== МОДАЛЬНОЕ ОКНО НАСТРОЕК COOKIES ===== */
#cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#cookie-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

#cookie-modal-header h3 {
    margin: 0;
    color: #0a3d6b;
}

#cookie-modal-body {
    padding: 25px;
}

.cookie-setting {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.cookie-setting:last-child {
    border-bottom: none;
}

#cookie-modal-footer {
    padding: 15px 25px 25px;
    text-align: right;
}

/* ===== TOGGLE SWITCH ДЛЯ COOKIES ===== */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    transition: 0.4s;
    border-radius: 26px;
}

.cookie-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: 0.4s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background: #f0a500;
}

.cookie-switch input:checked + .cookie-slider::before {
    transform: translateX(24px);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 768px) {
    #cookie-banner {
        padding: 15px 20px;
    }
    
    #cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    #cookie-text {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #cookie-buttons {
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    #cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        justify-content: center;
        padding: 10px 20px;
    }
    
    #cookie-modal-content {
        width: 95%;
        border-radius: 12px;
    }
    
    #cookie-modal-body {
        padding: 15px;
    }
}
/* ============================================================
   КАСТОМНЫЙ СКРОЛЛБАР С АНИМАЦИЕЙ
   ============================================================ */

/* ===== ДЛЯ CHROME, EDGE, SAFARI, OPERA ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

/* Дорожка скроллбара */
::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #e8edf3 0%, #d5dde8 100%);
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.05);
}

/* Ползунок скроллбара */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0a3d6b 0%, #1a6ea8 40%, #f0a500 100%);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

/* Анимация ползунка при наведении */
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f0a500 0%, #1a6ea8 60%, #0a3d6b 100%);
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(240, 165, 0, 0.3);
}

/* Активный ползунок (при нажатии) */
::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, #f0a500 0%, #d4940a 100%);
    transform: scale(0.95);
}

/* Анимация пульсации для ползунка */
::-webkit-scrollbar-thumb {
    animation: scrollGlow 3s ease-in-out infinite;
}

@keyframes scrollGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(240, 165, 0, 0.1), inset 0 0 5px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(240, 165, 0, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.2);
    }
}

/* Уголки скроллбара */
::-webkit-scrollbar-corner {
    background: transparent;
}

/* Стиль для горизонтального скроллбара */
::-webkit-scrollbar-thumb:horizontal {
    background: linear-gradient(90deg, #0a3d6b 0%, #1a6ea8 40%, #f0a500 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:horizontal:hover {
    background: linear-gradient(90deg, #f0a500 0%, #1a6ea8 60%, #0a3d6b 100%);
}

/* ===== ДЛЯ FIREFOX ===== */
* {
    scrollbar-width: thin;
    scrollbar-color: #1a6ea8 #e8edf3;
}

/* Плавный скролл для всей страницы */
html {
    scroll-behavior: smooth;
}

/* Дополнительный эффект - градиент на дорожке при скролле */
::-webkit-scrollbar-track-piece {
    background: linear-gradient(180deg, #e8edf3 0%, #d5dde8 100%);
    border-radius: 10px;
}

/* ============================================================
   АЛЬТЕРНАТИВНЫЙ ВАРИАНТ - СТИЛЬ "КОСМОС"
   (раскомментировать чтобы использовать вместо основного)
   ============================================================ */
/*
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #0a0e1a 0%, #1a2332 100%);
    border-radius: 10px;
    box-shadow: inset 0 0 20px rgba(10, 61, 107, 0.3);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #f0a500 0%, #ff6b6b 50%, #f0a500 100%);
    background-size: 100% 200%;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: scrollRainbow 3s ease-in-out infinite;
}

@keyframes scrollRainbow {
    0% { background-position: 0% 0%; }
    50% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

::-webkit-scrollbar-thumb:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(240, 165, 0, 0.4);
}
*/

/* ============================================================
   ЭФФЕКТ ПРИ СКРОЛЛЕ - ИЗМЕНЕНИЕ ЦВЕТА ПОЛЗУНКА
   (добавляется через JavaScript)
   ============================================================ */
::-webkit-scrollbar-thumb {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* ============================================================
   СТИЛЬ ДЛЯ ТЕМНОЙ ТЕМЫ (если будет использоваться)
   ============================================================ */
@media (prefers-color-scheme: dark) {
    ::-webkit-scrollbar-track {
        background: linear-gradient(180deg, #1a2332 0%, #0a0e1a 100%);
        box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    }
    
    ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, #f0a500 0%, #1a6ea8 60%, #0a3d6b 100%);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #ffc107 0%, #1a6ea8 70%, #0a3d6b 100%);
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* ============================================================
   СТИЛЬ ДЛЯ ЭЛЕМЕНТОВ С ОГРАНИЧЕННОЙ ВЫСОТОЙ
   (списки, таблицы, текстовые поля)
   ============================================================ */
.custom-scroll {
    scrollbar-width: thin;
    scrollbar-color: #f0a500 #e8edf3;
}

.custom-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: #f0f2f5;
    border-radius: 8px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1a6ea8, #f0a500);
    border-radius: 8px;
    animation: scrollGlow 3s ease-in-out infinite;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f0a500, #1a6ea8);
    transform: scale(1.1);
}

/* ============================================================
   СКРОЛЛБАР НА КОНТАКТНОЙ СТРАНИЦЕ (пример)
   ============================================================ */
.contact-form textarea::-webkit-scrollbar {
    width: 6px;
}

.contact-form textarea::-webkit-scrollbar-track {
    background: #f0f2f5;
    border-radius: 8px;
}

.contact-form textarea::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1a6ea8, #f0a500);
    border-radius: 8px;
}

/* ============================================================
   АНИМАЦИЯ ПОЯВЛЕНИЯ СКРОЛЛБАРА (при наведении)
   ============================================================ */
/* Скрываем скроллбар по умолчанию, показываем при наведении */
.hidden-scroll {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.hidden-scroll::-webkit-scrollbar {
    width: 4px;
    transition: width 0.3s ease;
}

.hidden-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.hidden-scroll::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hidden-scroll:hover::-webkit-scrollbar {
    width: 8px;
}

.hidden-scroll:hover::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1a6ea8, #f0a500);
    border-radius: 8px;
}

.hidden-scroll:hover::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #f0a500, #1a6ea8);
    transform: scale(1.05);
}

.hidden-scroll:hover {
    scrollbar-color: #1a6ea8 transparent;
}

/* ============================================================
   КАСТОМНЫЙ СКРОЛЛ ДЛЯ ТАБЛИЦ
   ============================================================ */
.table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #f0f2f5;
    border-radius: 8px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #1a6ea8, #f0a500);
    border-radius: 8px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #f0a500, #1a6ea8);
}

/* ============================================================
   ЭФФЕКТ НЕОНА ДЛЯ СКРОЛЛБАРА (дополнительно)
   ============================================================ */
.neon-scroll::-webkit-scrollbar-thumb {
    animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(240, 165, 0, 0.2), 
                    0 0 10px rgba(240, 165, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(240, 165, 0, 0.4),
                    0 0 40px rgba(240, 165, 0, 0.2),
                    0 0 60px rgba(240, 165, 0, 0.1);
    }
}
.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}