:root{
  --bg: #F4F4F6;
  --bg2: #FFFFFF;
  --card: rgba(0,0,0,0.03);
  --border: rgba(0,0,0,0.10);
  --text: #0E0E11;
  --muted: rgba(0,0,0,0.70);
  --accent: #ff00f3;
  --shadow: rgba(0,0,0,0.16);

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1320px;

  --header-h: 104px;
  --header-gap: 10px;
  --footerbar-h: 100px;

  --active-outline: 2px;
  --active-ring: rgba(255, 0, 243, 0.16);
  --active-glow: rgba(255, 0, 243, 0.28);

  
  --header-bg: linear-gradient(to bottom, #eeeeF3, #d7d7de);
  --footer-bg: #b7b7bc;

  
  --btn-soft-bg: rgba(255, 0, 243, 0.06);
  --btn-soft-bg-hover: rgba(255, 0, 243, 0.10);
  --btn-soft-shadow: 0 0 0 2px rgba(255, 0, 243, 0.12), 0 10px 24px rgba(255, 0, 243, 0.14);
  --btn-soft-shadow-hover: 0 0 0 3px rgba(255, 0, 243, 0.16), 0 12px 26px rgba(255, 0, 243, 0.18);
}



:root[data-theme="dark"]{
  --bg: #121214;
  --bg2: #16161A;
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  --text: #FFFFFF;
  --muted: rgba(255,255,255,0.78);
  --shadow: rgba(0,0,0,0.55);

  --active-ring: rgba(255, 0, 243, 0.18);
  --active-glow: rgba(255, 0, 243, 0.35);

  --header-bg: #1a1a20;
  --footer-bg: #15151a;

  --btn-soft-bg: rgba(255, 0, 243, 0.10);
  --btn-soft-bg-hover: rgba(255, 0, 243, 0.14);
  --btn-soft-shadow: 0 0 0 2px rgba(255, 0, 243, 0.10), 0 10px 24px rgba(255, 0, 243, 0.12);
  --btn-soft-shadow-hover: 0 0 0 3px rgba(255, 0, 243, 0.14), 0 12px 26px rgba(255, 0, 243, 0.16);
}



*{ box-sizing: border-box; }

html{
  font-size: 20px;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scroll-behavior: smooth;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: var(--footerbar-h);
}

a{
  color: inherit;
  text-decoration: none;
}

img,
video,
iframe{
  max-width: 100%;
}

img,
video{
  height: auto;
}

a:hover{
  text-decoration: none;
}

:focus-visible{
  outline: 3px solid rgba(255, 0, 243, 0.35);
  outline-offset: 3px;
  border-radius: 12px;
}

main{
  padding-top: calc(var(--header-h) + var(--header-gap));
}

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



.container{
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}



header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
  height: var(--header-h);

  background: var(--header-bg);
  border-bottom: 1px solid rgba(0,0,0,0.08);

  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  isolation: isolate;
  overflow: hidden;
}

:root[data-theme="dark"] header{
  border-bottom: 1px solid rgba(255,255,255,0.08);
}



.navbar{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  height: var(--header-h);
}



.brand{
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: max-content;
}

.logo-wrap{
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-wrap .logo{
  position: absolute;
  inset: 0;
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.logo-secondary{
  height: 36px;
  width: auto;
  object-fit: contain;
  animation: none !important;
  transform: none !important;
}

@keyframes slow-spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

.logo-spin{
  animation: slow-spin 36s linear infinite;
  transform-origin: center;
}



.navlinks{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;

  flex-wrap: nowrap;
  white-space: nowrap;
  min-width: 0;
}

.navlinks a{
  position: relative;

  height: 44px;
  padding: 0 18px;
  border-radius: 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;

  min-width: 110px;

  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;

  color: var(--muted);
  border: 1px solid transparent;

  transition:
    border-color .22s ease,
    box-shadow .22s ease,
    background-color .22s ease,
    color .22s ease,
    transform .12s ease;
}

.navlinks a::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 0, 243, 0.25),
    rgba(255, 0, 243, 0.15) 35%,
    rgba(255, 0, 243, 0.06) 55%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.navlinks a:hover::before{
  opacity: 1;
}

.navlinks a:hover{
  color: var(--text);
  border-color: rgba(255, 0, 243, 0.45);
  background: rgba(255, 0, 243, 0.04);
  box-shadow:
    0 0 0 2px rgba(255, 0, 243, 0.12),
    0 10px 24px rgba(255, 0, 243, 0.14);
  transform: translateY(-1px);
}

.navlinks a:active{
  transform: translateY(0) scale(0.98);
}

.navlinks a.active{
  color: var(--text);
  outline: var(--active-outline) solid var(--accent);
  outline-offset: 0;
  background: rgba(255, 0, 243, 0.06);
  box-shadow:
    0 0 0 3px var(--active-ring),
    0 8px 22px var(--active-glow);
}



.actions{
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  min-width: max-content;
}

.controls{
  display: flex;
  gap: 8px;
  align-items: center;
}

.social-link{
  width: 44px;
  height: 44px;
  border-radius: 14px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.75);

  transition:
    border-color .22s ease,
    box-shadow .22s ease,
    background-color .22s ease,
    transform .12s ease;
}

.social-link svg{
  width: 21px;
  height: 21px;
  display: block;
  fill: currentColor;
  opacity: 0.9;
}

.social-link:hover{
  border-color: rgba(255, 0, 243, 0.45);
  box-shadow:
    0 0 0 2px rgba(255, 0, 243, 0.12),
    0 10px 24px rgba(255, 0, 243, 0.10);
  background: rgba(255, 0, 243, 0.04);
}

.social-link:active{
  transform: scale(0.96);
}

:root[data-theme="dark"] .social-link{
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
}

.header-social{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
  border-left: 1px solid var(--border);
}

:root[data-theme="dark"] .header-social{
  border-left-color: rgba(255,255,255,0.12);
}

.footer-links{
  display: flex;
  align-items: center;
  gap: 12px;
}



.lang{
  display: flex;
  gap: 6px;
}

.lang button,
#themeToggle{
  height: 44px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;

  background: #fff;
  color: #111;
  border: 1px solid rgba(0,0,0,0.10);

  transition:
    border-color .22s ease,
    box-shadow .22s ease,
    background-color .22s ease,
    color .22s ease;
}

.lang button{
  padding: 0 16px;
}

#themeToggle{
  width: 98px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 10px;
  overflow: hidden;
  flex-shrink: 0;
}

#themeToggle .sun,
#themeToggle .moon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  min-width: 0;
  overflow: visible;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.2rem;
}

:root[data-theme="dark"] .lang button,
:root[data-theme="dark"] #themeToggle{
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-color: rgba(255,255,255,0.12);
}

.lang button.active{
  color: var(--text);
  outline: var(--active-outline) solid var(--accent);
  outline-offset: 0;
  box-shadow:
    0 0 0 3px var(--active-ring),
    0 8px 22px var(--active-glow);
  background: transparent;
}

.lang button.active::after{
  content: "✓";
  display: inline-block;
  margin-left: 8px;
  font-weight: 900;
  color: var(--accent);
}



.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 0 22px;

  border-radius: 16px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none !important;
  line-height: 1;

  border: 2px solid var(--accent);
  background: var(--btn-soft-bg);
  color: var(--text);

  box-shadow: var(--btn-soft-shadow);
  transition:
    transform .18s ease,
    background-color .18s ease,
    box-shadow .18s ease,
    color .18s ease;
}

.btn:hover{
  transform: translateY(-1px);
  background: var(--btn-soft-bg-hover);
  box-shadow: var(--btn-soft-shadow-hover);
}

.btn:active{
  transform: translateY(0) scale(0.98);
}

.btn.primary{
  background: var(--btn-soft-bg);
  color: var(--text);
}

.btn.ghost{
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.fight-btn,
.school-btn,
.direction-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 0 22px;

  font-weight: 800;
  font-size: 1rem;
  line-height: 1;

  border: 2px solid var(--accent);
  border-radius: 16px;

  background: var(--btn-soft-bg);
  color: var(--text);

  text-decoration: none !important;
  cursor: pointer;

  box-shadow: var(--btn-soft-shadow);
  transition:
    transform .18s ease,
    background-color .18s ease,
    box-shadow .18s ease,
    color .18s ease;
}

.fight-btn:hover,
.school-btn:hover,
.direction-btn:hover{
  transform: translateY(-1px);
  background: var(--btn-soft-bg-hover);
  box-shadow: var(--btn-soft-shadow-hover);
}

.fight-btn:active,
.school-btn:active,
.direction-btn:active{
  transform: translateY(0) scale(0.98);
}

.dirs .btn,
.dirs .btn.ghost,
.dirs-soft .btn,
.dirs-soft .btn.ghost,
.soft-actions .btn,
.soft-actions .btn.ghost{
  min-height: 44px !important;
  padding: 0 22px !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
  line-height: 1 !important;

  border: 2px solid var(--accent) !important;
  border-radius: 16px !important;

  background: var(--btn-soft-bg) !important;
  color: var(--text) !important;

  box-shadow: var(--btn-soft-shadow) !important;
  text-decoration: none !important;

  transition:
    transform .18s ease,
    background-color .18s ease,
    box-shadow .18s ease,
    color .18s ease !important;
}

.dirs .btn:hover,
.dirs .btn.ghost:hover,
.dirs-soft .btn:hover,
.dirs-soft .btn.ghost:hover,
.soft-actions .btn:hover,
.soft-actions .btn.ghost:hover{
  transform: translateY(-1px);
  background: var(--btn-soft-bg-hover) !important;
  box-shadow: var(--btn-soft-shadow-hover) !important;
}

.dirs .btn:active,
.dirs .btn.ghost:active,
.dirs-soft .btn:active,
.dirs-soft .btn.ghost:active,
.soft-actions .btn:active,
.soft-actions .btn.ghost:active{
  transform: translateY(0) scale(0.98);
}





.section{
  padding: 34px 0;
}

@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

.section:first-child{
  padding-top: 34px;
}

.section + .section{
  padding-top: 22px;
}

