/* Зона 1: Переменные */
:root {
  --primary-color: #f13d3d;
  --secondary-color: #f13d3d;
  --dark-color: #474a50;
  --light-color: #ffffff;
  --offer-bg-color: #f9f9f9;
  --gray-color: #e0e0e0;
  --text-color: #333;
  --text-light: #fff;
  --green-color: #28a745;
  --border-radius: 12px;
  --box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Зона 2: Сброс стилей */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Зона 3: Общие стили для body и container */
body {
  font-family: 'Roboto', 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
}

.nav-menu a:active {
    background-color: #d32f2f;
    color: white;
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cart-link:active {
    background-color: #d32f2f;
    color: white;
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

/* Зона 4: Стили хедера */
.header {
  background-color: #474a50;
  color: var(--text-color);
  padding: 12px 0;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 1000;
  margin-bottom: 20px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 1450px;
  max-width: calc(100% - 30px); 
  margin-left: auto;
  margin-right: auto;
  margin-top: 10px; 
}

.header a,
.header .nav-menu a,
.header .btn-cabinet,
.header .cart-link,
.header .login-link,
.header {
  color: var(--text-light);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
  transition: all 0.3s ease;
  max-width: 100%;
  padding: 0 20px; 
}

.logo img {
  max-height: 85px;
  min-width: 120px;
  margin-right: 30px;
}

.menu-logo {
    display: none;
}

.menu-logo img {
    height: 85px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}


@media (max-width: 480px) {
    .menu-logo img {
        height: 145px;
        max-width: 220px;
        background-color: #474a50;
    }
    
    .menu-logo {
        padding: 16px;
        background-color: #474a50;
    }
    
    .nav-menu {
        width: 280px;
    }
}

@media (max-width: 360px) {
    .nav-menu {
        width: 100%;
    }
    
    .menu-logo img {
        height: 28px;
        max-width: 110px;
    }
}

.nav-menu {
  display: flex;
  list-style: none;
  flex-wrap: nowrap;
  gap: 15px;
  flex-grow: 1;
  min-width: 0;
}

.nav-menu-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex: 1 1 auto;
}

.nav-menu-inner .header-actions {
  margin-left: auto;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  align-items: center;
}

.nav-menu li:not(:last-child)::after {
  content: '|';
  position: absolute;
  right: -16px;
  color: var(--gray-color);
  font-size: 21px;
  line-height: 1;
  margin-top: 3px;
}

.nav-menu li {
  margin-right: 0;
  position: relative;
  padding: 10px;
}

.nav-menu a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 19px;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

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

.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--text-light); 
  transition: width 0.3s ease;
}

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

.nav-menu a.active {
  color: #ff3c3c;
}

.btn-cabinet {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 19px;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}

.btn-cabinet:hover {
  color: var(--primary-color);
}

.btn-cabinet::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.header-actions {
  margin-left: auto;
  margin-right: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.header-actions a{
  margin-left: 15px;
}

.search-form {
  display: flex;
  width: 200px;
  border: 1px solid var(--gray-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-left: 20px;
}

.search-form input {
  padding: 10px 14px;
  border: none;
  width: 100%;
  font-size: 14px;
  background-color: #fff;
}

.search-form button {
  background-color: var(--secondary-color);
  color: var(--text-light);
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.cart-link, .login-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.cart-link:hover, .login-link:hover {
  color: var(--primary-color);
}

.cart-link i, .login-link i {
  font-size: 18px;
}

/* Стили для мобильных иконок */
.mobile-header-icons {
    display: none;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    margin-right:  7px;
}

.mobile-phone-btn,
.mobile-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-cart-btn{
  margin-left: 4px;
}



.mobile-phone-btn:hover,
.mobile-cart-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 61, 61, 0.3);
}

.mobile-phone-btn:active,
.mobile-cart-btn:active {
    transform: translateY(0);
}


@media (max-width: 1390px) {
    .mobile-header-icons {
        display: flex;
    }
    
    /* Остальные существующие стили для 1390px */
    .nav-menu ul,
    .header-actions {
        display: none !important;
    }
    
    .menu-logo {
        display: flex;
        justify-content: center;
        padding: 15px;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .header .logo {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%; 
        width: 100%; 
        height: 100vh;
        background-color: #474a50;
        z-index: 1000;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        border-radius: 25px;
    }
    
    .nav-menu.active {
        right: 0;
        opacity: 1;
        visibility: visible;
        color: var(--text-color);
    }

    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: block;
    }

    .burger-btn {
        display: block;
        order: 2;
        z-index: 1002;
        
    }
    
    .nav-menu.active ul,
    .nav-menu.active .header-actions {
        display: flex !important;
    }
}

/* Auth Modal */
.error-message {
    color: #d32f2f !important;
    font-size: 12px !important;
    margin-top: 5px !important;
    display: block !important;
}

input.error {
    border-color: #d32f2f !important;
}

#login-email {
    text-align: left;
    direction: ltr;
}

