@font-face {
  font-family: "HBC Playfair";
  src: url("../fonts/playfair-display-cyrillic.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "HBC Oswald";
  src: url("../fonts/oswald-light-subset.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "HBC Manrope";
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  font-display: swap;
}

:root {
  --hbc-gold: #ffae00;
  --hbc-gold-soft: rgba(255, 174, 0, 0.42);
  --hbc-radius-card: 1.55rem;
  --hbc-radius-inner: 0.75rem;
  --hbc-page-max: 1560px;
  --hbc-side-width: 360px;
  --hbc-line: rgba(255, 255, 255, 0.12);
  --hbc-text: #f5f0e7;
  --hbc-muted: rgba(245, 240, 231, 0.68);
  --hbc-bg: #10100f;
  --hbc-card: rgba(23, 23, 21, 0.86);
  --hbc-card-strong: rgba(28, 28, 25, 0.95);
  --hbc-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  --hbc-field: rgba(255, 255, 255, 0.045);
  --hbc-gradient: radial-gradient(circle at 20% 20%, rgba(196, 76, 25, 0.42), transparent 38%),
    linear-gradient(135deg, rgba(255, 174, 0, 0.07), transparent 54%);
}

.hbc-root[data-theme="light"] {
  --hbc-line: rgba(28, 28, 25, 0.14);
  --hbc-text: #1c1b19;
  --hbc-muted: rgba(28, 28, 25, 0.68);
  --hbc-bg: #f8f5ed;
  --hbc-card: rgba(255, 255, 255, 0.87);
  --hbc-card-strong: rgba(255, 255, 255, 0.96);
  --hbc-shadow: 0 18px 44px rgba(37, 31, 23, 0.17);
  --hbc-field: rgba(255, 255, 255, 0.58);
  --hbc-gradient: radial-gradient(circle at 20% 20%, rgba(246, 139, 72, 0.26), transparent 38%),
    linear-gradient(135deg, rgba(255, 174, 0, 0.14), transparent 54%);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--hbc-bg);
  color: var(--hbc-text);
}

body.hbc-root {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--hbc-bg);
  color: var(--hbc-text);
  font-family: "HBC Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.hbc-root::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background: var(--hbc-gradient);
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.hbc-ribbons {
  position: fixed;
  inset: -24vh auto auto -10vw;
  width: min(68vw, 980px);
  height: 120vh;
  z-index: -3;
  pointer-events: none;
  opacity: 0.72;
  transform: rotate(-13deg);
}

.hbc-ribbons span {
  position: absolute;
  left: 0;
  right: 0;
  height: 24px;
  border-radius: 999px;
  border: 9px solid rgba(255, 174, 0, 0.44);
  border-left-color: rgba(255, 94, 0, 0.62);
  border-right-color: rgba(255, 226, 137, 0.44);
  transform-origin: left center;
}

.hbc-ribbons span:nth-child(1) { top: 8%; transform: rotate(8deg); }
.hbc-ribbons span:nth-child(2) { top: 20%; transform: rotate(13deg); opacity: 0.86; }
.hbc-ribbons span:nth-child(3) { top: 35%; transform: rotate(18deg); opacity: 0.72; }
.hbc-ribbons span:nth-child(4) { top: 52%; transform: rotate(23deg); opacity: 0.55; }
.hbc-ribbons span:nth-child(5) { top: 70%; transform: rotate(28deg); opacity: 0.42; }

.hbc-blob {
  position: fixed;
  left: 25vw;
  top: 24vh;
  width: 60vw;
  height: 42vh;
  z-index: -2;
  border-radius: 47% 53% 48% 52%;
  background: radial-gradient(circle at 40% 45%, rgba(198, 77, 24, 0.58), rgba(114, 44, 19, 0.28) 42%, transparent 72%);
  filter: blur(38px);
  opacity: 0.72;
}

.hbc-root[data-theme="light"] .hbc-ribbons {
  opacity: 0.48;
}

.hbc-root[data-theme="light"] .hbc-blob {
  opacity: 0.24;
}

.hbc-root[data-motion="on"] .hbc-blob {
  animation: hbcBlob 12s ease-in-out infinite alternate;
}

@keyframes hbcBlob {
  0% { transform: translate3d(-3vw, 1vh, 0) scale(0.94); }
  100% { transform: translate3d(5vw, -2vh, 0) scale(1.05); }
}

.hbc-controls {
  position: fixed;
  left: 96px;
  top: 36px;
  z-index: 20;
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--hbc-line);
  border-radius: 999px;
  background: rgba(18, 18, 16, 0.76);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.hbc-root[data-theme="light"] .hbc-controls {
  background: rgba(255, 255, 255, 0.78);
}

.hbc-icon-btn {
  min-width: 44px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--hbc-text);
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.hbc-icon-btn.is-active,
.hbc-icon-btn:hover {
  border-color: rgba(255, 174, 0, 0.42);
  background: rgba(255, 174, 0, 0.22);
  color: #fff6df;
}

.hbc-root[data-theme="light"] .hbc-icon-btn.is-active,
.hbc-root[data-theme="light"] .hbc-icon-btn:hover {
  color: #1c1b19;
}

.hbc-mobile-bar {
  display: none;
}

.hbc-shell {
  display: grid;
  grid-template-columns: var(--hbc-side-width) minmax(0, 1fr);
  gap: 32px;
  width: min(100% - 48px, var(--hbc-page-max));
  margin: 0 auto;
  padding: 96px 0 44px;
}

.hbc-side {
  position: sticky;
  top: 96px;
  align-self: start;
  height: calc(100vh - 128px);
}

.hbc-side-card,
.hbc-card {
  border: 1px solid var(--hbc-line);
  border-radius: var(--hbc-radius-card);
  background: var(--hbc-card);
  box-shadow: var(--hbc-shadow);
  backdrop-filter: blur(20px);
}

.hbc-side-card {
  min-height: 100%;
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 34px;
}

.hbc-mark {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: var(--hbc-text);
  font-family: "HBC Oswald", sans-serif;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.hbc-mark-symbol {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1b1710;
  background: var(--hbc-gold);
  font-family: "HBC Playfair", serif;
  font-weight: 700;
  font-size: 1.65rem;
}

.hbc-nav {
  display: grid;
  gap: 10px;
}

.hbc-nav a,
.hbc-subnav a {
  position: relative;
  display: block;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: var(--hbc-radius-inner);
  color: var(--hbc-muted);
  font-family: "HBC Oswald", sans-serif;
  font-size: 1.32rem;
  line-height: 1.12;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.hbc-nav a:hover,
.hbc-nav a.is-active,
.hbc-subnav a:hover,
.hbc-subnav a.is-active {
  color: var(--hbc-text);
  border-color: rgba(255, 174, 0, 0.46);
  background: rgba(255, 174, 0, 0.12);
  box-shadow: 0 0 28px rgba(255, 174, 0, 0.16);
}

.hbc-subnav {
  display: grid;
  gap: 5px;
  margin: -3px 0 4px 14px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 174, 0, 0.28);
}

.hbc-subnav a {
  padding: 6px 10px;
  font-size: 1rem;
  color: var(--hbc-muted);
}

.hbc-main {
  min-width: 0;
  display: grid;
  gap: 28px;
}

.hbc-card {
  overflow: hidden;
}

.hbc-hero-card {
  display: grid;
  grid-template-rows: auto auto;
}

.hbc-hero-visual {
  margin: 0;
  min-height: clamp(180px, 25vh, 330px);
  border-bottom: 1px solid var(--hbc-line);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 174, 0, 0.18), rgba(204, 86, 34, 0.1));
}

