:root {
      --chocolate: #4B2E1E;
      --caramel: #CDA676;
      --milk-white: #FAF6F2;
      --light-caramel: #E8D4B9;
      --dark-brown: #3A2418;
      --gold: #D4AF37;
      --radius-lg: 20px;
      --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #E8C874 50%, #D4AF37 100%);
      --dark: var(--chocolate);
      --text-light: #5A5A5A;
    }

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

    html {
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
    }

    body {
      font-family: 'Inter', sans-serif;
      background-color: var(--milk-white);
      color: var(--chocolate);
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      touch-action: pan-y;
      overscroll-behavior-y: contain;
      background-image:
        radial-gradient(circle at 10% 20%, rgba(205, 166, 118, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(205, 166, 118, 0.1) 0%, transparent 20%);
    }

    h1,
    h2,
    h3,
    h4,
    h5 {
      font-family: 'Cormorant Garamond', serif;
      font-weight: 600;
    }

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

    header {
      background-color: transparent;
      color: var(--milk-white);
      position: fixed;
      width: 100%;
      height: 100px;
      z-index: 1000;
      -webkit-backdrop-filter: blur(2px);
      backdrop-filter: blur(2px);
      transition: background-color 0.4s ease, box-shadow 0.4s ease;
      will-change: background-color, box-shadow;
      contain: layout style;
      transform: translateZ(0);
      -webkit-transform: translateZ(0);
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }

    header.scrolled {
      background-color: rgba(75, 46, 30, 0.95);
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    }

    .header-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 100px;
      position: relative;
      max-width: none;
    }

    .logo {
      font-family: 'Cormorant Garamond', serif;
      font-size: 20px;
      font-weight: 700;
      color: var(--caramel);
      display: flex;
      flex-direction: column;
      line-height: 1;
      flex-shrink: 0;
    }

    .logo img.logo-img {
      display: block;
      height: 150px;
      width: auto;
      object-fit: contain;
      -webkit-filter: brightness(0) invert(1);
      filter: brightness(0) invert(1);
    }

    .header-right {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .btn-back-header {
      display: inline-block;
      background: transparent;
      padding: 0;
      border: none;
      text-decoration: none;
      line-height: 0;
    }

    .btn-back-header img.logout-img {
      width: 28px;
      height: 28px;
      display: block;
      -webkit-filter: brightness(0) invert(1);
      filter: brightness(0) invert(1);
      transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .btn-back-header:hover img.logout-img {
      transform: scale(1.05);
      opacity: 0.9;
    }

    .mobile-home-btn {
      display: none;
    }

    .cart-icon-container {
      flex-shrink: 0;
    }

    .cart-icon {
      position: relative;
      cursor: pointer;
      color: var(--milk-white);
      font-size: 24px;
      transition: color 0.3s;
      display: flex;
      align-items: center;
    }

    .cart-icon img.cart-img {
      width: 28px;
      height: 28px;
      object-fit: contain;
      display: inline-block;
      margin-right: 8px;
      vertical-align: middle;
      filter: brightness(0) invert(1);
    }

    .cart-icon:hover {
      color: var(--caramel);
    }

    .cart-count {
      position: absolute;
      top: -8px;
      right: -8px;
      background-color: var(--caramel);
      color: var(--milk-white);
      border-radius: 50%;
      width: 20px;
      height: 20px;
      font-size: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      transition: transform 0.3s;
    }

    .cart-count.pop {
      animation: pop 0.3s ease;
    }

    /* Плавающая кнопка корзины (FAB) */
    .cart-fab {
      position: fixed;
      right: 22px;
      bottom: 22px;
      width: 64px;
      height: 64px;
      border-radius: 50%;
      border: none;
      cursor: pointer;
      background: linear-gradient(135deg, var(--caramel), var(--gold));
      box-shadow: 0 12px 28px rgba(205, 166, 118, 0.45);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1500;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .cart-fab:hover {
      transform: translateY(-3px) scale(1.04);
      box-shadow: 0 16px 34px rgba(205, 166, 118, 0.6);
    }

    .cart-fab:active {
      transform: scale(0.95);
    }

    .cart-fab-img {
      width: 30px;
      height: 30px;
      object-fit: contain;
      filter: brightness(0) invert(1);
    }

    .cart-fab-count {
      position: absolute;
      top: 2px;
      right: 2px;
      min-width: 22px;
      height: 22px;
      padding: 0 5px;
      box-sizing: border-box;
      background: var(--chocolate);
      color: var(--milk-white);
      border: 2px solid var(--milk-white);
      border-radius: 999px;
      font-size: 11px;
      font-weight: 700;
      display: none;
      align-items: center;
      justify-content: center;
      transition: transform 0.3s;
    }

    .cart-fab-count.pop {
      animation: pop 0.3s ease;
    }

    /* Корзина теперь только как плавающая кнопка — старые иконки скрыты */
    .cart-icon-container {
      display: none;
    }

    #mobileCartIcon {
      display: none;
    }

    /* Адаптив плавающей кнопки корзины */
    @media (max-width: 640px) {
      .cart-fab {
        right: 16px;
        bottom: 16px;
        width: 56px;
        height: 56px;
      }

      .cart-fab-img {
        width: 26px;
        height: 26px;
      }

      .cart-fab-count {
        min-width: 20px;
        height: 20px;
        font-size: 10px;
      }
    }

    .lang-select {
      background: transparent;
      color: var(--milk-white);
      border: 1.5px solid rgba(255, 255, 255, 0.5);
      border-radius: 50px;
      padding: 6px 10px;
      font-size: 0.9rem;
      outline: none;
    }

    /* Мобильная языковая кнопка (пилюля) */
    .lang-select--mobile {
      display: none;
    }

    .lang-select option {
      background-color: #FAF6F2;
      color: var(--chocolate);
    }

    .lang-select option:checked {
      background-color: var(--caramel);
      color: var(--milk-white);
    }

    /* Нативные селекты скрыты — работают как «движок», UI рисует кастомный переключатель */
    #langSelect,
    #langSelectMobile {
      display: none !important;
    }

    /* Кастомный переключатель языка */
    .lang-switch {
      position: relative;
      display: inline-block;
    }

    .lang-switch--mobile {
      display: none;
    }

    .lang-switch-btn {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      height: 40px;
      padding: 0 14px;
      background: transparent;
      color: var(--milk-white);
      border: 1.5px solid rgba(255, 255, 255, 0.45);
      border-radius: 50px;
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.5px;
      cursor: pointer;
      transition: border-color 0.25s ease, background 0.25s ease;
    }

    .lang-switch-btn:hover,
    .lang-switch.open .lang-switch-btn {
      border-color: var(--caramel);
      background: rgba(205, 166, 118, 0.12);
    }

    .lang-switch-chevron {
      width: 13px;
      height: 13px;
      transition: transform 0.25s ease;
    }

    .lang-switch.open .lang-switch-chevron {
      transform: rotate(180deg);
    }

    .lang-switch-menu {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      min-width: 120px;
      list-style: none;
      margin: 0;
      padding: 6px;
      background: var(--milk-white);
      border: 1px solid rgba(205, 166, 118, 0.35);
      border-radius: 14px;
      box-shadow: 0 14px 34px rgba(43, 29, 21, 0.28);
      opacity: 0;
      transform: translateY(-6px) scale(0.98);
      transform-origin: top right;
      pointer-events: none;
      transition: opacity 0.18s ease, transform 0.18s ease;
      z-index: 1600;
    }

    .lang-switch.open .lang-switch-menu {
      opacity: 1;
      transform: translateY(0) scale(1);
      pointer-events: auto;
    }

    .lang-switch-menu li {
      display: flex;
      align-items: center;
      min-height: 42px;
      padding: 0 14px;
      border-radius: 9px;
      font-size: 0.9rem;
      font-weight: 600;
      letter-spacing: 0.5px;
      color: var(--chocolate);
      cursor: pointer;
      transition: background 0.15s ease, color 0.15s ease;
    }

    .lang-switch-menu li:hover {
      background: rgba(205, 166, 118, 0.18);
    }

    .lang-switch-menu li[aria-selected="true"] {
      background: var(--caramel);
      color: var(--milk-white);
    }

    @media (prefers-reduced-motion: reduce) {

      .lang-switch-menu,
      .lang-switch-chevron {
        transition: none;
      }
    }

    @media (max-width: 768px) {
      .lang-switch--mobile {
        display: inline-block;
        margin-left: auto;
        margin-right: 10px;
      }

      .lang-switch--mobile .lang-switch-btn {
        height: 34px;
        padding: 0 12px;
        font-size: 0.8rem;
      }
    }

    .mobile-menu-btn {
      display: none;
      background: none;
      border: none;
      color: var(--milk-white);
      font-size: 24px;
      cursor: pointer;
      z-index: 1001;
      width: 30px;
      height: 30px;
      position: relative;
    }

    .mobile-nav {
      position: fixed;
      top: 0;
      right: -100%;
      width: 80%;
      max-width: 300px;
      height: 100vh;
      background: var(--dark-brown);
      z-index: 1002;
      transition: right 0.4s ease;
      padding: 80px 30px 30px;
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .mobile-nav.active {
      right: 0;
    }

    .mobile-nav ul {
      list-style: none;
    }

    .mobile-nav li {
      margin-bottom: 20px;
    }

    .mobile-nav a {
      color: var(--milk-white);
      text-decoration: none;
      font-size: 1.05rem;
      display: flex;
      align-items: center;
      gap: 8px;
      line-height: 1;
      padding: 10px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      transition: all 0.3s;
    }

    .mobile-nav a img.logout-img {
      width: 22px;
      height: 22px;
      display: inline-block;
      vertical-align: middle;
      -webkit-filter: brightness(0) invert(1);
      filter: brightness(0) invert(1);
    }

    .mobile-nav a span {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .mobile-nav a:hover {
      color: var(--caramel);
      padding-left: 10px;
    }

    .mobile-nav .cart-icon {
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 20px;
      padding: 10px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      transition: all 0.3s;
    }

    .mobile-nav .cart-icon:hover {
      color: var(--caramel);
      padding-left: 10px;
    }

    .mobile-nav .cart-icon img.cart-img {
      width: 24px;
      height: 24px;
      filter: brightness(0) invert(1);
    }

    .mobile-nav .cart-count {
      position: relative;
      top: auto;
      right: auto;
      margin-left: auto;
    }

    .mobile-nav .cart-label {
      color: var(--milk-white);
      font-size: 1.2rem;
    }

    .mobile-menu-close {
      position: absolute;
      top: 20px;
      right: 20px;
      background: none;
      border: none;
      color: var(--milk-white);
      font-size: 28px;
      cursor: pointer;
    }

    .overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1001;
    }

    .overlay.active {
      display: block;
    }

    .cart-modal {
      position: fixed;
      top: 0;
      right: -450px;
      width: 450px;
      height: 100vh;
      background-color: var(--milk-white);
      box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
      z-index: 2000;
      transition: right 0.4s ease;
      display: flex;
      flex-direction: column;
    }

    .cart-modal.active {
      right: 0;
    }

    .cart-header {
      padding: 20px;
      border-bottom: 1px solid var(--light-caramel);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .cart-header h3 {
      margin: 0;
      color: var(--chocolate);
    }

    .close-cart {
      background: none;
      border: none;
      font-size: 24px;
      cursor: pointer;
      color: var(--chocolate);
      transition: color 0.3s;
    }

    .close-cart:hover {
      color: var(--caramel);
    }

    .cart-items {
      flex: 1;
      overflow-y: auto;
      padding: 20px;
    }

    .empty-cart {
      min-height: 260px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 12px;
      color: var(--chocolate);
      text-align: center;
      opacity: 0.8;
    }

    .empty-cart-icon img {
      width: 56px;
      height: 56px;
      opacity: 0.65;
    }

    .empty-cart-text {
      font-size: 1.05rem;
    }

    .cart-item {
      display: flex;
      margin-bottom: 16px;
      padding-bottom: 16px;
      border-bottom: 1px solid rgba(205, 166, 118, 0.35);
    }

    .cart-item-image {
      width: 80px;
      height: 80px;
      border-radius: 10px;
      overflow: hidden;
      margin-right: 15px;
      flex-shrink: 0;
    }

    .cart-item-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .cart-item-details {
      flex: 1;
    }

    .cart-item-title {
      font-weight: 600;
      margin-bottom: 5px;
      color: var(--chocolate);
    }

    .cart-item-price {
      color: var(--caramel);
      font-weight: 600;
      margin-bottom: 10px;
    }

    .cart-item-portion {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--chocolate);
      background: linear-gradient(90deg, rgba(205, 166, 118, 0.22) 0%, rgba(205, 166, 118, 0.1) 100%);
      border-left: 3px solid var(--caramel);
      padding: 6px 12px;
      margin-bottom: 8px;
      border-radius: 0 8px 8px 0;
      display: inline-block;
      box-shadow: 0 1px 3px rgba(205, 166, 118, 0.15);
    }

    .cart-item-controls {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .cart-summary-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
      font-size: 1.05rem;
      gap: 12px;
    }

    .cart-summary-row.total {
      font-weight: 700;
      font-size: 1.25rem;
      color: var(--chocolate);
      border-top: 1px solid rgba(205, 166, 118, 0.4);
      padding-top: 12px;
      margin-top: 8px;
      margin-bottom: 0;
    }

    .quantity-btn {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      border: 1px solid var(--caramel);
      background: none;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--caramel);
      transition: all 0.3s;
    }

    .quantity-btn:hover {
      background-color: var(--caramel);
      color: var(--milk-white);
    }

    .quantity-display {
      margin: 0 10px;
      font-weight: 600;
      min-width: 20px;
      text-align: center;
    }

    .remove-item {
      margin-left: auto;
      background: none;
      border: none;
      color: #999;
      cursor: pointer;
      font-size: 18px;
      transition: color 0.3s;
    }

    .remove-item:hover {
      color: var(--chocolate);
    }

    .cart-footer {
      padding: 16px 20px 20px;
      border-top: 1px solid rgba(205, 166, 118, 0.35);
    }

    .cart-total {
      display: block;
      margin-bottom: 14px;
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--chocolate);
    }

    .cart-actions {
      display: flex;
      gap: 10px;
    }

    .clear-cart {
      flex: 1;
      background: transparent;
      border: 1.5px solid var(--caramel);
      color: var(--chocolate);
      padding: 12px 16px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: 600;
      font-size: 0.95rem;
      letter-spacing: 0.02em;
      transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    }

    .clear-cart:hover {
      background: var(--caramel);
      color: var(--milk-white);
      border-color: var(--caramel);
    }

    .notification {
      position: fixed;
      top: 20px;
      right: 20px;
      background-color: var(--caramel);
      color: var(--milk-white);
      padding: 15px 20px;
      border-radius: 5px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      z-index: 3000;
      transform: translateX(150%);
      transition: transform 0.3s ease;
    }

    .notification.active {
      transform: translateX(0);
    }

    .keks-preloader {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #0f0c0a;
      z-index: 10000;
      transition: opacity 0.6s ease, visibility 0.6s;
    }

    .keks-inner {
      text-align: center;
      color: rgba(250, 246, 242, 0.95);
    }

    .keks-brand {
      font-family: 'Cormorant Garamond', serif;
      font-size: 72px;
      letter-spacing: 2px;
      margin: 0 0 6px;
      color: rgba(220, 220, 220, 0.95);
      font-weight: 700;
    }

    .keks-sub {
      font-family: 'Inter', sans-serif;
      font-size: 14px;
      color: rgba(220, 220, 220, 0.55);
      margin-bottom: 18px;
      letter-spacing: 4px;
    }

    .keks-dots {
      display: flex;
      gap: 10px;
      justify-content: center;
      align-items: center;
    }

    .keks-dots .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--caramel);
      opacity: 0.95;
      transform: translateY(0);
      animation: dot-pulse 1.2s infinite ease-in-out;
    }

    .keks-dots .dot:nth-child(1) {
      animation-delay: 0s;
    }

    .keks-dots .dot:nth-child(2) {
      animation-delay: 0.12s;
    }

    .keks-dots .dot:nth-child(3) {
      animation-delay: 0.24s;
    }

    @keyframes dot-pulse {
      0% {
        transform: translateY(0);
        opacity: 0.9;
      }

      50% {
        transform: translateY(-6px);
        opacity: 1;
      }

      100% {
        transform: translateY(0);
        opacity: 0.9;
      }
    }

    .keks-preloader.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .hero {
      height: 55vh;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }

    .hero-bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background:
        radial-gradient(circle at 20% 80%, rgba(205, 166, 118, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(205, 166, 118, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, var(--chocolate) 0%, var(--dark-brown) 100%);
      z-index: -1;
    }

    .hero-content {
      max-width: 800px;
      padding: 0 20px;
      text-align: center;
      color: var(--milk-white);
      z-index: 2;
    }

    .hero h1 {
      font-size: clamp(2.5rem, 6vw, 4rem);
      margin-bottom: 20px;
      text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    }

    .hero p {
      font-size: clamp(1.1rem, 3vw, 1.4rem);
      margin-bottom: 30px;
      opacity: 0.9;
    }

    .btn {
      display: inline-block;
      background: linear-gradient(135deg, var(--caramel), var(--gold));
      color: var(--milk-white);
      padding: 13px 32px;
      border-radius: 50px;
      text-decoration: none;
      font-weight: 600;
      transition: all 0.4s;
      border: none;
      box-shadow: 0 5px 15px rgba(205, 166, 118, 0.4);
      position: relative;
      overflow: hidden;
      cursor: pointer;
    }

    .btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
      transition: all 0.6s;
    }

    .btn:hover::before {
      left: 100%;
    }

    .btn:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 20px rgba(205, 166, 118, 0.6);
    }

    .btn-back {
      background: transparent;
      color: var(--milk-white);
      border: 1px solid rgba(255, 255, 255, 0.6);
      box-shadow: none;
    }

    .btn-back:hover {
      background: rgba(0, 0, 0, 0.2);
      box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
    }

    section {
      padding: 80px 0;
      position: relative;
    }

    .section-title {
      text-align: center;
      margin-bottom: 60px;
      position: relative;
    }

    .section-title h2 {
      font-size: clamp(2.2rem, 5vw, 3.5rem);
      display: inline-block;
      position: relative;
      margin-bottom: 20px;
    }

    .section-title h2::after {
      content: '';
      position: absolute;
      width: 100px;
      height: 3px;
      background: linear-gradient(90deg, transparent, var(--caramel), transparent);
      bottom: -15px;
      left: 50%;
      transform: translateX(-50%);
    }

    .section-title p {
      max-width: 600px;
      margin: 0 auto;
      font-size: 1.1rem;
      color: #666;
    }

    .menu {
      background: linear-gradient(135deg, var(--light-caramel) 0%, var(--milk-white) 100%);
      position: relative;
      overflow: hidden;
    }

    .menu::before {
      content: '';
      position: absolute;
      top: -50%;
      right: -10%;
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(205, 166, 118, 0.2) 0%, transparent 70%);
      border-radius: 50%;
      z-index: 0;
    }

    /* Верхний ряд — основные разделы в горизонтальном свайпе */
    .menu-sections {
      display: flex;
      justify-content: flex-start;
      margin-bottom: 35px;
      flex-wrap: nowrap;
      position: relative;
      z-index: 1;
      gap: 12px;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      /* scroll-snap-type: x mandatory; */
      padding: 10px 20px;
      margin-left: -20px;
      margin-right: -20px;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    .menu-sections::-webkit-scrollbar {
      display: none;
    }

    /* Подкатегории (второй ряд) — классические кнопки без обёртки */
    .menu-categories {
      display: flex;
      justify-content: center;
      margin: 0 auto 40px;
      flex-wrap: wrap;
      position: relative;
      z-index: 1;
      max-width: 1100px;
      column-gap: 12px;
      row-gap: 10px;
    }

    /* Стиль верхнего уровня (разделы) — яркие, компактные, для свайпа */
    .section-btn {
      border: none;
      padding: 12px 24px;
      margin: 0;
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.1rem;
      font-weight: 700;
      background: linear-gradient(135deg, rgba(205, 166, 118, 0.4), rgba(205, 166, 118, 0.5));
      color: #FFFFFF;
      cursor: pointer;
      transition: all 0.4s;
      border-radius: 50px;
      position: relative;
      overflow: hidden;
      z-index: 1;
      box-shadow: 0 8px 24px rgba(205, 166, 118, 0.25);
      letter-spacing: 0.03em;
      text-transform: uppercase;
      white-space: nowrap;
      flex-shrink: 0;
      scroll-snap-align: start;
      text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    }

    /* Стиль подкатегорий — тонкие, легкие, с бордером */
    .category-btn {
      border: 1.5px solid rgba(205, 166, 118, 0.7);
      padding: 9px 22px;
      margin: 0;
      font-family: 'Cormorant Garamond', serif;
      font-size: 1.05rem;
      font-weight: 500;
      color: var(--chocolate);
      background: transparent;
      cursor: pointer;
      transition: all 0.3s;
      border-radius: 50px;
      position: relative;
      overflow: hidden;
      z-index: 1;
      box-shadow: none;
    }

    .section-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
      transition: all 0.6s;
      z-index: -1;
    }

    .section-btn:hover {
      transform: translateY(-4px) scale(1.05);
      box-shadow: 0 12px 30px rgba(205, 166, 118, 0.6);
    }

    .section-btn:hover::before {
      left: 100%;
    }

    /* Активная секция — ярко выделена, компактный стиль для мобильных */
    .section-btn.active {
      transform: scale(1.02);
      box-shadow:
        0 0 0 2px #FFFFFF,
        0 0 0 4px var(--gold),
        0 8px 20px rgba(205, 166, 118, 0.7);
      background: linear-gradient(135deg, #D4A76A, #CDA676);
    }

    .category-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--light-caramel);
      opacity: 0;
      transition: opacity 0.3s;
      z-index: -1;
    }

    .category-btn:hover {
      color: var(--chocolate);
      border-color: var(--caramel);
      transform: translateY(-2px);
      box-shadow: 0 5px 12px rgba(205, 166, 118, 0.3);
    }

    .category-btn:hover::before {
      opacity: 1;
    }

    /* Активная подкатегория — полностью заливается карамельным цветом */
    .category-btn.active {
      background: linear-gradient(135deg, #CDA676, #D4A76A);
      color: #FFFFFF;
      border-color: transparent;
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(205, 166, 118, 0.5);
      font-weight: 600;
    }

    .category-btn.active::before {
      opacity: 0;
    }

    .menu-items {
      position: relative;
      z-index: 1;
      contain: layout style;
      transform: translateZ(0);
      -webkit-transform: translateZ(0);
    }

    .menu-group {
      margin-bottom: 40px;
    }

    .menu-group-title {
      font-size: 1.6rem;
      margin-bottom: 18px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .menu-group-title span.line {
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, var(--caramel), transparent);
    }

    .menu-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 28px;
      align-items: start;
      contain: layout style;
    }

    .menu-item {
      background-color: var(--milk-white);
      border-radius: 15px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      position: relative;
      contain: layout style paint;
      will-change: transform;
    }

    .menu-item:hover {
      transform: translateY(-8px);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    }

    .menu-item-image {
      height: 220px;
      overflow: hidden;
      position: relative;
    }

    .menu-item-image::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.25));
    }

    .menu-item-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
      will-change: transform;
    }

    .menu-item:hover .menu-item-image img {
      transform: scale(1.07);
    }

    /* Выпечка и позиции без фото — скрываем блок изображения */
    .menu-item--bakery .menu-item-image,
    .menu-item--no-image .menu-item-image {
      display: none;
    }

    /* Карточки без фото растягиваем по высоте ряда — пустота под контентом того же фона, без «дыры» */
    .menu-item--bakery,
    .menu-item--no-image {
      align-self: stretch;
      display: flex;
      flex-direction: column;
    }

    .menu-item--bakery .menu-item-content,
    .menu-item--no-image .menu-item-content {
      flex: 1;
      display: flex;
      flex-direction: column;
    }

    .menu-item--bakery .menu-item-actions,
    .menu-item--no-image .menu-item-actions {
      margin-top: auto;
    }

    /* Единое оформление карточек без фото */
    .menu-item--bakery,
    .menu-item--no-image {
      background: linear-gradient(180deg, #FFFDF9 0%, #FAF7F2 100%);
      border-radius: var(--radius-lg);
      border: 1px solid rgba(212, 175, 55, 0.15);
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.02);
    }

    .menu-item--bakery::before,
    .menu-item--no-image::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 4px;
      height: 100%;
      background: var(--gradient-gold);
      border-radius: var(--radius-lg) 0 0 var(--radius-lg);
      opacity: 0.8;
    }

    .menu-item--bakery:hover,
    .menu-item--no-image:hover {
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(212, 175, 55, 0.2);
      border-color: rgba(212, 175, 55, 0.25);
    }

    .menu-item--bakery .menu-item-content,
    .menu-item--no-image .menu-item-content {
      padding: 20px 22px 24px 24px;
    }

    .menu-item--bakery .menu-item-title,
    .menu-item--no-image .menu-item-title {
      margin-bottom: 12px;
      padding-bottom: 10px;
    }

    .menu-item--bakery .menu-item-title h3,
    .menu-item--no-image .menu-item-title h3 {
      font-size: 1.15rem;
    }

    .menu-item--bakery .menu-item-price,
    .menu-item--no-image .menu-item-price {
      font-size: 1rem;
    }

    .menu-item--bakery p,
    .menu-item--no-image p {
      font-size: 0.88rem;
      margin-bottom: 18px;
    }

    .menu-item-content {
      padding: 24px 24px 28px;
    }

    .menu-item-title {
      display: flex;
      justify-content: space-between;
      margin-bottom: 14px;
      padding-bottom: 12px;
      align-items: baseline;
      gap: 12px;
      border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }

    .menu-item-title h3 {
      font-family: 'Playfair Display', serif;
      font-size: 1.25rem;
      font-weight: 600;
      color: var(--chocolate);
    }

    .menu-item-price {
      color: var(--caramel);
      font-weight: 600;
      font-size: 1.05rem;
      white-space: nowrap;
    }

    .menu-item p {
      font-family: 'Inter', sans-serif;
      color: var(--text-light);
      line-height: 1.65;
      margin-bottom: 22px;
      font-size: 0.9rem;
    }

    .menu-item-meta {
      font-size: 0.85rem;
      color: #999;
      margin-bottom: 18px;
    }

    /* Заметный блок «В порции» (блинчики и т.п.) */
    .menu-item-portion {
      display: inline-block;
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--chocolate);
      background: rgba(205, 166, 118, 0.2);
      border-left: 3px solid var(--caramel);
      padding: 8px 14px;
      margin-bottom: 14px;
      border-radius: 0 8px 8px 0;
    }

    /* Ряд действий: плюс слева, размеры справа */
    .menu-item-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin-top: 18px;
    }

    .menu-item-actions .menu-item-order {
      margin-top: 0;
      flex: 0 0 auto;
    }

    /* Селектор размера для пиццы */
    .size-selector {
      display: inline-flex;
      gap: 8px;
      margin: 6px 0 10px auto;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .menu-item-actions .size-selector {
      flex: 1 1 auto;
    }

    @media (max-width: 380px) {
      .size-option {
        padding: 3px 8px;
        font-size: 0.8rem;
      }
    }

    .size-option {
      padding: 4px 10px;
      border-radius: 999px;
      border: 1.5px solid rgba(205, 166, 118, 0.7);
      color: var(--chocolate);
      background: rgba(205, 166, 118, 0.12);
      font-size: 0.85rem;
      line-height: 1.1;
      cursor: pointer;
      transition: all 0.25s ease;
      -webkit-user-select: none;
      user-select: none;
    }

    .size-option:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 12px rgba(205, 166, 118, 0.25);
      border-color: var(--caramel);
    }

    .size-option.active {
      background: var(--caramel);
      color: #fff;
      border-color: var(--caramel);
      box-shadow: 0 8px 18px rgba(205, 166, 118, 0.35);
    }

    .menu-item-order {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-top: 8px;
    }

    .menu-item-order-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--caramel);
      color: var(--milk-white);
      width: 34px;
      height: 34px;
      border-radius: 50%;
      border: 2px solid var(--caramel);
      cursor: pointer;
      font-weight: 600;
      font-size: 18px;
      line-height: 1;
      transition: all 0.25s;
    }

    .menu-item-order-btn:hover {
      background: transparent;
      color: var(--caramel);
      transform: translateY(-2px);
      box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
    }

    .menu-item-order-qty {
      min-width: 16px;
      text-align: center;
      font-weight: 600;
      color: var(--chocolate);
    }

    .menu-item-order-controls {
      display: none;
      align-items: center;
      gap: 10px;
    }

    .menu-item-order.active .menu-item-order-controls {
      display: inline-flex;
    }

    .menu-item-order.active .menu-item-order-btn.single {
      display: none;
    }

    .copyright {
      background: linear-gradient(135deg, var(--chocolate) 0%, var(--dark-brown) 100%);
      color: var(--milk-white);
      text-align: center;
      padding-top: 20px;
      height: 60px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      font-size: 0.9rem;
      color: rgba(255, 255, 255, 0.7);
    }

    .copyright a {
      color: var(--caramel);
      text-decoration: none;
      transition: opacity 0.3s;
    }

    .copyright a:hover {
      opacity: 0.8;
    }

    /* На мобильных показываем контролы заказа */
    @media (max-width: 767px) {
      .menu-item-order {
        display: inline-flex;
      }
    }

    @keyframes pop {
      0% {
        transform: scale(1);
      }

      30% {
        transform: scale(1.45);
      }

      55% {
        transform: scale(0.85);
      }

      78% {
        transform: scale(1.15);
      }

      100% {
        transform: scale(1);
      }
    }

    /* На десктопе и планшетах центрируем кнопки разделов */
    @media (min-width: 768px) {
      .menu-sections {
        justify-content: center;
        overflow-x: visible;
        margin-left: 0;
        margin-right: 0;
        padding: 10px 0;
      }
    }

    @media (max-width: 1200px) {
      .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      }
    }

    @media (max-width: 768px) {
      .hero {
        height: 55vh;
        /* Немного уменьшим высоту хедера на планшетах */
      }

      /* Для планшетов разрешаем 2 колонки, но делаем их компактнее */
      .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        /* Уменьшаем отступы между карточками */
      }

      /* Компактный вид карточки для планшетов и мобильных */
      .menu-item-image {
        height: 180px;
      }

      .menu-item-content {
        padding: 12px;
        /* Уменьшаем отступы внутри */
      }

      .menu-item-title h3 {
        font-size: 1rem;
        /* Меньше шрифт заголовка */
        line-height: 1.2;
      }

      .menu-item-price {
        font-size: 1rem;
      }

      .menu-item p {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 8px;
        /* Ограничиваем описание 2-3 строками при желании, но пока просто уменьшим */
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

      .menu-item-actions {
        margin-top: 5px;
        gap: 8px;
      }

      .menu-item-order-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
      }
    }

    /* Главный мобильный брейкпоинт: 480px (от него зависят 375, 425 и уже) */
    @media (max-width: 480px) {
      .menu-grid {
        grid-template-columns: 1fr;
        padding: 0;
      }

      .menu-item-image {
        height: 210px;
      }

      .cart-modal {
        width: 90%;
        max-width: 400px;
        right: -100%;
        border-radius: 20px 0 0 20px;
        height: 95vh;
        top: 50%;
        transform: translateY(-50%);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
      }

      .cart-modal.active {
        right: 0;
      }

      /* Итоги в корзине: подпись и сумма в две строки, чтобы не обрезались */
      .cart-summary-row {
        flex-wrap: wrap;
        gap: 2px 12px;
      }

      .cart-summary-row span:first-child {
        width: 100%;
      }

      .cart-summary-row span:last-child {
        width: 100%;
        flex-shrink: 0;
        text-align: right;
      }
    }

    /* Ещё уже (320px): меньше боковые отступы */
    @media (max-width: 360px) {
      .container {
        padding-left: 12px;
        padding-right: 12px;
      }

      .menu-grid {
        gap: 20px;
      }
    }

    @media (max-width: 767px) {
      header {
        height: 70px;
      }

      .header-container {
        position: relative;
        height: 70px;
      }

      .header-right {
        display: none;
      }

      .logo {
        position: static;
        bottom: auto;
      }

      .logo img.logo-img {
        height: 76px;
      }

      .lang-select--mobile {
        display: inline-block;
        position: static;
        margin-left: auto;
        margin-right: 10px;
        padding: 4px 9px;
        font-size: 0.75rem;
        height: 28px;
        line-height: 28px;
        border: 1.5px solid rgba(255, 255, 255, 0.45);
        border-radius: 24px;
        color: var(--milk-white);
        background: rgba(255, 255, 255, 0.06);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
      }

      .mobile-menu-btn {
        display: inline-flex;
        position: static;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        font-size: 22px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 8px;
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        transition: background 0.2s, transform 0.15s;
        flex-shrink: 0;
      }

      .mobile-menu-btn:active {
        transform: scale(0.95);
      }

      .mobile-home-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 8px;
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        transition: background 0.2s, transform 0.15s;
        flex-shrink: 0;
      }

      .mobile-home-btn:active {
        transform: scale(0.95);
      }

      .mobile-home-btn img.logout-img {
        width: 22px;
        height: 22px;
        filter: brightness(0) invert(1);
      }
    }

    @media (max-width: 480px) {
      section {
        padding: 60px 0;
      }

      .menu-categories {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
      }

      .category-btn {
        width: auto;
        margin-bottom: 0;
        padding: 6px 14px;
        font-size: 0.9rem;
        background: rgba(205, 166, 118, 0.1);
        border-width: 1px;
      }
    }

    /* Элегантные новогодние эффекты */
    .snow-container {
      display: none;
      /* Отключено для оптимизации */
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 9999;
      overflow: hidden;
    }

    .snowflake {
      position: absolute;
      color: rgba(255, 255, 255, 0.4);
      font-size: 1.2em;
      font-family: Arial, sans-serif;
      animation: snow-fall linear infinite;
      -webkit-user-select: none;
      user-select: none;
      opacity: 0.6;
    }

    @keyframes snow-fall {
      0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 0;
      }

      10% {
        opacity: 0.6;
      }

      90% {
        opacity: 0.6;
      }

      100% {
        transform: translateY(110vh) translateX(20px) rotate(360deg);
        opacity: 0;
      }
    }

    /* Оформление временно недоступных блюд (стоп-лист) */
    .menu-item--unavailable {
      opacity: 0.65;
    }

    .menu-item-unavailable-badge {
      display: inline-block;
      font-size: 0.85rem;
      font-weight: 700;
      color: #9a6b43;
      background: #fdf2e9;
      border: 1px solid #f5d6c6;
      padding: 6px 14px;
      border-radius: 50px;
      text-transform: uppercase;
      letter-spacing: 0.02em;
    }

    .promo-badge {
      position: absolute;
      top: 15px;
      left: 15px;
      background: linear-gradient(135deg, var(--caramel), #D4A76A);
      color: #FFFFFF;
      padding: 6px 12px;
      border-radius: 50px;
      font-size: 0.8rem;
      font-weight: 700;
      z-index: 10;
      box-shadow: 0 4px 10px rgba(205, 166, 118, 0.4);
      text-transform: uppercase;
      letter-spacing: 0.03em;
    }

    .promo-badge--static {
      position: static;
      display: inline-block;
      margin-bottom: 10px;
    }

    .menu-item-price-container {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 2px;
      line-height: 1.1;
    }

    .menu-item-price--old {
      font-size: 0.85rem;
      color: #999;
      text-decoration: line-through;
      font-weight: 500;
    }

    .menu-item-price--promo {
      font-size: 1.1rem;
      color: var(--chocolate);
      font-weight: 700;
    }

    /* Модальное окно деталей блюда */
    .dish-detail-modal {
      position: fixed;
      inset: 0;
      background: rgba(43, 29, 21, 0.4);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 2100;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s ease, visibility 0.3s ease;
      padding: 20px;
    }

    .dish-detail-modal.active {
      opacity: 1;
      visibility: visible;
    }

    .dish-detail-content {
      background: var(--milk-white);
      border-radius: 24px;
      width: 100%;
      max-width: 600px;
      position: relative;
      box-shadow: 0 25px 50px -12px rgba(75, 46, 30, 0.25);
      border: 1px solid rgba(205, 166, 118, 0.2);
      transform: scale(0.95);
      transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
      overflow: hidden;
    }

    .dish-detail-modal.active .dish-detail-content {
      transform: scale(1);
    }

    .close-detail {
      position: absolute;
      top: 15px;
      right: 15px;
      background: rgba(255, 255, 255, 0.85);
      border: 1px solid rgba(205, 166, 118, 0.3);
      width: 36px;
      height: 36px;
      border-radius: 50%;
      font-size: 20px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--chocolate);
      transition: all 0.3s ease;
      z-index: 10;
    }

    .close-detail:hover {
      background: var(--caramel);
      color: var(--milk-white);
      transform: rotate(90deg);
    }

    .dish-detail-body {
      display: flex;
      flex-direction: column;
    }

    .detail-img-container {
      width: 100%;
      height: 320px;
      overflow: hidden;
      position: relative;
    }

    .detail-img-container img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .detail-info {
      padding: 30px;
    }

    .detail-title-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 15px;
      margin-bottom: 15px;
      border-bottom: 1.5px solid rgba(212, 175, 55, 0.2);
      padding-bottom: 15px;
    }

    .detail-title-row h2 {
      font-family: 'Playfair Display', serif;
      font-size: 1.8rem;
      color: var(--chocolate);
      font-weight: 700;
    }

    .detail-price {
      font-family: 'Outfit', sans-serif;
      font-size: 1.4rem;
      color: var(--caramel);
      font-weight: 700;
      white-space: nowrap;
    }

    .detail-desc {
      color: var(--text-light);
      line-height: 1.7;
      font-size: 1rem;
      margin-bottom: 25px;
    }

    .detail-footer-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      border-top: 1px solid rgba(205, 166, 118, 0.15);
      padding-top: 20px;
    }

    .detail-btn-add {
      background: linear-gradient(135deg, var(--caramel), var(--gold));
      color: var(--milk-white);
      padding: 12px 28px;
      border-radius: 50px;
      font-weight: 600;
      font-size: 1rem;
      border: none;
      cursor: pointer;
      box-shadow: 0 6px 18px rgba(205, 166, 118, 0.35);
      transition: all 0.3s ease;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-left: auto;
    }

    .detail-btn-add:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 24px rgba(205, 166, 118, 0.5);
    }

    .detail-btn-add .plus-icon {
      font-size: 1.25rem;
      font-weight: 700;
      line-height: 1;
    }

    /* Адаптив модалки деталей блюда (планшеты и телефоны) */
    @media (max-width: 768px) {
      .dish-detail-modal {
        padding: 12px;
      }

      .dish-detail-content {
        max-width: 460px;
        border-radius: 18px;
        max-height: 92vh;
        overflow: hidden auto;
      }

      .close-detail {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 18px;
      }

      .detail-img-container {
        height: 200px;
      }

      .detail-info {
        padding: 20px;
      }

      .detail-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
      }

      .detail-title-row h2 {
        font-size: 1.4rem;
      }

      .detail-price {
        font-size: 1.2rem;
      }

      .detail-desc {
        font-size: 0.95rem;
        margin-bottom: 20px;
      }

      .detail-footer-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
      }

      .detail-btn-add {
        width: 100%;
        justify-content: center;
        margin-left: 0;
      }
    }

    /* Анимация staggered появления карточек */
    .fade-slide-in {
      opacity: 0;
      transform: translateY(20px);
      animation: fade-slide-in-key 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    @keyframes fade-slide-in-key {
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
