/* =========================================================
   БЦ на Бауманской — шапка и контакты
   Все правила скопированы под .bcnb-root, чтобы не задевать
   стили темы и других плагинов на странице.
   ========================================================= */

.bcnb-root,
.bcnb-root *,
.bcnb-root *::before,
.bcnb-root *::after {
  box-sizing: border-box;
}

.bcnb-root {
  --bcnb-ink: #17181C;
  --bcnb-muted: #6B6558;
  --bcnb-paper: #F6F4EF;
  --bcnb-paper-2: #ECE8DF;
  --bcnb-line: #DDD6C8;
  --bcnb-brass: #A9793E;
  --bcnb-brass-deep: #8B5F2C;
  --bcnb-brass-ink: #FFFFFF;
  --bcnb-shadow: 0 8px 24px -12px rgba(23, 24, 28, 0.18);

  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  color: var(--bcnb-ink);
  line-height: 1.4;
}

@media (prefers-color-scheme: dark) {
  .bcnb-root {
    --bcnb-ink: #F3F1EA;
    --bcnb-muted: #A39D8E;
    --bcnb-paper: #131316;
    --bcnb-paper-2: #1C1C20;
    --bcnb-line: #2C2B2E;
    --bcnb-brass: #C8996A;
    --bcnb-brass-deep: #E0B182;
    --bcnb-brass-ink: #17181C;
    --bcnb-shadow: 0 8px 28px -12px rgba(0, 0, 0, 0.55);
  }
}

.bcnb-root a {
  color: inherit;
  text-decoration: none;
}

.bcnb-root h1,
.bcnb-root h2,
.bcnb-root p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .bcnb-root * { transition: none !important; }
}

/* ---------- Topbar ---------- */

.bcnb-topbar {
  background: var(--bcnb-paper-2);
  border-bottom: 1px solid var(--bcnb-line);
}

.bcnb-topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
  color: var(--bcnb-muted);
}

.bcnb-topbar-inner svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  vertical-align: -2px;
  margin-right: 6px;
}

.bcnb-topbar-addr {
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bcnb-topbar-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.bcnb-topbar-contacts a {
  display: flex;
  align-items: center;
  color: var(--bcnb-muted);
  transition: color 0.15s ease;
}

.bcnb-topbar-contacts a:hover { color: var(--bcnb-brass); }

.bcnb-topbar-divider {
  width: 1px;
  height: 14px;
  background: var(--bcnb-line);
}

@media (max-width: 900px) {
  .bcnb-topbar { display: none; }
}

/* ---------- Header ---------- */

.bcnb-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: color-mix(in srgb, var(--bcnb-paper) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bcnb-line);
}

.bcnb-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  height: 112px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 44px);
}

.bcnb-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  margin-right: auto;
}

.bcnb-brand img {
  height: 64px;
  width: auto;
  display: block;
}

@media (prefers-color-scheme: dark) {
  .bcnb-brand img { filter: invert(1); }
}

.bcnb-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.bcnb-brand-name {
  font-family: "Golos Text", "Manrope", sans-serif;
  font-weight: 700;
  font-size: 25px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.bcnb-brand-kind {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bcnb-brass);
  margin-top: 6px;
}

/* Nav */

