/* ============================================================
   Business Ocean — components (header, footer, buttons, cards…)
   ============================================================ */

/* -- icons ---------------------------------------------------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Brand marks (assets/svg/tools.svg) are solid shapes, not outlines — they need
   the opposite treatment to .icon or they render as nothing. */
.brand-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  fill: currentColor;
  stroke: none;
}

/* -- logo ------------------------------------------------------ */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo__mark {
  width: 2.1rem;
  height: 2.1rem;
}

.logo__text {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.logo__text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--ink-50);
  margin-top: 0.05rem;
}

/* -- buttons ---------------------------------------------------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--size-0);
  line-height: 1;
  white-space: nowrap;
  /* transform = lift/press (spring), translate = magnet (soft follow) */
  transition:
    transform var(--dur-2) var(--ease-spring),
    translate 200ms var(--ease-out),
    color var(--dur-1) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}

.btn .icon { transition: transform var(--dur-2) var(--ease-spring); }
.btn:hover .icon { transform: translateX(4px); }

/* the only dark surfaces on the site: CTAs */
.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-1);
  translate: var(--mag-x, 0) var(--mag-y, 0);
}

/* hover: the ink surface cross-fades into an ocean → wave material */
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(100deg, var(--ocean) 0%, var(--ocean) 45%, var(--wave) 130%);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}

/* a soft light that follows the cursor across the surface */
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(140px circle at var(--px, 50%) var(--py, 50%), rgba(255, 255, 255, 0.22), transparent 55%);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -12px rgba(27, 102, 201, 0.6);
}

.btn--primary:hover::before,
.btn--primary:hover::after { opacity: 1; }

.btn--primary:active {
  transform: translateY(-1px) scale(0.96);
  transition-duration: 70ms;
}

/* ghost: ink wipes up from the bottom, revealing white text */
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform var(--dur-2) var(--ease-out);
}

.btn--ghost:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--ink), var(--shadow-2);
}

.btn--ghost:hover::before { transform: translateY(0); }

.btn--ghost:active {
  transform: translateY(-1px) scale(0.96);
  transition-duration: 70ms;
}

.btn--sm { padding: 0.7em 1.25em; font-size: var(--size--1); }

/* mono arrow-link (section actions) */
.action {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: var(--size--1);
  font-weight: 500;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink);
}

.action .icon { width: 1.05em; height: 1.05em; transition: transform var(--dur-2) var(--ease-spring); }
.action:hover .icon { transform: translate(3px, 0); }
.action:hover { color: var(--ocean); }

/* Quiet second action standing next to a primary button. Not .action — that
   one is mono uppercase for section heads and next to a big pill it reads as
   a caption. Not .btn--ghost either: a second bordered pill competed with the
   CTA, and its bottom-up ink fill was the loudest gesture on the screen. */
.link-cta {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 0.35em;
  transition: color var(--dur-1) var(--ease-out), text-decoration-color var(--dur-1) var(--ease-out);
}

.link-cta:hover { color: var(--ocean); text-decoration-color: currentColor; }

/* -- chips ------------------------------------------------------ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.42em 0.95em;
  border-radius: var(--radius-pill);
  background: var(--foam);
  font-size: var(--size--1);
  font-weight: 500;
  color: var(--ink-70);
  /* Admin copy reaches these: a Slovak stack entry runs to 415px, wider than a
     phone, and nowrap made that scroll the whole page. `break-word` and not
     `anywhere`: anywhere also shrinks the box's intrinsic width, which
     collapsed the hero chip and split "manažér" in half. */
  max-width: 100%;
  overflow-wrap: break-word;
}

.chip--line {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* -- rail: shared controls for horizontal scrollers ---------------- */
/* Buttons are an affordance, not the mechanism: they call scrollBy, so drag,
   momentum and swipe keep working underneath. rail.js injects them. */
.rail-nav { display: flex; gap: var(--space-2); }

.rail-nav[hidden] { display: none; }

.rail-nav__btn {
  width: 44px;                       /* AA touch target even though it is a mouse control */
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink-70);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition:
    background-color var(--dur-1) var(--ease-out),
    color var(--dur-1) var(--ease-out),
    opacity var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-spring);
}

