/* Базовая типографика, сетка и основные секции сайта. */
* {
  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);

  font-family: "Segoe UI", sans-serif;
  line-height: 1.55;
}

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;

}

.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);


  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);

  box-shadow: 0 8px 34px rgba(19, 31, 24, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;

  min-width: 0;
  font-weight: 800;
}

 .brand__logo {
  display: grid;


  flex: 0 0 76px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 180ms ease;
}

.brand:hover .brand__logo {
  transform: scale(1.04);
  box-shadow: none;
}

.brand__logo-inner {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.brand__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__copy {
  display: grid;

  min-width: 0;
  line-height: 1;
}

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

.brand__text {

  font-weight: 700;

  text-transform: uppercase;
  opacity: 0.78;
}

.brand__name {

  font-weight: 900;
  letter-spacing: -0.02em;
}

.site-header.is-scrolled .brand__logo,
.site-header.is-open .brand__logo {
  border-color: transparent;
}

.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;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a:focus-visible {
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: 0;
  text-decoration: none;
}

.main-nav a::before,
.main-nav a::after {
  display: none;
  content: none;
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;

  color: inherit;

  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));
}

.site-message,
.message,
.booking-form .errorlist {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--message-danger-border);
  border-radius: 5px;
  color: var(--message-danger-text);
  background: var(--message-danger-bg);
  box-shadow: var(--shadow);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
}

.site-message--success,
.message--success {
  border-color: var(--message-success-border);
  color: var(--message-success-text);
  background: var(--message-success-bg);
}

.site-message--warning,
.message--warning {
  border-color: var(--message-warning-border);
  color: var(--message-warning-text);
  background: var(--message-warning-bg);
}

.site-message--info,
.message--info {
  border-color: var(--message-info-border);
  color: var(--message-info-text);
  background: var(--message-info-bg);
}

.site-message__icon::before,
.message::before,
.booking-form .errorlist::before {
  content: "⊘";
  margin-top: 1px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.site-message--success .site-message__icon::before,
.message--success::before {
  content: "✓";
}

.site-message--warning .site-message__icon::before,
.message--warning::before {
  content: "!";
}

.site-message--info .site-message__icon::before,
.message--info::before {
  content: "i";
}

.site-message__text {
  min-width: 0;
}

.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);
}


.button--glass {
  color: var(--white);


}

.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;
  line-height: 1.12;
}

.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;
}

.room-card__top span {
  flex: 0 0 auto;
  min-width: max-content;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
}

.about-section__media {
  position: relative;
  min-height: clamp(260px, 44vw, 440px);
  overflow: visible;
}

.about-carousel {
  --about-slide-width: min(74%, 560px);
  --about-slide-height: clamp(280px, 46vw, 500px);
  position: relative;
  display: block;
  height: var(--about-slide-height);
  overflow: hidden;
  padding: 0;
  border-radius: 0;
  scrollbar-width: none;
}

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

.about-carousel__slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--about-slide-width);
  height: 100%;
  margin: 0;
  overflow: hidden;
  z-index: 0;
  border-radius: 4px;
  background: var(--water);
  box-shadow: none;
  opacity: 0;
  filter: grayscale(0.32) saturate(0.58) brightness(0.52);
  pointer-events: none;
  cursor: pointer;
  transform: translateX(-50%) scale(0.86);
  transform-origin: center;
  transition: transform 0.28s ease, opacity 0.28s ease, filter 0.28s ease, box-shadow 0.28s ease;
}

.about-carousel__slide.is-prev {
  z-index: 1;
  opacity: 0.38;
  transform: translateX(-88%) scale(0.9);
}

.about-carousel__slide.is-next {
  z-index: 1;
  opacity: 0.38;
  transform: translateX(-12%) scale(0.9);
}

.about-carousel__slide.is-active {
  z-index: 3;
  opacity: 1;
  filter: none;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
  box-shadow: 0 22px 52px rgba(17, 43, 64, 0.2);
}