.phone-alternative {
    display: none;
}

.auth-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(5px);
}

.auth-modal-content {
  background-color: var(--light-color);
  width: 90%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease;
}

.auth-close-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  transition: var(--transition);
  z-index: 10;
  width: 33px;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 300;
  padding-bottom: 4px;
  padding-left: 1px;
}

.auth-close-btn:hover {
  color: var(--primary-color);
  background-color: rgba(211, 47, 47, 0.1);
}

.auth-form-container {
  padding: 40px;
  height: 540px;
}

.auth-tabs {
  display: flex;
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 30px;
  position: relative;
}

.auth-tab {
  flex: 1;
  padding: 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: none;
  background: none;
  z-index: 2;
}

.form-group password-group i{
  margin-top: 15px;
  margin-right: 30px;
}

.auth-tab.active {
  color: var(--primary-color);
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.form-group input {
  padding: 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
  width: 100%;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
  border-radius: 20px !important;
}

.nav-menu a:focus,
.header-actions a:focus {
    outline: none;
    background-color: transparent;
    color: inherit;
    box-shadow: none;
}

.form-group input::placeholder {
  color: #999;
}

.password-group {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 61px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
  font-size: 18px;
  transition: var(--transition);
  background: none;
  border: none;
  padding: 4px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.toggle-password:hover {
  color: var(--primary-color);
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 15px 0;
}

.forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.forgot-password:hover {
  color: #b71c1c;
  text-decoration: underline;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

#login-identifier {
  text-align: left;
  direction: ltr;
}

.phone-alternative {
  display: none;
}

.apple-switch {
  position: relative;
  display: inline-block;
  width: 51px;
  height: 31px;
}

.apple-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.apple-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e9ecef;
  transition: .4s;
  border-radius: 34px;
}

.apple-slider:before {
  position: absolute;
  content: "";
  height: 27px;
  width: 27px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.apple-switch input:checked + .apple-slider {
  background-color: var(--primary-color);
}

.apple-switch input:checked + .apple-slider:before {
  transform: translateX(20px);
}

.remember-me label {
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.auth-btn {
  background: linear-gradient(135deg, var(--primary-color), #b71c1c);
  color: white;
  padding: 16px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  width: 100%;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.auth-btn:active {
  transform: translateY(0);
}

.best-offers {
  scroll-margin-top: 80px;
  padding: 60px 0;
}

.best-offers .container {
  text-align: center;
}

html {
  scroll-behavior: smooth;
}

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

.offer-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.offer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: #d32f2f;
}

.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d32f2f, #b71c1c);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.offer-card:hover::before {
  opacity: 1;
}

.offer-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.offer-card img {
  width: 100%;
  max-width: 200px;
  height: 180px;
  object-fit: contain;
  margin: 0 auto 16px auto;
  transition: transform 0.3s ease;
  display: block;
}

.offer-card:hover img {
  transform: scale(1.05);
}

.offer-card .availability {
  color: #10b981;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  background: #ecfdf5;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
  min-height: 24px;
  line-height: 16px;
}

.offer-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #1f2937;
  line-height: 1.4;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.price-container {
  margin-bottom: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.old-price {
  color: #9ca3af !important;
  text-decoration: line-through !important;
  font-size: 14px;
  font-weight: 500;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.new-price {
  color: #d32f2f;
  font-weight: 700;
  font-size: 20px;
  display: block;
}

.savings {
  color: #059669 !important;
  font-size: 12px;
  font-weight: 600;
  background: #d1fae5;
  padding: 4px 8px;
  border-radius: 8px;
  display: inline-block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.button-container {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: auto;
}

.cart-btn {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f3f4f6;
  color: #4b5563;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
}

.cart-btn:hover {
  background: #d32f2f;
  color: white;
  transform: translateY(-2px) scale(1.05);
}

.order-btn {
  flex: 1;
  padding: 12px 20px;
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.order-btn:hover {
  background: linear-gradient(135deg, #b71c1c, #9c1b1b);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.offer-card {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease;
}

.offer-card.hidden {
  opacity: 0;
  transform: translateY(20px);
  display: none;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  border: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 20px auto 0;
}

.toggle-btn:hover {
  background: linear-gradient(135deg, #b71c1c, #9c1b1b);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.25);
}

.toggle-btn:active {
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .offers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .offers-grid {
    grid-template-columns: 1fr;
  }
  
  .offer-card {
    padding: 16px;
  }
  
  .button-container {
    flex-direction: column;
  }
  
  .cart-btn {
    width: 100%;
    height: 44px;
  }
}

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

.offer-card {
  animation: fadeInUp 0.6s ease forwards;
}

.offers-grid .offer-card:nth-child(1) { animation-delay: 0.1s; }
.offers-grid .offer-card:nth-child(2) { animation-delay: 0.2s; }
.offers-grid .offer-card:nth-child(3) { animation-delay: 0.3s; }
.offers-grid .offer-card:nth-child(4) { animation-delay: 0.4s; }
.offers-grid .offer-card:nth-child(5) { animation-delay: 0.5s; }
.offers-grid .offer-card:nth-child(6) { animation-delay: 0.6s; }
.offers-grid .offer-card:nth-child(7) { animation-delay: 0.7s; }
.offers-grid .offer-card:nth-child(8) { animation-delay: 0.8s; }

/* Зона 6: Стили секции адресов магазинов */
.store-addresses {
  padding: 40px 0;
}

.map-container {
  width: 100%;
  height: 350px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* Зона 7: Стили секции категорий */
.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--dark-color);
  margin-bottom: 35px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px; 
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: #f13d3d;
}

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

.category-card {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

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

.category-card h3 {
  padding: 15px;
  text-align: center;
  background-color: var(--dark-color);
  color: var(--text-light);
  font-size: 16px;
}

/* Зона 8: Стили секции преимуществ */
.advantages {
  background-color: var(--dark-color);
  color: var(--text-light);
  padding: 40px 0;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.advantages h2{
  color: #fff;
}

.advantage-item {
  text-align: center;
  padding: 20px;
}

.advantage-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.advantage-item h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.advantage-item p {
  font-size: 14px;
}

/* Зона 9: Стили футера */
.footer {
  background-color: var(--dark-color);
  color: var(--text-light);
  padding: 30px 0 20px;
  margin-top: auto !important; 
}

html, body {
  height: 100% !important; 
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh !important; 
}

main {
  flex: 1 0 auto !important;  
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 25px;
}

@media (max-width: 1400px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-start; 
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.footer-column h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
  font-size: 18px;
  width: 100%; 
  text-align: center;
}

.footer-column .phone-number {
  margin-bottom: 10px;
  font-size: 16px;
}

.address {
  margin-bottom: 7px;
}

.email-container {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  justify-content: center; 
}

.email-container p {
  margin: 0;
}

.social-links {
  display: flex;
  gap: 10px;
  justify-content: center; 
  width: 100%; 
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  transition: var(--transition);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 3px;
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.social-links i {
  font-size: 18px;
  margin-top: 11px;
}

.footer-column .info-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  width: 100%; 
  align-items: center; 
}

.footer-column .info-links a {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: var(--transition);
  text-align: center;
  width: 100%;
}

.footer-column .info-links a:hover {
  color: var(--primary-color);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

/* алерт корзина */

.cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    color: var(--text-color);
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--primary-color);
    z-index: 10000;
    display: flex;
    align-items: center;
    max-width: 320px;
    animation: slideInUp 0.3s ease;
    font-weight: 500;
    font-size: 15px;
}

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

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .cart-notification {
        bottom: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
        font-size: 14px;
        padding: 14px 18px;
    }
}

@media (max-width: 480px) {
    .cart-notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .footer {
    padding: 25px 0 15px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-column {
    align-items: center;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-column .info-links {
    align-items: center;
  }
  
  .footer-column .info-links a {
    text-align: center;
  }
}

.footer-column > * {
  width: 100%;
  text-align: center;
}

.ui-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; z-index: 10000; backdrop-filter: blur(2px); }
.ui-modal { background: #fff; width: 90%; max-width: 520px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); border: 1px solid #e5e7eb; padding: 18px; animation: modalSlideIn .25s ease; }
.ui-modal .modal-title { font-size: 18px; font-weight: 700; color: var(--dark-color); margin-bottom: 8px; }
.ui-modal .modal-summary { max-height: 160px; overflow: auto; margin: 8px 0; font-size: 14px; opacity: .9; }
.ui-modal .modal-total { font-weight: 700; margin-bottom: 8px; }
.ui-modal .modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.ui-modal .modal-note { margin-top: 8px; color: #666; font-size: 14px; }
.ui-modal input.modal-input { width: 100%; padding: 12px; border: 2px solid #e9ecef; border-radius: 12px; font-size: 14px; background: #f8f9fa; }

.btn { background: linear-gradient(135deg, var(--primary-color), #b71c1c); color: #fff; border: none; padding: 10px 16px; border-radius: 12px; font-weight: 600; cursor: pointer; transition: var(--transition); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(211,47,47,.25); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.secondary { background: #f3f4f6; color: #333; border: 1px solid #e5e7eb; }
.btn.secondary:hover { background: #e9ecef; box-shadow: none; }

/* Зона 10: Адаптивные стили для планшетов  */
@media (max-width: 1370px) {
  .logo img {
    max-height: 80px;
    min-width: 100px;
  }

  .nav-menu ul {
    gap: 20px;
  }
  
  .nav-menu li {
    margin-right: 25px;
  }
  
  .nav-menu li:not(:last-child)::after {
    right: -20px;
  }}

@media (max-width: 1200px) {
  .header-container {
    gap: 15px;
  }

  .logo img {
    max-height: 75px;
    min-width: 100px;
  }
  
  .nav-menu ul {
    gap: 20px;
  }
  
  .nav-menu li {
    margin-right: 25px;
  }
  
  .nav-menu li:not(:last-child)::after {
    right: -20px;
  }
  
  .logo img {
    margin-right: 15px;
    max-height: 75px;
  }
  
  .header-actions {
    margin-left: 15px;
    gap: 15px;
  }
}

@media (max-width: 1024px) {
  .header-container {
    gap: 12px;
  }
  
  .nav-menu ul {
    gap: 18px;
  }
  
  .nav-menu li {
    margin-right: 20px;
  }
  
  
  .header-actions {
    gap: 12px;
  }
  
  .cart-link, .login-link {
    font-size: 14px;
  }
}

@media (max-width: 900px) {
  .header-container {
    gap: 10px;
  }
  
  .nav-menu ul {
    gap: 15px;
  }
  
  .nav-menu li {
    margin-right: 15px;
  }
  
  .nav-menu li:not(:last-child)::after {
    right: -15px;
    font-size: 14px;
  }
  
  .nav-menu a {
    font-size: 15px;
  }
  
}

@media (max-width: 1390px) {
  .header-container {
    gap: 8px;
    padding: 0 10px;
  }}

@media (max-width: 1390px) {
  .container {
    padding: 0 12px;
  }

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

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: #474a50;
    z-index: 1001;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
  }

  .nav-menu.active {
    display: block;
    transform: translateX(0);
    color: var(--text-color);
    max-width: 400px;
  }

  .nav-menu-inner {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .nav-menu ul {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0;
  }

  .nav-menu li {
    width: 100%;
    margin-top: 20px;
  }

  .nav-menu li:not(:last-child)::after {
    display: none;
  }

  .nav-menu a {
    font-size: 16px;
    padding: 10px 0;
  }

  .nav-menu a:hover {
    padding-left: 8px;
  }

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

  .header-actions {
    display: none;
  }

.mobile-header-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-color);
    box-sizing: border-box; 
    margin-left: 0; 
    margin-right: 0; 
}

  .mobile-header-actions .cart-link,
  .mobile-header-actions .login-link {
    justify-content: flex-start;
  }

  .search-form {
    width: 100%;
  }

  .search-form input {
    font-size: 14px;
    padding: 8px 12px;
  }

  .search-form button {
    padding: 8px 12px;
    font-size: 14px;
  }

  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .offer-card img {
    max-width: 200px;
    height: 190px;
  }

  .offer-card h4 {
    font-size: 14px;
  }

  .price-container {
    font-size: 12px;
    gap: 8px;
  }

  .cart-btn {
    width: 40px;
    height: 30px;
    font-size: 14px;
  }

  .order-btn {
    font-size: 13px;
    padding: 6px;
  }

  .toggle-btn {
    font-size: 13px;
    padding: 10px 20px;
  }

  .map-container {
    height: 300px;
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantage-item i {
    font-size: 2rem;
  }

  .advantage-item h3 {
    font-size: 16px;
  }

  .advantage-item p {
    font-size: 13px;
  }

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

  .footer-column .phone-number {
    font-size: 14px;
  }

  .email-container {
    flex-direction: column;
    gap: 10px;
  }

  .footer-column .info-links a {
    font-size: 13px;
  }

  .copyright {
    font-size: 13px;
  }

  .auth-modal-content {
    width: 95%;
    padding: 20px;
  }

  .auth-tab {
    font-size: 14px;
  }

  .auth-btn {
    font-size: 14px;
  }
}

@media (max-width: 400px) {

  .logo img {
    max-height: 60px;
    max-width: 140px;
  }
}

/* Зона 11: Адаптивные стили для мобильных (до 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }

  .logo img {
    max-height: 60px;
    min-width: 100px;
  }

  .nav-menu {
    width: 100%;
    padding: 30px;
  }

  .nav-menu a {
    font-size: 16px;
    padding: 8px 0;
  }

  .mobile-header-actions {
    gap: 12px;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .offers-grid {
    grid-template-columns: 1fr;
  }

  .offer-card img {
    max-width: 180px;
    height: 170px;
  }

  .offer-card h4 {
    font-size: 13px;
  }

  .price-container {
    font-size: 11px;
  }

  .cart-btn {
    width: 35px;
    height: 28px;
    font-size: 13px;
  }

  .order-btn {
    font-size: 12px;
    padding: 5px;
  }

  .toggle-btn {
    font-size: 12px;
    padding: 8px 15px;
  }

  .map-container {
    height: 250px;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .advantage-item {
    padding: 15px;
  }

  .advantage-item i {
    font-size: 1.8rem;
  }

  .advantage-item h3 {
    font-size: 15px;
  }

  .advantage-item p {
    font-size: 12px;
  }

  .footer {
    padding: 20px 0 15px;
  }

  .footer-grid {
    gap: 20px;
    margin-bottom: 20px;
  }

  .copyright {
    font-size: 12px;
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
    .login-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .forgot-password {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
  .auth-modal-content {
    max-width: 90%;
    margin: 20px;
  }
  
  .auth-form-container {
    padding: 30px 25px;
  }
  
  .auth-tab {
    font-size: 14px;
    padding: 10px;
  }
  
  .form-group input {
    padding: 14px;
    font-size: 15px;
  }
  
  .auth-btn {
    padding: 14px;
    font-size: 15px;
  }
  
  .toggle-password {
    right: 14px;
    top: 52%;
    margin-top: 16px;
  }
}

@media (max-width: 480px) {
  .auth-form-container {
    padding: 25px 20px;
  }
  
  .auth-tabs {
    margin-bottom: 25px;
  }
  
  .auth-tab {
    font-size: 13px;
    padding: 8px;
  }
  
  .form-group input {
    padding: 12px;
    font-size: 14px;
  }
  
  .auth-btn {
    padding: 12px;
    font-size: 14px;
  }
  
  .auth-close-btn {
    top: 12px;
    right: 12px;
    font-size: 24px;
    width: 35px;
    height: 35px;
  }
  
  .toggle-password {
    right: 12px;
    top: 50%;
    font-size: 16px;
  }
}

@media (max-width: 1390px) {
    .nav-menu ul,
    .header-actions {
        display: none;
    }
    
    .nav-menu.active ul,
    .nav-menu.active .header-actions {
        display: flex;
    }
    
    .header .logo {
        display: block !important;
    }
}

/* Экстренное исправление горизонтального скролла */
body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
}
