/* ============================================================
   AURA — FINE DINING  |  Restaurant menu stylesheet
   Premium deep-green palette, elegant serif titles, white cards.
   Fully responsive: Desktop / Tablet / Mobile.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root{
  --green-900:#1f4430;
  --green-800:#265338;
  --green-700:#2d5a3d;
  --green-600:#367048;
  --green-500:#4a8a5d;
  --green-100:#e8f0ea;

  --cream:#f9f6ef;
  --white:#ffffff;
  --paper:#fbfaf6;

  --ink-900:#14231a;
  --ink-700:#2a3a30;
  --ink-500:#5d6b61;
  --ink-400:#8a958c;
  --ink-300:#b8bfb9;

  --gold:#c8a96a;

  --radius-xs:8px;
  --radius-sm:12px;
  --radius-md:16px;
  --radius-lg:22px;
  --radius-pill:999px;

  --shadow-card:0 6px 24px rgba(16,40,26,.08), 0 1px 2px rgba(16,40,26,.04);
  --shadow-float:0 20px 60px rgba(10,30,18,.18);
  --shadow-btn:0 6px 18px rgba(54,112,72,.35);

  --ease:cubic-bezier(.22,.61,.36,1);

  --font-serif:'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans:'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --sidebar-w:240px;
  --cart-w:360px;
}

/* ---------- Reset ---------- */
*,*::before,*::after{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family:var(--font-sans);
  color:var(--ink-900);
  background:var(--green-700);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  min-height:100vh;
  overflow-x:hidden;
}
button{font-family:inherit;border:none;background:none;cursor:pointer;color:inherit;}
img{display:block;max-width:100%;}
a{color:inherit;text-decoration:none;}

.pwa-offline-banner{
  position:fixed;
  left:50%;
  bottom:14px;
  z-index:1000;
  transform:translate(-50%, 18px);
  opacity:0;
  pointer-events:none;
  padding:9px 14px;
  border-radius:999px;
  background:#14231a;
  color:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,.24);
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  transition:opacity .2s var(--ease), transform .2s var(--ease);
}
.pwa-offline-banner.is-visible{
  opacity:1;
  transform:translate(-50%, 0);
}

/* ---------- App shell ---------- */
.app{
  display:grid;
  grid-template-columns:var(--sidebar-w) 1fr;
  grid-template-rows:100vh;
  height:100vh;
  overflow:hidden;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar{
  background:var(--white);
  height:calc(100vh - 20px);
  overflow:hidden;
  z-index:5;
  display:flex;
  flex-direction:column;
  position:sticky;
  top:0;
  align-self:start;
  margin:10px;
}
.sidebar-inner{
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
  padding:34px 10px 0;
  overflow:hidden;
}

/* Logo */
.logo{
  text-align:center;
  margin-bottom:28px;
  display:block;
  flex-shrink:0;
}
.logo-word{
  font-family:var(--font-serif);
  font-weight:500;
  font-size:30px;
  letter-spacing:.22em;
  color:var(--ink-900);
  line-height:1;
}
.logo-sub{
  font-family:var(--font-sans);
  font-size:9px;
  letter-spacing:.32em;
  color:var(--ink-500);
  margin-top:6px;
  font-weight:400;
}

/* Nav decorative sign */
.nav-sign{
  display:flex;justify-content:center;
  color:var(--ink-300);
  margin-bottom:22px;
  opacity:.8;
  flex-shrink:0;
}
.nav-sign svg{width:42px;height:14px;}

/* Cat bar / flourish (desktop passthrough) */
.cat-flourish{display:none;}


.nav{
  display:flex;
  flex-direction:column;
  gap:4px;
  flex:1 1 0;
  min-height:0;
  height:100%;
  overflow-y:auto;
  overflow-x:hidden;
  scroll-behavior:smooth;
  padding-bottom:10px;
  /* Тонкий скроллбар */
  scrollbar-width:thin;
  scrollbar-color:rgba(45,90,61,.3) transparent;
}
.nav::-webkit-scrollbar{ width:4px; }
.nav::-webkit-scrollbar-track{ background:transparent; }
.nav::-webkit-scrollbar-thumb{
  background:rgba(45,90,61,.3);
  border-radius:4px;
}
.nav::-webkit-scrollbar-thumb:hover{
  background:rgba(45,90,61,.6);
}
.nav-item{
  display:flex;
  align-items:center;
  gap:14px;
  padding:13px 16px;
  border-radius:var(--radius-sm);
  color:var(--ink-700);
  font-size:14.5px;
  font-weight:500;
  text-align:left;
  transition:background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
  position:relative;
}
.nav-item:hover{ background:var(--green-100); color:var(--green-800); }
.nav-item .nav-icon{
  width:20px;height:20px;
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--ink-500);
  transition:color .25s var(--ease);
}
.nav-item .nav-icon svg{width:100%;height:100%;}
.nav-item:hover .nav-icon{ color:var(--green-700); }

.nav-item.is-active{
  background:var(--green-700);
  color:var(--white);
}
.nav-item.is-active .nav-icon{ color:var(--white); }

/* Hours */
.hours{
  margin-top:auto;
  padding-top:16px;
  padding-bottom:4px;
  color:var(--ink-500);
  flex-shrink:0;
  border-top:1px solid var(--green-100);
}
.hours-sign{
  display:flex;justify-content:center;
  color:var(--ink-300);
  margin-bottom:12px;
  opacity:.8;
}
.hours-sign svg{width:42px;height:14px;}
.hours-row{
  display:flex;align-items:center;gap:10px;
  padding-left:4px;
}
.hours-icon{
  width:22px;height:22px;
  display:inline-flex;align-items:center;justify-content:center;
  color:var(--ink-400);
}
.hours-icon svg{width:100%;height:100%;}
.hours-label{font-size:13px;color:var(--ink-700);font-weight:500;}
.hours-time{font-size:12.5px;color:var(--ink-400);margin-top:2px;}
.hours > img{
  display:block;
  width:22px;
  height:22px;
  object-fit:contain;
  margin:0 auto 4px;
  opacity:.5;
}

/* Кнопка "Ознакомление" в сайдбаре */
.nav-item--info{
  margin-top:8px;
  border-top:1px solid var(--green-100);
  padding-top:16px;
  color:var(--ink-500);
}
.nav-item--info .nav-icon{ color:var(--ink-400); }
.nav-item--info:hover{ background:var(--green-100); color:var(--green-800); }
.nav-item--info:hover .nav-icon{ color:var(--green-600); }

/* ============================================================
   MAIN AREA
   ============================================================ */
