/* ── Fonts ───────────────────────────────────────────────────
   Self-hosted so no visitor request ever reaches a third-party CDN.
   Files are the same woff2 subsets Google Fonts serves. */

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/fraunces-italic-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/fraunces-roman-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/fraunces-roman-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/geist-latinext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   AK Dopirák — advokátska kancelária
   Design tokens, layout primitives, sections.
   ============================================================ */

:root {
  --paper: 41 26% 94%;
  --ink: 210 7% 5%;
  --ink-secondary: 30 3% 41%;
  --bronze: 33 35% 45%;
  --hairline: 210 7% 5%;

  --shell-max: 1280px;
  --gutter: clamp(1.5rem, 5vw, 3rem);
  --section-pad: clamp(5rem, 12vh, 10rem);

  --serif: Fraunces, serif;
  --sans: Geist, Inter, ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: hsl(var(--paper));
  color: hsl(var(--ink));
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background-color: hsl(var(--ink)); color: hsl(var(--paper)); }

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }

/* ── Layout primitives ───────────────────────────────────── */

.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Single column until `lg`. The 12-track grid only exists at desktop —
   below it, gaps between 12 tracks would exceed the container width and
   force every full-span child to overflow. */
.grid12 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.section-pad { padding-block: var(--section-pad); }
.contact-pad { padding-block: clamp(5rem, 10vh, 8rem); }

.section-light { background-color: hsl(var(--paper)); color: hsl(var(--ink)); }
.section-dark  { background-color: hsl(var(--ink));   color: hsl(var(--paper)); }

.inline { display: inline-flex; }

/* ── Type scale ──────────────────────────────────────────── */

.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  font-size: clamp(3.75rem, 8vw, 7.5rem);
  line-height: .98;
  letter-spacing: -.025em;
}

.h-section {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  font-size: clamp(2.5rem, 4.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}

.h-statement {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 50, "WONK" 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -.015em;
}

.vs-text    { font-variation-settings: "opsz" 24, "SOFT" 50, "WONK" 0; }
.vs-display { font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0; }

em { font-style: italic; font-weight: 400; }

.body-lg { font-size: 1.25rem; line-height: 1.6; }
.muted   { color: hsl(var(--ink-secondary)); }
.tabular { font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .875rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: hsl(var(--bronze));
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background-color: hsl(var(--bronze));
}

/* ── Hairlines ───────────────────────────────────────────── */

.hairline       { border-color: hsl(var(--hairline) / .12); }
.hairline-light { border-color: hsl(var(--paper) / .18); }

/* ── Link + button treatments ────────────────────────────── */

.link-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .3s ease;
}
.link-underline:hover,
.link-underline:focus-visible { background-size: 100% 1px; }

.link-underline-bronze {
  background-image: linear-gradient(hsl(var(--bronze)), hsl(var(--bronze)));
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .2s ease, color .2s ease;
}
.link-underline-bronze:hover,
.link-underline-bronze:focus-visible { background-size: 100% 1px; color: hsl(var(--bronze)); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  border: 1px solid hsl(var(--paper));
  padding: .875rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: border-color .2s ease, color .2s ease;
}
.btn-outline:hover { border-color: hsl(var(--bronze)); color: hsl(var(--bronze)); }

/* ── Reveal animations ───────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay:  80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }

/* ── Header ──────────────────────────────────────────────── */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background-color: transparent;
  color: hsl(var(--paper));
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background-color: hsl(var(--paper) / .92);
  backdrop-filter: blur(8px);
  color: hsl(var(--ink));
  border-bottom-color: hsl(var(--hairline) / .12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
}

.wordmark {
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "SOFT" 50, "WONK" 0;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -.01em;
  text-transform: lowercase;
}
.wordmark .dot { color: hsl(var(--bronze)); margin-inline: .15em; }
.wordmark-dark { color: hsl(var(--ink)); }

.nav-desktop { display: none; align-items: center; gap: 2.5rem; }
.nav-link { font-size: 1rem; font-weight: 500; letter-spacing: .02em; }

