* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f4f7f1;
  color: #183828;
  font-family: Arial, sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 55px);
  background: #ffffff;
  box-shadow: 0 2px 12px #0001;
}

.logo {
  flex: 0 0 auto;
  color: #1f5c3b;
  font-size: clamp(20px, 2.3vw, 26px);
  font-weight: bold;
  white-space: nowrap;
}

.logo-link {
  text-decoration: none;
}

.site-menu {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-width: 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 24px;
  min-width: 0;
}

.site-nav a {
  color: #183828;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  padding: 8px;
  border: 1px solid #c7d6c3;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #1f5c3b;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  border: 0;
  border-radius: 18px;
  background: #1f5c3b;
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.header-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.btn-price {
  background: #e3b04b;
  color: #183828;
}

.hero {
  height: 520px;
  padding: 70px;
  background:
    linear-gradient(90deg, rgb(24 56 40 / 42%), rgb(24 56 40 / 8%)),
    url("/static/images/locations/place-1/place-1-01.jpg"),
    #76aeb8;
  background-position: center;
  background-size: cover;
}

.hero-box {
  width: 560px;
  padding: 38px;
  border-radius: 28px;
  background: rgb(255 255 255 / 88%);
}

h1 {
  margin: 0 0 20px;
  color: #1f5c3b;
  font-size: 54px;
}

section {
  padding: 55px;
}

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

.card,
.photo,
.form {
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 3px 15px #0001;
}

.card {
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.card:hover,
.card:focus {
  border-color: #1f5c3b;
  background: #fbfff8;
  box-shadow: 0 10px 28px #0002;
  outline: 0;
  transform: translateY(-4px);
}

.card-hint {
  display: inline-block;
  margin-top: 10px;
  color: #1f5c3b;
  font-size: 14px;
  font-weight: bold;
}

.photo {
  display: flex;
  align-items: end;
  height: 160px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgb(24 56 40 / 8%), rgb(24 56 40 / 72%)),
    #9dbf9e;
  background-position: center;
  background-size: cover;
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  text-shadow: 0 2px 10px rgb(0 0 0 / 45%);
}

.photo:nth-child(1) {
  background-image:
    linear-gradient(180deg, rgb(24 56 40 / 8%), rgb(24 56 40 / 72%)),
    url("/static/images/locations/place-1/place-1-02.jpg");
}

.photo:nth-child(2) {
  background-image:
    linear-gradient(180deg, rgb(24 56 40 / 8%), rgb(24 56 40 / 72%)),
    url("/static/images/locations/place-3/place-3-01.jpg");
}

.photo:nth-child(3) {
  background-image:
    linear-gradient(180deg, rgb(24 56 40 / 8%), rgb(24 56 40 / 72%)),
    url("/static/images/locations/place-7/place-7-01.jpg");
}

.photo:nth-child(4) {
  background-image:
    linear-gradient(180deg, rgb(24 56 40 / 8%), rgb(24 56 40 / 72%)),
    url("/static/images/locations/place-12/place-12-01.jpg");
}

.photo:nth-child(5) {
  background-image:
    linear-gradient(180deg, rgb(24 56 40 / 8%), rgb(24 56 40 / 72%)),
    url("/static/images/locations/place-17/place-17-01.jpg");
}

.photo:nth-child(6) {
  background-image:
    linear-gradient(180deg, rgb(24 56 40 / 8%), rgb(24 56 40 / 72%)),
    url("/static/images/locations/place-18/place-18-01.jpg");
}

input:not([type="checkbox"]),
select {
  width: 100%;
  margin: 8px 0;
  padding: 14px;
  border: 1px solid #c7d6c3;
  border-radius: 12px;
  background-color: #ffffff;
  color: #183828;
  font: inherit;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

input:not([type="checkbox"]):hover,
select:hover {
  border-color: #9eb69a;
  background-color: #fbfff8;
}

input:not([type="checkbox"]):focus,
select:focus {
  border-color: #1f5c3b;
  box-shadow: 0 0 0 3px rgb(31 92 59 / 14%);
  outline: 0;
}

select {
  min-height: 48px;
  padding-right: 44px;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #1f5c3b 50%),
    linear-gradient(135deg, #1f5c3b 50%, transparent 50%);
  background-position:
    calc(100% - 23px) 50%,
    calc(100% - 16px) 50%;
  background-repeat: no-repeat;
  background-size:
    7px 7px,
    7px 7px;
  cursor: pointer;
}

select:invalid {
  color: #687064;
}

.booking-date-picker {
  position: relative;
  margin: 8px 0;
}

.booking-date-picker__trigger {
  width: 100%;
  min-height: 48px;
  padding: 14px 44px 14px 14px;
  border: 1px solid #c7d6c3;
  border-radius: 12px;
  background:
    linear-gradient(45deg, transparent 50%, #1f5c3b 50%) calc(100% - 23px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, #1f5c3b 50%, transparent 50%) calc(100% - 16px) 50% / 7px 7px no-repeat,
    #ffffff;
  color: #687064;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.booking-date-picker__trigger:hover,
.booking-date-picker__trigger:focus {
  border-color: #1f5c3b;
  box-shadow: 0 0 0 3px rgb(31 92 59 / 14%);
  outline: 0;
}

.booking-date-picker__trigger.has-value {
  color: #183828;
}

.booking-calendar {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 10;
  display: none;
  width: min(360px, calc(100vw - 40px));
  padding: 16px;
  border: 1px solid #dce8d7;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 45px #0002;
}

.booking-date-picker.is-open .booking-calendar {
  display: block;
}

.booking-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.booking-calendar__header button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #edf5e9;
  color: #1f5c3b;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.booking-calendar__header button:hover,
.booking-calendar__header button:focus {
  background: #dcebd6;
  outline: 0;
}

.booking-calendar__header strong {
  color: #183828;
  font-size: 16px;
}

.booking-calendar__weekdays,
.booking-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.booking-calendar__weekdays {
  margin-bottom: 8px;
  color: #5f7367;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
}

.booking-calendar__day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #edf7e9;
  color: #183828;
  cursor: pointer;
  font-weight: bold;
}

.booking-calendar__day:hover,
.booking-calendar__day:focus {
  border-color: #1f5c3b;
  outline: 0;
}

.booking-calendar__day.is-selected {
  background: #1f5c3b;
  color: #ffffff;
}

.booking-calendar__day.is-busy,
.booking-calendar__day.is-past {
  background: #f2f2ef;
  color: #9ba39b;
  cursor: not-allowed;
  text-decoration: line-through;
}

.booking-calendar__day.is-busy {
  background: #f9e3dd;
  color: #9b2f22;
}

.booking-calendar__day.is-spacer {
  visibility: hidden;
}

.booking-calendar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  color: #5f7367;
  font-size: 12px;
  font-weight: bold;
}

.booking-calendar__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.booking-calendar__legend i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.booking-calendar__legend .is-free {
  background: #cdebc4;
}

.booking-calendar__legend .is-busy {
  background: #e9a79b;
}

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

.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  color: #183828;
  font-size: 14px;
  line-height: 1.4;
}

.privacy-consent input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #1f5c3b;
}

.privacy-consent a {
  color: #1f5c3b;
  font-weight: bold;
}

.form-message {
  min-height: 20px;
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: bold;
}

.form-message--info {
  color: #5f7367;
}

.form-message--success {
  color: #1f5c3b;
}

.form-message--error {
  color: #b42318;
}

.qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 164px;
  height: 164px;
  padding: 10px;
  border: 1px solid #dce8d7;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 3px 15px #0001;
}

