/* Version_mixed-v4 — shared header, navigation and CTA layer for every page.
   Scoped to body.v4 so v2/v3 markup is unaffected. */

body.v4 {
  --v4-red: #FF1A1A;
  --v4-gold: #c9a227;
  --v4-line: rgba(255, 255, 255, 0.1);
  /* Logo band narrowed by 20% vs base theme. */
  --header-logo-height: calc(104px * 0.8 * 4 / 3 * 4 / 3 * 0.8);
  --header-logo-band: calc(var(--header-logo-height) + 8px);
  overflow-x: clip;
}

/* ---------- Logo band: flat black text, tighter strip ---------- */
body.v4 .header-logo-row {
  gap: 16px;
  padding: 4px 24px 2px;
}
body.v4 .header-logo-row .tagline {
  color: #000;
  text-shadow: none;
  mix-blend-mode: normal;
}

/* ---------- Sticky bar: menu left, contacts right ---------- */
body.v4 .header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  max-width: min(96vw, 1560px);
  padding: 6px 20px;
}
body.v4 .main-nav {
  flex: 0 1 auto;
  min-width: 0;
  margin-right: auto;
}
body.v4 .nav-list {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 0;
}
body.v4 .nav-link {
  padding: 8px 8px;
  font-size: 13px;
  white-space: nowrap;
}
/* Current section stays visible while browsing it. */
body.v4 .nav-link.is-current,
body.v4 .sub-menu a.is-current {
  color: var(--v4-red);
}
body.v4 .nav-item > .nav-link.is-current {
  box-shadow: inset 0 -2px 0 var(--v4-red);
}
/* Base theme forces home icon white with !important — override for current. */
body.v4 .nav-link--home.is-current,
body.v4 .nav-link--home.is-current .nav-home-icon {
  color: var(--v4-red) !important;
}
body.v4 .nav-item--home > .nav-link--home.is-current {
  box-shadow: inset 0 -2px 0 var(--v4-red);
}

.head-contacts {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  margin-left: 32px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.head-phone,
.head-mail,
.head-callback {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.head-mail { font-weight: 400; color: rgba(255, 255, 255, 0.72); }
.head-callback {
  background: none;
  border: 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.45);
  padding: 0 0 2px;
  cursor: pointer;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
}
.head-phone:hover,
.head-mail:hover,
.head-callback:hover {
  color: var(--v4-red);
  border-bottom-color: var(--v4-red);
}
.head-phone svg,
.head-mail svg { width: 14px; height: 14px; flex-shrink: 0; }
.head-phone-label { display: none; }
.head-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  background: var(--v4-red);
  color: #fff !important;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.head-cta:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* Drop secondary contacts before the menu can collide with the phone. */
@media (max-width: 1340px) {
  .head-mail { display: none; }
}
@media (max-width: 1180px) {
  .head-callback { display: none; }
  body.v4 .nav-link { padding: 8px 6px; font-size: 12px; }
}
@media (max-width: 1100px) {
  /* Burger earlier than base 992: header has phone + CTA, 8 items don't fit. */
  body.v4 { --header-logo-height: calc(88px * 0.8); }
  body.v4 .header-logo-row { gap: 12px; padding: 6px 16px 2px; }
  body.v4 .header-logo-row .tagline { font-size: 13.2px; }
  body.v4 .header-inner { flex-wrap: nowrap; padding: 6px 12px; gap: 8px; }
  body.v4 .menu-toggle {
    display: flex;
    order: -1;
    z-index: 1004;
    flex: 0 0 auto;
  }
  body.v4 .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 88vw);
    height: 100%;
    height: 100dvh;
    margin-right: 0;
    flex: 0 0 auto;
    min-width: 0;
    background: var(--bg-elevated, #1c1c1c);
    padding: calc(var(--header-logo-band, 72px) + 56px) 20px calc(28px + env(safe-area-inset-bottom, 0px));
    transition: right 0.4s ease;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1003;
  }
  body.v4 .main-nav.open {
    right: 0;
    z-index: 10050;
  }
  body.v4 .nav-list {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 2px;
  }
  body.v4 .nav-link {
    font-size: 15px;
    padding: 12px 14px;
    white-space: normal;
  }
  body.v4 .nav-item > .nav-link.is-current {
    box-shadow: inset 3px 0 0 var(--v4-red);
  }
  body.v4 .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: rgba(0, 0, 0, 0.22);
    box-shadow: none;
    min-width: 0;
  }
  body.v4 .nav-item.sub-open .sub-menu { display: block; }
  .head-contacts {
    margin-left: auto;
    padding-left: 0;
    border-left: 0;
    gap: 10px;
  }
  .head-mail, .head-callback { display: none !important; }
}
@media (max-width: 640px) and (min-width: 761px) {
  .head-phone-num { display: none; }
  .head-phone svg { width: 18px; height: 18px; }
  .head-cta { padding: 8px 10px; font-size: 10px; }
  body.v4 .header-logo-row { gap: 8px; padding: 4px 12px 2px; }
  body.v4 .header-logo-row .tagline { font-size: 11px; max-width: 42vw; }
}
@media (max-width: 640px) {
  body.v4 .header-logo-row { gap: 8px; padding: 4px 12px 2px; }
  body.v4 .header-logo-row .tagline { font-size: 11px; max-width: 42vw; }
}
@media (max-width: 420px) {
  /* Tiny phones: keep logo, drop tagline text to avoid squeeze. */
  body.v4 .header-logo-row .tagline { display: none; }
  .head-cta { font-size: 9px; padding: 8px 8px; letter-spacing: 0; }
}

