.static-form-response,
.wpcf7 form .static-form-response {
  display: block !important;
  visibility: visible !important;
  margin: 14px 0 0;
  padding: 12px 16px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-size: 14px;
  line-height: 1.45;
}

#mobile-dropdown.is-open {
  display: block;
}

.static-mobile-menu-open {
  overflow-x: hidden;
}

.wms_main_page .wms_top_block .wms_hero_eyebrow {
  margin: 0 0 12px;
  color: #9a7a39;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wms_main_page .wms_top_block .wms_hero_slogan {
  max-width: 860px;
  margin: 0 0 18px;
  color: #111;
  font-size: clamp(44px, 6.4vw, 96px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0;
}

.wms_main_page .wms_top_block .wms_hero_slogan span {
  display: block;
  color: #f0cb7e;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.55);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
}

.wms_main_page .wms_top_block .wms_hero_subtitle {
  max-width: 660px;
  margin: 0;
  color: rgba(17, 17, 17, 0.78);
  font-size: 20px;
  line-height: 1.45;
}

.wms_base_area_badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 24px auto 0;
}

.wms_base_area_badges span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 14px;
  line-height: 1.2;
}

.wms_live_gallery_block {
  padding-top: 54px;
  padding-bottom: 50px;
}

.wms_yandex_panorama_block {
  padding-top: 54px;
  padding-bottom: 42px;
}

.wms_yandex_panorama_frame {
  overflow: hidden;
  margin-top: 24px;
  border-radius: 8px;
  background: #eee;
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.12);
}

.wms_yandex_panorama_frame iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 0;
}

.wms_yandex_panorama_link {
  margin: 14px 0 0;
  text-align: right;
}

.wms_yandex_panorama_link a {
  font-weight: 700;
}

.wms_reports_block_compact {
  padding-top: 16px;
  padding-bottom: 34px;
}

.wms_reports_block_compact h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

.wms_season_buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 22px;
}

.wms_season_buttons .wms_button_1 {
  margin: 0;
}

@media (max-width: 560px) {
  .wms_season_buttons .wms_button_1 {
    width: 100%;
    max-width: 320px;
  }
}

/* Mobile experience layer -------------------------------------------------- */
:root {
  --wms-ink: #171914;
  --wms-muted: #62675d;
  --wms-surface: #f5f5f0;
  --wms-card: #ffffff;
  --wms-accent: #ad261e;
  --wms-gold: #e5c270;
  --wms-radius: 16px;
  --wms-shadow: 0 14px 40px rgba(22, 25, 20, 0.1);
}

html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  color: var(--wms-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img,
video,
iframe {
  max-width: 100%;
}

iframe.wms-deferred-frame {
  min-height: 360px;
  background: #e8e9e4;
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(173, 38, 30, 0.42);
  outline-offset: 3px;
}

.static-form-response.is-success {
  border-color: #2f7d47;
  background: #eef8f1;
  color: #185d30;
}

.static-form-response.is-error {
  border-color: #b2342b;
  background: #fff1f0;
  color: #84231d;
}

.wms-submit-busy {
  cursor: wait;
  opacity: 0.7;
}

.wms-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.wms-form-consent {
  margin: 10px 0 0;
  color: var(--wms-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.wms-form-consent a {
  color: inherit;
  text-decoration: underline;
}

.wms-field-label {
  display: block;
  margin: 0 0 7px;
  color: var(--wms-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.wms-field-error {
  display: none;
  margin: 7px 2px 0;
  color: #9d241e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}

.wms-field-error.is-visible {
  display: block;
}

input.wms-field-invalid,
select.wms-field-invalid,
textarea.wms-field-invalid,
#wms_request_popup input.wms-field-invalid,
#wms_request_popup select.wms-field-invalid,
#wms_request_popup textarea.wms-field-invalid {
  border-color: #b2342b !important;
  background-color: #fff7f6 !important;
}

input.wms-field-invalid:focus,
select.wms-field-invalid:focus,
textarea.wms-field-invalid:focus {
  box-shadow: 0 0 0 3px rgba(178, 52, 43, 0.14);
}

@media (min-width: 769px) {
form[data-wms-form-type="booking"] #wms_request_popup .wms_form_content {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 6%;
}

form[data-wms-form-type="booking"] #wms_request_popup .wms_form_content::after {
  display: none;
}

form[data-wms-form-type="booking"] #wms_request_popup .wms_form_content > *,
form[data-wms-form-type="booking"] #wms_request_popup .wms_form_content > div {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

form[data-wms-form-type="booking"] #wms_request_popup .wms_form_fio,
form[data-wms-form-type="booking"] #wms_request_popup .wms_form_message,
form[data-wms-form-type="booking"] #wms_request_popup .wms_datepicker_title,
form[data-wms-form-type="booking"] #wms_request_popup .wms_form_datepicker {
  grid-column: 1 / -1;
}

form[data-wms-form-type="booking"] #wms_request_popup .wms_form_datepicker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6%;
}

form[data-wms-form-type="booking"] #wms_request_popup .wms_form_datepicker > span {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}
}

.slick-prev::before,
.slick-next::before {
  font-family: Arial, sans-serif;
  font-size: 26px;
  font-weight: 400;
}

.slick-prev::before {
  content: "‹";
}

.slick-next::before {
  content: "›";
}

.slick-dots li button::before {
  content: "•";
  font-family: Arial, sans-serif;
}

.wms-policy-page {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 80px;
}

.wms-policy-page__back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-bottom: 36px;
  color: var(--wms-muted);
  font-weight: 700;
}

