/* Brand tokens: existing Rina Tour blue, with accessible action shades. */
.rina-tuning {
  --rina-brand: #1c82b5;
  --rina-action: #176c96;
  --rina-hover: #125477;
  --rina-ink: #243644;
  --rina-line: #d8e7ee;
  --rina-header-height: 122px;
  --rina-transition: 180ms ease;
}

/* Base and fixed-header offsets; native composition remains intact. */
html:has(.rina-tuning) {
  scroll-padding-top: calc(var(--rina-header-height, 122px) + 16px);
}
.rina-tuning :where([id], a, button, input, select, textarea) {
  scroll-margin-top: calc(var(--rina-header-height) + 16px);
}
.rina-tuning .rina-header-slot {
  height: var(--rina-header-height);
}
.rina-tuning .rina-desktop-header {
  position: fixed !important;
  top: 0;
  z-index: 1200;
  background-color: #dff1fb;
  box-shadow: 0 4px 18px rgb(16 73 102 / 14%);
  width: var(--rina-shell-width, 1100px) !important;
}
.rina-tuning .top_design {
  box-shadow: 0 3px 12px rgb(16 73 102 / 15%);
}

/* Focus, form affordances and restrained existing hover motion. */
.rina-tuning :where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--rina-hover);
  outline-offset: 3px;
}
.rina-tuning .grow {
  transition: transform var(--rina-transition), box-shadow var(--rina-transition);
}
.rina-tuning .grow:hover {
  transform: scale(1.025);
}
.rina-tuning .rina-desktop-header .grow:hover {
  transform: none;
}
.rina-tuning .border_1 {
  border-radius: 7px;
  box-shadow: 0 3px 10px rgb(16 73 102 / 10%);
}
.rina-tuning .form_1 {
  border-color: #9bb8c7;
  border-radius: 4px;
}
.rina-tuning .rina-desktop-header a:focus-visible {
  outline: 3px solid var(--rina-hover) !important;
  outline-offset: 2px;
}
.rina-tuning :where(#stUI6_dv, #stUI15_dv) {
  position: fixed !important;
  top: var(--rina-menu-top, 122px) !important;
  left: var(--rina-menu-left, 0px) !important;
  z-index: 1250 !important;
}

/* Category tiles and native sidebar banners: small lift, no image crop. */
.rina-tuning .prozr > a,
.rina-tuning .rina-sidebar a.sta {
  display: inline-block;
  position: relative;
  vertical-align: top;
  border-radius: 6px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.rina-tuning .rina-sidebar a.sta {
  display: block;
  width: fit-content;
  max-width: 100%;
}
.rina-tuning .prozr > a > img {
  border-radius: 6px;
  box-shadow: 0 3px 10px rgb(16 73 102 / 12%);
}
.rina-tuning .prozr > a:focus-visible,
.rina-tuning .rina-sidebar a.sta:focus-visible {
  z-index: 1;
  outline: 3px solid var(--rina-action) !important;
  outline-offset: 3px;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgb(16 73 102 / 22%);
}
.rina-tuning .prozr > a:focus-visible .grow {
  transform: none;
}
/* Sidebar banners use a soft focus shadow instead of a hard outline. */
.rina-tuning .rina-sidebar a.sta:focus-visible {
  outline: none !important;
  box-shadow: 0 6px 18px rgb(16 73 102 / 26%);
}
@media (hover: hover) and (pointer: fine) {
  .rina-tuning .prozr > a:hover {
    z-index: 1;
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgb(16 73 102 / 20%);
  }
  .rina-tuning .rina-sidebar a.sta:hover {
    z-index: 1;
    transform: translate(3px, -2px);
    box-shadow: 0 6px 15px rgb(16 73 102 / 22%);
  }
  .rina-tuning .prozr > a:hover .grow {
    transform: none;
  }
}

/* Existing card dimensions; title height now participates in row sizing. */
.rina-tuning .rina-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 260px);
  justify-content: space-between;
  gap: 16px 0;
}
.rina-tuning .offer {
  float: none;
  height: auto;
  min-height: 330px;
}
.rina-tuning .offer_1 {
  position: relative;
  top: auto;
  right: auto;
  margin-left: auto;
}
.rina-tuning .offer_2 {
  position: relative;
  top: auto;
  right: auto;
  margin: 6px 5px 0 auto;
}
.rina-tuning .offer_3 {
  position: relative;
  top: auto;
  right: auto;
  height: auto;
  min-height: 61px;
  margin: 0 8px 0 auto;
}
.rina-tuning .cookie_banner {
  z-index: 1300;
  left: 16px;
  bottom: 16px;
}
.rina-tuning .cookie_banner a {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--rina-line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 12px rgb(16 73 102 / 15%);
}
.rina-tuning .cookie_banner[hidden] {
  display: none;
}
.rina-tuning .cookie_banner img {
  width: 30px;
  height: 30px;
}

