/* SPM Plus – stavebné rezivo
   Farby: smrek (čerstvo narezané rezivo), ihličnatá tmavá zelená, modrá tesárskej šnúry.
   Písmo: Archivo (úzky rez pre nadpisy, bežný pre ovládanie), Source Serif 4 (text). */

@font-face {
  font-family: 'Archivo Fallback';
  src: local('Arial Narrow'), local('ArialNarrow'), local('Arial');
  size-adjust: 94%;
}

:root {
  --paper: #f2f1ec;
  --paper-2: #e6e3da;
  --paper-hi: #fbfaf6;
  --spruce: #e6cf98;
  --spruce-hi: #f0dcab;
  --spruce-deep: #d9bb76;
  --pine: #1f2e27;
  --pine-2: #27392f;
  --pine-deep: #16211c;
  --ink: #1e2622;
  --stone: #555a54;
  --mist: #c9cfc6;
  --chalk: #2445a0;
  --chalk-dark: #1a3480;
  --line: #cbc7bb;
  --line-dark: rgb(242 241 236 / 0.14);
  --error: #a3231b;

  --sans: 'Archivo', 'Archivo Fallback', 'Arial Narrow', Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --header-h: 64px;
  --sec-pad: clamp(72px, 9vw, 140px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.45vw, 1.375rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem);
  --fs-h2: clamp(2.125rem, 1.4rem + 2.6vw, 3.75rem);
  --fs-h1: clamp(2.6rem, 1.2rem + 5vw, 6rem);
}

@media (min-width: 1100px) {
  :root {
    --fs-body: 1.125rem;
    --header-h: 80px;
  }
}

/* ---------------------------------------------------------------- base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

picture {
  display: contents;
}

h1,
h2,
h3 {
  font-family: var(--sans);
  margin: 0;
  text-wrap: balance;
}

h1,
h2 {
  font-stretch: 72%;
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.005em;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 650;
  line-height: 1.2;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--chalk);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--chalk-dark);
  text-decoration-thickness: 2.5px;
}

:focus-visible {
  outline: 3px solid var(--chalk);
  outline-offset: 3px;
}

.ic {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--spruce);
  color: var(--ink);
  padding: 12px 16px;
  font-family: var(--sans);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* chýbajúci údaj */
.ph {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.8;
  border-bottom: 1.5px dashed currentColor;
}

.photo-note {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
  padding: 5px 10px;
  background: rgb(23 32 28 / 0.72);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 650;
  font-stretch: 92%;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease),
    box-shadow 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: none;
}

.btn .ic {
  transition: transform 0.25s var(--ease);
}

.btn:hover .ic {
  transform: translateX(3px);
}

.btn-lg {
  min-height: 56px;
  padding: 16px 28px;
  font-size: 1.0625rem;
}

.btn-primary {
  background: var(--chalk);
  color: #fff;
}

.btn-primary:hover {
  background: var(--chalk-dark);
  color: #fff;
  box-shadow: 0 10px 20px -12px rgb(26 52 128 / 0.8);
}

.btn-spruce {
  background: var(--spruce);
  color: var(--ink);
}

.btn-spruce:hover {
  background: var(--spruce-hi);
  color: var(--ink);
  box-shadow: 0 10px 22px -12px rgb(0 0 0 / 0.55);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.55);
}

.btn-ghost:hover {
  color: #fff;
  border-color: #fff;
  background: rgb(255 255 255 / 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--spruce);
  border-color: var(--spruce);
}

.btn-outline:hover {
  background: var(--spruce);
  color: var(--ink);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
  transform: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
}

/* ---------------------------------------------------------- top bar */

.topbar {
  display: none;
  background: var(--pine-deep);
  color: var(--mist);
  font-family: var(--sans);
  font-size: 0.875rem;
}

.topbar-in {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 40px;
}

.topbar-tag {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
}

.topbar-tag .ic {
  width: 17px;
  height: 17px;
  color: var(--spruce);
}

.topbar-contacts {
  display: flex;
  gap: 24px;
  list-style: none;
}

.topbar-contacts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-contacts .ic {
  color: var(--spruce);
  width: 15px;
  height: 15px;
}

.topbar a {
  color: var(--paper);
  text-decoration: none;
}

.topbar a:hover {
  color: #fff;
  text-decoration: underline;
}

.topbar :focus-visible,
.site-header :focus-visible,
.hero :focus-visible,
.contact-info :focus-visible,
.site-footer :focus-visible,
.band :focus-visible,
.choice:focus-visible,
.mbar :focus-visible {
  outline-color: var(--spruce);
}

.lang ul {
  display: flex;
  list-style: none;
  gap: 2px;
}

.lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 9px;
  min-width: 38px;
  min-height: 38px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  color: var(--mist);
  text-decoration: none;
  border-radius: 3px;
  transition: color 0.2s, background-color 0.2s;
}

.lang a:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.08);
  text-decoration: none;
}

.lang a[aria-current='true'] {
  color: #fff;
  background: rgb(255 255 255 / 0.1);
  box-shadow: inset 0 -2px 0 var(--spruce);
}

.flag {
  width: 20px;
  height: 14px;
  flex: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.28);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.lang a:hover .flag,
.lang a[aria-current='true'] .flag {
  opacity: 1;
}

.lang-top a {
  min-height: 30px;
}