.wms-policy-page h1 {
  margin-bottom: 16px;
  font-size: clamp(34px, 7vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.wms-policy-page h2 {
  margin: 38px 0 12px;
  font-size: 24px;
}

.wms-policy-page p,
.wms-policy-page li {
  font-size: 17px;
  line-height: 1.65;
}

.wms-policy-page__note {
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--wms-surface);
}

.wms-mobile-actions {
  display: none;
}

@media (max-width: 768px) {
  body {
    min-width: 320px;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
    font-size: 16px;
    line-height: 1.58;
    background: #fff;
  }

  body.static-mobile-menu-open {
    overflow: hidden;
  }

  .boxed-layout #wrap,
  .boxed-layout .parallax-footer,
  .boxed-layout .owp-floating-bar,
  #outer-wrap,
  #wrap,
  .container {
    width: 100% !important;
    max-width: 100% !important;
  }

  #outer-wrap,
  #wrap {
    overflow-x: clip;
  }

  #main .vc_col-sm-12 .vc_row:not(.wms_top_block),
  .single-post #main #content-wrap,
  .page-id-1209 #main #content-wrap,
  .post-type-archive-otchety #main #content-wrap {
    padding-right: 20px;
    padding-left: 20px;
  }

  #content p,
  #wrap #content li {
    line-height: 1.58;
  }

  #outer-wrap h1,
  #outer-wrap h2,
  #outer-wrap h3 {
    text-wrap: balance;
  }

  #outer-wrap h2,
  #wms_request_popup .wms_form_heading h2 {
    margin-bottom: 22px;
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.12;
    letter-spacing: -0.025em;
  }

  #outer-wrap h3 {
    font-size: 22px;
    line-height: 1.25;
  }

  /* Header and navigation */
  #wrap #site-header {
    position: relative;
    z-index: 50;
    height: 94px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  }

  #wrap #site-header #site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 93px;
    margin: 0;
    padding: 12px 18px !important;
  }

  #wrap #site-header #site-header-inner #site-logo {
    flex: 0 0 auto;
    width: auto;
    padding: 0;
  }

  #wrap #site-header #site-logo-inner a img {
    width: auto;
    height: 58px;
  }

  #wrap #site-header .wms_weather_data {
    width: auto;
    margin-left: auto;
  }

  #wrap #site-header .wms_weather_data ul {
    display: flex;
    float: none;
    width: auto;
    height: auto;
    margin: 0 8px 0 0;
  }

  #wrap #site-header .wms_weather_data ul li {
    width: auto;
    min-width: 48px;
    font-size: 18px;
    line-height: 32px;
  }

  #wrap .oceanwp-mobile-menu-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    margin: 0;
  }

  #wrap .oceanwp-mobile-menu-icon .mobile-menu {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 14px;
    background: rgba(10, 12, 9, 0.2);
    backdrop-filter: blur(8px);
  }

  #wrap .oceanwp-mobile-menu-icon .fa {
    font-size: 25px;
  }

  #mobile-dropdown,
  #mobile-dropdown.is-open {
    position: fixed;
    z-index: 9998;
    top: 84px;
    right: 14px;
    left: 14px;
    max-height: calc(100dvh - 106px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid rgba(20, 22, 18, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
  }

  #mobile-dropdown:not(.is-open) {
    display: none;
  }

  #mobile-dropdown ul {
    margin: 0;
  }

  #mobile-dropdown ul li {
    border: 0;
  }

  #mobile-dropdown ul li a {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--wms-ink);
    font-size: 17px;
    font-weight: 650;
  }

  #mobile-dropdown ul li.current-menu-item a {
    background: var(--wms-surface);
    color: var(--wms-accent);
  }

  /* Hero */
  #content .wms_top_block {
    position: relative;
    min-height: 590px;
    margin-top: -94px;
    background-position: 58% center;
    background-size: cover;
    isolation: isolate;
  }

  #content .wms_top_block::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(7, 9, 7, 0.2) 0%, rgba(7, 9, 7, 0.5) 52%, rgba(7, 9, 7, 0.8) 100%);
  }

  #content .wms_top_block > .wpb_column,
  body:not(.home) #content .wms_top_block > .wpb_column {
    display: flex;
    min-height: 590px;
    align-items: flex-end;
    margin: 0;
    padding: 142px 20px 42px;
  }

  #content .wms_top_block > .wpb_column + .wpb_column,
  body:not(.home) #content .wms_top_block > .wpb_column + .wpb_column {
    display: none;
  }

  #content .wms_top_block .vc_col-sm-8 {
    width: 100%;
    border: 0;
  }

  .wms_main_page .wms_top_block .wms_hero_eyebrow {
    margin-bottom: 10px;
    color: var(--wms-gold);
    font-size: 13px;
    letter-spacing: 0.12em;
  }

  .wms_main_page .wms_top_block .wms_hero_slogan,
  #content .wms_top_block h1,
  body:not(.home) #content .wms_top_block h1 {
    min-height: 0;
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 11.2vw, 50px);
    line-height: 0.98;
    text-align: left;
    letter-spacing: -0.035em;
  }

  .wms_main_page .wms_top_block .wms_hero_slogan span {
    margin-top: 6px;
    color: var(--wms-gold);
    font-size: 0.84em;
    line-height: 1.04;
  }

  .wms_main_page .wms_top_block .wms_hero_subtitle,
  #content .wms_top_block p {
    max-width: 520px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 17px;
    line-height: 1.45;
    text-align: left;
  }

  #content .wms_top_block .wms_top_block_list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
  }

  #content .wms_top_block .wms_top_block_list li {
    margin: 0;
  }

  #content .wms_top_block .wms_top_block_list li a {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 12px;
    background: rgba(8, 10, 8, 0.18);
    backdrop-filter: blur(7px);
  }

  #content .wms_top_block .wms_top_block_list li a span {
    width: auto;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
  }

  #content .wms_top_block .wms_top_block_list li a span::after {
    display: none;
  }

  /* Forms and calls to action */
  #content .wms_request_block,
  #wrap .wms_form_main {
    margin: 0;
    padding-top: 34px;
    padding-bottom: 34px;
    background: var(--wms-surface);
  }

  #content .wms_request_block form.wpcf7-form,
  #wrap .wms_form_main form.wpcf7-form {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0;
  }

  #content .wms_request_block .wms_form_heading,
  #wrap .wms_form_main .wms_form_heading {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.45;
  }

  #content .wms_request_block .wms_form_content,
  #wrap .wms_form_main .wms_form_content,
  .single-post #wrap .wms_form_main .wms_form_content,
  .page-id-1209 #wrap .wms_form_main .wms_form_content,
  .post-type-archive-otchety #wrap .wms_form_main .wms_form_content {
    display: grid;
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
  }

  #content .wms_request_block .wms_form_content div[class*="wms_form"],
  #wrap .wms_form_main .wms_form_content div[class*="wms_form"],
  .single-post #wrap .wms_form_main .wms_form_content div[class*="wms_form"],
  .page-id-1209 #wrap .wms_form_main .wms_form_content div[class*="wms_form"],
  .post-type-archive-otchety #wrap .wms_form_main .wms_form_content div[class*="wms_form"] {
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
  }

  #content .wms_request_block input,
  #content .wms_request_block select,
  #content .wms_request_block textarea,
  #wrap .wms_form_main input,
  #wrap .wms_form_main select,
  #wrap .wms_form_main textarea,
  .wms_popup_form form input,
  .wms_popup_form form select,
  .wms_popup_form form textarea {
    width: 100%;
    max-width: none;
    min-height: 52px;
    padding: 13px 15px;
    border: 1.5px solid #b8bbb3;
    border-radius: 12px;
    background: #fff;
    color: var(--wms-ink);
    font-size: 16px;
  }

  #content .wms_request_block textarea,
  #wrap .wms_form_main textarea,
  .wms_popup_form form textarea {
    min-height: 120px;
    resize: vertical;
  }

  #content .wms_request_block input[type="submit"],
  #wrap .wms_form_main input[type="submit"],
  .wms_popup_form input[type="submit"],
  #content a.wms_button_1,
  #outer-wrap #wrap .wms_link_all,
  #wrap .wms_accommodation_page .wms_more_btn,
  #wms_cottage .wms_reserve_btn {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid var(--wms-ink);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
  }

  #content .wms_request_block input[type="submit"],
  #wrap .wms_form_main input[type="submit"],
  .wms_popup_form input[type="submit"] {
    border-color: var(--wms-ink);
    background: var(--wms-ink);
    color: #fff;
  }

  /* Content rhythm and cards */
  #wrap #content .wms_about_base_block,
  #wrap #content .wms_base_area_block,
  #content .wms_tabs_block,
  #content .wms_content_area,
  #wrap .wms_prices_page .wms_particular_payments,
  #wrap .wms_prices_page .wms_rental,
  #wrap .wms_prices_page .wms_about_payments,
  #wrap .wms_prices_page .wms_discounts_block {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  #outer-wrap #wrap #content .wms_base_area_block h2 {
    margin: 0 0 28px;
  }

  .wms_slider_about,
  #content .wms_slider_t2,
  #content .wms_slider_t3a .slick-slide,
  .wms_live_gallery_grid figure {
    border-radius: var(--wms-radius);
  }

  #content .wms_popular_tours_block {
    margin: 0;
    padding: 54px 20px 64px;
    background-position: center;
  }

  /* /ceny/ on mobile: shorter photo, only the "Рыбалка" card (the full
     price table with all tour types is already right there on the page). */
  #content .wms_prices_page .wms_popular_tours_block {
    padding: 30px 20px 34px;
    background-position: center 30%;
  }

  #content .wms_prices_page .wms_popular_tours_block .vc_col-sm-4:nth-child(2),
  #content .wms_prices_page .wms_popular_tours_block .vc_col-sm-4:nth-child(3) {
    display: none;
  }

  #content .wms_popular_tours_heading {
    margin: 0 0 24px;
  }

  #content .wms_popular_tours_block .vc_col-sm-4 {
    margin-bottom: 14px;
  }

  #content .wms_popular_tours_block .wms_price_table_wrapper {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    padding: 26px 24px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: var(--wms-radius);
    background: rgba(10, 16, 13, 0.56);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
  }

  #content .wms_popular_tours_block .wms_price_table_wrapper h3 span {
    font-size: 30px;
  }

  #content .wms_popular_tours_block .wms_price_table_wrapper ul.wms_price_list li {
    font-size: 15px;
    line-height: 1.48;
  }

  #content .wms_popular_tours_block .wms_price_table_wrapper p.wms_price_amount {
    font-size: 27px;
  }

  #content .wms_contacts_block {
    margin: 0;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  #content .wms_contacts_block h2 {
    margin-bottom: 16px;
  }

  #content .wms_contacts_block ul {
    margin-top: 24px;
  }

  #content .wms_contacts_block ul li,
  #content .wms_contacts_block ul li a {
    min-height: 42px;
    font-size: 17px;
    line-height: 1.35;
  }

  #content .wms_contacts_block > .vc_col-sm-6:last-of-type {
    margin-top: 28px;
  }

  #content .wms_contacts_block iframe,
  #content .wms_map_block iframe {
    display: block;
    width: 100%;
    min-height: 340px;
    border-radius: var(--wms-radius);
    box-shadow: var(--wms-shadow);
  }

  #content .wms_big_request_block {
    min-height: 260px;
    margin: 0;
    padding: 56px 20px;
    background-position: center;
  }

  /* Accommodation */
  #wrap .wms_accommodation_page .wms_cottages_grid {
    margin-bottom: 50px;
  }

  #wrap #content-wrap #content .wms_cottages_grid .wms_cottage {
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid rgba(22, 25, 20, 0.08);
    border-radius: var(--wms-radius);
    background: var(--wms-card);
    box-shadow: var(--wms-shadow);
  }

  #wrap #content-wrap #content .wms_cottages_grid .wms_cottage .wms_cottage_side_1,
  #wrap #content-wrap #content .wms_cottages_grid .wms_cottage .wms_cottage_images {
    width: 100%;
    max-width: none;
  }

  #wrap #content-wrap #content .wms_cottages_grid .wms_cottage .wms_cottage_title {
    margin: 22px 0 14px;
    text-align: left;
  }

  #wrap #content-wrap #content .wms_cottages_grid .wms_cottage .wms_cottage_excerpt {
    padding-right: 0;
  }

  #wrap #content-wrap #content .wms_cottages_grid .wms_cottage .wms_features_wrapper {
    margin-top: 28px;
  }

  #wrap #content-wrap #content .wms_cottages_grid .wms_cottage .wms_cottage_footer .wms_order {
    width: 100%;
    max-width: none;
    margin-top: 24px;
  }

  .wms_cottages_grid .wms_cottage .wms_tags_list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .wms_cottages_grid .wms_cottage .wms_tags_list li,
  #wms_cottage .wms_cottage .wms_tags_list li {
    min-height: 34px;
    margin: 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--wms-surface);
    font-size: 12px;
  }

  /* Mobile price cards generated from the existing table */
  #wrap .wms_prices_page div[id*="tab"].tab_content {
    overflow: visible;
    border-radius: 0;
  }

  #wrap .wms_prices_page table[id*="tours_table"] {
    display: block;
    width: 100%;
    border: 0;
  }

  #wrap .wms_prices_page table[id*="tours_table"] thead {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
  }

  #wrap .wms_prices_page table[id*="tours_table"] tbody,
  #wrap .wms_prices_page table[id*="tours_table"] tr,
  #wrap .wms_prices_page table[id*="tours_table"] td {
    display: block;
    width: 100%;
  }

  #wrap .wms_prices_page table[id*="tours_table"] tr.wms_hide {
    display: none !important;
  }

  #wrap .wms_prices_page table[id*="tours_table"] tr {
    margin-bottom: 14px;
    padding: 8px 16px;
    border: 1px solid rgba(22, 25, 20, 0.1);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(22, 25, 20, 0.07);
  }

  /* the old theme has a same-media-less `tbody td` rule with higher
     specificity (text-align:center, black borders, 15px/10px padding) that
     otherwise wins over the block above - match its specificity here so
     this override actually takes effect. */
  #wrap .wms_prices_page table[id*="tours_table"] tbody td {
    display: grid;
    grid-template-columns: minmax(100px, 38%) 1fr;
    gap: 12px;
    align-items: start;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid #ecece7;
    color: var(--wms-ink);
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
  }

  #wrap .wms_prices_page table[id*="tours_table"] tbody td:last-child {
    border-bottom: 0;
  }

  #wrap .wms_prices_page table[id*="tours_table"] tbody td::before {
    content: attr(data-label);
    color: var(--wms-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    text-transform: uppercase;
  }

  #wrap .wms_prices_page table[id*="tours_table"] tbody td.wms_tour_name {
    font-weight: 750;
  }

  #wrap .wms_prices_page .wms_top_nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 0 0 22px;
  }

  #wrap .wms_prices_page .wms_top_nav li {
    display: flex;
    min-width: 0;
    height: auto;
    min-height: 66px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 8px 4px;
    border: 1px solid #dedfd9;
    border-radius: 12px;
    background: #fff;
  }

  #wrap .wms_prices_page .wms_top_nav li span {
    margin: 0;
    font-size: 11px;
  }

  #wrap .wms_prices_page .wms_top_nav .wms_season_icon {
    width: 34px;
    height: 34px;
  }

  /* Articles and breadcrumbs */
  .site-breadcrumbs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .site-breadcrumbs::-webkit-scrollbar {
    display: none;
  }

  .site-breadcrumbs .trail-items {
    display: flex;
    width: max-content;
    max-width: none;
    margin: 0;
    white-space: nowrap;
  }

  .single-post #main .single-post-title,
  .page-id-1209 #main .single-post-title {
    font-size: 26px;
    line-height: 1.18;
  }

  .single-post #outer-wrap .entry-content img,
  .single-events #outer-wrap .entry-content img {
    height: auto;
    border-radius: 12px;
  }

  .single-post #right-sidebar,
  .single-events #right-sidebar {
    margin-top: 40px;
  }

  /* Footer */
  #footer #footer-widgets {
    padding: 44px 20px 22px;
  }

  #footer-widgets .footer-box.col-1 {
    margin-bottom: 30px;
  }

  #footer-widgets .footer-box:not(.col-1) .footer-widget {
    max-width: 260px;
  }

  #footer #footer-widgets .widget-title {
    margin: 0 0 10px;
    font-size: 14px;
    text-align: left;
  }

  #footer #footer-widgets ul.menu li {
    margin-bottom: 4px;
  }

  #footer #footer-widgets ul.menu li a {
    display: flex;
    min-height: 38px;
    align-items: center;
    font-size: 15px;
  }

  #footer #footer-widgets .wms_adress_list li,
  #footer #footer-widgets .wms_adress_list li a {
    font-size: 14px;
  }

  #footer-bottom.no-footer-nav #copyright {
    padding: 12px 20px 22px;
  }

  /* Persistent mobile actions */
  .wms-mobile-actions {
    position: fixed;
    z-index: 9999;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    grid-template-columns: 54px 54px 1fr;
    gap: 7px;
    padding: 7px;
    border: 1px solid rgba(22, 25, 20, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
  }

  .wms-mobile-actions a {
    display: flex;
    min-width: 0;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: var(--wms-ink);
    font-size: 20px;
    font-weight: 750;
    text-decoration: none;
  }

  .wms-mobile-actions__icon {
    border: 1px solid #dedfd9;
    background: #fff;
  }

  .wms-mobile-actions__primary {
    padding: 0 15px;
    background: var(--wms-ink);
    color: #fff !important;
    font-size: 15px !important;
  }
}