.reveal-ready .scroll-reveal{
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  backface-visibility: hidden;
  transition:
    opacity 680ms cubic-bezier(.22, .61, .36, 1),
    transform 680ms cubic-bezier(.22, .61, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-ready .scroll-reveal.is-visible{
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@media (max-width: 700px){
  .reveal-ready .scroll-reveal{
    transform: translate3d(0, 18px, 0);
    transition-duration: 520ms;
    transition-delay: 0ms;
  }
}

.rubik-tile,
.sport-card,
.support-more-card,
.school-mini-card,
.school-results-card,
.tools-story-row,
.register-card,
.register-type-card,
.event-card,
.partner-card,
.partner-card--wide{
  contain: layout paint;
}

.section h1,
.section h2{
  margin: 0 0 18px;
  line-height: 1.1;
}

.section h1{
  font-size: clamp(36px, 4vw, 56px);
}

.section h2{
  font-size: clamp(30px, 3vw, 44px);
}

.section h3{
  margin: 0 0 12px;
}

.section p{
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.grid2,
.grid3,
.dirs,
.dirs-soft,
.directions-grid,
.rubik-grid,
.sport-grid,
.support-more-grid{
  margin-top: 22px;
}

.card,
.soft-card,
.soft-article,
.support-more-card,
.rubik-tile,
.sport-card{
  margin: 0;
}


.events-page .section:first-of-type{
  padding-top: 0px;
  padding-bottom: 0px;
}

.section h2{
  font-size: 1.7rem;
  margin: 0 0 10px;
}

.section p{
  font-size: 1.02rem;
  color: var(--muted);
  margin: 0 0 14px;
}

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

.grid2{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}


.card{
  border-radius: var(--radius);
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.grid2 > .card,
.grid3 > .card,
.about-flex > .card{
  min-height: 100%;
}

.card-actions{
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.vline,
.vline-block{
  padding-left: 0 !important;
}

.vline::before,
.vline-block::before,
.vline-block h2::before,
.section .vline::before,
.section .vline-block::before,
.section .vline-block h2::before{
  content: none !important;
  display: none !important;
}



.hero{
  padding: 0 0 14px;
  margin-top: 0;
}

.hero-full{
  padding-top: 0;
}

.hero-slider-full{
  position: relative;
  border-radius: 26px;
  overflow: hidden;

  border: 2px solid var(--accent);
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);

  aspect-ratio: 16 / 6;
  background: #000;
}

.hero-slider-full .hero-slider-track{
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slider-full .hero-slide{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 520ms ease, transform 900ms ease;
  z-index: 1;
  pointer-events: none;
}

.hero-slider-full .hero-slide.is-active{
  opacity: 1;
  transform: scale(1);
  z-index: 2;
  pointer-events: auto;
}

.hero-slider-full .hero-slide img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 5%;
}


.hero-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;

  width: 46px;
  height: 46px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.40);
  background: rgba(0,0,0,0.35);
  color: #fff;

  display: grid;
  place-items: center;

  font-size: 22px;
  line-height: 1;

  cursor: pointer;
  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    background-color .16s ease,
    transform .12s ease;
}

.hero-arrow:hover{
  border-color: rgba(255,0,243,.85);
  box-shadow: 0 0 0 3px rgba(255,0,243,.14);
  background: rgba(0,0,0,.44);
}

.hero-arrow:active{
  transform: translateY(-50%) scale(0.96);
}

.hero-arrow-prev{ left: 18px; }
.hero-arrow-next{ right: 18px; }


.hero-slider-dots{
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);

  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;

  z-index: 20;
  pointer-events: auto;
}

.hero-slider-dots .hero-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;

  border: 0;
  padding: 0;
  margin: 0;

  background: rgba(255,255,255,0.55);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: pointer;

  transition: transform .15s ease, background-color .15s ease, opacity .15s ease;
  opacity: .9;
}

.hero-slider-dots .hero-dot:hover{
  transform: scale(1.15);
  opacity: 1;
}

.hero-slider-dots .hero-dot.is-active{
  background: var(--accent);
  opacity: 1;
  transform: scale(1.1);
  box-shadow:
    0 0 0 3px rgba(255,0,243,0.18),
    0 6px 16px rgba(0,0,0,0.25);
}

.hero-slider-dots .hero-dot:focus{
  outline: none;
}

.hero-slider-dots .hero-dot:focus-visible{
  outline: 3px solid rgba(255,0,243,0.35);
  outline-offset: 3px;
}



.about-flex{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 30px;
}

.about-image{
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.about-image img{
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  filter: none !important;
}



.dir-article{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: stretch;

  padding: 28px;

  background: var(--bg2);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  overflow: hidden;

  position: relative;
}

:root[data-theme="dark"] .dir-article{
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}

.dir-article--reverse{
  grid-template-columns: 1fr 1.1fr;
}

.dir-article--reverse .dirs-media{
  order: 2;
}

.dir-article--reverse .dir-content{
  order: 1;
}

.dir-content{
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  max-width: 560px;
}

.dir-content h2,
.dir-content h3{
  margin: 0;
  font-size: 32px;
  font-weight: 900;
}

.dir-content p{
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.dirs-media{
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: 18px;
  background: transparent;
  pointer-events: none;
}

.dirs-media::after{
  content: none !important;
  display: none !important;
}

.dirs-media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 0 !important;
  filter: none !important;
  pointer-events: none;
}



.gallery-item{
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: block;
}

.gallery-item img{
  width: 100%;
  border-radius: 20px;
  display: block;
  transition: .3s;
}

.gallery-item:hover img{
  transform: scale(1.03);
}

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: .2s ease;
  z-index: 9999;
}

.lightbox.active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-img{
  max-width: min(92vw, 980px);
  max-height: 86vh;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}

.lightbox-close{
  position: absolute;
  top: 18px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.25);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.25);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-prev{ left: 16px; }
.lightbox-next{ right: 16px; }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover{
  border-color: rgba(255, 0, 243, .45);
}



.school-story{
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 26px;
  align-items: stretch;
}

.story-right{
  min-width: 0;
}

.story-slider{
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg2);
  border: 2px solid rgba(255, 0, 243, 0.22);
  box-shadow:
    0 0 0 3px rgba(255, 0, 243, 0.06),
    0 14px 34px rgba(0,0,0,0.08);
}

.story-slides{
  position: relative;
  width: 100%;
  height: 100%;
}

.story-slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}

.story-slide.is-active{
  opacity: 1;
  pointer-events: auto;
}

.story-slide img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.story-dots{
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.story-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(255,255,255,0.65);
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.story-dot.is-active{
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 0, 243, 0.16);
}



.locations-slider{
  display: flex;
  gap: 22px;
  margin-top: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 4px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 0, 243, 0.35) transparent;
}

.locations-slider::-webkit-scrollbar{
  height: 8px;
}

.locations-slider::-webkit-scrollbar-track{
  background: transparent;
}

.locations-slider::-webkit-scrollbar-thumb{
  background: rgba(255, 0, 243, 0.35);
  border-radius: 999px;
}

.location-card{
  min-width: 360px;
  flex: 0 0 360px;
  scroll-snap-align: start;

  background: var(--bg2);
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid rgba(255, 0, 243, 0.18);
  box-shadow:
    0 0 0 2px rgba(255, 0, 243, 0.05),
    0 12px 28px rgba(0,0,0,0.06);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.location-card:hover{
  transform: translateY(-3px);
  border-color: rgba(255, 0, 243, 0.34);
  box-shadow:
    0 0 0 3px rgba(255, 0, 243, 0.08),
    0 16px 34px rgba(0,0,0,0.10);
}

.location-card img{
  width: 100%;
  height: 260px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.location-title{
  padding: 16px 18px 18px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
}



.rubik-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.rubik-card{
  position: relative;
  display: block;
  aspect-ratio: 1 / 0.82;
  overflow: hidden;
  text-decoration: none;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--bg2);
}

.rubik-card img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.rubik-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.00) 0%,
    rgba(0,0,0,0.20) 55%,
    rgba(0,0,0,0.78) 100%
  );
}

.rubik-overlay{
  position:absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 2;

  display:flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;

  color: #fff;
}

.rubik-overlay,
.rubik-overlay *{
  color:#fff !important;
}

.rubik-title{
  margin: 0;
  font-size: clamp(20px, 1.6vw, 34px);
  font-weight: 900;
  line-height: 1.05;
  text-shadow: 0 6px 18px rgba(0,0,0,0.65);
}

.rubik-card:hover{
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}



.directions-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.rubik-tile{
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: var(--bg2);
  border: 1px solid var(--border);
  text-decoration: none !important;
  color: var(--text);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    background-color .18s ease;
}

:root[data-theme="dark"] .rubik-tile{
  box-shadow: 0 14px 34px rgba(0,0,0,0.42);
}

.rubik-tile:hover{
  transform: translateY(-4px);
  border-color: rgba(255, 0, 243, 0.55);
  box-shadow:
    0 0 0 2px rgba(255, 0, 243, 0.08),
    0 18px 40px rgba(0,0,0,0.12);
}

.rubik-thumb{
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: rgba(0,0,0,0.04);
  border-bottom: 1px solid var(--border);
}

:root[data-theme="dark"] .rubik-thumb{
  background: rgba(255,255,255,0.04);
}

.rubik-thumb img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}

.rubik-tile:hover .rubik-thumb img{
  transform: scale(1.04);
}

.rubik-body{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 20px;
  flex: 1;
}

.rubik-name{
  margin: 0;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--text);
}