/* ------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #24362d 0%, #1e2c25 100%);
  border-bottom: 1px solid rgb(230 207 152 / 0.16);
  color: var(--paper);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 16px 34px -22px rgb(0 0 0 / 0.8);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled {
    background: rgb(30 44 37 / 0.9);
    backdrop-filter: blur(12px) saturate(1.2);
  }
}

.header-in {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}

.brand:hover {
  color: #fff;
}

.brand-spm {
  font-size: 1.75rem;
  font-weight: 800;
  font-stretch: 62%;
  letter-spacing: 0.02em;
}

.brand-plus {
  font-size: 1.375rem;
  font-weight: 450;
}

.brand-word {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--spruce);
  line-height: 1;
}

.brand-footer {
  flex-direction: row;
  align-items: baseline;
  gap: 0.28em;
}

.audience {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 5px;
  background: rgb(0 0 0 / 0.2);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 999px;
}

.audience a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px 9px 14px;
  border-radius: 999px;
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.9688rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.audience .ic {
  width: 18px;
  height: 18px;
  color: var(--spruce);
  transition: color 0.25s ease, transform 0.3s var(--ease);
}

.audience a:hover {
  background: rgb(255 255 255 / 0.09);
  color: #fff;
}

.audience a:hover .ic {
  transform: translateY(-1px);
}

.audience a[aria-current='page'] {
  background: var(--spruce);
  color: var(--ink);
  box-shadow: 0 6px 16px -8px rgb(0 0 0 / 0.7);
}

.audience a[aria-current='page'] .ic {
  color: var(--ink);
}

.nav-cta .ic {
  width: 18px;
  height: 18px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 26px;
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-family: var(--sans);
  font-weight: 550;
  font-size: 1rem;
  color: var(--paper);
  text-decoration: none;
}

.nav-list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--spruce);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-list a:hover,
.nav-list a.is-active {
  color: #fff;
}

.nav-list a:hover::after,
.nav-list a.is-active::after {
  transform: scaleX(1);
}

.call-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--spruce);
  color: var(--ink);
}

.call-btn .ic {
  width: 20px;
  height: 20px;
}

.lang-menu {
  display: none;
}

@media (min-width: 1100px) {
  .topbar {
    display: block;
  }

  .header-in {
    gap: 32px;
  }

  .nav {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 28px;
  }

  .nav-list {
    margin-left: auto;
  }

  .nav-extra,
  .lang-bar,
  .call-btn,
  .menu-btn {
    display: none;
  }
}

@media (max-width: 1099px) {
  .lang-bar {
    margin-left: auto;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border: 1.5px solid rgb(255 255 255 / 0.55);
    border-radius: 3px;
    background: transparent;
    color: #fff;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
  }

  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: transform 0.25s var(--ease), background-color 0.2s ease;
  }

  .menu-icon::before,
  .menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
  }

  .menu-icon::before {
    top: -5px;
  }

  .menu-icon::after {
    top: 5px;
  }

  .nav-open .menu-icon {
    background: transparent;
  }

  .nav-open .menu-icon::before {
    transform: translateY(5px) rotate(45deg);
  }

  .nav-open .menu-icon::after {
    transform: translateY(-5px) rotate(-45deg);
  }

  .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }

  .js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: 18px var(--gutter) 28px;
    background: var(--pine);
    border-top: 1px solid var(--line-dark);
    box-shadow: 0 30px 40px -24px rgb(0 0 0 / 0.6);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }

  .js .nav-open .nav {
    display: flex;
    animation: nav-in 0.28s var(--ease) both;
  }

  .audience {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 14px;
  }

  .audience a {
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 76px;
    padding: 12px 8px;
    border-radius: 10px;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }

  .audience .ic {
    width: 22px;
    height: 22px;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 14px 0;
    font-size: 1.375rem;
    font-weight: 650;
    font-stretch: 85%;
    border-bottom: 1px solid var(--line-dark);
  }

  .nav-list a::after {
    display: none;
  }

  .mobile-contacts {
    list-style: none;
    display: grid;
    gap: 2px;
    font-family: var(--sans);
  }

  .mobile-contacts li {
    display: grid;
    grid-template-columns: 22px 6.5rem 1fr;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--mist);
  }

  .mobile-contacts .ic {
    color: var(--spruce);
  }

  .mobile-contacts a {
    color: #fff;
    font-weight: 600;
  }

  .nav-cta {
    min-height: 56px;
  }

  html:not(.js) .header-in {
    flex-wrap: wrap;
    height: auto;
    padding-block: 12px;
  }

  html:not(.js) .nav {
    order: 3;
    width: 100%;
  }

  html:not(.js) .menu-btn {
    display: none;
  }
}

@keyframes nav-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@media (max-width: 560px) {
  .lang-bar .lang-code {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .lang-bar a {
    padding: 0 6px;
  }

  .lang-bar .flag {
    width: 24px;
    height: 16px;
  }
}

@media (max-width: 359px) {
  .brand-sub {
    display: none;
  }
}

@media (max-width: 400px) {
  .brand-sub {
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
  }

  .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .menu-btn {
    padding: 0 12px;
  }

  .lang-bar a {
    min-width: 34px;
  }

  .brand-spm {
    font-size: 1.5rem;
  }

  .brand-plus {
    font-size: 1.1875rem;
  }
}

/* --------------------------------------------------------------- hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: min(calc(100svh - var(--header-h)), 860px);
  background: #18201c;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero--private .hero-img {
  object-position: 60% 40%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgb(17 25 21 / 0.2) 0%,
    rgb(17 25 21 / 0.55) 30%,
    rgb(17 25 21 / 0.88) 62%,
    rgb(17 25 21 / 0.94) 100%
  );
}

@media (min-width: 1100px) {
  .hero {
    /* hero + horný pruh (40 px) + hlavička = presne jedna obrazovka */
    min-height: min(calc(100svh - var(--header-h) - 40px), 860px);
  }
}

.hero-in {
  display: grid;
  gap: 36px;
  padding-top: clamp(150px, 26svh, 300px);
  padding-bottom: clamp(36px, 6vw, 72px);
}

.hero h1 {
  font-size: var(--fs-h1);
  max-width: 13ch;
  color: #fff;
}

