:root {
  --green: #2a2a27;
  --logo-brown: #765536;
  --gold: #cfb18f;
  --button-brown: #51443b;
  --paper: #f7f4ee;
  --line: #e4ddd4;
}
html { scroll-padding-top: var(--header-offset, 72px); }
body { background: var(--paper); color: var(--green); line-height: 1.55; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); letter-spacing: -.025em; }
h3 { font-size: 1.35rem; }
:focus-visible { outline: 3px solid #986d3e; outline-offset: 3px; }
header {
  position: sticky; top: 0; z-index: 8; display: flex; flex-wrap: nowrap;
  gap: 1rem; padding: 5px max(1rem, calc((100% - 1060px) / 2));
  background: #f0ebe3; color: var(--green); border-bottom: 1px solid var(--line); box-shadow: none;
}
header .headcontact { display: none; }
header .brand { white-space: nowrap; gap: .55rem; font-size: clamp(1.05rem, 2.1vw, 1.4rem); color: var(--logo-brown); }
header .rotunda-logo {
  width: 52px; height: 52px; flex: 0 0 auto;
  background-image: url("assets/logo-matne.png");
}
#main-nav { justify-content: flex-end; gap: clamp(.2rem, .75vw, .65rem); }
#main-nav a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: .35rem clamp(.35rem, .7vw, .65rem);
  font-size: .875rem; font-weight: 700; white-space: nowrap;
  box-shadow: inset 0 -2px transparent;
  transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}