/* Native consent skin: targeted priority beats late-injected vendor CSS. */
.rina-tuning #termsfeed-com---nb {
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  right: 20px !important;
  bottom: 20px !important;
  left: auto !important;
  width: min(460px, calc(100% - 40px)) !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--rina-line) !important;
  border-radius: 16px !important;
  color: var(--rina-ink) !important;
  background: #fff !important;
  box-shadow: 0 8px 32px rgb(16 73 102 / 18%) !important;
}
.rina-tuning #termsfeed-com---nb .cc-nb-main-container {
  padding: 18px !important;
}
.rina-tuning #termsfeed-com---nb .cc-nb-title {
  margin: 0 0 8px !important;
  color: var(--rina-action) !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
}
.rina-tuning #termsfeed-com---nb .cc-nb-text {
  margin: 0 0 14px !important;
  color: var(--rina-ink) !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
}
.rina-tuning #termsfeed-com---nb .cc-nb-buttons-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.rina-tuning #termsfeed-com---nb .cc-nb-buttons-container button {
  flex: 1 1 calc((100% - 8px) / 2);
  box-sizing: border-box;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid var(--rina-action) !important;
  border-radius: 7px !important;
  color: #fff !important;
  background: var(--rina-action) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  cursor: pointer;
}
.rina-tuning #termsfeed-com---nb .cc-nb-buttons-container .cc-nb-changep {
  flex-basis: 100%;
  color: var(--rina-action) !important;
  background: #f1f8fc !important;
}
.rina-tuning #termsfeed-com---nb button:hover,
.rina-tuning #termsfeed-com---nb button:active {
  color: #fff !important;
  background: var(--rina-hover) !important;
}
.rina-tuning #termsfeed-com---preferences-center .cc-pc-container {
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  width: min(720px, calc(100vw - 48px)) !important;
  max-height: 82dvh !important;
  overflow: hidden !important;
  border: 1px solid var(--rina-line) !important;
  border-radius: 16px !important;
  color: var(--rina-ink) !important;
  background: #fff !important;
  box-shadow: 0 12px 44px rgb(16 73 102 / 22%) !important;
}
.rina-tuning #termsfeed-com---preferences-center .cc-pc-head,
.rina-tuning #termsfeed-com---preferences-center .cc-cp-foot {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 100%;
}
.rina-tuning #termsfeed-com---preferences-center .cc-cp-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto !important;
}
.rina-tuning #termsfeed-com---preferences-center :where(.cc-pc-head, .cc-cp-body, .cc-cp-body-content, .cc-cp-foot) {
  color: var(--rina-ink) !important;
  background: #fff !important;
}
.rina-tuning #termsfeed-com---preferences-center :where(h2, h3, p, label, .cc-pc-head-title-headline, .cc-cp-body-content-entry-title, .cc-cp-body-content-entry-text) {
  color: var(--rina-ink) !important;
}
.rina-tuning #termsfeed-com---preferences-center .cc-cp-body-tabs {
  background: #edf6fb !important;
}
.rina-tuning #termsfeed-com---preferences-center .cc-cp-body-tabs-item-link {
  min-height: 44px;
  color: var(--rina-action) !important;
  background: #edf6fb !important;
}
.rina-tuning #termsfeed-com---preferences-center button {
  min-height: 44px;
  border-color: var(--rina-action) !important;
  border-radius: 6px;
  color: #fff !important;
  background: var(--rina-action) !important;
}
.rina-tuning #termsfeed-com---preferences-center .cc-pc-head-close {
  min-width: 44px;
  color: var(--rina-action) !important;
  background: #edf6fb !important;
}
.rina-tuning #termsfeed-com---preferences-center input {
  accent-color: var(--rina-action);
}
.rina-tuning #termsfeed-com---preferences-center .cc-custom-checkbox input:checked + label::before {
  background: var(--rina-action) !important;
}

