:root {
  color-scheme: dark;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background:
    radial-gradient(circle at top, rgba(44, 53, 75, 0.95), rgba(10, 12, 18, 1) 72%),
    #0b0e15;
  color: #e9ecf1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: #e9ecf1;
}

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

button {
  font: inherit;
}

.site-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 44px 0 72px;
  display: grid;
  gap: 36px;
}

.hero,
.panel {
  position: relative;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.hero {
  padding: 18px 0 8px;
  display: grid;
  gap: 22px;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(122, 170, 255, 0),
    rgba(122, 170, 255, 0.28),
    rgba(201, 176, 122, 0.18),
    rgba(122, 170, 255, 0)
  );
}

.hero__topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.hero__brand-text {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(122, 170, 255, 0.35);
  background: rgba(47, 66, 101, 0.32);
  color: #c7d7ff;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.locale-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(62, 74, 100, 0.72);
  border-radius: 10px;
  background: rgba(12, 16, 26, 0.46);
  backdrop-filter: blur(10px);
}

.locale-switch__btn {
  min-width: 52px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #c7d1e3;
  font-size: 14px;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

.locale-switch__btn:hover {
  background: rgba(43, 52, 72, 0.9);
}

.locale-switch__btn.is-active {
  background: #36425c;
  border-color: #4c5c7c;
  color: #ffffff;
}

.hero__title {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.96;
  letter-spacing: 0.02em;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.hero__subtitle {
  margin: 0;
  color: #f0d6a0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__play-btn,
.hero__link-btn,
.gallery__nav,
.gallery-dot,
.gallery-lightbox__close {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid #3a455d;
  font-size: 16px;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.hero__play-btn {
  background: linear-gradient(180deg, #4f6fa7 0%, #385482 100%);
  border-color: #7aa2ff;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(55, 91, 148, 0.28);
}

.hero__play-btn:hover,
.hero__link-btn:hover,
.gallery__nav:hover,
.gallery-dot:hover,
.gallery-lightbox__close:hover {
  transform: translateY(-1px);
}

.hero__play-btn:hover {
  background: linear-gradient(180deg, #6284c0 0%, #456596 100%);
  box-shadow: 0 14px 28px rgba(55, 91, 148, 0.36);
}

.hero__link-btn,
.gallery__nav,
.gallery-lightbox__close {
  background: rgba(43, 52, 72, 0.72);
  color: #e9ecf1;
  backdrop-filter: blur(10px);
}

.hero__link-btn:hover,
.gallery__nav:hover,
.gallery-lightbox__close:hover {
  background: #36425c;
  border-color: #4c5c7c;
}

.hero__play-btn--wide {
  width: fit-content;
}

.content {
  display: grid;
  gap: 70px;
}

.panel {
  padding: 0;
  display: grid;
  gap: 18px;
}

.panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -28px;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(122, 170, 255, 0),
    rgba(122, 170, 255, 0.16),
    rgba(201, 176, 122, 0.12),
    rgba(122, 170, 255, 0)
  );
}

.content > .panel:first-child::before {
  display: none;
}

.section-fade {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.section-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.panel__header h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.panel__text {
  margin: 0;
  max-width: 840px;
  color: #c7d1e3;
  font-size: 17px;
  line-height: 1.6;
}

.gallery {
  position: relative;
  display: block;
}

.gallery__viewport {
  min-width: 0;
}

.gallery__track {
  position: relative;
  min-height: 420px;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 420px;
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 8px;
  padding: 26px;
  border: 1px solid rgba(62, 74, 100, 0.74);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(18, 25, 40, 0.78), rgba(39, 56, 89, 0.52)),
    rgba(12, 16, 26, 0.78);
  color: #eef2f8;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.gallery-slide__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  align-self: end;
  width: calc(100% + 52px);
  margin: 0 -26px -26px;
  padding: 18px 26px 20px;
  border: none;
  border-radius: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 34%,
    rgba(255, 255, 255, 0) 100%
  );
}

.gallery-slide__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-slide.has-image .gallery-slide__image {
  opacity: 1;
}

.gallery-slide.has-image::before {
  background:
    linear-gradient(180deg, rgba(7, 10, 18, 0.08) 0%, rgba(7, 10, 18, 0.18) 45%, rgba(7, 10, 18, 0.72) 100%);
}

.gallery-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(122, 170, 255, 0.16), transparent 36%),
    radial-gradient(circle at bottom right, rgba(201, 176, 122, 0.16), transparent 34%);
}

.gallery-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.gallery-slide--world {
  background:
    linear-gradient(135deg, rgba(15, 40, 32, 0.9), rgba(37, 73, 56, 0.56)),
    rgba(12, 16, 26, 0.78);
}

.gallery-slide--combat {
  background:
    linear-gradient(135deg, rgba(45, 23, 23, 0.9), rgba(93, 42, 42, 0.56)),
    rgba(12, 16, 26, 0.78);
}

.gallery-slide--city {
  background:
    linear-gradient(135deg, rgba(25, 30, 55, 0.9), rgba(57, 69, 112, 0.56)),
    rgba(12, 16, 26, 0.78);
}

.gallery-slide--market {
  background:
    linear-gradient(135deg, rgba(62, 43, 18, 0.9), rgba(113, 78, 34, 0.56)),
    rgba(12, 16, 26, 0.78);
}

.gallery-slide--pvp {
  background:
    linear-gradient(135deg, rgba(48, 19, 52, 0.9), rgba(86, 45, 101, 0.56)),
    rgba(12, 16, 26, 0.78);
}

.gallery-slide__title,
.gallery-slide__text {
  position: relative;
  z-index: 1;
}

.gallery-slide__title {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.gallery-slide__text {
  margin: 0;
  color: #d8dfec;
  font-size: 15px;
  line-height: 1.55;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  margin-top: -23px;
  border-radius: 999px;
  background: rgba(11, 14, 21, 0.58);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.gallery__nav::before {
  content: "";
  width: 12px;
  height: 12px;
  display: block;
  border-top: 2px solid #eef2f8;
  border-right: 2px solid #eef2f8;
}

.gallery__nav--prev::before {
  transform: rotate(-135deg);
  margin-left: 4px;
}

.gallery__nav--next::before {
  transform: rotate(45deg);
  margin-right: 4px;
}

.gallery__nav--prev {
  left: 14px;
}

.gallery__nav--next {
  right: 14px;
}

.gallery__meta {
  display: grid;
  gap: 14px;
  padding-top: 14px;
  justify-items: center;
}

.gallery__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-dot {
  min-height: 14px;
  min-width: 14px;
  width: 14px;
  height: 14px;
  padding: 0;
  border-radius: 999px;
  background: rgba(43, 52, 72, 0.85);
  cursor: pointer;
}

.gallery-dot.is-active {
  background: #7aa2ff;
  border-color: #7aa2ff;
  box-shadow: 0 0 0 4px rgba(122, 170, 255, 0.12);
}

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

.feature-card,
.news-card {
  padding: 18px 18px 16px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(58, 69, 93, 0.4);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 25, 38, 0.46), rgba(12, 16, 26, 0.22));
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.feature-card:hover,
.news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 170, 255, 0.3);
  background: linear-gradient(180deg, rgba(24, 31, 48, 0.54), rgba(12, 16, 26, 0.28));
}

