@import url("https://fonts.googleapis.com/css2?family=Forum&family=Noto+Serif:wght@400;500;600;700&display=swap");

:root {
  --empire-accent: #65afff;
  --empire-btn-border: rgba(105, 182, 255, 0.72);
  --empire-btn-bg: linear-gradient(180deg, rgba(38, 95, 175, 0.96), rgba(14, 42, 98, 0.99));
  --borey-accent: #d8a85d;
  --borey-btn-border: rgba(232, 184, 113, 0.7);
  --borey-btn-bg: linear-gradient(180deg, rgba(168, 108, 32, 0.98), rgba(108, 58, 12, 0.99));
}

/* ── Ken Burns ── */
@keyframes kb-empire {
  0%   { transform: scale(1)    translate(0,      0); }
  50%  { transform: scale(1.08) translate(-1.5%, -1%); }
  100% { transform: scale(1)    translate(0,      0); }
}

@keyframes kb-borey {
  0%   { transform: scale(1)    translate(0,     0); }
  50%  { transform: scale(1.07) translate(1%,   -1.5%); }
  100% { transform: scale(1)    translate(0,     0); }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #050709;
  color: #f5efe6;
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
}

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

/* ── outer shell ── */
.landing-shell {
  min-height: 100vh;
  padding: 28px;
  background: #000;
}

/* ── frame ── */
.landing-frame {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 56px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  background: #050607;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 80px rgba(0, 0, 0, 0.55);
}

/* ── brand header ── */
.landing-brand {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding: 0 52px;
}

.landing-brand > div { text-align: center; }

.landing-brand h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 0.95;
  background: linear-gradient(
    180deg,
    #ffffff  0%,
    #c8c8c8 45%,
    #888888 72%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 2px 0 rgba(0, 0, 0, 0.55))
    drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.landing-brand p {
  position: relative;
  margin: 10px 0 0;
  padding: 0 54px;
  color: #d0a05f;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-shadow:
    0 1px 0 rgba(100, 55, 5, 0.75),
    0 3px 6px rgba(40, 18, 2, 0.45);
}

.landing-brand p::before,
.landing-brand p::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42px;
  height: 1px;
  background: rgba(208, 160, 95, 0.8);
}
.landing-brand p::before { left: 0; }
.landing-brand p::after  { right: 0; }

.landing-topnav {
  position: absolute;
  top: 12px;
  right: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2b76a;
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.landing-topnav span {
  opacity: 0.5;
  font-size: 0.7rem;
}

.landing-topnav a {
  transition: opacity 180ms ease;
}
.landing-topnav a:hover {
  opacity: 0.65;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── split grid ── */
.landing-grid {
  display: grid;
  min-height: calc(100vh - 56px);
  grid-template-columns: 1fr 1fr;
}

/* ── world panels ── */
.world-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 56px);
  padding: 180px 54px 110px;
  overflow: hidden;
}

.world-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.world-panel--empire::before {
  background-image: url("./ibg.png");
  background-position: left center;
  animation: kb-empire 36s ease-in-out infinite;
}

.world-panel--borey::before {
  background-image: url("./bbg.png");
  background-position: right center;
  animation: kb-borey 44s ease-in-out infinite;
}

.world-panel {
  transition: box-shadow 600ms ease;
}

.world-panel__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 600ms ease;
}

.world-panel--empire:hover {
  box-shadow:
    inset 0 0 0 1px rgba(100, 175, 255, 0.55),
    inset 0 0 70px rgba(40, 110, 210, 0.13);
}

.world-panel--borey:hover {
  box-shadow:
    inset 0 0 0 1px rgba(220, 168, 80, 0.55),
    inset 0 0 70px rgba(180, 115, 35, 0.13);
}

.world-panel--empire:hover .world-panel__backdrop,
.world-panel--borey:hover  .world-panel__backdrop {
  opacity: 0.78;
}

.world-panel--empire .world-panel__backdrop {
  background:
    linear-gradient(180deg, rgba(4, 14, 26, 0.36) 0%, rgba(3, 11, 20, 0.66) 100%),
    linear-gradient(90deg,  rgba(5, 12, 18, 0.06) 0%, rgba(5, 12, 18, 0.38) 100%);
}

.world-panel--borey .world-panel__backdrop {
  background:
    linear-gradient(180deg, rgba(28, 13, 5, 0.28) 0%, rgba(18, 10, 6, 0.72) 100%),
    linear-gradient(270deg, rgba(16, 10, 6, 0.08) 0%, rgba(18, 10, 6, 0.42) 100%);
}

/* ── panel content ── */
.world-panel__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 560px;
  text-align: center;
}

.world-panel__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  flex: 1;
}

/* ── world titles ── */
.world-panel h2 {
  margin: 0;
  font-weight: 400;
  line-height: 0.94;
}

.world-panel--empire h2 {
  font-family: "Forum", Georgia, serif;
  font-size: 6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 8%, #dfe6ef 44%, #aeb9c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 3px 0 rgba(30, 70, 150, 0.8))
    drop-shadow(0 5px 8px rgba(5, 20, 70, 0.55));
}