.main{
  position:relative;
  background:var(--green-700);
  overflow-y:auto;
  overflow-x:hidden;
  height:100vh;
  min-width:0;
  scroll-behavior:smooth;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.2) transparent;
}
.main::-webkit-scrollbar{width:5px;}
.main::-webkit-scrollbar-thumb{background:rgba(255,255,255,.2);border-radius:3px;}

/* Decorative herbs pattern */
.herbs{
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.09;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400' fill='none' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'><path d='M42 28 L42 52 M46 28 L46 52 M50 28 L50 52 M54 28 L54 52 M42 52 Q44 62 48 64 Q52 62 54 52 M48 64 L48 115'/><path d='M72 28 L76 28 L76 72 Q74 78 72 76 L72 28'/><line x1='74' y1='76' x2='74' y2='115'/><ellipse cx='335' cy='42' rx='10' ry='14'/><line x1='335' y1='56' x2='335' y2='115'/><path d='M256 30 C 246 45 252 70 270 78 C 288 70 294 45 284 30 Z'/><line x1='270' y1='78' x2='270' y2='118'/><line x1='259' y1='118' x2='281' y2='118'/><path d='M160 145 C 170 133 183 141 176 153 C 167 165 155 157 160 145 Z'/><line x1='168' y1='145' x2='162' y2='157'/><path d='M155 200 Q175 185 202 188 Q226 191 243 200 Q226 209 202 212 Q175 215 155 200 Z'/><path d='M243 200 L261 190 L259 200 L261 210 Z'/><circle cx='178' cy='198' r='2.5'/><path d='M94 175 C 104 163 117 171 111 183 C 103 195 90 187 94 175 Z'/><line x1='102' y1='175' x2='96' y2='187'/><path d='M22 295 Q22 258 85 255 Q148 258 148 295'/><line x1='15' y1='296' x2='155' y2='296'/><line x1='85' y1='255' x2='85' y2='244'/><circle cx='85' cy='241' r='4'/><path d='M290 365 L293 338 Q295 322 315 320 Q335 322 337 338 L340 365 Z'/><path d='M305 322 Q302 311 307 306 Q313 300 320 306 Q326 312 323 322'/><line x1='315' y1='304' x2='315' y2='296'/><path d='M344 280 C 355 268 367 276 361 288 C 353 300 341 292 344 280 Z'/><line x1='352' y1='280' x2='346' y2='292'/><line x1='310' y1='195' x2='310' y2='213'/><line x1='301' y1='204' x2='319' y2='204'/><line x1='304' y1='198' x2='316' y2='210'/><line x1='316' y1='198' x2='304' y2='210'/><circle cx='130' cy='60' r='5'/><circle cx='143' cy='52' r='5'/><path d='M130 55 Q134 46 143 47'/><line x1='137' y1='46' x2='137' y2='36'/><path d='M170 340 Q172 322 190 320 Q208 318 210 322 Q218 326 216 340 Q208 355 190 355 Q172 353 170 340 Z'/><path d='M176 326 Q183 320 191 322 Q199 324 204 322'/><circle cx='28' cy='168' r='36'/><circle cx='28' cy='168' r='27'/><path d='M20 160 Q28 154 36 160 Q41 168 36 176 Q28 181 20 176 Q15 168 20 160 Z'/><circle cx='378' cy='118' r='32'/><circle cx='378' cy='118' r='24'/><path d='M370 110 Q378 105 386 110 Q391 118 386 126 Q378 131 370 126 Q365 118 370 110 Z'/><circle cx='198' cy='352' r='30'/><circle cx='198' cy='352' r='22'/><path d='M190 344 Q198 339 206 344 Q211 352 206 360 Q198 365 190 360 Q185 352 190 344 Z'/></svg>");
  background-repeat:repeat;
  background-size:440px 440px;
}

.main-inner{
  position:relative;
  padding:48px 46px 60px;
  max-width:1500px;
  margin:0 auto;
}

/* Header row */
.main-head{
  display:flex;
  align-items:center;
  gap:20px;
  margin-bottom:32px;
}
.main-head-right{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
  margin-left:auto;
}

/* Поисковая строка в хедере */
.head-search{
  width:280px;
}
.head-search .search-input{
  width:100%;
  padding:11px 40px 11px 42px;
  background:rgba(255,255,255,.1);
  border:1.5px solid rgba(255,255,255,.14);
  border-radius:var(--radius-pill);
  color:var(--white);
  font-family:var(--font-sans);
  font-size:16px;
  outline:none;
  transition:background .25s var(--ease), border-color .25s var(--ease);
}
.head-search .search-input::placeholder{color:rgba(255,255,255,.4);}
.head-search .search-input:focus{
  background:rgba(255,255,255,.15);
  border-color:rgba(255,255,255,.32);
}
.head-search .search-input::-webkit-search-cancel-button{display:none;}
.head-search .search-box{position:relative;display:flex;align-items:center;}
.head-search .search-icon{
  position:absolute;left:14px;
  width:17px;height:17px;
  color:rgba(255,255,255,.45);
  pointer-events:none;
  display:inline-flex;align-items:center;justify-content:center;
}
.head-search .search-icon svg{width:100%;height:100%;}
.head-search .search-clear{
  position:absolute;right:12px;
  width:22px;height:22px;
  color:rgba(255,255,255,.45);
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;
  transition:background .2s var(--ease), color .2s var(--ease);
}
.head-search .search-clear:hover{background:rgba(255,255,255,.12);color:var(--white);}
.head-search .search-clear svg{width:14px;height:14px;}
.title-block{flex:1;}
.title{
  font-family:var(--font-serif);
  font-style:italic;
  font-weight:400;
  font-size:clamp(48px, 6vw, 76px);
  color:var(--white);
  margin:0;
  letter-spacing:-.01em;
  line-height:1;
}
.title-flourish{
  display:flex;
  align-items:center;
  gap:10px;
  margin:14px 0 12px;
  color:rgba(255,255,255,.45);
  max-width:220px;
}
.title-flourish img{
  display:block;
  height:22px;
  width:auto;
  max-width:46px;
  object-fit:contain;
  flex-shrink:0;
  opacity:.8;
}
.title-flourish hr{
  flex:1;
  border:none;
  border-top:1px solid rgba(255,255,255,.35);
  margin:0;
}
.subtitle{
  margin:0;
  color:rgba(255,255,255,.75);
  font-size:14px;
  font-weight:300;
  letter-spacing:.01em;
}