/* ---------- Champions placeholder ---------- */
.page-champions .champions-placeholder {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- Breadcrumbs ---------- */
body.v4 .breadcrumbs {
  font-size: 14px;
  font-weight: 600;
  word-break: break-word;
}
body.v4 .breadcrumbs a { border-bottom: 1px solid rgba(0, 0, 0, 0.25); }
body.v4 .breadcrumbs a:hover { border-bottom-color: var(--v4-red); }
body.v4 .breadcrumbs .crumb-sep { opacity: 0.5; font-weight: 400; }
body.v4 .breadcrumbs .crumb-current { opacity: 0.7; font-weight: 500; }
@media (max-width: 560px) {
  body.v4 .breadcrumbs { font-size: 12.5px; gap: 6px; }
}

/* ---------- Sibling navigation between related pages ---------- */
.v4-siblings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 32px 0 0;
}
.v4-siblings-label {
  margin: 0 4px 0 0;
  color: #000;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}
.v4-siblings a {
  display: inline-flex;
  align-items: center;
  padding: 9px 15px;
  background: #000;
  border: 1px solid var(--v4-line);
  border-left: 3px solid var(--v4-red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
}
.v4-siblings a:hover { background: #1a1a1a; transform: translateY(-2px); }
.v4-siblings a[aria-current="page"] {
  background: var(--v4-red);
  border-color: var(--v4-red);
  pointer-events: none;
}

/* ---------- Bottom CTA on inner pages ---------- */
.v4-page-cta {
  margin: 44px 0 8px;
  padding: clamp(22px, 3vw, 34px);
  background: #000;
  border: 1px solid var(--v4-line);
  border-top: 3px solid var(--v4-red);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 28px;
}
.v4-page-cta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.2;
}
.v4-page-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1.5;
}
.v4-page-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.v4-page-cta-primary,
.v4-page-cta-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: filter 0.2s ease, background 0.25s ease;
}
.v4-page-cta-primary {
  background: var(--v4-red);
  color: #fff;
  border: 1px solid var(--v4-red);
}
.v4-page-cta-primary:hover { filter: brightness(1.1); }
.v4-page-cta-phone {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.v4-page-cta-phone:hover { background: rgba(255, 255, 255, 0.08); }
@media (max-width: 820px) {
  .v4-page-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .v4-page-cta-actions { justify-content: center; }
}
@media (max-width: 560px) {
  .v4-page-cta { margin: 28px 0 8px; padding: 20px 16px; }
  .v4-page-cta-actions { width: 100%; }
  .v4-page-cta-primary,
  .v4-page-cta-phone {
    width: 100%;
    white-space: normal;
    text-align: center;
    padding: 13px 14px;
  }
  .v4-siblings { margin-top: 24px; gap: 8px; }
  .v4-siblings a { padding: 8px 12px; font-size: 12px; }
}

/* ---------- Mobile sticky navigation bar ---------- */
.v4-mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}
.v4-mobile-bar .mb-item {
  appearance: none;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 58px;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom, 0px));
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.02em;
  cursor: pointer;
  line-height: 1.1;
}
.v4-mobile-bar .mb-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.9;
}
.v4-mobile-bar .mb-item.is-current,
.v4-mobile-bar .mb-item[aria-current="page"] {
  color: #fff;
}
.v4-mobile-bar .mb-item.is-current svg,
.v4-mobile-bar .mb-item[aria-current="page"] svg {
  opacity: 1;
}
.v4-mobile-bar .mb-more.is-open {
  color: #fff;
  background: #1a1a1a;
}
@media (max-width: 760px) {
  .v4-mobile-bar { display: grid; }
  body.v4 {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
  }
  body.v4 .menu-toggle {
    display: none !important;
  }
  body.v4 .main-nav {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
  body.v4 .variant-badge { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  body.v4 .v4-to-top { bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }

  /* Top strip = old sticky CTAs: call + trial signup */
  body.v4 .header-nav-spacer { height: 48px; }
  body.v4 .header-inner {
    padding: 0;
    gap: 0;
    max-width: none;
  }
  body.v4 .head-contacts {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    gap: 0;
  }
  body.v4 .head-phone {
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 10px;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-bottom: 0;
  }
  body.v4 .head-phone:hover {
    color: #fff;
    background: #1a1a1a;
    border-bottom-color: transparent;
  }
  body.v4 .head-phone-num { display: none !important; }
  body.v4 .head-phone-label { display: inline !important; }
  body.v4 .head-phone svg { width: 16px; height: 16px; }
  body.v4 .head-cta {
    display: inline-flex !important;
    width: 100%;
    min-height: 48px;
    padding: 12px 10px;
    border-radius: 0;
    font-size: 12px;
    letter-spacing: 0.02em;
  }
}
@media (max-width: 380px) {
  .v4-mobile-bar .mb-item { font-size: 9px; gap: 2px; padding-left: 2px; padding-right: 2px; }
  .v4-mobile-bar .mb-item svg { width: 18px; height: 18px; }
}

/* ---------- Back to top ---------- */
.v4-to-top {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9989;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border: 1px solid var(--v4-line);
  border-top: 2px solid var(--v4-red);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.v4-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.v4-to-top:hover { background: var(--v4-red); }
.v4-to-top svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .v4-to-top {
    bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    left: max(12px, env(safe-area-inset-left, 0px));
    width: 40px;
    height: 40px;
  }
}

/* ---------- Footer ---------- */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  align-self: center;
  max-width: 260px;
}
.footer-brand .footer-logo { align-self: center; }
.footer-brand-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-heading);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
body.v4 .footer-cols { gap: 28px 28px; }
body.v4 .footer-col-title {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
body.v4 .footer-menu a { color: rgba(255, 255, 255, 0.82); }
body.v4 .footer-menu a:hover { color: var(--v4-red); }
.footer-addr {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-addr li {
  display: grid;
  gap: 2px;
  font-family: var(--font-heading);
  font-size: 13px;
  line-height: 1.4;
}
.footer-addr strong { color: #fff; font-weight: 700; }
.footer-addr span { color: rgba(255, 255, 255, 0.65); }
.footer-hours {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-heading);
  font-size: 13px;
  line-height: 1.4;
}
.footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: var(--v4-red);
  color: #fff !important;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: filter 0.2s ease;
}
.footer-cta:hover { filter: brightness(1.1); }
/* Bottom bar: credit under brand (VK-aligned), legal from «Клуб». */
.footer-bottom-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--footer-edge, clamp(16px, 2.5vw, 28px));
  width: 100%;
  padding: 0 var(--footer-edge, clamp(16px, 2.5vw, 28px));
  box-sizing: border-box;
  text-align: left;
}
.footer-bottom-brand {
  width: auto;
  max-width: none;
  box-sizing: border-box;
  /* Match centered .footer-social row: VK is first of 3×30px + 2×12px gaps. */
  --fb-social-w: calc(30px * 3 + 12px * 2);
  --fb-brand-w: min(260px, 32vw);
  padding-left: calc((var(--fb-brand-w) - var(--fb-social-w)) / 2);
}
.footer-bottom-credit {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 22px;
  text-align: left;
  white-space: nowrap;
}
.footer-bottom-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 24px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}
/* Starts at «Клуб» column. */
.footer-legal {
  grid-column: 3 / 5;
  justify-self: start;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}