.about-carousel__slide:focus-visible {
  outline: 3px solid rgba(42, 139, 242, 0.45);
  outline-offset: 4px;
}

.about-section__media img,
.about-carousel__slide img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
  background: #eef7fb;
}

.about-section__media > img {
  box-shadow: var(--shadow);
}

.about-carousel__slide figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  width: fit-content;
  max-width: calc(100% - 36px);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(17, 43, 64, 0.76);
  font-size: 14px;
  font-weight: 800;
}

.about-section__media--carousel .about-carousel__slide figcaption {
  bottom: 56px;
}

.about-carousel__controls {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  pointer-events: none;
}

.about-carousel__arrow,
.about-carousel__dot {
  pointer-events: auto;
}

.about-carousel__arrow {
  position: absolute;
  top: 50%;
  display: grid;
  width: 56px;
  height: 72px;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: var(--white);
  background: transparent;
  box-shadow: none;
  text-shadow: 0 2px 8px rgba(17, 43, 64, 0.55);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.about-carousel__arrow[data-about-prev] {
  left: 0;
}

.about-carousel__arrow[data-about-next] {
  right: 0;
}

.about-carousel__arrow:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
}

.about-carousel__dots {
  display: none;
}

.about-carousel__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 0 1px rgba(17, 43, 64, 0.12);
}

.about-carousel__dot.is-active {
  width: 26px;
  background: var(--white);
}

.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-panel {
  margin-bottom: 24px;


}

.rooms-panel__head {
  margin-bottom: 20px;
}

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

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

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

.rooms-filter__field input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.rooms-filter__field input[type="search"] {
  appearance: none;
  -webkit-appearance: none;
}

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

.room-card {
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.room-card:hover,
.room-card:focus-within {
  border-color: rgba(31, 124, 168, 0.22);
  box-shadow: 0 18px 42px rgba(17, 43, 64, 0.12);
  transform: translateY(-3px);
}

.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;
  transition: transform 350ms ease;
}

.room-card:hover img,
.room-card:focus-within img {
  transform: scale(1.025);
}

.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;
}

.price-table--periods .price-table__row--base {
  background: rgba(239, 247, 242, 0.72);
  font-weight: 800;
}

.price-table--periods .price-table__row span:last-child {
  color: var(--green-deep);
  font-weight: 900;
}

.house-price-schedule {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}

.house-price-schedule__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.house-price-schedule__row--base {
  background: rgba(239, 247, 242, 0.8);
}

.house-price-schedule__row span {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.25;
}

.house-price-schedule__row strong {
  color: var(--green-deep);
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.booking {
  display: grid;
  grid-template-columns: minmax(0, 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 {
  position: relative;
  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);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.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(min(100%, 210px), 1fr));
  gap: 12px;
}

.booking-contacts__action {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  width: 100%;
  min-height: 66px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid rgba(215, 229, 239, 0.92);
  font: inherit;
  line-height: 1.15;
  text-align: center;

  box-shadow: inset 0 0 0 1px rgba(215, 229, 239, 0.72);
  cursor: pointer;
}

.booking-contacts__action:hover,
.booking-contacts__action:focus-visible {
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(31, 124, 168, 0.22), 0 12px 28px rgba(17, 43, 64, 0.08);
}

.booking-contacts__action-label {
  display: block;
  max-width: 100%;
  color: var(--green-deep);
  font-size: clamp(13px, 1.25vw, 17px);
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 2400;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(17, 43, 64, 0.94);
  box-shadow: 0 18px 40px rgba(17, 43, 64, 0.22);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.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: 14px;
  font-weight: 700;
  list-style: none;
}

.gallery-section {
  --gallery-item-height: clamp(230px, 32vw, 410px);
  --gallery-gap: 16px;
  padding-top: 0;
  overflow: hidden;
  position: relative;
}

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

.gallery-carousel__controls {
  display: none;
}

.gallery-carousel__arrow {
  position: absolute;
  top: 50%;
  width: 56px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: var(--white);
  background: transparent;
  box-shadow: none;
  text-shadow: 0 2px 8px rgba(17, 43, 64, 0.55);
  font: inherit;
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: color 180ms ease, transform 180ms ease;
}

.gallery-carousel__arrow[data-gallery-scroll-prev] {
  left: 10px;
}

.gallery-carousel__arrow[data-gallery-scroll-next] {
  right: 10px;
}

.gallery-carousel__arrow:hover {
  color: rgba(255, 255, 255, 0.86);
  transform: translateY(calc(-50% - 1px));
  background: transparent;
}

.gallery-carousel {
  display: flex;
  gap: var(--gallery-gap);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow-x: auto;
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-inline: contain;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  padding: 4px 18px 12px;
}

.gallery-carousel.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

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

.gallery-carousel__item {
  flex: 0 0 clamp(280px, 31vw, 560px);
  height: var(--gallery-item-height);
  padding: 0;
  overflow: hidden;
  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);
}