.rubik-text{
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.rubik-link{
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  border: 2px solid var(--accent);
  background: var(--btn-soft-bg);
  color: var(--text);
  font-weight: 800;
  line-height: 1;
  box-shadow: var(--btn-soft-shadow);
  transition:
    transform .18s ease,
    background-color .18s ease,
    box-shadow .18s ease,
    color .18s ease;
}

.rubik-tile:hover .rubik-link{
  transform: translateY(-1px);
  background: var(--btn-soft-bg-hover);
  box-shadow: var(--btn-soft-shadow-hover);
}



.sport-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.sport-card{
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 0;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;

  display: flex;
  flex-direction: column;
}

:root[data-theme="dark"] .sport-card{
  box-shadow: 0 14px 32px rgba(0,0,0,0.45);
}

.sport-card:hover{
  transform: translateY(-3px);
  border-color: rgba(255, 0, 243, 0.55);
  box-shadow: 0 18px 44px var(--shadow);
}

.sport-media{
  padding: 10px;
  background: transparent;
  overflow: hidden;
  line-height: 0;
}

.sport-media .sport-img{
  width: 100%;
  height: 260px;
  display: block;
  object-fit: cover;
  object-position: center;

  border: 1px solid var(--border);
  border-radius: 0;
  box-sizing: border-box;
  transform: none !important;
}

.fightclub .sport-media img,
.fightclub .sport-media .sport-img{
  width: 100%;
  height: 260px;
  display: block;
  object-fit: cover;
  object-position: center;
  max-width: none;
  max-height: none;
}

.sport-body{
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.sport-title{
  margin: 0;
  font-weight: 900;
  letter-spacing: 0.01em;
  font-size: 1.15rem;
}

.sport-desc{
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.sport-meta{
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.sport-meta .row{
  display: grid;
  gap: 4px;
}

.sport-meta .label{
  font-weight: 900;
  font-size: 0.95rem;
}

.sport-meta .value{
  color: var(--muted);
  font-size: 0.98rem;
}

.sport-actions{
  margin-top: auto;
}

.fightclub .sport-media .sport-img{ object-position: 50% 20%; }
.fightclub .sport-card.medieval .sport-img{ object-position: 50% 65%; }
.fightclub .sport-card.boxing .sport-img{ object-position: 50% 35%; }
.fightclub .sport-card.grappling .sport-img{
  object-position: 40% 40%;
  transform: scale(1.35);
}



.club-info-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
  min-width: 0;
}

.club-panel{
  border-radius: var(--radius);
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 18px;

  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
  max-width: 100%;
}

.club-price-list{
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.club-price-item{
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
}

.club-price-item strong,
.club-price-item span{
  display: block;
}

.club-contact-text{
  display: grid;
  gap: 12px;
}

.club-contact-text p{
  margin: 0;
}

.club-panel-actions{
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: flex-start;
}

@media (max-width: 920px){
  .club-info-grid{
    grid-template-columns: 1fr;
  }
}

.soft-card{
  border-radius: 26px;
  padding: 28px 30px;
  background: var(--bg2);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.soft-card h2,
.soft-card h3{
  margin: 0 0 14px;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--text);
}

.soft-card p{
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

:root[data-theme="dark"] .soft-card{
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}

.dirs{
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dirs-soft{
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.dirs-soft > .soft-article--wide{
  grid-column: 1 / -1;
}

.soft-article{
  border-radius: 16px;
  background: var(--bg2);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  overflow: hidden;

  display: flex;
  flex-direction: column;
  min-height: 100%;
}

:root[data-theme="dark"] .soft-article{
  border-color: rgba(255,255,255,0.10);
  box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}

.soft-media{
  position: relative;
  height: 320px;
  background: rgba(0,0,0,0.03);
}

:root[data-theme="dark"] .soft-media{
  background: rgba(255,255,255,0.06);
}

.soft-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.soft-body{
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.soft-body h3{
  margin: 0 0 12px;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.soft-body p{
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

.soft-actions{
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.soft-media img.map-img{
  object-position: 80% 35% !important;
}



.support-partners{
  width: 100%;
  padding: 48px 0;
  background: #c1c1c6;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

:root[data-theme="dark"] .support-partners{
  background: #1c1c22;
}

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


.partner-card--wide{
  grid-column: 1 / -1;
}

.partner-card{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 145px;
  padding: 18px 20px;
  border-radius: 22px;
  background: #e6e6ea;
  border: 1px solid rgba(0,0,0,0.08);
  text-decoration: none !important;
  transition:
    transform .25s ease,
    background-color .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.partner-card:hover{
  transform: translateY(-3px);
  background: #ffffff;
  border-color: rgba(255,0,243,0.25);
  box-shadow: 0 12px 26px rgba(0,0,0,0.10);
}

:root[data-theme="dark"] .partner-card{
  background: #2c2c35;
  border: 1px solid rgba(255,255,255,0.08);
}

:root[data-theme="dark"] .partner-card:hover{
  background: #34343e;
  border-color: rgba(255,0,243,0.22);
  box-shadow: 0 14px 28px rgba(0,0,0,0.35);
}


.partner-card--wide{
  min-height: 120px;
  padding: 16px 20px;
}

.partner-logo{
  display: block;
  width: auto;
  height: 70px; 
  max-width: 220px;
  object-fit: contain;
}


.partner-group{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.partner-group--triple .partner-logo{
  height: 60px;
  max-width: 180px;
}

.partner-group--double .partner-logo{
  height: 65px;
  max-width: 220px;
}


.partner-logo--gmf{
  max-width: 190px;
}

.partner-logo--razom{
  max-width: 240px;
}

.partner-logo--prom{
  max-width: 240px;
}

.partner-logo--giz{
  max-width: 220px;
}


.partner-logo--ukaid{
  height: 58px !important;
  max-width: 90px !important;
}

.partner-logo--mc{
  height: 66px !important;
  max-width: 210px !important;
}

.partner-logo--bloom{
  height: 62px !important;
  max-width: 120px !important;
}

.partner-logo--irf{
  height: 62px !important;
  max-width: 190px !important;
}

.partner-logo--eu{
  height: 58px !important;
  max-width: 190px !important;
}


@media (max-width: 1024px){
  .partners-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-group{
    gap: 20px;
  }
}

@media (max-width: 700px){
  .partners-grid{
    grid-template-columns: 1fr;
  }

  .partner-card,
  .partner-card--wide{
    grid-column: auto;
    min-height: 130px;
    padding: 16px;
  }

  .partner-logo{
    height: 58px;
    max-width: 180px;
  }

  .partner-group{
    gap: 14px;
    flex-wrap: wrap;
  }

  .partner-group--triple .partner-logo{
    height: 48px;
    max-width: 140px;
  }

  .partner-group--double .partner-logo{
    height: 52px;
    max-width: 150px;
  }

  .partner-logo--ukaid{
    height: 46px !important;
    max-width: 70px !important;
  }

  .partner-logo--mc{
    height: 54px !important;
    max-width: 150px !important;
  }

  .partner-logo--bloom{
    height: 50px !important;
    max-width: 95px !important;
  }

  .partner-logo--irf,
  .partner-logo--eu{
    height: 50px !important;
    max-width: 140px !important;
  }
}



.partner-logo--ukaid{
  height: 70px !important;
}

.partner-logo--irf{
  height: 75px !important;
}

.partner-logo--eu{
  height: 75px !important;
}


.partner-logo--bloom{
  height: 70px !important;
}

.partner-logo--gmf{
  height: 75px !important;
}


.partner-logo--razom{
  height: 65px !important;
}

.partner-logo--giz{
  height: 65px !important;
}

.partner-logo--prom{
  height: 68px !important;
}

.partner-logo--mc{
  height: 30px !important;
}

.footer-bar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;

  background: var(--footer-bg);
  border-top: 1px solid rgba(0,0,0,0.10);
  backdrop-filter: blur(10px);

  height: var(--footerbar-h);
  display: flex;
  align-items: center;

  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;

  transition: transform 220ms ease, opacity 220ms ease;
}

:root[data-theme="dark"] .footer-bar{
  border-top: 1px solid rgba(255,255,255,0.10);
}

body.footer-visible .footer-bar{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.footer-grid{
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  position: relative;
}

.footer-left{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.footer-text{
  display: none !important;
}

.footer-bar .logo-wrap{
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
}

.footer-bar .logo-wrap .logo{
  width: 54px;
  height: 54px;
}

.footer-bar .logo-secondary{
  height: 36px;
}

.footer-partners{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.footer-partners .partners-label{
  display:none !important;
}

.partners-logos{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0 18px;
  flex-wrap: nowrap;
  min-width: 0;
  max-height: 46px;
  overflow: hidden;
}

.partners-logos a,
.footer-partner-mark{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 0;
}

.partners-logos img{
  height: 34px;
  width: auto;
  max-width: 128px;
  object-fit: contain;
  display: block;
  opacity: 0.95;
  transition: opacity .2s ease, transform .2s ease;
}

.partners-logos a:nth-child(1) img{ max-width: 46px; }
.partners-logos a:nth-child(2) img{ max-width: 116px; }
.partners-logos a:nth-child(3) img{ max-width: 66px; }
.partners-logos a:nth-child(4) img{ max-width: 92px; }
.partners-logos a:nth-child(5) img{ max-width: 146px; }
.partners-logos a:nth-child(6) img{ max-width: 132px; }
.partners-logos a:nth-child(7) img{ max-width: 104px; }
.partners-logos a:nth-child(8) img{ max-width: 136px; }
.partners-logos a:nth-child(9) img{ max-width: 146px; }

.partners-logos img:hover{
  opacity: 1;
  transform: translateY(-1px);
}

.footer-links{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}



.mobile-toggle{
  display: none !important;
  height: 44px;
  width: 56px;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 900;
  font-size: 22px;
  line-height: 1;

  border: 2px solid var(--accent);
  background: var(--btn-soft-bg);
  color: var(--text);
  box-shadow: var(--btn-soft-shadow);

  align-items: center;
  justify-content: center;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.mobile-toggle:hover{
  background: var(--btn-soft-bg-hover);
  box-shadow: var(--btn-soft-shadow-hover);
  transform: translateY(-1px);
}

.mobile-toggle:active{
  transform: translateY(0) scale(0.98);
}



.hero-overlay{
  position: absolute;
  left: 40px;
  bottom: 40px;
  z-index: 10;
}

.hero-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 44px;
  padding: 0 22px;

  border-radius: 16px;
  border: 2px solid var(--accent);

  font-weight: 800;
  font-size: 1rem;
  line-height: 1;

  color: #fff;
  text-decoration: none !important;

  background: var(--btn-soft-bg);
  box-shadow: var(--btn-soft-shadow);

  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease;
}

.hero-btn:hover{
  transform: translateY(-2px);
  background: var(--btn-soft-bg-hover);
  box-shadow: var(--btn-soft-shadow-hover);
}

:root[data-theme="dark"] .hero-btn{
  color: var(--text);
}



.event-topbar{
  margin-bottom: 20px;
}

.event-article{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.event-hero{
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
  padding: 0;
}

.event-title{
  margin: 0;
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.06;
  font-weight: 900;
  color: var(--text);
  background: transparent !important;
  padding: 0;
  box-shadow: none;
  word-break: break-word;
}

.event-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  padding: 0;
  margin: 0;
}

.event-meta-item{
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 1rem;
  background: transparent;
}

.event-meta-item strong{
  color: var(--text);
  font-weight: 900;
}

.event-cover-wrap{
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: transparent;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.event-cover{
  width: 100%;
  max-height: 560px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.event-content{
  padding: 24px;
  border-radius: 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
}

.event-text{
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
  white-space: pre-line;
}

.event-rich-text{
  white-space: normal;
}

.event-rich-paragraph{
  margin: 0 0 1.15em;
  color: var(--muted);
  line-height: 1.8;
}

.event-rich-paragraph:last-child{
  margin-bottom: 0;
}

.event-rich-paragraph--bold{
  color: var(--text);
  font-weight: 850;
}

.event-rich-paragraph--italic{
  font-style: italic;
}

.event-rich-paragraph--large{
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.38rem);
  font-weight: 750;
  line-height: 1.55;
}

.event-rich-inline-large{
  color: var(--text);
  font-size: 1.16em;
  font-weight: 750;
}

.event-rich-heading{
  color: var(--text);
  line-height: 1.15;
  font-weight: 950;
}

.event-rich-heading--2{
  margin: 1.55em 0 .65em;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.event-rich-heading--3{
  margin: 1.35em 0 .55em;
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
}

.event-rich-text > .event-rich-heading:first-child{
  margin-top: 0;
}

.event-rich-quote{
  margin: 1.4em 0;
  padding: 14px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(255, 0, 243, .06);
  color: var(--text);
  font-size: 1.08rem;
  font-style: italic;
}

.event-rich-list{
  margin: 1em 0 1.35em;
  padding-left: 1.5em;
  color: var(--muted);
}

.event-rich-list li + li{
  margin-top: .5em;
}

.event-rich-divider{
  height: 1px;
  margin: 1.8em 0;
  border: 0;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.event-rich-link-row{
  margin-top:1.15em;
  margin-bottom:1.15em;
}

.event-rich-link{
  color:var(--text);
  font-weight:850;
  text-decoration:underline;
  text-decoration-color:var(--accent);
  text-decoration-thickness:2px;
  text-underline-offset:4px;
  overflow-wrap:anywhere;
  transition:color .18s ease, text-decoration-thickness .18s ease;
}

.event-rich-link:hover{
  color:#b000a8;
  text-decoration-thickness:3px;
}

.admin-preview-banner{
  width: min(calc(100% - 32px), var(--container));
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(255, 0, 243, .4);
  border-radius: var(--radius);
  background: rgba(255, 0, 243, .08);
  color: var(--text);
  font-weight: 800;
}

.admin-preview-banner a{
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.event-gallery-block{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-gallery-title{
  margin: 0;
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--text);
}

.event-gallery{
  overflow: hidden;
}

.event-gallery-track{
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 0, 243, 0.35) transparent;
}

.event-gallery-track::-webkit-scrollbar{
  height: 8px;
}

.event-gallery-track::-webkit-scrollbar-track{
  background: transparent;
}

.event-gallery-track::-webkit-scrollbar-thumb{
  background: rgba(255, 0, 243, 0.35);
  border-radius: 999px;
}

.event-gallery-item{
  width: 720px;          
  height: 480px;         

  flex: 0 0 auto;
  scroll-snap-align: start;

  object-fit: cover;
  object-position: center;

  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg2);

  box-shadow: 0 10px 28px rgba(0,0,0,0.08);

  transition: transform .25s ease, box-shadow .25s ease;
}
.event-gallery-item:hover{
  transform: scale(1.04);
  box-shadow: 0 16px 36px rgba(0,0,0,0.15);
}

.event-card{
  min-height: 100%;
}

.event-card-cover{
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  margin-bottom: 14px;
  display: block;
}



body.event-page .section{
  padding-top: 20px;
}

body.event-page .event-topbar{
  margin-bottom: 10px;
}

body.event-page .event-article{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.event-page .event-hero{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

body.event-page .event-title{
  margin: 0;
  padding: 0;
  line-height: 1.05;
  position: relative;
  z-index: 1;
}

body.event-page .event-meta{
  margin: 0;
  padding: 0;
  gap: 16px;
  position: relative;
  z-index: 1;
}

body.event-page .event-cover-wrap{
  margin-top: 0;
}

body.event-page .event-content{
  margin-top: 2px;
}



.directions-page .dirs-soft{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-items: stretch;
}

.directions-page .dirs-soft > .soft-article--wide{
  grid-column: auto !important;
}



.directions-page .soft-body p{
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

@media (max-width: 920px){
  .directions-page .section{
    padding-top: 18px;
    padding-bottom: 22px;
  }

  .directions-page .dirs-soft{
    grid-template-columns: 1fr !important;
    gap: 16px;
    margin-top: 14px;
  }

  .directions-page .soft-article{
    min-height: 0;
    border-radius: 18px;
  }

  .directions-page .soft-media{
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .directions-page .soft-body{
    padding: 18px;
  }

  .directions-page .soft-body h3{
    margin-bottom: 10px;
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.12;
  }

  .directions-page .soft-body p{
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    margin-bottom: 18px;
    font-size: 1rem;
    line-height: 1.58;
  }

  .directions-page .soft-actions{
    margin-top: 0;
  }
}

@media (max-width: 520px){
  .directions-page .section{
    padding-top: 14px;
  }

  .directions-page .container{
    width: min(100%, calc(100% - 18px));
  }

  .directions-page h1[data-i18n="directions_title"]{
    margin-bottom: 14px !important;
    font-size: clamp(38px, 12vw, 52px);
    line-height: .98;
  }

  .directions-page .dirs-soft{
    gap: 14px;
  }

  .directions-page .soft-article{
    border-radius: 16px;
  }

  .directions-page .soft-media{
    aspect-ratio: 16 / 11;
  }

  .directions-page .soft-body{
    padding: 16px;
  }

  .directions-page .direction-btn{
    width: 100%;
    justify-content: center;
  }
}



.grid3.support-more-grid{
  align-items: stretch;
}

.support-more-card{
  text-decoration: none;
  color: inherit;

  display: flex;
  flex-direction: column;

  gap: 10px;
  min-height: 240px;
  transition: transform .16s ease, border-color .16s ease;
}

.support-more-card:hover{
  border-color: rgba(255, 0, 243, 0.55);
  transform: translateY(-2px);
}

.support-more-card h3{
  margin: 0 0 12px;
}

.support-more-card p{
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.support-more-card .support-more-btn{
  margin-top: auto;
  width: fit-content;
  align-self: flex-start;
}

.support-more-card .card-actions{
  margin-top: auto;
  flex-direction: column;
  align-items: flex-start;
}

.support-more-card .card-actions .btn{
  width: fit-content;
}

.support-share-buttons{
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.support-share-buttons .btn{
  width: auto !important;
}




@media (max-width: 1100px){
  .directions-grid,
  .sport-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partners-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px){
  html,
  body{
    overflow-x: hidden;
  }

  :root{
    --header-main-h: 80px;
    --header-social-h: 48px;
    --header-h: calc(var(--header-main-h) + var(--header-social-h));
    --footerbar-h: 88px;
  }

  .container{
    width: min(100%, calc(100% - 24px));
  }

  main{
    padding-top: calc(var(--header-h) + var(--header-gap));
  }

  header{
    height: var(--header-h);
    overflow: visible !important;
  }

  .navbar{
    height: var(--header-main-h);
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .brand{
    min-width: 0;
    gap: 10px;
    overflow: hidden;
  }

  .logo-wrap,
  .logo-wrap .logo{
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .logo-secondary{
    height: 27px;
    max-width: 145px;
    width: auto;
  }

  .navlinks{
    display: none;
  }

  .mobile-toggle{
    display: inline-flex !important;
  }

  .navlinks.open{
    display: grid;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(var(--header-h) - 4px);
    padding: 12px;
    gap: 8px;
    background: rgba(233,233,236,.98);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 18px 40px var(--shadow);
    z-index: 100;
  }

  :root[data-theme="dark"] .navlinks.open{
    background: rgba(30,30,34,.96);
  }

  .navlinks.open a{
    width: 100%;
    min-width: 0;
    justify-content: center;
  }

  .actions{
    min-width: 0;
    gap: 8px;
    justify-content: flex-end;
  }

  .controls{
    gap: 6px;
  }

  .lang button{
    height: 42px;
    padding: 0 14px;
  }

  #themeToggle{
    width: 92px;
    height: 42px;
    gap: 8px;
  }

  #themeToggle .sun,
  #themeToggle .moon{
    flex-basis: 30px;
    width: 30px;
    font-size: 1.14rem;
  }

  .header-social{
    position: absolute;
    left: 50%;
    top: calc(var(--header-main-h) + 4px);
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 40px;
    padding: 0;
    border-left: 0;
  }

  .grid2,
  .grid3,
  .about-flex,
  .school-story,
  .dirs,
  .dirs-soft,
  .directions-grid,
  .rubik-grid,
  .sport-grid,
  .club-info-grid,
  .support-more-grid{
    grid-template-columns: 1fr !important;
  }

  .section{
    padding: 24px 0;
  }

  .section + .section{
    padding-top: 18px;
  }

  .hero{
    margin-top: 0;
    padding: 16px 0 20px;
  }

  .hero-slider-full{
    aspect-ratio: 16 / 8;
    min-height: auto;
    border-radius: 24px;
  }

  .hero-slider-full .hero-slide img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    
  }

  .hero-arrow{
    width: 42px;
    height: 42px;
    z-index: 30;
  }

  .hero-arrow-prev{ left: 12px; }
  .hero-arrow-next{ right: 12px; }

  .hero-slider-dots{
    bottom: 14px;
    z-index: 30;
  }

  .hero-overlay{
    left: 18px;
    right: 18px;
    bottom: 52px;
  }

  .about-image img{
    height: 300px;
  }

  .dir-article{
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 18px;
  }

  .dir-article--reverse .dirs-media,
  .dir-article--reverse .dir-content{
    order: initial;
  }

  .dirs-media{
    min-height: 260px;
  }

  .soft-media{
    height: 260px;
  }

  .sport-media .sport-img,
  .fightclub .sport-media img,
  .fightclub .sport-media .sport-img{
    height: 240px;
  }

  .rubik-thumb{
    height: 230px;
  }

  .footer-partners{
    width: 100%;
    overflow: hidden;
  }

  .partners-logos{
    gap: 0 13px;
    flex-wrap: nowrap;
    max-height: 40px;
  }

  .partners-logos img{
    height: 30px;
    max-width: 112px;
  }

  .locations-slider{
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    padding: 0;
  }

  .story-slider{
    min-height: 380px;
  }

  .location-card{
    min-width: 0;
    flex: 1 1 auto;
  }

  body.event-page .section{
    padding-top: 16px;
  }

  .event-gallery-item{
    width: 320px;
    height: 220px;
  }
}

@media (max-width: 768px){
  html{
    font-size: 18px;
  }

  .container{
    width: min(100%, calc(100% - 20px));
  }

  .hero-slider-full{
    aspect-ratio: 16 / 9;
    border-radius: 22px;
  }

  .hero-arrow{
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .hero-arrow-prev{ left: 10px; }
  .hero-arrow-next{ right: 10px; }

  .hero-slider-dots{
    bottom: 12px;
    gap: 8px;
  }

  .hero-slider-dots .hero-dot{
    width: 10px;
    height: 10px;
  }

  .hero-overlay{
    left: 14px;
    right: 14px;
    bottom: 46px;
  }

  .about-image img{
    height: 260px;
  }

  .rubik-body{
    padding: 16px 16px 18px;
  }

  .support-partners{
    padding: 42px 0;
  }

  .partners-grid{
    grid-template-columns: 1fr;
  }

  .partner-card,
  .partner-card--wide{
    grid-column: auto;
    min-height: 120px;
    padding: 18px;
  }

  .partner-card img{
    max-height: 56px;
  }

  .location-card{
    width: 100%;
    min-width: 0;
    flex: initial;
  }

  .location-card img{
    height: 220px;
  }

  .event-title{
    font-size: 2rem;
  }

  .event-meta{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .event-content{
    padding: 18px;
  }

  .event-gallery-item{
    width: 280px;
    height: 190px;
  }

  .fightclub .card,
  .fightclub .sport-card,
  .fightclub .soft-card{
    padding: 16px;
    border-radius: 20px;
  }

  .fightclub h2,
  .fightclub h3,
  .fightclub .sport-title{
    font-size: 1.55rem;
    line-height: 1.12;
  }

  .fightclub .btn,
  .fightclub .fight-btn,
  .fightclub .school-btn,
  .fightclub .direction-btn{
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px){
  :root{
    --header-main-h: 74px;
    --header-social-h: 46px;
    --header-h: calc(var(--header-main-h) + var(--header-social-h));
    --footerbar-h: 92px;
  }

  html{
    font-size: 17px;
  }

  .container{
    width: min(100%, calc(100% - 18px));
  }

  .navbar{
    grid-template-columns: auto auto 1fr;
    gap: 8px;
  }

  .logo-wrap,
  .logo-wrap .logo{
    width: 41px;
    height: 41px;
    flex-basis: 41px;
  }

  .logo-secondary{
    display: none;
  }

  .actions{
    justify-self: end;
  }

  .controls{
    gap: 4px;
  }

  .lang button{
    height: 40px;
    padding: 0 10px;
    font-size: .86rem;
  }

  .lang button.active::after{
    margin-left: 4px;
  }

  #themeToggle{
    width: 86px;
    height: 40px;
    gap: 7px;
  }

  #themeToggle .sun,
  #themeToggle .moon{
    flex-basis: 28px;
    width: 28px;
    font-size: 1.08rem;
  }

  .mobile-toggle{
    width: 44px;
    height: 40px;
  }

  .header-social{
    top: calc(var(--header-main-h) + 3px);
    height: 38px;
    gap: 8px;
  }

  .header-social .social-link{
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .footer-bar .logo-wrap,
  .footer-bar .logo-wrap .logo{
    width: 41px;
    height: 41px;
    flex-basis: 41px;
  }

  .footer-grid{
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
  }

  .footer-partners{
    align-self: center;
  }

  .partners-logos{
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0 12px;
    max-height: 40px;
    scrollbar-width: none;
  }

  .partners-logos::-webkit-scrollbar{
    display: none;
  }

  .partners-logos img{
    height: 28px;
    max-width: 104px;
  }

  .hero-slider-full{
    aspect-ratio: 16 / 10;
    border-radius: 20px;
  }

  .hero-arrow{
    width: 38px;
    height: 38px;
  }

  .hero-btn,
  .btn,
  .rubik-link{
    min-height: 42px;
    font-size: .95rem;
  }

  .section h1{
    font-size: clamp(30px, 10vw, 42px);
  }

  .section h2{
    font-size: clamp(26px, 8vw, 36px);
  }

  .home-intro-box,
  .section-title-card{
    border-radius: 22px;
  }
}


body.cells-page .section{
  padding-top: 32px;
  padding-bottom: 32px;
}

.cells-hero{
  padding-top: 26px !important;
}

.cells-hero-card{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: stretch;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,0,243,0.05), rgba(255,0,243,0.02));
  border: 1px solid rgba(255,0,243,0.16);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

:root[data-theme="dark"] .cells-hero-card{
  background: linear-gradient(180deg, rgba(255,0,243,0.08), rgba(255,0,243,0.03));
  border-color: rgba(255,0,243,0.22);
  box-shadow: 0 18px 42px rgba(0,0,0,0.28);
}

.cells-hero-copy{
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.cells-badge,
.city-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,0,243,0.28);
  background: rgba(255,0,243,0.08);
  color: var(--text);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cells-hero-copy h1{
  margin: 14px 0 12px;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: .01em;
}

.cells-hero-copy p{
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.cells-hero-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cells-hero-media{
  min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
}

.cells-hero-media .map-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.cells-overview{
  padding-top: 18px !important;
}

.cells-stats-grid,
.cells-city-grid,
.archery-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cells-city-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cells-mini-card,
.city-card,
.archery-card,
.band-point{
  border-radius: 22px;
  padding: 20px;
}

.cells-mini-card h3,
.city-card h3,
.archery-card h3,
.band-point h3{
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.2;
}

.cells-mini-card p,
.city-card p,
.archery-card p,
.band-point p{
  margin: 0;
  color: var(--muted);
}

.cells-section-head{
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.cells-section-head h2{
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
}

.cells-section-head p{
  margin: 0;
  max-width: 920px;
  color: var(--muted);
}

.city-card-top,
.archery-card-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.city-status,
.archery-city{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: .88rem;
  font-weight: 800;
}

.city-status--soft{
  opacity: .85;
}

:root[data-theme="dark"] .city-status,
:root[data-theme="dark"] .archery-city{
  background: rgba(255,255,255,0.06);
}

.cells-list{
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.cells-list li{
  line-height: 1.55;
}

.cells-band{
  background: rgba(255,0,243,0.04);
  border-top: 1px solid rgba(255,0,243,0.12);
  border-bottom: 1px solid rgba(255,0,243,0.12);
}

:root[data-theme="dark"] .cells-band{
  background: rgba(255,0,243,0.06);
}

.cells-band-grid{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  align-items: start;
}

.cells-band-copy{
  padding-right: 8px;
}

.cells-band-copy h2{
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.1;
}

.cells-band-copy p{
  margin: 0;
  color: var(--muted);
}

.cells-band-points{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.cells-actions-grid .card{
  min-height: 100%;
}

@media (max-width: 1100px){
  .cells-stats-grid,
  .archery-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cells-hero-card,
  .cells-band-grid{
    grid-template-columns: 1fr;
  }

  .cells-hero-media{
    min-height: 320px;
  }
}

@media (max-width: 920px){
  body.cells-page .section{
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .cells-hero-card{
    padding: 16px;
    gap: 16px;
    border-radius: 20px;
  }

  .cells-city-grid,
  .cells-stats-grid,
  .archery-grid{
    grid-template-columns: 1fr;
  }

  .cells-mini-card,
  .city-card,
  .archery-card,
  .band-point{
    border-radius: 18px;
    padding: 18px;
  }

  .cells-hero-copy h1{
    font-size: clamp(28px, 9vw, 42px);
  }

  .cells-hero-copy p,
  .cells-section-head p,
  .cells-band-copy p,
  .cells-list li{
    font-size: 1rem;
  }

  .cells-hero-media{
    min-height: 260px;
  }
}

@media (max-width: 640px){
  .cells-hero-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .city-card-top,
  .archery-card-top{
    align-items: flex-start;
    flex-direction: column;
  }

  .cells-badge,
  .city-badge,
  .city-status,
  .archery-city{
    min-height: 30px;
    font-size: .78rem;
  }
}



.cells-hero {
  padding: 28px 0 10px;
}

.cells-hero-box {
  max-width: 720px;
}

.cells-badge {
  display: inline-block;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  margin-bottom: 10px;
}

.cells-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
}

.cells-hero p {
  margin: 0 0 14px;
  font-size: 0.98rem;
  max-width: 520px;
  color: var(--muted);
  line-height: 1.5;
}

.cells-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}



.home-page .section,
main .section{
  padding-top: 28px;
  padding-bottom: 28px;
}

main .section + .section{
  padding-top: 22px;
}

.hero{
  padding-bottom: 18px;
}

.hero-slider-full{
  max-height: 520px;
}

.home-intro-box,
.section-title-card{
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 56px 64px;

  border: 1px solid rgba(255, 0, 243, 0.22);
  border-radius: 26px;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.96),
    rgba(255,255,255,0.90)
  );

  box-shadow:
    0 18px 50px rgba(0,0,0,0.06),
    0 0 0 1px rgba(255,0,243,0.04);

  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.home-intro-box:hover,
.section-title-card:hover{
  transform: translateY(-3px);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.08),
    0 0 0 1px rgba(255,0,243,0.06);
}

:root[data-theme="dark"] .home-intro-box,
:root[data-theme="dark"] .section-title-card{
  background: linear-gradient(
    180deg,
    rgba(22,22,26,0.98),
    rgba(22,22,26,0.90)
  );
  border-color: rgba(255, 0, 243, 0.20);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.35),
    0 0 0 1px rgba(255,0,243,0.05);
}

.home-intro-box::before,
.home-intro-box::after,
.section-title-card::before,
.section-title-card::after{
  content: none !important;
  display: none !important;
}

.home-intro-label,
.section-kicker{
  display: inline-flex;
  margin: 0 0 16px;

  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-intro-title,
.section-title-card h1,
.section-title-card h2{
  width: 100%;
  max-width: 1120px;
  margin: 0 0 28px;

  font-size: clamp(42px, 4.1vw, 64px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.025em;
  color: var(--text);
}

.home-intro-content{
  width: 100%;
  max-width: 980px;
}

.home-intro-content p,
.section-title-card p{
  width: 100%;
  max-width: 980px;
  margin: 0 0 22px;

  font-size: 1.15rem;
  line-height: 1.7;
  letter-spacing: 0.005em;
  color: var(--muted);
}

.home-intro-content p:last-child,
.section-title-card p:last-child{
  margin-bottom: 0;
}

.rubik-grid.directions-grid,
.directions-grid{
  gap: 20px;
  margin-top: 22px !important;
}

.rubik-tile{
  border-radius: 22px;
}

.rubik-thumb{
  height: 220px;
}

.rubik-body{
  padding: 16px 16px 18px;
  gap: 10px;
  min-height: 225px;
}

.rubik-name{
  font-size: 1.08rem;
  line-height: 1.18;
}

.rubik-text{
  font-size: 0.94rem;
  line-height: 1.5;
}

.rubik-link{
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.95rem;
}

.rubik-tile[href="/cells"] .rubik-thumb img,
.rubik-tile[href="cells.html"] .rubik-thumb img{
  object-position: center 35%;
}

.rubik-tile[href="/club"] .rubik-thumb img,
.rubik-tile[href="club.html"] .rubik-thumb img{
  object-position: center 35%;
}

.rubik-tile[href="/tools"] .rubik-thumb img,
.rubik-tile[href="tools.html"] .rubik-thumb img{
  object-position: center center;
}

@media (max-width: 1100px){
  .home-intro-box,
  .section-title-card{
    padding: 36px 34px;
  }

  .home-intro-content,
  .home-intro-content p,
  .section-title-card p{
    max-width: 100%;
  }

  .rubik-thumb{
    height: 220px;
  }
}

@media (max-width: 768px){
  main .section{
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .home-intro-box,
  .section-title-card{
    padding: 28px 22px;
    border-radius: 22px;
  }

  .home-intro-title,
  .section-title-card h1,
  .section-title-card h2{
    font-size: clamp(32px, 9vw, 44px);
    margin-bottom: 20px;
  }

  .home-intro-content p,
  .section-title-card p{
    max-width: 100%;
    font-size: 1.02rem;
    line-height: 1.68;
  }

  .rubik-thumb{
    height: 220px;
  }

  .rubik-body{
    min-height: auto;
    padding: 16px;
  }
}

@media (max-width: 520px){
  .home-intro-box,
  .section-title-card{
    padding: 24px 18px;
  }

  .rubik-thumb{
    height: 200px;
  }
}


.petros-video-section{
  padding: 36px 0;
}

.petros-video-premium{
  width: 100%;
  padding: clamp(22px, 3vw, 44px);

  border-radius: 34px;
  border: 1px solid rgba(255,0,243,.16);

  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.98),
      rgba(255,255,255,.94)
    );

  box-shadow:
    0 24px 70px rgba(0,0,0,.06);

  overflow: hidden;
}



.petros-video-head{
  margin-bottom: 28px;
}

.petros-video-title-wrap{
  max-width: 980px;
}

.petros-video-title-wrap h2{
  max-width: 980px;

  margin: 10px 0 20px;

  font-size: clamp(34px, 4.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -.045em;

  font-weight: 900;

  color: #111;
}

.petros-video-lead{
  max-width: 920px;

  margin: 0;

  font-size: 1.2rem;
  line-height: 1.7;
  font-weight: 500;

  color: #4c4c4c;
}



.petros-video-frame{
  width: 100%;
  overflow: hidden;

  aspect-ratio: 16 / 8.2;

  border-radius: 28px;

  background: #000;

  border:
    1px solid rgba(255,0,243,.24);

  box-shadow:
    0 20px 60px rgba(0,0,0,.12);
}

.petros-video-frame iframe{
  width: 100%;
  height: 100%;
  display: block;
}



.petros-video-info-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 22px;

  margin-top: 28px;
}

.petros-video-card{
  padding: 26px;

  border-radius: 24px;

  background:
    rgba(255,255,255,.84);

  border:
    1px solid rgba(255,0,243,.10);

  box-shadow:
    0 10px 30px rgba(0,0,0,.04);
}

.petros-video-mini{
  display: inline-flex;

  margin-bottom: 12px;

  color: #ff00f3;

  font-size: .82rem;
  font-weight: 900;

  letter-spacing: .12em;
  text-transform: uppercase;
}

.petros-video-card h3{
  margin: 0 0 14px;

  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.1;
  letter-spacing: -.03em;

  color: #111;
}

.petros-video-card p{
  margin: 0;

  color: #4f4f4f;

  font-size: 1.04rem;
  line-height: 1.7;
}



.petros-video-support{
  margin-top: 22px;

  padding-top: 20px;

  border-top:
    1px solid rgba(0,0,0,.08);
}

.petros-video-support p{
  margin: 0;

  color: #666;

  font-size: .98rem;
  line-height: 1.7;
}



.petros-video-bottom-action{
  margin-top: 28px;

  display: flex;
  justify-content: center;
}

.petros-video-bottom-action .btn{
  min-width: 260px;
}



:root[data-theme="dark"] .petros-video-premium{
  background:
    linear-gradient(
      180deg,
      rgba(22,22,26,.98),
      rgba(22,22,26,.94)
    );
}

:root[data-theme="dark"] .petros-video-title-wrap h2,
:root[data-theme="dark"] .petros-video-card h3{
  color: #fff;
}

:root[data-theme="dark"] .petros-video-lead,
:root[data-theme="dark"] .petros-video-card p{
  color: rgba(255,255,255,.72);
}

:root[data-theme="dark"] .petros-video-card{
  background:
    rgba(255,255,255,.03);

  border:
    1px solid rgba(255,255,255,.06);
}

:root[data-theme="dark"] .petros-video-support{
  border-top:
    1px solid rgba(255,255,255,.08);
}

:root[data-theme="dark"] .petros-video-support p{
  color: rgba(255,255,255,.55);
}



@media (max-width: 920px){

  .petros-video-info-grid{
    grid-template-columns: 1fr;
  }

  .petros-video-frame{
    aspect-ratio: 16 / 9;
  }

}

@media (max-width: 768px){

  .petros-video-section{
    padding: 24px 0;
  }

  .petros-video-premium{
    padding: 22px;
    border-radius: 26px;
  }

.petros-video-title-wrap h2{
  font-size: clamp(30px, 10vw, 44px);
  line-height: 1.02;
}

  .petros-video-lead{
    font-size: 1rem;
    line-height: 1.65;
  }

  .petros-video-frame{
    border-radius: 22px;
  }

  .petros-video-card{
    padding: 20px;
    border-radius: 20px;
  }

  .petros-video-card h3{
    font-size: 28px;
  }

  .petros-video-bottom-action .btn{
    width: 100%;
    min-width: 100%;
  }

}

/* =========================
   SCHOOL MASTER STYLE
========================= */

.school-mini-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-bottom:42px;
}

.school-mini-card{
  padding:24px;
  border:1px solid rgba(255,0,243,.18);
  border-radius:22px;
  background:var(--card);
}

.school-mini-card .mini-k{
  font-size:.85rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
  margin-bottom:10px;
  font-weight:900;
}

.school-mini-card .mini-v{
  font-size:1.1rem;
  font-weight:900;
  line-height:1.45;
  color:var(--text);
}

.school-about-block{
  max-width:980px;
  margin:0;
  text-align:left;
}

.school-about-title{
  font-size:2rem;
  margin:0 0 20px;
  font-weight:900;
}

.school-about-text{
  font-size:1.1rem;
  line-height:1.85;
  color:var(--muted);
  margin:0;
  text-align:left;
}

.school-support{
  margin-top:28px;
  padding:20px 24px;
  border-radius:18px;
  background:rgba(255,0,243,.06);
  border:1px solid rgba(255,0,243,.18);
  font-size:1rem;
  line-height:1.7;
  color:var(--muted);
  text-align:left;
}

.school-support span{
  color:var(--accent);
  font-weight:900;
}

.school .card{
  text-align:left;
}

.school-story-pills{
  justify-content:flex-start;
}

.school-results-block{
  text-align:left;
}

.school-results-title{
  margin:0 0 14px;
  font-size:clamp(34px, 4.5vw, 56px);
  line-height:1.05;
  font-weight:900;
  color:var(--text);
}

.school-results-lead{
  max-width:980px;
  margin:0 0 24px;
  color:var(--muted);
  font-size:1.08rem;
  line-height:1.75;
}

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

.school-result-item{
  min-height:76px;
  padding:18px 20px;
  border:1px solid rgba(255,0,243,.18);
  border-radius:18px;
  background:rgba(255,0,243,.035);
  color:var(--text);
  font-size:1rem;
  line-height:1.45;
  font-weight:850;
  display:flex;
  align-items:center;
}

@media (max-width: 900px){
  .school-mini-grid{
    grid-template-columns:1fr;
  }

  .school-about-title{
    font-size:1.6rem;
  }

  .school-about-text{
    font-size:1rem;
  }

  .school-results-grid{
    grid-template-columns:1fr;
  }

  .school-result-item{
    min-height:0;
  }
}

/* =========================
   TOOLS PAGE
========================= */

.tools-page{
  overflow:hidden;
}

.tools-hero{
  padding-top:28px;
}

.tools-hero-card{
  max-width:none;
}

.tools-story{
  padding-top:10px;
}

.tools-story-list{
  display:grid;
  gap:28px;
}

.tools-story-row{
  display:grid;
  grid-template-columns:minmax(0, .96fr) minmax(0, 1.04fr);
  gap:28px;
  align-items:center;
  padding:24px;
  border:1px solid rgba(255,0,243,.18);
  border-radius:28px;
  background:var(--card);
  box-shadow:0 18px 46px rgba(0,0,0,.07);
  overflow:hidden;
}

.tools-story-row--reverse{
  grid-template-columns:minmax(0, 1.04fr) minmax(0, .96fr);
}

.tools-story-row--reverse .tools-story-copy{
  order:2;
}

.tools-story-row--reverse .tools-story-media{
  order:1;
}

.tools-story-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
  padding:18px;
  min-width:0;
  text-align:left;
}

.tools-story-kicker{
  color:var(--accent);
  font-size:.9rem;
  font-weight:950;
  letter-spacing:.08em;
  line-height:1.2;
  text-transform:uppercase;
}

.tools-story-copy h2{
  margin:0;
  color:var(--text);
  font-size:clamp(30px, 3vw, 48px);
  font-weight:950;
  line-height:1.08;
  letter-spacing:0;
}

.tools-story-copy p{
  margin:0;
  max-width:780px;
  color:var(--muted);
  font-size:1.08rem;
  line-height:1.75;
}

.tools-story-media{
  margin:0;
  height:clamp(320px, 34vw, 560px);
  min-height:0;
  border:1px solid rgba(0,0,0,.08);
  border-radius:24px;
  background:#f2f2f5;
  overflow:hidden;
}

.tools-story-media--portrait{
  height:auto;
  aspect-ratio:3 / 4;
  align-self:center;
  justify-self:center;
  width:min(100%, 760px);
  max-height:none;
  background:var(--surface);
}

.tools-story-media img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  background:#f2f2f5;
}

.tools-story-media--portrait img{
  object-fit:contain;
}

:root[data-theme="dark"] .tools-story-row{
  background:rgba(255,255,255,.035);
  border-color:rgba(255,0,243,.22);
  box-shadow:0 18px 46px rgba(0,0,0,.28);
}

:root[data-theme="dark"] .tools-story-media{
  border-color:rgba(255,255,255,.08);
}

@media (max-width: 920px){
  .tools-hero{
    padding-top:22px;
  }

  .tools-story-row,
  .tools-story-row--reverse{
    grid-template-columns:1fr;
    gap:18px;
    padding:16px;
    border-radius:24px;
  }

  .tools-story-row--reverse .tools-story-copy,
  .tools-story-row--reverse .tools-story-media{
    order:initial;
  }

  .tools-story-copy{
    padding:6px 4px 10px;
  }

  .tools-story-copy h2{
    font-size:clamp(28px, 8vw, 40px);
  }

  .tools-story-copy p{
    max-width:100%;
    font-size:1rem;
    line-height:1.68;
  }

  .tools-story-media{
    height:auto;
    min-height:0;
    aspect-ratio:4 / 3;
    border-radius:20px;
  }

  .tools-story-media--portrait{
    aspect-ratio:3 / 4;
    max-height:none;
  }
}

@media (max-width: 520px){
  .tools-story-list{
    gap:20px;
  }

  .tools-story-row{
    padding:12px;
    border-radius:22px;
  }

  .tools-story-copy h2{
    font-size:30px;
  }

  .tools-story-media{
    height:auto;
    aspect-ratio:4 / 3;
  }

  .tools-story-media--portrait{
    aspect-ratio:3 / 4;
  }
}

/* =========================
   FINAL MOBILE POLISH
========================= */

html,
body{
  max-width:100%;
  overflow-x:hidden;
}

.home-intro-title,
.section-title-card h1,
.section-title-card h2,
.petros-video-title-wrap h2,
.tools-story-copy h2,
.school-results-title,
.register-card h1,
.rubik-name,
.sport-card h2,
.sport-card h3{
  overflow-wrap:anywhere;
  word-break:normal;
  hyphens:auto;
}

.home-intro-content p,
.section-title-card p,
.petros-video-lead,
.petros-video-card p,
.petros-video-support p,
.tools-story-copy p,
.rubik-text,
.sport-card p,
.school-about-text{
  overflow-wrap:break-word;
}

.tools-story-media{
  height:clamp(320px, 34vw, 560px);
}

.tools-story-media--portrait{
  height:auto;
  aspect-ratio:3 / 4;
  justify-self:center;
  width:min(100%, 760px);
  max-height:none;
  background:var(--surface);
}

@media (max-width: 920px){
  .grid2,
  .grid3,
  .directions-grid,
  .rubik-grid,
  .sport-grid,
  .club-info-grid,
  .support-more-grid,
  .petros-video-info-grid,
  .school-mini-grid,
  .school-results-grid,
  .register-type-list{
    grid-template-columns:1fr !important;
  }

  .rubik-tile,
  .sport-card,
  .register-type-card,
  .tools-story-row,
  .school-mini-card,
  .school-results-card{
    width:100%;
    max-width:100%;
    min-width:0;
  }

  .rubik-thumb,
  .sport-media .sport-img,
  .fightclub .sport-media img,
  .fightclub .sport-media .sport-img{
    width:100%;
    max-width:100%;
  }
}

@media (max-width: 680px){
  .container{
    width:min(100% - 24px, var(--container));
  }

  main .section,
  .section{
    padding-top:22px;
    padding-bottom:22px;
  }

  .home-intro-box,
  .section-title-card,
  .petros-video-premium,
  .register-card,
  .school-mini-card,
  .school-results-card{
    padding:24px 18px;
    border-radius:22px;
  }

  .home-intro-title,
  .section-title-card h1,
  .section-title-card h2,
  .petros-video-title-wrap h2{
    font-size:clamp(31px, 9vw, 42px);
    line-height:1.08;
  }

  .home-intro-content p,
  .section-title-card p,
  .petros-video-lead,
  .petros-video-support p,
  .tools-story-copy p,
  .school-about-text{
    font-size:1rem;
    line-height:1.65;
  }

  .rubik-thumb{
    height:210px;
  }

  .sport-media .sport-img,
  .fightclub .sport-media img,
  .fightclub .sport-media .sport-img{
    height:220px;
    object-fit:cover;
  }

  .tools-story-media{
    height:auto;
    max-height:360px;
    aspect-ratio:4 / 3;
  }

  .tools-story-media--portrait{
    max-height:none;
    aspect-ratio:3 / 4;
  }
}

@media (max-width: 420px){
  .container{
    width:min(100% - 20px, var(--container));
  }

  .home-intro-box,
  .section-title-card,
  .petros-video-premium,
  .register-card,
  .tools-story-row{
    padding:20px 16px;
  }

  .rubik-thumb{
    height:190px;
  }

  .sport-media .sport-img,
  .fightclub .sport-media img,
  .fightclub .sport-media .sport-img{
    height:205px;
  }

  .tools-story-copy h2{
    font-size:28px;
  }

  .tools-story-media{
    max-height:320px;
  }

  .tools-story-media--portrait{
    max-height:none;
  }
}

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

  .reveal-ready .scroll-reveal{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
    transition-delay:0ms !important;
    will-change:auto !important;
  }
}

/* =========================
   MOBILE EXPERIENCE 2026-07-23
========================= */

@media (max-width: 920px){
  body.mobile-menu-open{
    overflow:hidden;
    touch-action:none;
  }

  header{
    box-shadow:0 8px 24px rgba(0,0,0,.08);
  }

  :root[data-theme="dark"] header{
    box-shadow:0 8px 24px rgba(0,0,0,.28);
  }

  .navbar,
  .actions,
  .controls{
    min-width:0;
  }

  .mobile-toggle{
    padding:0 !important;
    touch-action:manipulation;
  }

  .navlinks.open{
    top:calc(var(--header-h) + 8px);
    max-height:calc(100vh - var(--header-h) - 24px);
    max-height:calc(100dvh - var(--header-h) - 24px);
    overflow-y:auto;
    overscroll-behavior:contain;
    padding:10px;
    border-radius:20px;
    box-shadow:0 22px 60px rgba(0,0,0,.22);
  }

  .navlinks.open a{
    min-height:52px;
    height:auto;
    padding:12px 18px;
    justify-content:flex-start;
    border-radius:14px;
    white-space:normal;
  }

  .grid2 > *,
  .grid3 > *,
  .directions-grid > *,
  .sport-grid > *,
  .support-more-grid > *,
  .school-mini-grid > *,
  .school-results-grid > *{
    min-width:0;
  }

  .card,
  .soft-card,
  .soft-article,
  .rubik-tile,
  .sport-card,
  .support-more-card,
  .school-mini-card,
  .school-results-card,
  .event-card{
    max-width:100%;
  }

  button,
  a,
  input,
  select,
  textarea{
    touch-action:manipulation;
  }

  input,
  select,
  textarea{
    max-width:100%;
  }

  .event-gallery-track{
    overscroll-behavior-x:contain;
    scroll-padding-inline:2px;
  }

  .lightbox{
    padding:18px;
  }

  .lightbox-img{
    max-width:calc(100vw - 36px);
    max-height:calc(100dvh - 100px);
  }
}

@media (max-width: 680px){
  :root{
    --header-main-h:70px;
    --header-social-h:44px;
    --header-h:calc(var(--header-main-h) + var(--header-social-h));
    --footerbar-h:84px;
  }

  body{
    padding-bottom:calc(var(--footerbar-h) + env(safe-area-inset-bottom));
  }

  .footer-bar{
    height:calc(var(--footerbar-h) + env(safe-area-inset-bottom));
    padding-bottom:env(safe-area-inset-bottom);
  }

  .container{
    width:min(100% - 24px, var(--container));
  }

  .navbar{
    grid-template-columns:auto auto minmax(0, 1fr);
    gap:8px;
  }

  .logo-wrap,
  .logo-wrap .logo{
    width:42px;
    height:42px;
    flex-basis:42px;
  }

  .actions{
    justify-self:end;
  }

  .header-social{
    top:calc(var(--header-main-h) + 2px);
    height:38px;
  }

  .navlinks.open{
    left:12px;
    right:12px;
  }

  main .section,
  .section{
    padding-top:20px;
    padding-bottom:20px;
  }

  main .section + .section,
  .section + .section{
    padding-top:14px;
  }

  .home-intro-box,
  .section-title-card,
  .petros-video-premium,
  .register-card,
  .school-mini-card,
  .school-results-card{
    padding:22px 18px;
    border-radius:22px;
  }

  .home-intro-box:hover,
  .section-title-card:hover{
    transform:none;
  }

  .home-intro-title,
  .section-title-card h1,
  .section-title-card h2,
  .petros-video-title-wrap h2,
  .register-card h1{
    margin-bottom:18px;
    font-size:clamp(30px, 9vw, 40px);
    line-height:1.08;
    letter-spacing:-.025em;
  }

  .home-intro-content p,
  .section-title-card p,
  .petros-video-lead,
  .petros-video-card p,
  .petros-video-support p,
  .tools-story-copy p,
  .school-about-text{
    font-size:1rem;
    line-height:1.62;
  }

  .grid2,
  .grid3,
  .directions-grid,
  .sport-grid,
  .support-more-grid,
  .school-mini-grid,
  .school-results-grid{
    gap:14px;
  }

  .card,
  .soft-card,
  .sport-card,
  .support-more-card,
  .event-card{
    border-radius:20px;
  }

  .card-actions:not(.support-share-buttons) .btn,
  .soft-actions .btn,
  .direction-btn,
  .school-btn,
  .fight-btn,
  .register-btn,
  .tools-application-card .btn{
    width:100%;
    min-height:50px;
    justify-content:center;
    white-space:normal;
    text-align:center;
    line-height:1.25;
  }

  .hero-slider-full{
    border-radius:18px;
  }

  .hero-arrow{
    width:40px;
    height:40px;
  }

  .hero-overlay{
    left:12px;
    right:12px;
    bottom:42px;
  }

  .hero-btn{
    max-width:100%;
    min-height:44px;
    padding:10px 16px;
    white-space:normal;
    line-height:1.2;
    text-align:center;
  }

  .petros-video-head{
    margin-bottom:18px;
  }

  .petros-video-frame{
    border-radius:16px;
  }

  .petros-video-info-grid{
    gap:14px;
    margin-top:16px;
  }

  .petros-video-card{
    padding:18px;
    border-radius:18px;
  }

  .petros-video-card h3{
    font-size:clamp(24px, 7vw, 30px);
  }

  .tools-story-list{
    gap:16px;
  }

  .tools-story-row,
  .tools-story-row--reverse{
    gap:12px;
    padding:12px;
    border-radius:20px;
  }

  .tools-story-copy{
    gap:10px;
    padding:8px 6px 10px;
  }

  .tools-story-copy h2{
    font-size:clamp(27px, 8vw, 34px);
  }

  .tools-story-media,
  .tools-story-media--portrait{
    width:100%;
    max-height:none;
    border-radius:16px;
  }

  .event-card-cover{
    height:auto;
    aspect-ratio:16 / 10;
  }

  body.event-page .event-title{
    font-size:clamp(30px, 9vw, 42px);
    overflow-wrap:anywhere;
  }

  body.event-page .event-content{
    padding:16px;
    border-radius:18px;
    overflow-wrap:anywhere;
  }

  .event-rich-heading--2{
    font-size:1.55rem;
  }

  .event-rich-heading--3{
    font-size:1.28rem;
  }

  .event-rich-quote{
    padding:12px 14px;
  }

  .event-gallery-item{
    width:calc(100vw - 40px);
    height:auto;
    aspect-ratio:4 / 3;
    border-radius:15px;
  }

  .register-wrap{
    margin:20px auto !important;
  }

  .register-form{
    gap:18px !important;
  }

  .register-input,
  .register-select,
  .register-textarea,
  input,
  select,
  textarea{
    font-size:16px;
  }

  .register-checkbox input{
    flex:0 0 auto;
    width:22px;
    height:22px;
  }

  .footer-grid{
    gap:8px;
  }

  .footer-links{
    gap:5px;
  }

  .footer-links .social-link{
    width:36px;
    height:36px;
    border-radius:12px;
  }

  .footer-links .social-link svg{
    width:18px;
    height:18px;
  }

  .partners-logos{
    gap:0 10px;
  }

  .partners-logos img{
    height:26px;
    max-width:92px;
  }

  .lightbox{
    padding:12px;
  }

  .lightbox-close,
  .lightbox-prev,
  .lightbox-next{
    width:42px;
    height:42px;
  }

  .lightbox-prev{
    left:8px;
  }

  .lightbox-next{
    right:8px;
  }
}

@media (max-width: 420px){
  :root{
    --footerbar-h:78px;
  }

  .container{
    width:min(100% - 20px, var(--container));
  }

  .lang button{
    padding:0 8px;
  }

  #themeToggle{
    width:74px;
    gap:2px;
    padding:0 5px;
  }

  #themeToggle .sun,
  #themeToggle .moon{
    flex-basis:27px;
    width:27px;
  }

  .mobile-toggle{
    width:42px;
  }

  .footer-grid{
    grid-template-columns:minmax(0, 1fr) auto;
  }

  .footer-left{
    display:none;
  }

  .partners-logos img{
    height:24px;
    max-width:82px;
  }

  .footer-links .social-link{
    width:34px;
    height:34px;
  }

  .home-intro-box,
  .section-title-card,
  .petros-video-premium,
  .register-card{
    padding:20px 16px;
  }

  .home-intro-title,
  .section-title-card h1,
  .section-title-card h2,
  .petros-video-title-wrap h2,
  .register-card h1{
    font-size:clamp(28px, 9vw, 36px);
  }

  .petros-video-card{
    padding:16px;
  }

  .tools-story-copy h2{
    font-size:27px;
  }

  .event-gallery-item{
    width:calc(100vw - 32px);
  }
}

/* =========================
   HEADER + FOOTER REFINEMENT 2026-07-23
========================= */

.header-social,
.footer-links{
  align-items:center;
}

.header-social .social-link,
.footer-links .social-link{
  flex:0 0 44px;
  width:44px;
  height:44px;
  padding:0;
  display:grid;
  place-items:center;
}

.header-social .social-link svg,
.footer-links .social-link svg{
  display:block;
  width:20px;
  height:20px;
  margin:0;
  transform:none;
  pointer-events:none;
}

.footer-grid{
  grid-template-columns:minmax(180px, .8fr) minmax(0, 2.4fr) minmax(180px, .8fr);
}

.footer-left{
  justify-content:flex-start;
}

.footer-links{
  justify-self:end;
}

@media (max-width: 1180px) and (min-width: 921px){
  .footer-grid{
    grid-template-columns:auto minmax(0, 1fr) auto;
  }

  .footer-bar .logo-secondary{
    display:none;
  }
}

@media (max-width: 920px){
  .header-social{
    left:50%;
    right:auto;
    top:var(--header-main-h);
    width:100vw;
    height:var(--header-social-h);
    padding:0 max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));
    transform:translateX(-50%);
    justify-content:center;
    gap:10px;
    border-left:0;
    border-top:1px solid rgba(0,0,0,.07);
    background:rgba(226,226,231,.96);
  }

  :root[data-theme="dark"] .header-social{
    border-top-color:rgba(255,255,255,.08);
    background:rgba(26,26,32,.97);
  }

  .header-social .social-link{
    flex-basis:38px;
    width:38px;
    height:38px;
    border-radius:12px;
  }

  .header-social .social-link svg{
    width:19px;
    height:19px;
  }

  .navlinks.open{
    z-index:110;
  }
}

@media (max-width: 680px){
  .logo-secondary{
    display:none;
  }

  .brand{
    overflow:visible;
  }

  .lang button{
    width:40px;
    padding:0;
  }

  .lang button.active::after{
    display:none;
  }

  #themeToggle{
    width:44px;
    padding:0;
    gap:0;
  }

  #themeToggle .sun,
  #themeToggle .moon{
    display:none;
    flex-basis:28px;
    width:28px;
  }

  :root[data-theme="light"] #themeToggle .moon,
  :root[data-theme="dark"] #themeToggle .sun{
    display:inline-flex;
  }

  .footer-grid{
    grid-template-columns:minmax(0, 1fr) auto;
    gap:10px;
  }

  .footer-left{
    display:none;
  }

  .footer-partners{
    justify-content:flex-start;
    overflow:hidden;
  }

  .partners-logos{
    width:100%;
    justify-content:flex-start;
    overflow-x:auto;
    overflow-y:hidden;
    padding:4px 2px;
    scroll-snap-type:x proximity;
    overscroll-behavior-x:contain;
    scrollbar-width:none;
    -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 16px), transparent 100%);
    mask-image:linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 16px), transparent 100%);
  }

  .partners-logos::-webkit-scrollbar{
    display:none;
  }

  .partners-logos a{
    scroll-snap-align:start;
  }

  .footer-links{
    display:grid;
    grid-template-columns:repeat(3, 36px);
    gap:6px;
    justify-self:end;
  }

  .footer-links .social-link{
    flex-basis:36px;
    width:36px;
    height:36px;
    border-radius:12px;
  }

  .footer-links .social-link svg{
    width:18px;
    height:18px;
  }
}

@media (max-width: 420px){
  :root{
    --header-main-h:66px;
    --header-social-h:42px;
    --header-h:calc(var(--header-main-h) + var(--header-social-h));
  }

  .navbar{
    grid-template-columns:40px 42px minmax(0, 1fr);
    gap:7px;
  }

  .logo-wrap,
  .logo-wrap .logo{
    width:40px;
    height:40px;
    flex-basis:40px;
  }

  .controls{
    gap:4px;
  }

  .lang{
    gap:3px;
  }

  .lang button{
    width:36px;
    height:38px;
    font-size:.8rem;
  }

  #themeToggle{
    width:40px;
    height:38px;
  }

  .mobile-toggle{
    width:42px;
    height:40px;
  }

  .header-social{
    gap:8px;
  }

  .header-social .social-link{
    flex-basis:36px;
    width:36px;
    height:36px;
  }

  .footer-grid{
    gap:8px;
  }

  .footer-links{
    grid-template-columns:repeat(3, 34px);
    gap:5px;
  }

  .footer-links .social-link{
    flex-basis:34px;
    width:34px;
    height:34px;
  }
}

/* =========================
   MOBILE HEADER + FOOTER FIX 2026-07-23
========================= */

@media (max-width: 920px){
  :root{
    --header-social-h:0px;
    --header-h:var(--header-main-h);
  }

  .actions > .header-social{
    display:none;
  }

  .navlinks.open{
    top:calc(var(--header-h) + 8px);
  }

  .navlinks.open .header-social{
    position:static;
    left:auto;
    right:auto;
    top:auto;
    z-index:auto;
    display:flex;
    width:100%;
    height:auto;
    margin:4px 0 0;
    padding:12px 4px 2px;
    transform:none;
    justify-content:center;
    gap:10px;
    border-top:1px solid var(--border);
    border-left:0;
    background:transparent;
  }

  .navlinks.open .header-social .social-link{
    flex:0 0 44px;
    width:44px;
    height:44px;
    min-height:44px;
    padding:0;
    justify-content:center;
    border-radius:14px;
  }

  .navlinks.open .header-social .social-link::before{
    display:none;
  }

  .navlinks.open .header-social .social-link svg{
    width:20px;
    height:20px;
  }
}

@media (max-width: 680px){
  :root{
    --header-main-h:68px;
    --header-h:var(--header-main-h);
  }

  body{
    padding-bottom:0;
  }

  .footer-bar,
  body.footer-visible .footer-bar{
    position:relative;
    left:auto;
    right:auto;
    bottom:auto;
    z-index:1;
    height:auto;
    min-height:0;
    padding:20px 0 calc(20px + env(safe-area-inset-bottom));
    transform:none;
    opacity:1;
    pointer-events:auto;
  }

  .footer-grid{
    grid-template-columns:1fr;
    justify-items:center;
    gap:18px;
  }

  .footer-left{
    display:flex;
    width:100%;
    justify-content:center;
  }

  .footer-left .brand{
    justify-content:center;
  }

  .footer-bar .logo-wrap,
  .footer-bar .logo-wrap .logo{
    width:42px;
    height:42px;
    flex-basis:42px;
  }

  .footer-bar .logo-secondary{
    display:block;
    width:auto;
    max-width:150px;
    height:28px;
  }

  .footer-partners{
    width:100%;
    justify-content:center;
    overflow:visible;
  }

  .partners-logos{
    width:100%;
    max-height:none;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px 16px;
    overflow:visible;
    padding:0;
    scroll-snap-type:none;
    -webkit-mask-image:none;
    mask-image:none;
  }

  .partners-logos img{
    height:27px;
    max-width:100px;
  }

  .footer-links{
    display:grid;
    grid-template-columns:repeat(3, 42px);
    gap:10px;
    justify-self:center;
  }

  .footer-links .social-link{
    flex:0 0 42px;
    width:42px;
    height:42px;
    border-radius:14px;
  }

  .footer-links .social-link svg{
    width:20px;
    height:20px;
  }
}

@media (max-width: 420px){
  :root{
    --header-main-h:64px;
    --header-h:var(--header-main-h);
  }

  .footer-bar,
  body.footer-visible .footer-bar{
    padding-top:18px;
  }

  .footer-grid{
    gap:16px;
  }

  .partners-logos{
    gap:10px 13px;
  }

  .partners-logos img{
    height:24px;
    max-width:88px;
  }
}

/* =========================
   STABLE CONTENT + COMPLETE FOOTER 2026-07-28
========================= */

.reveal-ready .scroll-reveal,
.scroll-reveal{
  opacity:1 !important;
  visibility:visible !important;
  transform:none !important;
  transition:none !important;
}

body{
  padding-bottom:0;
}

.footer-bar,
body.footer-visible .footer-bar{
  position:relative;
  left:auto;
  right:auto;
  bottom:auto;
  z-index:1;
  width:100%;
  height:auto;
  min-height:0;
  padding:24px 0;
  transform:none;
  opacity:1;
  pointer-events:auto;
}

.footer-grid{
  grid-template-columns:auto minmax(0, 1fr) auto;
  gap:24px;
}

.footer-partners{
  overflow:visible;
}

.partners-logos{
  width:100%;
  max-height:none;
  flex-wrap:wrap;
  gap:14px 20px;
  overflow:visible;
  padding:4px 0;
}

.partners-logos a{
  min-height:38px;
}

.partners-logos img,
.partners-logos a:nth-child(n) img{
  width:auto;
  height:32px;
  max-width:130px;
  max-height:38px;
  object-fit:contain;
}

.footer-links{
  align-self:center;
}

@media (max-width: 1100px){
  .footer-grid{
    grid-template-columns:1fr;
    justify-items:center;
    gap:18px;
  }

  .footer-left,
  .footer-links{
    justify-self:center;
  }

  .footer-partners{
    width:100%;
  }

  .partners-logos{
    justify-content:center;
  }
}

@media (max-width: 680px){
  .footer-bar,
  body.footer-visible .footer-bar{
    padding:20px 0 calc(20px + env(safe-area-inset-bottom));
  }

  .partners-logos img,
  .partners-logos a:nth-child(n) img{
    height:27px;
    max-width:100px;
    max-height:32px;
  }
}

@media (max-width: 420px){
  .partners-logos img,
  .partners-logos a:nth-child(n) img{
    height:24px;
    max-width:88px;
    max-height:28px;
  }
}

/* =========================
   ORDERED PARTNER GRID 2026-07-28
========================= */

.partners-logos{
  display:grid;
  grid-template-columns:repeat(10, minmax(0, 1fr));
  align-items:center;
  justify-content:stretch;
  gap:10px;
  width:100%;
}

.partners-logos a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-width:0;
  height:50px;
  padding:4px;
  grid-column:span 2;
}

.partners-logos a:nth-child(6){
  grid-column:2 / span 2;
}

.partners-logos img,
.partners-logos a:nth-child(n) img{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:36px;
  object-fit:contain;
  object-position:center;
}

@media (max-width: 760px){
  .partners-logos{
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:8px 12px;
  }

  .partners-logos a,
  .partners-logos a:nth-child(6){
    height:44px;
    grid-column:auto;
  }

  .partners-logos img,
  .partners-logos a:nth-child(n) img{
    max-width:104px;
    max-height:28px;
  }
}
