/* ==================== БАЗОВЫЕ НАСТРОЙКИ ==================== */
:root {
    --white: #ffffff;
    --black: #0a0a0a;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #3b82f6;
    --blue-very-light: #dbeafe;
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    --glass-blur: blur(12px);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--gray-900);
    background-color: var(--white);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ==================== ГЛАССМОРФИЗМ ==================== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* ==================== ТОП БАР ==================== */
.top-bar {
    background-color: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 8px 0;
    font-size: 13px;
}

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

.top-bar__info,
.top-bar__links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-bar__city,
.top-bar__phone,
.top-bar__link {
    color: var(--gray-700);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.top-bar__city i,
.top-bar__phone i {
    color: var(--blue);
    font-size: 12px;
}

.top-bar__separator {
    color: var(--gray-400);
}

.top-bar__phone:hover,
.top-bar__link:hover {
    color: var(--blue);
}

/* ==================== ШАПКА ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-top__info,
.header-top__links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-top__city,
.header-top__phone,
.header-top__link {
    color: var(--gray-700);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-top__city i,
.header-top__phone i {
    color: var(--blue);
    font-size: 12px;
}

.separator {
    color: var(--gray-400);
}

.header-top__phone:hover,
.header-top__link:hover {
    color: var(--blue);
}

.header-main {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px 0;
}

.header-logo {
    flex-shrink: 0;
}

.header-logo img {
    height: 48px;
    width: auto;
    transition: var(--transition-fast);
}

.header-logo:hover img {
    transform: scale(1.02);
}

/* Поисковый блок */
.header-search {
    flex: 1;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 60px;
    border: 1px solid var(--gray-200);
    transition: var(--transition-fast);
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.search-wrapper:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--blue-very-light);
}

/* Кнопка каталога */
.catalog-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: transparent;
    border: none;
    border-right: 1px solid var(--gray-200);
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.catalog-btn:hover {
    color: var(--blue);
    background: var(--gray-50);
}

.catalog-arrow {
    font-size: 12px;
    transition: transform 0.3s;
}

.catalog-btn:hover .catalog-arrow {
    transform: rotate(180deg);
}

/* Форма поиска */
.search-form {
    flex: 1;
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    font-size: 15px;
    outline: none;
    background: transparent;
    width: 100%;
}

.search-input::placeholder {
    color: var(--gray-400);
    transition: var(--transition-fast);
}

.search-input:focus::placeholder {
    opacity: 0.5;
    transform: translateX(5px);
}

.search-btn {
    padding: 0 28px;
    background: transparent;
    border: none;
    color: var(--blue);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.search-btn:hover {
    transform: scale(1.1);
    color: var(--blue-dark);
}

/* Корзина */
.header-cart {
    position: relative;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 24px;
    transition: var(--transition);
    flex-shrink: 0;
    padding: 8px;
}

.header-cart:hover {
    color: var(--blue);
    transform: scale(1.1) rotate(-3deg);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--blue);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    border: 2px solid white;
}

/* Нижняя навигация */
.header-nav {
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition-fast);
    position: relative;
    padding: 5px 0;
}

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

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

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

/* ==================== МОДАЛЬНОЕ ОКНО КАТАЛОГА ==================== */
.catalog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.catalog-modal.active {
    display: flex;
}

.catalog-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.catalog-modal__content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 30px;
    box-shadow: var(--shadow-2xl);
    animation: slideUp 0.4s ease;
    z-index: 10000;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.catalog-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.catalog-modal__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
}

.catalog-modal__close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    color: var(--gray-600);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-modal__close:hover {
    background: var(--blue);
    color: white;
    transform: rotate(90deg);
}

.catalog-modal__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.catalog-modal__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.catalog-modal__item:hover {
    transform: translateX(4px);
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
}

.catalog-modal__image {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--gray-100);
    flex-shrink: 0;
}

.catalog-modal__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-modal__icon-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 20px;
}

.catalog-modal__info {
    flex: 1;
}

.catalog-modal__name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.catalog-modal__count {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
}

/* ==================== СЛАЙДЕР ==================== */
.hero {
    padding: 40px 0;
}

.slider {
    position: relative;
    height: 550px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.slider__slides {
    position: relative;
    height: 100%;
}

.slider__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease;
}

.slider__slide.active {
    opacity: 1;
    visibility: visible;
}

.slider__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 8s ease;
}

.slider__slide.active .slider__image {
    transform: scale(1.05);
}

.slider__content {
    position: absolute;
    bottom: 80px;
    left: 80px;
    max-width: 500px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: slideUp 0.8s ease;
}

.slider__title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.slider__text {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 24px;
    line-height: 1.6;
}

.slider__btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--blue);
    color: white;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    transition: var(--transition);
}

.slider__btn:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37,99,235,0.3);
}