.rail-nav__btn:hover { background: var(--foam); color: var(--ink); }
.rail-nav__btn:active { transform: scale(0.94); }

.rail-nav__btn:disabled {
  opacity: 0.32;
  pointer-events: none;
}

.rail-nav__btn .icon { width: 1.2rem; height: 1.2rem; }

/* touch already has a better gesture than a button */
@media (pointer: coarse) {
  .rail-nav { display: none; }
}

/* edge fade: says "there is more this way" without adding chrome */
/* No edge fade any more. It dissolved the cards into the background and on the
   mist sections read as a soft white halo down both sides. The arrows and the
   progress bar already say "there is more this way". The is-start / is-end
   classes stay — rail.js uses them for the button disabled states. */

/* scroll indicator: the only "this slides" signal a touch device gets, since
   the arrow buttons are a mouse affordance and stay hidden there */
.rail-progress {
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--line);
  overflow: hidden;
  margin-block-start: var(--space-5);
}

.rail-progress[hidden] { display: none; }

/* the cases lente is full-bleed inside its section — pull its indicator back
   into the container so it lines up with the heading above */
.work-lente + .rail-progress {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.rail-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad-metric);
  transition: transform var(--dur-2) var(--ease-out), width var(--dur-2) var(--ease-out);
}

.rail-fade:focus-visible {
  outline: 2px solid var(--ocean);
  outline-offset: -2px;
  border-radius: var(--radius-2);
}

/* -- header: floating glass pill --------------------------------- */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding-block-start: var(--header-top);
  pointer-events: none;
}

.header__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.25rem);
  height: var(--header-pill);
  padding-inline: clamp(0.9rem, 2vw, 1.5rem) 0.5rem;
  border-radius: var(--radius-pill);
  background: var(--paper-glass);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55), var(--shadow-1);
  transition: box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}

.header.is-scrolled .header__bar {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2);
}

/* nav with the sliding "liquid capsule" highlight */
.header__nav {
  position: relative;
  display: flex;
  margin-inline: auto;
}

.nav-capsule {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 0;
  height: 2.35em;
  width: 60px;
  translate: 0 -50%;
  border-radius: var(--radius-pill);
  background: var(--foam);
  opacity: 0;
  transition:
    transform 380ms var(--ease-spring),
    width 380ms var(--ease-spring),
    opacity var(--dur-1) var(--ease-out);
}

/* A label that breaks makes the whole nav taller than the 72px pill,
   because the flex row stretches every link to the tallest one. */
.header__nav a {
  white-space: nowrap;
  position: relative;
  z-index: 1;
  padding: 0.7em 1.1em;
  border-radius: var(--radius-pill);
  font-size: var(--size-nav);
  font-weight: 600;
  color: var(--ink-70);
  transition: color var(--dur-1) var(--ease-out);
}

.header__nav a:hover,
.header__nav a[aria-current="page"] { color: var(--ink); }

/* fallback highlight when the capsule is off (no-motion) */
.no-motion .header__nav a:hover,
.no-motion .header__nav a[aria-current="page"] { background: var(--foam); }

.header__cta {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.2vw, 1rem);
}

.header__phone {
  font-family: var(--font-mono);
  font-size: var(--size--1);
  color: var(--ink-70);
  white-space: nowrap;
}

.header__phone:hover { color: var(--ocean); }

/* burger — visible on every viewport, opens the megamenu */
.burger {
  position: relative;
  z-index: 60;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  transition: background-color var(--dur-1) var(--ease-out);
}

.burger:hover { background: var(--foam); }

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform var(--dur-2) var(--ease-spring), background-color var(--dur-1) var(--ease-out);
}