/* Use real image elements for cottage features. This avoids browser-specific
   pseudo-element rendering failures while retaining the CSS icon as fallback. */
#wrap #content .wms_tags_list li.wms_has_tag_icon::before {
  display: none !important;
}

#wrap #content .wms_tags_list .wms_tag_icon {
  display: block !important;
  width: 27px !important;
  height: 27px !important;
  flex: 0 0 27px;
  margin: 0 9px 0 0 !important;
  object-fit: contain;
  opacity: 1 !important;
  visibility: visible !important;
}

@media (max-width: 768px) {
  #wrap #content .wms_tags_list .wms_tag_icon {
    width: 25px !important;
    height: 25px !important;
    flex-basis: 25px;
    margin-right: 8px !important;
  }
}

@media (max-width: 374px) {
  #main .vc_col-sm-12 .vc_row:not(.wms_top_block) {
    padding-right: 16px;
    padding-left: 16px;
  }

  #content .wms_top_block > .wpb_column,
  body:not(.home) #content .wms_top_block > .wpb_column {
    padding-right: 16px;
    padding-left: 16px;
  }

  .wms_main_page .wms_top_block .wms_hero_slogan,
  #content .wms_top_block h1,
  body:not(.home) #content .wms_top_block h1 {
    font-size: 34px;
  }

  #wrap #site-header .wms_weather_data ul li {
    min-width: 42px;
    font-size: 16px;
  }
}

/* Quiet fishing easter egg: decorative only, never captures input. */
.wms-fishing-layer {
  position: fixed;
  z-index: 2147482000;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
  contain: strict;
}

.wms-fishing-layer.is-visible {
  opacity: 1;
}

.wms-fishing-layer.is-muted {
  opacity: 0;
}

