/* ==============================================
   dev-fixes.css — dev.bnochi.ru visual overrides
   ============================================== */

/* -----------------------------------------------
   0. socialList — flex alignment fix
   Base CSS uses display:block on <a> + height/line-height
   hack that leaves icons misaligned. Replace with flex.
   ----------------------------------------------- */
.bn-head .socialList {
  display: flex !important;
  align-items: center;
  float: left;
  height: 35px;
  gap: 2px;
}
.bn-head .socialList a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 35px;
  padding-left: 4px;
}
.bn-head .socialList a::before {
  line-height: 1 !important;
}

/* -----------------------------------------------
   1. Footer logo — clip "база отдыха" outlined path
   The fLogo.svg viewBox = 0 0 367.7 406.1
   The "база отдыха" text occupies bottom ~9% of SVG
   clip-path: inset(top right bottom left)
   ----------------------------------------------- */
.bn-footer .logo {
  overflow: hidden;
}
.bn-footer .logo img {
  display: block;
  clip-path: inset(0 0 9% 0);
  width: 100%;
  height: auto;
}

/* -----------------------------------------------
   2. Booking page — custom form card styles
   ----------------------------------------------- */

/* Intro text */
.book-intro {
  margin: 0 0 2em;
  font-size: 1.05em;
  line-height: 1.6;
  color: #555;
}
.book-intro a {
  color: #6b4c2a;
  font-weight: 600;
  text-decoration: none;
}
.book-intro a:hover {
  text-decoration: underline;
}

/* Main card wrapper */
.bookCard {
  background: #fff;
  border: 1px solid #e8e0d6;
  border-radius: 4px;
  padding: 2em 2.5em 2.5em;
  margin: 0 auto 2em;
  max-width: 860px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-size: 16px; /* reset base — родитель article.userFormat задаёт мелкий шрифт */
}

/* Partner quick-booking block */
.bookPartner-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f4f8f5;
  border: 1px solid #c8dfd0;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 2em;
  flex-wrap: wrap;
}
.bookPartner-icon {
  color: #379273;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.bookPartner-text {
  flex: 1;
  font-size: 0.88em;
  color: #3a3530;
  line-height: 1.5;
  min-width: 200px;
}
.bookPartner-text a {
  color: #2a7a5e;
  font-weight: 600;
  text-decoration: none;
}
.bookPartner-text a:hover {
  text-decoration: underline;
}
.bookPartner-text strong {
  color: #2a7a5e;
}
.bookPartner-btn {
  flex-shrink: 0;
  font-size: 0.82em !important;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .bookPartner-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .bookPartner-btn {
    align-self: stretch;
    text-align: center;
  }
}

/* Section labels */
.bookSection-label {
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8B6636;
  margin: 1.8em 0 0.9em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid #e8e0d6;
}
.bookCard .bookSection-label:first-child {
  margin-top: 0;
}

/* Accommodation type selector grid */
.bookType-grid {
  display: flex;
  gap: 1.2em;
  margin-bottom: 0.25em;
}
.bookType-item {
  flex: 1;
  cursor: pointer;
  position: relative;
  user-select: none;
}
.bookType-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* ── Card shell ── */
.bookType-card {
  border: 2px solid #d4cbc0;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.18s, box-shadow 0.18s;
  position: relative;
  background: #faf8f5;
}
/* Top accent bar (hidden by default) */
.bookType-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2a7a5e, #5aaa8c);
  opacity: 0;
  transition: opacity 0.18s;
  z-index: 1;
}

/* ── Hover ── */
.bookType-item:hover .bookType-card {
  border-color: #a89880;
  box-shadow: 0 3px 12px rgba(0,0,0,0.09);
}

/* ── Selected ── */
.bookType-item input[type="radio"]:checked + .bookType-card {
  border-color: #379273;
  box-shadow: 0 0 0 3px rgba(55,146,115,0.14);
}
.bookType-item input[type="radio"]:checked + .bookType-card::before {
  opacity: 1;
}

/* ── Photo ── */
.bookType-photo {
  height: 250px;
  background-size: cover;
  background-position: center;
  background-color: #d0c8be;
  transition: filter 0.18s;
  filter: brightness(0.88) saturate(0.85);
}
.bookType-item:hover .bookType-photo {
  filter: brightness(0.96) saturate(0.95);
}
.bookType-item input[type="radio"]:checked + .bookType-card .bookType-photo {
  filter: brightness(1) saturate(1);
}

/* ── Label row ── */
.bookType-label {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.75em 0.9em 0.85em;
  background: #faf8f5;
  transition: background 0.18s;
}
.bookType-item input[type="radio"]:checked + .bookType-card .bookType-label {
  background: #f0f9f5;
}

/* ── Radio indicator circle ── */
.bookType-indicator {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #c0b4a8;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.18s, background 0.18s;
  position: relative;
}
/* Inner dot (hidden by default) */
.bookType-indicator::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.bookType-item:hover .bookType-indicator {
  border-color: #8B6636;
}
.bookType-item input[type="radio"]:checked + .bookType-card .bookType-indicator {
  border-color: #379273;
  background: #379273;
}
.bookType-item input[type="radio"]:checked + .bookType-card .bookType-indicator::after {
  transform: translate(-50%, -50%) scale(1);
}

/* ── Name + price ── */
.bookType-info { flex: 1; }
.bookType-name {
  display: block;
  font-weight: 700;
  font-size: 1em;
  color: #4a3f35;
  margin-bottom: 0.15em;
  transition: color 0.18s;
}
.bookType-item input[type="radio"]:checked + .bookType-card .bookType-name {
  color: #2a7a5e;
}
.bookType-price {
  display: block;
  font-size: 0.82em;
  color: #8a7d72;
}

/* ── Error state ── */
.bookType-grid.has-error .bookType-card {
  border-color: #c0392b;
}
.bookType-error {
  font-size: 0.82em;
  color: #c0392b;
  margin-top: 0.35em;
  min-height: 1.2em;
  transition: opacity 0.2s;
  opacity: 0;
}
.bookType-error.is-visible {
  opacity: 1;
}

/* Date row */
.bookDates-row {
  display: flex;
  gap: 1.2em;
  margin-bottom: 0.5em;
}
.bookDate-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}
.bookDate-col label {
  font-size: 0.82em;
  color: #666;
  font-weight: 600;
}
.bookDate-col input[type="date"] {
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0.55em 0.75em;
  font-size: 0.95em;
  color: #333;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  appearance: none;
}
.bookDate-col input[type="date"]:focus {
  outline: none;
  border-color: #8B6636;
  box-shadow: 0 0 0 2px rgba(139,102,54,0.15);
}

/* Nights bar */
.bookNights-bar {
  background: #f4f0eb;
  border-radius: 3px;
  padding: 0.5em 0.9em;
  font-size: 0.85em;
  color: #777;
  margin-bottom: 0;
}

/* Contact fields */
.bookFields-row {
  display: flex;
  gap: 1.2em;
  margin-bottom: 0.5em;
}
.bookField {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}
.bookField label {
  font-size: 0.82em;
  color: #666;
  font-weight: 600;
}
.bookField .req {
  color: #c0392b;
  margin-left: 2px;
}
.bookField input[type="text"],
.bookField textarea {
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0.55em 0.75em;
  font-size: 0.95em;
  color: #333;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  resize: vertical;
}
.bookField input[type="text"]:focus,
.bookField textarea:focus {
  outline: none;
  border-color: #8B6636;
  box-shadow: 0 0 0 2px rgba(139,102,54,0.15);
}
.bookField textarea {
  min-height: 90px;
}

/* Consent checkbox */
.bookConsent {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  margin: 1.2em 0 1.5em;
  cursor: pointer;
  font-size: 0.82em;
  color: #666;
  line-height: 1.5;
}
.bookConsent input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 15px;
  height: 15px;
  cursor: pointer;
}
.bookConsent a {
  color: #6b4c2a;
}

/* Card footer */
.bookCard-footer {
  display: flex;
  align-items: center;
  gap: 2em;
  flex-wrap: wrap;
}
.bookCard-alt {
  font-size: 0.85em;
  color: #777;
  line-height: 1.6;
}
.bookCard-alt a {
  color: #6b4c2a;
  font-weight: 600;
  text-decoration: none;
}
.bookCard-alt a:hover {
  text-decoration: underline;
}

/* Response area */
.bookForm-resp {
  margin: 0.5em 0;
  min-height: 20px;
}

/* Guest counters */
.bookGuests-wrap {
  margin-bottom: 0.5em;
}
.bookRoom-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6em 1em;
  padding: 0.75em 0;
  border-bottom: 1px dashed #e8e0d6;
}
.bookRoom-row:last-of-type {
  border-bottom: none;
}
.bookRoom-extra {
  display: none;
}
.bookRoom-num-badge {
  font-size: 0.78em;
  font-weight: 700;
  color: #fff;
  background: #8B6636;
  border-radius: 3px;
  padding: 0.15em 0.5em;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.bookRoom-label {
  font-size: 0.82em;
  color: #666;
  font-weight: 600;
  white-space: nowrap;
}
.bookCounter {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 3px;
  overflow: hidden;
}
.book-counter-btn {
  width: 28px;
  height: 30px;
  background: #f4f0eb;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  color: #555;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.15s;
  padding: 0;
}
.book-counter-btn:hover {
  background: #e8e0d6;
  color: #8B6636;
}
.book-counter-input {
  width: 36px;
  text-align: center;
  border: none;
  border-left: 1px solid #ccc;
  border-right: 1px solid #ccc;
  padding: 0.25em 0;
  font-size: 0.9em;
  color: #333;
  background: #fff;
  -moz-appearance: textfield;
  -webkit-appearance: none;
}
.book-counter-input:focus {
  outline: none;
}
.bookRoom-links {
  display: flex;
  gap: 1.5em;
  margin: 0.8em 0 0.2em;
  flex-wrap: wrap;
}
.bookRoom-links a {
  font-size: 0.82em;
  color: #6b4c2a;
  text-decoration: none;
  font-weight: 600;
}
.bookRoom-links a:hover {
  text-decoration: underline;
}

/* Empty spacer field */
.bookField--empty {
  visibility: hidden;
}

/* Captcha */
.bookCaptcha-wrap {
  margin: 1em 0 0.5em;
}
.bookCaptcha-label {
  font-size: 0.82em;
  color: #666;
  font-weight: 600;
  margin-bottom: 0.45em;
}
.bookCaptcha-label .req {
  color: #c0392b;
  margin-left: 2px;
}
.bookCaptcha-row {
  display: flex;
  align-items: center;
  gap: 0.9em;
  flex-wrap: wrap;
}
.bookCaptcha-input {
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 0.55em 0.75em;
  font-size: 0.95em;
  color: #333;
  background: #fff;
  width: 130px;
  box-sizing: border-box;
  font-family: inherit;
}
.bookCaptcha-input:focus {
  outline: none;
  border-color: #8B6636;
  box-shadow: 0 0 0 2px rgba(139,102,54,0.15);
}
.bookCaptcha-input.has-error {
  border-color: #cd5241;
  box-shadow: 0 0 0 2px rgba(205,82,65,0.12);
}

/* ── Validation errors ── */
.bookField-error {
  display: none;
  color: #cd5241;
  font-size: 0.7em;
  line-height: 1.4;
}
.bookField-error.is-visible {
  display: block;
}
.bookField.has-error input[type="text"],
.bookField.has-error textarea {
  border-bottom-color: #cd5241;
}
.bn-dr-trigger.has-error {
  border-color: #cd5241;
}
.bookDates-error {
  display: none;
  color: #cd5241;
  font-size: 0.7em;
  margin: 0px 0 0;
}
.bookDates-error.is-visible {
  display: block;
}
.bookConsent.has-error {
  color: #cd5241;
}
.bookConsent-error {
  display: none;
  color: #cd5241;
  font-size: 0.7em;
  margin-top: 4px;
}
.bookConsent-error.is-visible {
  display: block;
}
.bookCaptcha-error {
  display: none;
  color: #cd5241;
  font-size: 0.7em;
  margin-top: 6px;
}
.bookCaptcha-error.is-visible {
  display: block;
}
#bookCaptchaImg {
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 3px;
  cursor: pointer;
  display: block;
}
#bookCaptchaReload {
  font-size: 0.82em;
  color: #6b4c2a;
  text-decoration: none;
}
#bookCaptchaReload:hover {
  text-decoration: underline;
}

/* Mobile: stack booking form */
@media only screen and (max-width: 640px) {
  .bookCard {
    padding: 1.2em 1em 1.5em;
  }
  .bookType-grid,
  .bookDates-row,
  .bookFields-row {
    flex-direction: column;
  }
  .bookType-photo {
    height: 350px;
  }
  .bookType-label {
    gap: 0.6em;
    padding: 0.65em 0.8em 0.75em;
  }
  .bookCard-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1em;
  }
  .bookRoom-row {
    gap: 0.5em 0.8em;
  }
  .bookCaptcha-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .bookField--empty {
    display: none;
  }
}

/* -----------------------------------------------
   3. Blog article — pagination styling
   ----------------------------------------------- */