.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: clamp(16px, 2vw, 24px);
  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: 12px -34px 52px;
  z-index: 2;
  display: block;
  pointer-events: none;
}

.availability-calendar__nav {
  position: absolute;
  top: 50%;
  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;
  transform: translateY(-50%);
}

.availability-calendar__nav[data-availability-prev] {
  left: 0;
}

.availability-calendar__nav[data-availability-next] {
  right: 0;
}

.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: clamp(14px, 2vw, 24px);
}

.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 14px;
  padding: 0 24px;
  font-size: clamp(18px, 1.7vw, 24px);
  text-align: center;
}

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

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

.availability-weekdays span {
  color: var(--muted);
  font-size: 13px;
  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: clamp(46px, 3.7vw, 58px);
  gap: 4px;
  padding: 6px 3px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: center;
}

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

.availability-day__date {
  color: var(--ink);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 1;
  font-weight: 700;
}

.availability-day__price {
  max-width: 100%;
  color: var(--green-deep);
  font-size: clamp(10px, 0.82vw, 12px);
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.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 !important;
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(123, 70, 22, 0.18), 0 4px 10px rgba(214, 139, 63, 0.2);
  opacity: 1;
}

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

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

.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;

  padding: 36px clamp(18px, 5vw, 72px);


}

.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 {

  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


.site-footer__links a,
.site-footer__contacts a {
  width: fit-content;

  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;


  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;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 35;
  display: grid;
  box-sizing: border-box;
  width: 52px;
  height: 52px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(31, 124, 168, 0.28);
  border-radius: 12px;
  color: var(--white);
  background: var(--green-deep);
  box-shadow: 0 14px 32px rgba(17, 43, 64, 0.18);
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.back-to-top__icon {
  display: block;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

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

.back-to-top:hover {
  color: var(--white);
  background: var(--green);
}

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

}

@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: 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;
  }

}

@media (max-width: 640px) {


  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__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;
  }

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

  .about-section__media,
  .about-carousel {
    min-height: clamp(220px, 62vw, 360px);
    height: clamp(220px, 62vw, 360px);
  }

  .about-carousel {
    --about-slide-width: min(90%, 460px);
    padding: 0;
  }

  .about-carousel__slide,
  .about-carousel__slide.is-prev,
  .about-carousel__slide.is-next,
  .about-carousel__slide.is-active {
    height: 100%;
  }

  .about-carousel__slide.is-prev {
    opacity: 0.34;
    filter: grayscale(0.32) saturate(0.58) brightness(0.52);
    transform: translateX(-92%) scale(0.88);
  }

  .about-carousel__slide.is-next {
    opacity: 0.34;
    filter: grayscale(0.32) saturate(0.58) brightness(0.52);
    transform: translateX(-8%) scale(0.88);
  }

  .about-carousel__slide.is-active {
    opacity: 1;
    filter: none;
    transform: translateX(-50%) scale(1);
  }

  .about-section__media img,
  .about-carousel__slide img {
    min-height: 0;
    height: 100%;
  }

  .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-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;
  }


  .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 {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
  }

  .back-to-top__icon {
    width: 24px;
    height: 24px;
  }
}