.nav-cta {
  border: 1px solid currentColor;
  padding: .625rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .02em;
  transition: background-color .2s ease, color .2s ease;
}
.site-header:not(.is-scrolled) .nav-cta { border-color: hsl(var(--paper) / .6); }
.nav-cta:hover { background-color: currentColor; }
.site-header:not(.is-scrolled) .nav-cta:hover { background-color: hsl(var(--paper)); color: hsl(var(--ink)); }
.site-header.is-scrolled .nav-cta:hover { background-color: hsl(var(--ink)); color: hsl(var(--paper)); }

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 1px;
  background-color: currentColor;
  transition: transform .3s ease, opacity .3s ease, width .3s ease;
}
.burger span:nth-child(1), .burger span:nth-child(3) { width: 1.75rem; }
.burger span:nth-child(2) { width: 1.25rem; }

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 1.75rem; }

/* ── Mobile menu ─────────────────────────────────────────── */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background-color: hsl(var(--paper));
  color: hsl(var(--ink));
  opacity: 0;
  /* visibility, not just opacity: an opacity-0 panel stays in the tab order,
     so keyboard users would land on invisible links that aria-hidden tells
     screen readers do not exist. It flips only after the fade completes. */
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .3s ease, visibility 0s;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 7rem var(--gutter) 4rem;
}
.mobile-nav { display: flex; flex-direction: column; gap: 1.5rem; }
.mobile-nav a {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -.02em;
}
.mobile-menu-foot { margin-top: auto; }
.mobile-cta {
  display: inline-block;
  border: 1px solid hsl(var(--ink));
  padding: .75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.mobile-menu-foot p {
  margin-top: 2rem;
  font-size: 1rem;
  letter-spacing: .02em;
  color: hsl(var(--ink-secondary));
}

body.menu-open { overflow: hidden; }

/* ── Hero ────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 8rem;
  padding-bottom: 4rem;
}
.hero-body {
  margin-top: 3rem;
  flex: 1;
  align-content: center;
}
.hero-lead {
  margin-top: 2.5rem;
  font-size: 1.25rem;
  line-height: 1.6;
  color: hsl(var(--paper) / .75);
  max-width: 560px;
}
.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.5rem;
}

.hero-foot {
  margin-top: 4rem;
  display: flex;
  justify-content: flex-end;
  align-items: end;
  gap: 1.5rem;
}
.hero-foot-right {
  text-align: right;
  font-size: 1rem;
  letter-spacing: .18em;
  color: hsl(var(--paper) / .6);
}

/* ── Section heads ───────────────────────────────────────── */

.section-head-title.tight  { max-width: 18ch; }
.section-head-title.narrow { max-width: 720px; }

/* ── Oblasti práva ───────────────────────────────────────── */

.practice-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid hsl(var(--hairline) / .12);
}
.practice-row {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.5rem;
  padding-block: 2.25rem;
  align-items: baseline;
  border-bottom: 1px solid hsl(var(--hairline) / .12);
  transition: border-color .25s ease;
}
.practice-row:hover { border-bottom-color: hsl(var(--bronze)); }
.practice-row:hover .practice-num { color: hsl(var(--ink)); }

.practice-num {
  font-size: 1rem;
  font-weight: 500;
  padding-top: .25rem;
  color: hsl(var(--bronze));
  transition: color .25s ease;
}
.practice-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "SOFT" 50, "WONK" 0;
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.practice-desc {
  margin-top: .75rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: hsl(var(--ink-secondary));
}

/* ── Partner ─────────────────────────────────────────────── */

.partner-grid { gap: 2.5rem; align-items: start; }

/* ── Advokáti slider ─────────────────────────────────────── */

.partner-slider { overflow: hidden; }

.partner-track {
  display: flex;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
}

/* Slides stay in flow so the track keeps the height of the tallest one —
   switching slides never shifts the rest of the page. */
.partner-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.slider-nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--paper) / .18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.slider-count {
  font-size: 1rem;
  letter-spacing: .18em;
  color: hsl(var(--paper) / .6);
}

.slider-dots { display: flex; align-items: center; gap: .75rem; }
.slider-dot {
  width: 2.25rem;
  height: 2px;
  padding: 0;
  border: 0;
  background-color: hsl(var(--paper) / .25);
  cursor: pointer;
  transition: background-color .3s ease;
}
.slider-dot:hover { background-color: hsl(var(--paper) / .5); }
.slider-dot.is-active { background-color: hsl(var(--bronze)); }

