/* viktorgleich.cz */

/* ---------- fonty ---------- */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/playfair-display-latin-ext-wght-normal.woff2") format("woff2-variations");
  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: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("../fonts/playfair-display-latin-wght-normal.woff2") format("woff2-variations");
  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: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  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: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  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; }

/* ---------- tokeny ---------- */
:root {
  color-scheme: dark;
  --bg: #120404;
  --bg-raised: #1d0a08;
  --text: #f4eadc;
  --text-muted: #cdbcaa;
  --accent: #dc9a3c;
  --accent-strong: #ecae55;
  --on-accent: #1a0906;
  --line: rgb(244 234 220 / .16);
  --radius: 3px;
  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 5.5vw, 6rem);
  --header-h: 4.5rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* z-index: header 20, menu 30, skip 40 */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: var(--radius); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 40; padding: .75rem 1rem; background: var(--accent); color: var(--on-accent); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.skip:focus { top: 1rem; }

/* ---------- tlačítka ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .625rem; min-height: 3.25rem; padding: .75rem 1.5rem; border: 1px solid transparent; border-radius: var(--radius); font: 600 1rem/1.2 var(--font-body); letter-spacing: .01em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .15s var(--ease); }
.btn:active { transform: scale(.98); }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-strong); }
.btn--ghost { border-color: rgb(244 234 220 / .42); color: var(--text); background: rgb(18 4 4 / .35); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn--sm { min-height: 2.75rem; padding: .5rem 1rem; font-size: .9375rem; }

/* ---------- hlavička ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--header-h); transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-solid { background: rgb(18 4 4 / .96); border-bottom-color: var(--line); }
.site-header.is-menu-open { background: var(--bg); border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 100%; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; min-height: 2.75rem; font: 500 1.3125rem/1 var(--font-display); letter-spacing: .01em; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: clamp(.125rem, 1vw, 1rem); }
.nav a { position: relative; min-width: 2.75rem; padding: .75rem .5rem; text-align: center; font-size: .9375rem; font-weight: 500; color: var(--text); text-decoration: none; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: .5rem; right: .5rem; bottom: .45rem; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.site-header__side { display: flex; align-items: center; gap: .75rem; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem; font-size: .875rem; font-weight: 600; letter-spacing: .08em; color: var(--text-muted); text-decoration: none; transition: color .25s var(--ease); }
.lang:hover { color: var(--accent-strong); }

.menu-toggle { display: none; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid rgb(244 234 220 / .42); border-radius: var(--radius); background: rgb(18 4 4 / .35); color: var(--text); cursor: pointer; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 1.25rem; height: 1.5px; margin-inline: auto; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 30; display: flex; flex-direction: column; gap: 2rem; padding: 1.5rem var(--gutter) 2.5rem; background: var(--bg); overflow-y: auto; }
.js .mobile-menu:not(.is-open) { display: none; }
/* no-js */
html:not(.js) .mobile-menu { position: static; padding-top: calc(var(--header-h) + 1rem); }
html:not(.js) .menu-toggle { display: none; }
@media (min-width: 1101px) { html:not(.js) .mobile-menu { display: none; } }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { padding-block: .875rem; border-bottom: 1px solid var(--line); font: 400 1.5rem/1.2 var(--font-display); text-decoration: none; }
.mobile-menu__lang { align-self: flex-start; min-height: 2.75rem; display: inline-flex; align-items: center; color: var(--text-muted); font-weight: 600; text-decoration: none; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; align-items: center; min-height: 100dvh; padding: calc(var(--header-h) + 2rem) var(--gutter) 4rem; overflow: hidden; isolation: isolate; }
.hero__sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 6rem; pointer-events: none; }
.hero__media { position: absolute; inset: calc(var(--header-h) - 1rem) 0 0 auto; width: 70vw; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 18% 30%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--bg) 0%, rgb(18 4 4 / .88) 14%, rgb(18 4 4 / .35) 34%, rgb(18 4 4 / 0) 52%),
  linear-gradient(180deg, var(--bg) 0%, rgb(18 4 4 / .55) 7%, rgb(18 4 4 / 0) 20%),
  linear-gradient(0deg, var(--bg) 0%, rgb(18 4 4 / 0) 24%); }