.blog-pagination {
  display: flex;
  gap: 0.5em;
  margin: 1.5em 0 0;
}
.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 0.9em;
  color: #6b4c2a;
  text-decoration: none;
  background: #fff;
  transition: background 0.15s, border-color 0.15s;
}
.blog-pagination a:hover {
  background: #f4f0eb;
  border-color: #8B6636;
}
.blog-pagination .current {
  background: #8B6636;
  border-color: #8B6636;
  color: #fff;
  font-weight: 700;
}

/* -----------------------------------------------
   4. Hub pages — nav link list on otdykh-s-nami
   ----------------------------------------------- */
.katListNav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
  margin: 0 0 1.5em;
  padding: 0;
  list-style: none;
}
.katListNav li a {
  display: inline-block;
  padding: 0.35em 0.9em;
  background: #f4f0eb;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 0.85em;
  color: #6b4c2a;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.katListNav li a:hover {
  background: #ebe4d9;
  border-color: #8B6636;
}


.userFormat.map-sitemap ul li {
  margin-bottom: 15px;
}

.userFormat.map-sitemap h2 {
  margin-bottom: 15px;
}


/* -----------------------------------------------
   5. General: page-header h1 text clamp (very long titles)
   ----------------------------------------------- */
.page-header h1 {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* -----------------------------------------------
   6. Contacts page — intro text spacing
   ----------------------------------------------- */
.reviews.basePageFW .page-header + .item-page p:first-child,
.item-page p {
  margin-bottom: 0.8em;
}

/* -----------------------------------------------
   7. subMenuTop visual fix (veloprogulki etc.)
   ----------------------------------------------- */
.subMenuTopWrap {
  background: #f9f7f4;
  border-bottom: 1px solid #e8e0d6;
  margin-bottom: 0;
}
.subMenuTop {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}
.subMenuTop li a {
  display: block;
  padding: 0.65em 1.5em;
  font-size: 0.82em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: #8B6636;
  text-decoration: none;
}
.subMenuTop li a:hover {
  color: #5c3a1e;
}

/* -----------------------------------------------
   8. Accommodation pages — kottedzhi-karelia & apartamenty-karelia
   ----------------------------------------------- */

/* Intro paragraph block */
.accommodation-intro {
  font-size: 1.05em;
  line-height: 1.65;
  margin-bottom: 0.5em;
  max-width: 800px;
}

/* CTA buttons row — top */
.accommodation-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  margin: 1em 0 2em;
  align-items: center;
}
.accommodation-cta .bn-btn {
  margin-top: 0;
}

/* Image+text info block extra class (no overrides needed — bnfull.css handles layout) */
.accommodation-media {
  /* marker class for specificity overrides if needed */
}

/* Убираем float:right и max-width у .wrap внутри блока фото+текст —
   bnfull.css прижимает .wrap вправо, из-за чего между фото и текстом
   образуется большой пустой отступ на широких экранах */
.accommodation-media .contentBox {
  padding-left: 24px;
}
.accommodation-media .contentBox .wrap {
  float: none;
  max-width: none;
  text-align: left;
  background: transparent;
}

/* h2 spacing inside the content wrap */
.accommodation-details h2 {
  margin-top: 1.4em;
  margin-bottom: 0.4em;
}
.accommodation-details h2:first-child {
  margin-top: 0;
}

/* Price table section */
.accommodation-price-table {
  margin: 2em 0 1em;
}

/* Features checklist section */
.accommodation-features {
  /* bnfull.css .offerInclude already handles this */
}

/* FAQ styled block */
.accommodation-faq {
  margin: 2em 0;
  line-height: 1.4;
}
.accommodation-faq > h2 {
  margin-bottom: 0.8em;
}
.accommodation-faq ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Поддержка двух вариантов: <div class="accommodation-faq"><ul><li> и <ul class="accommodation-faq"><li> */
.accommodation-faq ul li,
.accommodation-faq > li {
  background: rgba(228, 225, 222, 0.5);
  border-left: 3px solid #379273;
  border-radius: 0 3px 3px 0;
  padding: 0.8em 1.1em;
  margin-bottom: 0.45em;
  line-height: 1.55;
  list-style: none;
}
.accommodation-faq ul li strong,
.accommodation-faq > li strong {
  display: inline;
  color: #333;
}

/* Bottom CTA row — after FAQ */
.accommodation-cta-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2em;
  margin-top: 2em;
  padding-top: 1.2em;
  border-top: 1px solid #e8e0d6;
}
.accommodation-cta-bottom .bn-btn {
  margin-top: 0;
}
.accommodation-cta-bottom a:not(.bn-btn) {
  color: #6b4c2a;
  text-decoration: underline;
  font-size: 0.95em;
}

/* Mobile: stack CTAs */
@media only screen and (max-width: 640px) {
  .accommodation-cta,
  .accommodation-cta-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6em;
  }
  .accommodation-faq ul li {
    padding: 0.7em 0.9em;
  }
}

/* -----------------------------------------------
   9. Unified button / CTA system
   ----------------------------------------------- */

/*
  КНОПКИ НА САЙТЕ (3 уровня):

  PRIMARY  → .bn-btn.lightGreen-btn
             Забронировать / Проверить свободные даты / Отправить заявку
             Solid green fill, white text

  SECONDARY → .bn-btn.brown-btn (без .white.transp)
              Дополнительные CTA в контентных секциях
              Solid warm-brown fill, white text

  GHOST    → .dev-btn--secondary
             «Все цены», «Подробнее», «Открыть маршрут»
             Border only, brown text, transparent bg

  FORM     → .bn-btn.brown-btn.white.transp
             Кнопка «Отправить» в тёмных формах
             White text on transparent — остаётся как есть
*/

/* ---- PRIMARY: lightGreen-btn → solid green ---- */
.bn-btn.lightGreen-btn {
  background: #379273;
  color: #fff;
  border: 2px solid #379273;
}
.bn-btn.lightGreen-btn:hover,
.bn-btn.lightGreen-btn:focus {
  background: #2d7a5f;
  border-color: #2d7a5f;
  color: #fff;
}
/* Corner-accent pseudo-elements: белые на зелёном фоне */
.bn-btn.lightGreen-btn > span::before,
.bn-btn.lightGreen-btn > span::after,
.bn-btn.lightGreen-btn > span > span::before,
.bn-btn.lightGreen-btn > span > span::after {
  border-color: rgba(255, 255, 255, 0.5);
}

/* ---- SECONDARY: brown-btn на светлом фоне → solid warm brown ---- */
/* Исключаем .white.transp — это кнопки в тёмных формах, их не трогаем */
.bn-btn.brown-btn:not(.white):not(.transp) {
  background: #8B6636;
  color: #fff;
  border: 2px solid #8B6636;
}
.bn-btn.brown-btn:not(.white):not(.transp):hover,
.bn-btn.brown-btn:not(.white):not(.transp):focus {
  background: #6b4c2a;
  border-color: #6b4c2a;
  color: #fff;
}
.bn-btn.brown-btn:not(.white):not(.transp) > span::before,
.bn-btn.brown-btn:not(.white):not(.transp) > span::after,
.bn-btn.brown-btn:not(.white):not(.transp) > span > span::before,
.bn-btn.brown-btn:not(.white):not(.transp) > span > span::after {
  border-color: rgba(255, 255, 255, 0.4);
}

/* ---- GHOST / SECONDARY: .dev-btn--secondary ---- */
.dev-btn--secondary {
  display: inline-block;
  font-family: 'Roboto', 'Myriad Pro', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1.35rem 2rem;
  line-height: 1;
  border: 1.5px solid #8B6636;
  color: #6b4c2a;
  background: transparent;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  margin-top: 1rem;
  vertical-align: middle;
}
.dev-btn--secondary:hover,
.dev-btn--secondary:focus {
  background: rgba(139, 102, 54, 0.1);
  color: #4a3318;
  border-color: #6b4c2a;
}

/* ---- Accommodation-cta-bottom: «Все цены» → ghost button ---- */
/* Override section-8 underline style with full button look */
.accommodation-cta-bottom a:not(.bn-btn) {
  display: inline-block;
  font-family: 'Roboto', 'Myriad Pro', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1.35rem 2rem;
  line-height: 1;
  border: 1.5px solid #8B6636;
  color: #6b4c2a;
  background: transparent;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
  margin-top: 0;
  vertical-align: middle;
}
.accommodation-cta-bottom a:not(.bn-btn):hover,
.accommodation-cta-bottom a:not(.bn-btn):focus {
  background: rgba(139, 102, 54, 0.1);
  color: #4a3318;
}

/* Выравниваем высоту кнопок в accommodation-cta-bottom */
.accommodation-cta-bottom .bn-btn {
  border-width: 2px;
  vertical-align: middle;
}

/* ---- goTofForm «Написать отзыв» → видимая action-ссылка ---- */
a.green.addReview.goTofForm {
  display: inline-block;
  color: #379273;
  font-weight: 600;
  border-bottom: 2px solid #379273;
  padding: 0.15em 0;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
a.green.addReview.goTofForm:hover {
  color: #2d7a5f;
  border-color: #2d7a5f;
}

/* ---- Mobile: кнопки в колонку на узких экранах ---- */
@media only screen and (max-width: 480px) {
  .accommodation-cta .bn-btn,
  .accommodation-cta-bottom .bn-btn,
  .accommodation-cta-bottom a:not(.bn-btn),
  .dev-btn--secondary {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    display: block;
  }
}

/* ==========================================================
   Section 10: Pochemu-my page polish + global form tweaks
   ========================================================== */

/* ---- 10.1 Why-benefits card grid ---- */
.why-benefits {
  padding: 2.5rem 0 3rem;
}
.why-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
  max-width: 960px;
  margin: 0 auto;
}
.why-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: #faf8f6;
  border: 1px solid #e8e1d9;
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
}
.why-benefit-check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #379273;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 0.1rem;
}
.why-benefit-item p {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.55;
  color: #4a3f36;
}
@media only screen and (max-width: 640px) {
  .why-benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- 10.2 Form overlay — чуть темнее + лучше читаемость ---- */
.fForm::before {
  background: rgba(60, 52, 50, 0.75) !important;
}
/* Placeholder чуть светлее для видимости */
.fForm ::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
  opacity: 1;
}
/* Checkbox label */
.fForm label.private {
  color: rgba(255, 255, 255, 0.85);
  /*font-size: 0.82rem;*/
  line-height: 1.45;
}
.fForm label.private a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

/* ---- 10.3 waveLine divider — мягче ---- */
hr.waveLine {
  opacity: 0.45;
}

/* ---- 10.4 Телефонный placeholder — global fallback ---- */
input[placeholder="Ваш телефон..."] {
  /* ensures consistent display — actual style from fForm or field-level CSS */
}

/* ==========================================================
   Section 11: Footer — fSocial gap + fMail icon fix
   ========================================================== */

/* ---- 11.1 VK переехал в колонку контактов ---- */
.bn-footer .fContact .fSocial {
  margin-top: 1em;
  display: flex;
  gap: 0.6em;
}
.bn-footer .fContact .fSocial a.icon-vk {
  margin-right: 0 !important;
}
/* Сброс маски телефона (.fContact a::before применяет phone.svg ко всем ссылкам).
   Возвращаем SVG-иконку VK через background-image. */
.bn-footer .grid-cols .col .infoBox.fContact .fSocial a.icon-vk::before {
  -webkit-mask: none !important;
  mask: none !important;
  background-color: transparent !important;
  background-image: url('/images/vk.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 1em;
  height: 1em;
  margin-top: -0.5em;
  opacity: 0.6;
}
.bn-footer .grid-cols .col .infoBox.fContact .fSocial a.icon-vk:hover::before {
  opacity: 1;
}

/* ---- 11.2 fContact — иконки 1em, уменьшенный padding-left ---- */
/* Выравниваем font-size fMail с fPhone (2.7rem) */
.bn-footer .grid-cols .col .infoBox.fContact .fMail {
  font-size: 2.7rem !important;
}
/* Уменьшаем padding-left: иконка теперь 1em, не 2em */
.bn-footer .grid-cols .col .infoBox.fContact a {
  padding-left: 1.5em;
}
/* Phone: переопределяем 2em → 1em */
.bn-footer .grid-cols .col .infoBox.fContact a::before {
  width: 1em !important;
  height: 1em !important;
  margin-top: -0.5em !important;
}
/* Mail: убираем Unicode-символ, ставим SVG-маску 1em */
.bn-footer .grid-cols .col .infoBox.fContact .fMail::before {
  content: '' !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-style: normal !important;
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  margin-top: -0.5em !important;
  opacity: .6;
  width: 1em !important;
  height: 1em !important;
  background-color: currentColor;
  -webkit-mask: url('/images/email.svg') no-repeat center / contain;
  mask: url('/images/email.svg') no-repeat center / contain;
}

/* ==========================================================
   Section 12: Cookie consent banner + settings panel
   Matches production template IDs/classes exactly.
   ========================================================== */
#cookie-banner,
#cookie-settings-panel {
  font: 14px/1.45 Arial, sans-serif;
  color: #111;
  background: #fff;
  border: 1px solid #d7d7d7;
  box-shadow: 0 10px 30px rgba(0,0,0,0.14);
  max-width: 460px;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10000;
  padding: 18px 20px 16px;
  display: none;
}
#cookie-banner h3,
#cookie-settings-panel h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #222;
}
#cookie-banner p,
#cookie-settings-panel p {
  margin: 0 0 12px;
  color: #444;
}
#cookie-banner .btns,
#cookie-settings-panel .btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie-btn {
  display: inline-block;
  border: 1px solid #379273;
  background: #379273;
  color: #fff !important;
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.18s, border-color 0.18s;
  border-radius: 3px;
}
.cookie-btn:hover {
  background: #2d7a5f;
  border-color: #2d7a5f;
}
.cookie-btn.secondary {
  background: #f5f5f5;
  color: #379273 !important;
  border-color: #b8d4c8;
}
.cookie-btn.secondary:hover {
  background: #e8f4ef;
  border-color: #379273;
}
#cookie-settings-panel label {
  display: block;
  margin: 10px 0;
  color: #333;
  cursor: pointer;
}
#cookie-settings-panel input[type="checkbox"] {
  margin-right: 6px;
  cursor: pointer;
}
#cookie-settings-panel .note {
  font-size: 12px;
  color: #777;
  margin-bottom: 14px !important;
}
@media only screen and (max-width: 520px) {
  #cookie-banner,
  #cookie-settings-panel {
    right: 0;
    bottom: 0;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.14);
  }
  #cookie-banner .btns,
  #cookie-settings-panel .btns {
    flex-direction: column;
  }
  .cookie-btn {
    text-align: center;
  }
}

