/* cyrillic-ext */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/JTUSjIg1_i6t8kCHKm459WZhyzbi.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
    --primary-color: #e74c3c;
    --primary-dark: #c0392b;
    --primary-light: #ff6b6b;
    --text-color: #333333;
    --text-light: #666666;
    --text-gray-btn: #999999;
    --background: #ffffff;
    --background-light: #f9f9f9;
    --background-dark: #f5f5f5;
    --border-color: #e0e0e0;
    --shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 30px rgba(0, 0, 0, 0.15);
    --border-radius: 12px;
    --border-radius-small: 8px;
    --transition: all 0.3s ease;
}

* { 
    -webkit-tap-highlight-color: transparent; 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Arial', sans-serif; 
}

*:focus { outline: none !important; box-shadow: none !important; }
button:focus, a:focus, input:focus, textarea:focus, select:focus { outline: none !important; box-shadow: none !important; }

body { 
    background: var(--background); 
    color: var(--text-color); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

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

/* Крестики закрытия */
.mobile-menu-close, .modal-close, .sub-modal-close {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400 !important;
    font-size: 40px !important;
    color: var(--primary-color) !important;
}

/* Шапка сайта */
.main-header { 
    background: var(--background); 
    padding: 8px; 
    position: relative; 
    z-index: 1001; 
    border-bottom: none; 
}

.navbar { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 10px 0;
    min-height: 60px; 
    position: relative; 
}

.mobile-menu-btn { 
    display: none; 
    flex-direction: column; 
    width: 28px; 
    height: 18px; 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    gap: 4px; 
    z-index: 10; 
}

.mobile-menu-btn span { 
    height: 3px; 
    background: var(--text-color); 
    border-radius: 2px; 
    transition: var(--transition); 
}

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.logo { 
    position: absolute; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex; 
    align-items: center; 
    padding: 0; 
    margin: 0; 
}

.logo-image { 
    height: 95px; 
    width: auto; 
    object-fit: contain;
    margin: 5px 0;
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 8px; 
    margin-left: auto; 
    padding: 0; 
    z-index: 10; 
    overflow: hidden; 
}

.nav-links a { 
    text-decoration: none; 
    color: var(--text-color); 
    padding: 6px 8px; 
    border-radius: 5px; 
    font-size: clamp(14px, 2vw, 16px); 
    transition: var(--transition); 
    white-space: nowrap; 
}

.nav-links a:hover, .nav-links a.active { 
    color: var(--primary-color); 
    background: rgba(231, 76, 60, 0.1); 
}

.nav-links a.long-nav-link {
    font-size: clamp(11px, 1.2vw, 13px);
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.phone-icon { 
    display: flex !important; 
    width: 32px; 
    height: 32px; 
    background: transparent !important; 
    border: none !important; 
    border-radius: 0 !important; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    transition: var(--transition); 
    box-shadow: none !important; 
    margin: 0 12px; 
    padding: 0; 
    z-index: 10; 
}

.phone-icon:hover { transform: scale(1.15); }
.phone-icon svg { width: 26px; height: 26px; fill: var(--primary-color) !important; }

/* Мобильное меню */
.mobile-menu-overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.5); 
    z-index: 9998; 
    opacity: 0; 
    visibility: hidden; 
    transition: var(--transition); 
}

.mobile-menu { 
    position: fixed; 
    top: 0; 
    left: -100%; 
    width: max-content; 
    min-width: 85%; 
    max-width: 95vw; 
    height: 100vh; 
    background: var(--background); 
    z-index: 9999; 
    transition: var(--transition); 
    padding: 7px 20px 40px; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column; 
    box-shadow: 5px 0 25px rgba(0,0,0,0.15); 
    border-right: 0px solid var(--primary-color); 
}

.mobile-menu.active { left: 0; }

.mobile-menu-header { 
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center; 
    border-bottom: 1px solid var(--border-color); 
    padding: 0px 0; 
    margin-bottom: 10px; 
    width: 100%; 
    min-height: 60px; 
}

.mobile-menu-close { 
    position: relative; 
    top: -1px; 
    grid-column: 1; 
    justify-self: start; 
    margin-left: 3px; 
    width: 40px; 
    height: 40px; 
    background: transparent; 
    border: none; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: var(--transition); 
    z-index: 10000; 
    padding: 0; 
}

.mobile-menu-close:hover { color: var(--primary-dark) !important; transform: scale(1.1); }

.mobile-menu-logo { 
    grid-column: 2; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 0; 
    margin: 0; 
}

.mobile-menu-logo .logo-image { 
    width: auto; 
    max-width: 100%; 
    margin: 1px 0; 
    object-fit: contain; 
}

.mobile-nav-links { list-style: none; margin-bottom: 15px; } 
.mobile-nav-links li { margin-bottom: 8px; }
.mobile-nav-links a { 
    display: flex; 
    align-items: center; 
    padding: 14px 18px; 
    text-decoration: none; 
    color: var(--text-color); 
    font-size: clamp(14px, 3.5vw, 16px); 
    font-weight: 500; 
    border-radius: var(--border-radius); 
    transition: var(--transition); 
    background: var(--background); 
    border: 1px solid var(--border-color); 
    gap: 12px; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.mobile-nav-links a.long-nav-link { font-size: clamp(14px, 3.5vw, 16px); }
.mobile-nav-links a:hover, .mobile-nav-links a.active { 
    background: var(--primary-color); 
    color: white; 
    border-color: var(--primary-color); 
    transform: translateX(5px); 
}

.nav-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-icon img { width: 100%; height: 100%; object-fit: contain; transition: var(--transition); }
.mobile-nav-links a:hover .nav-icon img, .mobile-nav-links a.active .nav-icon img { filter: brightness(0) invert(1); }

/* Блок соцсетей */
.mobile-menu-section.social-promo { 
    background: var(--background-light); 
    border-radius: 12px; 
    padding: 16px 12px; 
    margin: 5px 15px 20px; 
    text-align: center; 
    color: var(--text-color); 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); 
    border: 1px solid var(--border-color); 
    position: relative; 
}

