:root {
  --bg: #ebe7de;
  --panel: #f6f3ec;
  --text: #111218;
  --muted: rgba(17, 18, 24, 0.52);
  --line: rgba(17, 18, 24, 0.12);
  --line-strong: rgba(17, 18, 24, 0.2);
  --accent: #cf3a2f;
  --accent-soft: rgba(207, 58, 47, 0.74);
  --success: #4c9a63;
  --active: #ecd792;
  --white: #ffffff;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  overflow: hidden;
}

a,
button {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

.layout {
  position: relative;
  isolation: isolate;
  height: 100svh;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 76px;
}

.layout::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(235, 231, 222, 0.88), rgba(235, 231, 222, 0.88)), var(--site-image, none);
  background-position: center;
  background-size: cover;
  opacity: var(--site-image-opacity, 0);
  transition: opacity 0.28s ease, background-image 0.28s ease;
  pointer-events: none;
}

.side {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: var(--line);
  border-style: solid;
  background: rgba(255, 255, 255, 0.22);
}

.side-left {
  position: relative;
  border-width: 0 1px 0 0;
  justify-content: flex-start;
  padding: 0;
}

.side-right {
  border-width: 0 0 0 1px;
}

.side-brand,
.side-copy {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-brand {
  position: absolute;
  top: 12px;
  left: 50%;
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateX(-50%) rotate(180deg);
}

.main {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px 28px 18px;
}

.mobile-head,
.mobile-panel {
  display: none;
}

.topline {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  padding-bottom: 14px;
}

.filter-label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.topnav {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
}

.topnav-link {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0 12px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border: 0;
}

.topnav-link::after {
  content: "/";
  margin-left: 12px;
  color: var(--muted);
}

.topnav-link:last-child::after {
  display: none;
}

.topnav-link small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.topnav-link.is-active span,
.topnav-link:hover span,
.topnav-link:focus-visible span {
  color: var(--accent-soft);
}

.stage {
  position: relative;
  overflow: visible;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.lane {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 34px 10px 26px;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  transform-origin: center bottom;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.lane:first-child {
  border-left-color: transparent;
}

.lane.is-active,
.lane:hover,
.lane:focus-visible {
  background: var(--active);
  border-left-color: rgba(17, 18, 24, 0.06);
  border-right-color: rgba(17, 18, 24, 0.06);
  transform: scale(1.018);
  z-index: 2;
}

.lane-index {
  position: absolute;
  top: 72px;
  left: 12px;
  color: rgba(17, 18, 24, 0.55);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lane-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 7vw, 7rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  transition: color 0.18s ease, -webkit-text-stroke 0.18s ease, -webkit-text-fill-color 0.18s ease;
}

.lane.is-hovered .lane-title {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px var(--text);
}

.hover-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 12;
  width: min(320px, calc(100vw - 32px));
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.985);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.hover-preview.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.hover-preview-window {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(17, 18, 24, 0.12);
  background: rgba(246, 243, 236, 0.84);
  box-shadow: 0 18px 42px rgba(17, 18, 24, 0.14);
  backdrop-filter: blur(8px);
}

.hover-preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(17, 18, 24, 0.08);
  background: rgba(255, 255, 255, 0.42);
}

.hover-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(17, 18, 24, 0.24);
}

.hover-preview-domain {
  margin-left: 8px;
  color: rgba(17, 18, 24, 0.64);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hover-preview-media {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: var(--hover-preview-image, none);
  background-size: cover;
  background-position: center;
  background-color: rgba(17, 18, 24, 0.04);
}

.hover-preview-media.is-placeholder {
  background-image: radial-gradient(circle at top left, rgba(236, 215, 146, 0.52), rgba(236, 215, 146, 0) 42%), linear-gradient(135deg, rgba(17, 18, 24, 0.03), rgba(17, 18, 24, 0.08));
}

.hover-preview-placeholder {
  color: rgba(17, 18, 24, 0.54);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hover-preview-media:not(.is-placeholder) .hover-preview-placeholder {
  display: none;
}

.mobile-panel-button.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 52px;
  padding-top: 14px;
}

.footnote-current {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
}

.footnote a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footnote-links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.footnote-links a {
  text-transform: none;
  letter-spacing: 0.08em;
}

.social-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.social-link-telegram svg {
  width: 12px;
  height: 12px;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
}

.modal-shell[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 18, 24, 0.24);
  backdrop-filter: blur(2px);
}

.detail-modal {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 26px;
}

.modal-close {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  transform: rotate(45deg);
}

.modal-surface {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  border: 1px solid rgba(17, 18, 24, 0.12);
  background: rgba(250, 248, 242, 0.96);
  box-shadow: 0 24px 70px rgba(17, 18, 24, 0.18);
  overflow: hidden;
}

.modal-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 42px);
}

.modal-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.modal-kicker,
.modal-label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.modal-head h2 {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.modal-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 999px;
}

.status-open {
  background: rgba(76, 154, 99, 0.12);
  color: var(--success);
}

.status-soon {
  background: rgba(17, 18, 24, 0.08);
  color: rgba(17, 18, 24, 0.56);
}

.modal-domain {
  margin: 8px 0 0;
  color: rgba(17, 18, 24, 0.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.modal-description {
  margin: 18px 0 0;
  max-width: 30ch;
  font-size: 18px;
  line-height: 1.6;
}

.modal-contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.modal-contacts a {
  display: inline-block;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 32px;
}

.modal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--text);
  background: var(--text);
  color: #f8f4eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.modal-button-secondary {
  background: transparent;
  color: var(--text);
}

.modal-button.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.modal-visual {
  position: relative;
  min-height: 0;
  background: #111218;
}