@media (max-width: 640px) {
  .gallery-section {
    --gallery-item-height: clamp(230px, 64vw, 360px);
  }

  .gallery-section__head {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .gallery-carousel__arrow {
    width: 48px;
    height: 64px;
    font-size: 40px;
  }

  .gallery-carousel__item {

    height: var(--gallery-item-height);
  }
}


.contacts-page {
  min-height: calc(100vh - 180px);
  padding: clamp(110px, 12vw, 150px) clamp(18px, 4vw, 54px) clamp(54px, 7vw, 90px);
  background: var(--surface, #f4f9fc);
}

.contacts-page .booking {
  max-width: 1440px;
  margin: 0 auto;
}

@media (max-width: 760px) {

  .brand__logo {    border-radius: 0; }
  .brand__logo-inner { border-radius: 0; }


  .contacts-page { padding-top: 96px; }
}

.reviews-page {
  min-height: calc(100vh - 180px);
  padding: clamp(86px, 8vw, 118px) clamp(18px, 5vw, 72px) clamp(64px, 8vw, 110px);
  background: var(--paper);
}

.reviews-page__intro {
  width: 100%;
  display: grid;
  justify-items: center;
  margin-bottom: clamp(22px, 4vw, 42px);
  text-align: center;
}

.reviews-page__sign {
  display: block;
  width: min(560px, calc(100vw - 36px));
  height: auto;
  margin: 0 auto;
  mix-blend-mode: multiply;
}

.reviews-page__layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}

.reviews-page__aside {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.review-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(17, 43, 64, 0.08);
}

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

.review-rating {
  margin: 0;
  padding: 0;
  border: 0;
}

.review-rating legend {
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.review-rating__choices {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  width: max-content;
}

.review-rating__choice {
  position: relative;
  display: grid;
  width: 34px;
  height: 38px;
  flex: 0 0 34px;
  place-items: center;
  cursor: pointer;
}

.review-rating__choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.review-rating__choice span:not(.sr-only) {
  display: block;
  color: #b8c9d4;
  font-size: 32px;
  line-height: 1;
  pointer-events: none;
  transition: color 160ms ease, transform 160ms ease;
}

.review-rating__choice:hover span:not(.sr-only),
.review-rating__choice:has(~ .review-rating__choice:hover) span:not(.sr-only),
.review-rating__choice:has(input:checked) span:not(.sr-only),
.review-rating__choice:has(~ .review-rating__choice input:checked) span:not(.sr-only) {
  color: var(--clay);
}

.review-rating__choice:hover span:not(.sr-only),
.review-rating__choice:focus-within span:not(.sr-only) {
  transform: translateY(-1px);
}

.review-rating__choice:focus-within {
  outline: 2px solid rgba(196, 119, 59, 0.28);
  outline-offset: 1px;
  border-radius: 4px;
}

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

.review-form__title {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink);
  font-size: 24px;
}

.review-form__title ~ .review-form__submit {
  display: none;
}

.review-form input:not([type="radio"]),
.review-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #f8fbff;
}

.review-form input[type="file"] {
  min-height: auto;
  background: var(--paper);
}



.review-form textarea {
  min-height: 150px;
  resize: vertical;
}

.review-form__notice {
  margin: 0;
}

.review-form__notice-content {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.review-form__notice-content > strong {
  color: inherit;
  font-size: 15px;
  line-height: 1.35;
}

.review-form__notice-content ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding-left: 18px;
}

.review-form__notice-content a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.review-form__notice-content a:hover,
.review-form__notice-content a:focus-visible {
  text-decoration-thickness: 2px;
}

.review-form__field--invalid {
  color: var(--message-danger-text);
}

.review-form__field--invalid > input:not([type="radio"]):not([type="file"]),
.review-form__field--invalid > textarea,
.review-form__field--invalid .review-rating__choices {
  border-color: var(--message-danger-border) !important;
  box-shadow: 0 0 0 3px rgba(244, 67, 75, 0.12);
}