/* Narrow desktop/tablet: fluid owners, with the same sidebar and composition. */
@media (max-width: 1190px) {
  .rina-tuning.rina-desktop {
    min-width: 0;
    --rina-header-height: 136px;
  }
  .rina-tuning.rina-desktop .rina-page-frame {
    width: 100%;
    table-layout: fixed;
  }
  .rina-tuning.rina-desktop .rina-page-frame > tbody > tr > td:first-child,
  .rina-tuning.rina-desktop .rina-page-frame > tbody > tr > td:last-child {
    width: 24px;
  }
  .rina-tuning.rina-desktop .rina-page-frame > tbody > tr > td:first-child > img,
  .rina-tuning.rina-desktop .rina-page-frame > tbody > tr > td:last-child > img {
    width: 24px;
  }
  .rina-tuning.rina-desktop .rina-page-shell {
    width: auto;
  }
  .rina-tuning.rina-desktop .rina-desktop-header > div:first-child img {
    max-width: 42vw;
    height: auto;
  }
  .rina-tuning.rina-desktop .contacts {
    max-width: 54%;
  }
  .rina-tuning.rina-desktop .rina-desktop-header .menu {
    width: 100%;
    height: 49px;
    bottom: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .rina-tuning.rina-desktop .rina-desktop-header {
    height: 136px !important;
  }
  .rina-tuning.rina-desktop .rina-hero {
    width: 100% !important;
    height: auto !important;
    min-height: 360px;
    aspect-ratio: 1100 / 480;
  }
  .rina-tuning.rina-desktop .prozr {
    display: flex;
    bottom: 72px;
    width: calc(100% - 54px);
    height: auto;
    padding: 10px;
    gap: 10px;
  }
  .rina-tuning.rina-desktop .prozr a {
    flex: 1;
    min-width: 0;
  }
  .rina-tuning.rina-desktop .prozr img {
    width: 100%;
    height: auto;
    margin: 0;
  }
  .rina-tuning.rina-desktop .rina-desktop-header,
  .rina-tuning.rina-desktop .rina-hero,
  .rina-tuning.rina-desktop .rina-content-frame,
  .rina-tuning.rina-desktop .rina-footer-frame {
    max-width: 100%;
  }
  .rina-tuning.rina-desktop .rina-content-frame {
    width: calc(100% - 34px);
    table-layout: fixed;
  }
  .rina-tuning.rina-desktop .rina-sidebar {
    width: 246px;
  }
  .rina-tuning.rina-desktop .rina-page-shell > .white_bgr,
  .rina-tuning.rina-desktop .rina-content-frame > tbody > tr > td {
    min-width: 0;
  }
  .rina-tuning.rina-desktop .rina-content-frame .table2 {
    overflow-wrap: anywhere;
  }
  .rina-tuning.rina-desktop .rina-content-frame .table2 table {
    max-width: 100%;
  }
  .rina-tuning.rina-desktop .rina-content-frame > tbody > tr > td:last-child img {
    max-width: 100%;
    height: auto;
  }
  .rina-tuning.rina-desktop .rina-content-frame .fb-page :where(span, iframe) {
    max-width: 100% !important;
  }
  .rina-tuning.rina-desktop .rina-content-frame .table2 > div[align="center"] > a > img,
  .rina-tuning.rina-desktop .rina-content-frame .table2 > div[align="center"] > img {
    max-width: 100%;
    height: auto;
  }
  .rina-tuning.rina-desktop .search {
    bottom: 8px;
    width: calc(100% - 44px);
    height: auto;
    min-height: 44px;
  }
  .rina-tuning.rina-desktop .search table {
    table-layout: fixed;
  }
  .rina-tuning.rina-desktop .search .form_1 {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }
  .rina-tuning.rina-desktop .search input[type="image"] {
    width: 100%;
    height: 44px;
    object-fit: contain;
  }
  .rina-tuning.rina-desktop .rina-footer-frame {
    width: calc(100% - 48px);
    table-layout: fixed;
  }
  .rina-tuning.rina-desktop .rina-footer-frame td {
    width: 25%;
    overflow-wrap: anywhere;
  }
  .rina-tuning.rina-desktop .rina-footer-shadow {
    max-width: 100%;
  }
}

/* Mobile: preserve native header and image proportions. */
@media (max-width: 767px) {
  .rina-tuning.rina-phone {
    --rina-header-height: 50px;
  }
  .rina-tuning .header img {
    max-width: calc(100vw - 54px);
    height: auto;
    max-height: 50px;
  }
  .rina-tuning .header > a {
    min-width: 44px;
    min-height: 44px;
  }
  .rina-tuning.rina-phone .pad10px {
    overflow-wrap: anywhere;
  }
  .rina-tuning.rina-phone .pad10px iframe,
  .rina-tuning.rina-phone .pad10px span:has(> iframe) {
    max-width: 100%;
  }
  .rina-tuning.rina-phone .footer_design {
    overflow-wrap: anywhere;
  }
  .rina-tuning #termsfeed-com---nb {
    right: 12px !important;
    bottom: 84px !important;
    width: calc(100% - 24px) !important;
  }
  .rina-tuning #termsfeed-com---nb .cc-nb-main-container {
    padding: 16px !important;
  }
  .rina-tuning #termsfeed-com---nb .cc-nb-title {
    font-size: 18px !important;
  }
  .rina-tuning #termsfeed-com---nb .cc-nb-text {
    margin-bottom: 12px !important;
  }
  .rina-tuning #termsfeed-com---nb button {
    font-size: 13px !important;
  }
  .rina-tuning .call_us {
    right: 12px;
    bottom: 12px;
  }
  .rina-tuning .call_us img {
    display: block;
    width: 56px;
    height: 56px;
  }
}

/* Reduced motion: retain visible native content and working controls. */
@media (prefers-reduced-motion: reduce) {
  .rina-tuning :where(.grow, .wiggle, [data-aos]) {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .rina-tuning .prozr > a,
  .rina-tuning .rina-sidebar a.sta {
    transition-duration: 0.01ms !important;
    transform: none !important;
  }
}
