* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; height: 100dvh; }
body {
  --ink: #0e141b;
  --panel: #16202a;
  --rail: #1c2833;
  --metal: #8ea4b8;
  background: var(--ink);
  color: #e7eef4;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}
img { -webkit-user-drag: none; }
a { color: #fff; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; }

.page {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

header {
  flex: none;
  position: relative;
  z-index: 20;
  background: var(--ink);
}
header:has(.bar:empty) { display: none; }
header .bar:empty { display: none; }
header .bar {
  width: 1000px;
  max-width: calc(100% - 24px);
  margin: 0 auto;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.mast-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
}
.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(460px, 78%);
  padding: 10px 16px;
  border-radius: 8px;
  background: #1c2833;
  border: 1px solid rgba(255,255,255,.12);
  color: #e7eef4;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  animation: pulse-note 2.8s ease-in-out infinite;
}
.partner-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.partner-link img { height: 26px; width: auto; max-width: 88px; object-fit: contain; }
.partner-link:hover { animation: none; background: #e7eef4; color: #101820; box-shadow: none; }
@keyframes pulse-note {
  0%, 100% { background: #1c2833; color: #e7eef4; border-color: rgba(255,255,255,.16); box-shadow: none; }
  50% { background: #4a6278; color: #fff; border-color: rgba(255,255,255,.7); box-shadow: 0 0 16px rgba(255,255,255,.35); }
}
.social-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 15px;
  border-radius: 30px;
  background: #1c2833;
  border: 1px solid rgba(255,255,255,.1);
}
.social-button svg { width: 16px; height: 16px; fill: #fff; }
.social-button.telegram { background: #2f6f86; }
.social-button.teams { background: #3d4f86; }
.social-button.instagram { background: #8a4a62; }
.social-button.skype { background: #3a5680; }
.social-button:hover { background: #e7eef4; color: #0e141b; }
.social-button:hover svg { fill: #0e141b; }

.mast {
  flex: none;
  margin: 6px 14px 0;
  text-align: center;
}
.mast img {
  width: 210px;
  height: 58px;
  margin: 0 auto;
  object-fit: contain;
}
.mast h1 {
  margin: 0;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.1;
  color: #e7eef4;
}

.strip {
  position: relative;
  flex: none;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #101820;
  border-top: 1px solid rgba(255,255,255,.08);
}
.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 8px 16px 10px;
  display: flex;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.strip h1 {
  position: relative;
  z-index: 3;
  flex: none;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #101820;
  border-right: 1px solid rgba(255,255,255,.08);
}
.strip h1 svg { width: 15px; height: 15px; fill: var(--metal); }
.ticker-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: transparent;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 28px), transparent);
}
.ticker {
  display: flex;
  flex: none;
  width: max-content;
  min-width: max-content;
  animation: ticker 28s linear infinite;
}
@media (hover: hover) and (pointer: fine) {
  .ticker:hover { animation-play-state: paused; }
}
.ticker a {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  height: 44px;
  margin: 0 7px;
  padding: 0 5px 0 14px;
  border-radius: 14px;
  background: #1c2833;
  border: 1px solid rgba(255,255,255,.08);
  white-space: nowrap;
}
.ticker a:before { content: none; }
.ticker img, .ticker span, .ticker .go { position: relative; z-index: 1; }
.ticker img {
  height: 26px;
  width: auto;
  max-width: 92px;
  object-fit: contain;
  object-position: center;
  margin: 0;
  background: none;
}
.ticker span { font-weight: 700; font-size: 14px; letter-spacing: .03em; margin: 0; }
.ticker .go {
  height: 34px;
  min-width: 112px;
  padding: 0 16px;
  font-size: 12px;
  flex: none;
}
.ticker .go, .item .button, .fix-side .button, .bottom-fixed .enter {
  background: #e7eef4;
  color: #101820;
  border-radius: 6px;
  height: 36px;
  min-width: 108px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: none;
  animation: blink-btn 2.8s ease-in-out infinite;
}
.ticker .go:hover, .item .button:hover, .fix-side .button:hover, .bottom-fixed .enter:hover {
  animation: none;
  background: #fff;
}
@keyframes blink-btn {
  0%, 100% { filter: brightness(1); box-shadow: none; }
  50% { filter: brightness(1.12); box-shadow: 0 0 8px rgba(255,255,255,.35); }
}
@keyframes ticker {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.container {
  flex: 1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.container::-webkit-scrollbar { width: 0; height: 0; display: none; }

.row { margin: 0; min-width: 0; display: flex; align-items: stretch; }
.item {
  position: relative;
  display: flex;
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 132px;
  overflow: hidden;
  border-radius: 12px;
  background: #1a242f;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: none;
  cursor: pointer;
}
.item:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--site-color);
  z-index: 0;
}
.item .left {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 14px 18px;
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}
.item .mark {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border-radius: 14px;
  background: #fff;
  color: var(--site-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0,0,0,.24);
}
.item .mark svg { width: 28px; height: 28px; display: block; }
.item .text {
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}
.item .text small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  opacity: .7;
  text-transform: none;
}
.item .brand {
  flex: none;
  width: 168px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.item .logo {
  width: 100%;
  height: 52px;
  max-width: 100%;
  flex: none;
  object-fit: contain;
  object-position: center;
  background: none;
}
.item .word {
  height: 52px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
}
.item .button {
  width: 100%;
  height: 42px;
  font-size: 13px;
  letter-spacing: .08em;
}

.fix-side {
  position: relative;
  grid-row: 1 / -1;
  min-height: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(198, 176, 138, .08), transparent 24%),
    var(--rail);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.fix-side:before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--site-color) 26%, #000));
}
.fix-side.left {
  grid-column: 1;
  border-right: 1px solid rgba(198, 176, 138, .16);
}
.fix-side.right { grid-column: 3; border-left: 1px solid rgba(198, 176, 138, .16); }
.stage.has-right:not(.has-left) .fix-side.right { grid-column: 2; }
.fix-side .center {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 10px;
}
.fix-side .badge {
  background: transparent;
  color: var(--metal);
  font-weight: 700;
  letter-spacing: .16em;
  border: 1px solid rgba(198, 176, 138, .45);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
}
.fix-side .logo-slot {
  width: 100%;
  min-height: 150px;
  margin: 8px 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fix-side .logo-slot img {
  width: 132px;
  max-height: 180px;
  height: auto;
  object-fit: contain;
  margin: 0;
}
.fix-side .logo-slot img.spin {
  width: 168px;
  height: 108px;
  max-width: none;
  max-height: none;
  transform: rotate(-90deg);
}
.fix-side .logo-slot:has(img.spin) { min-height: 176px; }
.fix-side .mark {
  margin: 18px 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .08em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.fix-side .promo {
  width: 86%;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #f6f1ea;
  margin-bottom: 14px;
}
.fix-side .button { width: 86%; height: 40px; font-size: 13px; }

.bottom-fixed {
  position: relative;
  flex: none;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 78px;
  margin: 10px 14px 0;
  padding: 0 48px 0 16px;
  background: var(--rail);
  border: 1px solid rgba(198, 176, 138, .28);
  border-radius: 16px;
}
.bottom-fixed .x {
  position: absolute;
  right: 12px;
  top: 8px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.bottom-fixed img { height: 52px; width: auto; max-width: 180px; object-fit: contain; }
.bottom-fixed .center { flex: 1; text-align: center; }
.bottom-fixed h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: .12em;
  font-weight: 700;
  text-transform: uppercase;
}
.bottom-fixed p { margin: 6px 0 0; opacity: .62; letter-spacing: .06em; font-size: 13px; }
.bottom-fixed .enter {
  flex: none;
  height: 44px;
  min-width: 148px;
  font-size: 13px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  z-index: 40;
}
.popup {
  position: fixed;
  z-index: 41;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, calc(100% - 28px));
  background: #16202a;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 22px 20px 18px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.popup .x {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}
.popup img.logo { height: 48px; margin: 8px auto; object-fit: contain; }
.popup h2 { margin: 0 0 12px; font-size: 18px; text-transform: uppercase; }
.popup img.banner { width: 100%; max-height: 280px; object-fit: contain; border-radius: 12px; margin-bottom: 12px; }
.popup .go {
  display: block;
  background: #e7eef4;
  color: #0e141b;
  border-radius: 30px;
  padding: 10px;
  font-weight: 700;
}

.empty {
  grid-column: 1 / -1;
  margin: 30px 0;
  text-align: center;
  opacity: .7;
}

@media (max-width: 1180px) and (min-width: 761px) {
  .stage, .bottom-fixed { margin-left: 8px; margin-right: 8px; }
}
@media (max-width: 760px) {
  .stage {
    margin: 8px;
    border-radius: 16px;
  }
  .bottom-fixed { margin: 8px 8px 0; height: auto; }
  .container {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 6px;
  }
  .mast { margin: 4px 8px 0; }
  .mast img { width: 140px; height: 40px; }
  .mast h1 { font-size: 18px; letter-spacing: .02em; }
  .partner-link { font-size: 14px; padding: 8px 12px; max-width: 72%; }
  .partner-link img { height: 20px; }
  .strip { height: 54px; }
  .strip h1 { display: none; }
  .ticker-wrap {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .ticker a { height: 40px; margin: 0 5px; padding: 0 4px 0 10px; }
  .ticker span { font-size: 12px; }
  .ticker .go { height: 30px; min-width: 96px; font-size: 11px; padding: 0 12px; }
  header .bar { min-height: 0; padding: 8px 10px; justify-content: flex-start; }
  .social-button { padding: 7px 10px; font-size: 11px; }
  .row { display: block; }
  .item { height: auto; min-height: 0; border-radius: 14px; }
  .item:before { top: 0; left: 0; right: 0; height: 3px; }
  .item .left {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 10px;
    min-height: 0;
  }
  .item .text { font-size: 14px; line-height: 1.15; }
  .item .text small {
    font-size: 12px;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .item .brand {
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
  .item .logo { width: 86px; height: 36px; max-width: 86px; }
  .item .word { width: 72px; height: 36px; min-height: 0; font-size: 12px; line-height: 1.1; }
  .item .button {
    width: auto;
    height: 34px;
    min-width: 0;
    margin-top: 0;
    font-size: 11px;
    letter-spacing: .02em;
    padding: 0 10px;
  }
  .bottom-fixed {
    height: auto;
    min-height: 0;
    padding: 12px 34px 12px 10px;
    gap: 8px;
  }
  .bottom-fixed h2 { font-size: 12px; letter-spacing: .06em; }
  .bottom-fixed p { font-size: 11px; margin-top: 2px; }
  .bottom-fixed img { height: 32px; max-width: 78px; }
  .bottom-fixed .enter { height: 34px; min-width: 0; padding: 0 10px; font-size: 11px; }
  .popup { width: calc(100% - 24px); }
}