/* bookConsentLabel warning highlight */
#bookConsentLabel.bb-warning {
  color: #c0392b;
}
#bookConsentLabel.bb-warning a {
  color: #c0392b;
}

/* ---- Sub-footer link rows (matches production template structure) ---- */
.sub-footer .fn-links {
  margin: 0.6em 0 0;
  font-size: 1.2rem;
  line-height: 2;
}
.sub-footer .fn-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.15s;
}
.sub-footer .fn-links a:hover {
  color: #fff;
  text-decoration: underline;
}
.sub-footer .fn-sep {
  color: #666;
  margin: 0 0.5em;
}
@media only screen and (max-width: 640px) {
  .sub-footer .fn-sep { display: none; }
  .sub-footer .fn-links a { display: block; }
}

/* ==========================================================
   Section 13: Legal pages — pravila-arendy & privacy-policy
   ========================================================== */

/* Content width constraint */
.contentBox .item-page [itemprop="articleBody"] {
  /*max-width: 820px;*/
  margin: 0 auto;
}

/* Lead paragraph — callout block (pravila-arendy) */
.contentBox .item-page [itemprop="articleBody"] p.legal-lead {
  font-size: 1.02em;
  line-height: 1.65;
  color: #444;
  background: #faf8f6;
  border-left: 4px solid #8B6636;
  padding: 1em 1.25em;
  margin-bottom: 1.75em;
  border-radius: 0 4px 4px 0;
}

/* Edition note — small muted text (privacy-policy) */
.contentBox .item-page [itemprop="articleBody"] p em {
  font-style: italic;
  color: #888;
}

/* h2 section headings (privacy-policy) */
.contentBox .item-page [itemprop="articleBody"] h2 {
  font-size: 1.05em;
  font-weight: 700;
  color: #5c3a1e;
  margin: 1em 0 0.6em;
  padding-bottom: 0.4em;
  border-bottom: 1px solid #e8e1d9;
}

/* Numbered main list (pravila-arendy) */
.contentBox .item-page [itemprop="articleBody"] ol {
  counter-reset: rules-counter;
  list-style: none;
  padding: 0;
  margin: 1em 0 1.75em;
}
.contentBox .item-page [itemprop="articleBody"] ol > li {
  counter-increment: rules-counter;
  position: relative;
  padding: 1em 1.25em 1em 3.5em;
  margin-bottom: 0.65em;
  background: #faf8f6;
  border: 1px solid #e8e1d9;
  border-radius: 4px;
  line-height: 1.6;
  color: #333;
}
.contentBox .item-page [itemprop="articleBody"] ol > li::before {
  content: counter(rules-counter);
  position: absolute;
  left: 1em;
  top: 1em;
  width: 1.6em;
  height: 1.6em;
  background: #8B6636;
  color: #fff;
  border-radius: 50%;
  font-size: 0.78em;
  font-weight: 700;
  line-height: 1.6em;
  text-align: center;
  margin-top: 0.1em;
}

/* Nested bullet lists inside ol > li */
.contentBox .item-page [itemprop="articleBody"] ol > li > ul {
  margin: 0.75em 0 0.25em;
  padding: 0;
  list-style: none;
}
.contentBox .item-page [itemprop="articleBody"] ol > li > ul > li {
  position: relative;
  padding: 0.3em 0 0.3em 1.3em;
  color: #555;
  line-height: 1.55;
}
.contentBox .item-page [itemprop="articleBody"] ol > li > ul > li::before {
  content: '—';
  position: absolute;
  left: 0;
  top: 0.3em;
  color: #8B6636;
  font-weight: 700;
}

/* Top-level bullet lists (privacy-policy) */
.contentBox .item-page [itemprop="articleBody"] > ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5em;
}
.contentBox .item-page [itemprop="articleBody"] > ul > li {
  position: relative;
  padding: 0.4em 0 0.4em 1.4em;
  line-height: 1.6;
  color: #444;
  border-bottom: 1px solid #f0ece7;
}
.contentBox .item-page [itemprop="articleBody"] > ul > li:last-child {
  border-bottom: none;
}
.contentBox .item-page [itemprop="articleBody"] > ul > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #379273;
}

/* Footer note after the ol block */
.contentBox .item-page [itemprop="articleBody"] ol + p {
  font-size: 0.9em;
  color: #777;
  margin-top: 0.5em;
}

/* Routes page: top-level FAQ list should keep the accommodation card style */
.contentBox .item-page [itemprop="articleBody"] > ul.accommodation-faq {
  margin: 2em 0;
  padding: 0;
}
.contentBox .item-page [itemprop="articleBody"] > ul.accommodation-faq > li {
  padding: 0.8em 1.1em;
  margin-bottom: 0.45em;
  border-bottom: 0;
  list-style: none;
}
.contentBox .item-page [itemprop="articleBody"] > ul.accommodation-faq > li::before {
  content: none;
  display: none;
}

/* Routes page: embedded Yandex map */
.routes-map {
  margin-top: 2em;
  background: #f5f3f0;
  border: 1px solid #d6cfc8;
  border-radius: 4px;
  padding: 15px 28px 28px;
}
.routes-map h3 {
  margin-top: 0;
}
.routes-map p {
  font-size: 1.2rem;
  color: #555;
  /*margin-bottom: 1em;*/
}
.routes-map__frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 420px;
  background: #e8e1d9;
  border: 1px solid #d6cfc8;
  border-radius: 4px;
}
.routes-map__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Active rest page: custom activity SVG icons */
.bn-activity-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.activerest-page .activities-list ul > li {
  display: grid;
  grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1fr);
  align-items: stretch;
}
.activerest-page .activities-list ul > li > * {
  display: flex;
  align-items: center;
  width: auto;
}
.activerest-page .activities-list ul > li > * + * {
  border-left: 1px solid #efeceb;
}
.activity-title {
  gap: 14px;
  color: #5f4327;
  font-weight: 700;
}
.activity-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  box-sizing: border-box;
  padding: 8px;
  color: #379273;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(55, 146, 115, 0.28);
  border-radius: 50%;
}
.activerest-page .activities-list ul > li:hover .activity-icon {
  color: #2f7c63;
  background: #fff;
  border-color: rgba(55, 146, 115, 0.48);
}

/* Contacts page */
.contacts-page .contacts-lead {
  /*max-width: 880px;*/
  margin: 0 auto 1.8em;
  font-size: 1.04em;
  line-height: 1.65;
  color: #333;
}
.contacts-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  margin: 1.6em 0 2.2em;
}
.contacts-panel {
  background: rgba(250, 248, 246, 0.86);
  border: 1px solid #e5ddd1;
  border-radius: 6px;
  padding: 28px;
}
.contacts-panel h2 {
  margin-top: 0 !important;
}
.contacts-phone-card {
  background: #fff;
  border: 1px solid #d9cfc3;
  border-left: 4px solid #379273;
  border-radius: 0 6px 6px 0;
  padding: 24px 26px;
  margin: 1.2em 0 18px;
}
.contacts-card-label {
  display: block;
  margin-bottom: 8px;
  color: #8b8177;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.contacts-phone-value {
  font-size: 1.55em;
  line-height: 1.2;
  font-weight: 700;
  color: #333;
}
.contacts-phone-value a {
  color: #333;
  text-decoration: none;
}
.contacts-card-value a::after,
.contacts-phone-value a::after {
  display: none;
}
.contacts-phone-card p,
.contacts-mini-card p,
.contacts-panel--route p {
  margin: 0.65em 0 0;
  color: #777;
  font-size: 0.9em;
  line-height: 1.45;
}
.contacts-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.contacts-mini-card {
  min-height: 128px;
  background: #fff;
  border: 1px solid #e5ddd1;
  border-radius: 6px;
  padding: 20px 22px;
}
.contacts-card-value {
  font-size: 1.13em;
  line-height: 1.3;
  font-weight: 700;
}
.contacts-card-value a {
  color: #b99253;
  text-decoration: none;
}
.contacts-panel--route {
  display: flex;
  flex-direction: column;
}
.contacts-address {
  margin-top: 1.15em;
  color: #333;
  font-size: 1.02em;
  line-height: 1.45;
  font-weight: 700;
}
.contacts-gps {
  margin-top: 0.5em;
  color: #777;
  font-size: 0.88em;
}
.contacts-map {
  overflow: hidden;
  height: 260px;
  margin-top: 18px;
  background: #e8e1d9;
  border: 1px solid #d6cfc8;
  border-radius: 4px;
}
.contacts-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.contacts-route-link {
  display: inline-block;
  align-self: flex-start;
  margin-top: 14px;
  color: #6b4c2a;
  font-weight: 700;
}
.contacts-section {
  margin-top: 2.2em;
}
.contacts-steps {
  margin-top: 1.2em;
}

@media only screen and (max-width: 640px) {
  .contentBox .item-page [itemprop="articleBody"] ol > li {
    padding: 0.9em 1em 0.9em 3.25em;
  }
  .routes-map {
    padding: 18px 16px 20px;
  }
  .routes-map__frame {
    height: 340px;
  }
  .activerest-page .activities-list ul > li {
    grid-template-columns: 1fr;
  }
  .activerest-page .activities-list ul > li > * + * {
    padding-top: 0;
    border-left: 0;
  }
  .activity-icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    padding: 7px;
  }
  .contacts-overview {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .contacts-panel {
    padding: 20px 16px;
  }
  .contacts-phone-card {
    padding: 20px 18px;
  }
  .contacts-phone-value {
    font-size: 1.3em;
  }
  .contacts-mini-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .contacts-map {
    height: 320px;
  }
}

/* ==========================================================
   Section 13.5: inner pages bottom texture
   ========================================================== */

body.reviews .main-content::after,
body.basePageFW .main-content::after,
.main-content.has-bottom-texture::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 640px;
  background: url("../img/BotBgTransp.png") no-repeat bottom left;
  background-size: cover;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

body.reviews .main-content > *,
body.basePageFW .main-content > *,
.main-content.has-bottom-texture > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================
   Section 14: fForm polish + footer sub-footer fix
   ========================================================== */

/* ---- 14.1 Overlay — плотнее, чтобы поля читались на фоне ---- */
.fForm::before {
  background: rgba(36, 29, 26, 0.90) !important;
}

/* ---- 14.2 Обёртка формы — ограничиваем ширину и центрируем ---- */
.reviewsForm.askForm .full-width > div {
  max-width: 860px;
  margin: 0 auto;
}

/* ---- 14.3 Поля ввода — рамка + лёгкий tint + focus ---- */
.reviewsForm form .grid-cols[data-cols="3"] .col input,
.reviewsForm form .grid-cols[data-cols="2"] .col input {
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.35) !important;
  background: rgba(255,255,255,0.06) !important;
  color: #fff !important;
  font-size: 15px !important;
  height: 46px !important;
  padding: 0 12px !important;
  transition: border-color 0.2s, background 0.2s;
}
.reviewsForm form .grid-cols[data-cols="3"] .col input:focus,
.reviewsForm form .grid-cols[data-cols="2"] .col input:focus {
  border-bottom-color: rgba(255,255,255,0.85) !important;
  background: rgba(255,255,255,0.11) !important;
  outline: none !important;
}

/* ---- 14.4 Textarea — высота и стиль ---- */
.fForm .mesInput {
  min-height: 120px !important;
  height: 120px !important;
  font-size: 15px !important;
  color: #fff !important;
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  border-radius: 2px !important;
  padding: 10px 12px !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s, background 0.2s;
}
.fForm .mesInput:focus {
  border-color: rgba(255,255,255,0.75) !important;
  background: rgba(255,255,255,0.10) !important;
  outline: none !important;
}

/* Уменьшаем огромный верхний отступ перед textarea */
.fForm .CPF-textarea {
  padding-top: 32px !important;
}

/* ---- 14.5 Placeholder — единый стиль ---- */
.fForm ::placeholder {
  color: rgba(255,255,255,0.55) !important;
  font-size: 14px !important;
  opacity: 1 !important;
}