:lang(hu) .hero h1 {
  font-size: clamp(2.25rem, 0.9rem + 3.9vw, 4.5rem);
  max-width: 17ch;
}

:lang(en) .hero h1 {
  font-size: clamp(2.4rem, 1.1rem + 4.5vw, 5.25rem);
  max-width: 14ch;
}

.hero--private h1,
.hero--business h1 {
  max-width: 15ch;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1rem;
  color: var(--spruce);
}

.hero-kicker::before {
  content: '';
  width: 32px;
  height: 2px;
  background: currentColor;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-width: 40ch;
}

.hero .lead {
  margin-top: clamp(18px, 2.2vw, 28px);
  color: #e3e6de;
}

.hero .actions {
  margin-top: clamp(26px, 3vw, 40px);
}

.hero > .photo-note {
  top: 12px;
  right: 12px;
}

/* štítok balíka – zhrnutie ponuky */
.tag {
  position: relative;
  width: min(100%, 380px);
  background: var(--spruce);
  color: var(--ink);
  padding: 22px 22px 18px;
  border-radius: 3px;
  box-shadow: 0 24px 40px -24px rgb(0 0 0 / 0.75);
  font-family: var(--sans);
}

.tag::before {
  content: '';
  position: absolute;
  top: 18px;
  right: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--pine);
  box-shadow: 0 0 0 2px var(--spruce-deep);
}

.tag-brand {
  font-size: 1.125rem;
  font-weight: 800;
  font-stretch: 62%;
  letter-spacing: 0.06em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}

.tag dl {
  margin: 0;
}

.tag dl > div {
  display: grid;
  grid-template-columns: 7.25rem 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgb(30 38 34 / 0.22);
}

.tag dl > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tag dt {
  font-size: 0.875rem;
  color: #4a4636;
  font-weight: 500;
}

.tag dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
}

@media (max-width: 759px) {
  .hero .actions .btn {
    width: 100%;
  }
}

@media (min-width: 760px) {
  .hero-shade {
    background: linear-gradient(
        90deg,
        rgb(17 25 21 / 0.92) 0%,
        rgb(17 25 21 / 0.78) 38%,
        rgb(17 25 21 / 0.3) 72%,
        rgb(17 25 21 / 0.12) 100%
      ),
      linear-gradient(0deg, rgb(17 25 21 / 0.55) 0%, transparent 45%);
  }

  .hero-in {
    padding-top: clamp(56px, 9vh, 140px);
  }
}

@media (min-width: 1000px) {
  .hero-in {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: clamp(40px, 5vw, 96px);
  }

  .tag {
    width: 380px;
    justify-self: end;
    margin-bottom: 4px;
  }
}

/* nízke okná (napr. notebook 1366 × 768) */
@media (min-width: 1000px) and (max-height: 920px) {
  .hero h1 {
    font-size: min(var(--fs-h1), 10svh);
  }

  .hero-kicker {
    margin-bottom: 12px;
  }

  :lang(hu) .hero h1 {
    font-size: min(clamp(2.25rem, 0.9rem + 3.9vw, 4.5rem), 8.4svh);
  }

  :lang(en) .hero h1 {
    font-size: min(clamp(2.4rem, 1.1rem + 4.5vw, 5.25rem), 8.8svh);
  }
}

@media (min-width: 1000px) and (max-height: 760px) {
  .hero-in {
    padding-top: 32px;
    padding-bottom: 28px;
  }

  .hero h1,
  :lang(hu) .hero h1,
  :lang(en) .hero h1 {
    font-size: min(var(--fs-h1), 8.4svh);
  }

  .hero .lead {
    font-size: 1.0625rem;
    margin-top: 14px;
  }

  .hero .actions {
    margin-top: 20px;
  }

  .tag dl > div {
    padding: 5px 0;
  }
}

/* vstupná animácia hero sekcie */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-img {
    animation: settle 2.2s var(--ease) both;
  }

  .js .hero-copy > * {
    animation: rise 0.9s var(--ease) both;
  }

  .js .hero-copy > :nth-child(1) {
    animation-delay: 0.12s;
  }

  .js .hero-copy > :nth-child(2) {
    animation-delay: 0.22s;
  }

  .js .hero-copy > :nth-child(3) {
    animation-delay: 0.32s;
  }

  .js .hero-copy > :nth-child(4) {
    animation-delay: 0.42s;
  }

  .js .hero .tag {
    animation: rise 1s var(--ease) 0.55s both;
  }
}

@keyframes settle {
  from {
    transform: scale(1.07);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
}

/* postupné zobrazovanie obsahu pri posúvaní */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.85s var(--ease) calc(var(--d, 0) * 110ms),
      transform 0.85s var(--ease) calc(var(--d, 0) * 110ms);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------- section head */

.sec-head {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.sec-head h2 {
  font-size: var(--fs-h2);
  max-width: 14ch;
}

.sec-head p {
  max-width: 52ch;
  color: var(--stone);
  font-size: var(--fs-lead);
  line-height: 1.5;
}

@media (min-width: 960px) {
  .sec-head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(32px, 4vw, 64px);
    align-items: end;
  }
}

/* ------------------------------------------------------------ chooser */

.chooser {
  padding-block: var(--sec-pad);
}

.chooser-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .chooser-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

.choice {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  min-height: clamp(400px, 44vw, 580px);
  border-radius: 4px;
  color: #fff;
  text-decoration: none;
  background: var(--pine);
}

.choice:hover {
  color: #fff;
}

.choice-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.choice-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.choice::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(17 25 21 / 0.05) 15%, rgb(17 25 21 / 0.55) 48%, rgb(17 25 21 / 0.92) 100%);
  transition: opacity 0.4s ease;
}

.choice-body {
  margin-top: auto;
  padding: clamp(24px, 3.2vw, 44px);
  display: grid;
  gap: 14px;
}