.bcnb-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.bcnb-nav > a,
.bcnb-nav-item > a {
  font-size: 17px;
  font-weight: 500;
  color: var(--bcnb-muted);
  padding: 10px 2px;
  position: relative;
  white-space: nowrap;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bcnb-nav > a::after,
.bcnb-nav-item > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--bcnb-brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.bcnb-nav > a:hover,
.bcnb-nav-item > a:hover { color: var(--bcnb-ink); }
.bcnb-nav > a:hover::after,
.bcnb-nav-item > a:hover::after { transform: scaleX(1); }
.bcnb-nav a:focus-visible {
  outline: 2px solid var(--bcnb-brass);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Dropdown submenus */

.bcnb-nav-item { position: relative; }

.bcnb-chev {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.bcnb-nav-item:hover .bcnb-chev,
.bcnb-nav-item:focus-within .bcnb-chev,
.bcnb-nav-item.bcnb-open .bcnb-chev { transform: rotate(180deg); }

.bcnb-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 280px;
  background: var(--bcnb-paper);
  border: 1px solid var(--bcnb-line);
  border-radius: 10px;
  box-shadow: var(--bcnb-shadow);
  padding: 9px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 60;
}

.bcnb-nav-item:hover .bcnb-dropdown,
.bcnb-nav-item:focus-within .bcnb-dropdown,
.bcnb-nav-item.bcnb-open .bcnb-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.bcnb-dropdown a {
  padding: 10px 13px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--bcnb-ink);
  white-space: nowrap;
}

.bcnb-dropdown a::after { display: none; }
.bcnb-dropdown a:hover { background: var(--bcnb-paper-2); color: var(--bcnb-brass-deep); }

.bcnb-dropdown a.bcnb-sub {
  padding-left: 22px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--bcnb-muted);
  margin-top: 2px;
  border-top: 1px solid var(--bcnb-line);
  padding-top: 11px;
}

/* Right cluster: CTA */

.bcnb-header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.bcnb-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--bcnb-brass);
  color: var(--bcnb-brass-ink);
  font-weight: 600;
  font-size: 16.5px;
  padding: 15px 27px;
  border-radius: 9px;
  box-shadow: var(--bcnb-shadow);
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.bcnb-cta:hover { background: var(--bcnb-brass-deep); transform: translateY(-1px); }
.bcnb-cta:focus-visible { outline: 2px solid var(--bcnb-brass-deep); outline-offset: 3px; }

/* Mobile burger */

.bcnb-burger {
  display: none;
  background: none;
  border: 1px solid var(--bcnb-line);
  border-radius: 9px;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.bcnb-burger span,
.bcnb-burger span::before,
.bcnb-burger span::after {
  content: "";
  display: block;
  width: 21px;
  height: 2px;
  background: var(--bcnb-ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.bcnb-burger span::before { position: absolute; top: -7px; }
.bcnb-burger span::after { position: absolute; top: 7px; }

.bcnb-mobile-panel {
  display: none;
  flex-direction: column;
  padding: 8px clamp(16px, 3vw, 32px) 20px;
  border-bottom: 1px solid var(--bcnb-line);
  background: var(--bcnb-paper);
}

.bcnb-mobile-panel > a,
.bcnb-mobile-panel details > summary {
  padding: 15px 0;
  border-bottom: 1px solid var(--bcnb-line);
  font-size: 17px;
  font-weight: 500;
  color: var(--bcnb-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}

.bcnb-mobile-panel summary::-webkit-details-marker { display: none; }

.bcnb-mobile-panel summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--bcnb-muted);
  border-bottom: 2px solid var(--bcnb-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.bcnb-mobile-panel details[open] summary::after { transform: rotate(-135deg); }

.bcnb-mobile-panel details a {
  display: block;
  padding: 11px 0 11px 15px;
  font-size: 16px;
  font-weight: 500;
  color: var(--bcnb-muted);
  border-bottom: none;
}

.bcnb-mobile-panel details a.bcnb-sub { padding-left: 28px; font-size: 14.5px; }
.bcnb-mobile-panel details a:last-child { padding-bottom: 13px; }
.bcnb-mobile-panel > a:last-of-type { border-bottom: none; }

.bcnb-m-contacts {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 17px 0 4px;
  font-size: 16px;
}

.bcnb-m-contacts a { color: var(--bcnb-ink); font-weight: 600; display: flex; align-items: center; gap: 9px; }
.bcnb-m-contacts a svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--bcnb-brass); }
.bcnb-m-addr { color: var(--bcnb-muted); font-size: 14px; padding-left: 25px; }

.bcnb-mobile-panel .bcnb-cta { margin-top: 14px; justify-content: center; }

@media (max-width: 920px) {
  .bcnb-nav { display: none; }
}

@media (max-width: 640px) {
  .bcnb-header-actions .bcnb-cta { display: none; }
  .bcnb-burger { display: flex; }
  body.bcnb-menu-open .bcnb-mobile-panel { display: flex; }
  body.bcnb-menu-open .bcnb-burger span { background: transparent; }
  body.bcnb-menu-open .bcnb-burger span::before { transform: rotate(45deg) translate(4px, 5px); }
  body.bcnb-menu-open .bcnb-burger span::after { transform: rotate(-45deg) translate(4px, -5px); }
}

/* ---------- Contacts page block ---------- */

.bcnb-contacts {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) clamp(16px, 3vw, 32px) clamp(72px, 8vw, 120px);
}

.bcnb-page-head { max-width: 62ch; margin-bottom: clamp(40px, 6vw, 64px); }

.bcnb-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bcnb-brass);
  margin: 0 0 18px;
}

