:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #f5880b;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #94a3b8;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f1f5f9;
    color: var(--dark);
    line-height: 1.6;
    padding-top: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
header {
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
}

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

.logo img {
    /* height: 50px; */
}

.header-contact {
    display: flex;
    flex-direction: column;
    color: white;
    font-size: 0.9rem;
    gap: 0.5rem;
    margin: 0 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}

.contact-item i {
    color: var(--secondary);
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--secondary);
}

nav.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}



/* Mobile Menu */
.nav-list {
    transition: transform 0.3s ease;
}

.nav-list.active {
    transform: translateX(0);
}

.mobile-logo {
    display: none;
}

.mobile-contacts {
    display: none;
}

/* Hero */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)),
        url('/html2/head.jpg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    padding-top: 80px;
}

hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero p span {
    font-weight: bold;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: transparent;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid white;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* Catalog */
.catalog {
    padding: 5rem 0;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.catalog-title {
    font-size: 2rem;
    color: var(--dark);
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background-color: white;
    border: 1px solid var(--gray);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

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

.product-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--secondary);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.product-description {
    color: var(--gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.product-specs {
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.spec-name {
    color: var(--gray);
}

.spec-value {
    font-weight: 600;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.product-price span {
    font-size: 1rem;
    color: var(--gray);
    text-decoration: line-through;
    margin-left: 0.5rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light);
    color: var(--dark);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background-color: var(--primary);
    color: white;
}

/* CTA */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

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

.footer-col li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

/* Burger Menu */
.burger-menu {
    display: none;
    position: relative;
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 101;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.burger-menu:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.burger-menu span {
    width: 24px;
    height: 2px;
    background-color: white;
    position: relative;
    transition: all 0.3s;
}

.burger-menu span::before,
.burger-menu span::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: white;
    transition: all 0.3s;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.burger-menu span::before {
    top: -8px;
    left: 0;
}

.burger-menu span::after {
    top: 8px;
    left: 0;
}

.burger-menu.active span {
    background-color: transparent;
}

.burger-menu.active span::before {
    top: 0;
    transform: rotate(45deg);
}

.burger-menu.active span::after {
    top: 0;
    transform: rotate(-45deg);
}


/* Fixed Burger Menu */
/* Fixed Burger Menu */
.fixed-burger {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    border-radius: 50%;
    z-index: 100;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    opacity: 0;
    visibility: hidden;
}

.fixed-burger.visible {
    opacity: 1;
    visibility: visible;
}

.fixed-burger {
    display: flex !important;
    /* Переопределяем любые другие стили */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.fixed-burger.visible {
    opacity: 1;
    visibility: visible;
}

/* Compact Header for inner pages */
header.compact {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--dark);
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.compact .logo img {
    height: 40px;
    transition: all 0.3s ease;
}

header.compact .header-contact {
    flex-direction: row;
    gap: 1.5rem;
    font-size: 0.85rem;
}

header.compact .contact-item {
    flex-direction: row-reverse;
}

header.compact .contact-item i {
    margin-right: 0.5rem;
    color: var(--secondary);
}

header.compact nav a {
    text-shadow: none;
}

/* Скрываем фиксированный бургер, когда хедер уже фиксированный */
header.compact~.fixed-burger {
    display: none !important;
}

/* Улучшаем видимость основного бургера в фиксированном хедере */
header.compact .burger-menu {
    background-color: var(--secondary) !important;
    position: relative;
    z-index: 1001;
}

header.compact .burger-menu:hover {
    background-color: #e07d0b !important;
    /* Темнее оранжевый при наведении */
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1000px) {
    header.compact .header-contact {
        display: none;
    }

    header.compact .mobile-contacts {
        display: block;
    }

    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .nav-list.active {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Гарантируем, что основной бургер виден в шапке */
    .burger-menu {
        display: flex !important;
    }

    .fixed-burger {
        display: flex !important;
        position: fixed;
        top: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        background-color: var(--secondary);
        border-radius: 50%;
        z-index: 100;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        transition: all 0.3s;
        opacity: 0;
        visibility: hidden;
    }

    .fixed-burger.visible {
        opacity: 1;
        visibility: visible;
    }

    .mobile-logo {
        padding: 8rem 0 0rem 0;
        text-align: center;
        margin-bottom: 1rem;
        display: block;
    }

    .mobile-logo img {
        height: 40px;
        /* В два раза меньше стандартного (если стандартный 50px) */
        width: auto;
    }

    .nav-list {
        padding-top: 0;
        /* Убираем верхний отступ, чтобы логотип был вверху */
    }

    .header-container {
        align-items: center;
        gap: 1rem;
    }

    .header-contact {
        margin: 0;
        align-items: center;
        text-align: center;
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .burger-menu.active {
        position: fixed;
        right: 25px;
    }

    .mobile-contacts {
        margin-top: auto;
        /* Прижимаем к низу */
        padding: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        display: block;
    }

    .mobile-contacts .contact-item {
        margin-bottom: 1rem;
        justify-content: flex-start;
        color: var(--gray);
    }

    .mobile-contacts .contact-item:last-child {
        margin-bottom: 0;
    }

    .mobile-contacts a {
        color: var(--gray);
    }

    .mobile-contacts i {
        color: var(--secondary);
        margin-right: 0.5rem;
        width: 20px;
        text-align: center;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 250px;
        background-color: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        z-index: 100;
    }

    .nav-list.active {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-list li {
        width: 100%;
        text-align: center;
    }

    .nav-list a {
        color: white;
        font-size: 1.2rem;
        text-shadow: none;
    }

    .nav-list a::after {
        display: none;
    }

    .hero {
        height: auto;
        padding: 5rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .btn-group {
        flex-direction: row;
        justify-content: flex-start;
    }

    .btn,
    .btn-outline {
        width: auto;
        padding: 0.8rem 1.5rem;
    }

    .btn-outline {
        margin-left: 0;
    }

    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .filter-controls {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        /* Для плавного скролла на iOS */
    }

    .filter-controls::-webkit-scrollbar {
        display: none;
        /* Скрываем scrollbar */
    }

    .filter-btn {
        flex-shrink: 0;
        /* Запрещаем сжатие кнопок */
        white-space: nowrap;
        /* Запрещаем перенос текста */
    }
}

/* Скрываем фиксированный бургер на десктопе */
@media (min-width: 1001px) {
    .fixed-burger {
        display: none !important;
    }
}