.review-form__field--invalid .review-rating__choices {
  padding: 4px 6px;
  border: 1px solid var(--message-danger-border);
  border-radius: 6px;
}

.review-form :is(input, textarea, select).is-invalid {
  border-color: var(--message-danger-border) !important;
  background-color: #fff9f9;
}

.review-form :is(input, textarea, select).is-invalid:focus {
  outline: 2px solid rgba(244, 67, 75, 0.2);
  outline-offset: 1px;
}


.review-stats {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(17, 43, 64, 0.08);
}

.review-stats__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.review-stats__value {
  color: var(--ink);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.review-stats__stars {
  position: relative;
  display: inline-block;
  color: #c8d5dc;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 1px;
}

.review-stats__stars::before {
  content: "★★★★★";
}

.review-stats__stars span {
  position: absolute;
  inset: 0 auto 0 0;
  display: block;
  overflow: hidden;
  color: var(--clay);
  white-space: nowrap;
}

.review-stats__total {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.review-stats__rows {
  display: grid;
  gap: 8px;
}

.review-stats__row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.review-stats__row meter {
  width: 100%;
  height: 8px;
}

.review-stats__row strong {
  color: var(--ink);
  text-align: right;
}

.reviews-list {
  display: grid;
  gap: 18px;
}

.review-card,
.reviews-empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 16px 40px rgba(17, 43, 64, 0.07);
}

.review-card {
  display: grid;
  grid-template-columns: 1fr;
}


.review-card__body,
.reviews-empty {
  padding: clamp(20px, 3vw, 30px);
}

.review-card__body h2,
.reviews-empty h2 {
  margin-bottom: 6px;
  font-size: clamp(24px, 3vw, 36px);
}

.review-card__rating {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
  color: var(--clay);
  font-size: 22px;
  line-height: 1;
}

.review-card__rating-empty {
  color: #c8d5dc;
}

.review-card__body time {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.review-card__body p,
.reviews-empty p {
  margin: 0;
  color: var(--muted);
}

.review-card__comment {
  margin-top: 14px !important;
  white-space: pre-line;
  overflow-wrap: anywhere;
}


@media (max-width: 1040px) {
  .reviews-page__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .reviews-page__sign {
    width: min(300px, calc(100vw - 24px));
  }

  .review-form,
  .review-card {
    grid-template-columns: 1fr;
  }

  .review-stats {
    margin-top: -12px;
  }
}

/* Здесь видео показывается первым кадром или загруженной обложкой. */
.house-gallery__video-preview-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: cover;
  object-position: center;
}

.house-gallery__video-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(9, 24, 36, 0.08) 18%, rgba(9, 24, 36, 0.76) 100%);
  pointer-events: none;
}

.house-gallery__video-preview--thumb::after {
  background: rgba(9, 24, 36, 0.3);
}

.house-gallery__video-preview .house-gallery__video-play,
.house-gallery__video-preview .house-gallery__video-meta,
.house-gallery__video-preview .house-gallery__video-label {
  z-index: 2;
}

.site-video-preview {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, #1f7ca8 0%, #0f4f75 100%);
}

.site-video-preview__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center;
  background: transparent !important;
}

.site-video-preview__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(9, 24, 36, 0.08), rgba(9, 24, 36, 0.64));
}

.site-video-preview__play {
  position: relative;
  z-index: 2;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  padding-left: 4px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(9, 24, 36, 0.54);
  box-shadow: 0 14px 34px rgba(9, 24, 36, 0.28);
  font-size: 25px;
  line-height: 1;
}

.site-video-preview__provider {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(9, 24, 36, 0.68);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

/* Здесь служебное поле скрывается от посетителя, но остаётся заметным для простых ботов. */
.review-form__honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.review-form__captcha {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.review-form__captcha-question {
  position: relative;
  z-index: 1;
  display: block !important;
  min-height: 1.35em;
  margin: 0;
  color: #16273a !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.review-form__captcha small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