.burger span::before,
.burger span::after { content: ""; position: relative; }
.burger span::before { top: -7px; }
.burger span::after { top: 5px; }

.nav-open .burger span { background: transparent; }
.nav-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }

/* -- menu sheet: dropdown panel under the pill (para-style UX) ---- */
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 38;
  background: rgba(11, 27, 43, 0.28);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
}

.nav-open .menu-scrim {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--dur-2) var(--ease-out);
}

.menu-sheet {
  position: fixed;
  inset-inline: 0;
  top: calc(var(--header-top) + var(--header-pill) + 10px); /* pill offset + pill height + gap */
  z-index: 42;
  pointer-events: none;
}

.menu-sheet__panel {
  pointer-events: auto;
  max-height: calc(100vh - var(--header-h) - 20px);
  max-height: calc(100dvh - var(--header-h) - 20px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--paper);
  border-radius: var(--radius-2);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-3);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px) scale(0.985);
  transform-origin: 50% 0;
  transition:
    opacity var(--dur-2) var(--ease-out),
    transform 420ms var(--ease-out),
    visibility 0s linear var(--dur-2);
}

.nav-open .menu-sheet__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--dur-2) var(--ease-out),
    transform 420ms var(--ease-spring);
}

/* quick, subtle content stagger */
.menu-sheet__panel > * {
  opacity: 0;
  translate: 0 10px;
  transition: opacity var(--dur-2) var(--ease-out), translate var(--dur-2) var(--ease-out);
}

.nav-open .menu-sheet__panel > * {
  opacity: 1;
  translate: 0 0;
}

.nav-open .menu-sheet__panel > :nth-child(1) { transition-delay: 60ms; }
.nav-open .menu-sheet__panel > :nth-child(2) { transition-delay: 110ms; }
.nav-open .menu-sheet__panel > :nth-child(3) { transition-delay: 160ms; }
.nav-open .menu-sheet__panel > :nth-child(4) { transition-delay: 200ms; }

/* column 1: primary links */
.mm-links { display: grid; gap: 0.15rem; align-content: start; }

.mm-links .mono-label { margin-block-end: 0.6rem; }

.mm-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.42em 0.6em;
  margin-inline: -0.6em;
  border-radius: var(--radius-1);
  font-family: var(--font-display);
  font-stretch: 114%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--track-tight);
  line-height: 1.1;
  font-size: clamp(1.5rem, 2.6vh + 0.4vw, 2.1rem);
  transition: background-color var(--dur-1) var(--ease-out), padding-inline-start var(--dur-2) var(--ease-out);
}

.mm-link:hover,
.mm-link:focus-visible { background: var(--mist); padding-inline-start: 0.9em; }

.mm-link .idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: var(--track-mono);
  color: var(--ink-30);
  transition: color var(--dur-1) var(--ease-out);
}

.mm-link .txt {
  background: linear-gradient(96deg, var(--ink) 0%, var(--ink) 50%, var(--ocean) 75%, var(--wave) 100%);
  background-size: 220% 100%;
  background-position: 0% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 420ms var(--ease-out);
}

.mm-link:hover .txt,
.mm-link[aria-current="page"] .txt { background-position: 100% 0; }

.mm-link:hover .idx,
.mm-link[aria-current="page"] .idx { color: var(--ocean); }

.mm-links .btn { justify-self: start; margin-block-start: var(--space-4); }

/* column 2: all services */
.mm-services { display: grid; gap: 0.2rem; align-content: start; }

.mm-services .mono-label { margin-block-end: 0.6rem; }

.mm-services a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5em 0.6em;
  margin-inline: -0.6em;
  border-radius: var(--radius-1);
  font-size: var(--size--1);
  font-weight: 500;
  color: var(--ink-70);
  transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}

.mm-services a .icon {
  width: 1em;
  height: 1em;
  color: var(--ink-30);
  transition: transform var(--dur-2) var(--ease-spring), color var(--dur-1) var(--ease-out);
}