.hero__content { max-width: 30rem; }
.hero h1 { margin: 0; font-weight: inherit; }
.hero__eyebrow { display: block; margin-bottom: 1.25rem; font: 600 .8125rem/1.4 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.hero__name { display: block; font: 400 clamp(2.875rem, 5.4vw, 5rem)/1.05 var(--font-display); letter-spacing: -.015em; text-wrap: balance; }
.hero__lead { margin: 1.75rem 0 0; max-width: 27rem; font-size: 1.125rem; line-height: 1.6; color: var(--text-muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2.5rem; }

/* ---------- ikony (Animate UI port) ---------- */
@keyframes aui-wave { 0% { opacity: 1; transform: scale(1); } 30% { opacity: 0; transform: scale(0); } 60%, 100% { opacity: 1; transform: scale(1); } }
@keyframes aui-draw { from { stroke-dashoffset: 1; opacity: .2; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes aui-tilt { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-8deg); } 65% { transform: rotate(6deg); } }
.aui-wave { transform-box: fill-box; transform-origin: bottom left; }
.aui-draw-path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.aui-mail { transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  .btn:hover .aui-wave1 { animation: aui-wave .8s ease-in-out; }
  .btn:hover .aui-wave2 { animation: aui-wave .8s ease-in-out .2s; }
  .btn:hover .aui-mail { animation: aui-tilt .7s ease-in-out; }
  .btn:hover .aui-draw-path { animation: aui-draw .6s ease-in-out backwards; }

  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  @keyframes settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
  .hero__media img { animation: settle 1.6s var(--ease) both; }
  .hero__eyebrow, .hero__name, .hero__lead, .hero__cta { animation: rise .9s var(--ease) both; }
  .hero__name { animation-delay: .08s; }
  .hero__lead { animation-delay: .18s; }
  .hero__cta { animation-delay: .28s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .btn:active { transform: none; }
}

/* ---------- <=1100 ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle { display: inline-block; }
}

/* ---------- <900: hero pod sebou ---------- */

/* ---------- sekce ---------- */
.wrap { width: 100%; max-width: 84rem; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 56rem; }
.section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.section--raised { background: var(--bg-raised); }

.h2 { margin: 0 0 1.5rem; font: 400 clamp(2.125rem, 3.8vw, 3.25rem)/1.12 var(--font-display); letter-spacing: -.012em; text-wrap: balance; }
.h3 { margin: 0 0 1.25rem; font: 400 clamp(1.5rem, 2.2vw, 1.875rem)/1.2 var(--font-display); }
.h3--small { margin: 2rem 0 1rem; font-size: 1.3125rem; }
.lead { margin: 0 0 1.25rem; font-size: clamp(1.125rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--text); max-width: 38rem; }
.section p { margin: 0 0 1.25rem; max-width: 38rem; color: var(--text-muted); }
.section p.lead { color: var(--text); }
.section a:not(.btn):not(.way) { color: var(--accent-strong); text-underline-offset: .2em; }

.levels__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; margin-top: 2.25rem; }
.levels__note { margin: 0 !important; font-size: .9375rem; }

.split__media, .about__media, .way picture, .gallery picture { display: block; overflow: clip; border-radius: var(--radius); background: var(--bg-raised); }
.split__media img, .about__media img, .way img, .gallery img, .bar__media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- tři cesty ---------- */
.ways { padding-top: clamp(3rem, 6vw, 5rem); }
.ways__grid { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 1.25rem; height: clamp(34rem, 58vw, 46rem); }
.way { position: relative; display: block; overflow: hidden; border-radius: var(--radius); color: var(--text); text-decoration: none; isolation: isolate; }
.way--big { grid-row: 1 / 3; }
.way picture { position: absolute; inset: 0; z-index: -2; border-radius: 0; }
.way img { transition: transform .9s var(--ease); }
.way:last-child img { object-position: 50% 35%; }
.way::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(18 4 4 / .96) 0%, rgb(18 4 4 / .82) 30%, rgb(18 4 4 / .4) 58%, rgb(18 4 4 / .08) 100%); transition: background-color .4s var(--ease); }
.way__body { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: .5rem; padding: clamp(1.25rem, 2.4vw, 2.25rem); }
.way__title { font: 400 clamp(1.625rem, 2.4vw, 2.25rem)/1.15 var(--font-display); }
.way--big .way__title { font-size: clamp(2rem, 3.2vw, 2.875rem); }
.way__text { max-width: 30rem; color: var(--text-muted); font-size: 1rem; line-height: 1.55; }
.way__more { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; margin-top: .25rem; font-weight: 600; font-size: .9375rem; color: var(--accent-strong); }
.way__more svg { width: 1.125rem; height: 1.125rem; transition: transform .35s var(--ease); }
.way:hover img, .way:focus-visible img { transform: scale(1.035); }
.way:hover .way__more svg, .way:focus-visible .way__more svg { transform: translateX(.3rem); }

/* ---------- text + fotka ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
.split__media { aspect-ratio: 3 / 2; }
.split--reverse .split__media { order: -1; }

/* ---------- úrovně degustace ---------- */
.levels { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2.5rem, 4vw, 3.5rem); border-top: 1px solid var(--line); }
.levels__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5.5rem); }
.level h4 { margin: 0 0 .75rem; font: 600 1.0625rem/1.3 var(--font-body); letter-spacing: .01em; color: var(--accent); }
.level p { margin: 0; }

