/* ============================================================
   BASE
   ============================================================ */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #f5f0e8;
  min-height: 100vh;
  font-family: "Inter", Helvetica, sans-serif;
  color: #1a1a1a;
}

body.bg-gradient {
  background: linear-gradient(160deg, #ffffff 0%, #ffe08a 55%, #ffb600 100%);
  background-attachment: fixed;
}

body.bg-neutral {
  background: #f7f4ee;
}

/* ============================================================
   SIDEBAR STRIP
   ============================================================ */
.sidebar-strip {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 100vh;
  z-index: 200;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-right: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.sidebar-progress {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 0%;
  background: linear-gradient(180deg, #ffb600, #ff7a00);
  border-radius: 3px;
  transition: height 0.15s ease;
}

.sidebar-dots {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.sidebar-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  transition: background 0.3s, transform 0.3s;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.sidebar-dot.active {
  background: #ffb600;
  transform: scale(1.5);
  box-shadow: 0 0 6px #ffb60099;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 14px;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
}

.navbar-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: "Intel One Mono", monospace;
  font-size: 20px;
  font-weight: 700;
  color: #ffb600;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 15px;
  color: #333;
  text-decoration: none;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: #ffb600;
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover, .nav-link.active { color: #111; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main-content {
  margin-left: 14px;
  padding-top: 80px;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 48px;
}

.section-header {
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffb600;
  background: rgba(255, 182, 0, 0.12);
  border: 1px solid rgba(255, 182, 0, 0.3);
  border-radius: 20px;
  padding: 3px 12px;
}

.section-title {
  font-family: "Intel One Mono", monospace;
  font-size: 40px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.15;
  flex: 1;
}

.section-more {
  font-size: 14px;
  color: #ffb600;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.section-more:hover { opacity: 0.75; }

/* ============================================================
   GLASS CARDS
   ============================================================ */
.glass-card {
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10), inset 0 1px 0 rgba(255,255,255,0.55);
}

/* ============================================================
   HERO
   ============================================================ */
.hero-section { padding-top: 60px; padding-bottom: 40px; }

.hero-card {
  padding: 80px 80px 72px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(90deg, #ffb600, #ff7a00);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: "Intel One Mono", monospace;
  font-size: 88px;
  font-weight: 400;
  color: #ffb600;
  margin: 0 0 24px;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 4px 32px rgba(255,182,0,0.25);
}

.hero-desc {
  font-size: 20px;
  line-height: 1.7;
  color: #555;
  max-width: 720px;
  margin: 0 auto 40px;
}

/* Download button */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #ffb600 0%, #ff7a00 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(255,182,0,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(255,182,0,0.45);
}

.btn-icon { font-size: 18px; }

/* ============================================================
   CARDS ROW
   ============================================================ */
.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mini-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.13), inset 0 1px 0 rgba(255,255,255,0.55);
}

.mini-card-icon { font-size: 36px; }

.mini-card-title {
  font-family: "Intel One Mono", monospace;
  font-size: 22px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0;
}

.mini-card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none !important;
}

.card-link:hover {
  text-decoration: none !important;
}

.card-link p,
.card-link h3,
.card-link span {
  text-decoration: none !important;
}

.mini-card-action {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #ff7a00;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

.hero-gallery {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-gallery-title {
  font-family: "Intel One Mono", monospace;
  font-size: 32px;
  margin: 0;
  color: #1a1a1a;
}

.hero-gallery-desc {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  max-width: 760px;
}

.gallery-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.gallery-scroll::-webkit-scrollbar {
  height: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 182, 0, 0.45);
  border-radius: 999px;
}

.gallery-card {
  min-width: 290px;
  border-radius: 24px;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.gallery-card img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}

.info-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.info-card h3 {
  font-family: "Intel One Mono", monospace;
  font-size: 24px;
  margin: 0;
  color: #1a1a1a;
}

.info-list {
  display: grid;
  gap: 14px;
}

.info-item {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 18px;
  padding: 18px 20px;
}

.info-item-title {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffb600;
  margin-bottom: 8px;
}

.info-item-text {
  font-size: 16px;
  color: #333;
  margin: 0;
  line-height: 1.65;
}

.download-panel {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
}

.download-card p {
  margin: 0;
  color: #555;
  line-height: 1.7;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  background: linear-gradient(135deg, #ffb600 0%, #ff7a00 100%);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255,182,0,0.3);
}

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

.news-card {
  padding: 32px;
  border-radius: 24px;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.75);
}

.news-card h3 {
  margin: 0 0 10px;
  font-family: "Intel One Mono", monospace;
  font-size: 20px;
  color: #1a1a1a;
}

.news-card p {
  margin: 0;
  color: #555;
  line-height: 1.7;
}

.page-404 {
  text-align: center;
  padding: 140px 24px;
}

.page-404-title {
  font-size: 96px;
  line-height: 1;
  margin: 0 0 16px;
  color: #ffb600;
}

.page-404-text {
  font-size: 20px;
  color: #555;
  max-width: 720px;
  margin: 0 auto 28px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  background: rgba(255,255,255,0.9);
  color: #1a1a1a;
  border: 1px solid rgba(34, 34, 34, 0.12);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

/* ============================================================
   MAP DETAIL PAGE
   ============================================================ */
.map-hero {
  padding-top: 40px !important;
  padding-bottom: 60px !important;
}

.map-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 36px;
  align-items: start;
}

.map-gallery-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gallery-main {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.3);
  aspect-ratio: 16 / 9;    /* Устанавливаем жесткое соотношение сторон */
  object-fit: contain; /* Картинка сжимается, чтобы влезть целиком */
  object-position: center; /* Центрирует картинку внутри рамки */ 
}

.gallery-main-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gallery-btn {
  background: rgba(255, 182, 0, 0.15);
  border: 1px solid rgba(255, 182, 0, 0.35);
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-btn:hover {
  background: rgba(255, 182, 0, 0.25);
  border-color: rgba(255, 182, 0, 0.5);
}

.gallery-btn:active {
  transform: scale(0.97);
}

.gallery-counter {
  font-size: 14px;
  color: #666;
  font-weight: 600;
  flex: 1;
  text-align: center;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.thumb {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 20px;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.25s ease;
  border: 2px solid transparent;
}

.thumb:hover {
  opacity: 0.85;
  border-color: rgba(255, 182, 0, 0.4);
}

.thumb.active {
  opacity: 1;
  border-color: rgba(255, 182, 0, 0.8);
  box-shadow: 0 0 16px rgba(255, 182, 0, 0.3);
}

.map-info-col {
  display: flex;
  flex-direction: column;
}

.map-info-panel {
  padding: 36px;
  position: sticky;
  top: 100px;
}

.map-title-in-panel {
  font-family: "Intel One Mono", monospace;
  font-size: 36px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0 0 8px;
  line-height: 1.1;
}

.map-subtitle {
  font-size: 15px;
  color: #666;
  margin: 0 0 24px;
  line-height: 1.6;
}

.info-heading {
  font-family: "Intel One Mono", monospace;
  font-size: 24px;
  margin: 0 0 24px;
  color: #1a1a1a;
}

.info-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,182,0,0.15);
}

.info-block:last-of-type {
  border-bottom: none;
}

.info-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffb600;
  font-weight: 700;
}

