/* Baltic Clean — header (2026-11-25). Height stays 80px on desktop, 64px on phones. */
.bch {
  --bch-ink: #181412;
  --bch-text: #2f3b3a;
  --bch-teal: #0f766e;
  --bch-teal-d: #0b5d57;
  --bch-gold: #be965f;
  --bch-line: #e7e2d9;
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--bch-line);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  transition: box-shadow .2s ease;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.bch.bc-scrolled, .bch.header-scrolled { box-shadow: 0 6px 24px rgba(24, 20, 18, .08); }
.bch-in { max-width: 80rem; margin: 0 auto; height: 80px; padding: 0 1.25rem; display: flex; align-items: center; gap: 1.5rem; }

/* logo */
.bch-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--bch-ink); flex-shrink: 0; }
.bch-mark { width: 46px; height: 46px; flex-shrink: 0; }
.bch-name { display: flex; flex-direction: column; line-height: 1.1; }
.bch-name b { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 1.45rem; letter-spacing: .01em; color: var(--bch-ink); }
.bch-name small { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #6b625a; margin-top: .2rem; }

/* nav */
.bch-nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.bch-link { position: relative; padding: .55rem .8rem; font-size: .93rem; font-weight: 500; color: var(--bch-text); text-decoration: none; border-radius: .6rem; white-space: nowrap; }
.bch-link::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem; height: 2px; background: var(--bch-gold); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.bch-link:hover, .bch-link:focus-visible { color: var(--bch-ink); }
.bch-link:hover::after, .bch-link:focus-visible::after, .bch-link[aria-current="page"]::after { transform: scaleX(1); }

/* actions */
.bch-act { display: flex; align-items: center; gap: .6rem; }
.bch-lang { position: relative; }
.bch-lang-btn { display: inline-flex; align-items: center; gap: .4rem; height: 40px; padding: 0 .7rem; border: 1px solid var(--bch-line); border-radius: 999px; background: #fff; color: var(--bch-ink); font-size: .82rem; font-weight: 600; cursor: pointer; }
.bch-lang-btn:hover { border-color: #cfc6b8; }
.bch-flag { width: 20px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); flex-shrink: 0; display: inline-block; }
.bch-chev { width: 14px; height: 14px; transition: transform .2s; }
.bc-lang-open .bch-chev { transform: rotate(180deg); }
.bch-lang-menu { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 13rem; max-height: 70vh; overflow: auto; margin: 0; padding: .4rem; list-style: none; background: #fff; border: 1px solid var(--bch-line); border-radius: .9rem; box-shadow: 0 18px 40px rgba(24, 20, 18, .14); z-index: 60; }
.bch-lang-menu a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: .6rem; color: var(--bch-text); text-decoration: none; font-size: .9rem; min-height: 44px; }
.bch-lang-menu a:hover, .bch-lang-menu a:focus-visible { background: #f4f1ec; color: var(--bch-ink); }
.bch-lang-menu a.bc-lang-active { background: #e8f4f2; color: var(--bch-teal-d); font-weight: 600; }
.bch-phone { display: inline-flex; align-items: center; gap: .45rem; height: 40px; padding: 0 .9rem; border: 1px solid var(--bch-teal); border-radius: 999px; color: var(--bch-teal-d); font-weight: 600; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.bch-phone svg { width: 16px; height: 16px; }
.bch-phone:hover { background: #e8f4f2; }
.bch-cta { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 1.1rem; border-radius: 999px; background: var(--bch-teal); color: #fff !important; font-weight: 700; font-size: .88rem; text-decoration: none; white-space: nowrap; box-shadow: 0 6px 16px rgba(15, 118, 110, .25); }
.bch-cta:hover { background: var(--bch-teal-d); }
.bch a:focus-visible, .bch button:focus-visible { outline: 3px solid #5eead4; outline-offset: 2px; }

/* burger + mobile menu */
.bch-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: .7rem; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.bch-burger span { display: block; width: 22px; height: 2px; background: var(--bch-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.bch-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bch-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.bch-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.bch-mob { border-top: 1px solid var(--bch-line); background: #fff; box-shadow: 0 18px 30px rgba(24, 20, 18, .08); }
.bch-mob-nav { display: flex; flex-direction: column; padding: .75rem 1.25rem 1.25rem; gap: .15rem; }
.bch-mob-link { padding: .8rem .4rem; border-bottom: 1px solid #f1ede6; color: var(--bch-ink); text-decoration: none; font-weight: 500; font-size: 1.02rem; }
.bch-mob-call { display: flex; align-items: center; gap: .5rem; padding: .9rem .4rem; color: var(--bch-teal-d); font-weight: 700; text-decoration: none; }
.bch-mob-call svg { width: 18px; height: 18px; }
.bch-mob-cta { height: 48px; margin-top: .4rem; font-size: 1rem; }

@media (max-width: 1180px) {
  .bch-link { padding: .55rem .55rem; font-size: .88rem; }
  .bch-name small { display: none; }
}
@media (max-width: 1023px) {
  .bch-nav, .bch-cta { display: none; }
  .bch-burger { display: inline-flex; }
  .bch-act { margin-left: auto; }
  .bch-mob-cta { display: inline-flex; }
}
@media (max-width: 560px) {
  .bch-in { height: 64px; padding: 0 .9rem; gap: .6rem; }
  .bch-mark { width: 38px; height: 38px; }
  .bch-name b { font-size: 1.15rem; }
  .bch-phone span { display: none; }
  .bch-phone { width: 40px; padding: 0; justify-content: center; }
  .bch-code { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bch-link::after, .bch-burger span, .bch-chev { transition: none; } }

/* Callback phone button (bottom right): bigger, white ring, "rings" every few seconds (2026-11-25) */
html:root { --bc-callback-fab-size: 3.75rem; }
@media (max-width: 768px) { html:root { --bc-callback-fab-size: 3.5rem; } }
.bc-callback-fab, #bc-callback-fab {
  background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
  border: 3px solid #fff !important;
  font-size: 1.35rem !important;
  overflow: visible !important;
  box-shadow: 0 10px 28px rgba(29, 78, 216, .5), 0 0 0 1px rgba(29, 78, 216, .25) !important;
  animation: bcFabRing 4.5s ease-in-out infinite !important;
}
.bc-callback-fab i, #bc-callback-fab i { display: inline-block; animation: bcFabShake 4.5s ease-in-out infinite; transform-origin: 50% 60%; }
.bc-callback-fab::before, .bc-callback-fab::after,
#bc-callback-fab::before, #bc-callback-fab::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 2px solid rgba(37, 99, 235, .55); pointer-events: none;
  animation: bcFabWave 4.5s ease-out infinite;
}
.bc-callback-fab::after, #bc-callback-fab::after { animation-delay: .35s; }
.bc-callback-fab:hover, #bc-callback-fab:hover,
.bc-callback-fab:focus-visible, #bc-callback-fab:focus-visible { animation-play-state: paused !important; transform: scale(1.08); }
.bc-callback-fab:focus-visible, #bc-callback-fab:focus-visible { outline: 3px solid #5eead4; outline-offset: 3px; }
@keyframes bcFabShake {
  0%, 56%, 100% { transform: rotate(0); }
  60% { transform: rotate(-18deg); } 63% { transform: rotate(16deg); } 66% { transform: rotate(-16deg); }
  69% { transform: rotate(14deg); } 72% { transform: rotate(-10deg); } 75% { transform: rotate(8deg); } 78% { transform: rotate(0); }
}
@keyframes bcFabRing {
  0%, 56%, 80%, 100% { transform: translate(0, 0); }
  60% { transform: translate(-2px, 0); } 63% { transform: translate(2px, 0); } 66% { transform: translate(-2px, 0); }
  69% { transform: translate(2px, 0); } 72% { transform: translate(-1px, 0); } 75% { transform: translate(1px, 0); }
}
@keyframes bcFabWave {
  0%, 56% { transform: scale(1); opacity: 0; }
  60% { opacity: .9; }
  100% { transform: scale(1.75); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bc-callback-fab, #bc-callback-fab, .bc-callback-fab i, #bc-callback-fab i { animation: none !important; }
  .bc-callback-fab::before, .bc-callback-fab::after, #bc-callback-fab::before, #bc-callback-fab::after { display: none; }
}

/* One before/after example on each page (tools/bc_page_ba.py, 2026-11-26) */
.bcpb { padding: 2.5rem 1.25rem; background: #f7f4ef; border-top: 1px solid #ebe5da; border-bottom: 1px solid #ebe5da; }
.bcpb-in { max-width: 72rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem; align-items: center; }
.bcpb-kicker { margin: 0 0 .4rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0b5d57; }
.bcpb-name { margin: 0 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.2; color: #181412; }
.bcpb-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: #0b5d57; text-decoration: underline; text-underline-offset: 3px; }
.bcpb-more:hover { color: #181412; }
.bcpb-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.bcpb-ph { position: relative; margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid #d9d1c3; background: #e9e3d8; aspect-ratio: 4 / 3; }
.bcpb-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bcpb-tag { position: absolute; left: .6rem; top: .6rem; padding: .25rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #fff; letter-spacing: .04em; }
.bcpb-before { background: #181412; }
.bcpb-after { background: #0f766e; }
@media (max-width: 760px) {
  .bcpb { padding: 2rem 1rem; }
  .bcpb-in { grid-template-columns: 1fr; gap: 1rem; }
  .bcpb-pair { gap: .5rem; }
}

/* Footer on phones: big, easy-to-tap links (2026-11-26). Desktop is unchanged. */
@media (max-width: 768px) {
  html body footer.bc-footer { padding: 2.25rem 0 1.25rem !important; font-size: 16px; }
  html body footer.bc-footer .bc-footer-inner { padding: 0 1rem !important; }
  html body footer.bc-footer .bc-footer-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 1.75rem !important; }
  html body footer.bc-footer h4 { font-size: 1.05rem !important; margin: 0 0 .75rem !important; color: #fff !important; letter-spacing: .01em; }

  /* brand + contacts */
  html body footer.bc-footer .bc-footer-brand { justify-content: center; gap: .6rem; }
  html body footer.bc-footer .bc-footer-name { font-size: 1.35rem !important; }
  html body footer.bc-footer .bc-footer-tagline { text-align: center; font-size: 1rem !important; margin: .5rem 0 1rem !important; }
  html body footer.bc-footer .bc-footer-contact {
    display: flex !important; align-items: center; justify-content: center; gap: .6rem;
    min-height: 52px; margin: 0 0 .6rem !important; padding: 0 1rem !important;
    border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
    color: #fff !important; font-size: 1.05rem !important; font-weight: 600; text-decoration: none;
  }
  html body footer.bc-footer a.bc-footer-contact[href^="tel:"] { background: #0f766e; border-color: #0f766e; }
  html body footer.bc-footer .bc-footer-address { text-align: center; font-size: 1rem !important; margin: .4rem 0 0 !important; }

  /* menu and services: two columns of large tiles */
  html body footer.bc-footer .bc-footer-links { display: grid !important; grid-template-columns: 1fr 1fr; gap: .5rem !important; margin: 0 !important; padding: 0 !important; list-style: none; }
  html body footer.bc-footer .bc-footer-links li { margin: 0 !important; }
  html body footer.bc-footer .bc-footer-links a {
    display: flex !important; align-items: center; gap: .55rem; min-height: 52px; height: 100%;
    padding: .55rem .8rem !important; border-radius: 12px; box-sizing: border-box;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
    color: #e2e8f0 !important; font-size: 1rem !important; line-height: 1.25; text-decoration: none;
  }
  html body footer.bc-footer .bc-footer-links a i { flex: 0 0 auto; width: 1.1rem; text-align: center; color: #5eead4; font-size: .95rem; }
  html body footer.bc-footer .bc-footer-links a:active { background: rgba(94, 234, 212, .18); }

  /* districts, messengers */
  html body footer.bc-footer .bc-footer-chips { display: flex !important; flex-wrap: wrap; gap: .5rem !important; }
  html body footer.bc-footer .bc-district-chip { display: inline-flex !important; align-items: center; min-height: 44px; padding: 0 1rem !important; font-size: .98rem !important; border-radius: 999px; }
  html body footer.bc-footer .bc-footer-more { display: inline-flex !important; align-items: center; gap: .5rem; min-height: 48px; font-size: 1rem !important; font-weight: 600; }
  html body footer.bc-footer .bc-footer-social { display: flex !important; gap: .75rem !important; }
  html body footer.bc-footer .bc-footer-social a { width: 56px !important; height: 56px !important; font-size: 1.5rem !important; border-radius: 16px !important; display: inline-flex !important; align-items: center; justify-content: center; }

  /* Google review, legal, developers */
  html body footer.bc-footer .bc-footer-review { flex-direction: column; align-items: stretch !important; text-align: center; gap: .75rem !important; padding: 1.25rem 1rem !important; margin-top: 1.75rem !important; }
  html body footer.bc-footer .bc-footer-review-text { font-size: 1.02rem !important; }
  html body footer.bc-footer .bc-footer-review-links { display: grid !important; grid-template-columns: 1fr; gap: .6rem !important; }
  html body footer.bc-footer .bc-footer-review-btn { display: flex !important; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; font-size: 1rem !important; border-radius: 14px !important; }
  html body footer.bc-footer .bc-legal-bar { flex-direction: column; align-items: center !important; gap: .75rem !important; text-align: center; }
  html body footer.bc-footer .bc-legal-pills { display: flex !important; flex-wrap: wrap; justify-content: center; gap: .5rem !important; }
  html body footer.bc-footer .bc-legal-pill { display: inline-flex !important; align-items: center; gap: .45rem; min-height: 48px; padding: 0 1.1rem !important; font-size: .98rem !important; }
  html body footer.bc-footer .bc-footer-rights { font-size: .92rem !important; }
  html body footer.bc-footer .bc-developers-bar { justify-content: center; flex-wrap: wrap; gap: .25rem .5rem; font-size: .92rem !important; padding-bottom: 4.5rem; }
  html body footer.bc-footer .bc-developer-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .25rem; }
}
@media (max-width: 360px) {
  html body footer.bc-footer .bc-footer-links { grid-template-columns: 1fr; }
}

/* Burger menu: big text, calculator first, call + messengers (2026-11-26) */
.bch-mob { max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.bch-mob-nav { padding: 1rem 1.1rem 1.5rem; gap: 0; }
.bch-mob-calc {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 60px; margin: 0 0 .9rem; padding: 0 1.2rem; border-radius: 16px;
  background: #0f766e; color: #fff !important; font-size: 1.2rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 20px rgba(15, 118, 110, .28);
}
.bch-mob-calc svg { width: 26px; height: 26px; flex-shrink: 0; }
.bch-mob-calc:active { background: #0b5d57; }
.bch-mob-link {
  display: flex; align-items: center; min-height: 56px; padding: 0 .35rem;
  font-size: 1.2rem; font-weight: 600; color: #181412; border-bottom: 1px solid #efe9df; text-decoration: none;
}
.bch-mob-link::after { content: "›"; margin-left: auto; font-size: 1.5rem; color: #b8ad9d; font-weight: 400; }
.bch-mob-link:active { background: #f7f4ef; }
.bch-mob-contact { margin-top: 1.1rem; }
.bch-mob-call {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 58px; padding: 0 1rem; border-radius: 16px; border: 2px solid #0f766e;
  color: #0b5d57 !important; font-size: 1.25rem; font-weight: 700; text-decoration: none; background: #fff;
}
.bch-mob-call svg { width: 22px; height: 22px; }
.bch-mob-msg-title { margin: 1.1rem 0 .55rem; font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6b625a; text-align: center; }
.bch-mob-msg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.bch-mob-msg a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  min-height: 76px; border-radius: 16px; color: #fff !important; font-size: .95rem; font-weight: 600; text-decoration: none;
}
.bch-mob-msg a svg { width: 28px; height: 28px; }
.bch-msg-wa { background: #1fa855; }
.bch-msg-tg { background: #229ed9; }
.bch-msg-vb { background: #7360f2; }
.bch-mob-msg a:active, .bch-mob-call:active { filter: brightness(.92); }
@media (min-width: 1024px) { .bch-mob { display: none !important; } }
