﻿:root {
  --ink: #16273a;
  --muted: #5d6d82;
  --paper: #f6fbff;
  --cream: #eaf6fb;
  --line: #d7e5ef;
  --green: #1f7ca8;
  --green-deep: #0f4f75;
  --clay: #d68b3f;
  --water: #b8dceb;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(17, 43, 64, 0.14);
}

* {
  box-sizing: border-box;
}

body,
body *:not(i):not(svg):not(.fa):not(.fas):not(.far):not(.fab):not(.svg-inline--fa) {
  font-family: "Segoe UI", sans-serif !important;
}

html {
  scroll-behavior: smooth;
  font-family: "Segoe UI", sans-serif;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.is-lightbox-open {
  overflow: hidden;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
span,
a,
button,
input,
select,
textarea,
label,
dl,
dd {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
span,
a,
button,
input,
select,
textarea,
label,
dl,
dt,
dd,
small,
strong,
em,
.brand,
.brand__text,
.header-phone,
.main-nav,
.eyebrow,
.button,
.room-card__top span,
.tag-list span,
.price-table,
.rules-list,
.map-placeholder,
.message {
  font-family: "Segoe UI", sans-serif;
}

.house-description-blocks {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.house-description-block {
  margin: 0;
}

.house-description-block--image img {
  display: block;
  width: 100%;
  border-radius: 18px;
}

.house-description-block--image figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.eyebrow--large {
  font-size: 15px;
  letter-spacing: 0.02em;
}

h1 {
  margin-bottom: 22px;
  max-width: 900px;
  font-size: clamp(58px, 10vw, 132px);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero__title {
  display: grid;
  gap: 0;
}

.hero__title-line {
  display: block;
}

.hero__title-line:first-child {
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  max-width: 780px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.18;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  padding: 18px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(14, 25, 19, 0.42), rgba(14, 25, 19, 0.12));
  backdrop-filter: blur(10px);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(246, 251, 255, 0.96);
  box-shadow: 0 8px 34px rgba(19, 31, 24, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand__logo {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.brand__text,
.header-phone {
  white-space: nowrap;
}

.brand__text {
  min-width: 0;
  line-height: 1.05;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 34px);
  font-size: 15px;
  font-weight: 700;
}

.main-nav a {
  padding: 8px 0;
  text-transform: uppercase;
}

.header-phone {
  font-weight: 800;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  place-items: center;
  padding: 10px;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2px 0;
  background: currentColor;
}

.messages {
  position: fixed;
  top: 90px;
  right: 18px;
  z-index: 50;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 36px));
}

.message {
  padding: 14px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: var(--white);
}

.message--success {
  border-left: 4px solid var(--green);
}

.message--error {
  border-left: 4px solid #b4443b;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 132px clamp(18px, 6vw, 86px) 58px;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(0deg, var(--paper), rgba(246, 251, 255, 0));
  pointer-events: none;
}

.hero__slide,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__slide {
  background-image: url("../img/hero-guest-house.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero__veil {
  background:
    linear-gradient(90deg, rgba(11, 34, 53, 0.84) 0%, rgba(11, 34, 53, 0.58) 40%, rgba(11, 34, 53, 0.16) 100%),
    linear-gradient(0deg, rgba(11, 34, 53, 0.33), rgba(11, 34, 53, 0.05));
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  padding-bottom: clamp(40px, 8vw, 120px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.detail-hero .eyebrow,
.rules-section .eyebrow {
  color: #f4c28b;
}

.hero__lead {
  max-width: 620px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 23px);
}

.hero__actions,
.section__head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 13px 22px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(56px);
  filter: blur(8px);
  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 900ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.scroll-reveal--scale {
  transform: translateY(44px) scale(0.94);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.button--primary {
  color: var(--white);
  background: var(--green);
}

.button--glass {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.12);
}

.button--soft {
  color: var(--green-deep);
  background: var(--cream);
}

.advantages {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(1180px, calc(100% - 36px));
  margin: -44px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}

.advantages article {
  min-height: 168px;
  padding: 28px;
  background: var(--white);
}

.advantage-icon,
.feature-grid span {
  display: block;
  margin-bottom: 20px;
  color: var(--clay);
  font-weight: 900;
}

.advantages strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.advantages p,
.about-section__copy p,
.feature-grid p,
.room-card p,
.room-card dt,
.section__note,
.price-intro p,
.booking__content p,
.contacts-section p {
  color: var(--muted);
}

.section {
  padding: clamp(74px, 9vw, 126px) clamp(18px, 5vw, 72px);
  scroll-margin-top: 110px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(38px, 7vw, 96px);
  align-items: center;
}

.about-section__copy p:not(.eyebrow) {
  max-width: 680px;
  font-size: 19px;
}

.about-section__copy h2 {
  margin-bottom: 24px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.tag-list span,
.room-card__top span {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--green-deep);
  background: var(--cream);
  font-size: 14px;
  font-weight: 900;
}

.about-section__media {
  position: relative;
  min-height: 520px;
}

.about-section__media img {
  width: 100%;
  height: 520px;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.feature-band {
  background: #eef2eb;
}

.section__head {
  justify-content: space-between;
  margin-bottom: 34px;
}

.text-link {
  color: var(--green-deep);
  border-bottom: 1px solid currentColor;
  font-weight: 900;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.feature-grid article,
.room-card,
.booking,
.map-placeholder {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.feature-grid article {
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(28, 39, 32, 0.08);
}

.feature-grid img {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
}

.feature-grid article div,
.room-card__body {
  padding: 26px;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.rooms-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 16px;
  align-items: end;
  margin: 28px 0 22px;
}

.rooms-filter__field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.rooms-filter__field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}

.rooms-filter__reset {
  min-height: 50px;
}

.room-card {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.room-card.is-hidden {
  display: none;
}

.room-card__image-link,
.room-card > img {
  display: block;
}

.room-card img {
  width: 100%;
  height: 300px;
  display: block;
  object-fit: cover;
}

.room-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.room-card__top h3 {
  margin: 0;
}

.room-card__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.room-card__facts div {
  min-width: 0;
}

.room-card dt {
  margin-bottom: 2px;
  font-size: 13px;
}

.room-card dd {
  margin: 0;
  color: var(--green-deep);
  font-size: 20px;
  font-weight: 900;
}

.prices-section {
  background: var(--cream);
}

.price-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: end;
}

.price-table {
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
}

.price-table__row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
}

.price-table__row + .price-table__row {
  border-top: 1px solid var(--line);
}

.price-table__row span {
  padding: 18px 22px;
}

.price-table__row span + span {
  border-left: 1px solid var(--line);
}

.price-table__row--head {
  color: var(--white);
  background: var(--green-deep);
  font-weight: 900;
}

.booking {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  margin: clamp(76px, 9vw, 126px) clamp(18px, 5vw, 72px);
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 46%, rgba(234, 246, 251, 0.92) 100%);
  box-shadow: var(--shadow);
}

.booking__map {
  min-height: 360px;
  height: 100%;
  border: 1px solid rgba(215, 229, 239, 0.95);
  border-radius: 8px;
  overflow: hidden;
  background: var(--water);
}

.booking__map-frame {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: block;
  border: 0;
}

.booking__content {
  display: grid;
  align-content: center;
  gap: 16px;
  min-width: 0;
}

.booking__content h2 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(42px, 4.6vw, 66px);
  white-space: nowrap;
}

.booking__content > p:not(.eyebrow) {
  max-width: 680px;
  margin-bottom: 8px;
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.booking-form__field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.booking-form__price {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.booking-form__price strong {
  color: var(--green-deep);
  font-size: 20px;
  line-height: 1.1;
}

.booking-form__price small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.booking-form__field--full,
.booking-form__submit {
  grid-column: 1 / -1;
}

.booking-contacts {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.booking-contacts h3 {
  margin-bottom: 0;
}

.booking-contacts p:last-of-type {
  margin-bottom: 0;
}

.booking-contacts__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.booking-contacts__action {
  width: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 1px rgba(215, 229, 239, 0.72);
}

.booking-form__row--dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.booking-form__row--guests {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.booking-form__row--dates .booking-form__field {
  min-width: 0;
}

.booking-form__row--guests .booking-form__field {
  min-width: 0;
}

.booking-form__spacer {
  min-height: 1px;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--paper);
}

.booking-form textarea {
  resize: vertical;
}

.booking-form__date-field {
  position: relative;
}

.booking-date-field__trigger {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.booking-date-field__trigger::after {
  content: "▾";
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.booking-date-field__trigger:hover,
.booking-date-field__trigger:focus {
  outline: 2px solid rgba(46, 109, 77, 0.22);
  border-color: var(--green);
}

.booking-date-field__trigger.is-selected {
  color: var(--green-deep);
  font-weight: 800;
}

.booking-date-picker {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 4px;
  width: var(--booking-calendar-width, 100%);
  margin-inline-start: var(--booking-calendar-left, 0px);
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 18px 40px rgba(17, 43, 64, 0.08);
}

.booking-date-picker[hidden] {
  display: none;
}

.booking-date-picker__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.booking-date-picker__title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.booking-date-picker__note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.booking-date-picker__nav {
  display: flex;
  gap: 8px;
}

.booking-date-picker__nav-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.booking-date-picker__nav-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.booking-date-picker__weekdays,
.booking-date-picker__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.booking-date-picker__weekdays {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

.booking-date-picker__day {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.booking-date-picker__day.is-outside-month {
  opacity: 0.45;
}

.booking-date-picker__day.is-today {
  border-color: rgba(31, 124, 168, 0.5);
  box-shadow: inset 0 0 0 1px rgba(31, 124, 168, 0.18);
}

.booking-date-picker__day.is-selected {
  border-color: var(--green);
  background: var(--green-deep);
  color: var(--white);
}

.booking-date-picker__day.is-occupied {
  background: #f2ece5;
  color: var(--muted);
}

.booking-date-picker__day.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: 2px solid rgba(46, 109, 77, 0.22);
  border-color: var(--green);
}

.booking-form .errorlist {
  margin: 0;
  padding-left: 18px;
  color: #a83e34;
  font-weight: 700;
}

.gallery-section {
  padding-top: 0;
  overflow: hidden;
}

.gallery-section__head {
  align-items: center;
}

.gallery-carousel__controls {
  display: flex;
  gap: 10px;
}

.gallery-carousel__arrow {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(28, 39, 32, 0.18);
  border-radius: 50%;
  color: var(--green-deep);
  background: var(--white);
  font: inherit;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.gallery-carousel__arrow:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  background: rgba(46, 109, 77, 0.08);
}

.gallery-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
  padding: 4px 2px 24px;
}

.gallery-carousel::-webkit-scrollbar {
  display: none;
}

.gallery-carousel__item {
  flex: 0 0 clamp(280px, 42vw, 560px);
  height: clamp(230px, 32vw, 410px);
  padding: 0;
  overflow: hidden;
  scroll-snap-align: start;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: 0 18px 50px rgba(28, 39, 32, 0.1);
  cursor: zoom-in;
}

.gallery-carousel__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 350ms ease;
}

.gallery-carousel__item:hover img {
  transform: scale(1.035);
}

.gallery-carousel__item:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.rules-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 90px);
  margin: 0 clamp(18px, 5vw, 72px);
  border-radius: 8px;
  color: var(--white);
  background: var(--green-deep);
}

.rules-list {
  display: grid;
  gap: 14px;
  color: #f4c28b;
  font-size: 18px;
}

.rules-list p {
  margin: 0;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contacts-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: start;
}

.contacts-section h2 {
  margin-bottom: 18px;
}

.contacts-section a {
  color: var(--green-deep);
  font-weight: 900;
}

.map-placeholder {
  position: relative;
  min-height: 360px;
  color: var(--green-deep);
  overflow: hidden;
}

.map-placeholder__frame {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
  object-fit: cover;
  background:
    linear-gradient(45deg, rgba(46, 109, 77, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(179, 105, 63, 0.12) 25%, transparent 25%),
    var(--water);
  background-size: 48px 48px;
}

.detail-hero {
  position: relative;
  min-height: 74svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}

.detail-hero img,
.detail-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.detail-hero img {
  object-fit: cover;
}

.detail-hero__shade {
  background: linear-gradient(0deg, rgba(14, 25, 19, 0.78), rgba(14, 25, 19, 0.12));
}

.detail-hero__content {
  position: relative;
  width: 100%;
  padding: 150px clamp(18px, 8vw, 108px) 70px;
  box-sizing: border-box;
}

.detail-hero__content p:last-child {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: start;
}

.house-about {
  display: grid;
  gap: clamp(28px, 4vw, 42px);
}

.house-about__headline {
  max-width: 520px;
}

.house-about__title {
  margin-bottom: 0;
  max-width: 100%;
  font-size: clamp(42px, 5vw, 78px);
  line-height: 0.92;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .house-about__title {
    white-space: normal;
  }
}

.house-about__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.house-about__left {
  display: grid;
  gap: 28px;
}

.house-about__specs {
  display: grid;
  gap: 12px;
}

.house-about__spec-item {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 4px;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(216, 229, 241, 0.95);
}

.house-about__spec-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.house-about__spec-item dt {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.house-about__spec-item dd {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
}

.house-about__spec-item--deposit dd,
.house-about__spec-item--price dd {
  font-weight: 800;
}

.house-about__spec-item--deposit dt {
  color: #b86d28;
}

.house-about__spec-item--price dt {
  color: #1f6f9a;
}

.house-about__description {
  display: grid;
  gap: 14px;
  color: var(--muted);
  font-size: 18px;
}

.house-about__description p {
  margin: 0;
}

.house-about__pricing {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.house-about__right {
  min-width: 0;
}

.house-gallery {
  display: grid;
  gap: 14px;
}

.house-gallery__main {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(28, 39, 32, 0.1);
  background: transparent;
  cursor: pointer;
}

.house-gallery__main--video {
  color: var(--white);
}

.house-gallery__main img {
  width: 100%;
  height: clamp(320px, 40vw, 520px);
  display: block;
  object-fit: cover;
}

.house-gallery__video-preview {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  align-content: end;
  justify-items: start;
  gap: 14px;
  overflow: hidden;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(17, 43, 64, 0.2) 0%, rgba(17, 43, 64, 0.82) 100%),
    linear-gradient(135deg, rgba(31, 124, 168, 0.96) 0%, rgba(15, 79, 117, 0.94) 100%);
}

.house-gallery__video-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.16), transparent 32%),
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.14), transparent 28%);
  pointer-events: none;
}

.house-gallery__video-preview--main {
  min-height: clamp(320px, 40vw, 520px);
  padding: 28px;
}

.house-gallery__video-preview--thumb {
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 12px;
}

.house-gallery__video-play {
  position: relative;
  z-index: 1;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  font-size: 20px;
  font-weight: 900;
}

.house-gallery__video-meta {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  max-width: 320px;
}

.house-gallery__video-label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.house-gallery__video-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.house-gallery__main-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 43, 64, 0.78);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.house-gallery__thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 210px;
  grid-template-columns: unset;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.house-gallery__thumb {
  position: relative;
  display: block;
  min-width: 210px;
  height: 112px;
  margin: 0;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(28, 39, 32, 0.08);
}

.house-gallery__thumb.is-active {
  border-color: rgba(46, 109, 77, 0.34);
}

.house-gallery__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.house-gallery__thumb--video {
  color: var(--white);
}

.house-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: grid;
  place-items: center;
  padding: 16px;
  overflow: auto;
}

.house-lightbox[hidden] {
  display: none;
}

.house-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 16, 24, 0.72);
  backdrop-filter: blur(6px);
}