.slider__nav {
    position: absolute;
    bottom: 40px;
    right: 80px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider__dot {
    width: 50px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    border-radius: 2px;
}

.slider__dot:hover,
.slider__dot.active {
    background: white;
    width: 70px;
}

.slider__arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 10;
    pointer-events: none;
}

.slider__arrow {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    font-size: 20px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: auto;
    box-shadow: var(--shadow-lg);
}

.slider__arrow:hover {
    background: var(--blue);
    transform: scale(1.1);
}

/* ==================== КАТЕГОРИИ НА ГЛАВНОЙ ==================== */
.categories-section {
    padding: 60px 0;
}

.categories-section h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.categories-section .subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 48px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 3 / 4;
    display: block;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2xl);
}

.category-card__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-card__image img {
    transform: scale(1.08);
}

.category-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2) 50%, transparent);
    padding: 24px 16px 16px;
}

.category-card__title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    margin: 0;
}

/* ==================== О КОМПАНИИ ==================== */
.about-section {
    background: var(--gray-50);
    padding: 80px 0;
    margin: 40px 0;
}

.about-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
}

.about-content h2 span {
    color: var(--blue);
}

.about-content p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--blue);
}

.stat-label {
    font-size: 14px;
    color: var(--gray-500);
}

.about-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
}

/* ==================== НОВОСТИ ==================== */
.news-section {
    padding: 60px 0;
}

.news-section h2 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-card__image {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.news-card__content {
    padding: 24px;
}

.news-card__date {
    font-size: 12px;
    color: var(--blue);
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.news-card__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.news-card__excerpt {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ==================== ФУТЕР ==================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer__logo {
    height: 36px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer__text {
    color: var(--gray-400);
    font-size: 14px;
    line-height: 1.6;
}

.footer__title {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--blue);
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: 12px;
}

.footer__link {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.footer__link i {
    color: var(--blue);
    font-size: 14px;
    width: 20px;
}

.footer__link:hover {
    color: white;
    transform: translateX(5px);
}

.footer__bottom {
    padding-top: 30px;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    position: relative;
    color: var(--gray-500);
    font-size: 14px;
}

.footer__admin-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    color: var(--gray-500);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.5;
}

.footer__admin-btn:hover {
    opacity: 1;
    color: var(--blue);
    border-color: var(--blue);
    transform: rotate(15deg);
}

/* ==================== МОДАЛЬНОЕ ОКНО ВХОДА ==================== */
.admin-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.admin-modal.active {
    display: flex;
}

.admin-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.admin-modal__content {
    position: relative;
    width: 90%;
    max-width: 400px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--shadow-2xl);
    animation: slideUp 0.4s ease;
    z-index: 10001;
}

.admin-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    border: none;
    color: var(--gray-600);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.admin-modal__close:hover {
    background: var(--blue);
    color: white;
    transform: rotate(90deg);
}

.admin-modal__header {
    text-align: center;
    margin-bottom: 30px;
}

.admin-modal__header i {
    font-size: 48px;
    color: var(--blue);
    background: var(--white);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-lg);
}

.admin-modal__header h2 {
    font-size: 24px;
    color: var(--gray-900);
}

.admin-modal__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-modal__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-modal__field label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 14px;
}

.admin-modal__field label i {
    color: var(--blue);
    font-size: 14px;
}

.admin-modal__field input {
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    font-size: 15px;
    transition: var(--transition);
}

.admin-modal__field input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-very-light);
}

.admin-modal__error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    display: none;
}

.admin-modal__error.active {
    display: block;
}

.admin-modal__submit {
    padding: 14px;
    background: var(--blue);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.admin-modal__submit:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.admin-modal__footer {
    margin-top: 20px;
    text-align: center;
    color: var(--gray-500);
    font-size: 12px;
}

/* ==================== ИНТЕРАКТИВНЫЙ ФОН ==================== */
.background-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    transition: transform 0.2s ease-out;
    opacity: 0.2;
}

.circle-1 {
    width: 700px;
    height: 700px;
    top: -200px;
    left: -200px;
    background: radial-gradient(circle at 30% 30%, var(--blue-light), transparent 70%);
}

.circle-2 {
    width: 600px;
    height: 600px;
    bottom: -200px;
    right: -200px;
    background: radial-gradient(circle at 70% 70%, var(--blue), transparent 70%);
}

.circle-3 {
    width: 500px;
    height: 500px;
    top: 30%;
    right: 20%;
    background: radial-gradient(circle at 50% 50%, var(--blue-light), transparent 70%);
}

.circle-4 {
    width: 450px;
    height: 450px;
    bottom: 20%;
    left: 15%;
    background: radial-gradient(circle at 40% 60%, var(--blue), transparent 70%);
}