/* ---------- destiláty ---------- */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.pills li { padding: .4375rem .9375rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: .9375rem; font-weight: 500; color: var(--text); }

/* ---------- 50+1 ---------- */
.bar { padding-bottom: clamp(4.5rem, 9vw, 8rem); }
.bar__banner { position: relative; display: grid; align-items: end; min-height: clamp(32rem, 78vh, 48rem); padding-block: clamp(3rem, 6vw, 5rem); isolation: isolate; overflow: hidden; }
.bar__media { position: absolute; inset: 0; z-index: -2; }
.bar__media img { object-position: 50% 40%; }
.bar__banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(0deg, var(--bg) 0%, rgb(18 4 4 / .82) 34%, rgb(18 4 4 / .38) 70%, rgb(18 4 4 / .7) 100%),
  linear-gradient(90deg, rgb(18 4 4 / .72) 0%, rgb(18 4 4 / 0) 62%); }
.bar__title { margin: 0; font: 400 clamp(5rem, 15vw, 12.5rem)/.9 var(--font-display); letter-spacing: -.03em; color: var(--accent); }
.bar__sub { margin: 1rem 0 1.25rem; font: 400 clamp(1.5rem, 2.6vw, 2.25rem)/1.2 var(--font-display); }
.bar__lead { margin: 0; max-width: 40rem; }
.facts { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: clamp(1.75rem, 4vw, 4rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.fact { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.fact h3 { margin: 0 0 .75rem; font: 400 1.5rem/1.2 var(--font-display); }
.fact__num { display: block; margin-bottom: .25rem; font-size: clamp(2.75rem, 4.5vw, 3.75rem); line-height: 1; color: var(--accent); }
@media (min-width: 900px) { .fact--plain h3 { padding-top: calc(clamp(2.75rem, 4.5vw, 3.75rem) + .25rem); } }
.bar__unique { margin: 1.5rem 0 0; max-width: 40rem; font: 500 clamp(1.25rem, 2vw, 1.625rem)/1.3 var(--font-display); color: var(--accent-strong); }
.fact p { margin: 0; color: var(--text-muted); }
.bar__extra { margin: clamp(2rem, 4vw, 3rem) 0 0; max-width: 44rem; color: var(--text-muted); }

.gallery { display: flex; gap: 1rem; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0 max(var(--gutter), calc((100vw - 84rem) / 2 + var(--gutter))) 1rem; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - 84rem) / 2 + var(--gutter))); scrollbar-width: thin; scrollbar-color: rgb(244 234 220 / .3) transparent; }
.gallery li { flex: 0 0 auto; width: clamp(14rem, 22vw, 19rem); scroll-snap-align: start; }
.gallery picture { aspect-ratio: 3 / 4; }
.gallery li.is-wide { width: calc(2 * clamp(14rem, 22vw, 19rem)); }
.gallery li.is-wide picture { aspect-ratio: 3 / 2; }
.bar__foot { margin-top: clamp(2.5rem, 5vw, 4rem); }
.bar__close { margin: 0; max-width: 40rem; font: 400 clamp(1.5rem, 2.4vw, 2.125rem)/1.3 var(--font-display); text-wrap: balance; }