.mm-services a:hover { background: var(--mist); color: var(--ink); }
.mm-services a:hover .icon { color: var(--ocean); transform: translate(2px, -2px); }

/* column 3: live preview + contacts */
.mm-aside { display: grid; gap: var(--space-4); align-content: start; }

.mm-preview {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-1);
  overflow: clip;
  background: var(--foam);
  box-shadow: inset 0 0 0 1px var(--line);
}

.mm-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  scale: 1.04;
  transition: opacity 380ms var(--ease-out), scale 800ms var(--ease-out);
}

.mm-preview img.is-active { opacity: 1; scale: 1; }

.mm-contact { display: grid; gap: 0.35rem; justify-items: start; }

.mm-contact a {
  font-family: var(--font-mono);
  font-size: var(--size--1);
  color: var(--ink);
}

.mm-contact a:hover { color: var(--ocean); }

.mm-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-block-start: 0.2rem;
}

.mm-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--state-good);
  box-shadow: 0 0 0 3px var(--state-good-bg);
}

/* responsive ladder */
/* The tighter link padding is not a narrow-screen concession: it is what makes
   five labels fit beside the logo and the button, so it applies everywhere. */
.header__nav a { padding-inline: 0.85em; }

@media (max-width: 1279px) {
  .header__phone { display: none; }
}

@media (max-width: 1023px) {
  .header__nav { display: none; }

  /* nav (with its auto margins) is gone — keep the right cluster pinned right */
  .header__cta { margin-inline-start: auto; }

  .menu-sheet__panel { grid-template-columns: 1fr 1fr; }

  .mm-aside { display: none; }
}

/* the call button only exists where the number and the audit button don't */
.header__call { display: none; }

@media (max-width: 639px) {
  .header__cta .btn { display: none; }

  .header__call {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--ink);
    box-shadow: inset 0 0 0 1px var(--line-strong);
    transition: background-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
  }

  .header__call .icon { width: 1.15rem; height: 1.15rem; }
  .header__call:active { background: var(--ink); color: var(--paper); }

  /* the sheet on a phone: readable link size, and a 44px row per link */
  .mm-link { font-size: clamp(1.35rem, 5.4vw, 1.6rem); }
  .mm-services a { min-height: 44px; }
  .menu-sheet__panel { padding-block-end: calc(clamp(1.5rem, 3vw, 2.5rem) + env(safe-area-inset-bottom)); }

  .menu-sheet__panel { grid-template-columns: 1fr; }

  .mm-services { border-block-start: 1px solid var(--line); padding-block-start: var(--space-4); }
}

.nav-open { overflow: hidden; }

/* -- metric (gradient number + caption) -------------------------- */
.metric__value {
  font-family: var(--font-display);
  font-stretch: 116%;
  font-weight: 800;
  font-size: var(--size-4);
  line-height: 1;
  letter-spacing: var(--track-tight);
  background: var(--grad-metric);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.metric { display: grid; gap: 2px; justify-items: start; align-content: start; }

.metric__label {
  margin-top: 0;
  font-size: var(--size--1);
  color: var(--ink-70);
}

/* -- cards -------------------------------------------------------- */
.card {
  background: var(--paper);
  border-radius: var(--radius-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}

.card:hover {
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-2);
}

@media (hover: hover) {
  a.card:hover,
  .card--lift:hover { transform: translateY(-4px); }
}

/* photo frame */
.frame {
  overflow: hidden;
  border-radius: var(--radius-2);
  background: var(--foam);
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -- marquee ------------------------------------------------------- */
.marquee {
  overflow: hidden;
  display: flex;
  user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-7);
  flex-shrink: 0;
  min-width: 100%;
  padding-inline-end: var(--space-7);
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--size--1);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink-70);
  white-space: nowrap;
}

.marquee__item .icon { color: var(--ocean); width: 1.1em; height: 1.1em; }