@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .wms-fishing-layer {
    display: none !important;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Gallery polish v3: quiet controls, gesture-first mobile navigation. */
#wrap #content .wms_slider .wms_slider_controls .wms_gallery_arrow,
#wrap #content .wms_slider_about .wms_slider_controls .wms_gallery_arrow {
  width: 54px !important;
  height: 72px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none;
  color: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

#wrap #content .wms_slider .wms_slider_controls .wms_gallery_arrow svg,
#wrap #content .wms_slider_about .wms_slider_controls .wms_gallery_arrow svg {
  width: 28px !important;
  height: 28px !important;
  stroke-width: 2;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.92));
}

#wrap #content .wms_slider .wms_slider_controls .wms_prev,
#wrap #content .wms_slider_about .wms_slider_controls .wms_prev {
  left: 4px !important;
}

#wrap #content .wms_slider .wms_slider_controls .wms_next,
#wrap #content .wms_slider_about .wms_slider_controls .wms_next {
  right: 4px !important;
}

#wrap #content .wms_slider .wms_slider_controls .wms_gallery_arrow:hover,
#wrap #content .wms_slider_about .wms_slider_controls .wms_gallery_arrow:hover {
  background: rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-50%) !important;
}

#wrap #content .wms_slider .wms_gallery_status,
#wrap #content .wms_slider_about .wms_gallery_status {
  inset: 0;
  display: block;
}

#wrap #content .wms_slider .wms_gallery_counter,
#wrap #content .wms_slider_about .wms_gallery_counter {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 44px;
  padding: 6px 8px;
  border: 0;
  background: rgba(9, 13, 11, 0.66);
  box-shadow: none;
}

#wrap #content .wms_slider .wms_gallery_progress,
#wrap #content .wms_slider_about .wms_gallery_progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

#wrap #content .wms_slider .slick-list {
  cursor: grab;
}

#wrap #content .wms_slider .slick-list:active {
  cursor: grabbing;
}

/* Force every accommodation tag to its semantic asset. Unknown tags get no
   misleading generic pictogram. */
#wrap #content .wms_cottages_grid .wms_tags_list li::before,
#wms_cottage .wms_cottage .wms_tags_list li::before {
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

#wrap #content .wms_cottages_grid .wms_tags_list li:not([class*="tag_"])::before,
#wms_cottage .wms_cottage .wms_tags_list li:not([class*="tag_"])::before {
  display: none;
}

#wrap #content .wms_tags_list li.tag_1-dvuhmestnyj-nomer::before { background-image: url('/media/images/svg/tags/wms_cottage_tag_dvuhmestnyj-nomer.svg') !important; }
#wrap #content .wms_tags_list li.tag_besplatnyj-wi-fi::before { background-image: url('/media/images/svg/tags/wms_cottage_tag_besplatnyj-wi-fi.svg') !important; }
#wrap #content .wms_tags_list li.tag_1-ja-linija-ot-berega::before,
#wrap #content .wms_tags_list li.tag_2-ja-linija-ot-berega::before { background-image: url('/media/images/svg/tags/wms_cottage_tag_1-ja-linija-ot-berega.svg') !important; }
#wrap #content .wms_tags_list li.tag_1-odnospalnaja-krovat::before { background-image: url('/media/images/svg/tags/wms_cottage_tag_1-odnospalnaja-krovat.svg') !important; }
#wrap #content .wms_tags_list li.tag_2-odnospalnyh-krovati::before { background-image: url('/media/images/svg/tags/wms_cottage_tag_2-odnospalnyh-krovati.svg') !important; }
#wrap #content .wms_tags_list li.tag_3-odnospalnyh-krovati::before { background-image: url('/media/images/svg/tags/wms_cottage_tag_3-odnospalnyh-krovati.svg') !important; }
#wrap #content .wms_tags_list li.tag_4-odnospalnyh-krovati::before { background-image: url('/media/images/svg/tags/wms_cottage_tag_4-odnospalnyh-krovati.svg') !important; }
#wrap #content .wms_tags_list li.tag_besplatnaja-parkovka::before { background-image: url('/media/images/svg/tags/wms_cottage_tag_besplatnaja-parkovka.svg') !important; }
#wrap #content .wms_tags_list li.tag_chetyrehmestnyj-nomer::before { background-image: url('/media/images/svg/tags/wms_cottage_tag_chetyrehmestnyj-nomer.svg') !important; }
#wrap #content .wms_tags_list li.tag_divan::before { background-image: url('/media/images/svg/tags/wms_cottage_tag_divan.svg') !important; }
#wrap #content .wms_tags_list li.tag_dop-spalnoe-mesto::before { background-image: url('/media/images/svg/tags/wms_cottage_tag_dop-spalnoe-mesto.svg') !important; }
#wrap #content .wms_tags_list li.tag_dvuhkomnatnyj-nomer::before { background-image: url('/media/images/svg/tags/wms_cottage_tag_dvuhkomnatnyj-nomer.svg') !important; }
#wrap #content .wms_tags_list li.tag_dvuspalnyj-divan::before { background-image: url('/media/images/svg/tags/wms_cottage_tag_dvuspalnyj-divan.svg') !important; }
#wrap #content .wms_tags_list li.tag_ezhednevnaja-uborka-nomerov::before { background-image: url('/media/images/svg/tags/wms_cottage_tag_ezhednevnaja-uborka-nomerov.svg') !important; }
#wrap #content .wms_tags_list li.tag_kondicioner::before { background-image: url('/media/images/svg/tags/wms_cottage_tag_kondicioner.svg') !important; }
#wrap #content .wms_tags_list li.tag_morozilnaja-kamera::before { background-image: url('/media/images/svg/tags/wms_cottage_tag_morozilnaja-kamera.svg') !important; }
#wrap #content .wms_tags_list li.tag_pjatimestnyj-nomer::before { background-image: url('/media/images/svg/tags/wms_cottage_tag_pjatimestnyj-nomer.svg') !important; }
#wrap #content .wms_tags_list li.tag_trehkomnatnyj-nomer::before { background-image: url('/media/images/svg/tags/wms_cottage_tag_trehkomnatnyj-nomer.svg') !important; }
#wrap #content .wms_tags_list li.tag_trehmestnyj-nomer::before { background-image: url('/media/images/svg/tags/wms_cottage_tag_trehmestnyj-nomer.svg') !important; }
#wrap #content .wms_tags_list li.tag_tv::before { background-image: url('/media/images/svg/tags/wms_cottage_tag_tv.svg') !important; }

@media (max-width: 768px) {
  /* Touch screens use the photo itself as the control. */
  #wrap #content .wms_slider > .wms_slider_controls,
  #wrap #content .wms_slider_about > .wms_slider_controls {
    display: none !important;
  }

  #wrap #content .wms_slider .wms_gallery_counter,
  #wrap #content .wms_slider_about .wms_gallery_counter {
    top: 8px;
    right: 8px;
    padding: 5px 7px;
    font-size: 11px;
  }

  #wrap #content .wms_cottages_grid .wms_tags_list,
  #wms_cottage .wms_cottage .wms_tags_list {
    row-gap: 8px;
  }

  /* A compact single action replaces the full-width floating tray. */
  .wms-mobile-actions {
    right: 8px;
    bottom: max(7px, env(safe-area-inset-bottom));
    left: auto;
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .wms-mobile-actions__icon {
    display: none !important;
  }

  .wms-mobile-actions a.wms-mobile-actions__primary {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(14, 19, 16, 0.94);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.24);
    font-size: 13px !important;
    font-weight: 650;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

/* Mobile regression fixes ------------------------------------------------- */
.wms-static-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  height: auto !important;
  margin: 0 !important;
}

/* .vc_clearfix (old float clearfix hack) injects ::before/::after with
   display:table, which become real grid cells once the wrapper is a grid
   and push every item over by one slot. Neutralize them here. */
.wms-static-grid::before,
.wms-static-grid::after {
  content: none !important;
  display: none !important;
}

.wms-static-grid > .vc_grid-item:not([hidden]) {
  display: block !important;
  float: none !important;
  width: auto !important;
  padding: 0 !important;
}

.wms-static-grid > .vc_grid-item[hidden] {
  display: none !important;
}

.wms-static-grid .vc_grid-item-mini {
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(23, 25, 20, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--wms-shadow);
}

.wms-static-grid .vc_gitem-zone-a {
  min-height: 210px;
  background-position: center !important;
  background-size: cover !important;
}

.wms-static-grid .vc_gitem-zone-a img,
.wms-static-grid .wpb_single_image img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.wms-static-grid .vc_gitem-zone-c .vc_gitem-col {
  padding: 20px;
}

.wms-static-grid h3,
.wms-static-grid h4 {
  margin: 0 0 12px !important;
  line-height: 1.2;
}

