/* ========================================
   RESET & VARIABLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2d2d2d;
    --primary-light: #4a4a4a;
    --accent: #ff8c42;
    --accent-hover: #ffa75e;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-dark: #2d2d2d;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-color: #e0e0e0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    transition: padding-top 0.3s ease;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-small {
    display: inline-block;
    padding: 8px 24px;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-small:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* ========================================
   HEADER (fixed with hide on scroll)
   ======================================== */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s ease;
}

.header-hidden {
    transform: translateY(-100%);
}

.header-top {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 0;
    font-size: 0.9rem;
}

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

.header-contacts-mini {
    display: flex;
    gap: 24px;
}

.header-contacts-mini i {
    color: var(--accent);
    margin-right: 6px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.header-main {
    padding: 8px 0;
}

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

.logo img {
    height: 60px;
    width: auto;
    filter: brightness(1.1);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 4px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--accent);
}

/* Dropdown menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--primary);
    min-width: 250px;
    border-radius: 8px;
    padding: 12px 0;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid var(--accent);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: var(--primary-light);
    border-left-color: var(--accent);
    padding-left: 25px;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown i.fa-chevron-down {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

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

.header-phone {
    font-size: 1.25rem;
    font-weight: 600;
}

.header-phone i {
    color: var(--accent);
    margin-right: 8px;
}

.header-phone a {
    color: var(--white);
    text-decoration: none;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* ========================================
   PAGE HEADER & BREADCRUMBS
   ======================================== */
.breadcrumbs {
    background: var(--gray-100);
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumbs-list {
    display: flex;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
}

.breadcrumbs-list li {
    color: var(--text-light);
    font-size: 0.95rem;
}

.breadcrumbs-list li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--gray-500);
}

.breadcrumbs-list a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumbs-list a:hover {
    text-decoration: underline;
}

.page-header {
    padding: 48px 0 24px;
    text-align: center;
    background: var(--white);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    position: relative;
    margin-bottom: 24px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* ========================================
   CATALOG & PRODUCT CARDS (contact33.ru style)
   ======================================== */
.catalog-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.catalog-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0 20px;
}

.catalog-header h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 10px;
}

.catalog-header p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Products grid - responsive */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Столбцы */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Product Card - contact33.ru style */
.product-card {
    min-width: 300px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.product-img-wrapper {
    position: relative;
    background: var(--white);
    padding: 20px;
    text-align: center;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--gray-200);
}

@media (max-width: 768px) {
    .product-img-wrapper {
        height: 180px;
    }
}

.product-img {
    max-width: 100%;
    max-height: 170px;
    object-fit: contain;
    transition: transform 0.3s;
}

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

.product-stock {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #4CAF50;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.product-info {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 500;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 10px;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: var(--accent);
}

.product-description {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 15px;
    height: 3.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 15px;
}

.product-price small {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--gray-500);
}

.btn-detail {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 10px 16px;
    border-radius: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-detail:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
}

/* No products */
.no-products {
    text-align: center;
    padding: 60px 20px;
    background: var(--gray-100);
    border-radius: 12px;
    color: var(--text-light);
}

/* ========================================
   PAGINATION with items per page selector
   ======================================== */
.pagination-wrapper {
    margin: 40px 0 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    max-width: 500px;
}

.per-page-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
}

.per-page-selector label {
    font-size: 0.9rem;
    color: var(--text-light);
}

.per-page-selector select {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.per-page-selector select:focus {
    outline: none;
    border-color: var(--accent);
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--text-light);
}

.pagination {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.pagination li {
    display: inline-block;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--primary);
}