/* Cart pill (desktop header) */
.cart-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:12px 14px 12px 14px;
  background:var(--white);
  border-radius:var(--radius-pill);
  color:var(--ink-900);
  font-weight:500;
  font-size:14px;
  box-shadow:var(--shadow-card);
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
  align-self:flex-start;
  
}
.cart-pill:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(10,30,18,.18);}
.cart-pill-icon{
  width:18px;height:18px;color:var(--ink-700);
  display:inline-flex;align-items:center;justify-content:center;
}
.cart-pill-icon svg{width:100%;height:100%;}
.cart-pill-badge{
  display:inline-flex;
  align-items:center;justify-content:center;
  min-width:24px;height:24px;
  padding:0 7px;
  background:var(--green-700);
  color:var(--white);
  border-radius:var(--radius-pill);
  font-size:12px;
  font-weight:600;
}

/* ============================================================
   GRID of dishes
   ============================================================ */
.grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:26px;
}

/* Category section headers (all-view) */
.grid--sections{
  display:flex;
  flex-direction:column;
  gap:44px;
}
.dish-section-head{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:20px;
}
.dish-section-line{
  flex:1;
  height:1px;
  background:rgba(255,255,255,.18);
}
.dish-section-title{
  font-family:var(--font-serif);
  font-style:italic;
  font-weight:300;
  font-size:22px;
  color:rgba(255,255,255,.75);
  margin:0;
  white-space:nowrap;
  letter-spacing:.06em;
}
.dish-section-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
}

/* Card */
.card{
  background:var(--white);
  border-radius:var(--radius-md);
  overflow:hidden;
  box-shadow:var(--shadow-card);
  display:flex;
  flex-direction:column;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
  animation:cardIn .55s var(--ease) both;
}
@keyframes cardIn{
  from{opacity:0;transform:translateY(14px);}
  to{opacity:1;transform:translateY(0);}
}
.card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 40px rgba(10,30,18,.18);
}
.card-media{
  width:100%;
  height:190px;
  flex-shrink:0;
  overflow:hidden;
  background:#eee;
}
.card-media img{
  width:100%;height:100%;object-fit:cover;
  transition:transform .6s var(--ease);
}
.card-media picture{
  display:block;
  width:100%;
  height:100%;
}
.card:hover .card-media img{transform:scale(1.05);}

.card-body{
  padding:18px 20px 20px;
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
}
.card-name{
  font-family:var(--font-serif);
  font-weight:500;
  font-size:22px;
  color:var(--ink-900);
  margin:0;
  line-height:1.15;
}
.card-desc{
  color:var(--ink-500);
  font-size:12.5px;
  line-height:1.5;
  margin:0;
  font-weight:300;
  flex:1;
}
.card-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:10px;
}
/* Правая часть: "Подробнее" + кнопка/контрол */
.card-foot-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:0;
}
.card-price{
  font-family:var(--font-serif);
  font-size:20px;
  font-weight:500;
  color:var(--ink-900);
}
.card-price em{font-style:normal;font-size:14px;color:var(--ink-500);margin-left:2px;font-family:var(--font-sans);font-weight:400;}

.card-add{
  width:40px;height:40px;
  border-radius:50%;
  background:var(--green-700);
  color:var(--white);
  display:inline-flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow-btn);
  transition:transform .22s var(--ease), background .22s var(--ease);
}
.card-add:hover{background:var(--green-600);transform:scale(1.08);}
.card-add:active{transform:scale(.94);}
.card-add svg{width:18px;height:18px;}

/* ============================================================
   CART PANEL
   ============================================================ */
.cart-overlay{
  position:fixed;inset:0;
  background:rgba(10,25,16,.35);
  backdrop-filter:blur(2px);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s var(--ease);
  z-index:40;
}
.cart-overlay.is-open{opacity:1;pointer-events:auto;}

.cart-panel{
  position:fixed;
  top:0;right:0;
  height:100vh;
  width:var(--cart-w);
  max-width:92vw;
  background:var(--white);
  box-shadow:var(--shadow-float);
  transform:translateX(100%);
  transition:transform .45s var(--ease);
  z-index:50;
  display:flex;
  flex-direction:column;
  border-top-left-radius:24px;
  border-bottom-left-radius:24px;
}
.cart-panel.is-open{transform:translateX(0);}

.cart-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:28px 28px 18px;
}
.cart-title{
  font-family:var(--font-serif);
  font-style:italic;
  font-weight:400;
  font-size:32px;
  margin:0;
  color:var(--ink-900);
}
.cart-close{
  width:36px;height:36px;
  border-radius:10px;
  color:var(--ink-500);
  display:inline-flex;align-items:center;justify-content:center;
  transition:background .2s var(--ease), color .2s var(--ease);
}
.cart-close:hover{background:var(--green-100);color:var(--green-800);}
.cart-close svg{width:20px;height:20px;}

.cart-body{
  flex:1;
  overflow-y:auto;
  padding:4px 28px 12px;
  display:flex;
  flex-direction:column;
  gap:18px;
  scrollbar-width:thin;
  scrollbar-color:var(--ink-300) transparent;
}
.cart-body::-webkit-scrollbar{width:6px;}
.cart-body::-webkit-scrollbar-thumb{background:var(--ink-300);border-radius:3px;}

.cart-item{
  display:grid;
  grid-template-columns:56px 1fr auto;
  gap:14px;
  align-items:center;
  animation:cartIn .3s var(--ease);
}
@keyframes cartIn{from{opacity:0;transform:translateX(10px);}to{opacity:1;transform:translateX(0);}}

.cart-thumb{
  width:56px;height:56px;
  border-radius:12px;
  overflow:hidden;
  background:#eee;
}
.cart-thumb img{width:100%;height:100%;object-fit:cover;}

