:root {
  --bg: #0b0f1a;
  --text: #e7ecff;
  --muted: #cfd6ff;
  --card-shadow: rgba(4, 5, 26, 0.45);
  --card-shadow-hover: rgba(4, 5, 26, 0.6);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  font-size: 17px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

a {
  color: #9fd5ff;
}

main {
  width: 100%;
}

.page-core {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem;
  text-align: center;
  gap: 1.5rem;
  font-size: 1.15rem;
  line-height: 1.7;
}
.page-core p:first-of-type {
  font-size: 1rem;
  opacity: 0.85;
}

.page-core p:last-of-type {
  font-size: 1.2rem;
}
.page-doc {
  min-height: 100vh;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.doc-header,
.doc-section {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}
.doc-header p,
.doc-section p {
  max-width: none;
  font-size: 1.05rem;
}
.doc-header p {
  margin-top: 0.35rem;
}
.doc-header h1 {
  margin-bottom: 0.35rem;
}

.doc-section h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-top: 0.6rem;
  margin-bottom: 0.35rem;
}
.doc-section h2::before {
  content: "Q ";
  color: #9fd5ff;
}
.doc-section p {
  line-height: 1.65;
}
.doc-section ol,
.doc-section ul {
  margin: 0.75rem 0 0 1.25rem;
  color: var(--muted);
}
.doc-section li + li {
  margin-top: 0.5rem;
}
.doc-section li {
  font-size: 1.08rem;
  line-height: 1.65;
}

.doc-section li + li {
  margin-top: 0.65rem;
}
.faq-item {
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}
h1,
h2 {
  margin: 0;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

p {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
}
strong {
  color: var(--text);
  font-weight: 700;
}
.banner {
  position: relative;
  background: center/cover no-repeat url("../img/banner.jpg");
  width: min(1200px, 100%);
  margin: 0 auto;
  height: clamp(220px, 28vw, 320px);
  box-shadow: 0 30px 45px rgba(3, 9, 30, 0.6);
  overflow: hidden;
}

.banner-title {
  position: absolute;
  bottom: 20px;
  left: 30px;
  margin: 0;
  color: white;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65),
    rgba(0, 0, 0, 0.2),
    transparent
  );
}

.buttons {
  display: grid;
  gap: 1rem;
  width: min(520px, 100%);
}

.card {
  display: block;
  position: relative;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  text-decoration: none;
  color: white;
  text-align: left;
  box-shadow: 0 10px 25px var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.card.offline {
  opacity: 0.45;
  pointer-events: none;
}

.status-dot {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: background 0.3s ease;
}

.status-dot.up {
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
}

.status-dot.down {
  background: #f87171;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px var(--card-shadow-hover);
}

.card .title {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
}

.card .subtitle {
  display: block;
  font-size: 0.9rem;
  opacity: 0.85;
}

.card.tv {
  background: linear-gradient(135deg, #e63946, #c1121f);
}

.card.books {
  background: linear-gradient(135deg, #10b981, #059669);
}

.card.requests {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.links a {
  background: white;
  color: #0b0f1a;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.links a:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}
.back-button {
  display: inline-block;
  margin-top: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}
.doc-section h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.35rem;
}

.doc-section p {
  color: var(--muted);
}
.help-steps {
  margin: 0.75rem 0 0 1.25rem;
  padding: 0;
  max-width: 900px;
  color: var(--muted);
}

.help-steps li + li {
  margin-top: 1rem;
}

.step-image {
  margin: 0.85rem 0 0.25rem;
  max-width: 340px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.step-image a {
  display: block;
  line-height: 0;
}

.step-image img {
  display: block;
  width: 100%;
  height: auto;
}

.step-image figcaption {
  padding: 0.65rem 0.85rem 0.8rem;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted);
}