.world-panel--borey h2 {
  font-family: "Forum", Georgia, serif;
  font-size: 6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #f4d18e 0%, #dba85a 48%, #9e6d2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 3px 0 rgba(100, 45, 8, 0.85))
    drop-shadow(0 5px 8px rgba(35, 12, 2, 0.6));
}

/* ── subtitle ── */
.world-panel__subtitle {
  margin: 0;
  font-size: 1.9rem;
  font-style: normal;
}
.world-panel--empire .world-panel__subtitle {
  color: var(--empire-accent);
  text-shadow:
    0 2px 0 rgba(15, 50, 120, 0.8),
    0 4px 10px rgba(5, 20, 70, 0.5);
}
.world-panel--borey .world-panel__subtitle {
  color: var(--borey-accent);
  text-shadow:
    0 2px 0 rgba(90, 40, 5, 0.85),
    0 4px 10px rgba(40, 15, 2, 0.5);
}

/* ── description ── */
.world-panel__description {
  margin: 0;
  max-width: 28ch;
  font-size: 1.25rem;
  line-height: 1.5;
}
.world-panel--empire .world-panel__description { color: #f2f5fb; }
.world-panel--borey  .world-panel__description { color: #f2e3cd; }

/* ── CTA button ── */
.world-panel__cta {
  display: block;
  width: min(100%, 390px);
  border: 1px solid;
  border-radius: 10px;
  padding: 20px 32px;
  font-family: inherit;
  font-size: 1.2rem;
  line-height: 1;
  text-align: center;
  color: #fff;
  backdrop-filter: blur(8px);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.world-panel__cta:hover { transform: translateY(-2px); }

.world-panel--empire .world-panel__cta {
  border-color: var(--empire-btn-border);
  background: var(--empire-btn-bg);
  box-shadow: inset 0 1px 0 rgba(147, 201, 255, 0.35), 0 12px 40px rgba(9, 39, 78, 0.25);
}

.world-panel--borey .world-panel__cta {
  border-color: var(--borey-btn-border);
  background: var(--borey-btn-bg);
  box-shadow: inset 0 1px 0 rgba(255, 223, 172, 0.2), 0 12px 40px rgba(74, 39, 15, 0.28);
}

/* ── bottom nav ── */
.world-panel__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  font-size: 0.9rem;
}

.world-panel__nav a {
  opacity: 0.9;
  transition: opacity 180ms ease;
}
.world-panel__nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.world-panel__nav a:not(:last-child)::after {
  content: "\00a0\2022\00a0";
  opacity: 0.55;
  display: inline-block;
}

.world-panel--empire .world-panel__nav { color: var(--empire-accent); }
.world-panel--borey  .world-panel__nav { color: var(--borey-accent); }

/* ── content vertical offsets (desktop) ── */
#imperiya .world-panel__content,
#borey    .world-panel__content { transform: translateY(54px); }
#borey    .world-panel__description { max-width: 26ch; }

/* ── center divider ── */
.landing-divider {
  position: absolute;
  top: 118px;
  bottom: 100px;
  left: 50%;
  z-index: 2;
  width: 1px;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(215, 166, 102, 0)        0%,
    rgba(215, 166, 102, 0.6)     14%,
    rgba(215, 166, 102, 0.35)    86%,
    rgba(215, 166, 102, 0)      100%
  );
}

.landing-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #f1ca8d;
  box-shadow: 0 0 16px rgba(241, 202, 141, 0.9);
}

/* ── footer ── */
.landing-footer {
  position: absolute;
  right: 0;
  bottom: 34px;
  left: 0;
  z-index: 3;
  padding: 0 32px;
  text-align: center;
}

.landing-footer p {
  margin: 0;
  color: rgba(255, 242, 225, 0.8);
  font-size: 1.15rem;
}

/* ════ medium desktop (1024–1280) ════ */
@media (max-width: 1280px) {
  .about-content { padding: 190px 38px 80px; }

  .landing-shell { padding: 20px; }

  .landing-brand h1 { font-size: 3.6rem; }

  .landing-brand { top: 22px; }

  .world-panel {
    padding: 155px 38px 95px;
  }

  .world-panel--empire h2,
  .world-panel--borey h2 {
    font-size: 4.8rem;
  }

  .world-panel__subtitle  { font-size: 1.6rem; }
  .world-panel__description { font-size: 1.1rem; }

  .world-panel__content { gap: 22px; }

  .world-panel__cta {
    width: min(100%, 340px);
    padding: 17px 24px;
  }

  .landing-divider { top: 112px; bottom: 88px; }
}