/* ---------- o mně ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6.5rem); align-items: start; }
.about__media { position: sticky; top: calc(var(--header-h) + 2rem); aspect-ratio: 4 / 5; }
/* ---------- časté otázky ---------- */
.faq__list { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; padding-block: 1.25rem; font: 400 clamp(1.1875rem, 1.7vw, 1.4375rem)/1.35 var(--font-display); cursor: pointer; list-style: none; transition: color .25s var(--ease); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent-strong); }
.faq__icon { position: relative; flex: none; width: 1.125rem; height: 1.125rem; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; inset: 50% 0 auto 0; height: 1.5px; background: var(--accent); transition: transform .35s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__answer { padding: 0 0 1.75rem; }
.faq__answer p { margin: 0; max-width: 46rem; }

/* ---------- kontakt ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6.5rem); align-items: start; }
.contact__label { margin: 2rem 0 .25rem !important; font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.contact__direct { container-type: inline-size; }
.contact__mail { display: inline-flex; align-items: center; min-height: 2.75rem; font: 400 clamp(1.375rem, 6.6cqi, 2.75rem)/1.15 var(--font-display); color: var(--accent) !important; text-decoration: none; overflow-wrap: anywhere; transition: color .25s var(--ease); }
.contact__mail:hover { color: var(--accent-strong) !important; }
.contact__tel { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1.25rem; color: var(--text) !important; text-decoration: none; }
.contact__tel:hover { color: var(--accent-strong) !important; }

.form { padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.form__title { margin-bottom: 1.75rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.field label { font-size: .9375rem; font-weight: 600; color: var(--text); }
.field__opt { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 3rem; padding: .75rem .875rem; border: 1px solid rgb(244 234 220 / .34); border-radius: var(--radius); background: var(--bg-raised); color: var(--text); font: 400 1rem/1.4 var(--font-body); transition: border-color .2s var(--ease); }
.field textarea { resize: vertical; min-height: 7rem; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 50%, calc(100% - .875rem) 50%; background-size: .375rem .375rem; background-repeat: no-repeat; padding-right: 2.5rem; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgb(244 234 220 / .6); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: #f08a73; }
.field__help, .field__err { margin: 0 !important; font-size: .875rem; }
.field__err { color: #f6a08c !important; }
.form__submit { width: 100%; margin-top: .5rem; }
.form__submit[disabled] { opacity: .6; cursor: progress; }
.form__status { margin: 1rem 0 0 !important; font-weight: 600; min-height: 1.5rem; max-width: none !important; }
.form__status.is-ok { color: #b9d8a0 !important; }
.form__status.is-fail { color: #f6a08c !important; }
.form__privacy { margin: .75rem 0 0 !important; font-size: .875rem; max-width: none !important; }

/* ---------- patička ---------- */
.site-footer { padding-block: 3rem; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--text-muted); }
.site-footer p { margin: 0 0 .5rem; max-width: 56rem; }
.site-footer__brand { font: 500 1.3125rem/1 var(--font-display); color: var(--text); margin-bottom: 1rem !important; }
.site-footer a { color: var(--accent-strong); text-underline-offset: .2em; }

/* ---------- právní stránka ---------- */
.legal { padding-block: calc(var(--header-h) + clamp(3rem, 6vw, 5rem)) clamp(4rem, 8vw, 7rem); }
.legal h1 { margin-bottom: 1.5rem; }
.legal .h3 { margin: 3rem 0 1rem; }
.legal p { margin: 0 0 1.125rem; max-width: 46rem; color: var(--text-muted); }
.legal p.lead { color: var(--text); }
.legal a { color: var(--accent-strong); text-underline-offset: .2em; }
.legal__date { margin-top: 3rem !important; font-size: .9375rem; }

/* ---------- <900 ---------- */
@media (max-width: 899px) {
  .hero { display: block; min-height: 100dvh; padding: 0 0 2.5rem; }
  .hero__media { position: relative; inset: auto; width: 100%; height: min(58dvh, 125vw); }
  .hero__media img { object-position: 50% 12%; }
  .hero__media::after { background:
    linear-gradient(180deg, rgb(18 4 4 / .75) 0%, rgb(18 4 4 / 0) 24%),
    linear-gradient(0deg, var(--bg) 0%, rgb(18 4 4 / .7) 18%, rgb(18 4 4 / 0) 48%); }
  .hero__content { position: relative; max-width: none; margin-top: -4.5rem; padding-inline: var(--gutter); }
  .hero__eyebrow { margin-bottom: .875rem; font-size: .75rem; letter-spacing: .16em; }
  .hero__lead { margin-top: 1.125rem; font-size: 1.0625rem; max-width: 34rem; }
  .hero__cta { margin-top: 1.75rem; }

  .ways__grid { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .way, .way--big { grid-row: auto; aspect-ratio: 4 / 3; }
  .way--big { aspect-ratio: 4 / 5; }
  .split, .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__text { order: -1; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .fact { padding-block: 1.5rem; }
  .about__media { position: static; max-height: 34rem; }
  .about__media img { object-position: 50% 20%; }
}

@media (max-width: 599px) {
  :root { --header-h: 3.5rem; }
  .levels__cta .btn { width: 100%; }
  .brand { font-size: 1.125rem; }
  .site-header__side { gap: .5rem; }
  .header-cta span { display: none; }
  .header-cta { width: 2.75rem; padding: 0; }
  .lang { display: none; }
  .hero__cta { flex-direction: column; gap: .625rem; margin-top: 1.5rem; }
  .hero__cta .btn { width: 100%; }

  .levels__grid, .form__row { grid-template-columns: 1fr; gap: 0; }
  .levels__grid { gap: 2rem; }
  .gallery li, .gallery li.is-wide { width: 70vw; }
  .gallery li.is-wide picture { aspect-ratio: 3 / 4; }
  .gallery li.is-wide img { object-position: 60% 50%; }
  .way--big { aspect-ratio: 3 / 4; }
  .way { aspect-ratio: 1 / 1; }
}
@media (max-width: 599px) and (max-height: 760px) {
  .hero__media { height: 40dvh; }
  .hero__content { margin-top: -3rem; }
  .hero__lead { margin-top: .75rem; }
}

/* `font` shorthand resetuje font-variant */
* { font-variant-numeric: lining-nums !important; }