.modal-visual-image {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(17, 18, 24, 0.08), rgba(17, 18, 24, 0.52)),
    var(--modal-image, none);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.modal-visual-caption {
  position: absolute;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(10, 10, 12, 0.44);
  backdrop-filter: blur(12px);
  color: #f4f0e7;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 1280px), (max-height: 760px) {
  .main {
    padding: 18px 22px 14px;
  }

  .topline {
    padding-bottom: 12px;
  }

  .lane {
    padding: 28px 8px 22px;
  }

  .lane-index {
    top: 54px;
    left: 9px;
    font-size: 11px;
  }

  .lane-title {
    font-size: clamp(3.4rem, 6.2vw, 5.8rem);
  }

  .hover-preview {
    width: 300px;
  }

  .footnote-current,
  .footnote a {
    font-size: 9px;
  }

  .footnote-links {
    gap: 14px;
  }

  .social-strip {
    gap: 6px;
  }

  .social-link {
    width: 24px;
    height: 24px;
    font-size: 9px;
  }
}

@media (max-width: 980px) {
  body {
    overflow: hidden;
  }

  .layout {
    height: 100svh;
    min-height: 100svh;
    grid-template-columns: 1fr;
  }

  .side {
    display: none;
  }

  .main {
    min-height: 100svh;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 8px;
    padding: 12px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
  }

  .mobile-head-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-head-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    border-radius: 50%;
    border: 1px solid rgba(17, 18, 24, 0.08);
    background:
      linear-gradient(var(--text), var(--text)) center 14px / 14px 1.5px no-repeat,
      linear-gradient(var(--text), var(--text)) center 22px / 14px 1.5px no-repeat,
      rgba(255, 255, 255, 0.44);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56);
  }

  .mobile-head-brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.01em;
  }

  .mobile-head-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 999px;
    background: rgba(17, 18, 24, 0.5);
    color: #f4f0e7;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .topline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 0;
    padding-bottom: 0;
  }

  .filter-label {
    margin: 0;
    flex: 0 0 auto;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 0;
  }

  .topnav {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px 0;
    overflow: visible;
    padding-bottom: 0;
  }

  .topnav-link {
    align-items: baseline;
    gap: 4px;
    min-height: 0;
    padding: 0 10px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .topnav-link::after {
    display: inline;
    margin-left: 10px;
  }

  .topnav-link small {
    min-width: 0;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: rgba(17, 18, 24, 0.58);
    font-size: 10px;
    letter-spacing: 0.06em;
    transform: translateY(-0.6em);
  }

  .topnav-link span {
    font-size: 15px;
    font-weight: 500;
  }

  .topnav-link.is-active,
  .topnav-link:hover,
  .topnav-link:focus-visible {
    background: transparent;
    color: inherit;
  }

  .topnav-link.is-active span,
  .topnav-link:hover span,
  .topnav-link:focus-visible span {
    color: var(--accent);
  }

  .stage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 0;
    height: 100%;
    margin-top: 8px;
    padding: 8px 0 0 12px;
    border-left: 1px solid rgba(17, 18, 24, 0.12);
    border-bottom: 0;
    overflow: hidden;
  }

  .stage::before {
    content: "";
    position: absolute;
    top: 34%;
    left: 10%;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(236, 215, 146, 0.32), rgba(236, 215, 146, 0) 68%);
    pointer-events: none;
    filter: blur(10px);
  }

  .hover-preview {
    display: none;
  }

  .lane {
    display: block;
    width: 100%;
    flex: 0 0 auto;
    min-height: 0;
    padding: 0;
    margin: 0 0 -7px;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .lane.is-active,
  .lane:hover,
  .lane:focus-visible {
    display: block;
    border-color: transparent;
    background: transparent;
    transform: none;
  }

  .lane.has-preview::before {
    display: none;
  }

  .lane.is-hovered .lane-title {
    color: var(--text);
    -webkit-text-fill-color: currentColor;
    -webkit-text-stroke: 0;
  }

  .lane-index {
    position: static;
    display: inline-flex;
    margin: 0 0 0 3px;
    vertical-align: top;
    color: rgba(17, 18, 24, 0.52);
    font-size: 9px;
    letter-spacing: 0.08em;
    transform: translateY(0.38em);
  }

  .lane-title {
    display: inline;
    writing-mode: horizontal-tb;
    transform: none;
    max-width: none;
    color: var(--text);
    font-size: clamp(3.45rem, 13.4vw, 4.85rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    text-shadow: none;
  }

  .lane.is-active .lane-title {
    color: var(--text);
    -webkit-text-fill-color: currentColor;
    -webkit-text-stroke: 0;
  }

  .lane[data-status="soon"] .lane-title {
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(17, 18, 24, 0.92);
  }

  .footnote {
    display: grid;
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(17, 18, 24, 0.08);
  }

  .footnote-current {
    display: none;
  }

  .status-dot {
    width: 7px;
    height: 7px;
  }

  .footnote-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
  }

  .footnote a {
    font-size: 7px;
    letter-spacing: 0.08em;
  }

  .social-strip {
    gap: 6px;
  }

  .social-link {
    width: 15px;
    height: 15px;
    font-size: 6px;
  }

  .detail-modal {
    padding: 14px;
  }

  .modal-surface {
    grid-template-columns: 1fr;
  }

  .modal-visual {
    min-height: 260px;
    order: -1;
  }
}

@media (hover: none), (pointer: coarse) {
  .hover-preview {
    display: none;
  }
}

@media (max-width: 640px) {
  .mobile-head {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
  }

  .mobile-head-link {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .modal-contacts {
    grid-template-columns: 1fr;
  }

  .detail-modal {
    padding: 12px;
  }

  .modal-description {
    font-size: 16px;
  }

  .modal-visual-caption {
    flex-direction: column;
    align-items: flex-start;
  }
}