/* ---- 14.6 Checkbox + legal text — крупнее, читаемее ---- */
.fForm label.private {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.7em !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  color: rgba(255,255,255,0.88) !important;
  padding: 0.6rem 0 0 !important;
  cursor: pointer;
}
.fForm .private input[type="checkbox" i] {
  flex-shrink: 0;
  width: 16px !important;
  height: 16px !important;
  margin-top: 2px;
  position: static !important;
  cursor: pointer;
  accent-color: #379273;
}
.fForm label.private a,
.fForm .private a {
  color: #a8d5c2 !important;
  text-decoration: underline !important;
}
.fForm label.private a:hover,
.fForm .private a:hover {
  color: #d4ede5 !important;
}

/* ---- 14.7 Кнопка «Отправить» — единая система CTA (зелёная) ---- */
.fForm .CPF-footer {
  margin: 28px auto 0 !important;
  text-align: left !important;
}
.fForm .CPF-footer .bn-btn.brown-btn.white.transp,
#askSend.bn-btn.brown-btn.white.transp {
  background: #379273 !important;
  border: 2px solid #379273 !important;
  color: #fff !important;
  padding: 1rem 2.8rem !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background 0.2s, border-color 0.2s !important;
  display: inline-block !important;
}
.fForm .CPF-footer .bn-btn.brown-btn.white.transp:hover,
.fForm .CPF-footer .bn-btn.brown-btn.white.transp:focus,
#askSend.bn-btn.brown-btn.white.transp:hover,
#askSend.bn-btn.brown-btn.white.transp:focus {
  background: #2d7a5f !important;
  border-color: #2d7a5f !important;
}
/* Декоративные углы — белые на зелёном */
.fForm .CPF-footer .bn-btn > span::before,
.fForm .CPF-footer .bn-btn > span::after,
.fForm .CPF-footer .bn-btn > span > span::before,
.fForm .CPF-footer .bn-btn > span > span::after {
  border-color: rgba(255,255,255,0.35) !important;
}

/* ---- 14.8 Вертикальные разделители между колонками — мягче ---- */
.reviewsForm form .grid-cols[data-cols="3"] .col + .col::before,
.reviewsForm form .grid-cols[data-cols="2"] .col + .col::before {
  background: rgba(255,255,255,0.18) !important;
}

/* ---- 14.9 Sub-footer — padding и copyright видны полностью ---- */
.sub-footer {
  padding: 1.4rem 2rem !important;
  box-sizing: border-box;
}
.sub-footer .ws-fWrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex !important;
  flex-direction: column !important;
  /*align-items: flex-start !important;*/
  align-items: center !important;
  gap: 0.2rem;
}
.sub-footer .copyright {
  float: none !important;
  margin: 0 !important;
  margin-right: 0 !important;
  font-size: 1.2rem;
  line-height: 1.6;
}

/* ---- 14.10 Mobile: footer columns в колонку, без горизонтального скролла ---- */
@media only screen and (max-width: 768px) {
  .bn-footer .grid-cols[data-cols="2"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.8rem !important;
  }
  .bn-footer .grid-cols[data-cols="2"] > .col {
    width: 100% !important;
  }
  /* Убираем разделители между колонками */
  .bn-footer .grid-cols[data-cols="2"] > .col + .col::before {
    display: none !important;
  }
}
@media only screen and (max-width: 640px) {
  .reviewsForm .full-width {
    padding: 40px 1.2rem !important;
  }
  .reviewsForm form .grid-cols[data-cols="3"] {
    display: flex !important;
    flex-direction: column !important;
  }
  .reviewsForm form .grid-cols[data-cols="3"] .col + .col::before {
    display: none !important;
  }
  .reviewsForm form .grid-cols[data-cols="3"] .col + .col input {
    padding-left: 12px !important;
  }
  .fForm .CPF-footer {
    text-align: center !important;
  }
  .fForm .CPF-footer .bn-btn.brown-btn.white.transp {
    width: 100% !important;
    text-align: center !important;
  }
  .sub-footer .fn-links {
    font-size: 1.1rem !important;
  }
}

/* ==========================================================
   Section 15: замена сломанных иконок шрифта 'bn' на SVG/unicode
   Шрифт 'bn' удалён из bn.css; два места в bnfull.css остались
   ========================================================== */

/* 15.1 — #rew-slider time::before (\e919 = calendar icon) */
#rew-slider blockquote > div time::before {
  content: '' !important;
  font-family: initial !important;
  display: inline-block !important;
  width: 0.9em !important;
  height: 0.9em !important;
  background-color: currentColor !important;
  -webkit-mask: url('/images/calendar.svg') no-repeat center / contain !important;
  mask: url('/images/calendar.svg') no-repeat center / contain !important;
  vertical-align: middle !important;
  margin-right: 0.35em !important;
  padding: 0 !important;
  font-size: 1em !important;
  opacity: 0.75;
}

/* 15.2 — .userFormat a::after, .titleAnd2Col .rightCol a::after
   (\e911 = стрелка-шеврон, 0.55em, декоративный акцент после ссылок)
   Заменяем на unicode › (right single angle quotation) */
.titleAnd2Col .rightCol a::after,
.userFormat a::after {
  content: '\203A' !important; /* › */
  font-family: initial !important;
  font: bold 0.75em/1 inherit !important;
  padding-left: 0.4em !important;
  opacity: 0.7;
}
/* Стрелка на кнопках .bn-btn — крупнее, чем на текстовых ссылках */
.userFormat .bn-btn::after,
.accommodation-cta .bn-btn::after,
.accommodation-cta-bottom .bn-btn::after {
  font: bold 1em/1 inherit !important;
  padding-left: 0.5em !important;
  opacity: 0.9;
}

/* ==========================================================
   Section 16: Video modal — Plyr player overlay
   ========================================================== */

/* Скролл блокируется когда модаль открыта */
body.video-modal-open {
  overflow: hidden;
}

#video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
#video-modal.is-open {
  display: flex;
}

#video-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.92);
  cursor: pointer;
}

#video-modal-inner {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 960px;
  box-shadow: 0 8px 60px rgba(0,0,0,0.7);
  border-radius: 3px;
  overflow: hidden;
  animation: videoModalIn 0.22s ease;
}

@keyframes videoModalIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

#video-modal-close {
  position: absolute;
  top: -38px;
  right: 0;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.8);
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
  z-index: 2;
}
#video-modal-close:hover {
  color: #fff;
}
#video-modal-close svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Plyr overrides внутри модали */
#video-modal .plyr {
  --plyr-color-main: #379273;
  --plyr-video-control-color: #fff;
  border-radius: 0;
}
#video-modal .plyr--video {
  background: #000;
}

@media only screen and (max-width: 640px) {
  #video-modal-inner {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
  }
  #video-modal-close {
    top: 6px;
    right: 6px;
    background: rgba(0,0,0,0.55);
    border-radius: 50%;
    width: 34px;
    height: 34px;
  }
}

/* ==========================================================
   Section 17: Страница «Размещение» (.rzm-page)
   ========================================================== */

.rzm-page .contentBox > div {
  max-width: 1100px;
}

/* ---- Intro ---- */
.rzm-intro {
  text-align: center;
  padding: 0.5rem 0 2.8rem;
}
.rzm-intro h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #2b2118;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.rzm-lead {
  font-size: 1.65rem;
  color: #5a4a3a;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Cards ---- */
.rzm-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  margin-bottom: 4rem;
}
.rzm-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 18px rgba(43,33,24,0.10);
  transition: box-shadow 0.25s, transform 0.25s;
}
.rzm-card:hover {
  box-shadow: 0 6px 32px rgba(43,33,24,0.16);
  transform: translateY(-3px);
}
.rzm-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Image */
.rzm-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #2b2118;
}
.rzm-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease, opacity 0.55s ease;
}
.rzm-card:hover .rzm-card-img img {
  transform: scale(1.06);
  opacity: 0.85;
}
.rzm-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43,33,24,0.55) 0%, transparent 55%);
  pointer-events: none;
}
.rzm-card-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(43,33,24,0.82);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 600;
  padding: 0.35em 0.85em;
  border-radius: 2px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

/* Body */
.rzm-card-body {
  padding: 1.6rem 1.8rem 1.8rem;
}
.rzm-card-body h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #2b2118;
  margin: 0 0 0.3rem;
  line-height: 1.2;
}
.rzm-card-sub {
  font-size: 1.3rem;
  color: #8a7060;
  margin: 0 0 1.2rem;
}
.rzm-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
}
.rzm-features li {
  font-size: 1.4rem;
  color: #4a3a2e;
  padding: 0.3em 0 0.3em 1.4em;
  position: relative;
  line-height: 1.4;
}
.rzm-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #379273;
}
.rzm-card-cta {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 600;
  color: #379273;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s;
}
.rzm-card:hover .rzm-card-cta {
  color: #2d7a5f;
}

/* ---- Как выбрать ---- */
.rzm-choose {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid #e8e0d8;
}
.rzm-choose > h2,
.rzm-included > h2,
.rzm-faq > h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #2b2118;
  margin: 0 0 2rem;
}
.rzm-choose-grid {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  gap: 0 2.5rem;
  align-items: start;
}
.rzm-choose-sep {
  background: #e8e0d8;
  align-self: stretch;
}
.rzm-choose-item {
  padding: 0.5rem 0;
}
.rzm-choose-icon {
  width: 44px;
  height: 44px;
  color: #379273;
  margin-bottom: 1rem;
}
.rzm-choose-icon svg {
  width: 100%;
  height: 100%;
}
.rzm-choose-item h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2b2118;
  margin: 0 0 0.7rem;
}
.rzm-choose-item p {
  font-size: 1.5rem;
  color: #5a4a3a;
  line-height: 1.65;
  margin: 0 0 1rem;
}
.rzm-choose-link {
  font-size: 1.4rem;
  font-weight: 600;
  color: #379273;
  text-decoration: none;
  border-bottom: 1px solid rgba(55,146,115,0.4);
  transition: border-color 0.18s, color 0.18s;
}
.rzm-choose-link:hover {
  color: #2d7a5f;
  border-bottom-color: #2d7a5f;
}

/* ---- Что включено ---- */
.rzm-included {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid #e8e0d8;
}
.rzm-included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem 2rem;
}
.rzm-included-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1.45rem;
  color: #4a3a2e;
  line-height: 1.4;
}
.rzm-included-item svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: #379273;
}

/* ---- FAQ ---- */
.rzm-faq {
  padding: 3rem 0 1rem;
  border-top: 1px solid #e8e0d8;
}

/* ---- Mobile ---- */
@media only screen and (max-width: 768px) {
  .rzm-cards {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .rzm-choose-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .rzm-choose-sep {
    display: none;
  }
  .rzm-included-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
  }
}
@media only screen and (max-width: 480px) {
  .rzm-card-body {
    padding: 1.2rem 1.2rem 1.4rem;
  }
  .rzm-intro {
    padding-bottom: 2rem;
  }
  .rzm-included-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================
   Section 18: Privacy policy modal — модальное окно с политикой
   Открывается при клике на любую ссылку a[href*="privacy-policy"]
   на страницах /dev. Контент подгружается через fetch один раз
   и кешируется до закрытия страницы.
   ========================================================== */

body.privacy-modal-open {
  overflow: hidden;
}

/* ── Backdrop ── */
#privacy-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99998;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}
#privacy-modal.is-open {
  display: flex;
}

#privacy-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 4, 0.70);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
  z-index: 0;
}

/* ── Dialog shell ── */
#privacy-modal-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 740px;
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 10px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 10px 30px rgba(0,0,0,0.14),
    0 32px 80px rgba(0,0,0,0.20);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: privacyModalIn 0.30s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes privacyModalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* Top accent bar */
#privacy-modal-inner::before {
  content: '';
  display: block;
  height: 3px;
  flex-shrink: 0;
  background: linear-gradient(90deg, #379273 0%, #5aaa8c 60%, #8abe9e 100%);
}

/* ── Header ── */
#privacy-modal-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 13px;
  border-bottom: 1px solid #ece7e0;
  flex-shrink: 0;
  background: #faf8f5;
}

#privacy-modal-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(145deg, #379273 0%, #2b7060 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 2px 8px rgba(55,146,115,0.30);
}
#privacy-modal-icon svg {
  width: 18px;
  height: 18px;
}

#privacy-modal-title-wrap {
  flex: 1 1 auto;
  min-width: 0;
}
#privacy-modal-title-wrap h3 {
  margin: 0;
  font-size: 0.92em;
  font-weight: 700;
  color: #2e2820;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#privacy-modal-title-wrap .pm-subtitle {
  display: block;
  font-size: 0.72em;
  color: #b0a899;
  margin-top: 1px;
  font-weight: 400;
}

#privacy-modal-esc {
  flex-shrink: 0;
  font-size: 0.68em;
  color: #bbb;
  background: #eee9e2;
  border-radius: 4px;
  padding: 2px 7px;
  letter-spacing: 0.04em;
  font-family: ui-monospace, monospace;
  line-height: 1.7;
}