.choice-title {
  font-family: var(--sans);
  font-stretch: 72%;
  font-weight: 760;
  font-size: clamp(2rem, 1.4rem + 1.8vw, 3.25rem);
  line-height: 1;
}

.choice-text {
  max-width: 42ch;
  color: #e3e6de;
}

.choice-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  font-family: var(--sans);
  font-weight: 650;
  color: var(--spruce);
}

.choice-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--spruce);
  color: var(--ink);
  transition: transform 0.35s var(--ease);
}

.choice-arrow .ic {
  width: 20px;
  height: 20px;
}

.choice:hover .choice-media img {
  transform: scale(1.05);
}

.choice:hover .choice-arrow {
  transform: translateX(6px);
}

/* --------------------------------------------------------------- uses */

.uses {
  padding-block: var(--sec-pad);
  background: var(--paper);
}

.chooser + .uses {
  padding-top: 0;
}

.use-list {
  list-style: none;
}

.use {
  display: grid;
  gap: 16px;
  padding-block: 28px 36px;
  border-top: 2px solid var(--ink);
}

.use-term {
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.75rem);
  font-stretch: 72%;
  font-weight: 760;
  line-height: 1;
}

.use-text {
  max-width: 46ch;
}

.use-media {
  position: relative;
  margin: 0;
  order: -1;
  overflow: hidden;
  border-radius: 3px;
}

.use-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--paper-2);
  transition: transform 1s var(--ease);
}

.use:hover .use-media img {
  transform: scale(1.04);
}

@media (min-width: 720px) {
  .use {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
      'term media'
      'text media';
    column-gap: 32px;
    align-items: start;
  }

  .use-term {
    grid-area: term;
  }

  .use-text {
    grid-area: text;
  }

  .use-media {
    grid-area: media;
    order: 0;
  }
}

@media (min-width: 1100px) {
  .use {
    grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr);
    grid-template-areas: 'term text media';
    column-gap: clamp(32px, 4vw, 64px);
    padding-block: 32px;
  }

  .use-text {
    padding-top: 0.6em;
  }

  .use-media img {
    aspect-ratio: 16 / 10;
  }
}

/* ------------------------------------------------------------ drawing */

.drawing {
  margin-top: clamp(56px, 7vw, 104px);
  background: var(--spruce);
  padding: clamp(28px, 4.5vw, 64px);
  display: grid;
  gap: 32px;
  margin-inline: calc(-1 * var(--gutter));
}

@media (min-width: 720px) {
  .drawing {
    margin-inline: 0;
    border-radius: 4px;
  }
}

.drawing-copy h3 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  font-stretch: 75%;
  font-weight: 740;
  line-height: 1.05;
}

.drawing-copy > p {
  margin-top: 14px;
  max-width: 46ch;
}

.parts {
  list-style: none;
  counter-reset: part;
  margin-top: 24px;
  display: grid;
}

.parts li {
  counter-increment: part;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 14px;
  padding: 10px 0;
  border-top: 1px solid rgb(30 38 34 / 0.2);
  font-size: var(--fs-small);
  line-height: 1.45;
}

.parts li::before {
  content: counter(part);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--chalk);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9375rem;
}

.parts b {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1.0625rem;
  display: block;
}

.drawing-figure {
  margin: 0;
}

.drawing-crop {
  overflow: hidden;
}

.krov {
  width: 189%;
  max-width: none;
  height: auto;
}

@media (min-width: 600px) {
  .krov {
    width: 100%;
  }
}

.drawing-figure figcaption {
  margin-top: 14px;
  font-size: 0.875rem;
  color: #4a4636;
  font-style: italic;
}

@media (max-width: 999px) {
  .drawing {
    gap: 0;
  }

  .drawing-copy {
    display: contents;
  }

  .drawing-figure {
    order: 1;
    margin-top: 28px;
  }

  .parts {
    order: 2;
    margin-top: 28px;
  }
}

@media (min-width: 1000px) {
  .drawing {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(40px, 5vw, 80px);
    align-items: center;
  }
}

.krov .m {
  fill: url(#wood);
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-linejoin: round;
  transition: stroke 0.3s ease, stroke-width 0.3s ease;
}

.krov .m.end {
  fill: url(#woodEnd);
}

.krov .rings circle {
  fill: none;
  stroke: #b58b4c;
  stroke-width: 0.9;
  opacity: 0.75;
}

.krov .grain {
  fill: none;
  stroke: #c7a467;
  stroke-width: 0.8;
  stroke-linecap: round;
  opacity: 0.7;
}

.krov .cbatten {
  fill: #ead7aa;
  stroke: var(--ink);
  stroke-width: 0.9;
}

.krov .tile {
  fill: none;
  stroke: #8a4f2c;
  stroke-width: 3.2;
  stroke-linecap: round;
}

.krov .ghost path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2;
}

.krov .ghost-1 {
  opacity: 0.22;
}

.krov .ghost-2 {
  opacity: 0.1;
}

.krov .masonry path {
  stroke: var(--ink);
  stroke-width: 1.3;
}

.krov .hl {
  stroke: #c4ad80;
  stroke-width: 1;
  fill: none;
}

.krov .dot {
  fill: #b5a888;
}

.krov .floor-shadow {
  fill: rgb(30 38 34 / 0.12);
}

.krov .bolt {
  fill: var(--ink);
}

.krov .mk-c {
  fill: var(--chalk);
  stroke: var(--spruce);
  stroke-width: 3;
  transition: transform 0.3s var(--ease);
  transform-box: fill-box;
  transform-origin: center;
}

.krov .mk text {
  fill: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

.krov .lead {
  stroke: var(--chalk);
  stroke-width: 1.8;
}

.krov .lead-dot {
  fill: var(--chalk);
}

/* ------------------------------------------- 3D model domu a krovu (teardown) */

.krov3d,
.cap-3d {
  display: none;
}

.has-3d .drawing-crop,
.has-3d .cap-2d {
  display: none;
}

.has-3d .krov3d {
  display: block;
  animation: k3-in 0.9s var(--ease) both;
}

.has-3d .cap-3d {
  display: inline;
}

@keyframes k3-in {
  from {
    opacity: 0;
  }
}

/* scéna je súčasťou sekcie: okraje plátna sa rozpúšťajú do podkladu, žiadny rám ani lišta */
.k3-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: -12px calc(-1 * clamp(28px, 4.5vw, 64px)) 0;
}

.k3-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

/* okraje plátna sa rozpúšťajú do podkladu prechodom nad plátnom (lacnejšie než maska na živom plátne) */
.k3-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to right, var(--spruce) 0, transparent 4%, transparent 96%, var(--spruce) 100%),
    linear-gradient(to bottom, var(--spruce) 0, transparent 5%, transparent 95%, var(--spruce) 100%);
}