.feature-card h3,
.news-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: #eef2f8;
}

.feature-card p,
.news-card p {
  margin: 0;
  color: #b9c5da;
  font-size: 15px;
  line-height: 1.55;
}

.highlight-list {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  color: #c7d1e3;
  font-size: 16px;
  line-height: 1.55;
}

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

.news-card__date {
  color: #8fa1be;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.panel--cta {
  justify-items: start;
}

.panel--cta::after {
  content: "";
  position: absolute;
  inset: -18px -22px -18px -22px;
  border-radius: 28px;
  background: radial-gradient(circle at top left, rgba(122, 170, 255, 0.06), transparent 42%);
  z-index: -1;
  pointer-events: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 6px;
  color: #8fa1be;
  font-size: 13px;
  line-height: 1.4;
}

.site-footer__version {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gallery-lightbox.hidden {
  display: none;
}

.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 16, 0.86);
}

.gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100vw - 40px));
  display: grid;
  padding: 0;
  border: none;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
}

.gallery-lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  width: 54px;
  padding: 0;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
}

.gallery-lightbox__image {
  position: relative;
  min-height: min(76vh, 840px);
  border: 1px solid #2e364a;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
  background:
    linear-gradient(135deg, rgba(18, 25, 40, 0.82), rgba(39, 56, 89, 0.58)),
    rgba(12, 16, 26, 0.82);
}