.wms-static-grid .vc_gitem-post-data-source-post_excerpt p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.wms-grid-more {
  display: flex;
  min-width: 220px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin: 32px auto 10px;
  padding: 12px 24px;
  border: 1px solid var(--wms-ink);
  border-radius: 12px;
  background: var(--wms-ink);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 768px) {
  body:not(.home) #content .wms_top_block,
  body:not(.home) #content .wms_top_block > .wpb_column {
    min-height: 410px;
  }

  body:not(.home) #content .wms_top_block > .wpb_column {
    padding-top: 120px;
    padding-bottom: 32px;
  }

  body.single-post #wrap #site-header,
  body.page-id-1209 #wrap #site-header,
  body.post-type-archive-otchety #wrap #site-header {
    height: 320px !important;
    padding: 0 !important;
    background-position: center !important;
    background-size: cover !important;
  }

  body.single-post #wrap #site-header::before,
  body.single-post #wrap #site-header::after,
  body.page-id-1209 #wrap #site-header::before,
  body.page-id-1209 #wrap #site-header::after,
  body.post-type-archive-otchety #wrap #site-header::before,
  body.post-type-archive-otchety #wrap #site-header::after {
    display: none !important;
  }

  body.single-post #wrap #site-header #site-header-inner,
  body.page-id-1209 #wrap #site-header #site-header-inner,
  body.post-type-archive-otchety #wrap #site-header #site-header-inner {
    position: relative;
    display: block;
    min-height: 320px;
    margin: 0 !important;
    padding: 16px 18px 28px !important;
  }

  body.single-post #site-header .wms_header_top,
  body.page-id-1209 #site-header .wms_header_top,
  body.post-type-archive-otchety #site-header .wms_header_top {
    height: 62px;
    margin: 0 !important;
  }

  body.single-post #site-header .wms_header_menu,
  body.page-id-1209 #site-header .wms_header_menu,
  body.post-type-archive-otchety #site-header .wms_header_menu,
  body.single-post #site-header .wms_header_socials,
  body.page-id-1209 #site-header .wms_header_socials,
  body.post-type-archive-otchety #site-header .wms_header_socials {
    display: none !important;
  }

  body.single-post #site-header .wms_weather_data,
  body.page-id-1209 #site-header .wms_weather_data,
  body.post-type-archive-otchety #site-header .wms_weather_data {
    display: none !important;
  }

  body.single-post #site-header .wms_header_bottom,
  body.page-id-1209 #site-header .wms_header_bottom,
  body.post-type-archive-otchety #site-header .wms_header_bottom {
    display: flex;
    height: 214px !important;
    align-items: flex-end;
  }

  body.single-post #wrap #site-header h1,
  body.page-id-1209 #wrap #site-header h1,
  body.post-type-archive-otchety #wrap #site-header h1 {
    margin: 0 !important;
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1;
    letter-spacing: -0.025em;
  }

  body.single-post #site-header .wms-injected-menu-toggle,
  body.page-id-1209 #site-header .wms-injected-menu-toggle,
  body.post-type-archive-otchety #site-header .wms-injected-menu-toggle {
    position: absolute;
    top: 16px;
    right: 18px;
  }

  body.page-id-1209 #main #content-wrap {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  body.page-id-1209 #main .site-content {
    padding-bottom: 0 !important;
  }

  .wms-menu-bars {
    display: grid;
    width: 22px;
    gap: 4px;
  }

  .wms-menu-bars span {
    display: block;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .wms-static-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .wms-static-grid .vc_gitem-zone-a,
  .wms-static-grid .vc_gitem-zone-a img,
  .wms-static-grid .wpb_single_image img {
    min-height: 0;
    height: 205px;
  }

  #wms_request_popup {
    padding: 34px 0 24px;
  }

  #wms_request_popup .wms_form_heading {
    margin-bottom: 24px;
  }

  #wms_request_popup .wms_form_heading h2 {
    margin-bottom: 18px;
    font-size: 28px;
  }

  #wms_request_popup .wms_form_heading h3 {
    margin-bottom: 12px;
    font-size: 19px;
  }

  #wms_request_popup .wms_form_heading .wms_after_header {
    font-size: 15px;
    line-height: 1.5;
  }

  #wms_request_popup .wms_form_content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    width: 100%;
  }

  #wms_request_popup .wms_form_content::after {
    display: none;
  }

  #wms_request_popup .wms_form_content > *,
  #wms_request_popup .wms_form_content > div,
  #wms_request_popup .wms_form_content > .wms_form_datepicker,
  #wms_request_popup .wms_form_content > .wms_form_datepicker > span {
    float: none !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }

  #wms_request_popup .wms_datepicker_title {
    margin-top: 8px !important;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
  }

  #wms_request_popup .wms_form_datepicker {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  #wms_request_popup input,
  #wms_request_popup select,
  #wms_request_popup textarea {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 13px 15px;
    font-size: 16px;
  }

  #wms_request_popup textarea {
    min-height: 120px;
  }

  #wms_request_popup .wms_form_footer {
    display: block;
    width: 100%;
    margin-top: 12px;
  }

  #wms_request_popup .wms_form_footer .wms_form_submit,
  #wms_request_popup > .wms-form-consent {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
  }

  #wms_request_popup > .wms-form-consent {
    padding: 12px 0 0;
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
  }

  #wms_request_popup .wms_form_submit input[type="submit"] {
    min-height: 54px;
    margin-top: 12px;
  }

  .wms-mobile-actions {
    grid-template-columns: 46px 46px minmax(0, 1fr);
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .wms-mobile-actions.is-suppressed {
    pointer-events: none;
    opacity: 0;
    transform: translateY(calc(100% + 28px));
  }

  .wms-mobile-actions a {
    min-height: 46px;
    border-radius: 11px;
  }

  .wms-mobile-actions__icon span {
    display: block;
    width: 23px;
    height: 23px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
  }

  .wms-mobile-actions__phone span {
    background-image: url('/media/images/svg/wms_contacts_icons_cellphone_black.svg');
  }

  .wms-mobile-actions__whatsapp span {
    background-image: url('/media/images/svg/wms_whatsapp_black.svg');
  }
}

.wms_live_gallery_block .wpb_wrapper > p {
  max-width: 760px;
}

.wms_live_gallery_kicker {
  margin: 0 0 8px;
  color: #917135;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wms_live_gallery_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.wms_live_gallery_grid figure {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  margin: 0;
  border-radius: 8px;
  background: #111;
}

.wms_live_gallery_grid img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 240ms ease;
}

.wms_live_gallery_grid figure:hover img {
  transform: scale(1.035);
}

.wms_live_gallery_grid figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #111;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

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

@media (max-width: 560px) {
  .wms_main_page .wms_top_block .wms_hero_slogan {
    font-size: 42px;
  }

  .wms_main_page .wms_top_block .wms_hero_subtitle {
    font-size: 17px;
  }

  .wms_yandex_panorama_frame iframe {
    min-height: 320px;
  }

  .wms_yandex_panorama_link {
    text-align: left;
  }

  .wms_live_gallery_grid {
    grid-template-columns: 1fr;
  }
}

/* Visual refinement ------------------------------------------------------ */
:root {
  --wms-font-sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --wms-radius-control: 8px;
}

#outer-wrap,
#outer-wrap button,
#outer-wrap input,
#outer-wrap select,
#outer-wrap textarea,
#mobile-dropdown,
.wms-mobile-actions,
.wms-back-to-top {
  font-family: var(--wms-font-sans) !important;
}

#outer-wrap h1,
#outer-wrap h2,
#outer-wrap h3,
#outer-wrap h4,
#outer-wrap h5,
#outer-wrap h6 {
  font-family: var(--wms-font-sans) !important;
  font-style: normal;
  letter-spacing: -0.025em;
}

#outer-wrap *,
#outer-wrap *::before,
#outer-wrap *::after,
#mobile-dropdown,
#mobile-dropdown *,
.wms-mobile-actions,
.wms-mobile-actions *,
.wms-back-to-top {
  box-sizing: border-box;
}