.k3-label {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--chalk);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 650;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 8px 18px -8px rgb(26 52 128 / 0.7);
}

.k3-label::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: var(--chalk);
  transform: rotate(45deg);
  border-radius: 2px;
}

.k3-card {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: none;
  padding: 10px 14px 11px;
  border-radius: 10px;
  background: rgb(252 248 238 / 0.94);
  box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.45);
  font-family: var(--sans);
  line-height: 1.4;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.k3-card b {
  display: block;
  margin-bottom: 2px;
  font-size: 1rem;
  font-weight: 700;
}

.k3-card span {
  display: block;
  font-size: 0.875rem;
  color: #3f3b30;
}

/* na telefóne a tablete je zoznam prvkov pod modelom – krátky popis je preto priamo v obraze */
@media (max-width: 999px) {
  .k3-card:not([hidden]) {
    display: block;
  }

  .k3-label {
    display: none;
  }
}

/* kým je scéna z väčšej časti na obrazovke, pevný pruh s výzvou nezakrýva model */
.k3-near .mbar.is-visible {
  transform: translateY(calc(100% + 24px));
  visibility: hidden;
  transition: transform 0.3s var(--ease), visibility 0s linear 0.3s;
}

.k3-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 4px;
}

.k3-tour {
  min-height: 48px;
  padding: 10px 20px 10px 16px;
}

.k3-tour .ic {
  width: 18px;
  height: 18px;
  transition: none;
}

.k3-tour:hover .ic {
  transform: none;
}

.k3-tour[data-state='play'] .ic:nth-of-type(2),
.k3-tour[data-state='stop'] .ic:nth-of-type(1) {
  display: none;
}

.k3-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.k3-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.k3-icon .ic {
  width: 20px;
  height: 20px;
}

.k3-icon:hover:not(:disabled) {
  background: var(--ink);
  color: var(--spruce);
}

.k3-icon:disabled {
  opacity: 0.3;
  cursor: default;
}

.k3-icon:focus-visible,
.k3-home:focus-visible {
  outline: 3px solid var(--chalk);
  outline-offset: 2px;
}

.k3-where {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  min-width: 7.5em;
  line-height: 1.15;
  font-family: var(--sans);
}

.k3-count {
  font-size: 0.8125rem;
  color: #5a5340;
  font-variant-numeric: tabular-nums;
}

.k3-step {
  font-size: 1.0625rem;
  font-weight: 700;
}

.k3-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--chalk);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.k3-home .ic {
  width: 18px;
  height: 18px;
}

.k3-home:hover {
  color: var(--chalk);
}

.k3-hint {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.45;
  color: #4a4636;
  max-width: 60ch;
}

.has-3d .parts li {
  cursor: pointer;
  border-radius: 4px;
}

.has-3d .parts li:hover {
  background: rgb(255 255 255 / 0.28);
}

.has-3d .parts li:focus-visible {
  outline: 3px solid var(--chalk);
  outline-offset: 2px;
}

@media (min-width: 1000px) {
  .drawing:has(.has-3d) {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: start;
  }

  .drawing:has(.has-3d) .drawing-copy {
    padding-top: 12px;
  }
}

@media (max-width: 999px) {
  .k3-stage {
    margin-inline: calc(-1 * clamp(28px, 4.5vw, 64px));
  }
}

@media (max-width: 719px) {
  .k3-stage {
    margin-inline: calc(-1 * var(--gutter));
  }
}

@media (max-width: 599px) {
  /* na telefóne vyššie plátno, aby bolo vidno detaily krovu */
  .k3-stage {
    aspect-ratio: 4 / 5;
  }

  .k3-stage::after {
    background: linear-gradient(to bottom, var(--spruce) 0, transparent 4%, transparent 96%, var(--spruce) 100%);
  }

  .k3-bar {
    gap: 10px 14px;
  }

  .k3-nav {
    order: -1;
    width: 100%;
    justify-content: space-between;
  }

  .k3-tour {
    flex: 1 1 auto;
  }
}

/* na telefóne: prvky ako posuvný rad štítkov priamo pod modelom */
.k3-chips {
  display: none;
}

.k3-fail {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: #7a3a2a;
}