#privacy-modal-close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  color: #aaa;
  padding: 0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  margin-left: 2px;
}
#privacy-modal-close:hover {
  background: #ede8e1;
  border-color: #ddd;
  color: #2e2820;
}
#privacy-modal-close svg {
  width: 13px;
  height: 13px;
  display: block;
}

/* ── Scrollable body ── */
#privacy-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 32px 30px;
  scrollbar-width: thin;
  scrollbar-color: #ccc4ba transparent;
  /* Сбрасываем наследуемый мелкий шрифт сайта — задаём базу явно */
  font-size: 15px;
  line-height: 1.7;
}
#privacy-modal-body::-webkit-scrollbar {
  width: 4px;
}
#privacy-modal-body::-webkit-scrollbar-track {
  background: transparent;
}
#privacy-modal-body::-webkit-scrollbar-thumb {
  background: #ccc4ba;
  border-radius: 99px;
}

/* ── Content typography ── */
#privacy-modal-body .item-page {
  max-width: none;
}
#privacy-modal-body .page-header {
  display: none;
}

/* Date badge */
#privacy-modal-body p:first-child em,
#privacy-modal-body > article > div > p:first-child em {
  display: inline-block;
  font-style: normal;
  font-size: 0.74em;
  color: #999;
  background: #f3efe9;
  border-radius: 4px;
  padding: 2px 9px;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}

/* Section h2 — pill-style with left accent */
#privacy-modal-body h2 {
  font-size: 1em;
  font-weight: 700;
  color: #2e2820;
  margin: 24px 0 7px;
  padding: 8px 14px;
  background: linear-gradient(90deg, #f5f0e9 0%, #faf8f5 100%);
  border-left: 3px solid #8B6636;
  border-radius: 0 5px 5px 0;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.4;
}
#privacy-modal-body h2:first-of-type {
  margin-top: 8px;
}

/* Body text */
#privacy-modal-body p {
  font-size: 1em;
  line-height: 1.78;
  color: #484442;
  margin: 6px 0;
}
#privacy-modal-body li {
  font-size: 1em;
  line-height: 1.72;
  color: #484442;
}

/* Lists with dot bullets */
#privacy-modal-body ul {
  padding-left: 0;
  margin: 5px 0 10px;
  list-style: none;
}
#privacy-modal-body ul li {
  position: relative;
  padding-left: 15px;
  margin: 2px 0;
}
#privacy-modal-body ul li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 0.7em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8B6636;
  opacity: 0.55;
}

/* Strong text */
#privacy-modal-body strong {
  color: #2e2820;
  font-weight: 600;
}

/* ── Footer bar ── */
#privacy-modal-footer {
  flex-shrink: 0;
  padding: 9px 18px;
  border-top: 1px solid #ece7e0;
  background: #faf8f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.pm-footer-date {
  font-size: 0.72em;
  color: #bbb;
}
.pm-footer-link {
  font-size: 0.74em;
  color: #6b4c2a;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.pm-footer-link:hover {
  opacity: 1;
  text-decoration: underline;
}
.pm-footer-link svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

/* ── Loading spinner ── */
#privacy-modal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 64px 20px;
  color: #bbb;
  font-size: 0.84rem;
}
#privacy-modal-loading::before {
  content: '';
  width: 26px;
  height: 26px;
  border: 2px solid #e4ddd6;
  border-top-color: #8B6636;
  border-radius: 50%;
  animation: pmSpin 0.75s linear infinite;
}
@keyframes pmSpin {
  to { transform: rotate(360deg); }
}

/* ── Mobile — bottom sheet ── */
@media only screen and (max-width: 640px) {
  #privacy-modal {
    padding: 0;
    align-items: flex-end;
  }
  #privacy-modal-inner {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 18px 18px 0 0;
    animation: privacyModalInMobile 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }
  @keyframes privacyModalInMobile {
    from { opacity: 0; transform: translateY(48px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  /* Drag handle */
  #privacy-modal-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 38px;
    height: 3px;
    background: #ddd;
    border-radius: 99px;
  }
  #privacy-modal-header {
    padding-top: 22px;
  }
  #privacy-modal-inner::before {
    display: none;
  }
  #privacy-modal-esc {
    display: none;
  }
  #privacy-modal-body {
    padding: 12px 20px 28px;
  }
  #privacy-modal-body h2 {
    font-size: 0.97em;
  }
}

/* ==========================================================
   Section 18b: Date Range Picker — bn-dr-*
   ========================================================== */

/* ── Trigger ── */
.bn-dr-trigger {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #d0c8be;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  position: relative;
  margin-bottom: 0.5em;
  transition: border-color 0.18s, box-shadow 0.18s;
  min-height: 54px;
}
.bn-dr-trigger:hover,
.bn-dr-trigger.is-active {
  border-color: #379273;
  box-shadow: 0 0 0 3px rgba(55,146,115,0.12);
}

.bn-dr-t-col {
  flex: 1;
  padding: 10px 16px 11px;
  min-width: 0;
}
.bn-dr-t-col:first-of-type {
  border-right: 1px solid #e8e0d6;
}
.bn-dr-t-lbl {
  display: block;
  font-size: 0.72em;
  font-weight: 700;
  color: #aaa;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.bn-dr-t-arr,
.bn-dr-t-leave {
  display: block;
  font-size: 0.72em;
  color: #bbb;
  line-height: 1.3;
  transition: color 0.15s;
}
.bn-dr-t-arr.is-set,
.bn-dr-t-leave.is-set {
  color: #2e2820;
  font-weight: 500;
}

.bn-dr-t-sep {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 4px;
  color: #d0c8be;
}
.bn-dr-t-sep svg { width: 22px; height: 11px; }

.bn-dr-t-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 14px 0 6px;
  position: relative;
}
.bn-dr-t-ico {
  display: flex;
  align-items: center;
  color: #ccc;
  transition: color 0.15s;
}
.bn-dr-t-ico svg { width: 18px; height: 18px; }
.bn-dr-trigger.is-active .bn-dr-t-ico,
.bn-dr-trigger.has-sel   .bn-dr-t-ico { color: #379273; }

/* Clear (×) button */
.bn-dr-t-clr {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #bbb;
  padding: 0;
  transition: color 0.15s;
}
.bn-dr-t-clr svg { width: 12px; height: 12px; }
.bn-dr-t-clr:hover { color: #8B6636; }

/* ── Popup shell ── */
.bn-dr-popup {
  position: absolute;
  z-index: 9900;
  background: #fff;
  border: 1px solid #e0d8cf;
  border-radius: 10px;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.05),
    0 16px 48px rgba(0,0,0,0.14),
    0 32px 80px rgba(0,0,0,0.07);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.bn-dr-popup.is-open {
  display: flex;
  animation: bnDrFadeIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes bnDrFadeIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ── Nav bar ── */
.bn-dr-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #faf8f5;
  border-bottom: 1px solid #ece7e0;
}
.bn-dr-nav-title {
  flex: 1;
  text-align: center;
  font-size: 0.82em;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.02em;
}
.bn-dr-nav-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd8cf;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.13s, border-color 0.13s, color 0.13s;
}
.bn-dr-nav-btn:hover { background: #f0ebe3; border-color: #c5bdb4; color: #2e2820; }
.bn-dr-nav-btn svg { width: 14px; height: 14px; }

/* ── Calendar grids ── */
.bn-dr-calendars {
  display: flex;
  padding: 16px 18px 10px;
  gap: 0;
}
.bn-dr-month { flex: 1; min-width: 0; }
.bn-dr-month--sep {
  padding-left: 20px;
  margin-left: 20px;
  border-left: 1px solid #ece7e0;
}
.bn-dr-month-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2e2820;
  text-align: center;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.bn-dr-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.bn-dr-dh {
  font-size: 0.9rem;
  font-weight: 700;
  color: #bbb;
  text-align: center;
  padding: 0 0 7px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bn-dr-dh--we { color: #c8a88a; }

/* Day cell */
.bn-dr-dc {
  text-align: center;
  position: relative;
  padding: 1px 0;
}
.bn-dr-sel { cursor: pointer; }
.bn-dr-past { opacity: 0.35; cursor: default; pointer-events: none; }

/* Range background strip */
.bn-dr-ir  { background: rgba(55,146,115,0.09); }
.bn-dr-s   { background: linear-gradient(to right,  transparent 50%, rgba(55,146,115,0.09) 50%); }
.bn-dr-e   { background: linear-gradient(to left,   transparent 50%, rgba(55,146,115,0.09) 50%); }
.bn-dr-hov { background: linear-gradient(to left,   transparent 50%, rgba(55,146,115,0.06) 50%); }
.bn-dr-s.bn-dr-e { background: none !important; }

/* Week boundary: round the range strip corners */
.bn-dr-wk-s.bn-dr-ir { border-radius: 20px 0 0 20px; }
.bn-dr-wk-e.bn-dr-ir { border-radius: 0 20px 20px 0; }
.bn-dr-wk-s.bn-dr-e  { border-radius: 20px 0 0 20px; }

/* Day circle */
.bn-dr-di {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  margin: 0 auto;
  font-size: 1.15rem;
  color: #484442;
  position: relative;
  z-index: 1;
  transition: background 0.12s, color 0.12s;
}
.bn-dr-sel:hover .bn-dr-di            { background: #f0ebe3; color: #2e2820; }
.bn-dr-today .bn-dr-di                { color: #379273; font-weight: 700; }
.bn-dr-s .bn-dr-di,
.bn-dr-e .bn-dr-di                    { background: #379273 !important; color: #fff !important; font-weight: 600; box-shadow: 0 2px 8px rgba(55,146,115,0.32); }
.bn-dr-s:hover .bn-dr-di,
.bn-dr-e:hover .bn-dr-di              { background: #2d7860 !important; }
.bn-dr-hov .bn-dr-di                  { background: rgba(55,146,115,0.45); color: #fff !important; }
.bn-dr-we .bn-dr-di                   { color: #9a7355; }
.bn-dr-s .bn-dr-di, .bn-dr-e .bn-dr-di { color: #fff !important; } /* override weekend tint */

/* ── Footer bar ── */
.bn-dr-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px 12px;
  border-top: 1px solid #ece7e0;
  background: #faf8f5;
}
.bn-dr-hint { font-size: 0.74rem; color: #bbb; font-style: italic; }
.bn-dr-clear-btn {
  font-size: 0.74rem;
  color: #6b4c2a;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}
.bn-dr-clear-btn:hover { text-decoration: underline; }

/* ── Mobile: bottom sheet ── */
@media (max-width: 719px) {
  .bn-dr-popup {
    position: fixed !important;
    left: 0 !important; right: 0 !important;
    bottom: 0 !important; top: auto !important;
    width: 100% !important;
    border-radius: 18px 18px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 -6px 40px rgba(0,0,0,0.18);
    animation: bnDrFadeInMob 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }
  @keyframes bnDrFadeInMob {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .bn-dr-calendars { flex-direction: column; padding: 14px 14px 8px; }
  .bn-dr-month--sep { padding-left: 0; margin-left: 0; border-left: none; border-top: 1px solid #ece7e0; margin-top: 16px; padding-top: 14px; }
  .bn-dr-di { width: 38px; height: 38px; font-size: 1.2rem; }
  .bn-dr-t-col { padding: 8px 12px 9px; }
  .bn-dr-t-sep { padding: 0 2px; }
}

/* ==========================================================
   Section 19: Gallery page — masonry grid + lightbox
   ========================================================== */

/* ── Обёртка страницы ── */
.gallery-wrap {
  padding: 0 0 60px;
}

/* ── Недоступность галереи ── */
.gallery-unavailable {
  text-align: center;
  padding: 60px 20px;
  color: #7a6a5a;
  font-size: 1.05em;
}

/* ── Directus-карточки: фиксированный aspect-ratio 4:3 ──
   Переопределяем masonry-поведение для .gallery-grid —
   каждая карточка теперь имеет фиксированную высоту.
   Класс сетки остаётся .gallery-grid, но без columns. ── */
.gallery-page .gallery-grid {
  columns: unset;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 8px;
}
.gallery-page .gallery-item {
  margin-bottom: 0;
  aspect-ratio: 4 / 3;
}
.gallery-page .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Адаптив Directus-сетки ── */
@media only screen and (max-width: 1100px) {
  .gallery-page .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media only screen and (max-width: 700px) {
  .gallery-page .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 5px; padding: 0 5px; }
}
@media only screen and (max-width: 420px) {
  .gallery-page .gallery-grid { grid-template-columns: 1fr; }
}

/* ── Заголовок ── */
.gallery-header {
  text-align: center;
  padding: 40px 20px 28px;
}
.gallery-header h1,
.gallery-header h2 {
  font-size: 2em;
  font-weight: 400;
  color: #2e2820;
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}
.gallery-header p {
  font-size: 1.05em;
  color: #7a6a5a;
  margin: 0;
  line-height: 1.5;
}

/* ── Фильтр-табы ── */
.gallery-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 20px 22px;
  white-space: nowrap;
  justify-content: center;
  flex-wrap: wrap;
}
.gallery-tabs::-webkit-scrollbar { display: none; }

.gallery-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  border: 1.5px solid #d6cdc4;
  border-radius: 30px;
  background: transparent;
  font-family: 'Roboto', sans-serif;
  font-size: 0.95em;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #5a4e42;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.gallery-tab:hover {
  border-color: #379273;
  color: #379273;
}
.gallery-tab.is-active {
  background: #379273;
  border-color: #379273;
  color: #fff;
}
.gallery-tab-count {
  font-size: 0.8em;
  opacity: 0.75;
  font-weight: 400;
}
.gallery-tab.is-active .gallery-tab-count {
  opacity: 0.9;
}

/* ── Masonry-сетка ── */
.gallery-grid {
  columns: 4;
  column-gap: 6px;
  padding: 0 6px;
  transition: opacity 0.2s ease;
}
.gallery-grid.is-filtering {
  opacity: 0;
  pointer-events: none;
}

/* ── Карточка фото ── */
.gallery-item {
  break-inside: avoid;
  margin-bottom: 6px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
  background: #d5cfc8;
  /* сброс */
  padding: 0;
  border: none;
  outline: none;
}

/* ── Скелетон thumbnail: shimmer поверх тёмного фона ─── */
.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    transparent              0%,
    rgba(255,240,220,0.06)  42%,
    rgba(255,240,220,0.13)  50%,
    rgba(255,240,220,0.06)  58%,
    transparent             100%
  );
  background-size: 200% 100%;
  animation: thumbShimmer 1.8s ease-in-out infinite;
  pointer-events: none;
}
/* После загрузки — убираем shimmer */
.gallery-item.is-loaded::before {
  display: none;
}
@keyframes thumbShimmer {
  0%   { background-position: 150% 0; }
  100% { background-position: -150% 0; }
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;            /* выше ::before (shimmer) */
  opacity: 0;            /* скрыт до загрузки */
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity  0.35s ease;
}
/* Появление после загрузки */
.gallery-item.is-loaded img {
  opacity: 0.95;
}
.gallery-item:hover img,
.gallery-item:focus img {
  transform: scale(1.06);
}
.gallery-item.is-loaded:hover img,
.gallery-item.is-loaded:focus img {
  opacity: 1;
}
.gallery-item.is-hidden {
  display: none;
}

/* ── Оверлей при наведении ── */
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;            /* выше img и shimmer */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(20, 13, 8, 0.42);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.gallery-item:hover .gallery-item-overlay,
.gallery-item:focus .gallery-item-overlay {
  opacity: 1;
}
.gallery-zoom-icon {
  width: 44px;
  height: 44px;
  color: #fff;
  opacity: 0.9;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .gallery-zoom-icon {
  transform: scale(1);
}
.gallery-zoom-icon svg {
  width: 100%;
  height: 100%;
}
.gallery-item-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 0.85em;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ── Адаптив сетки ── */
@media only screen and (max-width: 1100px) { .gallery-grid { columns: 3; } }
@media only screen and (max-width: 700px)  { .gallery-grid { columns: 2; } }
@media only screen and (max-width: 420px)  { .gallery-grid { columns: 1; } }

/* ==========================================================
   Section 19b: Gallery Lightbox
   ========================================================== */

body.gallery-lb-open {
  overflow: hidden;
}

/* Нейтрализуем transform на <main> когда лайтбокс открыт.
   CSS transform создаёт новый containing block — position:fixed
   внутри него привязывается к <main>, а не к viewport. */
body.gallery-lb-open .cd-main-content {
  transform: none !important;
}

#gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  flex-direction: column;
}
#gallery-lightbox.is-open {
  display: flex;
}

#gallery-lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 5, 3, 0.96);
  cursor: pointer;
}

#gallery-lb-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Топ-бар: лейбл, счётчик, кнопка закрытия */
#gallery-lb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 10px;
  pointer-events: all;
  flex-shrink: 0;
}
#gallery-lb-label {
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
#gallery-lb-counter {
  font-size: 0.9em;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  margin-left: auto;
  margin-right: 20px;
}
#gallery-lb-close {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  cursor: pointer;
  color: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
  transition: background 0.2s, color 0.2s;
  pointer-events: all;
}
#gallery-lb-close:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
#gallery-lb-close svg { width: 18px; height: 18px; display: block; }

/* Сцена: стрелки + изображение */
#gallery-lb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 0;
  pointer-events: all;
}

#gallery-lb-prev,
#gallery-lb-next {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: color 0.2s, background 0.2s;
  padding: 0;
}
#gallery-lb-prev { left: 0; }
#gallery-lb-next { right: 0; }
#gallery-lb-prev:hover,
#gallery-lb-next:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}
#gallery-lb-prev svg,
#gallery-lb-next svg {
  width: 30px;
  height: 30px;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6));
}

