* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.product-tabs a {
    color: #2196f3;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1.5px;
    transition: background-size .3s;
}

.product-tabs a:hover {
    background-size: 100% 1.5px;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}
.logo {
	width: 200px;
}

.logo picture {
	display: block;
	width: 100%;
	height: 100%;
}
.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.hide {
	display: none;
}
.profile, .basket {
	width: 24px;
	height: 24px;
}

.menu-toggle svg {
	width: 24px;
	height: 24px;
}
.header-menu {
	display: flex;
	gap: 30px;
}

.menu-toggle,
.lk, 
.bsk {
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
}
.menu-toggle {
    display: none;
}
.head-wrap {
	max-width: 1400px;
  margin: auto;
  padding: 0 20px;
}
.tire-selector-widget {
  max-width: 1360px;
  margin: auto;
}
.footer-wrap {
max-width: 1400px;
  margin: auto;
  padding: 20px;
}
.footer-content {
	display: flex;
  justify-content: space-between;
}
.logo_menu {
	background-color: #fff;
  padding: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.logo_menu .wrap {
	max-width: 1409px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}
.header_menu {
margin-left: 50px;
  display: flex;
  width: 100%;
  gap: 44px;
}
.menu_item {
	color: #495057;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  position: relative;
  padding: 8px 0;
}
.menu_item:hover {
  color: #212529;
}
.menu_item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: #e7ea00;
  transition: width 0.3s;
  border-radius: 2px;
}
.menu_item:hover::after {
  width: 100%;
}
@media (max-width: 768px) {
	.logo {
	  margin: auto;
	  width: 90%;
  		max-width: 320px;
	}
	.logo_menu .wrap {
		flex-wrap: wrap;
	}
	.header_menu {
		display: none;
	}
	.menu_item {
		display: block;
	}
	.form-row {
  		display: block !important;
  	}
  	input {
	  font-size: 16px; /* Или больше */
	}
    .menu-toggle {
        display: flex;
    }
}

/* ============================================
   LIGHT INDUSTRIAL STYLE FOOTER CSS
   Светлая индустриальная тема для футера
   ============================================ */

.main-footer {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    color: #495057;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
}

.main-footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 400px;
    height: 100%;
    opacity: 0.02;
    pointer-events: none;
    background: repeating-linear-gradient(
        -45deg,
        #ffc107,
        #ffc107 15px,
        transparent 15px,
        transparent 30px
    );
}

.footer-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Content Grid */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    padding: 60px 0 40px;
    border-bottom: 2px solid #e9ecef;
}

.footer-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: #212529;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 11px;
	left: 0;
	width: 60px;
	height: 2px;
    background: linear-gradient(90deg, #ffc107 0%, transparent 100%);
    border-radius: 2px;
}

.footer-section p {
    margin: 12px 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.7;
    font-weight: 500;
}

.footer-section a {
    color: #495057;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    font-weight: 600;
}

.footer-section a:hover {
    color: #212529;
    padding-left: 8px;
}

/* Contact Icons */
.contact-icons {
    display: flex;
    gap: 20px;
    margin-top: 16px;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    color: #495057;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0 !important;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.contact-icon:hover {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.4);
}

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

