/* Demo design system (templates/site). Theme tokens are injected per site into :root
   by the builder (colours, fonts, radius); everything else derives from them with
   color-mix(), so one stylesheet serves every business and still looks like theirs. */

/* ---------- tokens & derived values ---------- */
:root {
  --radius-none: 0; --radius-sm: 6px; --radius-md: 14px; --radius-lg: 24px; --radius-full: 999px;
  --r: var(--radius-md);
  --container: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --header-h: 76px;
  --muted: color-mix(in srgb, var(--text) 64%, var(--bg));
  --line: color-mix(in srgb, var(--text) 12%, var(--bg));
  --line-strong: color-mix(in srgb, var(--text) 22%, var(--bg));
  --primary-soft: color-mix(in srgb, var(--primary) 10%, var(--bg));
  --primary-softer: color-mix(in srgb, var(--primary) 5%, var(--bg));
  --secondary-soft: color-mix(in srgb, var(--secondary) 12%, var(--bg));
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--text) 8%, transparent), 0 2px 8px color-mix(in srgb, var(--text) 6%, transparent);
  --shadow-md: 0 8px 24px color-mix(in srgb, var(--text) 12%, transparent), 0 2px 6px color-mix(in srgb, var(--text) 8%, transparent);
  --shadow-lg: 0 24px 60px color-mix(in srgb, var(--text) 20%, transparent);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --step--1: clamp(.86rem, .82rem + .2vw, .95rem);
  --step-0: clamp(1rem, .95rem + .25vw, 1.125rem);
  --step-1: clamp(1.15rem, 1.05rem + .5vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 3.6rem);
  --step-5: clamp(2.6rem, 1.6rem + 5vw, 5.2rem);
}
[data-radius="none"] { --r: var(--radius-none); }
[data-radius="sm"] { --r: var(--radius-sm); }
[data-radius="lg"] { --r: var(--radius-lg); }
[data-radius="full"] { --r: var(--radius-lg); }
[data-mood="dark"] {
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 2px 8px rgba(0,0,0,.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.6);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; background-size: cover; background-position: center; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-1); font-weight: 650; }
[data-headings="uppercase"] h1, [data-headings="uppercase"] h2, [data-headings="uppercase"] .eyebrow { text-transform: uppercase; letter-spacing: .04em; }
[data-headings="uppercase"] h1 { letter-spacing: .02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 60%, transparent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--primary); color: var(--primary-ink); }
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.small { font-size: var(--step--1); }
.muted { color: var(--muted); }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 62ch; line-height: 1.55; }
.eyebrow {
  font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--secondary); margin: 0 0 .9em;
}
.eyebrow.on-dark { color: rgba(255,255,255,.85); }
.eyebrow.on-primary { color: color-mix(in srgb, var(--primary-ink) 80%, transparent); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--primary); color: var(--primary-ink); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.big { width: 2.2rem; height: 2.2rem; }
.img-cover { width: 100%; height: 100%; object-fit: cover; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em; padding: .8em 1.5em; border-radius: var(--r); border: 2px solid transparent;
  font-weight: 650; font-size: var(--step-0); line-height: 1.1; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s; white-space: nowrap;
}
[data-radius="full"] .btn, [data-radius="full"] .chips li, [data-radius="full"] .hours-chips li { border-radius: var(--radius-full); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, var(--text)); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: rgba(255,255,255,.92); color: #111; backdrop-filter: blur(8px); }
.btn-light:hover { background: #fff; }
.btn-lg { padding: 1em 1.9em; font-size: var(--step-0); }
.btn-sm { padding: .55em 1em; font-size: var(--step--1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips li {
  padding: .45em .95em; border-radius: var(--r); font-size: var(--step--1); font-weight: 600;
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(10px);
}
.hero-split .chips li, .hero-mosaic .chips li, .hero-minimal .chips li { background: var(--primary-soft); color: var(--text); border-color: transparent; }
.chips.center { justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line); transition: background .35s, border-color .35s, box-shadow .35s, color .35s;
}
.site-header.over-hero:not(.scrolled) { background: transparent; border-color: transparent; color: #fff; }
.site-header.over-hero:not(.scrolled) .nav a, .site-header.over-hero:not(.scrolled) .wordmark { color: #fff; }
.site-header.over-hero:not(.scrolled) .burger span { background: #fff; }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: inherit; flex: none; max-width: 38%; }
.brand .logo { height: 44px; width: auto; max-width: 240px; object-fit: contain; object-position: left center; }
.site-header.over-hero:not(.scrolled) .brand .logo { filter: drop-shadow(0 1px 6px rgba(0,0,0,.35)); }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); letter-spacing: -.01em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { min-width: 0; }
.nav ul { display: flex; gap: 2px; flex-wrap: nowrap; overflow: hidden; }
.nav li { flex: none; }
.nav a { display: block; padding: .55em .8em; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 550; font-size: var(--step--1); transition: background .2s; white-space: nowrap; }
.nav a:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
/* burger: a visible pill (Hrvoje 2026-08-27: three hairlines on a photo were invisible on a phone) */
.burger { display: none; width: 48px; height: 44px; padding: 0; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; align-items: center; border-radius: 12px; box-shadow: var(--shadow-sm); transition: background .25s, border-color .25s; }
.burger span { display: block; width: 24px; height: 3px; background: var(--text); border-radius: 3px; transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.site-header.over-hero:not(.scrolled) .burger { background: rgba(0,0,0,.3); border-color: rgba(255,255,255,.5); box-shadow: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (max-width: 900px) {
  .burger { display: flex; }
  .brand { max-width: calc(100% - 130px); }
  .header-cta span { display: none; }
  .header-cta { padding: .6em .75em; }
  /* dropdown card under the header, right-aligned to the burger */
  .nav { position: absolute; top: calc(100% + 8px); right: var(--gutter); left: auto; width: min(340px, calc(100vw - 2 * var(--gutter))); max-height: calc(100svh - var(--header-h) - 24px); overflow: auto; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 8px; transform: translateY(-6px) scale(.98); transform-origin: top right; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav ul { flex-direction: column; gap: 2px; overflow: visible; }
  .nav a { font-size: var(--step-0); font-weight: 600; padding: .85em 1em; border-radius: 10px; color: var(--text) !important; border-bottom: 0; white-space: normal; }
  .nav a:hover, .nav a:active { background: var(--primary-soft); }
  .nav li:last-child a { margin-top: 4px; background: var(--primary); color: var(--primary-ink) !important; text-align: center; }
  body.nav-open .site-header { background: var(--bg); color: var(--text); border-color: var(--line); }
  body.nav-open .site-header .wordmark { color: var(--text); }
  body.nav-open .burger { background: var(--surface); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
  body.nav-open .burger span { background: var(--text); }
}

/* ---------- hero ---------- */
.hero { position: relative; }
.hero .display { margin-bottom: .35em; }
.hero-sub { font-size: var(--step-1); max-width: 58ch; line-height: 1.5; margin-bottom: 1.6em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.hero-actions.center { justify-content: center; }
.hero-fullbleed, .hero-band {
  min-height: 100svh; display: flex; align-items: flex-end; color: #fff; padding: calc(var(--header-h) + 48px) 0 clamp(56px, 8vw, 110px); isolation: isolate;
}
.hero-band { min-height: 70svh; align-items: center; text-align: center; }
.hero-band .hero-content { margin-inline: auto; }
.hero-band .hero-sub { margin-inline: auto; }
.hero-band .hero-actions { justify-content: center; }
.hero-band .chips { justify-content: center; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--text); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 14s var(--ease) both; transform-origin: center; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.25) 100%); }
.hero-band .hero-shade { background: rgba(0,0,0,.45); }
.hero-fullbleed .hero-content { max-width: 820px; margin-left: 0; margin-right: auto; width: 100%; }
.hero-fullbleed .display, .hero-band .display { text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-fullbleed .hero-sub, .hero-band .hero-sub { color: rgba(255,255,255,.9); }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); color: #fff; opacity: .8; animation: cue 2s infinite; }
.scroll-cue .ic { width: 28px; height: 28px; }
@keyframes cue { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }
.hero-split, .hero-mosaic { padding: calc(var(--header-h) + clamp(32px, 6vw, 80px)) 0 clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-visual { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.hero-visual::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); border-radius: inherit; pointer-events: none; }
.hero-visual img { animation: fadeUp .9s var(--ease) both; }
.hero-text .display { animation: fadeUp .7s var(--ease) both; }
.hero-text .hero-sub, .hero-text .hero-actions, .hero-text .chips, .hero-text .eyebrow { animation: fadeUp .8s .1s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.mosaic { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 1; }
.mosaic-cell { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-md); }
.mosaic-cell:first-child { grid-row: 1 / 3; }
.mosaic-1 .mosaic-cell:first-child { grid-column: 1 / 3; }
.mosaic-2 { grid-template-rows: 1fr; aspect-ratio: 4 / 3; }
.mosaic-2 .mosaic-cell:first-child { grid-row: auto; }
.hero-minimal { padding: calc(var(--header-h) + clamp(56px, 10vw, 120px)) 0 clamp(56px, 9vw, 110px); overflow: hidden; text-align: center; }
.hero-minimal .hero-content { max-width: 860px; margin-inline: auto; position: relative; }
.hero-minimal .hero-sub { margin-inline: auto; }
.hero-logo { max-height: 120px; width: auto; margin: 0 auto 28px; object-fit: contain; }
.hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.hero-orbs span { position: absolute; width: 48vw; height: 48vw; max-width: 700px; max-height: 700px; border-radius: 50%; filter: blur(80px); opacity: .35; }
.hero-orbs span:first-child { background: var(--primary); top: -20%; left: -10%; }
.hero-orbs span:last-child { background: var(--secondary); bottom: -30%; right: -10%; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 4 / 3; }
  .hero-fullbleed { min-height: 92svh; }
  .mosaic { aspect-ratio: 4 / 3; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.sec-cta.v-band + .section, .sec-gallery.v-strip + .section, .sec-bonus + .section { padding-top: var(--section); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head h2 { margin-bottom: .35em; }
.section-head .lead { margin-bottom: 0; }
.section-cta { margin: 36px 0 0; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: clamp(16px, 2.5vw, 28px); grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.nav li.nav-overflow { display: none; }
@media (max-width: 900px) { .nav li.nav-overflow { display: block; } }

/* cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media.tall { aspect-ratio: 3 / 2; }
.card-media img { transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: clamp(18px, 2.4vw, 26px); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body p { margin: 0 0 8px; color: var(--muted); }
.card-body h3 { margin-bottom: 6px; }
.card.icon-card { padding: clamp(20px, 2.6vw, 28px); gap: 6px; }
.card.icon-card p { color: var(--muted); margin: 0; }
.icon-bubble { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: calc(var(--r) * .8); background: var(--primary-soft); color: var(--primary); margin-bottom: 14px; }
.icon-bubble .ic { width: 24px; height: 24px; }
.price { font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; white-space: nowrap; margin-top: auto; }

/* split / about */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-grid.no-image { grid-template-columns: 1fr; max-width: 760px; }
.split-grid.flip .split-visual { order: 2; }
.split-visual { border-radius: var(--r); overflow: hidden; aspect-ratio: 5 / 4; box-shadow: var(--shadow-md); }
.split-text .lead { color: var(--text); }
.split-text h3 { font-size: var(--step-2); }
.alternating { display: grid; gap: clamp(48px, 7vw, 96px); }
.alternating .split-visual { aspect-ratio: 4 / 3; }
.columns-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 72px); }
.columns-visual { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; margin-top: 24px; }
.centered-text { max-width: 760px; margin-inline: auto; text-align: center; }
.centered-text .lead { margin-inline: auto; color: var(--text); }
.wide-visual { margin-top: clamp(32px, 5vw, 56px); border-radius: var(--r); overflow: hidden; aspect-ratio: 21 / 9; box-shadow: var(--shadow-md); }
.highlights { display: grid; gap: 12px; margin: 24px 0 28px; }
.highlights li { display: flex; gap: 12px; align-items: flex-start; }
.highlights .ic { width: 22px; height: 22px; color: var(--primary); margin-top: 3px; }
.highlights strong { display: block; }
.highlights span { color: var(--muted); }
.highlights.row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); text-align: left; }
@media (max-width: 900px) {
  .split-grid, .columns-grid { grid-template-columns: 1fr; }
  .split-grid.flip .split-visual { order: 0; }
}

/* service list */
.service-list { display: grid; counter-reset: s; border-top: 1px solid var(--line); }
.service-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.service-list .num { font-family: var(--font-display); color: var(--secondary); font-weight: 700; font-size: var(--step-1); }
.service-list h3 { margin-bottom: 4px; }
.service-list p { margin: 0; color: var(--muted); }

/* menu */
.menu-layout { display: grid; gap: clamp(28px, 5vw, 64px); }
.menu-layout.has-image { grid-template-columns: 1.3fr .8fr; align-items: start; }
.menu-visual { border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; position: sticky; top: calc(var(--header-h) + 24px); box-shadow: var(--shadow-md); }
.menu-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 48px) clamp(28px, 5vw, 64px); }
.menu-groups.single { grid-template-columns: 1fr; max-width: 760px; }
.menu-group h3 { font-size: var(--step-2); padding-bottom: 10px; border-bottom: 2px solid var(--primary); display: inline-block; margin-bottom: 14px; }
.menu li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; }
.dish { display: flex; flex-direction: column; }
.dish-name { font-weight: 600; }
.dish small { color: var(--muted); font-size: var(--step--1); }
.leader { flex: 1; border-bottom: 1px dotted var(--line-strong); min-width: 16px; transform: translateY(-5px); }
.menu li.no-price .leader { border-bottom: 0; }
.menu .price { margin: 0; }
@media (max-width: 900px) { .menu-layout.has-image { grid-template-columns: 1fr; } .menu-visual { position: static; aspect-ratio: 4 / 3; } }
@media (max-width: 640px) { .menu-groups { grid-template-columns: 1fr; } }

/* galleries */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-grid figure, .gallery-featured figure, .gallery-masonry figure, .strip-item { margin: 0; position: relative; }
.lb { display: block; overflow: hidden; border-radius: calc(var(--r) * .7); aspect-ratio: 4 / 3; background: var(--line); }
.lb img { transition: transform .7s var(--ease), filter .4s; }
.lb:hover img { transform: scale(1.05); }
figcaption { position: absolute; left: 12px; bottom: 12px; right: 12px; font-size: var(--step--1); color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); pointer-events: none; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease); }
figure:hover figcaption { opacity: 1; transform: none; }
.gallery-featured { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 12px; }
.gallery-featured .big { grid-column: span 2; grid-row: span 2; }
.gallery-featured .big .lb { aspect-ratio: auto; height: 100%; }
.gallery-featured .lb { aspect-ratio: 1; }
.gallery-masonry { columns: 3; column-gap: 12px; }
.gallery-masonry figure { break-inside: avoid; margin-bottom: 12px; }
.gallery-masonry .lb { aspect-ratio: auto; }
.gallery-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 20px; scrollbar-width: thin; }
.gallery-strip .strip-item { flex: 0 0 min(78vw, 520px); scroll-snap-align: center; }
.gallery-strip .lb { aspect-ratio: 4 / 5; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-masonry { columns: 2; } .gallery-featured { grid-template-columns: repeat(2, 1fr); } .gallery-featured .big { grid-column: span 2; grid-row: span 1; } .gallery-featured .big .lb { aspect-ratio: 16 / 10; } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr; } }