.slider-buttons { display: flex; gap: .75rem; }
.slider-btn {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid hsl(var(--paper) / .3);
  border-radius: 2px;
  background: transparent;
  color: hsl(var(--paper));
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.slider-btn:hover { border-color: hsl(var(--bronze)); color: hsl(var(--bronze)); }
.slider-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
}

.slider-btn:focus-visible,
.slider-dot:focus-visible {
  outline: 2px solid hsl(var(--bronze));
  outline-offset: 3px;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  /* Frames carrying media set --portrait-ratio to the file's own dimensions so
     nothing gets cropped; the monogram fallback keeps the 4:5 default. */
  aspect-ratio: var(--portrait-ratio, 4 / 5);
  width: 100%;
  border: 1px solid hsl(var(--paper) / .18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Real portrait — still or looping video. `has-photo` is dropped by main.js if
   the file is missing, which falls the frame back to the outlined monogram. */
.portrait-photo,
.portrait-video { display: none; }

.portrait-frame.has-photo .portrait-photo,
.portrait-frame.has-photo .portrait-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.portrait-frame.has-photo .monogram-outline { display: none; }

.portrait-frame.has-photo .portrait-caption {
  position: absolute;
  inset: auto 0 0 0;
  margin: 0;
  padding: 3.5rem 1.25rem 1.25rem;
  color: hsl(var(--paper) / .85);
  background: linear-gradient(to top, hsl(var(--ink) / .8), hsl(var(--ink) / 0));
}
.monogram-outline {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  font-size: 11rem;
  font-weight: 500;
  line-height: 1;
  -webkit-text-stroke: 1px hsl(var(--paper));
  color: transparent;
  user-select: none;
}
.portrait-caption {
  margin-top: 1.5rem;
  font-size: 1rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: hsl(var(--paper) / .6);
  text-align: center;
}

.partner-name { margin-top: 2rem; }
.partner-role {
  margin-top: 1rem;
  font-size: 1rem;
  letter-spacing: .04em;
  color: hsl(var(--paper) / .65);
}
.partner-bio { margin-top: 2.5rem; display: grid; gap: 1.5rem; }
.partner-bio p { color: hsl(var(--paper) / .8); }

.partner-facts {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid hsl(var(--paper) / .18);
}
.fact {
  padding-block: 1.25rem;
  border-bottom: 1px solid hsl(var(--paper) / .18);
}
.fact-label {
  font-size: .8125rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: hsl(var(--paper) / .6);
}
.fact-value {
  margin-top: .5rem;
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "SOFT" 50, "WONK" 0;
  font-size: 1.375rem;
  line-height: 1.25;
}

/* ── Princípy ────────────────────────────────────────────── */

.principles-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 2.5rem;
}
.principle-num {
  font-family: var(--serif);
  font-size: 3.25rem;
  line-height: 1;
  color: hsl(var(--bronze));
}
.principle-title {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "SOFT" 50, "WONK" 0;
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.principle-desc {
  margin-top: .75rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: hsl(var(--ink-secondary));
}

/* ── Kontakt ─────────────────────────────────────────────── */

.contact-shell {
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.contact-head { text-align: center; }
.contact-title {
  margin-top: 2rem;
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}
.contact-lead {
  margin: 1.5rem auto 0;
  font-size: 1.25rem;
  line-height: 1.6;
  color: hsl(var(--paper) / .75);
  max-width: 640px;
}

.contact-details {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.detail-label {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: hsl(var(--bronze));
}
.detail-value {
  margin-top: 1rem;
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "SOFT" 50, "WONK" 0;
  font-size: 1.5rem;
  line-height: 1.3;
}
.detail-value span { display: block; }
.detail-note {
  margin-top: .75rem;
  font-size: 1rem;
  line-height: 1.55;
  color: hsl(var(--paper) / .6);
}

/* The form echoes the detail row above it: same full content width, same
   three-up rhythm, and hairline rules instead of filled boxes — matching the
   rules used by the practice list, partner facts and footer. */

.contact-form-wrap {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid hsl(var(--paper) / .18);
}
.contact-form-sub {
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: hsl(var(--paper) / .82);
}

.contact-form {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  /* column gap matches .contact-details so the fields sit on the same columns */
  gap: 2.5rem 3rem;
}
.field-wide { grid-column: 1 / -1; }

.contact-form label {
  display: block;
  margin-bottom: .5rem;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: hsl(var(--paper) / .78);
}
.req { color: hsl(var(--bronze)); margin-left: .35rem; }
.optional {
  margin-left: .5rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: .02em;
  color: hsl(var(--paper) / .58);
}

.contact-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid hsl(var(--paper) / .22);
  border-radius: 0;
  padding: .625rem 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.125rem;
  color: hsl(var(--paper));
  transition: border-color .25s ease;
}
.contact-input::placeholder { color: hsl(var(--paper) / .5); }
.contact-input:focus {
  outline: none;
  border-bottom-color: hsl(var(--bronze));
}
textarea.contact-input {
  min-height: 6.5rem;
  resize: vertical;
  line-height: 1.6;
  padding-top: .25rem;
}
.contact-input.is-invalid { border-bottom-color: #c05545; }

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.btn-submit {
  align-self: flex-start;
  border: 1px solid hsl(var(--bronze));
  border-radius: 0;
  color: hsl(var(--bronze));
  background: transparent;
  padding: 1rem 2.75rem;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.btn-submit:hover { background-color: hsl(var(--bronze)); color: hsl(var(--ink)); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; }

.form-note {
  margin: 0;
  font-size: .875rem;
  line-height: 1.55;
  color: hsl(var(--paper) / .65);
  max-width: 46ch;
}
.form-status {
  margin-top: 2.5rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: hsl(var(--bronze));
  max-width: 52ch;
}
.form-status.is-error { color: #d8705e; }

/* Honeypot — off-screen rather than display:none, which some bots skip. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Footer ──────────────────────────────────────────────── */

.site-footer {
  background-color: hsl(var(--paper));
  color: hsl(var(--ink));
  border-top: 1px solid hsl(var(--hairline) / .12);
}
.footer-inner { padding-block: 4rem; }
.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.footer-tag {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.55;
  color: hsl(var(--ink-secondary));
}
.footer-head {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: hsl(var(--bronze));
}
.footer-list {
  margin-top: 1.25rem;
  display: grid;
  gap: .5rem;
  font-size: 1rem;
  line-height: 1.8;
}
.footer-list a { display: inline; }

/* Kredit drží pravý okraj bez ohľadu na to, koľko prvkov v pätičke je.
   Úvodná stránka má dva (copyright + kredit), právne stránky tri — pri
   samotnom space-between by kredit v jednom prípade skončil v strede. */
.footer-credit { margin-left: auto; }

.footer-bottom {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--hairline) / .12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
  line-height: 1.55;
  letter-spacing: .01em;
  color: hsl(var(--ink-secondary));
}

/* ============================================================
   Breakpoints
   ============================================================ */

@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; }

  .partner-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact { padding-block: 1.5rem; padding-right: 1.5rem; border-bottom: 0; }
  .fact + .fact {
    border-left: 1px solid hsl(var(--paper) / .18);
    padding-left: 1.5rem;
  }
}

@media (min-width: 768px) {
  .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }

  .principles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .contact-details { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* Name / e-mail / phone sit three-up, aligned to the detail columns above. */
  .contact-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
  }

  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .grid12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }

  .nav-desktop { display: flex; }
  .burger { display: none; }
  .mobile-menu { display: none; }

  .hero-body { margin-top: 4rem; }
  .hero-title { grid-column: span 9; }
  .hero-lead,
  .hero-actions { grid-column: 7 / span 6; }

  .section-head-aside { grid-column: span 3; }
  .section-head-title { grid-column: span 9; }

  .practice-grid { column-gap: 4rem; margin-top: 6rem; }
  .practice-row { column-gap: 2.5rem; }

  .partner-grid { gap: 4rem; }
  .partner-portrait { grid-column: span 5; }
  .partner-main { grid-column: 7 / span 6; }

  /* Line the frame's top edge up with the eyebrow's bronze dash. The dash is
     centred in the eyebrow's 1.34rem line box, which itself sits 0.61rem below
     the row top. Both derive from fixed rem sizes, so unlike the heading this
     does not move with the viewport. */
  .partner-portrait { margin-top: 1.281rem; }

  .principles-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 6rem; }

  .footer-inner { padding-block: 5rem; }
  .footer-cols { gap: 4rem; }
}