.social-promo-header { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 8px; }
.social-promo-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.social-promo-icon img { width: 100%; height: 100%; object-fit: contain; }
.social-promo-title { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: 0.3px; font-family: 'Montserrat', sans-serif; }
.social-promo-subtitle { font-size: 12px; color: var(--text-light); margin-bottom: 16px; line-height: 1.4; font-weight: 400; }
.social-promo-links { display: flex; justify-content: center; gap: 20px; margin: 0; }
.social-promo-link { display: flex; flex-direction: column; align-items: center; text-decoration: none; transition: all 0.2s ease; width: 70px; }
.social-promo-link:hover { transform: translateY(-2px); }
.social-promo-icon-wrapper { width: 75px; height: 75px; border-radius: 0; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; background: transparent; border: none; transition: all 0.2s ease; }
.social-promo-link:hover .social-promo-icon-wrapper { border-color: var(--primary-color); box-shadow: 0 3px 10px rgba(0,0,0,0.08); }
.social-promo-icon-wrapper img { width: 52px; height: 52px; }
.social-promo-footer { font-size: 11px; color: var(--text-light); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-color); font-style: normal; font-weight: 400; }

/* Общие секции и контент */
.page-section { padding: 20px 0; min-height: auto; background: var(--background); }
.page-title { text-align: center; font-size: clamp(28px, 5vw, 36px); margin-bottom: 20px; color: var(--text-color); }
.section-title { text-align: center; font-size: clamp(24px, 4vw, 32px); margin-top: 20px; margin-bottom: 15px; color: var(--text-color); font-weight: 700; width: 100%; display: block; }

.page-content { 
    max-width: 800px; 
    margin: 0 auto; 
    background: white; 
    padding: 30px; 
    border-radius: var(--border-radius); 
    box-shadow: var(--shadow); 
}

.page-text { font-size: 16px; line-height: 1.8; color: var(--text-light); text-align: center; margin-bottom: 25px; }