#main-nav a:focus-visible {
  background: #e7d4be; color: #432b18; box-shadow: inset 0 -2px var(--logo-brown);
}
@media (hover: hover) {
  #main-nav a:hover {
    background: #e7d4be; color: #432b18; box-shadow: inset 0 -2px var(--logo-brown);
    text-decoration: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #main-nav a { transition: none; }
}
.nav-toggle { display: none; }
.language-select {
  width: 3.9rem; min-height: 40px; margin: 0; padding: .3rem .4rem;
  border: 0; border-radius: 0; font: inherit; font-size: .875rem;
  background: #e7d4be; color: #432b18; font-weight: 650; cursor: pointer;
}
#main-nav .language-select:focus-visible { background: #dcc2a5; }
@media (hover: hover) {
  #main-nav .language-select:hover { background: #dcc2a5; }
}
.btn, button { background: var(--button-brown); border-radius: 0; padding: .6rem .9rem; }
.gold { background: var(--gold); color: #25221c; }
.hero {
  position: relative; isolation: isolate; display: grid; place-items: center start;
  min-height: clamp(340px, 62svh, 625px); padding: 2rem 1rem;
  background: var(--green); text-align: center;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slides { z-index: -2; }
.hero .hero-image {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 0; opacity: 0; transition: opacity var(--hero-fade-time, 1200ms) ease;
}
.hero .hero-image.is-current { opacity: 1; }
.hero-next {
  position: absolute; inset: 0; width: 100%; padding: 0; background: transparent;
  cursor: pointer;
}
.hero-next:focus-visible { outline-offset: -5px; }
.hero article {
  position: relative; z-index: 1; pointer-events: none;
  display: flex; align-items: center; gap: clamp(.85rem, 2.7vw, 1.65rem);
  margin: 0 0 0 clamp(0rem, 2vw, 2rem); text-align: left;
}
.hero-emblem { flex: 0 0 auto; width: clamp(88px, 16vw, 180px); }
.hero-emblem img {
  display: block; width: 100%; height: auto; aspect-ratio: 1;
  transform: translate(1.2%, -.6%) scaleX(1.013);
  filter: grayscale(1) brightness(1.65) contrast(.75) brightness(1.2)
    drop-shadow(0 1px 3px #24180f) drop-shadow(0 2px 6px #24180f99);
}
.hero-copy { min-width: 0; color: white; text-shadow: 0 1px 3px #24180f, 0 2px 9px #24180fa8; }
.hero-copy .btn { pointer-events: auto; text-shadow: none; }
@media (min-width: 521px) {
  .hero article {
    --emblem-size: clamp(88px, 16vw, 180px);
    display: grid;
    grid-template-columns: var(--emblem-size) minmax(0, 1fr);
    gap: 0 clamp(.85rem, 2.7vw, 1.65rem);
  }
  .hero-copy { display: contents; }
  .hero-copy > * { grid-column: 2; }
  .hero-copy .eyebrow { grid-row: 1; }
  .hero .hero-copy h1 { grid-row: 2; margin-block: .4rem; }
  .hero .hero-copy .hero-tagline { grid-row: 3; margin-inline: 0; }
  .hero-copy .btn { grid-row: 4; justify-self: start; }
  .hero-emblem {
    grid-area: 2 / 1 / 3 / 2;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
}
@media (max-width: 520px) {
  .hero article { flex-direction: column; align-items: flex-start; }
}
.hero .hero-tagline { margin: 0 auto 1.15rem; color: #fff4e5; font: clamp(1.05rem, 2.4vw, 1.45rem) Georgia, serif; }
.hero h1 { margin: .35rem 0 .45rem; font-size: clamp(2.6rem, 6vw, 5.4rem); color: #fff; }
.eyebrow { color: #785637; letter-spacing: .12em; }
.hero .eyebrow { color: #fff4e5; font-size: .8rem; }
.wrap { width: min(1060px, calc(100% - 2rem)); max-width: none; margin: 0 auto; padding: 0; }
.wrap.section-panel { margin: 0 auto; padding: clamp(1.85rem, 4vw, 3rem) 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.welcome { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(1rem, 5vw, 4rem); padding: clamp(1.85rem, 4vw, 3rem) 0; }
.intro-photo { padding: 0; cursor: zoom-in; display: block; background: transparent; }
.intro-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.strip {
  display: grid; grid-template-columns: repeat(6, max-content);
  background: #f0ebe3; color: var(--green); border: 0; padding: .7rem 1rem;
  gap: .45rem 1.8rem; text-align: center;
}
.strip span { position: relative; }
.strip span + span::before {
  content: ''; position: absolute; inset: 50% auto auto -.9rem;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--logo-brown); transform: translate(-50%, -50%);
}
@media (min-width: 601px) and (max-width: 940px) {
  .strip { grid-template-columns: repeat(3, max-content); }
  .strip span:nth-child(3n + 1)::before { display: none; }
}
@media (max-width: 600px) {
  .strip { grid-template-columns: repeat(2, minmax(0, auto)); gap: .45rem 1rem; }
  .strip span + span::before { inset-inline-start: -.5rem; }
  .strip span:nth-child(odd)::before { display: none; }
}
#ubytovanie > p { max-width: 68ch; }
#cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 1.2rem; margin-top: 1.2rem; }
#cards .card.detail {
  display: flex; flex-direction: column-reverse; justify-content: flex-end;
  min-width: 0; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
#cards .body { display: flex; flex-direction: column; flex: 1; padding: .8rem 0 0; }
#cards h3 { margin-bottom: .35rem; }
#cards .tag, #cards .body p { margin: .3rem 0 .45rem; }
#cards .gallery { display: block; padding: 0; min-height: 0; }
#cards .photo { display: block; width: 100%; height: auto; padding: 0; border: 0; border-radius: 0; }
#cards .photo img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; display: block; border-radius: 0; }
#cards .actions { margin-top: auto; padding-top: .55rem; }
#cards .actions .btn { font-size: .875rem; }
main .panel, main .contact-details, main .contact-map, #liptov .liptov-card,
#liptov .liptov-itineraries article, #liptov .liptov-services article, #liptov .liptov-transport {
  background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 0; min-width: 0;
}
#liptov .liptov-transport { color: var(--green); }
#liptov .liptov-transport a { color: #6a482b; text-decoration: underline; }
#liptov .liptov-card-body { padding: .6rem 0 .85rem; }
#liptov .liptov-heading { margin-top: 1.4rem; }
#liptov .liptov-card img { aspect-ratio: 16 / 9; height: auto; }
.contact-details { align-items: flex-start; text-align: left; }
.contact-routes { display: grid; width: min(100%, 320px); gap: .6rem; }
.contact-route {
  display: grid; gap: .3rem; padding: .65rem .9rem; border: 1px solid #a98763;
  text-decoration: none; box-shadow: 0 1px 2px #51372426;
}
.contact-route-label { display: flex; gap: .5rem; align-items: center; font-weight: 700; }
.contact-route-address { font-size: .9rem; font-weight: 400; }
.contact-emblem { display: none; }
.contact-map iframe { min-height: 260px; height: 300px; border-radius: 0; }
#liberty .featurephoto { height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
footer { background: var(--green); padding: 1.2rem 1rem; }
#modal {
  position: fixed; padding: 0; border: 0; background: #171513;
  max-width: 94vw; max-height: 92vh; overflow: hidden;
}
#modal .modal-photo { display: block; padding: 0; background: transparent; cursor: pointer; }
#modal img { display: block; width: auto; height: auto; max-width: 94vw; max-height: 88vh; object-fit: contain; }
#modal .modal-close {
  position: absolute; top: .55rem; right: .55rem; width: 44px; height: 44px;
  padding: 0; border-radius: 50%; background: #3a3028ed; color: white;
  display: grid; place-items: center; border: 1px solid #fff9;
}
#modal .modal-close::before, #modal .modal-close::after {
  content: ''; grid-area: 1 / 1; width: 18px; height: 2px;
  border-radius: 2px; background: currentColor;
}
#modal .modal-close::before { transform: rotate(45deg); }
#modal .modal-close::after { transform: rotate(-45deg); }
@media (max-width: 800px) {
  header { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  #main-nav { display: none; flex: 1 0 100%; justify-content: flex-start; padding: 0 0 .55rem; }
  .nav-toggle[aria-expanded="true"] + #main-nav { display: flex; }
  #cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .hero { min-height: 340px; }
  .welcome, #cards { grid-template-columns: minmax(0, 1fr); }
  #cards .photo img { max-height: 175px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .hero-image { transition: none; }
}

.welcome-gallery { position: relative; }
.welcome-gallery-label {
  position: absolute; inset: auto auto .75rem .75rem;
  padding: .5rem .75rem; background: #fcf8f0; color: #513724;
  font-size: .9rem; font-weight: 650;
}

.booking-phone {
  display: grid; grid-template-columns: minmax(5.8rem, auto) minmax(0, 1fr);
  column-gap: .6rem; align-items: start; margin-bottom: .65rem;
}
.booking-phone label { margin: 0; }
.booking-phone select, .booking-phone input { min-width: 0; width: 100%; }

#cennik .price-period {
  border-color: #dacabb; background: #f0e9e1; border-radius: 0;
}
#cennik .price-period select { border-color: #aa9079; }
#cennik .price-period select:focus-visible { outline-color: var(--logo-brown); }
#cennik thead th { background: #e8dfd5; color: #413226; }
#cennik .offer-heading { background: var(--logo-brown); color: #fffaf4; }
#cennik #prices th { background: #fffdf9; }
#cennik .offer-cell { background: #f0e6dc; color: #513724; }
#cennik .table-extra { color: #694c36; }

#dopyt #form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2rem); }
#dopyt #form > .panel > h3 { margin: 0 0 .85rem; }
#dopyt .item {
  grid-template-columns: minmax(0, 3fr) minmax(3.2rem, 1fr) max-content auto;
}
#dopyt .item label { display: grid; grid-template-rows: auto 44px; gap: 5px; margin: 0; min-width: 0; }
#dopyt .item select { height: 44px; margin: 0; padding-block: 0; }
#dopyt .booking-breakfast-option { justify-items: center; align-items: center; text-align: center; cursor: pointer; }
#dopyt .booking-breakfast-option input {
  width: 1.15rem; height: 1.15rem; margin: 0; padding: 0; accent-color: var(--logo-brown);
}
#dopyt .item > button { height: 44px; }
.booking-summary-heading { color: #513724; font-weight: 650; margin-bottom: .35rem; }
.booking-price-breakdown { margin: .7rem 0 .9rem; }
.booking-price-breakdown > div {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem;
  padding: .38rem 0; border-bottom: 1px solid var(--line);
}
.booking-price-breakdown dd { margin: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; }
.booking-price-breakdown .booking-price-total {
  align-items: baseline; padding-block: .65rem 0; border-bottom: 0; color: #513724;
}
.booking-price-total dt { font-weight: 700; }
.booking-price-total dd { font: 700 clamp(1.45rem, 3vw, 2.2rem) Georgia, serif; }
@media (max-width: 800px) {
  #dopyt #form { grid-template-columns: minmax(0, 1fr); }
  #dopyt .item { grid-template-columns: minmax(3.2rem, 1fr) max-content auto; }
}
#cennik .stay-fees-title { text-align: center; margin: 1.65rem 0 .85rem; }
.stay-fees {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid #dacabb; background: #f0e9e1; text-align: center;
  margin: 0 0 .7rem;
}
.stay-fee-group { min-width: 0; padding: 1rem clamp(.75rem, 3vw, 1.8rem); }
.stay-fee-group + .stay-fee-group { border-inline-start: 1px solid #dacabb; }
.stay-fee-group h4 {
  margin: 0 0 .55rem; color: var(--logo-brown); font: 1.2rem Georgia, serif;
}
.stay-fee-group dl { display: grid; grid-template-columns: max-content max-content; justify-content: center; gap: .3rem .85rem; margin: 0; }
.stay-fee-group dl > div { display: contents; }
.stay-fee-group dt { text-align: right; }
.stay-fee-group dd { margin: 0; text-align: left; }
.stay-fee-group dd, #breakfast-price-rate { color: #513724; font-weight: 650; }
#breakfast-price-rate { margin: 0; }
.stay-fees-note { text-align: center; }
@media (max-width: 640px) {
  .stay-fees { grid-template-columns: 1fr; }
  .stay-fee-group + .stay-fee-group { border-inline-start: 0; border-top: 1px solid #dacabb; }
}

@media (hover: hover) {
  :is(a.btn, button:enabled) {
    transition: filter .16s ease, background-color .16s ease, box-shadow .16s ease;
  }
  :is(a.btn, button:enabled):hover {
    filter: brightness(1.09);
  }
  :is(a.btn, button:enabled).gold:hover {
    background-color: #dcc2a6;
    filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  :is(a.btn, button:enabled) { transition: none; }
}