/* Обёртка изображения */
#gallery-lb-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 180px);
  max-height: calc(100vh - 80px);
}
/* Анимация при смене фото (класс добавляется в JS) */
#gallery-lb-img-wrap.lb-animate {
  animation: lbImgIn 0.26s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
@keyframes lbImgIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

#gallery-lb-img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 90px);
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0,0,0,0.7);
  border-radius: 2px;
  /* Нет transition: img скрывается мгновенно при смене фото.
     Плавное появление обеспечивает lb-animate на wrapper — иначе
     пользователь видит два события: старое фото тает, новое появляется. */
}
#gallery-lb-img.is-loading {
  opacity: 0;
}

/* ── Скелетон при загрузке фото (заменяет спиннер) ──── */
#gallery-lb-skeleton {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Размер — 4:3, ограничен шириной и высотой viewport */
  width:  min(calc(100vw - 180px), calc((100vh - 110px) * 4 / 3));
  height: min(calc(100vh - 110px), calc((100vw - 180px) * 3 / 4));
  border-radius: 3px;
  background-color: rgba(255,255,255,0.07);
  overflow: hidden;
  z-index: 2;
}
#gallery-lb-skeleton.is-visible {
  display: block;
}
/* Shimmer — светлая полоса скользит слева направо */
#gallery-lb-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent             0%,
    rgba(255,255,255,0.05) 40%,
    rgba(255,255,255,0.11) 50%,
    rgba(255,255,255,0.05) 60%,
    transparent            100%
  );
  background-size: 200% 100%;
  animation: lbSkeletonShimmer 1.8s ease-in-out infinite;
}
@keyframes lbSkeletonShimmer {
  0%   { background-position: 150% 0; }
  100% { background-position: -150% 0; }
}

/* Мобильный адаптив */
@media only screen and (max-width: 600px) {
  #gallery-lb-img-wrap {
    max-width: 100vw;
  }
  #gallery-lb-skeleton {
    width: 100vw;
    height: min(calc(100vh - 110px), calc(100vw * 3 / 4));
  }
  #gallery-lb-prev,
  #gallery-lb-next {
    width: 48px;
  }
  .gallery-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding: 0 12px 18px;
  }
  .gallery-grid { column-gap: 4px; padding: 0 4px; }
  .gallery-item { margin-bottom: 4px; }
}

/* ==========================================================
   Section 19: Booking result modal
   Показывается после отправки заявки (успех / ошибка).
   ========================================================== */
body.book-modal-open {
  overflow: hidden;
}

#book-result-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
}
#book-result-modal.is-open {
  display: flex;
}

#brm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 4, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
  z-index: 0;
}

#brm-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 12px;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 12px 40px rgba(0,0,0,0.14),
    0 32px 80px rgba(0,0,0,0.18);
  overflow: hidden;
  animation: brmIn 0.30s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes brmIn {
  from { opacity: 0; transform: scale(0.93) translateY(14px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

/* Accent bar */
#brm-inner::before {
  content: '';
  display: block;
  height: 4px;
  flex-shrink: 0;
}
#book-result-modal.state-success #brm-inner::before {
  background: linear-gradient(90deg, #2a7a5e 0%, #379273 55%, #6ab89a 100%);
}
#book-result-modal.state-error #brm-inner::before {
  background: linear-gradient(90deg, #b05a18 0%, #d07830 55%, #e8a86a 100%);
}

/* Close button */
#brm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #a89a8e;
  transition: background 0.15s, color 0.15s;
  padding: 0;
  z-index: 2;
}
#brm-close:hover {
  background: #f3ede6;
  color: #3a3530;
}
#brm-close svg { display: block; }

/* Body */
#brm-body {
  padding: 38px 40px 34px;
  text-align: center;
}

/* Icon circle */
#brm-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#book-result-modal.state-success #brm-icon {
  background: #edf7f2;
  color: #2a7a5e;
}
#book-result-modal.state-error #brm-icon {
  background: #fdf2e6;
  color: #c46a20;
}

/* Heading */
#brm-title {
  font-size: 1.35em;
  font-weight: 700;
  color: #2c2520;
  margin: 0 0 10px;
  line-height: 1.3;
}

/* Message */
#brm-text {
  font-size: 0.93em;
  color: #5a4d42;
  line-height: 1.7;
  margin: 0 0 20px;
}
#brm-text strong { color: #2c2520; }

/* Contact hint */
#brm-contact {
  font-size: 0.82em;
  color: #8a7d72;
  line-height: 1.65;
  margin: 0 0 24px;
  padding: 12px 16px;
  background: #f9f7f4;
  border-radius: 7px;
  border: 1px solid #ece5dc;
  text-align: left;
}
#brm-contact a {
  color: #2a7a5e;
  font-weight: 600;
  text-decoration: none;
}
#brm-contact a:hover { text-decoration: underline; }

/* Button */
#brm-btn {
  display: inline-block;
  min-width: 160px;
  padding: 11px 32px;
  border: none;
  border-radius: 6px;
  font-size: 0.92em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}
#book-result-modal.state-success #brm-btn {
  background: #379273;
  color: #fff;
}
#book-result-modal.state-success #brm-btn:hover {
  background: #2a7a5e;
}
#book-result-modal.state-error #brm-btn {
  background: #f0e9e0;
  color: #6b5c4e;
}
#book-result-modal.state-error #brm-btn:hover {
  background: #e8ddd1;
}
#brm-btn:active { transform: scale(0.97); }

@media (max-width: 480px) {
  #brm-body { padding: 28px 24px 24px; }
  #brm-title { font-size: 1.2em; }
  #brm-contact { font-size: 0.80em; }
}

/* ==========================================================
   Section 20: Validation toast + submit button shake
   Показывается при клике «Отправить заявку» с ошибками.
   ========================================================== */

/* ── Toast ── */
#book-val-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100000;
  width: 300px;
  background: #fff;
  border-radius: 10px;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.08),
    0 10px 28px rgba(0,0,0,0.13);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
  transition:
    opacity 0.20s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
#book-val-toast.is-shown {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#book-val-toast::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #b05a18 0%, #d07830 55%, #e8a86a 100%);
}

.bvt-body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px 14px;
}

.bvt-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fdf2e6;
  color: #c46a20;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.bvt-icon svg { display: block; }

.bvt-text { flex: 1; }
.bvt-title {
  font-size: 0.87em;
  font-weight: 700;
  color: #2c2520;
  margin: 0 0 3px;
  line-height: 1.3;
}
.bvt-msg {
  font-size: 0.81em;
  color: #6b5c4e;
  line-height: 1.5;
  margin: 0;
}

.bvt-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #b0a098;
  padding: 2px;
  border-radius: 4px;
  line-height: 0;
  transition: color 0.12s;
  margin-top: 1px;
}
.bvt-close:hover { color: #3a3530; }
.bvt-close svg { display: block; }

/* Progress bar */
.bvt-progress {
  height: 3px;
  background: #f3ede6;
}
.bvt-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #b05a18, #d07830);
  width: 100%;
  transform-origin: left center;
}

@media (max-width: 500px) {
  #book-val-toast {
    right: 10px;
    left: 10px;
    width: auto;
    top: 10px;
  }
}

/* ── Submit button shake ── */
@keyframes bookSendShake {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-6px); }
  35%       { transform: translateX(6px); }
  55%       { transform: translateX(-4px); }
  75%       { transform: translateX(4px); }
}
#bookSend.is-shaking {
  animation: bookSendShake 0.38s ease;
}

/* =============================================================
   Section 21: Rental rules modal (#rules-modal)
============================================================= */
body.rules-modal-open {
  overflow: hidden;
}

#rules-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9100;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
#rules-modal.is-open {
  display: flex;
}

#rules-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 10, 4, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── Card ── */
#rules-modal-inner {
  position: relative;
  z-index: 1;
  background: #fdfaf7;
  border-radius: 10px;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.32), 0 4px 12px rgba(0,0,0,0.12);
  animation: rulesModalIn 0.24s cubic-bezier(.22,.68,0,1.2);
  outline: none;
  overflow: hidden;
}

@keyframes rulesModalIn {
  from { opacity: 0; transform: translateY(22px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ── Header ── */
#rules-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1.15em 1.4em 1.1em;
  background: #fff;
  border-bottom: 1px solid #e8e0d6;
  flex-shrink: 0;
  /* top accent stripe */
  box-shadow: inset 0 3px 0 0 #c8933a;
}

#rules-modal-doc-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #f5ede0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#rules-modal-doc-icon svg {
  width: 20px;
  height: 20px;
  color: #c8933a;
}

#rules-modal-title-wrap {
  flex: 1;
  min-width: 0;
}
#rules-modal-title-wrap h3 {
  margin: 0 0 2px;
  font-size: 1.05em;
  font-weight: 700;
  color: #1e1610;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#rules-modal-title-wrap .rm-subtitle {
  font-size: 0.78em;
  color: #9a8a78;
  margin: 0;
  line-height: 1;
}