/* ── Reduced motion ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .partner-track { transition: none; }
  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   Právne stránky
   ============================================================ */

.legal-body { background-color: hsl(var(--paper)); color: hsl(var(--ink)); }

.legal-top {
  border-bottom: 1px solid hsl(var(--hairline) / .12);
}
.legal-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
}
.legal-back {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: hsl(var(--ink-secondary));
}
.legal-back:hover { color: hsl(var(--ink)); }

.legal-main { padding-block: clamp(3.5rem, 8vh, 6rem) clamp(4rem, 10vh, 7rem); }
.legal-head { max-width: 60ch; }
.legal-title {
  margin-top: 1.5rem;
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  font-weight: 400;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.legal-meta {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: hsl(var(--ink-secondary));
}

/* Running text sits near 70 characters so it stays readable at length. */
.prose { margin-top: 3.5rem; max-width: 70ch; }
.prose > * + * { margin-top: 1.25rem; }

.prose h2 {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--hairline) / .12);
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "SOFT" 50, "WONK" 0;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.prose h3 {
  margin-top: 2rem;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: hsl(var(--bronze));
}
.prose p,
.prose li { font-size: 1.0625rem; line-height: 1.7; color: hsl(var(--ink-secondary)); }
.prose strong { color: hsl(var(--ink)); font-weight: 500; }
.prose a { color: hsl(var(--ink)); text-decoration: underline; text-underline-offset: .2em; }
.prose a:hover { color: hsl(var(--bronze)); }