#content a.wms_button_1,
#wrap .wms_accommodation_page .wms_cottages_grid .wms_cottage_price .wms_more_btn,
#wms_cottage .wms_reserve_btn,
#outer-wrap #wrap .wms_link_all,
#outer-wrap input[type="submit"] {
  border-width: 1.5px;
  border-radius: var(--wms-radius-control);
  font-family: var(--wms-font-sans) !important;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.wms_main_page .wms_top_block .wms_hero_slogan {
  max-width: 780px;
  font-family: var(--wms-font-sans) !important;
  font-size: clamp(48px, 5.6vw, 82px);
  font-weight: 680;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.wms_main_page .wms_top_block .wms_hero_slogan span {
  margin-top: 10px;
  color: #f0cb7e;
  font-family: var(--wms-font-sans) !important;
  font-size: 0.64em;
  font-style: normal;
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

#content .wms_contacts_block h2 {
  max-width: 100%;
  font-size: clamp(38px, 4.7vw, 64px);
  font-weight: 620;
  line-height: 1;
  overflow-wrap: anywhere;
}

.wms-back-to-top {
  display: none;
}

@media (max-width: 768px) {
  #wrap #site-header #site-header-inner #site-logo {
    margin-right: 58px !important;
  }

  #wrap #site-header .oceanwp-mobile-menu-icon {
    position: fixed !important;
    z-index: 10003;
    top: max(14px, env(safe-area-inset-top));
    right: 16px;
    display: block !important;
    width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #wrap #site-header .oceanwp-mobile-menu-icon .mobile-menu,
  .wms-back-to-top {
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 11px;
    background: rgba(18, 21, 18, 0.38);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  #wrap #site-header .oceanwp-mobile-menu-icon .mobile-menu {
    position: relative;
  }

  #wrap #site-header .oceanwp-mobile-menu-icon .mobile-menu .fa {
    display: none !important;
  }

  #wrap #site-header .oceanwp-mobile-menu-icon .mobile-menu::before,
  #wrap #site-header .oceanwp-mobile-menu-icon .mobile-menu::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
    transform: translate(-50%, -50%);
    transition: box-shadow 160ms ease, transform 160ms ease;
  }

  #wrap #site-header .oceanwp-mobile-menu-icon .mobile-menu::before {
    box-shadow: 0 -7px currentColor, 0 7px currentColor;
  }

  #wrap #site-header .oceanwp-mobile-menu-icon .mobile-menu::after {
    opacity: 0;
  }

  #wrap #site-header .oceanwp-mobile-menu-icon .mobile-menu.opened::before {
    box-shadow: none;
    transform: translate(-50%, -50%) rotate(45deg);
  }

  #wrap #site-header .oceanwp-mobile-menu-icon .mobile-menu.opened::after {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  body.wms-page-scrolled #wrap #site-header .oceanwp-mobile-menu-icon .mobile-menu,
  body.wms-page-scrolled .wms-back-to-top {
    border-color: rgba(23, 25, 20, 0.12);
    background: rgba(255, 255, 255, 0.94);
    color: var(--wms-ink);
  }

  .wms-back-to-top {
    position: fixed;
    z-index: 10001;
    top: max(14px, env(safe-area-inset-top));
    left: 16px;
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
  }

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

  .wms-back-to-top span {
    font-size: 24px;
    font-weight: 450;
    line-height: 1;
  }

  body.static-mobile-menu-open .wms-back-to-top {
    opacity: 0;
    pointer-events: none;
  }

  #mobile-dropdown,
  #mobile-dropdown.is-open {
    z-index: 10002;
    top: max(72px, calc(env(safe-area-inset-top) + 64px));
    right: 12px;
    left: 12px;
    border-radius: 12px;
  }

  #mobile-dropdown ul li a {
    border-radius: 7px;
    font-family: var(--wms-font-sans) !important;
    font-weight: 600;
  }

  #content .wms_top_block,
  body:not(.home) #content .wms_top_block {
    min-height: 360px;
  }

  #content .wms_top_block > .wpb_column,
  body:not(.home) #content .wms_top_block > .wpb_column {
    min-height: 360px;
    align-items: center;
    padding: 92px 20px 30px;
  }

  .wms_main_page #content .wms_top_block,
  .wms_main_page .wms_top_block {
    min-height: 560px;
  }

  .wms_main_page #content .wms_top_block > .wpb_column,
  .wms_main_page .wms_top_block > .wpb_column {
    min-height: 560px;
    align-items: center;
    padding-top: 104px;
    padding-bottom: 30px;
  }

  #content .wms_top_block::before {
    background: linear-gradient(180deg, rgba(7, 9, 7, 0.24) 0%, rgba(7, 9, 7, 0.52) 48%, rgba(7, 9, 7, 0.76) 100%);
  }

  .wms_main_page .wms_top_block .wms_hero_slogan,
  #content .wms_top_block h1,
  body:not(.home) #content .wms_top_block h1 {
    font-family: var(--wms-font-sans) !important;
    font-size: clamp(34px, 10.4vw, 44px);
    font-weight: 650;
    line-height: 1.02;
    letter-spacing: -0.045em;
  }

  .wms_main_page .wms_top_block .wms_hero_slogan span {
    margin-top: 8px;
    font-size: 0.65em;
    line-height: 1.1;
    letter-spacing: -0.015em;
  }

  .wms_main_page .wms_top_block .wms_hero_subtitle,
  #content .wms_top_block p {
    margin-top: 16px;
    font-family: var(--wms-font-sans) !important;
    font-size: 16px;
    line-height: 1.42;
  }

  #content .wms_top_block .wms_top_block_list {
    gap: 8px;
    margin-top: 20px;
  }

  #content .wms_top_block .wms_top_block_list li a {
    min-height: 48px;
    padding: 9px 10px;
    border-width: 1px;
    border-radius: 7px;
    background: rgba(8, 10, 8, 0.24);
  }

  #content .wms_top_block .wms_top_block_list li a span {
    font-size: 13px;
    font-weight: 600;
  }

  #content .wms_yandex_panorama_block {
    padding-top: 42px;
    padding-bottom: 8px;
  }

  #content .wms_yandex_panorama_block .wpb_content_element {
    margin-bottom: 0 !important;
  }

  #wrap #content .wms_base_area_block {
    padding-top: 24px;
    padding-bottom: 46px;
  }

  #outer-wrap #wrap #content .wms_base_area_block h2 {
    margin: 0 0 22px !important;
    font-family: var(--wms-font-sans) !important;
    font-size: clamp(27px, 8vw, 32px);
    font-weight: 620;
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  #wrap #content .wms_base_area_block .wms_slider_t1 {
    margin-top: 58px !important;
  }

  #wrap #content .wms_base_area_block .wms_slider_t1 .wms_slide_title {
    top: -44px;
  }

  #content .wms_contacts_block h2 {
    font-size: clamp(27px, 8vw, 32px);
    font-weight: 620;
    line-height: 1.08;
  }

  #wrap #content .wms_about_base_block,
  #content .wms_tabs_block,
  #content .wms_content_area,
  #wrap .wms_prices_page .wms_particular_payments,
  #wrap .wms_prices_page .wms_rental,
  #wrap .wms_prices_page .wms_about_payments,
  #wrap .wms_prices_page .wms_discounts_block {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  #wms_request_popup,
  #wms_request_popup .wms_form_content,
  #wms_request_popup .wms_form_datepicker,
  #wms_request_popup .wms_form_datepicker > span {
    position: relative;
    overflow: visible !important;
  }

  #wms_request_popup {
    z-index: 2;
  }

  #wms_request_popup .wms_form_datepicker > span,
  #wms_request_popup input[type="date"] {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #wms_request_popup input[type="date"] {
    position: relative;
    z-index: 3;
    display: block;
    -webkit-appearance: none;
    appearance: none;
  }

  #wms_request_popup input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    z-index: 4;
    right: 14px;
    width: 22px;
    height: 22px;
    opacity: 0.72;
  }

  .wms-mobile-actions {
    border-radius: 12px;
  }

  .wms-mobile-actions a {
    border-radius: 7px;
    font-weight: 650;
  }
}

@media (max-width: 374px) {
  #wrap #site-header .oceanwp-mobile-menu-icon {
    right: 12px;
  }

  .wms-back-to-top {
    left: 12px;
  }
}

/* Unified photo galleries */
#wrap #content .wms_slider {
  position: relative;
}

#wrap #content .wms_slider .wms_slider_items {
  overflow: hidden;
  border-radius: var(--wms-radius, 12px);
  touch-action: pan-y pinch-zoom;
}

#wrap #content .wms_slider .slick-slide img {
  display: block;
  width: 100%;
}

#wrap #content .wms_slider_t1 .wms_slider_items {
  aspect-ratio: 16 / 9;
}

