/* The site footer: a ticket stub (owner 2026-10-18: „იდეალური, ლამაზი და დახვეწილი“), on every public page.
   One white panel with the booking ticket's dashed cut and notches (.bp-ticket-cut on the portal). Above the cut: the
   MEDICARD brand in the app's lettering, a short text, App Store + „Google Play-ზე მალე“ and three link groups, each link
   with a lilac icon tile. Below it a tinted stub with the page's own disclaimer and ©. Markup: siteFooter() in
   scripts/site-chrome.mjs (the portal's book/index.html is the same). site-nav.js fills [data-wordmark] with the name's
   outlines and keeps the <details> groups open on a computer, folded on a phone.
   The footer keeps its own tokens (--foot-*), so it never clashes with a page's --paper / --ink / --line. A page sets only
   --foot-gutter / --foot-max (its side edges, default the portal's) and, when its last section fades into a colour,
   --foot-bg. The notches are real cut-outs (a mask), so they show whatever is behind the footer: paper, a gradient, the
   night sky. <footer class="foot" data-tone="dark"> is the night version. */
@font-face { font-family: "FiraGO"; src: url("/fonts/firago/sub/FiraGO-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0589, U+10A0-10FF, U+1C90-1CBF, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-2199, U+2212, U+2248, U+2264-2265, U+25A0-25FF, U+2605, U+2640, U+2642, U+2713, U+2D00-2D2F, U+FEFF, U+FFFD; }
@font-face { font-family: "FiraGO"; src: url("/fonts/firago/sub/FiraGO-Regular-ext.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-024F, U+0300-036F, U+0370-03FF, U+0400-052F, U+1E00-1EFF; }
@font-face { font-family: "FiraGO"; src: url("/fonts/firago/sub/FiraGO-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0589, U+10A0-10FF, U+1C90-1CBF, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-2199, U+2212, U+2248, U+2264-2265, U+25A0-25FF, U+2605, U+2640, U+2642, U+2713, U+2D00-2D2F, U+FEFF, U+FFFD; }
@font-face { font-family: "FiraGO"; src: url("/fonts/firago/sub/FiraGO-SemiBold-ext.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-024F, U+0300-036F, U+0370-03FF, U+0400-052F, U+1E00-1EFF; }
@font-face { font-family: "FiraGO"; src: url("/fonts/firago/sub/FiraGO-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0589, U+10A0-10FF, U+1C90-1CBF, U+2000-206F, U+20A0-20CF, U+2100-214F, U+2190-2199, U+2212, U+2248, U+2264-2265, U+25A0-25FF, U+2605, U+2640, U+2642, U+2713, U+2D00-2D2F, U+FEFF, U+FFFD; }
@font-face { font-family: "FiraGO"; src: url("/fonts/firago/sub/FiraGO-Bold-ext.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-024F, U+0300-036F, U+0370-03FF, U+0400-052F, U+1E00-1EFF; }

.foot {
  --foot-panel: #FFFFFF;
  --foot-stub: #F0FAF9;
  --foot-disc: #FFFFFF;
  --foot-ink: #0B2B2E;
  --foot-ink-2: #3E5A5D;
  --foot-ink-3: #7A8E90;
  --foot-lilac: #0D9488;
  --foot-lilac-2: #99F6E4;
  --foot-tile: #F1FBFA;
  --foot-tile-ink: #0F766E;
  --foot-line: rgba(11, 43, 46, .1);
  --foot-radius: 32px;
  --foot-r: 13px; /* notch radius */
  --foot-ring: transparent calc(var(--foot-r) - .5px), var(--foot-line) var(--foot-r), var(--foot-line) calc(var(--foot-r) + .5px), transparent calc(var(--foot-r) + 1px);
  --foot-hole: transparent var(--foot-r), #000 calc(var(--foot-r) + .5px);
  margin: 0; padding: 24px 0 var(--foot-gutter, clamp(16px, 4vw, 48px));
  background: var(--foot-bg, none); border: 0;
  color: var(--foot-ink-2);
  font: 400 15px/1.5 "FiraGO", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: normal; text-transform: none; text-align: left;
  -webkit-font-smoothing: antialiased;
}
.foot[data-tone="dark"], :root[data-theme="dark"] .foot {
  --foot-panel: rgba(255, 255, 255, .035);
  --foot-stub: rgba(255, 255, 255, .06);
  --foot-disc: rgba(255, 255, 255, .08);
  --foot-ink: #F3FCFB;
  --foot-ink-2: rgba(240, 250, 249, .72);
  --foot-ink-3: rgba(240, 250, 249, .5);
  --foot-lilac: #99F6E4;
  --foot-lilac-2: rgba(153, 246, 228, .7);
  --foot-tile: rgba(153, 246, 228, .12);
  --foot-tile-ink: #D1F4F0;
  --foot-line: rgba(255, 255, 255, .13);
}
.foot *, .foot *::before, .foot *::after { box-sizing: border-box; }
.foot h2, .foot p, .foot ul, .foot details, .foot summary { margin: 0; padding: 0; }
.foot ul { list-style: none; }
.foot img { display: block; max-width: 100%; }
.foot a { color: inherit; }

.foot .foot-ticket { width: min(100% - 2 * var(--foot-gutter, clamp(16px, 4vw, 48px)), var(--foot-max, 1504px)); margin-inline: auto; }
/* The panel is two halves, each with half of every notch cut out (mask) and its edge drawn back as a 1 px ring. */
.foot .foot-main, .foot .foot-stub { border: 1px solid var(--foot-line); background-origin: border-box; }
.foot .foot-main {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 48px 64px; padding: 48px 48px 44px;
  border-bottom: 0; border-radius: var(--foot-radius) var(--foot-radius) 0 0;
  background: radial-gradient(circle at 0 100%, var(--foot-ring)), radial-gradient(circle at 100% 100%, var(--foot-ring)), var(--foot-panel);
  -webkit-mask: radial-gradient(circle at 0 100%, var(--foot-hole)) 0 0 / 51% 100% no-repeat, radial-gradient(circle at 100% 100%, var(--foot-hole)) 100% 0 / 51% 100% no-repeat;
          mask: radial-gradient(circle at 0 100%, var(--foot-hole)) 0 0 / 51% 100% no-repeat, radial-gradient(circle at 100% 100%, var(--foot-hole)) 100% 0 / 51% 100% no-repeat;
}
.foot .foot-intro { display: grid; align-content: start; justify-items: start; gap: 16px; }
.foot .foot-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--foot-ink); font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; text-decoration: none; }
.foot .foot-brand img { border-radius: 10px; }
/* The name in the app's lettering: site-nav.js fills [data-wordmark] with the outlines; the text is the fallback. */
.foot .foot-name { display: inline-flex; }
.foot .foot-wm { display: block; flex: none; width: auto; height: 21px; overflow: visible; }
.foot .foot-intro p { max-width: 38ch; color: var(--foot-ink-2); font-size: 15px; line-height: 1.6; }
.foot .foot-stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.foot .foot-store { display: block; border-radius: 10px; }
.foot .foot-store img { display: block; width: auto; height: 44px; }
.foot .foot-soon { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--foot-line); border-radius: 10px; color: var(--foot-ink-2); font-size: 13.5px; line-height: 1.2; white-space: nowrap; }
.foot .foot-soon img { width: 18px; height: 18px; }
.foot .foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
/* Each group is a <details>: always open on a computer (site-nav.js keeps it so), folded on a phone. */
.foot .foot-col > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; list-style: none; cursor: default; }
.foot .foot-col > summary::-webkit-details-marker { display: none; }
.foot .foot-h { margin: 0; color: var(--foot-ink); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.4; letter-spacing: normal; }
.foot .foot-chev { display: none; flex: none; color: var(--foot-ink-3); transition: transform .2s cubic-bezier(.2, .7, .1, 1); }
.foot .foot-col ul { display: grid; gap: 10px; }
.foot .foot-col a { display: inline-flex; align-items: center; gap: 12px; color: var(--foot-ink-2); font-size: 15px; line-height: 1.4; text-decoration: none; }
.foot .foot-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: var(--foot-tile); color: var(--foot-tile-ink); transition: background-color .15s, color .15s; }
.foot .foot-ic svg { width: 17px; height: 17px; }
.foot .foot-col a:hover, .foot .foot-col a[aria-current="page"] { color: var(--foot-ink); }
.foot .foot-col a:hover .foot-ic, .foot .foot-col a[aria-current="page"] .foot-ic { background: #0D9488; color: #fff; }
/* The dashed cut sits on the seam, clear of the notches. */
.foot .foot-cut { position: relative; z-index: 1; height: 0; margin: 0; border: 0; }
.foot .foot-cut::before { content: ""; position: absolute; top: -2px; left: 28px; right: 28px; border-top: 2px dashed var(--foot-line); }
/* The stub below the cut is tinted, like the torn-off part of a ticket. */
.foot .foot-stub {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding: 24px 48px 28px;
  border-top: 0; border-radius: 0 0 var(--foot-radius) var(--foot-radius);
  background: radial-gradient(circle at 0 0, var(--foot-ring)), radial-gradient(circle at 100% 0, var(--foot-ring)), var(--foot-stub);
  -webkit-mask: radial-gradient(circle at 0 0, var(--foot-hole)) 0 0 / 51% 100% no-repeat, radial-gradient(circle at 100% 0, var(--foot-hole)) 100% 0 / 51% 100% no-repeat;
          mask: radial-gradient(circle at 0 0, var(--foot-hole)) 0 0 / 51% 100% no-repeat, radial-gradient(circle at 100% 0, var(--foot-hole)) 100% 0 / 51% 100% no-repeat;
}
.foot .foot-promise { display: flex; align-items: center; gap: 14px; max-width: 96ch; color: var(--foot-ink-2); font-size: 14px; line-height: 1.6; }
.foot .foot-promise strong { color: var(--foot-ink); font-weight: 600; }
.foot .foot-promise a { color: var(--foot-ink); text-decoration-color: var(--foot-lilac-2); text-underline-offset: 3px; }
.foot .foot-promise svg { flex: none; box-sizing: content-box; width: 18px; height: 18px; padding: 9px; border-radius: 50%; background: var(--foot-disc); color: var(--foot-lilac); }
.foot .foot-copy { color: var(--foot-ink-3); font-size: 13.5px; white-space: nowrap; }

/* Below 1240 px the columns would wrap their longest labels, so the intro goes on top. */
@media (max-width: 1240px) {
  .foot .foot-main { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 760px) {
  .foot { --foot-radius: 28px; --foot-r: 11px; }
  .foot .foot-main { gap: 36px; padding: 28px 20px 32px; }
  .foot .foot-store img, .foot .foot-soon { height: 40px; }
  .foot .foot-stores { gap: 8px; }
  .foot .foot-soon { gap: 6px; padding: 0 10px 0 8px; font-size: 12.5px; }
  /* Groups fold into rows: a tap on the heading opens its links. */
  .foot .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--foot-line); }
  .foot .foot-col { border-bottom: 1px solid var(--foot-line); }
  .foot .foot-col > summary { min-height: 60px; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .foot .foot-col > summary:focus-visible { outline-offset: -3px; }
  .foot .foot-h { font-size: 16px; }
  .foot .foot-chev { display: block; }
  .foot .foot-col[open] .foot-chev { transform: rotate(180deg); }
  .foot .foot-col ul { gap: 2px; padding: 0 0 16px; }
  .foot .foot-col a { display: flex; min-height: 48px; font-size: 15.5px; color: var(--foot-ink); }
  .foot .foot-cut::before { left: 16px; right: 16px; }
  .foot .foot-stub { padding: 20px 20px 24px; }
  .foot .foot-promise { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .foot .foot-chev, .foot .foot-ic { transition: none; }
}

/* The social row under the store badges (owner 2026-10-19): Facebook, Instagram, LinkedIn as round line icons. */
.foot .foot-social { display: flex; gap: 8px; margin-top: 4px; }
.foot .foot-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--foot-line, rgba(11, 43, 46, .12)); background: var(--foot-disc); color: var(--foot-ink-2); transition: background-color .2s, color .2s, border-color .2s; }
.foot .foot-social a:hover, .foot .foot-social a:focus-visible { background: #0D9488; border-color: #0D9488; color: #fff; }
.foot .foot-social svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Icons drawn from the sprite (<use href="/icons/ui.svg#…">) carry no stroke width of their own: the footer's 1.8. */
.foot svg:not([stroke-width]) { stroke-width: 1.8; }