.house-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.house-lightbox__figure {
  margin: 0;
  display: grid;
  gap: 8px;
  justify-items: center;
  align-self: center;
  width: 100%;
}

.house-lightbox__image {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  display: block;
  object-fit: contain;
  border-radius: 18px;
}

.house-lightbox__video-wrap {
  width: 100%;
}

.house-lightbox__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  border-radius: 18px;
  background: #000;
}

.house-lightbox__caption {
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

.house-lightbox__counter {
  position: absolute;
  right: 18px;
  bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.house-lightbox__close,
.house-lightbox__nav {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 43, 64, 0.9);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(17, 43, 64, 0.22);
}

.house-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: 30px;
  line-height: 1;
}

.house-lightbox__nav {
  font-size: 28px;
}

.house-lightbox__nav--prev {
  justify-self: end;
  align-self: center;
}

.house-lightbox__nav--next {
  justify-self: start;
  align-self: center;
}

.text-block {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.house-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0 6px;
}

.house-specs__item {
  display: grid;
  gap: 8px;
  min-height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 12px 30px rgba(17, 43, 64, 0.06);
}

.house-specs__label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.house-specs__value {
  color: var(--ink);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.25;
}

.house-description-blocks {
  margin-top: 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  grid-auto-rows: minmax(220px, 28vw);
  gap: 16px;
}