#rules-modal-esc {
  font-size: 0.68em;
  color: #b0a090;
  border: 1px solid #ddd6cc;
  border-radius: 4px;
  padding: 3px 7px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  font-family: monospace;
}

#rules-modal-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #9a8a78;
  padding: 6px;
  line-height: 0;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
#rules-modal-close:hover {
  color: #1e1610;
  background: #f0e8de;
}
#rules-modal-close svg {
  display: block;
}

/* ── Body ── */
#rules-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5em 1.6em 1.2em;
  font-size: 0.91em;
  line-height: 1.7;
  color: #2e2418;
  background: #fdfaf7;
}
#rules-modal-body::-webkit-scrollbar { width: 5px; }
#rules-modal-body::-webkit-scrollbar-track { background: #f0ebe4; }
#rules-modal-body::-webkit-scrollbar-thumb { background: #c8b89a; border-radius: 10px; }

/* Hide page title — shown in header already */
#rules-modal-body .item-page { padding: 0; }
#rules-modal-body .page-header,
#rules-modal-body h1 { display: none; }

/* Lead paragraph */
#rules-modal-body .legal-lead {
  background: #fef6e8;
  border-left: 3px solid #c8933a;
  border-radius: 0 6px 6px 0;
  padding: 0.75em 1em;
  margin: 0 0 1.4em;
  font-size: 0.97em;
  color: #3a2c18;
}

/* Numbered list — custom counters */
#rules-modal-body ol {
  list-style: none;
  padding-left: 0;
  margin: 1.5em 0 1em;
  counter-reset: rules-counter;
}
#rules-modal-body ol > li {
  counter-increment: rules-counter;
  position: relative;
  padding-left: 2.6em;
  margin-bottom: 0.9em;
  line-height: 1.65;
}
#rules-modal-body ol > li::before {
  content: counter(rules-counter);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.7em;
  height: 1.7em;
  background: #e8ddd0;
  color: #7a5828;
  border-radius: 50%;
  font-size: 0.8em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

/* Nested ul inside ol */
#rules-modal-body ol > li > ul {
  list-style: none;
  padding-left: 0;
  margin: 0.5em 0 0.2em;
}
#rules-modal-body ol > li > ul > li {
  position: relative;
  padding-left: 1.3em;
  margin-bottom: 0.3em;
  color: #4a3c2c;
  font-size: 0.97em;
}
#rules-modal-body ol > li > ul > li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #c8933a;
  font-weight: 600;
}

/* Standalone paragraphs */
#rules-modal-body > .item-page > p,
#rules-modal-body p {
  margin: 0.5em 0;
  color: #4a3c2c;
}

/* Loading state */
#rules-modal-body #rules-modal-loading {
  color: #b0a090;
  font-style: italic;
  padding: 2em 0;
  text-align: center;
}

/* ── Footer ── */
#rules-modal-footer {
  border-top: 1px solid #e8e0d6;
  padding: 0.75em 1.4em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: #fff;
}
#rules-modal-footer .rm-doc-note {
  font-size: 0.76em;
  color: #b0a090;
}
.rm-footer-link {
  font-size: 0.82em;
  color: #9a7a52;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1px solid #d8cfc4;
  border-radius: 5px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.rm-footer-link:hover {
  color: #7a5a32;
  border-color: #c8933a;
  background: #fef6e8;
}
.rm-footer-link svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  #rules-modal {
    padding: 8px;
  }
  #rules-modal-inner {
    max-height: 94vh;
  }
  #rules-modal-esc,
  #rules-modal-footer .rm-doc-note { display: none; }
  #rules-modal-body {
    padding: 1.1em 1.1em 1em;
  }
}

/* ── Prices: sub-row with bullet (одноместное размещение) ── */
.price-subrow td:first-child {
  padding-left: 1.6em;
  color: #6a5a48;
}
.price-bullet {
  color: #c8933a;
  margin-right: 0.3em;
  font-size: 1.1em;
  line-height: 1;
}

/* ── Prices: мелкая подсказка под названием строки ── */
.price-note {
  display: block;
  font-size: 0.78em;
  color: #9a8878;
  font-weight: normal;
  line-height: 1.4;
  margin-top: 0.2em;
}

/* ── Prices: fix odd-row hide from base .comparison styles ──
   bnfull.css скрывает нечётные <tr> в .comparison tbody —
   это паттерн для старых страниц со spacer-рядами.
   На странице цен все строки обычные, скрывать ничего не нужно.
   Используем body-класс страницы как скоуп. ── */
body.reviews .comparison tbody tr {
  display: table-row !important;
}

/* ── Prices: mobile — возвращаем первый столбец (названия строк) ──
   На max-width:720px bnfull.css прячет td/th:first-child — паттерн
   для comparison-таблиц где первая колонка была заголовком категории.
   На странице цен первый столбец — это и есть наименование, без него
   таблица теряет смысл. ── */
@media screen and (max-width: 720px) {
  body.reviews .comparison td:first-child,
  body.reviews .comparison th:first-child {
    display: table-cell !important;
    text-align: left;
    font-size: 13px;
    padding: 10px 10px 10px 12px;
    width: 55%;
  }
  body.reviews .comparison td,
  body.reviews .comparison th {
    font-size: 13px;
    padding: 10px;
    vertical-align: middle;
  }
  body.reviews .comparison tbody tr {
    display: table-row !important;
    background: transparent;
  }
  body.reviews .price-note {
    font-size: 0.72em;
  }
}

/* =============================================================
   SECTION 22: Phone reveal — маскированный телефон с раскрытием по клику
   ============================================================= */

/* Базовая ссылка-триггер (наследует размеры/цвет места, куда вставлена) */
.js-show-phone {
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}
.js-show-phone:hover {
  text-decoration: underline;
}
.js-show-phone.is-loading {
  opacity: 0.65;
  cursor: progress;
  pointer-events: none;
}
.js-show-phone.is-error {
  color: #c0392b;
}

/* Статичный «открытый» вид — обычная tel: ссылка после клика */
.phone-reveal__opened {
  text-decoration: none;
}

/* Inline-вариант (внутри текста, в книжных модалках, в карточке контактов) */
.phone-reveal__inline {
  white-space: nowrap;
}

/* Полный блок с подписью и подсказкой */
.phone-reveal {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.phone-reveal__label {
  font-size: 13px;
  color: #777;
  line-height: 1.2;
}
.phone-reveal__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  background: #f4f6f8;
  color: #222;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.phone-reveal__button:hover {
  background: #e9eef3;
  text-decoration: none;
}
.phone-reveal__button.is-loading {
  opacity: 0.7;
  cursor: progress;
}
.phone-reveal__hint {
  font-size: 12px;
  color: #888;
  line-height: 1.2;
}

/* Шапка сайта (.hPhone унаследовал классы оригинальной ссылки) */
.hPhone.js-show-phone,
.hPhone.is-opened {
  cursor: pointer;
}

/* Футер (.fPhone) — ничего не меняем визуально, кроме курсора */
.fPhone.js-show-phone,
.fPhone.is-opened {
  cursor: pointer;
}

/* В карточке контактов (cp-card) масштаб уже задан, нам нужна только указка */
.cp-card-value .js-show-phone {
  color: inherit;
}
.cp-card-value .phone-reveal__opened {
  color: inherit;
}

/* -----------------------------------------------
   Карточки «Коттеджи» и «Апартаменты» на главной — фото из Directus
   Переопределяет bn.css: фиксированный height:546px → aspect-ratio 4/3
   Пресет site-card: 960×720 (4:3), cover, q82
   ----------------------------------------------- */
.effect-selectHouseType.cottages,
.effect-selectHouseType.townhouse {
  height: auto;
  aspect-ratio: 4 / 3;
}
.effect-selectHouseType.cottages .houseType,
.effect-selectHouseType.townhouse .houseType {
  height: 100%;
  background-size: cover;
}
.effect-selectHouseType.cottages .houseType {
  background-image: url('https://media.bnochi.ru/assets/d2a82b0e-d69b-4d8a-8571-969ea7f8f4c6?key=site-card');
}
.effect-selectHouseType.townhouse .houseType {
  background-image: url('https://media.bnochi.ru/assets/f775960d-840d-4fd2-9dc9-c81989e310d8?key=site-card');
}

/* ═══════════════════════════════════════════════════════════════
   Section 16: Reviews page redesign — badges, stats, filter tabs
   ═══════════════════════════════════════════════════════════════ */