/* Форма обратной связи */
.feedback-container { max-width: 600px; margin: 0 auto; text-align: left; margin-top: 20px; }
.feedback-alert { background: #f8f9fa; border-radius: 12px; padding: 25px; margin-bottom: 20px; border: 1px solid #eef0f3; }
.feedback-alert-title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; margin-bottom: 12px; color: #000; font-family: 'Montserrat', sans-serif; }
.feedback-alert-text { font-size: 14px; color: #666; line-height: 1.5; margin-bottom: 15px; }
.feedback-alert-text:last-child { margin-bottom: 0; }
.feedback-form .form-group { margin-bottom: 20px; }
.feedback-input { width: 100%; height: 50px; border: 1px solid #e0e0e0; border-radius: 8px; padding: 0 15px; font-size: 16px; color: #333; outline: none; transition: border-color 0.3s; background: #fff; box-sizing: border-box; }
.feedback-input:focus { border-color: var(--primary-color); }
.feedback-input::placeholder { color: #999; }
.phone-input-wrapper { display: flex; align-items: center; border: 1px solid #e0e0e0; border-radius: 8px; height: 50px; padding-left: 15px; background: #fff; transition: border-color 0.3s; box-sizing: border-box; }
.phone-input-wrapper:focus-within { border-color: var(--primary-color); }
.phone-input-wrapper .flag { font-size: 20px; margin-right: 10px; user-select: none; }
.phone-input-wrapper input { border: none; height: 100%; width: 100%; border-radius: 0 8px 8px 0; outline: none; font-size: 16px; color: #333; }
.phone-input-wrapper input::placeholder { color: #999; }
.feedback-submit-btn { width: 100%; height: 50px; background: var(--primary-color); color: #fff; border: none; border-radius: 50px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background 0.3s; margin-top: 10px; font-family: 'Montserrat', sans-serif; }
.feedback-submit-btn:hover { background: var(--primary-dark); }

.feedback-toggle-btn {
    width: 100%;
    background: var(--background);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 14px 18px;
    border-radius: var(--border-radius);
    font-size: clamp(14px, 3.5vw, 16px);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

@media (hover: hover) and (pointer: fine) {
    .feedback-toggle-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
}

.feedback-toggle-icon { transition: transform 0.3s ease; }
.feedback-toggle-btn.active .feedback-toggle-icon { transform: rotate(45deg); color: var(--primary-color); }
.feedback-toggle-btn.active { border-color: var(--primary-color); color: var(--primary-color); }
.feedback-accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, opacity 0.3s ease-out, margin 0.3s ease-out; opacity: 0; }
.feedback-accordion-content.active { opacity: 1; margin-top: 15px; }

.legal-link {
    display: flex;
    align-items: center;
    padding: 8px 18px;
    background: var(--background);
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    text-align: left;
    font-size: clamp(14px, 3.5vw, 16px);
}

@media (hover: hover) and (pointer: fine) {
    .legal-link:hover { color: var(--primary-color); border-color: var(--primary-color); transform: translateX(5px); }
}

/* Доставка и оплата */
.delivery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; }
.delivery-card { border: 1px solid var(--border-color); border-radius: 12px; padding: 20px 10px; text-align: center; background: white; }
.delivery-card-title { font-size: 14px; color: var(--text-light); margin-bottom: 8px; }
.delivery-card-value { font-size: 18px; font-weight: 700; color: #000; }
.delivery-list { display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }
.delivery-list-item { display: flex; gap: 15px; align-items: flex-start; }
.delivery-list-icon { width: 32px; height: 32px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--primary-color); margin-top: -3px; }
.delivery-list-content h4 { font-size: 16px; font-weight: 700; margin-bottom: 5px; color: #000; }
.delivery-list-content h4 a { color: #000; text-decoration: none; }
.delivery-list-content p { font-size: 14px; color: var(--text-light); line-height: 1.5; margin: 0; }

/* Слайдер акций */
.promo-slider-section { padding: 20px 15px 30px; background: white; position: relative; }
.promo-slider-container { position: relative; width: 100%; max-width: 700px; margin: 0 auto; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); background: #f8f9fa; aspect-ratio: 4 / 2.75; }
.promo-slider { position: relative; width: 100%; height: 100%; overflow: hidden; }
.promo-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: transform 0.4s ease, opacity 0.4s ease; z-index: 1; cursor: pointer; }

/* Первый слайд отображается мгновенно без ожиданий JS */
.promo-slide:first-child,
.promo-slide.active { 
    opacity: 1 !important; 
    transform: translateX(0) !important; 
    z-index: 2; 
}
.promo-slide.next { transform: translateX(100%); }
.promo-slide.prev { transform: translateX(-100%); }
.slide-image { width: 100%; height: 100%; object-fit: fill; display: block; background: #f5f5f5; }
.slider-indicators { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 20px; padding: 10px; }
.slider-indicator { width: 10px; height: 10px; border-radius: 50%; background: var(--border-color); border: none; cursor: pointer; transition: all 0.3s ease; padding: 0; margin: 0; }
.slider-indicator.active { background: var(--primary-color); transform: scale(1.3); box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2); }

/* Отключаем задержку рендера для первого активного баннера (LCP) */
.promo-slide.active .slide-image {
    animation: none !important;
}
@keyframes progressLine { from { width: 0%; } to { width: 100%; } }
.promo-slide.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary-color), var(--primary-dark)); z-index: 4; animation: progressLine 8s linear; }

/* Категории */
.categories-section { padding: 0 0 15px; background: var(--background); }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 15px; }
.category-tab { background: var(--background); border-radius: var(--border-radius); overflow: hidden; cursor: pointer; position: relative; transition: var(--transition); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1); }
.category-tab:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3); }
.category-tab.large { grid-column: span 2; grid-row: span 2; }
.category-tab.medium { grid-column: span 2; }
.category-tab.small { grid-column: span 1; }
.category-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.category-name { 
    position: absolute; bottom: 0; left: 0; right: 0; 
    background: linear-gradient(to top, rgba(60, 60, 60, 0.8) 0%, rgba(60, 60, 60, 0.35) 40%, transparent 100%);
    padding: 2px 5px; min-height: 40px; display: flex; align-items: flex-end; justify-content: center;
    text-align: center; font-family: 'Georgia', serif; font-weight: 300; font-size: clamp(12px, 3.5vw, 15px);
    color: white; text-transform: uppercase; letter-spacing: 0.5px;
}

/* Навигационная панель каталога и поиск */
.category-nav { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 99; padding: clamp(10px, 2.5vw, 12px) 0; border-bottom: none; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.category-nav.scrolled { background: rgba(255,255,255,0.9); }
.category-nav .container { display: flex; align-items: center; gap: 10px; position: relative; height: 38px; }
.category-nav-links { display: flex; justify-content: flex-start; list-style: none; gap: clamp(8px, 2vw, 10px); overflow-x: auto; white-space: nowrap; scrollbar-width: none; flex-grow: 1; height: 100%; align-items: center; padding-bottom: 0; }
.category-nav-links::-webkit-scrollbar { display: none; }
.category-nav-link { padding: clamp(6px, 1.5vw, 8px) clamp(13px, 2.5vw, 16px); border-radius: 20px; background: rgba(245,245,245,0.7); font-size: clamp(14px, 2.5vw, 14px); flex-shrink: 0; transition: var(--transition); text-decoration: none; color: inherit; display: inline-flex; align-items: center; height: 100%; }
.category-nav-link.active, .category-nav-link:hover { background: var(--primary-color); color: white; }

.search-toggle-btn { width: 35px; height: 35px; border-radius: 50%; background: var(--background-light); border: 1px solid transparent; color: var(--text-light); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; transition: all 0.3s ease; z-index: 102; position: relative; }
.search-toggle-btn.active { background: var(--background-light); color: var(--text-light); border-color: transparent; }
.search-toggle-btn svg { width: 16px; height: 16px; stroke: var(--text-light); transition: transform 0.3s ease; }
.search-toggle-btn.active svg { transform: rotate(90deg); }

.sliding-search-container { position: absolute; top: 0; left: 0; width: calc(100% - 46px); height: 100%; background: #ffffff; display: flex; align-items: center; z-index: 101; opacity: 0; visibility: hidden; transform: translateX(15px); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; }
.sliding-search-container.active { opacity: 1; visibility: visible; transform: translateX(0); pointer-events: auto; }
.sliding-search-inner { width: 100%; height: 100%; display: flex; align-items: center; }
.search-input-wrapper { width: 100%; height: 36px; display: flex; align-items: center; }
.search-input-wrapper input { width: 100%; height: 100%; padding: 0 15px; border: 1px solid transparent; border-radius: 25px; font-size: 14px; background: var(--background-light); transition: var(--transition); outline: none; margin: 0; }
.search-input-wrapper input:focus { background: #f0f0f0; box-shadow: none; }
.no-results { display: none; text-align: center; padding: 40px 20px; color: var(--text-light); font-size: 16px; width: 100%; grid-column: 1 / -1; }

/* Карточки товаров */
.category-content { margin-bottom: 20px; padding-top: 10px; min-height: 120px; }
.menu-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(clamp(300px, 40vw, 340px), 1fr)); gap: clamp(30px, 4vw, 30px); margin-top: 15px; }
.menu-item { background: var(--background); border-radius: var(--border-radius); overflow: hidden; transition: var(--transition); display: flex; flex-direction: column; cursor: pointer; position: relative; height: 100%; box-shadow: none; border: 0px solid var(--border-color); -webkit-tap-highlight-color: transparent !important; padding-top: 15px; }
.menu-item.hidden { display: none !important; }
.item-content { padding: clamp(15px, 3vw, 20px); flex-grow: 1; display: flex; flex-direction: column; gap: 12px; }
.item-title { font-size: clamp(16px, 3vw, 18px); margin-bottom: 0; font-weight: 600; color: var(--text-color); line-height: 1.3; min-height: 2.4em; }
.item-description { color: var(--text-light); font-size: clamp(13px, 2.5vw, 15px); margin-bottom: 0; line-height: 1.5; flex-grow: 1; min-height: 4.5em; }
.item-info { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 28px; flex-wrap: nowrap; gap: 8px; }
.item-weight { font-size: clamp(14px, 2.5vw, 16px); color: var(--text-light); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; text-align: left; }
.item-price { font-weight: 800 !important; font-size: clamp(19px, 3.5vw, 23px) !important; color: #000; white-space: nowrap; flex-shrink: 0; margin-left: 0; }
.item-controls { width: 100%; margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.add-to-cart { width: 100%; background: white; color: var(--primary-color); border: 1px solid var(--primary-color); padding: 14px 16px; border-radius: 50px; cursor: pointer; font-size: clamp(15px, 2.5vw, 17px); font-weight: 700; transition: all 0.3s; text-align: center; display: flex; height: 48px; align-items: center; justify-content: center; margin: 0; letter-spacing: 0.3px; white-space: nowrap; font-family: sans-serif; box-shadow: none; }
.add-to-cart:hover { background: white !important; color: var(--primary-dark) !important; transform: translateY(-2px); box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important; }
.item-quantity-counter { width: 100%; display: flex; align-items: center; background: white; border: 1px solid var(--primary-color); border-radius: 50px; padding: 0; height: 48px; overflow: hidden; box-shadow: none; }
.item-quantity-counter button { width: 48px; height: 100%; background: transparent; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; font-weight: 600; color: var(--primary-color); transition: all 0.2s; padding: 0; flex-shrink: 0; }
.item-quantity-counter button:hover { background: white !important; color: var(--primary-dark) !important; }
.item-quantity-counter .item-quantity-display { flex: 1; text-align: center; font-size: 18px; font-weight: 600; color: var(--primary-color); min-width: 40px; }
.size-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; width: 100%; }
.size-tab { flex: 1; min-width: 0; padding: 8px 10px; background: white; border: 1px solid var(--border-color); border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--text-gray-btn); cursor: pointer; transition: var(--transition); text-align: center; white-space: nowrap; }
.size-tab:hover { background: #f9f9f9; border-color: var(--primary-color); }
.size-tab.active { background: white; color: var(--primary-color); border-color: var(--primary-color); }

/* Модальные окна товара */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 2000; opacity: 0; visibility: hidden; transition: all 0.3s ease; backdrop-filter: blur(5px); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.product-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); width: 90%; max-width: 600px; max-height: 85vh; background: white; border-radius: 20px; z-index: 2001; opacity: 0; visibility: hidden; transition: all 0.3s ease; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); padding: 0; }
.product-modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.product-modal.compact { max-width: 400px; height: auto; max-height: 90vh; }
.modal-close { position: absolute; top: 15px; right: 15px; width: auto; height: auto; border-radius: 0; background: transparent !important; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--primary-color) !important; transition: var(--transition); z-index: 10; box-shadow: none !important; padding: 0; line-height: 1; }
.modal-close:hover { background: transparent !important; color: var(--primary-dark) !important; transform: rotate(90deg) scale(1.1); }
.modal-scrollable { flex: 1; overflow-y: auto; padding: 0; }
.modal-image-container { width: 100%; height: 350px; overflow: hidden; background: #ffffff; display: flex; align-items: center; justify-content: center; margin-top: 0; }
.modal-image-container img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.modal-info { padding: 20px; border-bottom: 0px solid var(--border-color); }
.modal-product-name { font-size: 24px; font-weight: 700; color: var(--text-color); margin-bottom: 5px; line-height: 1.2; }
.modal-description { font-size: 14px; color: var(--text-light); line-height: 1.5; margin-bottom: 15px; text-align: left; }
.modal-product-details { display: flex; align-items: center; gap: 3px; margin-bottom: 15px; }
.modal-weight { font-size: 16px; color: var(--text-light); font-weight: 500; margin-bottom: 0 !important; }
.modal-pieces { font-size: 16px; color: var(--text-light); font-weight: 500; margin-bottom: 0 !important; }
.modal-details-separator { color: var(--text-light); font-size: 15px; line-height: 1; opacity: 0.6; display: flex; align-items: center; justify-content: center; margin: 0 1px; }
.modal-price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 0; border-top: none; }
.modal-price { font-size: 28px; font-weight: 800; color: #000; }
.modal-controls { display: flex; align-items: center; gap: 10px; }
.modal-size-tabs { display: flex; gap: 8px; margin-bottom: 15px; justify-content: flex-start; flex-wrap: wrap; margin-right: auto; }
.modal-size-tab { padding: 8px 12px; background: white; border: 1px solid var(--border-color); border-radius: 25px; font-size: 13px; font-weight: 500; color: var(--text-gray-btn); cursor: pointer; transition: var(--transition); text-align: center; white-space: nowrap; }
.modal-size-tab:hover { background: #f9f9f9; border-color: var(--primary-color); }
.modal-size-tab.active { background: white; color: var(--primary-color); border-color: var(--primary-color); }
.modal-add-btn { background: white; color: var(--primary-color); border: 1px solid var(--primary-color); border-radius: 50px; padding: 0 25px; height: 44px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.3s; white-space: nowrap; min-width: 140px; display: flex; justify-content: center; align-items: center; box-sizing: border-box; }
.modal-add-btn:hover { background: white !important; color: var(--primary-dark) !important; transform: translateY(-2px); }
.modal-quantity { display: flex; align-items: center; background: white; border: 1px solid var(--primary-color); border-radius: 50px; padding: 0; height: 44px; min-width: 140px; overflow: hidden; box-sizing: border-box; }
.modal-quantity button { width: 44px; height: 100%; background: transparent; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 20px; font-weight: 600; color: var(--primary-color); transition: all 0.2s; }
.modal-quantity button:hover { background: white !important; color: var(--primary-dark) !important; }
.modal-quantity span { flex: 1; text-align: center; font-size: 18px; font-weight: 600; color: var(--primary-color); min-width: 40px; }
.modal-sections { padding: 15px 20px; }
.modal-section { margin-bottom: 10px; }
.section-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: white; border: 0px solid var(--border-color); border-radius: 50px; cursor: pointer; transition: var(--transition); margin-bottom: 8px; position: relative; z-index: 2; box-shadow: none !important; }
.section-header:hover { background: white; border-color: var(--primary-color); }
.section-header.active { background: white; color: var(--primary-color); border-color: var(--primary-color); }
.modal-divider { width: 100%; height: 1px; background: #e0e0e0; margin: 10px; border-radius: 0; opacity: 1; }
.modal-toggle-title { font-size: 18px; font-weight: 400; margin: 0; padding: 0; text-align: left; width: auto; color: inherit; padding-left: 8px; }
.section-icon { font-size: 22px; font-weight: 400; transition: transform 0.3s ease; color: var(--text-light); padding-right: 5px; }
.section-header.active .section-icon { transform: rotate(45deg); color: var(--primary-color); }
.section-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, opacity 0.3s ease-out, transform 0.3s ease-out; opacity: 0; transform: translateY(-10px); }
.section-content.active { opacity: 1; transform: translateY(0); }
.modal-items-grid { display: flex; overflow-x: auto; gap: 12px; padding: 5px 2px; scrollbar-width: none; -ms-overflow-style: none; }
.modal-items-grid::-webkit-scrollbar { display: none; }
.modal-item { background: white; border-radius: 30px; padding: 12px; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid var(--border-color); transition: var(--transition); height: 100%; min-width: 140px; width: 140px; flex-shrink: 0; }
.modal-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.modal-item-image { width: 90px; height: 90px; border-radius: 10px; overflow: hidden; margin-bottom: 8px; background: white; display: flex; align-items: center; justify-content: center; }
.modal-item-image img { width: 100%; height: 100%; object-fit: contain; }
.modal-item-name { font-size: 13px; font-weight: 600; color: var(--text-color); margin-bottom: 5px; line-height: 1.2; height: 2.4em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.modal-item-details { font-size: 11px; color: var(--text-light); margin-bottom: 8px; width: 100%; }
.modal-item-controls { width: 100%; margin-top: auto; height: 32px; display: flex; align-items: flex-end; }
.modal-item[data-type="composition"] { cursor: pointer; }
.modal-item[data-type="composition"] .modal-item-controls, .modal-item[data-type="composition"] .modal-item-price-btn, .modal-item[data-type="composition"] .modal-item-counter { display: none !important; }
.modal-item-price-btn { width: 100%; height: 32px; background: white; color: var(--primary-color); border: 1px solid var(--primary-color); border-radius: 16px; padding: 0; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.3s; white-space: nowrap; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.modal-item-price-btn:hover { background: white !important; color: var(--primary-dark) !important; }
.modal-item-choose-btn { width: 100%; height: 32px; background: white; color: var(--primary-color); border: 1px solid var(--primary-color); border-radius: 16px; padding: 0; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.3s; white-space: nowrap; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.modal-item-choose-btn:hover { background: white !important; color: var(--primary-dark) !important; }
.modal-item-counter { width: 100%; height: 32px; display: flex; align-items: center; background: white; border: 1px solid var(--primary-color); border-radius: 16px; padding: 0; overflow: hidden; box-sizing: border-box; }
.modal-item-counter button { width: 30px; height: 100%; background: transparent; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--primary-color); transition: all 0.2s; padding: 0; flex-shrink: 0; }
.modal-item-counter button:hover { background: white !important; color: var(--primary-dark) !important; }
.modal-item-counter span { flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: var(--primary-color); line-height: 30px; }

/* Дополнительное модальное окно (Sub-Modal) */
.sub-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 2005; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.sub-modal-overlay.active { opacity: 1; visibility: visible; }
.sub-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); width: 90%; max-width: 400px; background: white; border-radius: 20px; z-index: 2006; opacity: 0; visibility: hidden; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); padding: 0; overflow: hidden; }
.sub-modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.sub-modal-image-container { width: 100%; height: 250px; overflow: hidden; background: #ffffff; display: flex; align-items: center; justify-content: center; position: relative; }
.sub-modal-image { width: 100%; height: 100%; object-fit: contain; }
.sub-modal-close { position: absolute; top: 15px; right: 15px; width: auto; height: auto; border-radius: 0; background: transparent !important; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--primary-color) !important; transition: var(--transition); z-index: 10; box-shadow: none !important; line-height: 1; }
.sub-modal-close:hover { color: var(--primary-dark) !important; transform: rotate(90deg) scale(1.1); }
.sub-modal-info { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.sub-modal-title { font-size: 22px; font-weight: 700; color: var(--text-color); line-height: 1.2; text-align: left; }
.sub-modal-description { font-size: 14px; color: var(--text-light); line-height: 1.5; max-height: 100px; overflow-y: auto; text-align: left; }
.sub-modal-meta { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-light); font-weight: 500; }
.sub-modal-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.sub-modal-price { font-size: 24px; font-weight: 800; color: #000; }

/* О нас */
.about-hero { text-align: center; margin-bottom: 15px; padding: 10px 0; }
.about-title { font-size: clamp(24px, 4vw, 36px); margin-bottom: 10px; color: var(--text-color); line-height: 1.3; }
.about-title .accent { color: var(--primary-color); font-weight: bold; }

.mission-section {
    margin: 15px 0 20px;
    padding: clamp(20px, 4vw, 30px) 20px;
    background: linear-gradient(135deg, #fff0f0 0%, #ffe3e3 100%);
    border-radius: 24px;
    text-align: center;
    position: relative;
}
.mission-icon {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 25px rgba(231, 76, 60, 0.15);
    padding: 15px;
}
.mission-icon img { width: 100%; height: 100%; object-fit: contain; }
.mission-content h3 { font-size: clamp(22px, 4vw, 28px); color: var(--primary-dark); margin-bottom: 15px; font-weight: 800; }
.mission-content p { font-size: clamp(16px, 2.5vw, 18px); line-height: 1.6; color: var(--text-color); max-width: 700px; margin: 0 auto; font-weight: 500; }

.cta-section { margin: 20px 0; }
.cta-card { 
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%); 
    color: white; 
    padding: 40px 30px; 
    border-radius: var(--border-radius); 
    text-align: center; 
    box-shadow: none; 
}
.cta-card h3 { font-size: 24px; margin-bottom: 15px; font-weight: 600; }
.cta-card p { font-size: 16px; margin-bottom: 25px; opacity: 0.9; }
.cta-button { background: white; color: var(--primary-color); border: none; padding: 12px 25px; border-radius: var(--border-radius); font-size: 15px; font-weight: 600; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.3); }