.prose ul { display: grid; gap: .625rem; }
.prose ul li { position: relative; padding-left: 1.5rem; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .8em;
  width: 10px;
  height: 1px;
  background-color: hsl(var(--bronze));
}

.prose dl {
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid hsl(var(--hairline) / .12);
}
.prose dt {
  padding-top: 1rem;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: hsl(var(--bronze));
}
.prose dd {
  margin: .5rem 0 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid hsl(var(--hairline) / .12);
  font-size: 1.0625rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .prose dl { grid-template-columns: 14rem 1fr; }
  .prose dt { padding-bottom: 1rem; border-bottom: 1px solid hsl(var(--hairline) / .12); }
  .prose dd { margin-top: 0; padding-top: 1rem; }
}

/* ============================================================
   Consent — lišta súhlasu s cookies
   ============================================================ */

/* Tmavá karta na svetlej stránke: nesplynie s obsahom, ale drží sa tej istej
   palety ako hero a kontakt. Vpravo dole, aby neprekrývala text pri čítaní. */
.consent {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 60;
  width: min(24rem, calc(100vw - 2rem));
  padding: 1.5rem;
  background-color: hsl(var(--ink));
  color: hsl(var(--paper));
  border: 1px solid hsl(var(--paper) / .18);
  border-radius: 2px;
  box-shadow: 0 18px 48px hsl(var(--ink) / .32);
  /* Vstupná animácia; skrytý stav rieši atribút hidden, nie opacity, aby
     lišta nezostala v poradí fokusu, kým nie je viditeľná. */
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s ease, transform .35s ease;
}
.consent.is-in { opacity: 1; transform: translateY(0); }

.consent-title {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: hsl(var(--bronze));
}

.consent-text {
  margin-top: .875rem;
  font-size: .9375rem;
  line-height: 1.6;
  color: hsl(var(--paper) / .8);
}
.consent-text a {
  color: hsl(var(--paper));
  text-decoration: underline;
  text-underline-offset: .2em;
}
.consent-text a:hover { color: hsl(var(--bronze)); }

.consent-actions {
  margin-top: 1.25rem;
  display: flex;
  gap: .75rem;
}

