/* ООО ПО ВИЗ - Современный дизайн v206.0 (СВЕТЛЫЕ СЕО КНОПКИ + БЕЗ DROPDOWN) */

/* Каталог - двухколоночный layout */
.catalog-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 20px;
    margin-top: 20px;
}

.sidebar {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.products-panel {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

@media (max-width: 992px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
    }
}
:root {
    --primary-blue: #0066cc;
    --dark-blue: #004a99;
    --light-blue: #e6f2ff;
    --white: #ffffff;
    --red-accent: #cc0000;
    --light-red: #ffe6e6;
    --text-dark: #2c3e50;
    --text-gray: #7f8c8d;
    --border-color: #e0e0e0;
    --background: #f8f9fa;
    --shadow: rgba(0, 0, 0, 0.08);
    --accent-orange: #ff9800;
    --success-green: #27ae60;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Отключаем зум по двойному клику на мобильных */
    touch-action: manipulation;
    -webkit-touch-callout: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: var(--background);
    line-height: 1.6;
    font-size: 15px;
    padding-top: 0;
}

/* Breadcrumb alignment for SEO pages */
.breadcrumb {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Dropdown menu styles for header */
header nav ul li {
    position: relative;
}

header nav ul li.has-dropdown {
    position: relative;
}

header nav ul li.has-dropdown > a {
    display: flex !important;
    align-items: center;
    gap: 5px;
}

header nav ul li.has-dropdown > a i.fa-chevron-down {
    font-size: 10px;
    transition: transform 0.3s;
}

header nav ul li.has-dropdown:hover > a i.fa-chevron-down {
    transform: rotate(180deg);
}

header nav ul li.has-dropdown .dropdown-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #fff !important;
    min-width: 250px !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15) !important;
    border-radius: 8px !important;
    padding: 10px 0 !important;
    z-index: 10000 !important;
    animation: fadeIn 0.3s ease;
}

header nav ul li.has-dropdown:hover .dropdown-menu {
    display: block !important;
}

header nav .dropdown-menu li {
    display: block !important;
}

header nav .dropdown-menu li a {
    display: block !important;
    padding: 12px 20px !important;
    color: #333 !important;
    border-left: 3px solid transparent !important;
    text-align: left !important;
    white-space: nowrap !important;
}

header nav .dropdown-menu li a:hover {
    background: #f0f8ff !important;
    color: #2c5aa0 !important;
    border-left: 3px solid #2c5aa0 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    line-height: normal;
    overflow: visible;
}

/* Скрыть мобильную корзину и гамбургер на desktop */
.header-right {
    display: none;
}

@media (max-width: 992px) {
    .header-right {
        display: flex !important;
        align-items: center;
        gap: 15px;
    }
}

/* Мобильная корзина - синий круг */
.cart-link-mobile {
    width: 56px;
    height: 56px;
    background: #0066cc;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,102,204,0.3);
}

.cart-link-mobile i {
    color: white;
    font-size: 24px;
}

.cart-link-mobile .cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid white;
}

/* Гамбургер - синяя рамка */
.hamburger {
    width: 56px;
    height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border: 2px solid #0066cc;
    border-radius: 12px;
    background: white;
    padding: 12px;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background: #0066cc;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Белая подложка логотипа на мобильном */
@media (max-width: 992px) {
    .logo {
        background: white;
        padding: 6px 12px;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .logo-image {
        max-height: 32px;
        width: auto;
    }
    
    .header-main .container {
        padding: 0 12px;
    }
}

.header-top {
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px 0;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top p {
    margin: 0;
    font-size: 14px;
}

.header-top a {
    color: var(--white);
    text-decoration: none;
    margin-left: 20px;
}

.header-top a:hover {
    text-decoration: underline;
}

.header-main {
    padding: 15px 0;
    min-height: 110px;
    box-sizing: border-box;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    min-height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-blue);
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.logo-image {
    height: 60px;
    width: auto;
}

nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 6px 18px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    max-width: 100%;
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 13.5px;
    transition: color 0.3s;
    white-space: nowrap;
}

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

.cart-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    flex-shrink: 0;
}

.cart-link i {
    font-size: 24px;
}

.cart-count {
    background: var(--red-accent);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Mobile menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    transition: all 0.3s;
}

.mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 320px;
    height: 100%;
    background: #ffffff;
    box-shadow: 2px 0 20px rgba(0,0,0,0.15);
    transition: left 0.3s ease;
    z-index: 2000;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 80px;
    box-sizing: border-box;
}