/* -- tide line (animated wave divider) ------------------------------ */
.tide {
  display: block;
  width: 100%;
  height: 28px;
  color: var(--line-strong);
}

/* -- forms ----------------------------------------------------------- */
.field { display: grid; gap: 0.45rem; }

.field > label {
  font-family: var(--font-mono);
  font-size: var(--size--1);
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink-70);
}

.field__opt { text-transform: none; letter-spacing: 0; color: var(--ink-50); }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85em 1em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-1);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}

.field input:hover,
.field textarea:hover,
.field select:hover { border-color: var(--ink-30); }

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(27, 102, 201, 0.15);
}

/* 5em ≈ three lines — enough to start typing in, and it grows on drag. At 7.5em
   the box dominated the form and pushed the submit button below the fold. */
.field textarea { resize: vertical; min-height: 5em; }

.field--error input,
.field--error textarea,
.field--error select { border-color: #c9341b; }

.field__hint { font-size: var(--size--1); color: #c9341b; min-height: 1.2em; }

/* native select, our chevron — no custom listbox to get wrong on mobile */
.select { position: relative; display: block; }

.select select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 2.8em;
}

/* nothing picked yet: read as a placeholder, not as an answer */
.select select:invalid { color: var(--ink-50); }

.select .icon {
  position: absolute;
  right: 1em;
  top: 50%;
  translate: 0 -50%;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ink-50);
  pointer-events: none;
}

/* selectable service chips */
.chip-select { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip-select input { position: absolute; opacity: 0; pointer-events: none; }

.chip-select label {
  cursor: pointer;
  padding: 0.5em 1em;
  border-radius: var(--radius-pill);
  font-size: var(--size--1);
  font-weight: 500;
  color: var(--ink-70);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: all var(--dur-1) var(--ease-out);
}

.chip-select label:hover { background: var(--foam); }

.chip-select input:checked + label {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--ink);
}

.chip-select input:focus-visible + label { outline: 2px solid var(--ocean); outline-offset: 2px; }

.checkline {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
  font-size: var(--size--1);
  color: var(--ink-70);
}

.checkline input {
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.15em;
  accent-color: var(--ocean);
}

/* honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* -- accordion (FAQ) --------------------------------------------------- */
.faq { border-block-start: 1px solid var(--line); }

.faq details { border-block-end: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  cursor: pointer;
  font-weight: 700;
  font-size: var(--size-1);
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary .icon {
  color: var(--ocean);
  transition: transform var(--dur-2) var(--ease-spring);
}

.faq details[open] summary .icon { transform: rotate(45deg); }

.faq details > div {
  padding-block-end: var(--space-5);
  color: var(--ink-70);
  max-width: 56ch;
}

/* -- filter chips ------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.filters button {
  padding: 0.55em 1.15em;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--size--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-70);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: all var(--dur-1) var(--ease-out);
}

.filters button:hover { background: var(--foam); color: var(--ink); }

.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--ink);
}

/* -- breadcrumbs ---------------------------------------------------------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--size--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-50);
}

.crumbs a:hover { color: var(--ocean); }

/* A chevron reads as direction; a slash reads as a file path. */
.crumbs li + li::before {
  content: "";
  width: 0.34em;
  height: 0.34em;
  margin-inline-end: 0.6em;
  border-inline-end: 1.5px solid var(--ink-30);
  border-block-start: 1.5px solid var(--ink-30);
  rotate: 45deg;
}

.crumbs li { display: inline-flex; align-items: center; min-width: 0; }

/* The final crumb carries the full article title — structured data needs it, a
   header does not. Clamp it here rather than truncating the data. */
.crumbs li:last-child span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 34ch;
}

/* On a reading page the trail follows the headline, so it needs air above it. */
.page-hero--read .crumbs { margin-block-start: var(--space-4); }

