/*
Theme Name: Гамма-амур
Theme URI: https://gamma-amur.ru/
Author: Gamma Amur Dev
Description: Корпоративная тема с фиксированным левым сайдбаром (как на gamma-center.ru)
Version: 2.0
Text Domain: gamma-amur
*/

:root {
    --sidebar-bg: #0a3d62;
    --sidebar-dark: #072a47;
    --primary-blue: #4a90d9;
    --light-blue: #6fa8dc;
    --text-white: #ffffff;
    --text-gray: #b8c5d6;
    --content-bg: #f5f7fa;
    --white: #ffffff;
    --border-color: #e1e8ed;
    --font-main: 'Roboto', 'Open Sans', Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: #333;
    line-height: 1.6;
    background-color: var(--content-bg);
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: all 0.3s;
}

a:hover {
    color: var(--light-blue);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================= ФИКСИРОВАННЫЙ ЛЕВЫЙ САЙДБАР ================= */
.fixed-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-dark) 100%);
    color: var(--text-white);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.fixed-sidebar::-webkit-scrollbar {
    width: 6px;
}

.fixed-sidebar::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
}

.fixed-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

/* Логотип */
.sidebar-logo {
    padding: 25px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo img {
    max-width: 120px;
    height: auto;
    margin: 0 auto 10px;
}

.sidebar-logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

.sidebar-logo-subtext {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 5px;
}

/* Телефоны */
.sidebar-phones {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.phone-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 14px;
}

.phone-item:last-child {
    margin-bottom: 0;
}

.phone-icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    margin-top: 2px;
    fill: var(--primary-blue);
}

.phone-link {
    color: var(--text-white);
    font-weight: 500;
    display: block;
    line-height: 1.3;
}

.phone-label {
    color: var(--text-gray);
    font-size: 11px;
    margin-top: 2px;
}

/* Навигация */
.sidebar-nav {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-white);
    font-size: 13px;
    font-weight: 400;
    transition: all 0.3s;
    position: relative;
}

.sidebar-menu a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-white);
    padding-left: 25px;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-blue);
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-menu a:hover::before {
    opacity: 1;
}

/* Каталог оборудования (кнопки) */
.sidebar-catalog-block {
    padding: 20px;
    background: rgba(0,0,0,0.2);
    margin: 15px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
}

.catalog-title {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.catalog-buttons {
    display: flex;
    gap: 8px;
}

.catalog-btn {
    flex: 1;
    padding: 10px 12px;
    background: rgba(255,255,255,0.1);
    color: var(--text-white);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.catalog-btn:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--text-white);
}

.catalog-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Виджеты в сайдбаре */
.sidebar-widgets {
    padding: 20px;
}

.sidebar-widget {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-widget:last-child {
    border-bottom: none;
}

.sidebar-widget-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    margin-bottom: 8px;
}

.sidebar-widget a {
    color: var(--text-gray);
    font-size: 13px;
    display: block;
    padding: 5px 0;
}

.sidebar-widget a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

/* ================= ОСНОВНОЙ КОНТЕНТ ================= */
.main-wrapper {
    margin-left: 280px;
    min-height: 100vh;
}

/* Верхняя полоса */
.top-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.region-select {
    color: var(--text-gray);
}

.top-icons {
    display: flex;
    gap: 15px;
}

.top-icon {
    width: 18px;
    height: 18px;
    fill: var(--primary-blue);
    cursor: pointer;
    transition: transform 0.2s;
}

.top-icon:hover {
    transform: scale(1.1);
}

/* Hero секция */
.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 32px;
    color: var(--sidebar-bg);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.hero-btn:hover {
    background: var(--light-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74,144,217,0.3);
}

/* Основной контент */
.content-area {
    padding: 40px;
    background: var(--white);
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 24px;
    color: var(--sidebar-bg);
    margin-bottom: 25px;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    padding: 20px;
    background: #fafbfc;
}

.product-card-content {
    padding: 20px;
}

.product-card h3 {
    font-size: 16px;
    color: var(--sidebar-bg);
    margin-bottom: 8px;
    font-weight: 600;
}

.product-card p {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

/* Подвал */
.site-footer {
    background: var(--sidebar-dark);
    color: var(--text-gray);
    padding: 50px 40px 30px;
    margin-left: 280px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-gray);
    font-size: 13px;
}

.footer-col a:hover {
    color: var(--text-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 12px;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .fixed-sidebar {
        width: 260px;
    }
    .main-wrapper,
    .site-footer {
        margin-left: 260px;
    }
}

@media (max-width: 992px) {
    .fixed-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        transform: none !important;
    }
    .main-wrapper,
    .site-footer {
        margin-left: 0;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
}