.bcnb-page-head h1 {
  font-family: "Golos Text", sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  text-wrap: balance;
}

.bcnb-page-head p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--bcnb-muted);
}

.bcnb-contacts-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(20px, 3vw, 28px);
  align-items: stretch;
}

@media (max-width: 780px) {
  .bcnb-contacts-columns { grid-template-columns: 1fr; }
}

.bcnb-info-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bcnb-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: var(--bcnb-paper-2);
  border: 1px solid var(--bcnb-line);
  border-radius: 14px;
}

.bcnb-info-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--bcnb-paper);
  border: 1px solid var(--bcnb-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bcnb-brass);
}

.bcnb-info-icon svg { width: 19px; height: 19px; }

.bcnb-info-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bcnb-muted);
  margin: 0 0 5px;
}

.bcnb-info-value {
  font-family: "Golos Text", sans-serif;
  font-weight: 600;
  font-size: 16.5px;
  color: var(--bcnb-ink);
  display: block;
}

.bcnb-info-value:hover { color: var(--bcnb-brass-deep); }
.bcnb-info-sub { font-size: 13.5px; color: var(--bcnb-muted); margin-top: 4px; }

.bcnb-map-card {
  position: relative;
  min-height: 280px;
  border-radius: 14px;
  border: 1px solid var(--bcnb-line);
  overflow: hidden;
  background: var(--bcnb-paper-2);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bcnb-map-art { position: absolute; inset: 0; }

.bcnb-street {
  position: absolute;
  background: color-mix(in srgb, var(--bcnb-ink) 7%, transparent);
}

.bcnb-map-pin {
  position: absolute;
  top: 42%;
  left: 46%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -100%);
  color: var(--bcnb-brass);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.bcnb-map-caption {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--bcnb-paper) 92%, transparent);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--bcnb-line);
}

.bcnb-coords {
  font-size: 12.5px;
  color: var(--bcnb-muted);
  font-variant-numeric: tabular-nums;
}

.bcnb-map-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bcnb-brass-deep);
  white-space: nowrap;
}

.bcnb-map-link svg { width: 14px; height: 14px; }
.bcnb-map-link:hover { color: var(--bcnb-brass); }

.bcnb-transport-note {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: clamp(24px, 4vw, 32px);
  border-top: 1px solid var(--bcnb-line);
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 24px;
}

@media (max-width: 640px) {
  .bcnb-transport-note { grid-template-columns: 1fr; gap: 10px; }
}

.bcnb-transport-note h2 {
  font-family: "Golos Text", sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--bcnb-ink);
}

.bcnb-transport-note p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--bcnb-muted);
  margin: 0 0 12px;
}

.bcnb-transport-note p:last-child { margin-bottom: 0; }

.bcnb-footer { border-top: 1px solid var(--bcnb-line); }

.bcnb-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px clamp(16px, 3vw, 32px);
  font-size: 13px;
  color: var(--bcnb-muted);
}