.qr-link {
  color: #183828;
  font-weight: bold;
  text-decoration: none;
}

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

.prices-page {
  background: #f4f7f1;
}

.prices-hero {
  padding: 70px 55px 42px;
  background: linear-gradient(135deg, #d8ead4, #b8dde0);
}

.prices-hero h1 {
  max-width: 780px;
}

.prices-hero p {
  max-width: 720px;
  margin: 0;
  color: #254b38;
  font-size: 18px;
  line-height: 1.55;
}

.prices-eyebrow {
  margin: 0 0 12px;
  color: #1f5c3b;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-section {
  padding: 42px 55px;
}

.price-section__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.price-section__heading h2,
.price-section--compact h2 {
  margin: 0;
}

.price-section__heading p,
.price-section--compact p,
.price-note {
  color: #5f7367;
  line-height: 1.55;
}

.price-table {
  overflow: hidden;
  border: 1px solid #dce8d7;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 3px 15px #0001;
}

.price-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 0.8fr;
  gap: 18px;
  padding: 18px 22px;
  border-top: 1px solid #edf2ea;
}

.price-row:first-child {
  border-top: 0;
}

.price-row--head {
  background: #1f5c3b;
  color: #ffffff;
  font-weight: bold;
}

.price-row strong,
.price-card strong {
  color: #1f5c3b;
}

.price-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  min-height: 180px;
  padding: 24px;
  border: 1px solid #dce8d7;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 3px 15px #0001;
}

.price-card h3 {
  margin: 0 0 10px;
  color: #1f5c3b;
}

.price-card p {
  color: #5f7367;
  line-height: 1.5;
}

.price-section--compact {
  padding-top: 24px;
}

.document-page {
  background: #f4f7f1;
}

