@font-face {
  font-family: "Site Icons";
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url("fonts/fontawesome-solid.woff2") format("woff2");
}

:root {
  --brown: #844c1d;
  --dark-brown: #3b1e06;
  --green: #237b07;
  --green-marker: #249b01;
  --text: #626263;
  --heading: #54595f;
  --wood: url("img/drevo-1680.webp");
  --sans: "Poppins", Arial, sans-serif;
  --body: "Roboto", Arial, sans-serif;
  --handwriting: "Akaya Kanadaka", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; color: var(--text); background: #fff; font: 400 1rem/1.65 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #2966b0; outline-offset: 4px; }
.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.visually-hidden, .form-trap {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 12px;
  padding: 8px 14px;
  transform: translateY(-160%);
  color: #fff;
  background: var(--dark-brown);
}
.skip-link:focus { transform: none; }
.icon { display: inline-block; flex: none; font: 900 1em/1 "Site Icons"; font-synthesis: none; }

.site-header, .hero, .booking-main {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.site-header {
  background-image: linear-gradient(rgba(255,255,255,.66), rgba(255,255,255,.66)), var(--wood);
  color: var(--brown);
  font-family: var(--sans);
  padding-block: 10px 20px;
}
.header-top {
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-inline: 48px 16px;
}
.brand {
  display: inline-block;
  align-self: flex-start;
}
.brand-logo { inline-size: 300px; }
.phone-link, .menu-link, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35em;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid currentColor;
  background: transparent;
  white-space: nowrap;
}
.phone-link {
  margin-top: 17px;
  padding: 11px 22px;
  border-radius: 999px;
  color: var(--green);
}
.site-nav {
  width: min(100% - 24px, 1235px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: center;
  align-items: start;
  gap: 8px;
  margin: 10px auto 0;
}
.menu-link { padding: 12px 24px; border-radius: 0 42px; }
.menu-link[aria-current="page"] { color: var(--green); }
.menu-link:hover, .phone-link:hover, .button-outline:hover { background-color: rgba(255,255,255,.78); }

.hero {
  position: relative;
  min-block-size: 494px;
  padding-block: 30px 86px;
  color: #fff;
  background-color: #784515;
  background-image: linear-gradient(90deg, rgba(38,18,3,.43), rgba(38,18,3,.08) 72%), var(--wood);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 55.2%) minmax(0, 44.8%);
  position: relative;
  z-index: 1;
}
.hero h1, .accommodation h2, .privacy-main h1, .privacy-main h2, .submit-page h1 {
  margin: 0;
  font-family: var(--handwriting);
  font-weight: 400;
  line-height: 1.05;
}
.hero h1 { font-size: clamp(2.4rem, 3.8vw, 3rem); line-height: 1; }
.hero p {
  max-width: 540px;
  margin: 20px 20px 0 0;
  font: 600 1.0625rem/1.8 var(--sans);
}
.hero-image {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5px 16px 0 32px;
}
.hero-photo { inline-size: min(100%, 404px); transform: rotate(-4deg); }
.hero-wave {
  position: absolute;
  z-index: 0;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 68px;
  fill: #fff;
  transform: rotate(180deg);
  pointer-events: none;
}
.booking-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  width: 120px;
  height: 120px;
  border-radius: 23px 23px 23px 0;
  background: #003580;
  color: #fff;
  font: 400 1.0625rem/1 var(--body);
  text-decoration: none;
}
.booking-score { display: block; font-size: 3.75rem; line-height: .96; letter-spacing: -.05em; }
.booking-badge strong { margin-top: 4px; }
.booking-badge strong span { color: #7bacda; }
.booking-badge:hover { background: #004591; }

.accommodation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  padding-block: 0 14px;
  scroll-margin-top: 16px;
}
.accommodation h2 { font-size: 2.375rem; color: var(--heading); }
.accommodation-copy > p {
  margin: 19px 0 36px;
  font: 400 1.125rem/1.8 var(--sans);
}
.amenities {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 600 1rem/1.8 var(--sans);
}
.amenities li { display: flex; align-items: center; gap: 14px; }
.amenities .icon {
  width: 28px;
  font-size: 1.5rem;
  color: var(--brown);
}
.accommodation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  justify-content: space-around;
  margin-top: 30px;
}
.button {
  min-height: 44px;
  padding: 15px 25px;
  border-width: 2px;
  border-radius: 999px;
  font: 600 1.125rem/1.2 var(--sans);
  gap: .72em;
}
.button-outline { color: var(--brown); }
.button-green { color: var(--green); }
.button-green .icon { font-size: 1.4em; }
.photo-collage {
  position: relative;
  width: min(100%, 550px);
  aspect-ratio: 550 / 608;
  justify-self: center;
}
.photo-collage img {
  position: absolute;
  box-shadow: 0 1px 9px rgb(52 30 10 / .38);
}
.photo-garden { width: 85%; left: 8%; top: 6.7%; transform: rotate(10deg); }
.photo-gazebo { width: 62.5%; left: 8%; top: 55%; transform: rotate(-6deg); }