@media (max-width: 999px) {
  /* posuvný rad nesmie roztiahnuť stránku: položky mriežky majú min. šírku 0 */
  .drawing-figure,
  .krov3d {
    min-width: 0;
  }

  .k3-chips {
    display: flex;
    min-width: 0;
    gap: 8px;
    margin: 0 calc(-1 * clamp(28px, 4.5vw, 64px));
    padding: 12px clamp(28px, 4.5vw, 64px) 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .k3-chips::-webkit-scrollbar {
    display: none;
  }

  .k3-chip {
    flex: none;
    scroll-snap-align: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px 0 8px;
    border: 1.5px solid rgb(30 38 34 / 0.35);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.45);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 650;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  .k3-chip b {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--chalk);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
  }

  .k3-chip--home {
    padding-left: 14px;
  }

  .k3-chip.is-active {
    background: var(--pine);
    border-color: var(--pine);
    color: #fff;
  }

  .k3-chip.is-active b {
    background: var(--spruce);
    color: var(--ink);
  }

  .k3-chip:focus-visible {
    outline: 3px solid var(--chalk);
    outline-offset: 2px;
  }
}

@media (max-width: 719px) {
  .k3-chips {
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
  }
}

/* zvýraznenie prvku pri prejdení na položku legendy */
.krov [data-part] {
  transition: opacity 0.3s ease;
}

.krov[data-active] [data-part] {
  opacity: 0.25;
}

.krov[data-active='1'] [data-part='1'],
.krov[data-active='2'] [data-part='2'],
.krov[data-active='3'] [data-part='3'],
.krov[data-active='4'] [data-part='4'],
.krov[data-active='5'] [data-part='5'],
.krov[data-active='6'] [data-part='6'] {
  opacity: 1;
}

.krov[data-active='1'] [data-part='1'] .m,
.krov[data-active='2'] [data-part='2'] .m,
.krov[data-active='3'] [data-part='3'] .m,
.krov[data-active='4'] [data-part='4'] .m,
.krov[data-active='5'] [data-part='5'] .m,
.krov[data-active='6'] [data-part='6'] .m {
  stroke: var(--chalk);
  stroke-width: 2.6;
}

.krov[data-active='1'] .mk[data-part='1'] .mk-c,
.krov[data-active='2'] .mk[data-part='2'] .mk-c,
.krov[data-active='3'] .mk[data-part='3'] .mk-c,
.krov[data-active='4'] .mk[data-part='4'] .mk-c,
.krov[data-active='5'] .mk[data-part='5'] .mk-c,
.krov[data-active='6'] .mk[data-part='6'] .mk-c {
  transform: scale(1.18);
}

.krov .mk {
  cursor: default;
}

.parts li {
  transition: background-color 0.25s ease;
}

.parts li.is-active {
  background: rgb(255 255 255 / 0.4);
}

@media (prefers-reduced-motion: no-preference) {
  .js .krov:not(.is-drawn) .m {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    fill-opacity: 0;
  }

  .js .krov:not(.is-drawn) .mk,
  .js .krov:not(.is-drawn) .rings,
  .js .krov:not(.is-drawn) .grain,
  .js .krov:not(.is-drawn) .cbatten,
  .js .krov:not(.is-drawn) .tile,
  .js .krov:not(.is-drawn) .ghost,
  .js .krov:not(.is-drawn) .bolt {
    opacity: 0;
  }

  .js .krov.is-drawn .m {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    fill-opacity: 1;
    transition: stroke-dashoffset 1.3s var(--ease), fill-opacity 0.6s ease 1s, stroke 0.3s ease, stroke-width 0.3s ease;
  }

  .js .krov.is-drawn .rings,
  .js .krov.is-drawn .grain,
  .js .krov.is-drawn .cbatten,
  .js .krov.is-drawn .bolt {
    transition: opacity 0.5s ease 1.05s;
  }

  .js .krov.is-drawn .tile,
  .js .krov.is-drawn .ghost {
    transition: opacity 0.6s ease 1.2s;
  }

  .js .krov.is-drawn .mk {
    transition: opacity 0.35s ease calc(1.4s + var(--i) * 0.09s);
  }

  .js .krov.is-settled .mk,
  .js .krov.is-settled .m {
    transition: opacity 0.3s ease, stroke 0.3s ease, stroke-width 0.3s ease;
  }
}

/* ------------------------------------------------------------ steps */

.steps {
  list-style: none;
  counter-reset: step;
  margin-top: 36px;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  column-gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-family: var(--sans);
  font-stretch: 62%;
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 0.9;
  color: var(--chalk);
}

.steps h3 {
  font-size: 1.1875rem;
  font-weight: 650;
}

.steps p {
  margin-top: 4px;
  color: var(--stone);
  font-size: var(--fs-small);
}

.steps--dark li {
  border-top-color: var(--line-dark);
}

.steps--dark li::before {
  color: var(--spruce);
}

.steps--dark p {
  color: var(--mist);
}

/* ------------------------------------------------- how (súkromní) */

.how {
  padding-block: var(--sec-pad);
  border-bottom: 1px solid var(--line);
}

.how-grid {
  display: grid;
  gap: 48px;
}

.how h2 {
  font-size: var(--fs-h2);
  max-width: 13ch;
}

.how-intro {
  margin-top: 20px;
  max-width: 46ch;
  font-size: var(--fs-lead);
  color: var(--stone);
  line-height: 1.5;
}

.checklist {
  background: var(--spruce);
  padding: clamp(26px, 4vw, 48px);
  border-radius: 4px;
  margin-inline: calc(-1 * var(--gutter));
}

@media (min-width: 600px) {
  .checklist {
    margin-inline: 0;
  }
}

.checklist h3 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-stretch: 78%;
  font-weight: 740;
  margin-bottom: 16px;
}

.checklist ul {
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgb(30 38 34 / 0.2);
  line-height: 1.45;
}

.checklist .ic {
  color: var(--chalk);
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.checklist .btn {
  margin-top: 24px;
}

@media (min-width: 960px) {
  .how-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: clamp(40px, 6vw, 112px);
    align-items: start;
  }

  .checklist {
    position: sticky;
    top: calc(var(--header-h) + 28px);
  }
}

/* ------------------------------------------------------------- quality */