.working-hours-section {
    display: flex; 
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    margin: 10px 0; 
    padding: 20px 20px; 
    background: white; 
    text-align: center;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.advantage-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 25px 20px;
    text-align: center;
    transition: var(--transition);
}
.advantage-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary-color); }
.advantage-icon { width: 50px; height: 50px; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; }
.advantage-icon img { width: 100%; height: 100%; object-fit: contain; }
.advantage-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text-color); }
.advantage-text { font-size: 14px; color: var(--text-light); line-height: 1.5; }

/* Страница акций */
.promo-list { display: flex; flex-direction: column; gap: 30px; max-width: 1000px; margin: 0 auto; }
.promo-card-item { background: white; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border-color); display: flex; flex-direction: column; transition: var(--transition); }
.promo-card-item:hover { box-shadow: var(--shadow-large); transform: translateY(-3px); }
.promo-card-img-wrapper { width: 100%; aspect-ratio: 4 / 2.75; background: #f5f5f5; flex-shrink: 0; }
.promo-card-img { width: 100%; height: 100%; object-fit: fill; display: block; background: #f5f5f5; }
.promo-card-content { padding: 25px; display: flex; flex-direction: column; justify-content: center; flex: 1; }
.promo-card-title { font-size: 22px; font-weight: 700; color: var(--primary-dark); margin-bottom: 10px; line-height: 1.3; }
.promo-card-desc { font-size: 15px; color: var(--text-color); margin-bottom: 15px; line-height: 1.5; }
.promo-card-conditions-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: var(--text-color); }
.promo-card-conditions { list-style: none; padding: 0; margin: 0; }
.promo-card-conditions li { position: relative; padding-left: 15px; margin-bottom: 8px; font-size: 14px; color: var(--text-light); line-height: 1.4; }
.promo-card-conditions li::before { content: "•"; color: var(--primary-color); position: absolute; left: 0; font-weight: bold; }

@keyframes highlightPromo {
    0% { box-shadow: 0 0 0 rgba(231, 76, 60, 0); transform: scale(1); border-color: var(--border-color); }
    50% { box-shadow: 0 0 20px rgba(231, 76, 60, 0.5); transform: scale(1.02); border-color: var(--primary-color); }
    100% { box-shadow: var(--shadow); transform: scale(1); border-color: var(--border-color); }
}
.highlight-promo { animation: highlightPromo 2s ease-out; }

@media (min-width: 768px) {
    .promo-card-item { flex-direction: column; align-items: stretch; }
    .promo-card-img-wrapper { width: 100%; height: auto; }
    .promo-card-content { width: 100%; padding: 40px; }
    .promo-card-title { font-size: 26px; margin-bottom: 15px; }
    .promo-card-desc { font-size: 16px; line-height: 1.6; }
    .promo-card-conditions-title { font-size: 18px; }
    .promo-card-conditions li { font-size: 15px; margin-bottom: 10px; }
}

.map-container-adaptive { 
    width: 100%; 
    border-radius: 12px; 
    overflow: hidden; 
    border: none; 
    display: flex; 
    flex-direction: column; 
    background: #f5f5f5; 
    min-height: 350px; 
    align-items: center; 
    justify-content: center; 
}

/* Корзина и Floating кнопки */
.cart-fab { 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    width: 60px; 
    height: 60px; 
    background: var(--primary-color); 
    border-radius: 50%; 
    border: none;
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    padding: 0 !important; 
    cursor: pointer; 
    z-index: 1000; 
    box-shadow: 0 4px 15px rgba(231,76,60,0.4); 
    transition: all 0.3s ease; 
}

.cart-fab:hover { transform: scale(1.1); }
.cart-fab img { width: 30px; height: 30px; margin: 0 !important; padding: 0 !important; object-fit: contain; display: block; filter: brightness(0) invert(1); }

.cart-badge-compact {
    position: absolute;
    bottom: calc(100% + 5px); 
    right: 0; 
    background: var(--primary-color); 
    color: white; 
    font-size: 13px; 
    font-weight: 800; 
    height: 28px; 
    border-radius: 14px; 
    padding: 0 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    white-space: nowrap; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
    border: 1px solid var(--primary-dark); 
    transform-origin: right bottom; 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s; 
    pointer-events: none; 
    font-family: 'Montserrat', sans-serif; 
    letter-spacing: 0.3px; 
}

.cart-badge-compact.hidden { transform: scale(0); opacity: 0; }
.cart-badge-compact .divider { color: rgba(255, 255, 255, 0.7); margin: 0 6px; font-weight: 400; }
@keyframes badgePop { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }
.cart-badge-compact.pop { animation: badgePop 0.3s ease-out; }

.scroll-to-top { position: fixed; left: 20px; bottom: 20px; width: 60px; height: 60px; background: var(--primary-color); border: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(231,76,60,0.4); padding: 0; }
.scroll-to-top.visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover { transform: translateY(-3px); }
.scroll-to-top img { width: 30px; height: 30px; object-fit: contain; display: block; filter: brightness(0) invert(1); }
.product-badge-icon { position: absolute; top: 2px; right: 15px; width: 20px; height: 20px; z-index: 10; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15)); pointer-events: none; }