.pagination a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.pagination .active span {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.pagination .disabled span {
    background: var(--gray-100);
    color: var(--gray-500);
    cursor: not-allowed;
    border-color: var(--gray-300);
}

@media (max-width: 576px) {
    .pagination a, .pagination span {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    .pagination {
        gap: 5px;
    }
    .pagination-controls {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   SECTIONS & GRIDS (general)
   ======================================== */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 48px;
    color: var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

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

.service-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-card-content {
    padding: 24px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Slider section */
.slider-section {
    background: var(--gray-100);
    padding: 0 24px;
}

.slider-container {
    max-width: 1280px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.swiper {
    width: 100%;
    height: 600px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-pagination-bullet-active {
    background: var(--accent);
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--white);
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: var(--accent);
}

@media (max-width: 768px) {
    .swiper {
        height: 350px;
    }
    .section {
        padding: 40px 0;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .page-title {
        font-size: 2rem;
    }
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.contact-info {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.contact-text p,
.contact-text a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
}

.contact-text a:hover {
    color: var(--accent);
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.contact-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.3rem;
    transition: var(--transition);
}

.contact-social a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-3px);
}

.map-container {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 100%;
    min-height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.form-container {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 768px) {
    .contacts-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .contact-info {
        padding: 24px;
    }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: var(--gray-300);
    padding: 60px 0 30px;
    margin-top: 60px;
}

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

.footer-widget-title {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--white);
    position: relative;
    padding-bottom: 12px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

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

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

.footer-menu a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contacts p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contacts i {
    color: var(--accent);
    width: 20px;
}

.footer-contacts a {
    color: var(--gray-400);
    text-decoration: none;
}

.footer-contacts a:hover {
    color: var(--accent);
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #404040;
    text-align: center;
    font-size: 0.9rem;
}

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

/* ========================================
   MAX WIDGET (messenger)
   ======================================== */
.max-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.max-button {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 2px solid var(--accent);
}

.max-button:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

.max-button i {
    font-size: 1.5rem;
    color: var(--accent);
}

@media (max-width: 768px) {
    .max-button span {
        display: none;
    }
    .max-button {
        padding: 16px;
        border-radius: 50px;
    }
    .max-button i {
        font-size: 2rem;
        margin: 0;
    }
}

/* ========================================
   MOBILE MENU STYLES
   ======================================== */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .dropdown {
        width: 100%;
    }
    
    .dropdown > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .dropdown i.fa-chevron-down {
        display: inline-block;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 10px 0 10px 20px;
        min-width: auto;
        display: none;
        border: none;
        background: transparent;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu a {
        padding: 10px 15px;
        border-left: 2px solid var(--accent);
        background: rgba(0,0,0,0.2);
        border-radius: 0 8px 8px 0;
        margin-bottom: 5px;
    }
    
    .dropdown-menu a:hover {
        padding-left: 20px;
    }
    
    .header-top .container {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-contacts-mini {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .header-phone {
        display: none;
    }
    
    body {
        padding-top: 110px;
    }
}

/* ========================================
   CLOUD PAGE STYLES
   ======================================== */
.dashboard-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px;
    gap: 20px;
}

.auth-panel {
    background: var(--white);
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    margin-bottom: 30px;
}

.auth-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.auth-field {
    flex: 1 1 200px;
}

.auth-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.auth-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
}

.auth-field input:focus {
    outline: 2px solid var(--accent);
    border-color: transparent;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.dashboard-card {
    background: var(--white);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.dashboard-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
}

.card-header h3 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h3 i {
    color: var(--accent);
}

.remove-btn {
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.remove-btn:hover {
    color: #dc3545;
}

.param-list {
    list-style: none;
}

.param-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--gray-200);
    font-size: 0.95rem;
}

.param-name i {
    color: var(--accent);
    width: 20px;
    margin-right: 5px;
}

.param-value {
    font-weight: 600;
    color: var(--primary);
}

.add-panel {
    background: var(--white);
    border-radius: 20px;
    padding: 25px;
    margin-top: 20px;
    border: 2px dashed var(--accent);
}

.add-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

@media (max-width: 768px) {
    .auth-form,
    .add-form {
        flex-direction: column;
        align-items: stretch;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* ФОРСИРОВАННОЕ ИСПРАВЛЕНИЕ ЛЕЙАУТА */
.catalog-with-filters {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important;
    align-items: flex-start !important;
    max-width: 1400px !important;  /* ← добавляем ограничение ширины */
    margin: 0 auto !important;     /* ← центрируем */
    padding: 0 15px !important;    /* ← отступы по бокам */
}

.filters-sidebar {
    width: 260px !important;
    flex-shrink: 0 !important;
    position: sticky !important;
    top: 130px !important;
    align-self: flex-start !important;
}

.catalog-content {
    flex: 1 !important;
    min-width: 0 !important;
}

@media (max-width: 992px) {
    .catalog-with-filters {
        flex-direction: column !important;
        padding: 0 15px !important;
    }
    .filters-sidebar {
        position: static !important;
        width: 100% !important;
    }
}