/* -- footer ------------------------------------------------------------------ */
.footer {
  background: var(--mist);
  /* no top margin: it painted a white band between the last section and the
     footer on every page (and a stripe between two mist blocks when the last
     section was mist). Sections carry their own padding, so the air is there. */
  padding-block: var(--space-9) var(--space-6);
}

.footer__grid {
  display: grid;
  gap: var(--space-7);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
}

.footer h3 {
  font-family: var(--font-mono);
  font-size: var(--size--1);
  font-weight: 500;
  letter-spacing: var(--track-mono);
  text-transform: uppercase;
  color: var(--ink-50);
  margin-block-end: var(--space-4);
}

.footer ul { display: grid; gap: 0.6rem; list-style: none; padding: 0; }
/* icons, not links: the generic footer list above would stack them */
.footer ul.footer__social { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.footer ul a { color: var(--ink-70); transition: color var(--dur-1) var(--ease-out); }

.footer ul a:hover { color: var(--ocean); }

.footer__about { max-width: 34ch; margin-block-start: var(--space-5); color: var(--ink-70); }

.footer__cta { margin-block-start: var(--space-5); }

.footer__rating {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-block-start: var(--space-4);
  font-size: var(--size--1);
  color: var(--ink-70);
}

.footer__rating .icon { color: #e8a33d; fill: #e8a33d; width: 1em; height: 1em; }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  margin-block-start: var(--space-8);
  padding-block-start: var(--space-5);
  border-block-start: 1px solid var(--line);
  font-size: var(--size--1);
  color: var(--ink-50);
}

.footer__base nav { display: flex; gap: var(--space-5); }

.footer__base a:hover { color: var(--ocean); }

/* -- misc ------------------------------------------------------------------ */
.avatar-row { display: flex; }

.avatar-row .frame {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 2px solid var(--paper);
}

.avatar-row .frame + .frame { margin-inline-start: -0.7rem; }

.badge-cert {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.8em 1.2em;
  border-radius: var(--radius-1);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--size--1);
  font-weight: 500;
  color: var(--ink-70);
}

.badge-cert .icon { color: var(--ocean); }

/* The pair is half a form wide each, and "you@company.com" at 18px needed
   ~166px against a 160px content box — the last glyph was sliced off. */
.grid-2--pair .field input { padding-inline: 0.7em; }

/* the consent box is required now, and it lives outside .field, so it carries
   its own error state rather than a .field__hint */
.checkline--error { color: var(--state-bad); }
.checkline--error input[type="checkbox"] { outline: 2px solid var(--state-bad); outline-offset: 2px; }

/* Server-side form error (api/lead.php / api/subscribe.php). Hidden until the
   JS fills it; the no-JS path prints it from the session flash. */
.form-error {
  margin: var(--space-2) 0 0;
  padding: 0.75rem 1rem;
  border: 1px solid color-mix(in oklab, var(--wave-deep) 35%, transparent);
  border-radius: var(--radius-2);
  background: color-mix(in oklab, var(--wave) 8%, var(--paper));
  color: var(--ink);
  font-size: var(--size-0);
}
.form-error[hidden] { display: none; }

/* -- pagination ---------------------------------------------------- */
/* The blog index runs to three pages of Slovak posts; before this there was no
   way to reach page two from the page itself. */
.pagination {
  display: flex;
  justify-content: center;
  margin-block-start: var(--space-7);
}

.pagination ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination a,
.pagination .is-current,
.pagination__gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding-inline: 0.75em;
  border-radius: var(--radius-1);
  font-family: var(--font-mono);
  font-size: var(--size--1);
  color: var(--ink-70);
  transition: background var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}

.pagination a:hover { background: var(--foam); color: var(--ink); }

.pagination .is-current {
  background: var(--ink);
  color: var(--paper);
}

.pagination__gap { min-width: 1.5rem; color: var(--ink-50); }

.pagination__step { box-shadow: inset 0 0 0 1px var(--line-strong); }