.gallery-lightbox__img {
  width: 100%;
  height: min(76vh, 840px);
  object-fit: contain;
  display: none;
  background: rgba(8, 10, 16, 0.55);
}

.gallery-lightbox__image.has-image .gallery-lightbox__img {
  display: block;
}

.gallery-lightbox__image.gallery-slide--world {
  background:
    linear-gradient(135deg, rgba(15, 40, 32, 0.9), rgba(37, 73, 56, 0.56)),
    rgba(12, 16, 26, 0.82);
}

.gallery-lightbox__image.gallery-slide--combat {
  background:
    linear-gradient(135deg, rgba(45, 23, 23, 0.9), rgba(93, 42, 42, 0.56)),
    rgba(12, 16, 26, 0.82);
}

.gallery-lightbox__image.gallery-slide--city {
  background:
    linear-gradient(135deg, rgba(25, 30, 55, 0.9), rgba(57, 69, 112, 0.56)),
    rgba(12, 16, 26, 0.82);
}

.gallery-lightbox__image.gallery-slide--market {
  background:
    linear-gradient(135deg, rgba(62, 43, 18, 0.9), rgba(113, 78, 34, 0.56)),
    rgba(12, 16, 26, 0.82);
}

.gallery-lightbox__image.gallery-slide--pvp {
  background:
    linear-gradient(135deg, rgba(48, 19, 52, 0.9), rgba(86, 45, 101, 0.56)),
    rgba(12, 16, 26, 0.82);
}

.gallery-lightbox__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 8px;
  padding: 56px 28px 24px;
  background: linear-gradient(
    180deg,
    rgba(7, 10, 18, 0) 0%,
    rgba(7, 10, 18, 0.42) 34%,
    rgba(7, 10, 18, 0.86) 100%
  );
}

.gallery-lightbox__caption h3 {
  margin: 0;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.1;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.46);
}

.gallery-lightbox__caption p {
  margin: 0;
  max-width: min(760px, 100%);
  color: #d8dfec;
  font-size: 16px;
  line-height: 1.55;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

.gallery-lightbox__close {
  position: absolute;
  z-index: 3;
  width: 54px;
  height: 54px;
  min-height: 54px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3a455d;
  border-radius: 999px;
  background: rgba(11, 14, 21, 0.58);
  color: #e9ecf1;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.gallery-lightbox__close:hover {
  transform: translateY(-1px);
  background: #36425c;
  border-color: #4c5c7c;
}

.gallery-lightbox__close {
  top: 18px;
  right: 18px;
  font-size: 0;
  line-height: 1;
}

.gallery-lightbox__close::before,
.gallery-lightbox__close::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #eef2f8;
}

.gallery-lightbox__close::before {
  transform: rotate(45deg);
}

.gallery-lightbox__close::after {
  transform: rotate(-45deg);
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100vw - 20px, 1180px);
    padding: 18px 0 34px;
    gap: 18px;
  }

  .hero {
    padding: 12px 0 8px;
  }

  .hero__brand {
    align-items: flex-start;
  }

  .panel {
    padding: 0;
  }

  .feature-grid,
  .news-list {
    grid-template-columns: 1fr;
  }

  .gallery__track,
  .gallery-slide {
    min-height: 300px;
  }

  .gallery__nav {
    width: 42px;
    height: 42px;
    min-height: 42px;
    margin-top: -21px;
  }

  .gallery__nav--prev {
    left: 10px;
  }

  .gallery__nav--next {
    right: 10px;
  }

  .gallery-lightbox {
    padding: 12px;
  }

  .gallery-lightbox__dialog {
    width: min(100vw - 24px, 1280px);
  }

  .gallery-lightbox__image {
    min-height: min(72vh, 560px);
    border-radius: 18px;
  }

  .gallery-lightbox__img {
    height: min(72vh, 560px);
  }

  .gallery-lightbox__caption {
    padding: 48px 18px 18px;
  }

  .gallery-lightbox__close {
    width: 46px;
    height: 46px;
    min-height: 46px;
  }

  .gallery-lightbox__close {
    top: 10px;
    right: 10px;
  }

  .panel__text,
  .highlight-list {
    font-size: 15px;
  }

  .panel__header h2 {
    font-size: 24px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