/* Специфичные цвета для разных иконок */
.contact-icon:nth-child(1):hover {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.contact-icon:nth-child(2):hover {
    background: linear-gradient(135deg, #FF5722 0%, #E64A19 100%);
    box-shadow: 0 6px 16px rgba(255, 87, 34, 0.4);
}

.contact-icon:nth-child(3):hover {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.contact-icon:nth-child(4):hover {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.4);
}

.footer-tagline {
    font-style: italic;
    color: #adb5bd;
    font-size: 13px;
    margin-top: 16px;
    font-weight: 400;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    font-size: 14px;
    color: #6c757d;
}

.footer-bottom p {
    margin: 0;
    font-weight: 500;
}

.company-details {
    margin-top: 16px;
    font-size: 12px;
    color: #adb5bd;
    line-height: 1.6;
}

.company-details p {
    margin: 4px 0;
    font-weight: 400;
}

.footer-section .company-details {
    margin-top: 12px;
}

.footer-payment {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
}

.payment-icons {
    font-size: 22px;
    letter-spacing: 8px;
}

/* Hide SVG icons container */
.hide {
    display: none;
}

/* ============================================
   Выпадающее меню для мобильных
   ============================================ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    max-height: 70vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
}

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

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.mobile-menu-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.mobile-menu-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f0f0f0;
    color: #8e8e93;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.mobile-menu-close svg {
    width: 20px;
    height: 20px;
}

.mobile-menu-close:active {
    transform: scale(0.9);
    background: #e0e0e0;
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 12px;
    color: #000;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s;
    font-size: 16px;
    font-weight: 500;
}

.mobile-menu-item svg {
    width: 28px;
    height: 28px;
    color: #007AFF;
    flex-shrink: 0;
}

.mobile-menu-item svg.icon {
    width: 28px;
    height: 28px;
    display: block;
}

.mobile-menu-item:active {
    background: #f0f0f0;
}

/* Responsive */
@media (max-width: 768px) {
    /* Скрываем город */
    .header-content .city {
        display: none;
    }
    
    /* Скрываем верхний header-menu */
    /* .head-wrap .header-menu {
        display: none !important;
    } */
    
    /* Показываем header-menu как мобильный бар внизу (Telegram-style) */
    .header-menu {
        display: flex !important;
        position: fixed;
        bottom: 11px;
        left: 30px;
        right: 30px;
        background: rgba(255, 255, 255, 0.4);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 2px 0 max(2px, env(safe-area-inset-bottom));
        z-index: 1000;
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);
        border-radius: 44px;
        gap: 0;
        justify-content: space-around;
    }
    
    /* Стили для элементов внутри мобильного бара */
    .header-menu .menu-toggle,
    .header-menu .lk,
    .header-menu .bsk {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 8px 4px;
        color: #8e8e93;
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        border-radius: 12px;
        position: relative;
    }
    
    .header-menu .menu-toggle svg,
    .header-menu .lk svg,
    .header-menu .bsk svg {
        width: 24px;
        height: 24px;
        pointer-events: none;
    }
    
    .header-menu .menu-toggle span,
    .header-menu .lk span,
    .header-menu .bsk span {
        font-size: 15px;
        letter-spacing: -0.2px;
        pointer-events: none;
    }
    
    .header-menu .menu-toggle:active,
    .header-menu .lk:active,
    .header-menu .bsk:active {
        transform: scale(0.95);
    }
    
    /* Dropdown открывается ВВЕРХ на мобильных через класс .show (для touch) */
    .header-menu .user-dropdown {
        display: none;
        position: absolute;
        top: auto;
        bottom: 100%;
        right: 0;
        margin-bottom: 8px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        min-width: 200px;
        overflow: hidden;
        z-index: 1000;
    }
    
    .header-menu .user-dropdown.show {
        display: block;
    }
    
    .header-menu .user-dropdown a {
        display: block;
        padding: 12px 20px;
        color: #333;
        text-decoration: none;
        transition: background 0.2s;
        font-size: 14px;
    }
    
    .header-menu .user-dropdown a:hover {
        background: #f5f5f5;
    }
    
    .header-menu .user-dropdown .logout {
        color: #f44336;
        border-top: 1px solid #eee;
    }
    
    .header-menu .user-dropdown .logout:hover {
        background: #fff5f5;
    }
    
    /* Бейдж корзины */
    .header-menu .cart-badge {
        position: absolute;
        top: 4px;
        right: calc(50% - 16px);
        background: linear-gradient(135deg, #FF3B30 0%, #FF6B6B 100%);
        color: white;
        font-size: 10px;
        font-weight: 700;
        min-width: 18px;
        height: 18px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
        box-shadow: 0 2px 8px rgba(255, 59, 48, 0.4);
        animation: pulse 2s infinite;
        pointer-events: none;
    }
    
    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }
    
    /* Скрываем кнопку меню на десктопе */
    .menu-toggle {
        display: none;
    }
    
    /* Добавляем padding снизу к body, чтобы контент не перекрывался */
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
        padding: 50px 0 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 18px;
        text-align: center;
        padding: 24px 0;
    }
    
    .company-details {
        font-size: 11px;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0 25px;
    }

    .footer-section h3 {
        font-size: 16px;
    }

    .footer-section p {
        font-size: 13px;
    }

    .contact-icons {
        gap: 16px;
        justify-content: center;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
    }

    .contact-icon svg {
        width: 22px;
        height: 22px;
    }
}