.cart-info{min-width:0;}
.cart-name{
  font-size:14px;
  font-weight:500;
  color:var(--ink-900);
  margin:0 0 8px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.qty{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:var(--green-100);
  border-radius:var(--radius-pill);
  padding:2px;
}
.qty button{
  width:24px;height:24px;
  border-radius:50%;
  background:var(--white);
  color:var(--green-800);
  font-size:14px;font-weight:600;
  display:inline-flex;align-items:center;justify-content:center;
  line-height:1;
  transition:background .2s var(--ease);
}
.qty button:hover{background:var(--green-700);color:var(--white);}
.qty span{min-width:18px;text-align:center;font-size:13px;font-weight:600;color:var(--ink-900);}

.cart-right{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
}
.cart-price{
  font-size:14px;
  font-weight:600;
  color:var(--ink-900);
  white-space:nowrap;
}
.cart-remove{
  width:22px;height:22px;
  color:var(--ink-400);
  display:inline-flex;align-items:center;justify-content:center;
  transition:color .2s var(--ease), transform .2s var(--ease);
}
.cart-remove:hover{color:#c0392b;transform:scale(1.1);}
.cart-remove svg{width:16px;height:16px;}

/* Empty state */
.cart-empty{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:60px 10px;
  text-align:center;
  color:var(--ink-400);
}
.cart-empty-icon{
  width:60px;height:60px;
  color:var(--ink-300);
  margin-bottom:10px;
}
.cart-empty-icon svg{width:100%;height:100%;}
.cart-empty p{font-size:15px;color:var(--ink-700);margin:0;font-weight:500;}
.cart-empty span{font-size:13px;}

/* Cart footer */
.cart-foot{
  padding:18px 28px 24px;
  border-top:1px solid var(--green-100);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.cart-foot[hidden]{display:none;}
.cart-total{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  margin-bottom:8px;
}
.cart-total-label{
  font-family:var(--font-serif);
  font-style:italic;
  font-size:22px;
  color:var(--ink-900);
}
.cart-total-value{
  font-family:var(--font-serif);
  font-size:28px;
  font-weight:500;
  color:var(--green-700);
}

.btn{
  width:100%;
  padding:14px 18px;
  border-radius:var(--radius-pill);
  font-size:14px;
  font-weight:500;
  transition:transform .22s var(--ease), background .22s var(--ease), box-shadow .22s var(--ease);
  text-align:center;
}
.btn-primary{
  background:var(--green-700);
  color:var(--white);
  box-shadow:var(--shadow-btn);
}
.btn-primary:hover{background:var(--green-600);transform:translateY(-2px);}
.btn-primary:active{transform:translateY(0);}
.btn-ghost{
  background:transparent;
  color:var(--ink-900);
  border:1px solid var(--ink-300);
}
.btn-ghost:hover{border-color:var(--green-700);color:var(--green-700);}

.cart-safe{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:var(--ink-400);
  font-size:12px;
  margin-top:6px;
}
.cart-safe svg{width:14px;height:14px;}

/* ============================================================
   MOBILE BAR & CATEGORY CHIPS
   ============================================================ */
.mobile-bar{display:none;}
.mobile-actions{display:flex;align-items:center;gap:8px;}
.cat-scroll{display:none;}

/* Мобильная строка поиска — выдвигается вниз */
.mobile-search-bar{
  display:none; /* показывается только на мобиле */
}

/* Чип "Ознакомление" в мобильном баре категорий */
.cat-chip--info{
  display:inline-flex;
  align-items:center;
  gap:5px;
  border:1px solid rgba(255,255,255,.25);
}

.mobile-logo .logo-word{font-size:22px;}
.mobile-logo .logo-sub{font-size:7.5px;}

/* ============================================================
   TOAST
   ============================================================ */
.toast{
  position:fixed;
  left:50%;bottom:28px;
  transform:translateX(-50%) translateY(20px);
  background:var(--ink-900);
  color:var(--white);
  padding:12px 18px;
  border-radius:var(--radius-pill);
  font-size:13px;font-weight:500;
  box-shadow:var(--shadow-float);
  opacity:0;
  pointer-events:none;
  transition:opacity .3s var(--ease), transform .3s var(--ease);
  z-index:100;
}
.toast.is-visible{opacity:1;transform:translateX(-50%) translateY(0);}

/* ============================================================
   RESPONSIVE — TABLET  (<=1100px)
   ============================================================ */
@media (max-width:1100px){
  :root{--sidebar-w:200px;}
  .main-inner{padding:40px 32px 50px;}
  .grid{grid-template-columns:repeat(2, 1fr); gap:22px;}
  .dish-section-grid{grid-template-columns:repeat(2,1fr); gap:22px;}
  .title{font-size:62px;}
  .card-name{font-size:20px;}
}

/* ============================================================
   RESPONSIVE — SMALL TABLET (<=860px)
   ============================================================ */
@media (max-width:860px){
  :root{--sidebar-w:180px;}
  .sidebar-inner{padding:28px 16px 22px;}
  .logo{margin-bottom:40px;}
  .nav-item{padding:11px 12px;font-size:13.5px;gap:10px;}
  .nav-label{font-size:13px;}
  .main-inner{padding:34px 28px 44px;}
  .cart-pill-label{display:none;}
  .cart-pill{padding: 12px;}
  .dish-section-grid{gap:18px;}
  .dish-section-title{font-size:19px;}
}

/* ============================================================
   RESPONSIVE — MOBILE  (<=720px)
   Sidebar hidden. Horizontal category chips at top of content.
   ============================================================ */
@media (max-width:720px){
  .app{grid-template-columns:1fr; grid-template-rows:auto; height:auto; overflow:visible;}
  .main{height:auto; overflow-y:visible; overflow-x:visible;}
  .sidebar{display:none;}

  .mobile-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 18px;
    background:var(--green-800);
    position:sticky;top:0;z-index:20;
    border-bottom:1px solid rgba(255,255,255,.06);
  }
  .mobile-logo{color:var(--white); text-align:left;}
  .mobile-logo .logo-word{color:var(--white);}
  .mobile-logo .logo-sub{color:rgba(255,255,255,.6);}
  .mobile-actions{display:flex;align-items:center;gap:8px;}

  /* Кнопка поиска в мобильном баре */
  .mobile-search-btn{
    width:40px;height:40px;
    border-radius:50%;
    background:rgba(255,255,255,.12);
    color:var(--white);
    display:inline-flex;align-items:center;justify-content:center;
    transition:background .2s var(--ease), transform .2s var(--ease);
  }
  .mobile-search-btn svg{width:18px;height:18px;}
  .mobile-search-btn:hover,.mobile-search-btn.is-active{
    background:rgba(255,255,255,.22);
    transform:scale(1.05);
  }

  .mobile-cart-btn{
    position:relative;
    width:40px;height:40px;
    border-radius:50%;
    background:var(--white);
    color:var(--ink-900);
    display:inline-flex;align-items:center;justify-content:center;
    box-shadow:var(--shadow-card);
  }
  .mobile-cart-btn svg{width:18px;height:18px;}
  .mobile-cart-badge{
    position:absolute;top:-4px;right:-4px;
    min-width:20px;height:20px;
    padding:0 5px;
    background:var(--green-700);
    color:var(--white);
    border-radius:var(--radius-pill);
    font-size:11px;font-weight:600;
    display:inline-flex;align-items:center;justify-content:center;
    border:2px solid var(--green-800);
  }

  /* Выдвижная строка поиска под мобильным баром */
  .mobile-search-bar{
    display:block;
    position:fixed;
    top:68px;
    left:0;right:0;
    z-index:19;
    background:var(--green-800);
    padding:0 18px;
    height:0;
    overflow:hidden;
    transition:height .3s var(--ease), padding .3s var(--ease);
  }
  .mobile-search-bar.is-open{
    height:62px;
    padding:10px 18px 12px;
  }
  body.mobile-search-open .cat-bar{top:130px;}
  body.mobile-search-open .main-inner{padding-top:162px;}
  .mobile-search-bar .search-box{position:relative;display:flex;align-items:center;}
  .mobile-search-bar .search-input{
    width:100%;
    padding:10px 38px 10px 40px;
    background:rgba(255,255,255,.1);
    border:1.5px solid rgba(255,255,255,.2);
    border-radius:var(--radius-pill);
    color:var(--white);
    font-family:var(--font-sans);
    font-size:16px;
    outline:none;
    transition:background .2s var(--ease), border-color .2s var(--ease);
  }
  .mobile-search-bar .search-input::placeholder{color:rgba(255,255,255,.45);}
  .mobile-search-bar .search-input:focus{background:rgba(255,255,255,.16);border-color:rgba(255,255,255,.35);}
  .mobile-search-bar .search-input::-webkit-search-cancel-button{display:none;}
  .mobile-search-bar .search-icon{
    position:absolute;left:13px;
    width:16px;height:16px;
    color:rgba(255,255,255,.45);
    pointer-events:none;
    display:inline-flex;align-items:center;justify-content:center;
  }
  .mobile-search-bar .search-icon svg{width:100%;height:100%;}
  .mobile-search-bar .search-clear{
    position:absolute;right:12px;
    width:20px;height:20px;
    color:rgba(255,255,255,.5);
    display:inline-flex;align-items:center;justify-content:center;
    border-radius:50%;
  }
  .mobile-search-bar .search-clear svg{width:13px;height:13px;}

  /* Скрыть десктопный поиск на мобиле */
  .head-search{display:none;}

  .main-inner{padding:100px 18px 40px;}

  .main-head{
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    margin-bottom:22px;
  }
  .cart-pill{display:none;}
  .title{font-size:52px;}
  .title-flourish{width:110px;margin:10px 0 10px;}
  .subtitle{font-size:13px;}

  /* Fixed category bar below mobile header */
  .cat-bar{
    position:fixed;
    top:68px;
    left:0;right:0;
    z-index:15;
    background:var(--green-700);
    box-shadow:0 3px 18px rgba(10,30,18,.25);
  }
  .cat-flourish{
    display:flex;
    justify-content:center;
    color:rgba(255,255,255,.4);
    padding:6px 0 0;
  }
  .cat-flourish svg{width:80px;height:13px;}
  .cat-scroll{
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding:5px 18px 11px;
    margin:0;
    scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x proximity;
  }
  .cat-scroll::-webkit-scrollbar{display:none;}
  .cat-chip{
    flex:0 0 auto;
    padding:10px 18px;
    border-radius:var(--radius-pill);
    background:rgba(255,255,255,.12);
    color:rgba(255,255,255,.9);
    font-size:13px;
    font-weight:500;
    white-space:nowrap;
    scroll-snap-align:start;
    transition:background .25s var(--ease), color .25s var(--ease);
  }
  .cat-chip:hover{background:rgba(255,255,255,.2);}
  .cat-chip.is-active{
    background:var(--white);
    color:var(--green-800);
  }

  .grid{grid-template-columns:repeat(2, 1fr); gap:14px;}
  .dish-section-grid{grid-template-columns:repeat(2,1fr); gap:14px;}
  .dish-section-title{font-size:16px;}
  .dish-section-head{margin-bottom:14px; gap:10px;}
  .grid--sections{gap:32px;}
  .card-body{padding:14px 14px 16px;}
  .card-name{font-size:17px;}
  .card-desc{font-size:11.5px;}
  .card-price{font-size:17px;}
  .card-add{width:34px;height:34px;}
  .card-add svg{width:16px;height:16px;}

  /* Card footer — stack vertically so buttons don't overflow narrow cards */
  .card-foot{flex-direction:column;align-items:flex-start;gap:8px;margin-top:8px;}
  .card-foot-actions{width:100%;justify-content:space-between;}

  /* Контрол количества — компактнее чтобы помещался в узкую карточку */
  .card-qty-ctrl{gap:3px;padding:2px;}
  .card-qty-dec,.card-qty-inc{width:24px;height:24px;font-size:13px;}
  .card-qty-num{font-size:12px;min-width:16px;}

  /* "Подробнее" компактнее */
  .card-foot-actions{gap:6px;}
  .card-more{padding:5px 9px;font-size:11px;}
}

/* ---------- Very small phones ---------- */
@media (max-width:430px){
  .grid{grid-template-columns:1fr; gap:16px;}
  .dish-section-grid{grid-template-columns:1fr;}
  .card-media{aspect-ratio:16/10;}
  .title{font-size:46px;}
  .main-inner{padding:22px 16px 36px;}
  .cart-panel{border-radius:0;}
  .title{margin-top: 30px;}
}

/* ---------- Reduce motion ---------- */
@media (prefers-reduced-motion:reduce){
  *{animation:none !important; transition:none !important;}
}

/* ============================================================
   DISH MODAL
   ============================================================ */

/* Hint cards are clickable */
.card{ cursor:pointer; }

/* Overlay */
.dish-overlay{
  position:fixed;
  inset:0;
  background:rgba(10,30,18,.48);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  z-index:200;
  opacity:0;
  pointer-events:none;
  transition:opacity .3s var(--ease);
}
.dish-overlay.is-open{
  opacity:1;
  pointer-events:auto;
}

/* Modal container */
.dish-modal{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%,-46%) scale(.96);
  z-index:201;
  width:min(640px, calc(100vw - 32px));
  max-height:88vh;
  background:var(--white);
  border-radius:var(--radius-lg);
  box-shadow:0 28px 90px rgba(10,30,18,.22), 0 4px 16px rgba(10,30,18,.08);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
  transition:opacity .32s var(--ease), transform .32s var(--ease);
}
.dish-modal.is-open{
  opacity:1;
  pointer-events:auto;
  transform:translate(-50%,-50%) scale(1);
}

/* Close button */
.dish-modal-close{
  position:absolute;
  top:14px;
  right:14px;
  width:38px;height:38px;
  border-radius:50%;
  background:rgba(255,255,255,.92);
  display:inline-flex;align-items:center;justify-content:center;
  z-index:2;
  box-shadow:0 2px 12px rgba(10,30,18,.18);
  transition:background .2s var(--ease), transform .2s var(--ease);
}
.dish-modal-close:hover{background:var(--white);transform:scale(1.1);}
.dish-modal-close svg{width:16px;height:16px;color:var(--ink-700);}

/* Image block */
.dish-modal-img{
  position:relative;
  width:100%;
  aspect-ratio:16/7;
  overflow:hidden;
  flex-shrink:0;
  background:var(--green-100);
}
.dish-modal-img img{
  width:100%;height:100%;
  object-fit:cover;
  display:block;
  transition:transform .6s var(--ease);
}
.dish-modal.is-open .dish-modal-img img{transform:scale(1);}

/* Category badge over image */
.dish-modal-cat-badge{
  position:absolute;
  bottom:14px;
  left:16px;
  padding:5px 14px;
  border-radius:var(--radius-pill);
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  color:var(--green-800);
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* Scrollable body */
.dish-modal-body{
  padding:24px 28px 18px;
  overflow-y:auto;
  flex:1;
  scrollbar-width:thin;
  scrollbar-color:var(--ink-300) transparent;
}
.dish-modal-body::-webkit-scrollbar{width:4px;}
.dish-modal-body::-webkit-scrollbar-thumb{background:var(--ink-300);border-radius:2px;}

/* Title */
.dish-modal-title{
  font-family:var(--font-serif);
  font-weight:400;
  font-size:30px;
  color:var(--ink-900);
  margin:0 0 6px;
  line-height:1.15;
}

/* Price */
.dish-modal-price{
  font-size:24px;
  font-weight:700;
  color:var(--green-700);
  margin-bottom:14px;
  letter-spacing:-.01em;
}
.dish-modal-price em{
  font-style:normal;
  font-size:14px;
  font-weight:400;
  color:var(--ink-400);
  margin-left:4px;
}

/* Description */
.dish-modal-desc{
  font-size:14px;
  line-height:1.7;
  color:var(--ink-500);
  margin:0 0 22px;
}

/* Ingredients section */
.dish-modal-section{ margin-bottom:8px; }
.dish-modal-section-label{
  display:block;
  font-size:11px;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--ink-400);
  margin-bottom:12px;
}
.dish-modal-ingredients{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  list-style:none;
  padding:0;
  margin:0;
}
.dish-modal-ingredients li{
  padding:6px 14px;
  border-radius:var(--radius-pill);
  border:1.5px solid var(--green-100);
  font-size:12.5px;
  color:var(--ink-700);
  background:var(--paper);
  transition:border-color .2s var(--ease), background .2s var(--ease);
}
.dish-modal-ingredients li:hover{
  border-color:var(--green-500);
  background:var(--green-100);
}

/* Footer with CTA */
.dish-modal-footer{
  padding:16px 28px 22px;
  border-top:1.5px solid var(--green-100);
  background:var(--white);
  flex-shrink:0;
}
.dish-modal-add{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  font-size:15px;
  font-weight:600;
  letter-spacing:.01em;
}
.dish-modal-add svg{width:18px;height:18px;}

/* ============================================================
   ПОИСК
   ============================================================ */
.search-wrap{
  margin-bottom:22px;
}
.search-box{
  position:relative;
  display:flex;
  align-items:center;
}
.search-icon{
  position:absolute;
  left:14px;
  width:18px;height:18px;
  color:rgba(255,255,255,.45);
  pointer-events:none;
  display:inline-flex;align-items:center;justify-content:center;
}
.search-icon svg{width:100%;height:100%;}
.search-input{
  width:100%;
  padding:13px 42px 13px 44px;
  background:rgba(255,255,255,.1);
  border:1.5px solid rgba(255,255,255,.14);
  border-radius:var(--radius-pill);
  color:var(--white);
  font-family:var(--font-sans);
  font-size:14px;
  outline:none;
  transition:background .25s var(--ease), border-color .25s var(--ease);
}
.search-input::placeholder{color:rgba(255,255,255,.4);}
.search-input:focus{
  background:rgba(255,255,255,.15);
  border-color:rgba(255,255,255,.32);
}
/* убираем нативный крестик в Chrome */
.search-input::-webkit-search-cancel-button{display:none;}
.search-clear{
  position:absolute;
  right:12px;
  width:22px;height:22px;
  color:rgba(255,255,255,.45);
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;
  transition:background .2s var(--ease), color .2s var(--ease);
}
.search-clear:hover{background:rgba(255,255,255,.12);color:var(--white);}
.search-clear svg{width:14px;height:14px;}

/* ============================================================
   ПУСТОЕ СОСТОЯНИЕ (нет результатов поиска)
   ============================================================ */
.grid-empty[hidden]{display:none !important;}
.grid-empty{
  grid-column:1/-1;  /* занять всю ширину сетки */
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:70px 20px;
  text-align:center;
  color:rgba(255,255,255,.5);
  animation:cardIn .4s var(--ease);
}
.grid-empty-icon{
  width:64px;height:64px;
  color:rgba(255,255,255,.2);
  margin-bottom:18px;
}
.grid-empty-icon svg{width:100%;height:100%;}
.grid-empty p{font-size:17px;color:rgba(255,255,255,.7);margin:0 0 6px;font-weight:500;}
.grid-empty span{font-size:13px;color:rgba(255,255,255,.4);}

/* ============================================================
   КНОПКА "ПОДРОБНЕЕ" НА КАРТОЧКЕ (inline, рядом с добавить)
   ============================================================ */
.card-more{
  padding:6px 12px;
  border-radius:var(--radius-pill);
  border:1.5px solid var(--green-100);
  background:transparent;
  color:var(--ink-700);
  font-size:11.5px;
  font-weight:500;
  white-space:nowrap;
  transition:background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.card-more:hover{
  background:var(--green-100);
  border-color:var(--green-500);
  color:var(--green-800);
}

/* ============================================================
   КОНТРОЛ КОЛИЧЕСТВА НА КАРТОЧКЕ (+/-)
   ============================================================ */
.card-qty-ctrl{
  display:none; /* показывается через JS когда qty > 0 */
  align-items:center;
  gap:5px;
  background:var(--green-700);
  border-radius:var(--radius-pill);
  padding:3px;
  animation:cardIn .22s var(--ease);
}
.card-qty-dec,
.card-qty-inc{
  width:30px;height:30px;
  border-radius:50%;
  background:var(--white);
  color:var(--green-800);
  font-size:16px;
  font-weight:700;
  line-height:1;
  display:inline-flex;align-items:center;justify-content:center;
  box-shadow:0 1px 4px rgba(10,30,18,.12);
  transition:background .18s var(--ease), transform .15s var(--ease);
}
.card-qty-dec:hover,.card-qty-inc:hover{background:var(--green-100);}
.card-qty-dec:active,.card-qty-inc:active{transform:scale(.88);}
.card-qty-num{
  min-width:20px;
  text-align:center;
  color:var(--white);
  font-size:13px;
  font-weight:700;
}

/* ============================================================
   СЧЁТЧИК БЛЮД В САЙДБАРЕ (рядом с категорией)
   ============================================================ */
.nav-count{
  margin-left:auto;
  background:var(--green-100);
  color:var(--green-700);
  font-size:11px;
  font-weight:700;
  padding:2px 8px;
  border-radius:var(--radius-pill);
  line-height:1.6;
  transition:background .25s var(--ease), color .25s var(--ease);
}
.nav-item.is-active .nav-count{
  background:rgba(255,255,255,.22);
  color:var(--white);
}

/* ============================================================
   БЛОК "ОЗНАКОМЛЕНИЕ" В САЙДБАРЕ
   ============================================================ */
.sidebar-about{
  margin-top:14px;
  padding:13px 14px;
  background:var(--green-100);
  border-radius:var(--radius-sm);
  flex-shrink:0;
}
.sidebar-about-head{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:9px;
}
.sidebar-about-line{
  flex:1;
  height:1px;
  background:var(--ink-300);
}
.sidebar-about-title{
  font-family:var(--font-serif);
  font-style:italic;
  font-size:13px;
  font-weight:400;
  color:var(--ink-700);
  white-space:nowrap;
}
.sidebar-about-desc{
  font-size:11.5px;
  line-height:1.55;
  color:var(--ink-500);
  margin:0 0 10px;
}
.sidebar-about-rules{
  list-style:none;
  padding:0;margin:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.sidebar-about-rules li{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:11px;
  color:var(--ink-500);
  line-height:1.4;
}
.sidebar-about-rules li svg{
  width:13px;height:13px;
  flex-shrink:0;
  color:var(--ink-400);
}

/* ---- Mobile: bottom sheet ---- */
@media (max-width:720px){
  .dish-modal{
    top:auto;
    left:0;right:0;bottom:0;
    width:100%;
    max-height:92vh;
    transform:translateY(30px) scale(.99);
    border-radius:var(--radius-lg) var(--radius-lg) 0 0;
  }
  .dish-modal.is-open{
    transform:translateY(0) scale(1);
  }
  .dish-modal-img{
    aspect-ratio:4/3;
    max-height:52vw;
    min-height:180px;
  }
  .dish-modal-body{ padding:16px 18px 12px; }
  .dish-modal-footer{ padding:12px 18px 30px; }
  .dish-modal-title{ font-size:22px; }
  .dish-modal-price{ font-size:18px; }
}

/* ---- Tablet: centered popup ---- */
@media (min-width:721px) and (max-width:1100px){
  .dish-modal{ width:min(580px, calc(100vw - 40px)); }
  .dish-modal-img{
    aspect-ratio:16/9;
    max-height:280px;
  }
}

/* ============================================================
   ИНФОРМАЦИОННЫЙ МОДАЛ (ОЗНАКОМЛЕНИЕ)
   ============================================================ */

.info-overlay{
  position:fixed;
  inset:0;
  background:rgba(10,30,18,.55);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
  z-index:300;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .35s var(--ease), visibility 0s .35s;
}
.info-overlay.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transition:opacity .35s var(--ease), visibility 0s;
}

.info-modal{
  position:fixed;
  top:50%;left:50%;
  transform:translate(-50%,-46%) scale(.96);
  z-index:301;
  width:min(700px, calc(100vw - 32px));
  max-height:90vh;
  background:var(--white);
  border-radius:var(--radius-lg);
  box-shadow:0 32px 100px rgba(10,30,18,.28), 0 4px 20px rgba(10,30,18,.1);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.info-modal.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transition:opacity .35s var(--ease), transform .35s var(--ease), visibility 0s;
  transform:translate(-50%,-50%) scale(1);
}

/* Кнопка закрытия */
.info-modal-close{
  position:absolute;
  top:16px;right:16px;
  width:38px;height:38px;
  border-radius:50%;
  background:rgba(255,255,255,.9);
  display:inline-flex;align-items:center;justify-content:center;
  z-index:2;
  box-shadow:0 2px 12px rgba(10,30,18,.15);
  transition:background .2s var(--ease), transform .2s var(--ease);
}
.info-modal-close:hover{background:var(--white);transform:scale(1.1);}
.info-modal-close svg{width:16px;height:16px;color:var(--ink-700);}

/* Прокручиваемое содержимое */
.info-modal-scroll{
  overflow-y:auto;
  padding:36px 36px 32px;
  scrollbar-width:thin;
  scrollbar-color:var(--ink-300) transparent;
}
.info-modal-scroll::-webkit-scrollbar{width:5px;}
.info-modal-scroll::-webkit-scrollbar-thumb{background:var(--ink-300);border-radius:3px;}

/* Хедер модала с логотипом */
.info-modal-header{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  margin-bottom:32px;
  padding-bottom:24px;
  border-bottom:1.5px solid var(--green-100);
}
.info-modal-logo .logo-word{
  font-family:var(--font-serif);
  font-size:36px;
  font-weight:500;
  letter-spacing:.22em;
  color:var(--green-700);
  line-height:1;
}
.info-modal-logo .logo-sub{
  font-size:9px;
  letter-spacing:.32em;
  color:var(--ink-400);
  margin-top:5px;
}
.info-modal-title{
  font-family:var(--font-serif);
  font-style:italic;
  font-weight:400;
  font-size:20px;
  color:var(--ink-500);
  margin:10px 0 0;
}

/* Приветствие на 3 языках */
.info-greetings{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  margin-bottom:32px;
}
.info-greeting{
  background:var(--green-100);
  border-radius:var(--radius-md);
  padding:18px 16px;
}
.info-lang-tag{
  display:inline-block;
  padding:3px 9px;
  background:var(--green-700);
  color:var(--white);
  font-size:10px;
  font-weight:700;
  letter-spacing:.1em;
  border-radius:var(--radius-pill);
  margin-bottom:10px;
}
.info-greeting h3{
  font-family:var(--font-serif);
  font-weight:400;
  font-size:18px;
  color:var(--ink-900);
  margin:0 0 8px;
}
.info-greeting p{
  font-size:12.5px;
  line-height:1.6;
  color:var(--ink-500);
  margin:0;
}

/* Блок правил */
.info-rules-section{margin-bottom:24px;}
.info-rules-heading{
  display:flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-serif);
  font-style:italic;
  font-weight:400;
  font-size:20px;
  color:var(--ink-900);
  margin:0 0 18px;
}
.info-rules-heading svg{width:20px;height:20px;color:var(--green-600);}
.info-rules-list{
  list-style:none;
  padding:0;margin:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.info-rules-list li{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:14px 16px;
  background:var(--paper);
  border-radius:var(--radius-sm);
  border:1.5px solid var(--green-100);
  transition:border-color .2s var(--ease);
}
.info-rules-list li:hover{border-color:var(--green-500);}
.info-rule-icon{
  width:36px;height:36px;
  border-radius:var(--radius-sm);
  background:var(--green-100);
  display:inline-flex;align-items:center;justify-content:center;
  flex-shrink:0;
  color:var(--green-700);
}
.info-rule-icon svg{width:18px;height:18px;}
.info-rules-list li div{display:flex;flex-direction:column;gap:3px;}
.info-rules-list li strong{font-size:14px;color:var(--ink-900);font-weight:600;}
.info-rules-list li span{font-size:12.5px;color:var(--ink-500);line-height:1.5;}

/* Строка часов работы */
.info-hours{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 20px;
  background:var(--green-700);
  border-radius:var(--radius-md);
  color:rgba(255,255,255,.8);
  font-size:14px;
}
.info-hours svg{width:16px;height:16px;color:var(--white);}
.info-hours strong{color:var(--white);}

/* ---- Мобильный инфо-модал — fullscreen ---- */
@media (max-width:720px){
  .info-modal{
    top:0;left:0;right:0;bottom:0;
    width:100%;
    max-height:100%;
    transform:translateY(20px) scale(.99);
    border-radius:0;
  }
  .info-modal.is-open{transform:translateY(0) scale(1);}
  .info-modal-scroll{padding:56px 20px 28px;}
  .info-greetings{grid-template-columns:1fr;}
  .info-modal-header{margin-bottom:24px;}
  .info-modal-close{top:14px;right:14px;}
}

/* ---- Планшет ---- */
@media (min-width:721px) and (max-width:1100px){
  .info-modal{width:min(640px, calc(100vw - 40px));}
  .info-greetings{grid-template-columns:1fr 1fr;}
  .info-greeting:last-child{grid-column:1/-1;}
}

/* ---- Компактный хедер на планшете ---- */
@media (max-width:1100px){
  .head-search{max-width:260px;}
}
/* ================================================================
   LANGUAGE SWITCHER
   ================================================================ */
.lang-switcher{
  display:flex;
  align-items:center;
  flex-shrink:0;
}
.lang-buttons{
  display:flex;
  gap:4px;
  border-radius:999px;
  padding:0;
  border:none;
  background:none;
}
.lang-btn{
  padding:5px 12px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  color:rgba(255,255,255,.85);
  background:rgba(255,255,255,.12);
  border:1.5px solid rgba(255,255,255,.55);
  cursor:pointer;
  transition:border-color .18s,color .18s,background .18s;
  line-height:1;
}
.lang-btn:hover{
  color:#fff;
  background:rgba(255,255,255,.2);
  border-color:rgba(255,255,255,.8);
}
.lang-btn.is-active{
  background:#fff;
  border-color:transparent;
  color:var(--green-800);
}

/* Header variant (next to search bar) */
.lang-switcher--header{
  margin:0;
}

/* Mobile variant (compact, in mobile-bar) */
.lang-switcher--mobile{
  margin:0;
}
.lang-switcher--mobile .lang-buttons{
  background:rgba(255,255,255,.07);
  border-color:rgba(255,255,255,.1);
}
.lang-switcher--mobile .lang-btn{
  padding:4px 8px;
  font-size:10px;
}

/* Info page variant (dark bg, absolute top-right) */
.lang-switcher--info{
  position:absolute;
  top:24px;
  right:16px;
  margin:0;
}

/* Lang + cart group */
.lang-cart-group{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink:0;
}

/* ---- Lang dropdown (tablet only) ---- */
.lang-dropdown{display:none;position:relative;}

.lang-dropdown-btn{
  display:flex;
  align-items:center;
  gap:5px;
  padding:6px 13px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1.5px solid rgba(255,255,255,.55);
  color:rgba(255,255,255,.85);
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  cursor:pointer;
  transition:background .18s,border-color .18s,color .18s;
  line-height:1;
}
.lang-dropdown-btn:hover,
.lang-dropdown.is-open .lang-dropdown-btn{
  background:rgba(255,255,255,.22);
  border-color:rgba(255,255,255,.85);
  color:#fff;
}
.lang-dropdown-chevron{
  transition:transform .2s var(--ease);
  flex-shrink:0;
}
.lang-dropdown.is-open .lang-dropdown-chevron{transform:rotate(180deg);}

.lang-dropdown-menu{
  display:none;
  position:absolute;
  top:calc(100% + 8px);
  left:50%;
  transform:translateX(-50%);
  background:#fff;
  border-radius:12px;
  box-shadow:0 8px 28px rgba(10,30,18,.18);
  overflow:hidden;
  min-width:72px;
  z-index:200;
}
.lang-dropdown-menu.is-open{display:block;}

.lang-dropdown-item{
  display:block;
  width:100%;
  padding:10px 18px;
  text-align:center;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  color:var(--ink-700);
  background:transparent;
  border:none;
  cursor:pointer;
  transition:background .15s;
}
.lang-dropdown-item:hover{background:var(--green-100);}
.lang-dropdown-item.is-active{color:var(--green-700);background:var(--green-100);}

/* Visibility rules:
   > 900px  → row: [search] [lang inline] [cart]
   721–900px → dropdown above cart; search aligned to cart bottom
   ≤ 720px  → mobile-bar switcher */
.lang-switcher--mobile{display:none;}

@media(min-width:721px) and (max-width:900px){
  .lang-switcher--header{display:none;}
  .lang-dropdown{display:block;}
  .lang-cart-group{
    flex-direction:column;
    align-items:center;
    gap:6px;
  }
  .main-head-right{align-items:flex-end;}
}

@media(max-width:720px){
  .lang-switcher--header{display:none;}
  .lang-switcher--mobile{display:flex;}
  .lang-cart-group{display:none;}
}
