/* თამადის დამხმარე (/supra/) */
.supra { padding: 24px 16px 48px; max-width: 820px; }
.supra h1 { margin: 6px 0 8px; }
.supra .lead { margin: 0 0 20px; }
.occ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.occ {
  font: inherit; cursor: pointer; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 10px;
  font-weight: 600; transition: transform .15s, border-color .15s;
}
.occ:hover { transform: translateY(-2px); border-color: var(--wine); }
.occ-i { font-size: 34px; line-height: 1; }
.occ small { color: var(--muted); font-weight: 400; font-size: 12px; }
.back { margin-bottom: 8px; }
.supra-form { max-width: 520px; }
.modes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mode { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: var(--surface); cursor: pointer; }
.mode input { width: auto !important; margin: 0; }
.t-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.t-count { color: var(--muted); font-size: 14px; white-space: nowrap; }
.toast-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 16px; margin: 10px 0 14px; }
.toast-card h2 { margin: 0 0 12px; color: var(--wine); }
.t-text { font-size: 19px; line-height: 1.75; margin: 0 0 12px; font-family: "Noto Serif Georgian", Georgia, serif; }
.t-note { background: var(--bg); border-radius: 10px; padding: 8px 12px; color: var(--muted); }
.t-nav {
  display: flex; gap: 10px; position: sticky; bottom: 0; z-index: 5;
  background: var(--bg); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line);
}
.t-nav .btn { flex: 1; min-height: 48px; }
.t-next-name { margin: 8px 0 22px; text-align: center; }
.t-all { margin: 0 0 30px; }
.t-all summary { cursor: pointer; font-weight: 600; }
.t-all ol { line-height: 1.6; }
.t-all li { margin-bottom: 10px; }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; scroll-margin-top: 80px; }
.calc h2 { margin-top: 0; }
.calc-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.calc-row label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.calc-row input, .calc-row select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.calc-total { font-size: 20px; margin: 16px 0 10px; }
.calc-wines { display: flex; flex-direction: column; gap: 6px; }
.c-wine { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.c-wine.out { opacity: .55; }
.c-name small { color: var(--muted); font-weight: 400; }
.c-in input { width: 72px; font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); text-align: right; }
.c-in { flex: none; white-space: nowrap; }
.c-warn { color: var(--err); font-size: 13px; font-weight: 600; }
.calc-sum { font-size: 17px; margin: 14px 0 10px; }
@media (max-width: 560px) {
  .calc-row { grid-template-columns: 1fr; }
  .t-text { font-size: 17px; }
  .toast-card { padding: 18px 16px 12px; }
}
@media print {
  header, footer, #s-occ, #s-form, .t-head, .toast-card, .t-nav, .t-next-name, .calc, .t-all summary, #t-print { display: none !important; }
  .t-all { display: block; } .t-all ol { font-size: 13pt; }
  body { background: #fff; }
}
.shop-link { margin-top: 18px; }

.fix-form { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.fix-form textarea, .fix-form input { font: inherit; font-size: 15px; width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.fix-form code { background: var(--bg); padding: 0 4px; border-radius: 4px; }
.fix-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
html[lang="en"] .t-text, html[lang="ru"] .t-text { font-family: "Noto Serif", Georgia, serif; }
/* სადღეგრძელოს ღილაკები — დიდი, თითით მოსახერხებელი (≥44px) */
.t-tools, .t-sub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.t-sub { padding-top: 10px; border-top: 1px dashed var(--line); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink);
  font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.pill:hover { border-color: var(--wine); }
.pill[aria-expanded="true"], .like-btn.on { border-color: var(--wine); background: #f3e6e3; background: color-mix(in srgb, var(--wine) 8%, var(--bg)); }
/* გადაფურცვლისას ტექსტი მსუბუქად შემოდის */
.toast-card { touch-action: pan-y; }
.slide-next { animation: slideNext .22s ease-out; }
.slide-prev { animation: slidePrev .22s ease-out; }
@keyframes slideNext { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes slidePrev { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .slide-next, .slide-prev { animation: none; } }
/* iPhone: ველები მინიმუმ 16px (თორემ Safari გვერდს ადიდებს) */
.supra input, .supra select, .supra textarea { font-size: 16px; }
