/* ===== Tokens ===== */
:root {
  --bns-paper: #fffdf7;
  --bns-ink: #344b50;
  --bns-accent: #46646c;
  --bns-muted: #435b5c;
  --bns-line: #baccc4;
  --bns-wash: #eaf2ed;
  --bns-sage: #e8f1e7;
  --bns-sky: #dceaf0;
  --bns-cream: #faf4e5;
  --bns-serif: "Instrument Serif", Georgia, serif;
  --bns-sans: "DM Sans", Arial, sans-serif;
  --bns-radius: 12px;
  --bns-header-h: 90px;
}

/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

html.bns-lock {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bns-paper);
  color: var(--bns-ink);
  font: 400 1rem/1.58 var(--bns-sans);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a[href^="tel:"] {
  white-space: nowrap;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #5082a6;
  outline-offset: 4px;
}

.bns-skip {
  position: absolute;
  top: -100px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: #ffffff;
  border-radius: var(--bns-radius);
}

.bns-skip:focus {
  top: 8px;
}

.bns-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.bns-wrap {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* ===== Buttons ===== */
.bns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 47px;
  padding: 10px 22px;
  border: 1px solid var(--bns-accent);
  border-radius: var(--bns-radius);
  background: var(--bns-accent);
  color: #ffffff;
  font: 500 0.92rem/1.2 var(--bns-sans);
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bns-btn:hover {
  background: var(--bns-ink);
  border-color: var(--bns-ink);
  color: #ffffff;
}

.bns-btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bns-btn-ghost {
  background: transparent;
  color: var(--bns-ink);
}

/* ===== Header and nav ===== */
.bns-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 244, 0.95);
  box-shadow: 0 1px 0 #cad9d2;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.bns-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: var(--bns-header-h);
  padding-block: 8px;
}

.bns-logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}

.bns-header .bns-logo img,
.bns-footer .bns-logo img {
  width: 89px !important;
  height: 74px !important;
  object-fit: contain;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.bns-links {
  display: flex;
  gap: clamp(16px, 2.6vw, 38px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 500;
}

.bns-links a {
  text-decoration: none;
}

.bns-links a:hover {
  text-decoration: underline;
}

.bns-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--bns-line);
  border-radius: var(--bns-radius);
  background: transparent;
  color: var(--bns-ink);
  cursor: pointer;
}

.bns-burger svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.bns-burger .bns-burger-close,
.bns-open .bns-burger .bns-burger-open {
  display: none;
}

.bns-open .bns-burger .bns-burger-close {
  display: block;
}

@media (max-width: 860px) {
  :root {
    --bns-header-h: 72px;
  }

  .bns-nav {
    padding-block: 6px;
  }

  .bns-header .bns-logo img {
    width: 72px !important;
    height: 60px !important;
  }

  .bns-burger {
    display: inline-flex;
  }

  .bns-nav-cta {
    display: none;
  }

  .bns-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px 24px 16px;
    background: var(--bns-paper);
    box-shadow: 0 18px 30px rgba(52, 75, 80, 0.16);
    border-top: 1px solid #cad9d2;
  }

  .bns-open .bns-links {
    display: flex;
  }

  .bns-links a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid #dfe8e3;
    font-size: 1.05rem;
  }

  .bns-links li:last-child a {
    border-bottom: 0;
  }
}

@media (max-width: 400px) {
  :root {
    --bns-header-h: 64px;
  }

  .bns-wrap {
    width: calc(100% - 32px);
  }

  .bns-header .bns-logo img {
    width: 62px !important;
    height: 52px !important;
  }

  .bns-burger {
    width: 42px;
    height: 42px;
  }

  .bns-links {
    padding-inline: 16px;
  }
}

/* ===== Footer ===== */
.bns-footer {
  background: #2c4146;
  color: #f1f5ef;
  font-size: 0.95rem;
}

.bns-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 36px;
  padding-block: 56px 40px;
}

.bns-footer .bns-logo img {
  filter: brightness(0) invert(1);
}

.bns-footer-about p {
  max-width: 34ch;
  margin-top: 16px;
  color: rgba(241, 245, 239, 0.84);
}

.bns-footer h2 {
  margin-bottom: 14px;
  font: 600 0.95rem/1.3 var(--bns-sans);
  letter-spacing: 0.02em;
}

.bns-footer ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bns-footer a {
  color: rgba(241, 245, 239, 0.9);
  text-decoration: none;
}

.bns-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.bns-footer address {
  font-style: normal;
}

.bns-footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bns-footer-social svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bns-footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px 22px;
  border-top: 1px solid rgba(241, 245, 239, 0.2);
  color: rgba(241, 245, 239, 0.84);
  font-size: 0.88rem;
}

.bns-footer .bns-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

@media (max-width: 760px) {
  .bns-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 44px 30px;
  }

}

/* ===== Sticky CTA rail ===== */
.bns-icon-rail {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.bns-icon-rail .bns-rail-btn {
  display: flex !important;
  align-items: center;
  height: 52px;
  min-width: 52px;
  border-radius: 0 50px 50px 0;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  transition: min-width 0.3s ease;
}

.bns-rail-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bns-rail-icon svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
}

.bns-rail-label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #ffffff;
  padding-right: 0;
  transition: max-width 0.3s ease, opacity 0.25s ease, padding-right 0.3s ease;
}

.bns-icon-rail .bns-rail-btn:hover,
.bns-icon-rail .bns-rail-btn:focus-visible {
  min-width: 168px;
}

.bns-rail-btn:hover .bns-rail-label,
.bns-rail-btn:focus-visible .bns-rail-label {
  max-width: 140px;
  opacity: 1;
  padding-right: 18px;
}

.bns-rail-call {
  background: #23292b;
}

.bns-rail-book {
  background: #46646c;
}

html.bns-nav-open .bns-icon-rail {
  display: none !important;
}

@media (max-width: 620px) {
  .bns-icon-rail {
    top: 24%;
  }
}

@media (max-width: 400px) {
  .bns-icon-rail .bns-rail-btn,
  .bns-rail-icon {
    height: 46px;
    min-width: 46px;
    width: 46px;
  }

  .bns-icon-rail .bns-rail-btn:hover,
  .bns-icon-rail .bns-rail-btn:focus-visible {
    width: auto;
    min-width: 156px;
  }

  .bns-rail-icon svg {
    width: 19px;
    height: 19px;
  }
}

/* ===== Scroll reveal ===== */
.bns-js .bns-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.bns-js .bns-reveal.bns-in {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .bns-js .bns-reveal {
    opacity: 1;
    transform: none;
  }
}