.quality {
  padding-block: var(--sec-pad);
  background: var(--paper-2);
}

.quality-grid {
  display: grid;
  gap: 40px;
}

.quality-media {
  position: relative;
  margin: 0 calc(-1 * var(--gutter));
  overflow: hidden;
}

.quality-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  background: var(--paper);
}

.quality-copy h2 {
  font-size: var(--fs-h2);
  max-width: 12ch;
}

.qblock {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #bdb8aa;
}

.quality-copy h2 + .qblock {
  margin-top: 36px;
}

.qblock p {
  margin-top: 8px;
  max-width: 48ch;
}

@media (min-width: 960px) {
  .quality-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(40px, 5vw, 88px);
    align-items: start;
  }

  .quality-media {
    margin: 0 0 0 calc(-1 * max(var(--gutter), (100vw - var(--maxw)) / 2));
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

/* --------------------------------------------------------------- band */

.band {
  background: var(--pine-2);
  color: var(--paper);
}

.band-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-block: clamp(32px, 4vw, 48px);
}

.band p {
  font-family: var(--sans);
  font-stretch: 76%;
  font-weight: 720;
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.25rem);
  line-height: 1.1;
}

/* ------------------------------------------------------- business page */

.volume {
  background: var(--spruce);
  padding-block: clamp(64px, 8vw, 120px);
}

.volume-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.volume-statement {
  font-family: var(--sans);
  font-stretch: 72%;
  font-weight: 760;
  font-size: clamp(2.25rem, 1.3rem + 3.4vw, 4.5rem);
  line-height: 1;
  max-width: 15ch;
  text-wrap: balance;
}

.volume-note {
  margin-top: 24px;
  max-width: 44ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
}

.volume-for {
  margin-top: 36px;
}

.volume-for h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  margin-bottom: 12px;
}

.volume-for ul {
  list-style: none;
  display: grid;
  gap: 0 32px;
  max-width: 560px;
}

.volume-for li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-top: 1px solid rgb(30 38 34 / 0.22);
  font-family: var(--sans);
  font-weight: 600;
}

.volume-for li::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(10px + 0.45em);
  width: 10px;
  height: 10px;
  background: var(--pine);
}

.volume-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
}

.volume-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

@media (min-width: 600px) {
  .volume-for ul {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .volume-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: clamp(40px, 6vw, 112px);
  }
}

.exchange {
  padding-block: var(--sec-pad);
}

.exchange-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 860px) {
  .exchange-grid {
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(40px, 6vw, 112px);
  }
}

.exchange-col h3 {
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.exchange-confirm h3 {
  border-bottom-color: var(--chalk);
}

.ruled {
  list-style: none;
}

.ruled li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--line);
}

.ruled li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: calc(14px + 0.5em);
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--ink);
  background: var(--spruce);
}

.exchange-confirm .ruled li::before {
  display: none;
}

.exchange-confirm .ruled .ic {
  position: absolute;
  left: 0;
  top: calc(14px + 0.2em);
  width: 20px;
  height: 20px;
  color: var(--chalk);
}

/* ------------------------------------------------------------- contact */

.contact {
  background: var(--pine);
  color: var(--paper);
  padding-block: var(--sec-pad);
}

.contact-info a {
  color: #fff;
}

.contact-info a:hover {
  color: var(--spruce);
}

.contact-grid {
  display: grid;
  gap: 48px;
}

.contact-info h2 {
  font-size: var(--fs-h2);
  max-width: 11ch;
  color: #fff;
}

.contact-lead {
  margin-top: 20px;
  font-size: var(--fs-lead);
  max-width: 38ch;
  color: #d9ddd6;
}

.direct,
.seat {
  margin-top: 44px;
}

.direct h3,
.seat h3 {
  font-size: 1.1875rem;
  font-weight: 650;
  margin-bottom: 12px;
}

.direct-list {
  list-style: none;
}

.direct-list li {
  display: grid;
  grid-template-columns: 40px 6.5rem 1fr;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line-dark);
  font-family: var(--sans);
}

.direct-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(230 207 152 / 0.13);
  color: var(--spruce);
}

.direct-ic .ic {
  width: 18px;
  height: 18px;
}

.direct-label {
  color: var(--mist);
  font-size: 0.9375rem;
}

.direct-value {
  font-weight: 600;
  font-size: 1.0625rem;
  overflow-wrap: anywhere;
}

.contact-note,
.seat-note {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--mist);
}

.seat address {
  display: flex;
  gap: 14px;
  font-style: normal;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.seat-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgb(230 207 152 / 0.13);
  color: var(--spruce);
}

.seat-ic .ic {
  width: 18px;
  height: 18px;
}

.contact-form {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(24px, 4vw, 48px);
  margin-inline: calc(-1 * var(--gutter));
  box-shadow: 0 40px 60px -40px rgb(0 0 0 / 0.6);
}

@media (min-width: 600px) {
  .contact-form {
    margin-inline: 0;
    border-radius: 4px;
  }
}

.form-title {
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem);
  font-stretch: 76%;
  font-weight: 740;
}

.quote-form {
  display: grid;
  gap: 22px;
}

.seg-field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.seg-field legend {
  padding: 0;
  margin-bottom: 8px;
  font-family: var(--sans);
  font-weight: 650;
}

.seg {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--paper-2);
  border-radius: 6px;
}