.hbc-hero-visual img {
  width: 100%;
  height: clamp(180px, 25vh, 330px);
  display: block;
  object-fit: cover;
}

.hbc-hero-visual--fallback {
  position: relative;
  display: grid;
  place-items: center;
}

.hbc-hero-visual--fallback::before,
.hbc-hero-visual--fallback::after {
  content: "";
  position: absolute;
  width: 55%;
  height: 120%;
  border: 18px solid rgba(255, 174, 0, 0.28);
  border-radius: 50%;
  transform: rotate(-22deg);
}

.hbc-hero-visual--fallback::before {
  left: -14%;
  top: -42%;
}

.hbc-hero-visual--fallback::after {
  right: -18%;
  bottom: -48%;
  opacity: 0.54;
}

.hbc-hero-visual--fallback span {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.84);
  font-family: "HBC Playfair", serif;
  font-size: clamp(2.3rem, 6vw, 5.7rem);
  text-align: center;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.hbc-root[data-theme="light"] .hbc-hero-visual--fallback span {
  color: rgba(28, 28, 25, 0.76);
  text-shadow: none;
}

.hbc-card-head,
.hbc-section-title {
  padding: 34px 40px;
  text-align: center;
}

.hbc-card-head h1,
.hbc-section-title h2,
.hbc-empty h2 {
  margin: 0;
  font-family: "HBC Playfair", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  line-height: 0.98;
  color: var(--hbc-text);
}

.hbc-section-title h2,
.hbc-empty h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.hbc-card-head p,
.hbc-section-title p {
  max-width: 860px;
  margin: 12px auto 0;
  color: var(--hbc-muted);
  font-family: "HBC Oswald", sans-serif;
  font-size: clamp(1.05rem, 1.65vw, 1.45rem);
  line-height: 1.25;
}

.hbc-eyebrow {
  margin: 0 0 10px !important;
  color: rgba(255, 174, 0, 0.82) !important;
  font-size: 0.82rem !important;
  text-transform: uppercase;
  letter-spacing: 0 !important;
}