.mobile-menu.active {
    left: 0;
    display: block;
}

.mobile-menu ul {
    list-style: none;
    padding: 80px 0 20px 0;
    margin: 0;
}

.mobile-menu li {
    margin: 0;
    border-bottom: 1px solid #e8e8e8;
}

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

.mobile-menu a {
    color: #333;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 24px;
    transition: background 0.2s;
}

.mobile-menu a:hover,
.mobile-menu a:active {
    background: #f5f5f5;
}

.mobile-menu a i {
    color: #0066cc;
    font-size: 20px;
    width: 24px;
    text-align: center;
}

/* Dropdown для Конструкторы */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown > a {
    padding-bottom: 8px !important;
}

.mobile-dropdown-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.mobile-dropdown-toggle span {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-dropdown-toggle .fa-chevron-down {
    font-size: 14px;
    color: #666;
    transition: transform 0.3s;
}

.mobile-dropdown.active .fa-chevron-down {
    transform: rotate(180deg);
}

.mobile-submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: -8px;
    background: #f8f9fa;
}

.mobile-dropdown.active .mobile-submenu {
    display: block;
}

.mobile-submenu li {
    border-bottom: 1px solid #e0e0e0;
}

.mobile-submenu li:last-child {
    border-bottom: none;
}

.mobile-submenu a {
    padding-left: 48px !important;
    font-size: 16px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 40px 0 30px;
    text-align: center;
}

.hero h1 {
    font-size: 28px;
    margin-bottom: 12px;
    font-weight: 700;
}

.hero p {
    font-size: 16px;
    margin-bottom: 20px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .hero {
        padding: 30px 0 25px;
    }
    
    .hero h1 {
        font-size: 22px;
        margin-bottom: 10px;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 14px;
        margin-bottom: 15px;
        line-height: 1.4;
    }
}

.hero-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 12px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-buttons-v190 .btn {
    height: 52px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 18px;
}

@media (max-width: 768px) {
    .hero-buttons,
    .hero-buttons-v189,
    .hero-buttons-v190 {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 0 10px !important;
    }
    
    .hero-buttons .btn,
    .hero-buttons-v189 .btn,
    .hero-buttons-v190 .btn {
        font-size: 15px !important;
        padding: 12px 8px !important;
        min-height: 64px !important;
        height: auto !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        width: 100% !important;
    }
    
    .hero-buttons > a:first-child {
        grid-column: 1 / -1 !important;
        min-height: 50px !important;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    min-height: 52px;
    text-align: center;
    line-height: 1.4;
}

/* Каталог и Прайс: белые с синим текстом */
.btn-primary {
    background: white !important;
    color: #0066cc !important;
    border: 2px solid #0066cc !important;
}

.btn-primary:hover {
    background: #e6f2ff !important;
    color: #004a99 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* СЕО кнопки: синие с белым текстом и голубой рамкой */
.btn-secondary {
    background: #3385db !important;
    color: white !important;
    border: 2px solid #5ba3f5 !important;
}

.btn-secondary:hover {
    background: #0066cc !important;
    border-color: #3385db !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Конструкторы: красные с белым текстом */
.btn-accent {
    background: linear-gradient(135deg, #e63946 0%, #d62828 100%) !important;
    color: white !important;
    border: 2px solid #e63946 !important;
}

.btn-accent:hover {
    background: linear-gradient(135deg, #d62828 0%, #b91c1c 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

/* Features */
.features {
    padding: 60px 0;
    background: var(--white);
}

.features h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    background: var(--background);
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow);
}

.feature-card i {
    font-size: 48px;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Products */
.products {
    padding: 60px 0;
}

.products h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 8px var(--shadow);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow);
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--background);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.product-info p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--light-blue);
}

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

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-section a:hover {
    opacity: 1;
}

.footer-section i {
    margin-right: 10px;
    color: var(--primary-blue);
}

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

/* Responsive */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }
    .mobile-menu {
        display: block;
    }

    .header-main nav {
        display: none;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .features h2,
    .products h2 {
        font-size: 28px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}