/* Подвал */
footer { background: #333; color: white; padding: 15px 0; margin-top: 20px; }
.footer-content { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 15px; }
.footer-column h3 { margin-bottom: clamp(15px, 3vw, 20px); font-size: clamp(16px, 3vw, 18px); }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: clamp(8px, 1.5vw, 10px); font-size: clamp(13px, 2.5vw, 14px); }
.footer-column a { color: #ccc; text-decoration: none; transition: var(--transition); }
.footer-column a:hover { color: var(--primary-color); }
.copyright { text-align: center; margin-top: 15px; padding-top: 15px; border-top: 1px solid #444; color: #ccc; font-size: clamp(12px, 2.5vw, 14px); line-height: 1.8; }

/* Адаптивность */
@media (max-width: 768px) {
    .slider-indicators { display: none !important; }
    .product-modal { top: auto !important; bottom: 0 !important; left: 0 !important; transform: translateY(100%); width: 100% !important; max-width: 100% !important; height: 85vh; max-height: 85vh; border-radius: 20px 20px 0 0; transition: transform 0.3s cubic-bezier(0.1, 0.7, 0.1, 1); }
    .product-modal.active { transform: translateY(0); }
    .product-modal.compact { height: auto !important; min-height: auto; }
    .product-modal.compact .modal-image-container { height: 250px; }
    .modal-image-container { height: 250px; flex-shrink: 0; }
    .modal-info { padding: 15px; }
    .modal-product-name { font-size: 20px; }
    .modal-price { font-size: 24px; }
    .modal-add-btn { font-size: 14px; min-width: 120px; height: 40px; }
    .modal-quantity { height: 40px; min-width: 120px; }
    .modal-quantity button { width: 40px; font-size: 18px; }
    .modal-quantity span { font-size: 16px; }
    .modal-sections { padding: 15px; }
    .modal-item-image { width: 80px; height: 80px; }
    .modal-item-name { font-size: 13px; }
    .modal-item-price-btn { font-size: 12px; } 
    .modal-item-choose-btn { font-size: 12px; }
    .sub-modal { width: 100%; max-width: 100%; bottom: 0; top: auto; left: 0; transform: translateY(100%); border-radius: 20px 20px 0 0; }
    .sub-modal.active { transform: translateY(0); }
    .sub-modal-image-container { height: 200px; }
    .sub-modal-info { padding: 15px; }
    .sub-modal-title { font-size: 20px; }
    .mobile-menu-btn { display: flex; }
    .nav-links { display: none; }
    .logo-image { height: 85px; }
    .logo { margin-left: 0; }
    .phone-icon { display: flex; order: 4; margin-right: 10px; width: 28px; height: 28px; }
    .phone-icon svg { width: 22px; height: 22px; }
    .page-section { padding: 20px 0; }
    .page-content { padding: 12px; margin: 0 8px; }
    .about-hero { margin-bottom: 15px; padding: 8px 0; }
    .cta-card { padding: 15px 12px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 90px !important; gap: 6px !important; padding: 0; }
    .category-tab { border-radius: 6px; }
    .category-tab.large[data-category="sets"], .category-tab.large[data-category="premium"] { grid-column: span 2; grid-row: span 2; }
    .category-tab.large:not([data-category="sets"]):not([data-category="premium"]) { grid-column: span 1; grid-row: span 1; }
    .category-name { padding: 6px 4px; font-size: 12px; }
    .category-tab[data-category="sets"], .category-tab[data-category="premium"] { grid-column: span 2; grid-row: span 2; }
    .category-tab[data-category="pizza"] { grid-column: span 2; grid-row: span 1.5; }
    .category-tab[data-category="baked"], .category-tab[data-category="classic"], .category-tab[data-category="hot"], .category-tab[data-category="drinks"], .category-tab[data-category="sauces"], .category-tab[data-category="snacks"] { grid-column: span 1; grid-row: span 1; }
    .menu-items { grid-template-columns: repeat(2, 1fr); gap: 3px; }
    .item-content { padding: 12px; gap: 8px; }
    .item-title { font-size: 14px; min-height: 2.2em; }
    .item-description { font-size: 12px; min-height: 3.6em; }
    .item-weight { font-size: 12px; }
    .item-price { font-size: clamp(18px, 3.5vw, 21px) !important; }
    .add-to-cart { padding: 12px 8px; font-size: 13px; height: 40px; min-width: 0; flex-shrink: 1; }
    .item-quantity-counter { height: 40px; }
    .item-quantity-counter button { width: 40px; font-size: 18px; }
    .item-quantity-counter .item-quantity-display { font-size: 16px; }
    .size-tab { padding: 5px 6px; font-size: 11px; min-width: 60px; }
    .cart-fab { width: 56px; height: 56px; bottom: 20px; right: 20px; }
    .promo-slider-section { padding: 10px 12px 8px !important; }
    .categories-section { padding: 0 0 15px !important; }
    .scroll-to-top { left: 20px; bottom: 20px; width: 56px; height: 56px; }
}

@media (max-width: 480px) {
    .container { padding: 0 8px; }
    .logo { margin-left: 0; }
    .logo-image { height: 60px; }
    .phone-icon { margin-right: 6px; width: 26px; height: 26px; }
    .phone-icon svg { width: 20px; height: 20px; }
    .categories-grid { gap: 4px !important; grid-auto-rows: 80px !important; }
    .category-name { font-size: 11px; padding: 2px 1px; }
    .menu-items { gap: 8px; }
    .item-content { padding: 8px; gap: 6px; }
    .item-title { font-size: 13px; min-height: 2em; }
    .item-description { font-size: 11px; min-height: 3.3em; }
    .item-weight { font-size: 12px; }
    .item-price { font-size: clamp(18px, 3.5vw, 21px) !important; }
    .add-to-cart { padding: 10px 6px; font-size: 12px; height: 38px; }
    .item-quantity-counter { height: 38px; }
    .item-quantity-counter button { width: 38px; font-size: 16px; }
    .item-quantity-counter .item-quantity-display { font-size: 15px; }
    .modal-quantity { height: 40px; min-width: 130px; }
    .modal-quantity button { width: 40px; font-size: 16px; }
    .modal-quantity span { font-size: 15px; }
    .modal-add-btn { height: 40px; padding: 0 16px; font-size: 13px; min-width: 130px; }
    .size-tab { font-size: 10px; padding: 4px 5px; min-width: 55px; border-radius: 30px; }
    .cart-fab { width: 50px; height: 50px; bottom: 20px; right: 15px; }
    .cart-badge-compact { bottom: calc(100% + 6px); font-size: 12px; height: 26px; padding: 0 10px; }
    .cart-badge-compact .divider { margin: 0 5px; }
    .mobile-nav-links a { font-size: clamp(13px, 3.5vw, 15px); padding: 14px 12px; }
    .mobile-nav-links a.long-nav-link { font-size: clamp(13px, 3.5vw, 15px); }
    .mobile-menu-section.social-promo { padding: 14px 10px; margin: 0px 12px 16px; }
    .social-promo-links { gap: 16px; }
    .social-promo-link { width: 65px; }
    .social-promo-icon-wrapper { width: 55px; height: 55px; }
    .social-promo-icon-wrapper img { width: 40px; height: 40px; }
    .categories-section { padding: 0 0 12px !important; }
    .promo-slider-section { padding: 8px 10px 6px !important; }
    .scroll-to-top { left: 15px; bottom: 20px; width: 50px; height: 50px; }
}

@media (min-width: 769px) { 
    .menu-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 340px)); justify-content: center; gap: 10px; max-width: 100%; } 
    .menu-item { width: 100%; max-width: 360px; margin: 0 auto; } 
    .nav-links { order: 3; margin-left: 0; }
    .add-to-cart { padding: 16px; font-size: 18px; height: 58px; } 
    .item-quantity-counter { height: 48px; } 
    .item-quantity-counter button { width: 48px; font-size: 20px; } 
    .item-quantity-counter .item-quantity-display { font-size: 18px; } 
}
/* Пропускаем расчет невидимых секций до момента скролла к ним */
.category-content {
    content-visibility: auto;
    contain-intrinsic-size: 1px 600px;
}