.hbc-intro-card,
.hbc-content-card,
.hbc-related-card {
  padding: 32px;
}

.hbc-intro-card .hbc-section-title,
.hbc-related-card .hbc-section-title {
  padding: 0 0 28px;
  border-bottom: 1px solid var(--hbc-line);
  margin-bottom: 28px;
}

.hbc-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hbc-info-item {
  min-height: 116px;
  border: 1px solid var(--hbc-line);
  border-radius: var(--hbc-radius-inner);
  background: var(--hbc-field);
  padding: 18px;
}

.hbc-info-item span {
  display: block;
  margin-bottom: 10px;
  color: var(--hbc-muted);
  font-family: "HBC Oswald", sans-serif;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.hbc-info-item strong {
  display: block;
  color: var(--hbc-text);
  font-size: 1rem;
  line-height: 1.45;
}

.hbc-text {
  max-width: 1060px;
  margin: 0 auto;
  color: var(--hbc-text);
  font-size: clamp(1.04rem, 1.15vw, 1.18rem);
  line-height: 1.72;
}

.hbc-text--compact {
  margin-top: 28px;
}

.hbc-text h2 {
  margin: 0 0 18px;
  font-family: "HBC Playfair", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.hbc-text p {
  margin: 0 0 1.05em;
}

.hbc-text p:first-child {
  font-size: clamp(1.12rem, 1.3vw, 1.28rem);
}

.hbc-empty {
  max-width: 760px;
  margin: 0 auto;
  padding: 46px 24px;
  text-align: center;
}

.hbc-empty p {
  margin: 14px 0 0;
  color: var(--hbc-muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.hbc-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--hbc-line);
}

.hbc-gallery figure {
  margin: 0;
  border: 1px solid var(--hbc-line);
  border-radius: var(--hbc-radius-inner);
  overflow: hidden;
  background: var(--hbc-field);
}

.hbc-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.hbc-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hbc-link-card {
  min-height: 96px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--hbc-line);
  border-radius: var(--hbc-radius-inner);
  background: var(--hbc-field);
  color: var(--hbc-text);
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hbc-link-card:hover {
  border-color: rgba(255, 174, 0, 0.52);
  background: rgba(255, 174, 0, 0.12);
  box-shadow: 0 0 30px rgba(255, 174, 0, 0.14);
  transform: translateY(-1px);
}

.hbc-link-card span {
  font-family: "HBC Oswald", sans-serif;
  font-size: 1.18rem;
  line-height: 1.16;
  text-transform: uppercase;
}

.hbc-link-card i {
  color: var(--hbc-gold);
  font-style: normal;
  font-size: 1.2rem;
}

.hbc-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--hbc-muted);
  font-family: "HBC Oswald", sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  padding: 2px 8px 0;
}

@media (max-width: 1180px) {
  .hbc-shell {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 980px);
    padding-top: 104px;
  }

  .hbc-side {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: min(82vw, 340px);
    height: 100vh;
    transform: translateX(-105%);
    transition: transform 240ms ease;
  }

  .hbc-side.is-open {
    transform: translateX(0);
  }

  .hbc-side-card {
    border-radius: 0 var(--hbc-radius-card) var(--hbc-radius-card) 0;
  }

  .hbc-mobile-bar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 22;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 64px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--hbc-line);
    background: rgba(18, 18, 16, 0.78);
    backdrop-filter: blur(18px);
  }

  .hbc-root[data-theme="light"] .hbc-mobile-bar {
    background: rgba(255, 255, 255, 0.8);
  }

  .hbc-mobile-toggle {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    gap: 4px;
    border: 1px solid var(--hbc-line);
    border-radius: 999px;
    color: var(--hbc-text);
    background: var(--hbc-field);
  }

  .hbc-mobile-toggle span {
    width: 16px;
    height: 1px;
    display: block;
    background: currentColor;
  }

  .hbc-mobile-brand {
    color: var(--hbc-text);
    font-family: "HBC Oswald", sans-serif;
    font-size: 1.24rem;
    text-transform: uppercase;
    text-decoration: none;
  }

  .hbc-controls {
    left: auto;
    right: 18px;
    top: 74px;
  }
}

@media (max-width: 760px) {
  .hbc-shell {
    width: min(100% - 20px, 620px);
    padding-top: 118px;
    gap: 20px;
  }

  .hbc-card-head,
  .hbc-section-title {
    padding: 26px 20px;
  }

  .hbc-intro-card,
  .hbc-content-card,
  .hbc-related-card {
    padding: 18px;
  }

  .hbc-info-grid,
  .hbc-link-grid,
  .hbc-gallery {
    grid-template-columns: 1fr;
  }

  .hbc-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hbc-root *,
  .hbc-root *::before,
  .hbc-root *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