/* ==================== АДАПТИВНОСТЬ ==================== */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .header-main {
        gap: 20px;
    }
    
    .slider {
        height: 500px;
    }
    
    .slider__title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .top-bar__inner {
        flex-direction: column;
        gap: 8px;
    }
    
    .top-bar__info,
    .top-bar__links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-main {
        flex-wrap: wrap;
    }
    
    .header-search {
        order: 3;
        width: 100%;
    }
    
    .catalog-btn span {
        display: none;
    }
    
    .catalog-btn {
        padding: 12px 16px;
    }
    
    .nav-menu {
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .slider {
        height: 400px;
    }
    
    .slider__content {
        left: 30px;
        bottom: 30px;
        max-width: 300px;
    }
    
    .slider__title {
        font-size: 28px;
    }
    
    .slider__text {
        font-size: 14px;
    }
    
    .slider__nav {
        right: 30px;
        bottom: 20px;
    }
    
    .slider__dot {
        width: 30px;
    }
    
    .slider__dot.active {
        width: 40px;
    }
    
    .slider__arrow {
        width: 40px;
        height: 40px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .category-card__title {
        font-size: 14px;
    }
    
    .category-card__overlay {
        padding: 16px 12px 12px;
    }
    
    .about-section .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-section {
        padding: 60px 0;
    }
    
    .about-content h2 {
        font-size: 28px;
    }
    
    .catalog-modal__grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-modal__content {
        width: 95%;
        padding: 20px;
    }
    
    .catalog-modal__title {
        font-size: 22px;
    }
    
    .admin-modal__content {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        gap: 12px;
    }
    
    .category-card__title {
        font-size: 13px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==================== МОБИЛЬНАЯ ВЕРСИЯ ==================== */
@media (max-width: 768px) {
    /* Верхняя полоса — только город и телефоны, всё в одну строку, без переносов */
    .header-top {
        padding: 8px 0 !important;
    }
    
    /* Скрываем ссылки на мобилках */
    .header-top__links {
        display: none !important;
    }
    
    .header-top__info {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    .separator {
        display: none !important;
    }
    
    .header-top__city {
        font-size: 11px !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
    }
    
    .header-top__city i {
        font-size: 10px !important;
    }
    
    .header-top__phone {
        font-size: 11px !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
    }
    
    .header-top__phone i {
        font-size: 10px !important;
    }
    
    /* Скрываем нижнюю навигацию */
    .header-nav {
        display: none !important;
    }
    
    /* Основная шапка */
    .header-main {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 10px 0 !important;
    }
    
    .header-logo img {
        height: 32px !important;
    }
    
    .header-cart {
        font-size: 22px !important;
        padding: 6px !important;
    }
    
    .cart-count {
        min-width: 18px !important;
        height: 18px !important;
        font-size: 10px !important;
        top: -4px !important;
        right: -6px !important;
    }
    
    .header-search {
        order: 3 !important;
        grid-column: span 2 !important;
        width: 100% !important;
        margin-top: 4px !important;
    }
    
    .search-wrapper {
        width: 100% !important;
        border-radius: 40px !important;
    }
    
    .catalog-btn {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
    
    .catalog-btn span {
        display: inline !important;
    }
    
    .search-input {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
    
    .search-btn {
        padding: 0 14px !important;
        font-size: 14px !important;
    }
}

/* ==================== ФУТЕР ==================== */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 60px 0 30px;
    margin-top: 80px;
}

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

.footer__logo {
    height: 36px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer__text {
    color: var(--gray-400);
    font-size: 14px;
    line-height: 1.6;
}

.footer__title {
    color: var(--gray-200);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--blue);
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: 12px;
}

.footer__link {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.footer__link i {
    color: var(--gray-500);
    font-size: 14px;
    width: 20px;
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--white);
}

.footer__link:hover i {
    color: var(--blue);
}

/* Юридическая информация */
.footer__legal {
    padding: 30px 0;
    border-top: 1px solid var(--gray-800);
    border-bottom: 1px solid var(--gray-800);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--gray-400);
}

.footer__legal-info p {
    margin: 0;
    line-height: 1.5;
}

.footer__legal-text {
    text-align: center;
}

.footer__legal-text p {
    margin: 0;
    line-height: 1.5;
}

.footer__legal-text a,
.footer__developer a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
}

.footer__legal-text a:hover,
.footer__developer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer__developer {
    text-align: right;
}

.footer__developer p {
    margin: 0;
}

.footer__bottom {
    text-align: center;
    color: var(--gray-500);
    font-size: 13px;
    padding-top: 10px;
}

@media (max-width: 768px) {
    .footer__legal {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .footer__legal-text {
        text-align: center;
    }
    
    .footer__developer {
        text-align: center;
    }
    
    .footer__grid {
        text-align: center;
    }
    
    .footer__title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer__link {
        justify-content: center;
    }
}
</style>