.review-slider {
  font-family: var(--sans);
  padding: 0 10px 35px;
}
.review-quote {
  margin-block: 2px 20px;
  font-size: 3.125rem;
  color: var(--green-marker);
}
.review-slider[data-review-index="1"] .review-quote,
.review-slider[data-review-index="2"] .review-quote { color: var(--brown); }
.review-stage { position: relative; }
.review-items { display: grid; }
.review { margin: 0 0 22px; }
.review-slider[data-enhanced] .review { grid-area: 1 / 1; min-height: 130px; }
.review[aria-hidden="true"] { visibility: hidden; }
.review blockquote { margin: 0; }
.review p { margin: 0; font-size: 1.125rem; font-weight: 500; font-style: italic; line-height: 1.75; }
.review figcaption { margin-top: 20px; font-size: 1.0625rem; font-weight: 500; }
.review-arrows {
  position: absolute;
  inset: 45px -35px auto;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.review-arrows button, .review-dots button {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 44px;
  border: none;
  padding: 0;
  background: transparent;
  color: var(--brown);
  border-radius: 6px;
  pointer-events: auto;
}
.review-arrows button:hover, .review-dots button:hover { background-color: #f5efe8; }
.review-arrows .icon { font-size: .8rem; }
.review-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin-top: 7px; }
.review-dots button { min-width: 30px; height: 34px; }
.review-dots button::after {
  content: "";
  background: currentColor;
  border-radius: 50%;
  width: 9px;
  height: 9px;
}
.review-dots button[aria-current="true"] { color: var(--green-marker); }

.certificate { padding-block: 60px 40px; }
.certificate img { width: min(100%, 955px); margin-inline: auto; }

.gallery-disclosure > summary { cursor: pointer; list-style: none; }
.gallery-disclosure > summary::-webkit-details-marker { display: none; }
.gallery-disclosure[open] { flex-basis: 100%; }
.gallery-disclosure .gallery-grid { margin-top: 16px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery-grid a { display: block; }
.gallery-grid a:hover img { filter: brightness(.9); }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-dialog {
  width: min(692px, calc(100% - 24px));
  max-width: none;
  max-height: min(92vh, 92dvh);
  padding: 0;
  border: 1px solid #d5ccc5;
  border-radius: 5px;
  box-shadow: 0 20px 64px rgb(37 25 14 / .27);
  color: #272321;
}
.gallery-dialog::backdrop { background: rgb(31 21 10 / .34); }
html:has(.gallery-dialog[open]) { overflow: hidden; }
.gallery-body { padding: 24px 30px; }
.gallery-footer { display: flex; justify-content: flex-end; padding: 12px 15px; border-top: 1px solid #e8dfd7; }
.gallery-close, .gallery-back, .gallery-view-actions button {
  min-height: 44px;
  border: 0;
  padding: 8px 14px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
}
.gallery-close:hover, .gallery-back:hover, .gallery-view-actions button:hover { background: #195305; }
.gallery-view-toolbar, .gallery-view-actions { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; }
.gallery-large { margin: 0; text-align: center; }
.gallery-large img { width: auto; max-width: 100%; height: auto; max-height: 63dvh; margin-inline: auto; object-fit: contain; }
.gallery-large figcaption { margin: 6px 12px; }
.gallery-close-icon, .gallery-view-actions button { min-width: 44px; }

.site-footer { background: var(--dark-brown); color: #fff; }
.footer-contact { padding-block: 12px 22px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.contact-grid-compact { grid-template-columns: minmax(0, 1fr); gap: 26px; }
.contact-group { display: grid; align-content: start; gap: 26px; text-align: center; }
.contact-item { display: grid; justify-items: center; gap: 4px; font-size: .875rem; font-weight: 700; }
.contact-item a { text-decoration: none; overflow-wrap: anywhere; }
.contact-item a:hover { text-decoration: underline; }
.contact-icon {
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  margin-bottom: 20px;
  color: #73b539;
  line-height: 1.05;
  font-size: 3.125rem;
}
.map-link {
  display: grid;
  align-items: center;
  justify-items: center;
  width: min(100%, 390px);
  margin-inline: auto;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
}
.map-link img, .map-link > span { grid-area: 1 / 1; }
.map-link img { width: 100%; }
.map-link > span {
  position: relative;
  display: block;
  max-width: calc(100% - 28px);
  padding: 9px 16px;
  border-radius: 3px;
  background: rgb(32 46 28 / .87);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
}
.map-link:hover > span { background: #25351c; text-decoration: underline; }
.footer-bottom {
  min-height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 20px;
  padding-block: 10px;
  font-size: .875rem;
}
.footer-bottom span { color: #dfcfc4; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }

.booking-page, .privacy-page { min-height: 100vh; display: flex; flex-direction: column; }
.booking-page .site-footer, .privacy-page .site-footer { margin-top: auto; }
.booking-main {
  flex: 1;
  background-color: #4a453f;
  background-image: linear-gradient(rgba(62,62,64,.85), rgba(62,62,64,.85)), var(--wood);
  color: #fff;
  padding-block: 22px 33px;
}
.booking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.booking-form { font-weight: 650; }
.form-field { display: grid; min-width: 0; align-content: start; }
.form-compact { width: min(100%, 333px); margin-bottom: 17px; }
.form-field label, .booking-dates legend { line-height: 1.45; }
.form-field input, .form-field textarea {
  width: 100%;
  min-width: 0;
  color: #fff;
  background: rgba(22,17,9,.14);
  border: 1px solid #d3cbbe;
  border-radius: 0 50px;
  padding: 13px 15px;
  color-scheme: dark;
}
.form-field input { min-height: 57px; }
.form-field textarea { min-height: 205px; resize: vertical; }
.booking-dates { border: 0; margin: 0 0 17px; padding: 0; min-width: 0; }
.booking-dates legend { padding: 0; margin-bottom: 5px; }
.date-fields { display: grid; grid-template-columns: minmax(0, 256px) minmax(0, 174px); gap: 8px; }
.booking-details { display: grid; grid-template-columns: minmax(150px, 37%) minmax(0, 1fr); gap: 12px; }
.guest-count input { width: 76px; min-height: 44px; border-radius: 3px; padding: 5px 8px; }
.booking-privacy { margin-block: 20px 18px; }
.booking-privacy label { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; }
.booking-privacy input { width: 16px; height: 16px; flex: none; margin: 4px 0 0; accent-color: var(--green); }
.booking-privacy a { display: inline-block; margin: 4px 0 0 25px; font-size: .85rem; font-weight: 500; }
.booking-submit {
  width: 100%;
  min-height: 44px;
  letter-spacing: .075em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brown);
  border: 1px solid #d0a575;
  border-radius: 2px;
  font: 700 1rem/1.2 var(--sans);
}
.booking-submit:hover { background: #673912; }
.booking-submit:disabled { opacity: .7; cursor: wait; }
.booking-note, .booking-result { margin: 9px 0 0; font-weight: 400; font-size: .875rem; }
.booking-result {
  padding: 12px 14px;
  color: #103b14;
  background: #edf9e9;
  border-radius: 5px;
  font-weight: 600;
  white-space: pre-line;
}
.booking-result[data-error] { color: #741e18; background: #fdf2ed; }
.booking-contacts .contact-icon { margin-bottom: 17px; }
.booking-contacts .contact-group { gap: 27px; }

.privacy-main { max-width: 820px; padding-block: 42px 60px; }
.privacy-main h1, .submit-page h1 { font-size: clamp(2.3rem, 5vw, 3rem); color: var(--heading); }
.privacy-main h2 { margin-top: 28px; font-size: 1.75rem; color: var(--heading); }
.privacy-main p, .submit-page p { margin: 12px 0; max-width: 74ch; }
.privacy-main a, .submit-page a { color: var(--brown); }
.submit-page { max-width: 820px; padding-block: 50px; }

@media (max-width: 1050px) {
  .header-top { padding-inline: 10px; }
  .menu-link { padding-inline: 17px; }
  .hero { min-block-size: 460px; }
  .hero-image { padding-inline: 25px 10px; }
  .accommodation-copy > p { font-size: 1.0625rem; }
  .accommodation-actions { justify-content: flex-start; }
  .button { padding-inline: 18px; font-size: 1rem; }
  .review-arrows { inset-inline: -26px; }
}

@media (max-width: 760px) {
  :root { --wood: url("img/drevo-840.webp"); }
  .container { width: calc(100% - 34px); }
  .site-header, .hero, .booking-main { background-attachment: scroll; }
  .site-header { padding-block: 12px 14px; }
  .header-top { min-height: 52px; align-items: center; gap: 10px; padding-inline: 0; }
  .brand { align-self: center; min-width: 0; }
  .brand-logo { width: clamp(157px, 50vw, 300px); }
  .phone-link { min-height: 44px; margin: 0; padding: 8px 12px; font-size: .8rem; }
  .site-nav { width: calc(100% - 34px); gap: 8px; }
  .menu-link { padding: 10px 12px; min-height: 44px; font-size: .82rem; }
  .hero { padding-block: 25px 66px; min-block-size: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 19px; }
  .hero h1 { max-width: 620px; font-size: clamp(2.12rem, 7.25vw, 2.75rem); }
  .hero p { margin-right: 0; margin-top: 14px; font-size: 1rem; }
  .hero-image { padding: 0 9px; }
  .hero-photo { width: min(82vw, 370px); }
  .hero-wave { height: 44px; }
  .booking-badge { width: 92px; height: 92px; margin-top: 18px; border-radius: 18px 18px 18px 0; font-size: .85rem; }
  .booking-score { font-size: 2.85rem; }
  .accommodation { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .accommodation h2 { font-size: 2.15rem; }
  .accommodation-copy > p { margin: 14px 0 19px; }
  .accommodation-actions { margin-top: 18px; }
  .photo-collage { width: min(100%, 430px); aspect-ratio: 550 / 575; }
  .photo-garden { width: 81%; left: 11%; }
  .photo-gazebo { top: 52%; }
  .review-slider { padding-inline: 16px; padding-bottom: 16px; }
  .review-quote { margin: 0 0 10px; font-size: 2.375rem; }
  .review p { font-size: 1rem; }
  .review figcaption { margin-top: 12px; }
  .review-arrows { position: static; pointer-events: auto; }
  .review { margin-bottom: 0; }
  .review-slider[data-enhanced] .review { min-height: 0; }
  .review-dots { margin-top: 0; }
  .certificate { padding-block: 20px 28px; }
  .booking-grid { gap: 32px; }
  .booking-details { grid-template-columns: minmax(0, 1fr); }
  .booking-form { font-weight: 600; }
  .booking-main .form-compact { width: 100%; }
  .gallery-body { padding: 12px; }
}

@media (max-width: 570px) {
  .site-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-link { width: 100%; }
  .contact-grid, .booking-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { gap: 26px; }
  .contact-group { gap: 21px; }
  .contact-icon { margin-bottom: 6px; font-size: 2.65rem; }
  .date-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-details { grid-template-columns: minmax(0, 1fr); }
  .form-field input:not([type="number"]), .form-field textarea { font-size: 1rem; }
  .form-field input[type="date"] { border-radius: 0 23px; padding-inline: 8px; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .footer-bottom { font-size: .8125rem; gap: 5px 12px; text-align: center; }
}