/* units */
.unit-list { display: grid; gap: 20px; }
.unit-row { display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.unit-row.no-image { grid-template-columns: 1fr; }
.unit-media { aspect-ratio: 4 / 3; }
.unit-body { padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; }
.unit-body p { color: var(--muted); }
@media (max-width: 720px) { .unit-row { grid-template-columns: 1fr; } }

/* features */
.feature { padding: 8px 0; }
.feature p { color: var(--muted); margin: 0; }
.feature-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; padding: clamp(18px, 3vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.feature-row li { display: flex; gap: 14px; align-items: center; }
.feature-row .ic { width: 30px; height: 30px; color: var(--primary); }
.feature-row strong { display: block; }
.feature-row span { color: var(--muted); font-size: var(--step--1); }

/* hours */
.hours-wrap { max-width: 640px; }
.hours-table { width: 100%; border-collapse: collapse; font-size: var(--step-0); }
.hours-table th, .hours-table td { padding: 14px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.hours-table th { font-weight: 600; width: 45%; }
.hours-table td { font-variant-numeric: tabular-nums; color: var(--muted); }
.hours-table tr.today th, .hours-table tr.today td { color: var(--primary); font-weight: 700; }
.hours-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hours-chips li { padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: grid; }
.hours-chips span { color: var(--muted); font-variant-numeric: tabular-nums; }
.open-now { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: var(--step--1); margin: 0 0 18px; }
.open-now .dot { width: 9px; height: 9px; border-radius: 50%; background: #2fa55a; box-shadow: 0 0 0 4px rgba(47,165,90,.18); }
.open-now.closed .dot { background: #c94b3a; box-shadow: 0 0 0 4px rgba(201,75,58,.18); }
.hours { display: grid; gap: 4px; }

/* faq */
.faq-list { max-width: 800px; margin-inline: auto; display: grid; gap: 10px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 clamp(16px, 2.4vw, 24px); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 650; font-size: var(--step-0); }
.faq summary::-webkit-details-marker { display: none; }
.faq .chev { transition: transform .3s var(--ease); color: var(--muted); }
.faq[open] .chev { transform: rotate(180deg); color: var(--primary); }
.faq-body { padding: 0 0 18px; color: var(--muted); }
.faq-body p { margin: 0; }

/* cta */
.sec-cta.v-band { position: relative; isolation: isolate; color: #fff; padding-block: clamp(72px, 10vw, 140px); background: var(--primary); text-align: center; }
.band-media { position: absolute; inset: 0; z-index: -1; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band-shade { position: absolute; inset: 0; background: color-mix(in srgb, var(--primary) 55%, rgba(0,0,0,.55)); }
.band-content { max-width: 760px; }
.band-content h2 { color: #fff; }
.band-content .lead { color: rgba(255,255,255,.88); margin-inline: auto; }
.sec-cta.v-band:not(.has-image) .band-content h2 { color: var(--primary-ink); }
.sec-cta.v-band:not(.has-image) .band-content .lead { color: color-mix(in srgb, var(--primary-ink) 85%, transparent); }
.cta-box { background: var(--primary); color: var(--primary-ink); border-radius: var(--r); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center; box-shadow: var(--shadow-md); }
.cta-box h2 { color: inherit; font-size: var(--step-3); }
.cta-box .lead { color: color-mix(in srgb, var(--primary-ink) 82%, transparent); margin: 0; }
@media (max-width: 720px) { .cta-box { grid-template-columns: 1fr; } }

/* documents */
.doc-list { display: grid; gap: 12px; max-width: 760px; }
.doc { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--text); text-decoration: none; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.doc:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.doc .ic { width: 28px; height: 28px; color: var(--primary); }
.doc div { flex: 1; display: grid; }
.doc span:not(.doc-dl) { color: var(--muted); font-size: var(--step--1); }
.doc-dl { color: var(--primary); font-weight: 600; font-size: var(--step--1); }

/* map */
.map-box { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); min-height: 340px; display: grid; }
.map-placeholder { display: grid; place-items: center; gap: 10px; text-align: center; padding: 40px 24px; align-content: center; }
.map-placeholder .ic { color: var(--primary); }
.map-address { font-weight: 600; font-size: var(--step-1); margin: 0; }
.map-placeholder .small { margin: 6px 0 0; max-width: 46ch; }
.map-box iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.video-box { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); aspect-ratio: 16 / 9; display: grid; max-width: 960px; margin-inline: auto; }
.video-placeholder { display: grid; place-items: center; gap: 10px; text-align: center; padding: 40px 24px; align-content: center; }
.video-placeholder .ic { color: var(--primary); }
.video-placeholder .small { margin: 6px 0 0; max-width: 46ch; }
.video-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-map { margin-top: clamp(32px, 5vw, 56px); }

/* bonus business card (demo builds only - src/demo/card.py, sections/bonus_card.html).
   A brand-coloured band; the two card sides are container-query boxes, so every measure on a
   card is a share of its own width (cqw) and the pair scales with the column - phone included.
   Proportions from the design handoff: 850 px card = 100cqw, 6 mm margin = 7cqw, 16 mm QR = 18.8cqw. */
.section.sec-bonus { position: relative; isolation: isolate; padding-block: var(--section); color: var(--primary-ink); overflow: hidden;
  background: radial-gradient(120% 100% at 78% 30%, color-mix(in srgb, var(--primary) 88%, #fff) 0%, var(--primary) 45%, color-mix(in srgb, var(--primary) 80%, #000) 100%); }
.bonus-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.bonus-text h2 { color: inherit; }
.bonus-text .lead { color: color-mix(in srgb, var(--primary-ink) 85%, transparent); }
.bonus-note { color: color-mix(in srgb, var(--primary-ink) 62%, transparent); margin: 14px 0 0; max-width: 52ch; }
.bonus-stage { position: relative; width: 100%; max-width: 640px; margin-inline: auto; aspect-ratio: 100 / 94; }
.bcard { position: absolute; container-type: inline-size; aspect-ratio: 85 / 55; background: var(--card-paper); color: var(--card-ink); border-radius: 3px; overflow: hidden; font-family: var(--font-body); }
.bcard::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 20% 0%, rgba(255,255,255,.7), rgba(255,255,255,0) 55%), radial-gradient(100% 90% at 100% 100%, rgba(20,33,58,.06), rgba(20,33,58,0) 60%); }
.bcard-front { width: 86%; left: 5%; top: 2%; z-index: 2; transform: rotate(-7deg);
  box-shadow: 0 1px 0 #e4e4df, 0 2px 0 #d5d5cf, 0 30px 50px -14px rgba(0,0,0,.48), 0 70px 100px -24px rgba(0,0,0,.4); }
.bcard-back { width: 79%; left: 14%; top: 38%; transform: rotate(5deg);
  box-shadow: 0 1px 0 #e4e4df, 0 2px 0 #d5d5cf, 0 24px 44px -12px rgba(0,0,0,.42), 0 60px 90px -24px rgba(0,0,0,.36); }
.bc-tag { position: absolute; left: 7cqw; right: 7cqw; top: 6.5cqw; margin: 0; text-align: center; font-weight: 600; font-size: 3cqw; line-height: 1.25; letter-spacing: .1em; text-transform: uppercase; text-wrap: balance; }
.bc-brand { position: absolute; inset: 0; display: grid; place-items: center; padding: 15cqw 7cqw 9cqw; }
.bc-wordmark { font-family: var(--font-display); font-weight: 800; font-size: 10.5cqw; line-height: 1; letter-spacing: -.03em; text-align: center; text-wrap: balance; }
.bc-wordmark.long { font-size: 8cqw; }
.bc-wordmark.xlong { font-size: 6.2cqw; }
.bc-logo { display: block; max-width: 70cqw; max-height: 20cqw; width: auto; height: auto; object-fit: contain; }
.bc-contact { position: absolute; left: 7cqw; bottom: 7cqw; display: grid; gap: .7cqw; font-weight: 500; font-size: 3.3cqw; line-height: 1.35; }
.bc-qr { position: absolute; right: 7cqw; bottom: 7cqw; width: 18.8cqw; height: 18.8cqw; display: block; }
@media (max-width: 900px) { .bonus-grid { grid-template-columns: 1fr; } .bonus-stage { max-width: 520px; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); }
.contact-grid.no-form { grid-template-columns: 1fr; max-width: 640px; }
.contact-info { display: grid; gap: 22px; align-content: start; }
.contact-line { display: flex; gap: 14px; margin: 0; align-items: flex-start; }
.contact-line .ic { width: 24px; height: 24px; color: var(--primary); margin-top: 4px; }
.contact-line > span { display: grid; gap: 2px; }
.lbl { font-size: var(--step--1); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 0; }
.contact-form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 3vw, 32px); }
.contact-form .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot: humans never see it, bots fill it */
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: var(--step--1); }
.contact-form input, .contact-form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: calc(var(--r) * .6); background: var(--bg); color: var(--text); width: 100%; transition: border-color .2s, box-shadow .2s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { justify-self: start; }
.form-note { margin: 0; }
.form-note.sent { color: #2fa55a; font-weight: 600; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, var(--bg)); padding: clamp(40px, 6vw, 64px) 0 28px; color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand .logo { height: 40px; width: auto; max-width: 180px; margin-bottom: 12px; object-fit: contain; object-position: left; }
.footer-brand .wordmark { display: block; margin-bottom: 8px; }
.footer-nav { display: grid; gap: 6px; align-content: start; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--primary); }
/* v3 subpages: the page header is a shorter hero; the nav marks the page you are on */
.hero-band.hero-page { min-height: 48svh; }
.hero-minimal.hero-page { padding-bottom: clamp(32px, 5vw, 56px); }
.nav a[aria-current="page"] { background: color-mix(in srgb, currentColor 12%, transparent); }
.footer-contact p { margin: 0 0 4px; }
.footer-contact a { color: var(--text); }
.footer-legal { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-legal p { margin: 0; }
.demo-note { opacity: .8; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; gap: 22px; } }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; color: #fff; }
.lightbox::backdrop { background: rgba(10,10,10,.92); backdrop-filter: blur(6px); }
.lightbox figure { margin: 0; display: grid; place-items: center; height: 100%; padding: 56px 64px; gap: 12px; grid-template-rows: 1fr auto; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 130px); object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox figcaption { position: static; opacity: 1; transform: none; text-shadow: none; color: rgba(255,255,255,.85); text-align: center; }
.lightbox button { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lightbox button:hover { background: rgba(255,255,255,.18); }
.lightbox .ic { width: 26px; height: 26px; }
/* `.lightbox .lb-*` (2026-09-10): the three rules below used to be bare `.lb-*` and lost `top` / `transform` to
   `.lightbox button` above (0,1,1 beats 0,1,0), so the X sat at mid-height under the next arrow and could not be
   clicked - Hrvoje: "only if i press esc does it close" */
.lightbox .lb-prev { left: 16px; }
.lightbox .lb-next { right: 16px; }
.lightbox .lb-close { top: 16px; right: 16px; transform: none; }
@media (max-width: 720px) { .lightbox figure { padding: 64px 12px 24px; } .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 0; transform: none; } .lightbox img { max-height: calc(100vh - 150px); } }

/* motion */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- "Mobilne aplikacije" (agency site, hand-written type "apps"; 2026-09-06) ----------
   Page-level text reuses .eyebrow / h2 / .lead / .highlights / .btn and the theme tokens. The two phones are
   pure CSS in em units: .apps-box sets the em from the column width (container query), so they scale with it.
   Colours inside the screens are the handoff's (clients' example apps), not the theme's. */
.section.sec-apps { background: var(--surface); padding-top: var(--section); overflow: hidden; }
.sec-apps + .section { padding-top: var(--section); }
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px 64px; align-items: center; }
.apps-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.apps-text .eyebrow, .apps-text h2, .apps-text .lead { margin: 0; }
.apps-text .lead { max-width: 56ch; text-wrap: pretty; }
.apps-list { list-style: none; padding: 0; margin: 6px 0 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px 28px; max-width: 640px; }
.apps-list .ic { flex: none; padding: 5px; border-radius: 50%; background: var(--primary-soft); margin-top: 2px; }
.apps-list strong { line-height: 1.35; }
.apps-list span { font-size: var(--step--1); line-height: 1.5; }
.apps-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin: 10px 0 0; }
/* the stage: glow + two staggered phones */
.apps-stage { position: relative; width: 100%; max-width: 560px; margin-inline: auto; container-type: inline-size; min-width: 0; }
.apps-glow { position: absolute; inset: -8% -12% -6%; background: radial-gradient(58% 52% at 52% 52%, color-mix(in srgb, var(--primary) 17%, transparent), transparent 72%); pointer-events: none; }
.apps-box { position: relative; font-size: 2.058cqw; height: 62em; line-height: 1.3; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
.phone { position: absolute; width: 27em; height: 56em; }
.phone-front { left: 0; bottom: 0; z-index: 2; }
.phone-back { left: 27.67em; top: 0; font-size: .889em; z-index: 1; }
.ph-btn { position: absolute; left: -.24em; width: .3em; border-radius: .15em 0 0 .15em; background: linear-gradient(90deg, #3a3d43, #181a1d); }
.ph-btn.l1 { top: 9.5em; height: 2.2em; }
.ph-btn.l2 { top: 13.6em; height: 4.6em; }
.ph-btn.l3 { top: 19.2em; height: 4.6em; }
.ph-btn.r { left: auto; right: -.24em; top: 15.4em; height: 7em; border-radius: 0 .15em .15em 0; background: linear-gradient(90deg, #181a1d, #3a3d43); }
.ph-frame { position: absolute; inset: 0; border-radius: 4.6em; background: linear-gradient(160deg, #6b6f76 0%, #2c2f34 22%, #15171a 50%, #2a2d32 78%, #5c6067 100%);
  box-shadow: inset 0 0 0 .1em rgba(255,255,255,.28), 0 2.8em 4.4em -1.4em rgba(8,30,52,.5), 0 .9em 1.8em -.6em rgba(0,0,0,.35); }
.phone-back .ph-frame { box-shadow: inset 0 0 0 .1em rgba(255,255,255,.26), 0 2.2em 3.6em -1.4em rgba(8,30,52,.38), 0 .8em 1.6em -.6em rgba(0,0,0,.3); }
.ph-bezel { position: absolute; inset: .36em; border-radius: 4.25em; background: #07080a; box-shadow: inset 0 0 .6em rgba(0,0,0,.9); }
.ph-screen { position: absolute; inset: 1.15em; border-radius: 3.5em; overflow: hidden; }
.ph-cam { position: absolute; top: .85em; left: 50%; transform: translateX(-50%); width: 7.4em; height: 2.15em; border-radius: 1.1em; background: #000; display: flex; align-items: center; justify-content: flex-end; padding-right: .55em; }
.ph-cam i { width: .95em; height: .95em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3d5c, #05070c 70%); }
.ph-glass { position: absolute; inset: 0; border-radius: 3.5em; background: linear-gradient(112deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.07) 26%, rgba(255,255,255,0) 40%); pointer-events: none; }
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 3.4em; padding: 1.3em 2.3em 0 2.5em; }
.ph-status b { font-size: 1.25em; font-weight: 600; }
.ph-status div { display: flex; align-items: center; gap: .5em; }
.ph-signal { display: flex; align-items: flex-end; gap: .13em; }
.ph-signal i { width: .3em; background: currentColor; border-radius: .05em; }
.ph-signal i:nth-child(1) { height: .5em; } .ph-signal i:nth-child(2) { height: .7em; } .ph-signal i:nth-child(3) { height: .9em; } .ph-signal i:nth-child(4) { height: 1.1em; }
.ph-batt { display: block; width: 2.2em; height: 1.1em; border: .13em solid currentColor; border-radius: .35em; padding: .12em; }
.ph-batt i { display: block; width: 82%; height: 100%; background: currentColor; border-radius: .12em; }
.ph-home { width: 8em; height: .45em; border-radius: .3em; background: currentColor; opacity: .85; margin: .9em auto 0; }
/* screen 1 - "Obrt Marić", a bookkeeping app (front phone) */
.app-book { background: #f5f7f9; color: #0f1f2e; }
.ab-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3em 1.8em .3em; }
.ab-head small { display: block; font-size: 1.05em; color: #5b6875; }
.ab-head strong { display: block; font-size: 1.55em; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; margin-top: .15em; }
.ab-avatar { width: 3.2em; height: 3.2em; border-radius: 50%; background: #dbe7e2; color: #0e7c5b; display: grid; place-items: center; font-weight: 700; }
.ab-avatar span { font-size: 1.35em; }
.ab-hero { margin: 1.1em 1.8em 0; padding: 1.4em 1.5em 1.5em; border-radius: 1.6em; background: #0f1f2e; color: #fff; }
.ab-hero small { display: block; font-size: 1.05em; color: #a9b6c3; }
.ab-hero strong { display: block; font-size: 2.5em; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: .2em; }
.ab-badge { display: inline-flex; align-items: center; gap: .5em; margin-top: .9em; padding: .4em .8em .4em .7em; border-radius: 99em; background: rgba(52,199,123,.18); color: #5fe3a1; font-size: 1.05em; font-weight: 600; }
.ab-badge i { width: .55em; height: .55em; border-left: .16em solid currentColor; border-top: .16em solid currentColor; transform: translateY(.12em) rotate(45deg); }
.ab-card { margin: .9em 1.8em 0; padding: 1.3em 1.5em 1.2em; border-radius: 1.6em; background: #fff; border: .08em solid #e3e8ed; }
.ab-ct { display: flex; justify-content: space-between; align-items: baseline; }
.ab-ct b { font-size: 1.2em; font-weight: 600; }
.ab-ct span { font-size: 1em; color: #5b6875; }
.ab-bars { display: flex; align-items: flex-end; gap: .6em; height: 8.5em; margin-top: 1.2em; }
.ab-bars i { flex: 1; border-radius: .4em .4em .15em .15em; background: #cfe0d9; }
.ab-bars i:nth-child(1) { height: 34%; } .ab-bars i:nth-child(2) { height: 42%; } .ab-bars i:nth-child(3) { height: 40%; } .ab-bars i:nth-child(4) { height: 55%; }
.ab-bars i:nth-child(5) { height: 63%; } .ab-bars i:nth-child(6) { height: 74%; background: #9fc4b5; } .ab-bars i:nth-child(7) { height: 100%; background: #0e7c5b; }
.ab-labels { display: flex; gap: .6em; margin-top: .5em; }
.ab-labels span { flex: 1; text-align: center; font-size: .9em; color: #5b6875; }
.ab-labels span:last-child { color: #0e7c5b; font-weight: 700; }
.ab-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; margin: .9em 1.8em 0; }
.ab-kpi { padding: 1.1em 1.2em; border-radius: 1.4em; background: #fff; border: .08em solid #e3e8ed; }
.ab-kpi small { display: block; font-size: 1em; color: #5b6875; }
.ab-kpi strong { display: block; font-size: 1.35em; font-weight: 700; margin-top: .3em; letter-spacing: -.01em; }
.ab-kpi span { display: block; font-size: .95em; color: #5b6875; margin-top: .15em; }
.ab-kpi span.up { color: #0e7c5b; font-weight: 600; }
.ab-tabs { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2em 1.8em .6em; background: #f5f7f9; border-top: .08em solid #e3e8ed; }
.ab-tabs > div { display: flex; justify-content: space-around; padding: .2em .2em 0; }
.ab-tabs span { display: flex; flex-direction: column; align-items: center; gap: .4em; color: #5b6875; }
.ab-tabs span i { width: 1.7em; height: 1.7em; border-radius: .5em; background: #c9d2db; }
.ab-tabs span b { font-size: .95em; font-weight: 500; }
.ab-tabs span.on { color: #0e7c5b; }
.ab-tabs span.on i { background: #0e7c5b; }
.ab-tabs span.on b { font-weight: 600; }
/* screen 2 - "Salon Ema", an appointment-booking app (back phone) */
.app-salon { background: #fff; color: #111827; }
.as-top { display: flex; align-items: center; justify-content: space-between; padding: 1.1em 1.8em .2em; }
.as-top i { display: block; width: 1.2em; }
.as-top .as-back { width: .8em; height: .8em; border-left: .16em solid #111827; border-bottom: .16em solid #111827; transform: rotate(45deg); margin-left: .4em; }
.as-top b { font-size: 1.3em; font-weight: 600; white-space: nowrap; }
.as-row { display: flex; align-items: center; gap: 1em; padding: 1em 1.8em 0; }
.as-avatar { width: 3.3em; height: 3.3em; border-radius: 50%; background: #ede9fe; color: #6d28d9; display: grid; place-items: center; font-weight: 700; }
.as-avatar span { font-size: 1.4em; }
.as-row strong { display: block; font-size: 1.4em; font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.as-row small { display: block; font-size: 1.05em; color: #6b7280; margin-top: .2em; }
.as-label { font-size: .95em; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; margin: 1.5em 1.8em .55em; }
.as-opts { display: flex; flex-direction: column; gap: .6em; margin: 0 1.8em; }
.as-opt { display: flex; align-items: center; gap: .9em; padding: .9em 1.1em; border-radius: 1.3em; border: .14em solid #e5e7eb; background: #fff; }
.as-opt.sel { border-color: #6d28d9; background: #f5f3ff; }
.as-radio { flex: none; display: grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; border: .14em solid #d1d5db; }
.as-opt.sel .as-radio { border-color: #6d28d9; }
.as-opt.sel .as-radio::after { content: ""; width: .6em; height: .6em; border-radius: 50%; background: #6d28d9; }
.as-opt > div { flex: 1; min-width: 0; }
.as-opt strong { display: block; font-size: 1.2em; font-weight: 600; line-height: 1.2; }
.as-opt small { display: block; font-size: 1.02em; color: #6b7280; margin-top: .15em; }
.as-opt b { font-size: 1.15em; font-weight: 700; }
.as-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: .3em; margin: 0 1.8em; }
.as-day { display: flex; flex-direction: column; align-items: center; gap: .35em; }
.as-day small { font-size: .9em; color: #6b7280; }
.as-day span { width: 2.7em; height: 2.7em; border-radius: 50%; display: grid; place-items: center; font-size: 1.1em; font-weight: 600; }
.as-day.sel small { color: #6d28d9; font-weight: 600; }
.as-day.sel span { background: #6d28d9; color: #fff; font-weight: 700; }
.as-day.off small, .as-day.off span { color: #9ca3af; }
.as-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; margin: 0 1.8em; }
.as-times span { padding: .75em 0; text-align: center; border-radius: .9em; border: .12em solid #e5e7eb; font-size: 1.1em; font-weight: 600; }
.as-times span.sel { border-color: #6d28d9; background: #6d28d9; color: #fff; font-weight: 700; }
.as-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 2em 1.8em .6em; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.96) 40%); }
.as-btn { padding: 1.15em; border-radius: 1.4em; background: #6d28d9; color: #fff; text-align: center; font-size: 1.2em; font-weight: 600; box-shadow: 0 .8em 1.6em -.6em rgba(109,40,217,.6); }
.as-foot .ph-home { margin-top: 1.1em; }

/* ---------- mobile-app pitch on demo home pages (src/demo/app_pitch.py, 2026-09-06) ----------
   Text = the site's classes; the phone = the .phone/.ph-* shell of the apps section above; the screen
   (.app-demo) mocks the business's own app in the theme's colours and type from the demo's facts. */
.pitch-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pitch-text .lead { max-width: 56ch; }
.pitch-list { margin: 0 0 20px; }
.pitch-note { max-width: 52ch; margin: 0; }
.pitch-stage { position: relative; width: 100%; max-width: 340px; margin-inline: auto; container-type: inline-size; }
.pitch-box { position: relative; font-size: 3.7cqw; height: 56em; line-height: 1.3; }
.pitch-box .phone { left: 0; top: 0; }
.app-demo { background: var(--bg); color: var(--text); font-family: var(--font-body); }
.ad-head { display: flex; align-items: center; min-height: 4.2em; padding: .6em 2em 0; }
.ad-logo { display: block; max-width: 12em; max-height: 3.2em; width: auto; height: auto; object-fit: contain; }
.ad-name { font-family: var(--font-display); font-weight: 800; font-size: 1.7em; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
.ad-name.long { font-size: 1.35em; }
.ad-name.xlong { font-size: 1.1em; }
.ad-hero { position: relative; margin: .9em 1.6em 0; border-radius: 1.4em; overflow: hidden; background: var(--primary); color: var(--primary-ink); min-height: 11em; display: flex; align-items: flex-end; }
.ad-hero .img-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ad-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.62)); }
.ad-hero.has-image { color: #fff; }
.ad-hero-text { position: relative; width: 100%; padding: 1.2em 1.3em 1.3em; display: grid; gap: .8em; justify-items: start; }
.ad-tag { margin: 0; font-size: 1.15em; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.ad-btn { display: inline-block; padding: .55em 1.1em; border-radius: .8em; background: var(--surface); color: var(--text); font-size: 1em; font-weight: 650; line-height: 1.2; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ad-hero:not(.has-image) .ad-btn { background: var(--primary-ink); color: var(--primary); }
.ad-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; margin: .9em 1.6em 0; }
.ad-tile { display: flex; align-items: center; gap: .6em; padding: .9em 1em; border-radius: 1.1em; background: var(--surface); border: .08em solid var(--line); font-size: 1em; font-weight: 600; min-width: 0; }
.ad-tile .ic { width: 1.6em; height: 1.6em; flex: none; color: var(--primary); }
.ad-tile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-rows { display: grid; gap: .55em; margin: .9em 1.6em 0; }
.ad-row { display: flex; align-items: center; gap: .8em; padding: .75em 1em; border-radius: 1.1em; background: var(--surface); border: .08em solid var(--line); font-size: .95em; }
.ad-row .ic { width: 1.5em; height: 1.5em; flex: none; color: var(--primary); }
.ad-row > span { display: grid; min-width: 0; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-row small { font-size: .8em; color: var(--muted); }
.ad-tabs { position: absolute; left: 0; right: 0; bottom: 0; padding: .9em 1.4em .6em; background: var(--surface); border-top: .08em solid var(--line); }
.ad-tabs > div { display: flex; justify-content: space-around; gap: .4em; }
.ad-tabs span { display: flex; flex-direction: column; align-items: center; gap: .35em; color: var(--muted); min-width: 0; max-width: 25%; }
.ad-tabs span .ic { width: 1.6em; height: 1.6em; }
.ad-tabs span b { font-size: .78em; font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-tabs span.on { color: var(--primary); }
.ad-tabs span.on b { font-weight: 650; }
@media (max-width: 900px) { .pitch-grid { grid-template-columns: 1fr; } .pitch-stage { max-width: 300px; } }

/* ---------- booking calendar (hand-written type "booking"; src/demo/booking.py, 2026-09-22) ----------
   Left the month grid (two months, one on phones), right the request form (the contact form's styles).
   Taken days are hatched, the picked range fills with the primary colour; everything from the theme tokens. */
.booking-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.booking-grid > * { min-width: 0; }   /* a long submit label must not widen the column past a phone screen */
.booking-grid.no-cal { grid-template-columns: 1fr; max-width: 640px; }
.booking-form .btn { white-space: normal; text-align: left; }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 2.5vw, 28px); }
.cal-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-res { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--step--1); }
.cal-res select, .booking-form select { font: inherit; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: calc(var(--r) * .6); background: var(--bg); color: var(--text); }
.booking-form select { width: 100%; padding: 12px 14px; }
.cal-nav { display: flex; gap: 6px; margin-left: auto; }
.cal-nav .btn { padding: .4em .9em; line-height: 1; font-size: 1.1rem; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cal-month h3 { font: 700 var(--step-0) var(--font-body); text-align: center; margin: 0 0 8px; }
.cal-month table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-month th { font-size: .72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 4px 0 6px; }
.cal-month td { padding: 2px; text-align: center; }
.day { width: 100%; aspect-ratio: 1; border: 0; border-radius: calc(var(--r) * .5); background: var(--primary-softer); color: var(--text); font: inherit; font-size: var(--step--1); font-variant-numeric: tabular-nums; cursor: pointer; transition: background .15s, color .15s; }
.day:hover:not(:disabled) { background: var(--primary-soft); }
.day.today { box-shadow: inset 0 0 0 2px var(--primary); }
.day.past { background: transparent; color: var(--muted); opacity: .5; cursor: default; }
.day.taken { background: repeating-linear-gradient(-45deg, var(--line) 0 4px, transparent 4px 9px); color: var(--muted); text-decoration: line-through; cursor: not-allowed; }
.day.sel { background: var(--primary-soft); }
.day.start, .day.end { background: var(--primary); color: var(--primary-ink); font-weight: 700; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 16px 0 0; }
.cal-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .lg::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--primary-softer); border: 1px solid var(--line); }
.cal-legend .taken::before { background: repeating-linear-gradient(-45deg, var(--line) 0 3px, transparent 3px 6px); }
.cal-legend .sel::before { background: var(--primary); border-color: var(--primary); }
.cal-hint, .cal-note { margin: 8px 0 0; }
.bf-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .booking-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cal-months { grid-template-columns: 1fr; } }

/* news section (sections/news.html, src/demo/news.py, 2026-09-23): cards on the home page, a list on the news page */
.news-cards .news-card { text-decoration: none; color: inherit; }
.news-date { margin: 0 0 4px; letter-spacing: .02em; }
.news-list { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.news-row { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: clamp(14px, 2vw, 24px); align-items: start; border-top: 1px solid var(--line); padding-top: clamp(16px, 2.5vw, 28px); }
.news-row.no-image { grid-template-columns: 1fr; }
.news-row .news-media { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; }
.news-row .news-media img { width: 100%; height: 100%; object-fit: cover; }
.news-row h3 { margin: 0; }
.news-note { margin: 16px 0 0; }
@media (max-width: 600px) { .news-row { grid-template-columns: 1fr; } }
.news-card h3, .news-row h3 { overflow-wrap: anywhere; }
.news-card h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* a post page (news module step 3: novosti/<slug>.html in the prose chrome) */
.news-row h3 a, .post-body a { color: inherit; }
.post-photos { display: grid; gap: 14px; margin: 1.4rem 0; }
.post-photos figure { margin: 0; }
.post-photos img { width: 100%; height: auto; border-radius: var(--r); display: block; background-size: cover; }
.post-photos figcaption { font-size: var(--step--1); color: var(--muted); margin-top: .35rem; }
.post-back { margin-top: 2.4rem; }
.post-body ul { list-style: disc; padding-left: 1.3rem; }
.post-body ul li { margin: .35rem 0; }

/* --- AI chat assistant (templates/site/_chat.html, src/chat_service.py, 2026-09-24) ---------------------------- */
.chat { position: fixed; right: 16px; bottom: 16px; z-index: 60; font-family: var(--font-body); }
.chat-fab { display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.1rem; border: 0; border-radius: var(--radius-full); background: var(--primary); color: var(--primary-ink); font: inherit; font-size: var(--step--1); font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.18); cursor: pointer; }
.chat-fab .ic { width: 22px; height: 22px; }
.chat-bubble { position: absolute; right: 0; bottom: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); text-align: left; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--r); padding: .75rem .9rem; box-shadow: 0 8px 24px rgba(0,0,0,.14); cursor: pointer; font: inherit; font-size: var(--step--1); line-height: 1.45; }
.chat-panel { position: absolute; right: 0; bottom: calc(100% + 10px); width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 100px)); display: flex; flex-direction: column; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 16px 48px rgba(0,0,0,.2); overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem 1rem; background: var(--primary); color: var(--primary-ink); }
.chat-head strong { display: block; line-height: 1.2; }
.chat-head .chat-biz { display: block; font-size: var(--step--1); opacity: .85; }
.chat-close { background: transparent; border: 0; color: inherit; cursor: pointer; padding: .25rem; display: inline-flex; }
.chat-close .ic { width: 20px; height: 20px; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.chat-msg { max-width: 88%; padding: .6rem .8rem; border-radius: var(--r); font-size: var(--step--1); line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg.bot { align-self: flex-start; background: var(--primary-soft); border-bottom-left-radius: 4px; }
.chat-msg.me { align-self: flex-end; background: var(--primary); color: var(--primary-ink); border-bottom-right-radius: 4px; }
.chat-msg.err { background: color-mix(in srgb, #c94b3a 12%, var(--bg)); }
.chat-msg.wait { color: var(--muted); font-style: italic; }
.chat-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .6rem; }
.chat-chip { font: inherit; font-size: var(--step--1); padding: .4rem .75rem; border: 1px solid var(--line-strong); border-radius: var(--radius-full); background: transparent; color: var(--text); cursor: pointer; text-align: left; }
.chat-chip:hover { background: var(--primary-soft); }
.chat-form { display: flex; gap: .5rem; padding: .6rem .75rem; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; resize: none; font: inherit; font-size: var(--step--1); padding: .55rem .7rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); max-height: 6rem; }
.chat-send { border: 0; border-radius: var(--radius-sm); background: var(--primary); color: var(--primary-ink); padding: 0 .8rem; cursor: pointer; display: inline-flex; align-items: center; }
.chat-send:disabled { opacity: .5; cursor: default; }
.chat-send .ic { width: 20px; height: 20px; }
.chat-note { margin: 0; padding: .35rem 1rem .7rem; font-size: 12px; line-height: 1.4; color: var(--muted); }
.chat-note a { color: inherit; }
@media (max-width: 480px) {
  .chat.open .chat-panel { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; border: 0; }
  .chat.open .chat-fab { display: none; }
}
@media print { .chat { display: none; } }
/* hidden must win over the display rules above (the panel is display:flex; the UA's [hidden]{display:none} loses to a class) */
.chat[hidden], .chat-panel[hidden], .chat-bubble[hidden], .chat-chips[hidden] { display: none; }