#wrap #content .wms_slider_t1 .slick-list,
#wrap #content .wms_slider_t1 .slick-track,
#wrap #content .wms_slider_t1 .slick-slide,
#wrap #content .wms_slider_t1 .slick-slide > div,
#wrap #content .wms_slider_t1 .slide {
  height: 100% !important;
}

#wrap #content .wms_slider_t1 .slide img {
  height: 100% !important;
  object-fit: cover;
}

#wrap #content .wms_slider > .wms_slider_controls,
#wrap #content .wms_slider_about > .wms_slider_controls {
  position: absolute !important;
  z-index: 7;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  pointer-events: none;
}

#wrap #content .wms_slider .wms_slider_controls .wms_gallery_arrow,
#wrap #content .wms_slider_about .wms_slider_controls .wms_gallery_arrow {
  position: absolute !important;
  top: 50% !important;
  display: inline-flex !important;
  width: 46px !important;
  height: 46px !important;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  border-radius: 50% !important;
  background: rgba(10, 14, 12, 0.7) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  color: #fff;
  opacity: 1;
  transform: translateY(-50%) !important;
  transition: background-color 180ms ease, transform 180ms ease, opacity 180ms ease;
  pointer-events: auto;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#wrap #content .wms_slider .wms_slider_controls .wms_prev,
#wrap #content .wms_slider_about .wms_slider_controls .wms_prev {
  right: auto !important;
  left: 14px !important;
}

#wrap #content .wms_slider .wms_slider_controls .wms_next,
#wrap #content .wms_slider_about .wms_slider_controls .wms_next {
  right: 14px !important;
  left: auto !important;
}

#wrap #content .wms_slider .wms_slider_controls .wms_next svg,
#wrap #content .wms_slider_about .wms_slider_controls .wms_next svg {
  transform: rotate(180deg);
}

#wrap #content .wms_slider .wms_slider_controls .wms_gallery_arrow svg,
#wrap #content .wms_slider_about .wms_slider_controls .wms_gallery_arrow svg {
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#wrap #content .wms_slider .wms_slider_controls .wms_gallery_arrow:hover,
#wrap #content .wms_slider_about .wms_slider_controls .wms_gallery_arrow:hover {
  background: rgba(10, 14, 12, 0.9) !important;
  transform: translateY(-50%) scale(1.05) !important;
}

#wrap #content .wms_slider .wms_slider_controls .wms_gallery_arrow:focus-visible,
#wrap #content .wms_slider_about .wms_slider_controls .wms_gallery_arrow:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

#wrap #content .wms_slider .wms_slider_controls .slick-disabled,
#wrap #content .wms_slider_about .wms_slider_controls .slick-disabled {
  opacity: 0.35;
  cursor: default;
}

#wrap #content .wms_slider .wms_gallery_status,
#wrap #content .wms_slider_about .wms_gallery_status {
  position: absolute;
  z-index: 6;
  right: 14px;
  bottom: 13px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #fff;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  pointer-events: none;
}

#wrap #content .wms_slider .wms_gallery_progress,
#wrap #content .wms_slider_about .wms_gallery_progress {
  overflow: hidden;
  width: 112px;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
}

#wrap #content .wms_slider .wms_gallery_progress span,
#wrap #content .wms_slider_about .wms_gallery_progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transition: width 260ms ease;
}

#wrap #content .wms_slider .wms_gallery_counter,
#wrap #content .wms_slider_about .wms_gallery_counter {
  min-width: 48px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 99px;
  background: rgba(10, 14, 12, 0.7);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.18);
  text-align: center;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

#wrap #content .wms_slider.wms_gallery_single .wms_slider_controls,
#wrap #content .wms_slider.wms_gallery_single .wms_gallery_status {
  display: none !important;
}

#wrap #content .wms_slider .slick-dots {
  display: none !important;
}

/* Cottage galleries: predictable landscape crop on every screen. */
#wrap #content .wms_slider_t3a .wms_slider_items {
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
}

#wrap #content .wms_slider_t3a .slick-list,
#wrap #content .wms_slider_t3a .slick-track,
#wrap #content .wms_slider_t3a .slick-slide,
#wrap #content .wms_slider_t3a .slick-slide > div,
#wrap #content .wms_slider_t3a .slide,
#wrap #content .wms_slider_t3a .slide > a {
  height: 100% !important;
}

#wrap #content .wms_slider_t3a .slide > a {
  display: block;
}

#wrap #content .wms_slider_t3a .slide img {
  height: 100% !important;
  object-fit: cover;
}

#wrap #content .wms_slider_t3a .wms_slider_thumbnails {
  margin-top: 2px;
}

#wrap #content .wms_slider_t3a .wms_slider_thumbnails .thumbnail {
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 9px;
  opacity: 0.58;
  transition: border-color 180ms ease, opacity 180ms ease;
}

#wrap #content .wms_slider_t3a .wms_slider_thumbnails .thumbnail.slick-current {
  border-color: #111713;
  opacity: 1;
}

/* Cottage features: semantic icons and labels without bulky grey tiles. */
#wrap #content .wms_cottages_grid .wms_tags_list,
#wms_cottage .wms_cottage .wms_tags_list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

#wrap #content .wms_cottages_grid .wms_tags_list li,
#wms_cottage .wms_cottage .wms_tags_list li {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin: 0 !important;
  padding: 2px 0 !important;
  border: 0;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111713;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0;
}

#wrap #content .wms_cottages_grid .wms_tags_list li::before,
#wms_cottage .wms_cottage .wms_tags_list li::before {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  margin: 0 9px 0 0 !important;
  background-position: center;
  background-size: contain;
}

/* Modern fullscreen photo viewer. */
.mfp-bg.wms_modern_lightbox {
  z-index: 2000000 !important;
  background: #07100b;
  opacity: 0.97;
}

.mfp-wrap.wms_modern_lightbox {
  z-index: 2000001 !important;
}

.mfp-wrap.wms_modern_lightbox .mfp-container {
  padding: 56px 78px 66px;
}

.mfp-wrap.wms_modern_lightbox .mfp-figure::after {
  display: none;
}

.mfp-wrap.wms_modern_lightbox img.mfp-img {
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

.mfp-wrap.wms_modern_lightbox .mfp-close {
  position: fixed;
  top: 14px;
  right: 16px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(10, 14, 12, 0.72);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 31px;
  line-height: 43px;
  text-align: center;
  opacity: 1;
}

.mfp-wrap.wms_modern_lightbox .mfp-arrow {
  width: 50px;
  height: 50px;
  margin-top: -25px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(10, 14, 12, 0.72);
  opacity: 1;
}

.mfp-wrap.wms_modern_lightbox .mfp-arrow-left {
  left: 16px;
}

.mfp-wrap.wms_modern_lightbox .mfp-arrow-right {
  right: 16px;
}

.mfp-wrap.wms_modern_lightbox .mfp-arrow::before {
  display: none;
}

.mfp-wrap.wms_modern_lightbox .mfp-arrow::after {
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: 0;
  border: solid #fff;
  border-width: 0 2px 2px 0;
}

.mfp-wrap.wms_modern_lightbox .mfp-arrow-left::after {
  transform: translate(-35%, -50%) rotate(135deg);
}

.mfp-wrap.wms_modern_lightbox .mfp-arrow-right::after {
  transform: translate(-65%, -50%) rotate(-45deg);
}

.mfp-wrap.wms_modern_lightbox .mfp-bottom-bar {
  top: calc(100% + 10px);
  margin-top: 0;
}

.mfp-wrap.wms_modern_lightbox .mfp-title,
.mfp-wrap.wms_modern_lightbox .mfp-counter {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

@media (max-width: 768px) {
  #wrap #content .wms_slider .wms_slider_controls .wms_gallery_arrow,
  #wrap #content .wms_slider_about .wms_slider_controls .wms_gallery_arrow {
    width: 42px !important;
    height: 42px !important;
  }

  #wrap #content .wms_slider .wms_slider_controls .wms_prev,
  #wrap #content .wms_slider_about .wms_slider_controls .wms_prev {
    left: 9px !important;
  }

  #wrap #content .wms_slider .wms_slider_controls .wms_next,
  #wrap #content .wms_slider_about .wms_slider_controls .wms_next {
    right: 9px !important;
  }

  #wrap #content .wms_slider .wms_gallery_status,
  #wrap #content .wms_slider_about .wms_gallery_status {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  #wrap #content .wms_slider .wms_gallery_progress,
  #wrap #content .wms_slider_about .wms_gallery_progress {
    width: 82px;
  }

  #wrap #content .wms_cottages_grid .wms_tags_list,
  #wms_cottage .wms_cottage .wms_tags_list {
    gap: 9px 16px;
  }

  #wrap #content .wms_cottages_grid .wms_tags_list li,
  #wms_cottage .wms_cottage .wms_tags_list li {
    min-height: 28px;
    font-size: 13px;
  }

  #wrap #content .wms_cottages_grid .wms_tags_list li::before,
  #wms_cottage .wms_cottage .wms_tags_list li::before {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    margin-right: 8px !important;
  }

  .mfp-wrap.wms_modern_lightbox .mfp-container {
    padding: 54px 9px 72px;
  }

  .mfp-wrap.wms_modern_lightbox img.mfp-img {
    border-radius: 9px;
  }

  .mfp-wrap.wms_modern_lightbox .mfp-close {
    top: 8px;
    right: 9px;
    width: 42px;
    height: 42px;
    line-height: 39px;
  }

  .mfp-wrap.wms_modern_lightbox .mfp-arrow {
    width: 44px;
    height: 44px;
    margin-top: -22px;
    transform: none;
  }

  .mfp-wrap.wms_modern_lightbox .mfp-arrow-left {
    left: 7px;
  }

  .mfp-wrap.wms_modern_lightbox .mfp-arrow-right {
    right: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #wrap #content .wms_slider .wms_gallery_progress span,
  #wrap #content .wms_slider .wms_slider_controls .wms_gallery_arrow {
    transition: none;
  }
}