.seg input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.seg label {
  padding: 11px 20px;
  border-radius: 4px;
  font-family: var(--sans);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.seg label:hover {
  background: rgb(30 38 34 / 0.07);
}

.seg input:checked + label {
  background: var(--pine);
  color: #fff;
}

.seg input:focus-visible + label {
  outline: 3px solid var(--chalk);
  outline-offset: 2px;
}

@media (max-width: 599px) {
  .seg {
    display: grid;
  }

  .seg label {
    padding-inline: 8px;
  }
}

.field {
  display: grid;
  gap: 6px;
  align-content: start;
}

.field-row {
  display: grid;
  gap: 22px;
}

@media (min-width: 600px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1rem;
}

.opt {
  font-weight: 450;
  color: var(--stone);
}

.hint {
  font-size: var(--fs-small);
  color: var(--stone);
  line-height: 1.45;
  max-width: 60ch;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid #8b8d85;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--chalk);
  box-shadow: 0 0 0 3px rgb(36 69 160 / 0.35);
}

.field [aria-invalid='true'] {
  border-color: var(--error);
  border-width: 2px;
}

.err {
  color: var(--error);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 550;
  line-height: 1.35;
}

.form-summary {
  padding: 14px 16px;
  border-left: 4px solid var(--error);
  background: #f8e9e6;
  color: var(--error);
  font-family: var(--sans);
  font-weight: 600;
}

.form-summary:focus {
  outline: none;
}

.form-note {
  font-size: 0.875rem;
  color: var(--stone);
  line-height: 1.45;
}

.quote-form .btn {
  justify-self: start;
}

@media (max-width: 599px) {
  .quote-form .btn {
    justify-self: stretch;
  }
}

.form-status:empty {
  display: none;
}

.form-status {
  padding: 16px 18px;
  border-left: 4px solid var(--ink);
  background: var(--spruce);
  font-size: var(--fs-small);
  line-height: 1.5;
  animation: rise 0.4s var(--ease) both;
}

.form-status p + p,
.form-status p + .btn {
  margin-top: 10px;
}

.form-status[data-kind='success'] {
  background: #e3ecdf;
  border-left-color: #2f6b3a;
}

.form-status[data-kind='error'] {
  background: #f8e9e6;
  border-left-color: var(--error);
}

.form-status strong {
  font-family: var(--sans);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* na mobile: nadpis a úvod, hneď formulár, až potom priame kontakty */
@media (max-width: 999px) {
  .contact-grid {
    gap: 0;
  }

  .contact-info {
    display: contents;
  }

  .contact-form {
    order: 1;
    margin-top: 40px;
  }

  .direct,
  .seat {
    order: 2;
  }
}

@media (min-width: 1000px) {
  .contact-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(40px, 6vw, 112px);
    align-items: start;
  }

  .contact-form {
    padding: 36px 40px 40px;
  }

  .contact-form .quote-form {
    gap: 18px;
  }

  .contact-form textarea {
    min-height: 132px;
  }
}

/* formulár ostáva na mieste, kým sa vedľa posúvajú kontaktné údaje */
@media (min-width: 1000px) and (min-height: 820px) {
  .contact-form {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

/* ------------------------------------------------------------- footer */

.site-footer {
  background: var(--pine-deep);
  color: var(--mist);
  padding-block: 64px 40px;
  font-size: var(--fs-small);
}

.site-footer a {
  color: var(--paper);
}

.site-footer a:hover {
  color: var(--spruce);
}

.footer-grid {
  display: grid;
  gap: 36px;
}

.brand-footer .brand-spm {
  font-size: 2.25rem;
}

.brand-footer .brand-plus {
  font-size: 1.75rem;
}

.footer-brand p:last-child {
  margin-top: 14px;
  max-width: 32ch;
}

.footer-h {
  margin-bottom: 12px;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 650;
  font-stretch: 100%;
  line-height: 1.3;
  color: #fff;
}

.footer-nav ul,
.footer-lang ul {
  list-style: none;
  display: grid;
  gap: 2px;
}

.footer-nav a {
  display: inline-block;
}

.footer-lang a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-nav a,
.footer-lang a {
  padding: 5px 0;
  font-family: var(--sans);
  font-weight: 500;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-lang a:hover,
.footer-lang a[aria-current='true'] {
  text-decoration: underline;
  text-decoration-color: var(--spruce);
  text-decoration-thickness: 2px;
}

.company-name {
  font-family: var(--sans);
  font-weight: 650;
  color: #fff;
}

.company dl {
  margin: 10px 0 0;
  display: grid;
  gap: 3px;
}

.company dl > div {
  display: grid;
  grid-template-columns: minmax(7rem, auto) 1fr;
  gap: 12px;
}

.company dd {
  margin: 0;
  color: var(--paper);
}

.register {
  margin-top: 10px;
  font-size: 0.8125rem;
  max-width: 40ch;
}

.footer-small {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem;
  display: grid;
  gap: 6px;
}

.footer-small a {
  color: var(--mist);
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .footer-grid {
    grid-template-columns: 4fr 3fr 5fr 2fr;
    column-gap: 48px;
  }
}

/* -------------------------------------------- mobilný pruh s výzvou */

.mbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgb(31 46 39 / 0.96);
  border-radius: 8px;
  box-shadow: 0 18px 40px -12px rgb(0 0 0 / 0.55);
  transform: translateY(calc(100% + 24px));
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
}

.mbar.is-visible {
  transform: none;
  visibility: visible;
  transition: transform 0.4s var(--ease);
}

.mbar .btn {
  flex: 1;
  min-height: 48px;
  padding-inline: 12px;
}

.mbar .btn-ghost {
  flex: 0 0 auto;
}

html:not(.js) .mbar {
  display: none;
}

@media (min-width: 760px) {
  .mbar {
    display: none;
  }
}

/* ----------------------------------------------- obmedzenie pohybu */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------- print */

@media print {
  .topbar,
  .site-header,
  .contact-form,
  .photo-note,
  .mbar {
    display: none;
  }

  .hero,
  .contact,
  .band,
  .site-footer {
    background: none;
    color: #000;
  }

  .hero-media,
  .hero-shade {
    display: none;
  }

  .hero h1 {
    color: #000;
  }
}