.consent-btn {
  flex: 1;
  padding: .75rem 1rem;
  border-radius: 0;
  font-size: .9375rem;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  background: transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.consent-btn-decline {
  border: 1px solid hsl(var(--paper) / .3);
  color: hsl(var(--paper) / .8);
}
.consent-btn-decline:hover {
  border-color: hsl(var(--paper) / .6);
  color: hsl(var(--paper));
}
.consent-btn-accept {
  border: 1px solid hsl(var(--bronze));
  color: hsl(var(--bronze));
}
.consent-btn-accept:hover {
  background-color: hsl(var(--bronze));
  color: hsl(var(--ink));
}

@media (max-width: 480px) {
  .consent { right: 1rem; left: 1rem; width: auto; }
  .consent-actions { flex-direction: column-reverse; }
}

@media (prefers-reduced-motion: reduce) {
  .consent { transition: none; transform: none; }
}

/* ============================================================
   Blog a slovník
   ============================================================ */

.post-meta {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  font-size: .8125rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: hsl(var(--ink-secondary));
}
.post-cat { color: hsl(var(--bronze)); font-weight: 500; }

/* Perex nesie váhu úvodu, preto väčší stupeň ako bežný text. */
.post-perex {
  margin-top: 2rem;
  max-width: 60ch;
  font-size: 1.25rem;
  line-height: 1.6;
  color: hsl(var(--ink));
}

/* Zdroje: článok o práve musí povedať, odkiaľ tvrdenia pochádzajú. */
.sources {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--hairline) / .12);
  max-width: 70ch;
}
.sources-title {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: hsl(var(--bronze));
}
.sources ul { margin-top: 1rem; display: grid; gap: .5rem; }
.sources li {
  font-size: .9375rem;
  line-height: 1.55;
  color: hsl(var(--ink-secondary));
  padding-left: 1.5rem;
  position: relative;
}
.sources li::before {
  content: "";
  position: absolute;
  left: 0; top: .75em;
  width: 10px; height: 1px;
  background-color: hsl(var(--bronze));
}
.sources a { color: hsl(var(--ink)); text-decoration: underline; text-underline-offset: .2em; }
.sources a:hover { color: hsl(var(--bronze)); }

.disclaimer {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid hsl(var(--bronze));
  background-color: hsl(var(--ink) / .04);
  max-width: 70ch;
  font-size: .9375rem;
  line-height: 1.6;
  color: hsl(var(--ink-secondary));
}

/* ── Výpis článkov ─────────────────────────────────────── */

.post-list {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid hsl(var(--hairline) / .12);
}
.post-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .5rem;
  padding-block: 2.25rem;
  border-bottom: 1px solid hsl(var(--hairline) / .12);
  transition: border-color .25s ease;
}
.post-item:hover { border-bottom-color: hsl(var(--bronze)); }
.post-item-cat {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: hsl(var(--bronze));
}
.post-item-title {
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "SOFT" 50, "WONK" 0;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -.01em;
  max-width: 30ch;
}
.post-item:hover .post-item-title { color: hsl(var(--bronze)); }
.post-item-perex {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: hsl(var(--ink-secondary));
  max-width: 65ch;
}
.post-item-date {
  font-size: .875rem;
  letter-spacing: .1em;
  color: hsl(var(--ink-secondary));
  font-variant-numeric: tabular-nums;
}

@media (min-width: 900px) {
  .post-item {
    grid-template-columns: 9rem 1fr;
    column-gap: 2.5rem;
    align-items: baseline;
  }
  .post-item-cat { grid-row: 1; grid-column: 1; }
  .post-item-date { grid-row: 2; grid-column: 1; }
  .post-item-title { grid-row: 1; grid-column: 2; }
  .post-item-perex { grid-row: 2; grid-column: 2; }
}

/* ── Slovník ───────────────────────────────────────────── */

.term-list {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid hsl(var(--hairline) / .12);
}
.term-item {
  display: grid;
  gap: .375rem;
  padding-block: 1.5rem;
  border-bottom: 1px solid hsl(var(--hairline) / .12);
  transition: border-color .25s ease;
}
.term-item:hover { border-bottom-color: hsl(var(--bronze)); }
.term-name {
  font-family: var(--serif);
  font-variation-settings: "opsz" 24, "SOFT" 50, "WONK" 0;
  font-size: 1.25rem;
  line-height: 1.25;
}
.term-item:hover .term-name { color: hsl(var(--bronze)); }
.term-short { font-size: 1rem; line-height: 1.55; color: hsl(var(--ink-secondary)); max-width: 70ch; }

.term-group {
  margin-top: 3rem;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: hsl(var(--bronze));
}

@media (min-width: 900px) {
  .term-item { grid-template-columns: 18rem 1fr; column-gap: 2.5rem; align-items: baseline; }
}