/* Gallery polish v3 final overrides. Keep this section last so legacy theme
   gallery rules cannot restore the heavy circular navigation. */
#wrap #content .wms_slider .wms_slider_controls .wms_gallery_arrow,
#wrap #content .wms_slider_about .wms_slider_controls .wms_gallery_arrow {
  width: 54px !important;
  height: 72px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

#wrap #content .wms_slider .wms_slider_controls .wms_gallery_arrow svg,
#wrap #content .wms_slider_about .wms_slider_controls .wms_gallery_arrow svg {
  width: 28px !important;
  height: 28px !important;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.92));
}

#wrap #content .wms_slider .wms_slider_controls .wms_prev,
#wrap #content .wms_slider_about .wms_slider_controls .wms_prev {
  left: 4px !important;
}

#wrap #content .wms_slider .wms_slider_controls .wms_next,
#wrap #content .wms_slider_about .wms_slider_controls .wms_next {
  right: 4px !important;
}

#wrap #content .wms_slider .wms_slider_controls .wms_gallery_arrow:hover,
#wrap #content .wms_slider_about .wms_slider_controls .wms_gallery_arrow:hover {
  background: rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-50%) !important;
}

#wrap #content .wms_slider .wms_gallery_status,
#wrap #content .wms_slider_about .wms_gallery_status {
  inset: 0 !important;
  display: block;
}

#wrap #content .wms_slider .wms_gallery_counter,
#wrap #content .wms_slider_about .wms_gallery_counter {
  position: absolute;
  top: 10px;
  right: 10px;
  min-width: 44px;
  padding: 6px 8px;
  border: 0;
  background: rgba(9, 13, 11, 0.66);
  box-shadow: none;
}

#wrap #content .wms_slider .wms_gallery_progress,
#wrap #content .wms_slider_about .wms_gallery_progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

#wrap #content .wms_cottages_grid .wms_tags_list li::before,
#wms_cottage .wms_cottage .wms_tags_list li::before {
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 768px) {
  #wrap #content .wms_slider > .wms_slider_controls,
  #wrap #content .wms_slider_about > .wms_slider_controls {
    display: none !important;
  }

  #wrap #content .wms_slider .wms_gallery_counter,
  #wrap #content .wms_slider_about .wms_gallery_counter {
    top: 8px;
    right: 8px;
    padding: 5px 7px;
    font-size: 11px;
  }

  .wms-mobile-actions {
    right: 8px !important;
    bottom: max(7px, env(safe-area-inset-bottom)) !important;
    left: auto !important;
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .wms-mobile-actions__icon {
    display: none !important;
  }

  .wms-mobile-actions a.wms-mobile-actions__primary {
    min-height: 40px !important;
    padding: 0 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 999px !important;
    background: rgba(14, 19, 16, 0.94) !important;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.24) !important;
    font-size: 13px !important;
    font-weight: 650;
    white-space: nowrap;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

/* Bug fix: on /ceny/ the "Наши популярные туры" block sits inside
   .wms_prices_page, whose old-theme rule strips the photo background and
   turns text/border black (background:#fff). That leaves plain white
   borders on a white page - looks broken. Restore the photo-card look
   used everywhere else on the site. */
#wrap .wms_prices_page .wms_popular_tours_block {
  background-image: url(/media/images/wms_price_block_bg.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

#wrap .wms_prices_page .wms_popular_tours_heading h2,
#wrap .wms_prices_page .wms_popular_tours_block .wms_price_table_wrapper h3,
#wrap .wms_prices_page .wms_popular_tours_block .wms_price_table_wrapper .wms_price_list li,
#wrap .wms_prices_page .wms_popular_tours_block .wms_price_table_wrapper p.wms_price_amount,
#wrap .wms_prices_page .wms_popular_tours_block .wms_price_table_wrapper a.wms_button_1,
#wrap .wms_prices_page .wms_popular_tours_block .wms_price_table_wrapper p.wms_price_table_footnote {
  color: #fff;
}

#wrap .wms_prices_page .wms_popular_tours_block .wms_price_table_wrapper,
#wrap .wms_prices_page .wms_popular_tours_block .wms_price_table_wrapper hr,
#wrap .wms_prices_page .wms_popular_tours_block .wms_price_table_wrapper a.wms_button_1 {
  border-color: #fff;
}

#wrap .wms_prices_page .wms_popular_tours_block .wms_price_table_wrapper a.wms_button_1:hover {
  color: #000;
  background: #fff;
}

/* Homepage: panorama on top, base map below it, one column (desktop) */
.wms_panorama_map_split {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 20px;
}

.wms_panorama_map_split > .wms_panorama_col,
.wms_panorama_map_split > .wms_map_col {
  width: 100%;
}

.wms_open_panorama_btn {
  display: none;
}

@media (max-width: 768px) {
  /* On mobile: hide the heavy panorama iframe by default, show only the
     base map, reveal + lazy-load the panorama on demand via the button. */
  .wms_panorama_map_split {
    display: block;
  }

  .wms_panorama_map_split > .wms_panorama_col {
    display: none;
    margin-top: 20px;
  }

  .wms_panorama_map_split > .wms_panorama_col.wms-panorama-open {
    display: block;
  }

  .wms_open_panorama_btn {
    display: inline-block;
    margin-top: 18px;
    padding: 14px 22px;
    border: 1px solid rgba(23, 25, 20, 0.16);
    border-radius: 999px;
    background: #fff;
    color: var(--wms-ink);
    font-weight: 650;
    font-size: 14px;
    box-shadow: 0 8px 20px rgba(22, 25, 20, 0.08);
  }

  .wms_open_panorama_btn[hidden] {
    display: none;
  }
}

/* Hero buttons ("Веб-камеры" / "Календарь лова") must stay the same
   height - force single line so a longer label can never wrap and grow
   the button, and widen "Календарь лова" a bit so its label fits. */
#content .wms_top_block .wms_top_block_list li a span {
  white-space: nowrap;
}

@media (min-width: 769px) {
  #content .wms_top_block .wms_top_block_list li:nth-child(2) a {
    width: 250px;
  }
}

/* Panorama modal (bug 8 follow-up): mobile-only, opens on top of the page */
.wms-panorama-modal {
  position: fixed;
  inset: 0;
  z-index: 100010;
  background: rgba(8, 10, 8, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.wms-panorama-modal[hidden] {
  display: none;
}

body.wms-panorama-modal-open {
  overflow: hidden;
}

.wms-panorama-modal .wms_panorama_col {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wms-panorama-modal .wms_yandex_panorama_frame {
  flex: 1 1 auto;
}

.wms-panorama-modal .wms_yandex_panorama_frame iframe {
  width: 100%;
  height: 100%;
}

.wms-panorama-modal .wms_yandex_panorama_link {
  flex: 0 0 auto;
  margin: 10px 16px;
  text-align: center;
}

.wms-panorama-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(10, 14, 12, 0.72);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