.info-value {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin: 0;
}

.info-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255,182,0,0.15);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffb600;
  font-weight: 700;
}

.spec-value {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
}

.btn-primary-map {
  display: flex;          /* Изменили с inline-flex на flex */
  box-sizing: border-box; /* Обязательно */
  width: 100%; 
  align-items: center;
  justify-content: center;
  padding: 16px 0px;
  background: linear-gradient(135deg, #ffb600 0%, #ff7a00 100%);
  color: #fff;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #ffb600 0%, #ff7a00 100%);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(255,182,0,0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: rgba(255,255,255,0.8);
  color: #1a1a1a;
  border: 1px solid rgba(34,34,34,0.15);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

/* ============================================================
   SERVER CARDS
   ============================================================ */
.server-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
}

.server-card--full {
  padding: 28px 36px;
  gap: 20px;
  flex-wrap: wrap;
}

.server-status {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.server-status.online {
  background: #2ecc71;
  box-shadow: 0 0 8px #2ecc7199;
}

.server-status.offline {
  background: #ccc;
}

.server-info { flex: 1; }

.server-name {
  font-family: "Intel One Mono", monospace;
  font-size: 18px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0 0 3px;
}

.server-ip {
  font-size: 13px;
  color: #888;
  margin: 0;
  font-family: monospace;
}

.server-players1 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.server-players2 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.server-players3 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.players-count1 {
  font-family: "Intel One Mono", monospace;
  font-size: 24px;
  font-weight: 700;
  color: #ffb600;
  line-height: 1;
}

.players-count2 {
  font-family: "Intel One Mono", monospace;
  font-size: 24px;
  font-weight: 700;
  color: #ffb600;
  line-height: 1;
}

.players-count3 {
  font-family: "Intel One Mono", monospace;
  font-size: 24px;
  font-weight: 700;
  color: #ffb600;
  line-height: 1;
}

.players-label1 {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.players-label2 {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.players-label3 {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.servers-full-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ============================================================
   ABOUT GRID
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.13), inset 0 1px 0 rgba(255,255,255,0.55);
}

.about-card--wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding: 36px 40px;
}

.about-icon { font-size: 36px; flex-shrink: 0; }

.about-card-title {
  font-family: "Intel One Mono", monospace;
  font-size: 22px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0;
}

.about-card-desc {
  font-size: 15px;
  line-height: 1.65;
  color: #666;
  margin: 0;
}

/* ============================================================
   NEWS
   ============================================================ */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  padding: 36px 40px;
  transition: transform 0.2s;
}

.news-item:hover { transform: translateX(4px); }

.news-date {
  font-size: 12px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.news-title {
  font-family: "Intel One Mono", monospace;
  font-size: 22px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0 0 10px;
}

.news-desc {
  font-size: 15px;
  line-height: 1.65;
  color: #666;
  margin: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 -2px 24px rgba(0,0,0,0.06);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy { font-size: 14px; color: #888; }
.footer-email { font-size: 16px; color: #444; font-weight: 500; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .cards-row, .about-grid { grid-template-columns: 1fr; }
  .about-card--wide { flex-direction: column; }
  .hero-title { font-size: 52px; }
  .section-title { font-size: 28px; }
  .hero-card { padding: 48px 32px; }
  .nav-links { gap: 16px; }
  .section { padding: 60px 24px; }
}

.Cardimg {
    width: 400px;      /* Ширина как у иконки */
    height: 200px;     /* Высота */
    object-fit: contain; /* Чтобы картинка не сплющилась */
    margin-bottom: 10px;
    border-radius: 20px;
}

.grid-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}