.document-hero {
  padding: 70px 55px 42px;
  background: linear-gradient(135deg, #d8ead4, #b8dde0);
}

.document-hero h1 {
  max-width: 860px;
}

.document-hero p {
  max-width: 780px;
  margin: 0;
  color: #254b38;
  font-size: 18px;
  line-height: 1.55;
}

.document-section {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0;
  border-bottom: 1px solid #dce8d7;
}

.document-section h2 {
  margin: 0 0 14px;
  color: #1f5c3b;
}

.document-section p,
.document-section li {
  color: #183828;
  line-height: 1.65;
}

.document-section ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.document-section strong {
  color: #9b2f22;
}

footer {
  padding: 30px 55px;
  background: #1f5c3b;
  color: #ffffff;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.3fr;
  gap: 22px;
  line-height: 1.55;
}

.site-footer div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.site-footer strong {
  font-size: 18px;
}

footer a {
  color: #ffffff;
  font-weight: bold;
}

body.modal-open {
  overflow: hidden;
}

.locations-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.locations-modal.is-open {
  display: flex;
}

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.payment-modal.is-open {
  display: flex;
}

.payment-modal__backdrop {
  position: absolute;
  inset: 0;
  background: #18382899;
}

.payment-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  padding: 38px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 80px #0004;
  text-align: center;
}

.payment-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #edf5e9;
  color: #1f5c3b;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.payment-modal__close:hover,
.payment-modal__close:focus {
  background: #dcebd6;
  outline: 0;
}

.payment-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #1f5c3b;
  color: #ffffff;
  font-size: 42px;
  font-weight: bold;
}

.payment-modal.is-fail .payment-modal__icon {
  background: #b42318;
}

.payment-modal__panel h2 {
  margin: 0 0 12px;
  color: #1f5c3b;
  font-size: 30px;
}

.payment-modal.is-fail .payment-modal__panel h2 {
  color: #b42318;
}

.payment-modal__panel p {
  margin: 0 0 24px;
  color: #183828;
  line-height: 1.55;
}

.locations-modal__backdrop {
  position: absolute;
  inset: 0;
  background: #18382899;
}

.locations-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: calc(100vh - 64px);
  margin: 0;
  padding: 38px;
  overflow: auto;
  border-radius: 24px;
  background: #f4f7f1;
  box-shadow: 0 24px 80px #0004;
}

.locations-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #1f5c3b;
  color: #ffffff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

.locations-modal__status {
  margin: 12px 0;
  color: #5f7367;
}

.locations-grid {
  margin-top: 18px;
}

.location-view {
  display: block;
}

.location-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 3px 18px #0001;
}

.location-photo-slider {
  position: relative;
  overflow: hidden;
  background: #9dbf9e;
}

.location-photo-slider img {
  display: block;
  width: 100%;
  height: 560px;
  background: #9dbf9e;
  object-fit: cover;
}

.location-slide__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.location-slide__counter {
  margin: 0 0 12px;
  color: #5f7367;
  font-weight: bold;
}

.location-slide__price {
  margin: 0 0 14px;
  color: #1f5c3b;
  font-size: 22px;
  font-weight: bold;
}

.location-slide h3 {
  margin: 0 0 14px;
  color: #1f5c3b;
  font-size: 30px;
  line-height: 1.15;
}

.location-slide p {
  margin: 0;
  color: #183828;
  line-height: 1.55;
}

.photo-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #1f5c3bcc;
  box-shadow: 0 8px 22px #0002;
  color: #ffffff;
  cursor: pointer;
  font-size: 42px;
  line-height: 1;
  transform: translateY(-50%);
}

.photo-arrow:hover,
.photo-arrow:focus {
  background: #17452e;
  outline: 0;
}

.photo-arrow--prev {
  left: 18px;
}

.photo-arrow--next {
  right: 18px;
}

.photo-dots {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.photo-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #ffffffaa;
  cursor: pointer;
}

.photo-dot.is-active {
  background: #e3b04b;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.location-actions button {
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: #1f5c3b;
  color: #ffffff;
  cursor: pointer;
  font-weight: bold;
}

.location-actions button:hover,
.location-actions button:focus {
  background: #17452e;
  outline: 0;
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    align-items: center;
    padding: 14px 18px;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .site-menu {
    display: none;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid #e1eadc;
  }

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

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a {
    padding: 12px 0;
    border-bottom: 1px solid #e1eadc;
  }

  .header-btn {
    text-align: center;
  }

  .hero {
    height: auto;
    min-height: 520px;
    padding: 36px 20px;
  }

  .hero-box {
    width: auto;
  }

  .cards,
  .gallery,
  .form-grid,
  .price-cards {
    grid-template-columns: 1fr;
  }

  .prices-hero,
  .document-hero,
  .price-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .document-section {
    width: calc(100% - 40px);
  }

  .price-section__heading {
    display: block;
  }

  .price-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .locations-modal {
    padding: 16px;
  }

  .locations-modal__panel {
    padding: 24px;
  }

  .location-slide {
    grid-template-columns: 1fr;
  }

  .location-photo-slider img {
    height: 360px;
  }

  .location-slide__content {
    padding: 22px;
  }

  .location-slide h3 {
    font-size: 24px;
  }

  .photo-arrow {
    width: 46px;
    height: 46px;
    font-size: 34px;
  }

  section {
    padding: 36px 20px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 26px 20px;
  }
}