/* ── Статистика ────────────────────────────────────────────── */
.rv-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4em .8em;
  font-size: 1.4rem;
  color: #6b6260;
  margin: 1em 0 0;
  padding: .6em 0;
  border-top: 1px solid rgba(76,68,67,.12);
  border-bottom: 1px solid rgba(76,68,67,.12);
}
.rv-stats__divider {
  color: rgba(76,68,67,.35);
}
.rv-stats__rating {
  color: #c0882a;
  font-weight: 700;
}
.rv-stats__cottages  { color: #007758; }
.rv-stats__apartments { color: #2475a8; }

/* ── Фильтр-табы ───────────────────────────────────────────── */

/* скрываем стрелку › из базового .subMenuTop a::after */
.rv-filter .rv-filter__btn::after,
.rv-filter a[data-rv-filter]::after {
  display: none !important;
}

.rv-filter sup {
  display: inline-block;
  font-size: .65em;
  font-style: normal;
  font-weight: 700;
  line-height: 1.5;
  padding: 0 5px;
  min-width: 16px;
  text-align: center;
  border-radius: 10px;
  margin-left: 4px;
  vertical-align: middle;
  background: rgba(0,0,0,.18);
  color: inherit;
}
.rv-filter .rv-filter__btn--active {
  background: #4c4443;
  color: #fff;
}
.rv-filter .rv-filter__btn--active sup {
  background: rgba(255,255,255,.25);
}
.rv-filter .rv-filter__btn--cottages.rv-filter__btn--active {
  background: #007758;
}
.rv-filter .rv-filter__btn--apartments.rv-filter__btn--active {
  background: #2475a8;
}

/* ── Бейдж категории на карточке ──────────────────────────── */
.rcb {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 11px 4px;
  border-radius: 20px;
  margin-bottom: 10px;
  line-height: 1.4;
}
.rcb--cottages {
  background: #007758;
  color: #fff;
}
.rcb--apartments {
  background: #2475a8;
  color: #fff;
}

/* ── Звёзды рейтинга ────────────────────────────────────────── */
.reviewsListWrap .review-rating,
.review-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* Цифра — маленький золотой бейдж */
.rv-stars__score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 8px;
  background: #c0882a;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

/* Обёртка звёзд */
.rv-stars__filled,
.rv-stars__empty {
  font-size: 1.55rem;
  letter-spacing: 1px;
  line-height: 1;
}
.rv-stars__filled {
  color: #c0882a;
}
.rv-stars__empty {
  color: #c0882a;
  opacity: 0.2;
}

/* В секции отзывов на других страницах */
.reviewsListWrap .review-rating {
  font-size: inherit;
}

/* ── «Нет результатов» ─────────────────────────────────────── */
.rv-no-results {
  padding: 40px 32px 60px 80px;
  font-style: italic;
  color: #999;
  font-size: 1.5rem;
}

/* ── Скролл-контейнер отзывов ───────────────────────────────── */
.reviewsListWrap {
  max-height: 80vh;
  overflow-y: auto;
  /* тонкий скроллбар в Webkit */
  scrollbar-width: thin;
  scrollbar-color: #c8bfbb #f0ece9;
}
.reviewsListWrap::-webkit-scrollbar {
  width: 6px;
}
.reviewsListWrap::-webkit-scrollbar-track {
  background: #f0ece9;
  border-radius: 3px;
}
.reviewsListWrap::-webkit-scrollbar-thumb {
  background: #c8bfbb;
  border-radius: 3px;
}
.reviewsListWrap::-webkit-scrollbar-thumb:hover {
  background: #a89e9a;
}

/* ── Адаптив (Section 16) ──────────────────────────────────── */
@media (max-width: 640px) {
  .rv-stats {
    font-size: 1.25rem;
    gap: .3em .6em;
  }
  .rv-stats__divider {
    display: none;
  }
  .rv-stats__item {
    display: block;
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Section 17 — Отзывы: лёгкая полировка тайм­лайна
   ──────────────────────────────────────────────────────────────
   Цель: убрать лишние отступы, улучшить типографику, выровнять
   бейджи, звёзды и дату — не меняя общую концепцию страницы.
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Убираем большой верхний отступ между табами и отзывами ─ */
/* Планшет: базовый стиль даёт padding-top: 4rem */
@media (max-width: 1024px) {
  .full-width.reviewsList {
    padding-top: 1rem !important;
  }
}
/* Десктоп: добавляем небольшой верхний отступ (базово нет) */
@media (min-width: 1025px) {
  .full-width.reviewsList {
    padding-top: 2rem;
  }
}

/* ── 2. Типографика текста отзыва ──────────────────────────── */
.reviewsListWrap .content p,
.reviewsListWrap .content {
  font-size: 1.55rem !important;
  line-height: 1.65 !important;
  text-align: left !important;
  font-style: normal !important;
  color: #3f3a38;
}

/* ── 3. Ограничение ширины текста для лучшей читаемости ────── */
.reviewsListWrap .reviewBox .content {
  max-width: 740px;
}

/* ── 4. Дата: аккуратный размер и цвет ─────────────────────── */
.reviewsListWrap .article-info {
  margin-bottom: 8px !important;
  margin-top: 0 !important;
}
.reviewsListWrap .article-info li,
.reviewsListWrap .article-info time {
  font-size: 1.3rem;
  color: #9e9791;
  font-style: normal;
  letter-spacing: .01em;
}

/* ── 5. Бейдж категории: чуть более компактный и аккуратный ── */
.rcb {
  font-size: 1.1rem !important;
  padding: 2px 12px 3px !important;
  border-radius: 20px !important;
  margin-bottom: 8px !important;
  display: inline-block !important;
  vertical-align: middle;
}

/* ── 6. Блок звёзд + автор: выровнен и менее разреженный ───── */
.reviewsListWrap .page-header.t2.center {
  margin-top: 10px !important;
  padding-top: 0 !important;
  text-align: left !important;
}
.reviewsListWrap .review-rating {
  font-size: inherit;
}
.reviewsListWrap .author {
  font-size: 1.5rem !important;
  color: #6a6260;
  padding-top: 0 !important;
  margin-left: 4px;
}

/* ── 7. Сам reviewBox: убираем лишний вертикальный padding ─── */
@media (min-width: 641px) {
  .reviewsListWrap .reviewBox {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
}

/* ── 8. Вкладки фильтра: активное состояние читаемее ────────── */
.rv-filter .rv-filter__btn--active {
  font-weight: 700 !important;
  color: #fff !important;
  opacity: 1 !important;
}
/* «Написать отзыв» — насыщенный зелёный без прозрачности */
.rv-filter .addReview.green,
.rv-filter a.addReview {
  color: #1a7a50 !important;
  opacity: 1 !important;
  font-weight: 600;
  background: transparent !important;
}
.rv-filter .addReview.green:hover,
.rv-filter a.addReview:hover {
  color: #007738 !important;
}

/* ── 9. Статистика: чуть меньше нижний отступ ──────────────── */
.rv-stats {
  margin-bottom: 1em !important;
}

/* ── 10. Мобильный адаптив ──────────────────────────────────── */
@media (max-width: 640px) {
  /* Прокручиваемые вкладки */
  .rv-filter-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .rv-filter {
    flex-wrap: nowrap !important;
    white-space: nowrap;
    min-width: max-content;
  }

  /* Тайм­лайн: уменьшаем отступы */
  .reviewsListWrap .reviewBox {
    padding: 14px 16px 14px 16px !important;
  }

  /* Текст */
  .reviewsListWrap .content p,
  .reviewsListWrap .content {
    font-size: 1.45rem !important;
    line-height: 1.6 !important;
  }

  /* Звёзды + автор */
  .reviewsListWrap .review-rating {
    font-size: 1.55rem;
  }
  .reviewsListWrap .author {
    font-size: 1.35rem !important;
  }

  /* Бейдж */
  .rcb {
    font-size: 1rem !important;
    padding: 2px 10px 2px !important;
  }

  /* Дата */
  .reviewsListWrap .article-info li,
  .reviewsListWrap .article-info time {
    font-size: 1.2rem;
  }
}

/* ── offerInclude: checklist items above heading label ──────── */
.offerInclude .leftCol  { z-index: 1; }
.offerInclude .rightCol { z-index: 2; }


/* ==========================================================
   Section 22: Галерея фото на страницах размещения
   (коттеджи / апартаменты) — встроенная masonry-сетка
   ========================================================== */
.accommodation-gallery {
  margin: 2.5em 0 2em;
}
.accommodation-gallery > h2 {
  margin-bottom: 1.2em;
}
/* В узком контентном блоке 3 колонки (вместо 4 на gallery-page) */
.accommodation-gallery .gallery-grid {
  columns: 3;
  padding: 0;
}
/* ==========================================================
   Section 23: accommodation-media — imgWrap по реальному
   размеру фото (без кропа boxItemRescale2)
   ========================================================== */

/* Переключаем с «absolute imgWrap + padding-left:50%» на flex */
.accommodation-media.info-block.img-left,
.accommodation-media.info-block.img-right {
  display: flex;
  align-items: flex-start;
  padding: 40px 0 !important;
  min-height: 0 !important;
}
.accommodation-media.info-block.img-right {
  flex-direction: row-reverse;
}
.accommodation-media.info-block.img-right .contentBox {
  padding: 0 40px 0 0 !important;
}

/* imgWrap — из position:absolute в обычный flex-элемент */
.accommodation-media .imgWrap {
  position: relative !important;
  flex: 0 0 50%;
  width: 50% !important;
  min-height: 0 !important;
  max-height: none !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
}

/* Img — отменяем JS-инлайн-стили и показываем в натуральных пропорциях */
.accommodation-media .imgWrap img,
.accommodation-media .imgWrap.boxResc img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  opacity: 1 !important;
  left: auto !important;
  top: auto !important;
}

/* Текстовый блок */
.accommodation-media .contentBox {
  flex: 1;
  min-width: 0;
  padding: 0 0 0 40px !important;
}

/* ≤800px: уже стакается bnfull.css, только уточняем отступы */
@media only screen and (max-width: 800px) {
  .accommodation-media.info-block.img-left,
  .accommodation-media.info-block.img-right {
    display: block;
    flex-direction: unset;
    padding: 0 !important;
  }
  .accommodation-media .imgWrap {
    flex: none;
    width: 100% !important;
  }
  .accommodation-media .contentBox {
    padding: 20px 0 0 !important;
  }
  .accommodation-media.info-block.img-right .contentBox {
    padding: 20px 0 0 !important;
  }
}

/* ── Hover-подсказка на главном фото ──────────────────────── */
.accommodation-media .imgWrap {
  cursor: pointer;
}
.accommodation-media .imgWrap::after {
  content: '↓ Смотреть фото';
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05em;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: transparent;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease, color 0.25s ease;
}
.accommodation-media .imgWrap:hover::after {
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
}

/* Ссылка «все фото» */
.accommodation-gallery-more {
  margin-top: 1.2em;
  text-align: center;
  font-size: 0.95em;
}
/* Адаптив */
@media only screen and (max-width: 900px) {
  .accommodation-gallery .gallery-grid { columns: 2; }
}
@media only screen and (max-width: 480px) {
  .accommodation-gallery .gallery-grid { columns: 1; }
}

/* ==========================================================
   Section 24: Reviews page (/otzyvy) — карточки отзывов
   Цельный редизайн страницы отзывов: центрированная шапка
   (заголовок, лид, статистика, фильтр) и список отзывов
   в виде аккуратных белых карточек.
   Заменяет визуально Section 16 и Section 17 (таймлайн).
   ========================================================== */

/* ── Единая колонка контента ─────────────────────────────── */
.reviews .item-page {
  /*max-width: 720px;*/
  margin-left: auto;
  margin-right: auto;
}
.reviews .item-page p {
  text-align: left;
  margin-top: 1rem;
}
.reviews .item-page p.rv-lead {
  text-align: center;
  font-size: 1.55rem;
  line-height: 1.6;
  color: #5f5854;
  margin: 0 auto;
}

/* ── Статистика ──────────────────────────────────────────── */
.reviews .rv-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .4em .8em;
  font-size: 1.4rem;
  color: #6b6260;
  margin: 1.5em 0 1.2em !important;
  padding: .7em 0;
  border-top: 1px solid rgba(76,68,67,.12);
  border-bottom: 1px solid rgba(76,68,67,.12);
}
.reviews .rv-stats__divider    { color: rgba(76,68,67,.3); }
.reviews .rv-stats__rating     { color: #c0882a; font-weight: 700; }
.reviews .rv-stats__cottages   { color: #007758; }
.reviews .rv-stats__apartments { color: #2475a8; }

/* ── Фильтр-таблетки ─────────────────────────────────────── */
.rv-filter-wrap {
  margin: 1.3em 0 0;
  overflow: visible;
}
.rv-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rv-filter li {
  float: none;
  display: block;
  margin: 0;
  padding: 0;
}
.rv-filter a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid rgba(76,68,67,.22);
  border-radius: 22px;
  padding: 8px 17px;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #4c4443;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.rv-filter a::after,
.rv-filter a::before { content: none !important; }
.rv-filter a:hover {
  border-color: #4c4443;
  background: #faf8f7;
  box-shadow: none;
}
.rv-count {
  font-size: .9em;
  font-weight: 700;
  opacity: .55;
}
.rv-filter .rv-filter__btn--active {
  background: #4c4443 !important;
  border-color: #4c4443;
  color: #fff !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}
.rv-filter .rv-filter__btn--cottages.rv-filter__btn--active {
  background: #007758 !important;
  border-color: #007758;
}
.rv-filter .rv-filter__btn--apartments.rv-filter__btn--active {
  background: #2475a8 !important;
  border-color: #2475a8;
}
.rv-filter .rv-filter__btn--active .rv-count { opacity: .75; }
.rv-filter .rv-filter__write {
  background: #007758;
  border-color: #007758;
  color: #fff;
  font-weight: 600;
}
.rv-filter .rv-filter__write:hover {
  background: #036e52;
  border-color: #036e52;
  color: #fff;
}

/* ── Контейнер списка ────────────────────────────────────── */
.full-width.reviewsList {
  padding: 1.6rem 1rem 5rem !important;
}
.full-width.reviewsList > * { max-width: none; }
.full-width.reviewsList .reviewsListWrap {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.reviewsListWrap:before { display: none !important; }

/* ── Карточка отзыва ─────────────────────────────────────── */
.reviewsListWrap blockquote {
  position: relative;
  margin: 0 0 18px;
  transition: opacity .2s ease;
}
.reviewsListWrap blockquote:last-of-type { margin-bottom: 0; }
.reviewsListWrap .reviewBox {
  position: static;
  top: auto;
  left: auto;
  padding: 24px 28px 22px !important;
  background: #fff;
  border: 1px solid rgba(76,68,67,.12);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(76,68,67,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.reviewsListWrap blockquote:hover .reviewBox {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(76,68,67,.1);
}

/* шапка карточки: бейдж категории + дата */
.rv-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.rv-card__date {
  font-size: 1.3rem;
  color: #9e9791;
  letter-spacing: .02em;
  white-space: nowrap;
}
.reviewsListWrap .rcb {
  display: inline-block !important;
  font-size: 1.05rem !important;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 4px 12px !important;
  border-radius: 20px !important;
  line-height: 1.5;
  margin: 0 !important;
}
.reviewsListWrap .rcb--cottages   { background: #007758; color: #fff; }
.reviewsListWrap .rcb--apartments { background: #2475a8; color: #fff; }
.reviewsListWrap .rcb--general    { background: #e4e0de; color: #5f5854; }

/* текст отзыва */
.reviewsListWrap .content {
  max-width: none !important;
}
.reviewsListWrap .content,
.reviewsListWrap .content p {
  font-size: 1.55rem !important;
  line-height: 1.65 !important;
  text-align: left !important;
  font-style: normal !important;
  color: #3f3a38;
  margin: 0;
}

/* подвал карточки: звёзды + автор */
.rv-card__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid rgba(76,68,67,.09);
}
.reviewsListWrap .review-rating {
  color: #c0882a;
  font-size: 1.65rem !important;
  letter-spacing: 2px;
  line-height: 1;
  white-space: nowrap;
}
.reviewsListWrap .author {
  display: inline;
  font-weight: 600;
  font-size: 1.4rem !important;
  color: #6a6260;
  padding: 0 !important;
  margin: 0;
  white-space: nowrap;
}

/* «нет результатов» */
.rv-no-results {
  text-align: center;
  font-style: italic;
  color: #9e9791;
  font-size: 1.5rem;
  padding: 30px 20px;
}
.rv-no-results p { margin: 0; }

/* CTA-кнопки под отзывами */
.reviews .accommodation-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Адаптив ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .full-width.reviewsList {
    padding: 1.2rem 1rem 4rem !important;
  }
}
@media (max-width: 640px) {
  .reviews .item-page p.rv-lead { font-size: 1.45rem; }
  .reviews .rv-stats {
    font-size: 1.25rem;
    gap: .5em .55em;
  }
  .reviews .rv-stats__divider { display: none; }
  .rv-filter {
    flex-wrap: wrap !important;
    white-space: normal;
    min-width: 0;
  }
  .rv-filter a {
    font-size: 1.25rem;
    padding: 7px 14px;
  }
  .reviewsListWrap .reviewBox {
    padding: 18px 18px 16px !important;
    border-radius: 12px;
  }
  .rv-card__head { margin-bottom: 11px; }
  .reviewsListWrap .content,
  .reviewsListWrap .content p {
    font-size: 1.45rem !important;
    line-height: 1.6 !important;
  }
  .reviewsListWrap .review-rating { font-size: 1.5rem !important; }
  .reviewsListWrap .author { font-size: 1.3rem !important; }
  .reviewsListWrap .rcb {
    font-size: 1rem !important;
    padding: 3px 10px !important;
  }
  .rv-card__date { font-size: 1.2rem; }
}