.footer-madeby {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}
.footer-sign {
  display: block;
  height: 20px;
  width: auto;
  max-width: 121px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-heading);
  font-size: 13px;
  text-decoration: none;
}
.footer-legal a:hover { color: var(--v4-red); }
@media (max-width: 1200px) {
  .footer-bottom-credit {
    flex-wrap: wrap;
    white-space: normal;
    max-width: min(100%, 34rem);
  }
  .footer-madeby { white-space: normal; }
}
@media (max-width: 992px) {
  body.v4 .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { max-width: none; }
  .footer-bottom-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .footer-bottom-spacer { display: none; }
  .footer-bottom-brand {
    width: auto;
    padding-left: 0;
    justify-self: center;
  }
  .footer-bottom-cols {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .footer-bottom-credit {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
  .footer-legal {
    grid-column: auto;
    justify-self: center;
    justify-content: center;
    margin-left: 0;
  }
}
@media (max-width: 560px) {
  body.v4 .footer-cols { grid-template-columns: 1fr; gap: 22px; }
  .footer-cta { width: 100%; }
  .footer-legal { gap: 8px 14px; }
  .footer-legal a { font-size: 12px; }
}

/* ---------- Background: kill iOS shimmer ----------
   Root causes on iPhone/iPad Safari:
   1) background-attachment:fixed on a layer that is already position:fixed
   2) CSS filter on a full-viewport image (GPU compositing crawl)
   3) SVG feTurbulence noise + mix-blend-mode:overlay (pixel shimmer)
   Keep .metal-bg as position:fixed (covers the viewport while content
   scrolls). Do NOT switch it to absolute — height:100% then only paints
   the first screen and the rest of the page goes flat grey. */
body.v4 .noise {
  display: none !important;
}
body.v4 .metal-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
}
body.v4 .metal-plate {
  background-attachment: scroll !important;
  background-position: center center;
  background-size: cover;
  filter: none;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: auto;
}
body.v4 .metal-plate::after { display: none; }
/* Text-block (бетон + перчатки): parallax fixed on desktop.
   iOS ignores/breaks background-attachment:fixed — keep scroll there only. */
body.v4 .text-block {
  background-image: url('/assets/img/text-block-bg-v4.jpg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
body.v4 .hero-img-static,
body.v4 .hero-img-layer {
  background-attachment: scroll !important;
}
/* Desktop only: restore a light contrast lift when a fine pointer is present. */
@media (hover: hover) and (pointer: fine) {
  body.v4 .metal-plate { filter: contrast(1.04) brightness(1.03); }
}
/* Touch / iOS: no fixed backgrounds (shimmer + incorrect compositing). */
@media (hover: none), (pointer: coarse) {
  body.v4 .text-block { background-attachment: scroll; }
}
@supports (-webkit-touch-callout: none) {
  body.v4 .metal-bg {
    position: fixed !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
  }
  body.v4 .metal-plate {
    filter: none !important;
    background-attachment: scroll !important;
  }
  body.v4 .metal-plate::after,
  body.v4 .noise { display: none !important; }
  body.v4 .text-block { background-attachment: scroll !important; }
  body.v4 .hero--static .hero-img-static { filter: none !important; }
}
/* Dynamic viewport units: iOS toolbars change vh mid-scroll. */
@supports (height: 100svh) {
  body.v4 .hero.hero--static { min-height: min(90svh, 880px); }
}
@media (max-width: 760px) {
  @supports (height: 100svh) {
    body.v4 .hero.hero--static { min-height: min(78svh, 700px); }
  }
}
@media (max-width: 480px) {
  body.v4 .hero.hero--static { min-height: auto; }
}

/* Inner pages: keep content clear of edges / mobile bar */
@media (max-width: 760px) {
  body.v4 .page-main {
    padding-left: 0;
    padding-right: 0;
  }
  body.v4 .page-main > .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  body.v4 .page-head h1 {
    font-size: clamp(26px, 8vw, 40px);
    word-break: break-word;
  }
}

body.v4 .footer-gloves { display: none !important; }
body.v4 .variant-badge { background: #111; color: #fff; }

/* Anketa: Yandex Form embed + QR */
.page-join .join-layout,
.page-join .join-panel,
.page-join .join-ya {
  min-width: 0;
  max-width: 100%;
}
.page-join .join-panel {
  box-sizing: border-box;
  overflow-x: clip;
}
.page-join .join-ya {
  width: 100%;
  max-width: min(650px, 100%);
  margin: 0 auto;
  overflow-x: clip;
  -webkit-overflow-scrolling: auto;
}
.page-join .join-ya iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto;
  min-height: 720px;
  border: 0;
  background: #fff;
  box-sizing: border-box;
}
.page-join .join-qr {
  margin: 28px auto 0;
  max-width: 280px;
  text-align: center;
}
.page-join .join-qr img {
  display: block;
  width: min(220px, 70vw);
  height: auto;
  margin: 0 auto 12px;
  background: #fff;
  padding: 10px;
  box-sizing: border-box;
}
.page-join .join-qr p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-heading);
  font-size: 13px;
  line-height: 1.4;
}
.page-join .join-qr a {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-join .join-qr a:hover { color: var(--v4-red, #FF1A1A); }
@media (max-width: 760px) {
  .page-join .page-main > .container {
    padding-left: 12px;
    padding-right: 12px;
    overflow-x: clip;
  }
  .page-join .join-panel {
    padding: 16px 12px;
  }
  .page-join .join-ya iframe {
    min-height: 640px;
  }
}

/* Contacts: no feedback form — single column + map */
.page-contacts .contact-layout {
  grid-template-columns: 1fr;
  max-width: 820px;
}
.page-contacts .contact-panel { display: none !important; }

.page-contacts .contact-map-frame {
  position: relative;
  background: linear-gradient(145deg, #b8bcc2 0%, #8e949c 45%, #a7adb4 100%);
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-top: 3px solid var(--v4-red, #FF1A1A);
  overflow: hidden;
  line-height: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 14px 36px rgba(0, 0, 0, 0.22);
}
.page-contacts .contact-map-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.1) 100%);
}
.page-contacts .patriot-map {
  width: 100%;
  height: min(56vh, 500px);
  min-height: 360px;
  position: relative;
  z-index: 1;
}
.page-contacts .maplibregl-ctrl-attrib {
  font-size: 10px;
  background: rgba(230, 233, 236, 0.9) !important;
  color: rgba(20, 22, 24, 0.7);
  max-width: min(92vw, 420px);
}
.page-contacts .maplibregl-ctrl-attrib a { color: rgba(20, 22, 24, 0.9); }
/* Always start as a tiny «i». MapLibre adds .maplibregl-compact-show on load —
   ignore it unless we mark .is-user-open after a real tap. */
.page-contacts .maplibregl-ctrl-attrib.maplibregl-compact {
  width: 24px !important;
  height: 24px !important;
  min-height: 24px;
  min-width: 24px;
  margin: 8px !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: rgba(230, 233, 236, 0.92) !important;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.page-contacts .maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner {
  display: none !important;
}
.page-contacts .maplibregl-ctrl-attrib.maplibregl-compact.is-user-open {
  width: auto !important;
  height: auto !important;
  max-width: min(88vw, 360px);
  padding: 4px 28px 4px 8px !important;
  overflow: visible !important;
}
.page-contacts .maplibregl-ctrl-attrib.maplibregl-compact.is-user-open .maplibregl-ctrl-attrib-inner {
  display: block !important;
}
.page-contacts .maplibregl-ctrl-attrib-button {
  width: 24px !important;
  height: 24px !important;
  background-color: transparent !important;
  display: block !important;
  z-index: 2;
}
.page-contacts .maplibregl-ctrl-group {
  background: linear-gradient(180deg, #d5d8dd, #9ea4ab) !important;
  border: 1px solid rgba(0, 0, 0, 0.28) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}
.page-contacts .maplibregl-ctrl-group button {
  background: transparent !important;
  width: 32px;
  height: 32px;
}
.page-contacts .maplibregl-ctrl-group button + button {
  border-top: 1px solid rgba(0, 0, 0, 0.18) !important;
}
.page-contacts .maplibregl-ctrl-group button span {
  filter: none;
}
.patriot-map-pin {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transform: translateY(2px);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}
.patriot-map-pin-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff6b6b, #FF1A1A 55%, #9a0000);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(255, 26, 26, 0.28);
}
.patriot-map-pin-label {
  max-width: 140px;
  padding: 4px 8px;
  background: linear-gradient(180deg, #1a1a1a, #0a0a0a);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 2px solid var(--v4-red, #FF1A1A);
  color: #fff;
  font-family: var(--font-heading), "Kanit", sans-serif;
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.patriot-map-popup .maplibregl-popup-content {
  background: linear-gradient(180deg, #1c1c1c, #0d0d0d);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top: 2px solid var(--v4-red, #FF1A1A);
  border-radius: 0;
  padding: 12px 14px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
  font-family: var(--font-heading), "Kanit", sans-serif;
}
.patriot-map-popup .maplibregl-popup-tip {
  border-top-color: #0d0d0d !important;
  border-bottom-color: #0d0d0d !important;
}
.patriot-map-popup .maplibregl-popup-close-button {
  color: #fff;
  font-size: 18px;
  padding: 2px 8px;
}
.patriot-map-popup-title {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
}
.patriot-map-popup-addr {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.4;
}
.patriot-map-popup-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.patriot-map-popup-links a {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--v4-red, #FF1A1A);
}
.patriot-map-popup-links a:hover { color: var(--v4-red, #FF1A1A); }
@media (max-width: 760px) {
  .page-contacts .patriot-map {
    height: min(50vh, 400px);
    min-height: 320px;
  }
  .patriot-map-pin-label { max-width: 110px; font-size: 10px; }
}

/* ---------- SEO related links / interlinking ---------- */
.v4-related {
  margin: 28px 0 0;
  padding: 22px 22px 18px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-left: 3px solid var(--v4-red, #FF1A1A);
}
.v4-related-title {
  margin: 0 0 14px;
  color: #111;
  font-family: var(--font-heading), "Kanit", sans-serif;
  font-size: 16px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.v4-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 18px;
}
.v4-related-list a {
  color: #111;
  font-family: var(--font-heading), "Kanit", sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}
.v4-related-list a:hover {
  color: var(--v4-red, #FF1A1A);
  border-bottom-color: var(--v4-red, #FF1A1A);
}
.disc-page-text-inner a,
.page-main article a:not(.disc-page-photo):not(.read-more):not(.section-more-btn) {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--v4-red, #FF1A1A);
}
.disc-page-text-inner a:hover {
  color: var(--v4-red, #FF1A1A);
}
@media (max-width: 700px) {
  .v4-related { padding: 16px; margin-top: 22px; }
  .v4-related-list { grid-template-columns: 1fr; gap: 10px; }
}


/* ---------- About page ---------- */
.page-about .about-list {
  margin: 16px 0 0;
  padding: 0 0 0 4px;
  list-style: none;
  display: grid;
  gap: 14px;
}
.page-about .about-list li {
  position: relative;
  padding: 0 0 0 22px;
  color: #111;
  font-size: 15px;
  line-height: 1.55;
}
.page-about .about-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--v4-red, #FF1A1A);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}
.page-about .hall-text-spaced {
  margin-top: 22px;
}
.page-about .disc-page-text-inner h2 {
  margin: 0 0 14px;
  font-family: var(--font-heading), "Kanit", sans-serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
}


.page-about .about-disciplines,
.page-about .about-disciplines h2,
.page-about .about-disciplines p,
.page-about .about-disciplines li,
.page-about .about-disciplines strong,
.page-about .about-disciplines a {
  color: #fff !important;
}
.page-about .about-disciplines a {
  border-bottom: 1px solid #FF1A1A;
}
.page-about .about-disciplines a:hover {
  color: #FF1A1A !important;
  border-bottom-color: #FF1A1A;
}
.page-about .about-disciplines .about-list li::before {
  color: #FF1A1A;
}


.page-about .about-disciplines .about-term {
  border-bottom: 1px solid #FF1A1A;
  color: #fff !important;
  font-weight: 700;
}

/* v4sib1: siblings label on own row, links in one row on mobile */
.v4-siblings-label {
  flex: 0 0 100% !important;
  width: 100% !important;
}
@media (max-width: 560px) {
  .v4-siblings-label { margin: 0 0 4px !important; }
  .v4-siblings a {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    justify-content: center !important;
    padding: 8px 6px !important;
    font-size: 11px !important;
  }
}