.gallery-item {
  min-height: 220px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.availability-section {
  padding-top: 0;
}

.availability-section .section__head h2 {
  margin-bottom: 14px;
  max-width: none;
  font-size: clamp(42px, 4.6vw, 66px);
  white-space: nowrap;
}

.availability-calendar {
  position: relative;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(17, 43, 64, 0.06);
}

.availability-calendar__toolbar {
  position: absolute;
  inset: 14px 12px auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.availability-calendar__nav {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  pointer-events: auto;
}

.availability-calendar__nav:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.availability-calendar__reset {
  min-height: 38px;
  margin-top: 14px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: #f0f0f0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
}

.availability-months {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.availability-month {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}


.availability-month[hidden] {
  display: none;
}

.availability-month__head h3 {
  margin: 0 0 10px;
  padding: 0 42px;
  font-size: 17px;
  text-align: center;
}

.availability-weekdays,
.availability-month__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.availability-weekdays {
  margin-bottom: 10px;
}

.availability-weekdays span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.availability-day {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 30px;
  gap: 1px;
  padding: 3px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: center;
}

.availability-day--empty {
  background: transparent;
}

.availability-day__date {
  color: var(--ink);
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
}

.availability-day__state {
  display: none;
  color: var(--white);
  font-size: 9px;
  line-height: 1.1;
  font-weight: 800;
  white-space: nowrap;
}

.availability-day--occupied {
  background: #d68b3f;
  color: var(--white);
}

.availability-day--occupied .availability-day__date,
.availability-day--occupied .availability-day__state {
  color: var(--white);
}

.availability-day--occupied .availability-day__state {
  display: block;
}

.availability-day--past {
  opacity: 0.38;
}

.availability-day--today {
  box-shadow: inset 0 0 0 2px rgba(31, 124, 168, 0.46);
}

.site-footer {
  display: grid;
  gap: 26px;
  padding: 36px clamp(18px, 5vw, 72px);
  color: var(--white);
  background: var(--ink);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 0.9fr));
  gap: 24px;
  align-items: start;
}

.site-footer__brand,
.site-footer__links,
.site-footer__contacts {
  display: grid;
  gap: 10px;
}

.site-footer__title {
  font-size: 20px;
  font-weight: 600;
}

.site-footer__label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer__brand p,
.site-footer__contacts span,
.site-footer__bottom {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer__links a,
.site-footer__contacts a {
  width: fit-content;
  color: var(--white);
  font-weight: 500;
}

.site-footer__links a:hover,
.site-footer__contacts a:hover {
  color: #f4c28b;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.back-to-top {
  position: fixed;
  top: 110px;
  right: 0;
  z-index: 35;
  width: 52px;
  height: calc(100vh - 110px);
  color: transparent;
  background: transparent;
  text-decoration: none;
}

.back-to-top:focus-visible {
  outline: 2px solid rgba(31, 124, 168, 0.45);
  outline-offset: -4px;
}

.back-to-top:hover {
  background: rgba(31, 124, 168, 0.04);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

@media (max-width: 1040px) {
  .advantages,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .room-grid,
  .about-section,
  .price-intro,
  .booking,
  .rules-section,
  .contacts-section,
  .section--split {
    grid-template-columns: 1fr;
  }

  .house-about__layout,
  .house-about__specs {
    grid-template-columns: 1fr;
  }

  .house-gallery__thumbs {
    grid-auto-columns: 210px;
    grid-template-columns: unset;
  }

}

@media (max-width: 1040px) and (min-width: 641px) {
  .availability-months {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-button {
    display: grid;
    justify-self: end;
  }

  .main-nav {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 12px;
  }

  .site-header.is-open .main-nav {
    display: flex;
  }

  .header-phone {
    display: none;
  }

  .brand__text {
    max-width: 180px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 14px;
    line-height: 1.1;
  }

  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-mosaic__large {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .house-gallery__thumbs {
    grid-auto-columns: 210px;
    grid-template-columns: unset;
  }

  .house-lightbox__dialog {
    grid-template-columns: 1fr;
    width: min(100%, 1000px);
    height: auto;
    max-height: 100%;
    padding: 14px;
    gap: 10px;
  }

  .house-lightbox__nav {
    display: none;
  }
}

@media (max-width: 640px) {
  .availability-calendar {
    padding-right: 16px;
    padding-left: 16px;
  }

  h1 {
    font-size: clamp(54px, 18vw, 82px);
  }

  .hero__title {
    font-size: clamp(46px, 16vw, 76px);
  }

  h2 {
    font-size: clamp(32px, 11vw, 48px);
  }

  .brand__text {
    font-size: 13px;
  }

  .hero {
    min-height: auto;
    padding: 126px 18px 42px;
  }

  .hero__inner {
    padding-bottom: 26px;
  }

  .hero__veil {
    background: linear-gradient(0deg, rgba(14, 25, 19, 0.88) 0%, rgba(14, 25, 19, 0.54) 55%, rgba(14, 25, 19, 0.2) 100%);
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .advantages,
  .feature-grid,
  .rooms-filter,
  .room-grid,
  .room-card__facts,
  .gallery-mosaic,
  .booking-form,
  .gallery-grid,
  .price-table__row {
    grid-template-columns: 1fr;
  }

  .house-gallery__thumbs {
    grid-auto-columns: 84px;
    padding-bottom: 4px;
  }

  .house-gallery__thumb {
    min-width: 84px;
    height: 84px;
  }

  .house-gallery__main img {
    height: 280px;
  }

  .house-lightbox__dialog {
    margin: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
  }

  .house-lightbox {
    padding: 0;
  }

  .house-lightbox__image {
    max-height: calc(100vh - 124px);
  }

  .advantages {
    width: 100%;
    margin-top: 0;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .about-section__media,
  .about-section__media img {
    min-height: 360px;
    height: 360px;
  }

  .room-card img {
    height: 280px;
  }

  .price-table__row span + span {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .price-table__row--head {
    display: none;
  }

  .booking {
    margin-right: 18px;
    margin-left: 18px;
  }

  .booking__content h2 {
    white-space: normal;
  }

  .availability-section .section__head h2 {
    white-space: normal;
  }

  .availability-months {
    grid-template-columns: 1fr;
  }

  .availability-month,
  .availability-month:nth-child(odd),
  .availability-month:nth-child(even) {
    justify-self: center;
  }

  .rooms-filter {
    grid-template-columns: 1fr;
  }

  .booking-form__row--dates {
    grid-template-columns: 1fr;
  }

  .booking-form__row--guests {
    grid-template-columns: 1fr;
  }

  .house-specs {
    grid-template-columns: 1fr;
  }

  .availability-months {
    grid-template-columns: 1fr;
  }

  .rules-section {
    margin: 0;
    border-radius: 0;
  }

  .site-footer {
    gap: 20px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
  }

  .back-to-top {
    top: auto;
    bottom: 0;
    width: 40px;
    height: 160px;
  }
}


@media (max-width: 640px) {
  .gallery-section__head {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .gallery-carousel__controls {
    flex-shrink: 0;
  }

  .gallery-carousel__arrow {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .gallery-carousel__item {
    flex-basis: 86vw;
    height: 64vw;
    min-height: 230px;
    max-height: 360px;
  }
}