/* ════ tablet ════ */
@media (max-width: 980px) {
  .about-content { padding: 160px 28px 70px; }
  .about-title { font-size: 2.4rem; margin-bottom: 32px; }

  .landing-shell {
    padding: 18px;
  }

  .landing-frame {
    min-height: calc(100vh - 36px);
    border-radius: 24px;
  }

  .landing-brand {
    top: 24px;
    padding: 0 24px;
  }

  .landing-topnav {
    right: 24px;
    top: 10px;
  }

  .landing-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 130px 14px 110px;
    gap: 14px;
  }

  .world-panel {
    min-height: auto;
    padding: 36px 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
  }

  #imperiya .world-panel__content,
  #borey    .world-panel__content { transform: none; }

  .world-panel__content { gap: 22px; }

  .world-panel--empire h2 { font-size: clamp(2.6rem, 8vw, 4rem); }
  .world-panel--borey  h2 { font-size: clamp(2.8rem, 9vw, 4.5rem); }

  .world-panel__subtitle    { font-size: 1.3rem; }
  .world-panel__description { font-size: 1rem; }

  .world-panel__cta {
    width: 100%;
    padding: 18px 24px;
    border-radius: 10px;
    font-size: 1.1rem;
  }

  .landing-divider { display: none; }

  .landing-footer { bottom: 24px; }
  .landing-footer p { font-size: 1rem; }
}

/* ── about section (reusable block after the main copy) ── */
.about-section {
  margin-top: 64px;
  border-top: 1px solid rgba(215, 166, 102, 0.2);
  padding-top: 56px;
}

.about-impressions {
  margin: 24px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-content .about-impressions p {
  margin: 0;
  color: rgba(245, 239, 230, 0.7);
  font-style: italic;
}

/* ── about contact CTA ── */
.about-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 16px 36px;
  border: 1px solid rgba(232, 184, 113, 0.6);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(168, 108, 32, 0.95), rgba(108, 58, 12, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 223, 172, 0.2), 0 10px 36px rgba(74, 39, 15, 0.25);
  color: #fff;
  font-family: inherit;
  font-size: 1.1rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.about-cta:hover { transform: translateY(-2px); }

/* ── about worlds ── */
.about-worlds {
  margin-top: 64px;
  border-top: 1px solid rgba(215, 166, 102, 0.2);
  padding-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.about-world__title {
  margin: 0 0 12px;
  font-family: "Forum", Georgia, serif;
  font-size: 2.6rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 0.94;
}

.about-world--empire .about-world__title {
  background: linear-gradient(180deg, #fff 8%, #dfe6ef 44%, #aeb9c8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 2px 0 rgba(30, 70, 150, 0.7))
    drop-shadow(0 4px 6px rgba(5, 20, 70, 0.45));
}

.about-world--borey .about-world__title {
  background: linear-gradient(180deg, #f4d18e 0%, #dba85a 48%, #9e6d2c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 2px 0 rgba(100, 45, 8, 0.75))
    drop-shadow(0 4px 6px rgba(35, 12, 2, 0.5));
}

.about-world__genre {
  margin: 0 0 20px;
  font-size: 1.05rem;
  font-style: normal;
}

.about-world--empire .about-world__genre { color: var(--empire-accent); }
.about-world--borey  .about-world__genre { color: var(--borey-accent); }

.about-world__title-link { display: block; transition: filter 180ms ease; }
.about-world__title-link:hover { filter: brightness(1.3); }

/* ── about page ── */
.about-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 210px 52px 100px;
}

.about-title {
  margin: 0 0 44px;
  font-family: "Forum", Georgia, serif;
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #d0a05f;
  text-shadow:
    0 2px 0 rgba(90, 40, 5, 0.7),
    0 4px 14px rgba(40, 15, 2, 0.5);
}

.about-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(245, 239, 230, 0.85);
  margin: 0 0 1.4em;
}

.about-content p:last-child { margin-bottom: 0; }

.about-content strong {
  color: #f5efe6;
  font-weight: 600;
}

/* ════ mobile ════ */
@media (max-width: 640px) {
  .about-content { padding: 150px 20px 60px; }
  .about-title { font-size: 2rem; margin-bottom: 24px; }
  .about-content p { font-size: 1rem; }

  .landing-shell {
    padding: 12px;
  }

  .landing-frame {
    min-height: calc(100vh - 24px);
    border-radius: 20px;
  }

  .landing-brand {
    top: 16px;
    padding: 0 16px;
  }

  /* push DNDX block down so Расписание has its own row */
  .landing-brand > div {
    padding-top: 38px;
  }

  .landing-brand h1 { font-size: 2.8rem; }

  .landing-brand p {
    font-size: 0.85rem;
    padding: 0 46px;
  }

  /* навигация остаётся прибита к верхнему правому углу на мобиле */
  .landing-topnav {
    position: absolute;
    top: 2px;
    right: 16px;
    font-size: 0.8rem;
    gap: 6px;
  }

  .landing-grid {
    padding-top: 148px;
    padding-bottom: 80px;
    padding-left: 10px;
    padding-right: 10px;
    gap: 10px;
  }

  .world-panel { padding: 28px 16px; }

  .world-panel__subtitle    { font-size: 1.15rem; }
  .world-panel__description { font-size: 0.95rem; }

  .world-panel__nav { font-size: 0.85rem; }

  .landing-footer { bottom: 18px; }
  .landing-footer p { font-size: 0.9rem; }
}
