/* ============ FONTS ============ */
@font-face {
  font-family: 'Minecraft Rus Regular';
  src: url('fonts/minecraft_rus_regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============ VARIABLES ============ */
:root {
  --bg: #090a0f;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 209, 102, 0.35);

  --text: #f8fafc;
  --muted: #94a3b8;
  --dim: #8493a8;

  --gold: #ffd166;
  --orange: #ff7a45;
  --green: #34d399;
  --red: #f87171;

  --font-display: 'Minecraft Rus Regular', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ============ RESET & BASE ============ */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 209, 102, 0.06), transparent 35%),
    radial-gradient(circle at 85% 30%, rgba(255, 122, 69, 0.05), transparent 35%);
}

.container {
  max-width: 1120px;
}

/* ============ PAGE TRANSITION ============ */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99999;
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.page-transition.hide {
  opacity: 0;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: padding 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(9, 10, 15, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.8px;
  padding: 6px 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.navbar-brand .brand-title {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.navbar-brand .brand-subtitle {
  display: block;
  margin-top: 5px;
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 1.8px;
  line-height: 1;
  color: var(--muted);
  white-space: nowrap;
}
}

.navbar-brand:hover {
  color: var(--gold);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--muted) !important;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 10px 18px !important;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text) !important;
  background: var(--surface-hover);
}

.nav-link.active {
  color: var(--gold) !important;
}

.mobile-menu-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-btn:active {
  transform: scale(0.95);
  background: var(--surface-hover);
}

.mobile-menu {
  display: none;
  list-style: none;
  margin: 12px 0 0;
  padding: 10px;
  background: rgba(13, 15, 24, 0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.mobile-menu.show {
  display: block;
  animation: mobileMenuIn 0.2s ease;
}

@keyframes mobileMenuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-menu .nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px !important;
  margin: 2px 0;
  font-size: 13px;
  min-height: 48px;
}

.mobile-menu .nav-link::after {
  content: "\ea50";
  font-family: 'boxicons';
  font-size: 18px;
  color: var(--dim);
}

/* ============ BUTTONS & IP BADGE ============ */
.btn-main,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  min-height: 50px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-main {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #0b0c10;
  box-shadow: 0 10px 30px rgba(255, 122, 69, 0.22);
}

.btn-main:hover {
  transform: translateY(-2px);
  color: #0b0c10;
  box-shadow: 0 16px 36px rgba(255, 122, 69, 0.35);
}

.btn-main:active {
  transform: scale(0.98);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-ghost:active {
  transform: scale(0.98);
}

.ip-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 20px;
  min-height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(255, 209, 102, 0.07);
  border: 1px solid rgba(255, 209, 102, 0.25);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ip-pill:hover {
  background: rgba(255, 209, 102, 0.13);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.ip-pill:active {
  transform: scale(0.98);
}

.ip-pill i {
  font-size: 18px;
}

/* ============ HERO SECTION ============ */
.hero {
  min-height: 90vh;
  min-height: 90svh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 130px 0 84px;
  background:
    linear-gradient(180deg, rgba(9, 10, 15, 0.72) 0%, rgba(9, 10, 15, 0.88) 75%, var(--bg) 100%),
    url('img/background.webp') center/cover no-repeat;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(15, 17, 26, 0.78);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  font-size: 13px;
  color: var(--muted);
}

.stat-pill b {
  color: var(--text);
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.dot.offline {
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

.dot.unknown {
  background: var(--dim);
  box-shadow: none;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.8vw, 44px);
  line-height: 1.35;
  margin: 0 0 18px;
  color: var(--text);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 28px;
}

.hero-copy strong {
  color: var(--text);
  font-weight: 600;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  width: min(100%, 360px);
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
  animation: gentleFloat 6s ease-in-out infinite;
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ============ SECTIONS & CARDS ============ */
.section {
  padding: 92px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(19px, 3vw, 28px);
  line-height: 1.4;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 209, 102, 0.08);
  border: 1px solid rgba(255, 209, 102, 0.2);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 10px;
  color: var(--text);
}

.feature-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* ============ STEPS ============ */
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all 0.25s ease;
}

.step-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.step-num {
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #0b0c10;
  font-family: var(--font-display);
  font-size: 13px;
  display: grid;
  place-items: center;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 10px;
}

.step-card p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* ============ CTA BANNER ============ */
.cta-banner {
  background: linear-gradient(145deg, rgba(255, 209, 102, 0.06), rgba(255, 122, 69, 0.04));
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: var(--radius-lg);
  padding: 56px 28px;
  text-align: center;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.8vw, 26px);
  line-height: 1.45;
  margin: 0 0 14px;
}

.cta-banner p {
  color: var(--muted);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 26px;
}

/* ============ SUBPAGES HEADER ============ */
.page-section {
  padding: 132px 0 88px;
  min-height: calc(100vh - 140px);
}

.page-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(21px, 3.5vw, 32px);
  line-height: 1.35;
  margin: 0 0 12px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-header p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

/* ============ SHOP (PREMIUM) ============ */
.shop-switch {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 36px;
  padding: 6px;
  width: max-content;
  max-width: 100%;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.shop-switch-btn {
  padding: 12px 26px;
  min-height: 44px;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.shop-switch-btn:hover {
  color: var(--text);
}

.shop-switch-btn.active {
  color: #0b0c10;
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.shop-panel {
  display: none;
}

.shop-panel.active {
  display: block;
  animation: fadeUp 0.25s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.shop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  position: relative;
}

.shop-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.shop-card--featured {
  border-color: rgba(255, 122, 69, 0.3);
  background: linear-gradient(180deg, rgba(255, 122, 69, 0.05) 0%, var(--surface) 100%);
}

.shop-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 122, 69, 0.15);
  border: 1px solid rgba(255, 122, 69, 0.35);
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 10px;
}

.shop-card h2 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--gold);
}

.shop-card--featured h2 {
  color: var(--orange);
}

.shop-price {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.shop-price span {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text);
  margin-right: 4px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex-grow: 1;
}

.features-list-heading {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 16px 0 8px;
}

.features-list-heading:first-child {
  margin-top: 0;
}

.features-list li:not(.features-list-heading) {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 7px 0;
  font-size: 15px;
  color: var(--muted);
}

.features-list li i {
  color: var(--gold);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.features-list li code {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13px;
}

/* Coin calculator */
.coin-rate {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: var(--green);
  font-family: var(--font-display);
  font-size: 11px;
  margin-bottom: 20px;
}

.coin-calculator {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  margin-bottom: 22px;
  text-align: center;
}

.coin-label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.coin-input-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.coin-input-wrapper input {
  width: 140px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 17px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px;
  outline: none;
  transition: 0.2s;
}

.coin-input-wrapper input:focus {
  border-color: var(--gold);
}

.coin-total {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  color: var(--muted);
}

.coin-total span {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold);
  margin-left: 6px;
}

/* ============ MODAL ============ */
.modal-content {
  background: #12141f;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  padding: 8px;
}

.form-label {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.form-control {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 14px 16px;
  font-size: 16px;
}

.form-control:focus {
  background: var(--surface-hover);
  border-color: var(--gold);
  box-shadow: none;
  color: var(--text);
}

.form-control.is-invalid {
  border-color: var(--red);
}

.error-message {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: var(--red);
  font-size: 13px;
}

.error-message.show {
  display: flex;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

/* ============ RULES ============ */
.rules-search-wrap {
  max-width: 540px;
  margin: 0 auto 32px;
  position: relative;
}

.rules-search-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--dim);
  font-size: 20px;
}

.rules-search {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px 12px 46px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 16px;
  outline: none;
  transition: 0.2s;
}

.rules-search:focus {
  border-color: var(--gold);
  background: var(--surface-hover);
}

.rule-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.rule-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.rule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px;
  min-height: 60px;
  cursor: pointer;
  user-select: none;
}

.rule-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}

.rule-title i {
  color: var(--gold);
  font-size: 20px;
  flex-shrink: 0;
}

.toggle-icon {
  font-size: 22px;
  color: var(--muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.rule-card:not(.collapsed) .toggle-icon {
  transform: rotate(180deg);
  color: var(--gold);
}

.rule-content {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.25s ease;
}

.rule-card.collapsed .rule-content {
  grid-template-rows: 0fr;
}

.rule-content-inner {
  overflow: hidden;
  padding: 0 24px 20px;
}

.rule-card.collapsed .rule-content-inner {
  padding-bottom: 0;
}

.rule-item {
  position: relative;
  padding: 9px 0 9px 44px;
  font-size: 15px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.rule-item:first-child {
  border-top: none;
}

.rule-item::before {
  content: attr(data-number);
  position: absolute;
  left: 0;
  top: 10px;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--gold);
}

.rule-item.sub-item {
  padding-left: 68px;
  font-size: 14px;
}

.rule-item.sub-item::before {
  left: 28px;
  color: var(--dim);
}

.important-notice {
  margin: 14px 0;
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 122, 69, 0.08);
  border: 1px solid rgba(255, 122, 69, 0.3);
}

.important-notice h4 {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--orange);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.important-notice p {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.mods-box {
  margin-top: 32px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.mods-box h3 {
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mods-box h3 i {
  color: var(--green);
  font-size: 22px;
  flex-shrink: 0;
}

.mods-box .subtitle {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 20px;
}

.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.mod-item {
  padding: 15px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

/* ============ MAP ============ */
.map-container {
  position: relative;
  width: 100%;
  height: calc(100vh - 230px);
  height: calc(100dvh - 230px);
  min-height: 540px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0d0f17;
  box-shadow: var(--shadow);
}

.map-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============ OFFER ============ */
.offer-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.offer-content h2 {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.5;
  color: var(--gold);
  margin: 32px 0 14px;
}

.offer-content h2:first-child {
  margin-top: 0;
}

.offer-content strong {
  color: var(--text);
}

.offer-content ul {
  padding-left: 20px;
}

/* ============ FOOTER ============ */
footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--dim);
  font-size: 14px;
}

footer p {
  margin: 4px 0;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--gold);
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============ TABLET & MOBILE OPTIMIZATION ============ */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .status-pills,
  .hero-actions {
    justify-content: center;
  }
  .hero-copy {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-visual {
    order: -1;
  }
  .hero-logo {
    width: 190px;
    animation: none;
  }
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 767px) {
  .navbar {
    padding: 12px 0;
    background: rgba(9, 10, 15, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--border);
  }
/* Логотип DarsikCraft */
.navbar .navbar-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center;
    line-height: 1 !important;
    text-decoration: none;
}

.navbar .brand-title {
    display: block;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1px;
}

.navbar .brand-subtitle {
    display: block;
    margin-top: 5px;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1;
    color: #999;
    white-space: nowrap;
}
  .hero {
    min-height: auto;
    padding: 96px 0 56px;
  }
  .hero h1 {
    font-size: 24px;
    line-height: 1.38;
  }
  .hero-copy {
    font-size: 16px;
    margin-bottom: 22px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }
  .hero-actions .btn-main,
  .hero-actions .ip-pill {
    width: 100%;
  }
  .hero-logo {
    width: 145px;
  }
  .section,
  .page-section {
    padding: 56px 0;
  }
  .page-section {
    padding-top: 92px;
  }
  .section-head {
    margin-bottom: 32px;
  }
  .feature-card,
  .step-card {
    padding: 22px 20px;
    border-radius: var(--radius-md);
  }
  .cta-banner {
    padding: 36px 20px;
    border-radius: var(--radius-md);
  }
  .cta-banner .d-flex {
    flex-direction: column;
    gap: 10px !important;
  }
  .cta-banner .btn-main,
  .cta-banner .btn-ghost {
    width: 100%;
  }
  .shop-switch {
    width: 100%;
    margin-bottom: 24px;
  }
  .shop-switch-btn {
    flex: 1;
    padding: 12px 8px;
    font-size: 11px;
  }
  .shop-card {
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }
  .shop-badge {
    position: static;
    display: inline-block;
    margin-bottom: 12px;
  }
  .coin-input-wrapper input {
    width: 125px;
    font-size: 16px;
  }
  .modal-dialog {
    margin: 14px;
  }
  .modal-actions {
    flex-direction: column-reverse;
  }
  .modal-actions .btn-main,
  .modal-actions .btn-ghost {
    width: 100%;
  }
  .rule-header {
    padding: 16px 18px;
  }
  .rule-title {
    font-size: 12px;
    gap: 10px;
  }
  .rule-content-inner {
    padding: 0 18px 16px;
  }
  .rule-item {
    padding: 9px 0 9px 38px;
    font-size: 14px;
  }
  .rule-item.sub-item {
    padding-left: 56px;
  }
  .rule-item.sub-item::before {
    left: 18px;
  }
  .mods-box,
  .offer-content {
    padding: 22px 18px;
    border-radius: var(--radius-md);
  }
  .map-container {
    height: 66vh;
    height: 66dvh;
    min-height: 380px;
    border-radius: var(--radius-md);
  }
  footer {
    padding: 28px 0;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
.start-button {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 230px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.start-button img {
  display: block;
  width: 230px !important;
  max-width: 100%;
  height: auto;
}

.start-button:hover {
  transform: translateY(-3px) scale(1.04);
  filter: brightness(1.15) drop-shadow(0 0 12px rgba(255, 170, 0, .35));
}

.start-button:active {
  transform: scale(.94);
  filter: brightness(.9);
}

/* Изображения особенностей сервера */
.feature-icon {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    overflow: hidden;
    background: transparent;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
}

.feature-card:hover .feature-icon img {
    transform: scale(1.06);
}


/* =====================================================================
   ДОПОЛНЕНИЯ: доступность, тач-устройства, безопасные зоны, удобство
   ===================================================================== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
}

/* Отступы под вырезы/«чёлки» и жесты iOS/Android */
.container {
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
footer {
  padding-bottom: max(36px, calc(env(safe-area-inset-bottom) + 20px));
}

/* Якоря не прячутся под фиксированной шапкой */
section[id] {
  scroll-margin-top: 84px;
}

/* Фокус с клавиатуры */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.form-control:focus-visible,
.rules-search:focus-visible,
.coin-input-wrapper input:focus-visible {
  outline: none;
}
main:focus {
  outline: none;
}

/* Ссылка «Перейти к содержимому» */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100000;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: #0b0c10;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: none;
}

/* Мобильное меню */
.navbar.menu-open {
  background: rgba(9, 10, 15, 0.96);
  border-bottom-color: var(--border);
}
.mobile-menu {
  max-height: calc(100dvh - 90px);
  overflow-y: auto;
}

/* IP: тап выделяет адрес целиком, если копирование недоступно */
.ip-pill span {
  -webkit-user-select: all;
  user-select: all;
}

/* Длинные команды не ломают карточки на узких экранах */
.features-list li > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Магазин: быстрый выбор монет */
.coin-presets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: -4px 0 18px;
}
.coin-preset {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font: 600 14px var(--font-sans);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.coin-preset:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.coin-preset.active {
  color: #0b0c10;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-color: transparent;
}

/* Магазин: окно покупки */
.modal-title {
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 14px;
  color: var(--gold);
}
.buy-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 209, 102, 0.07);
  border: 1px solid rgba(255, 209, 102, 0.2);
  font-size: 15px;
}
.buy-summary strong {
  color: var(--text);
  font-weight: 600;
}
.buy-summary span {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 14px;
  white-space: nowrap;
}
.form-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--dim);
}
.btn-main[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

/* Правила */
.rules-search {
  -webkit-appearance: none;
  appearance: none;
}
.rules-empty {
  max-width: 540px;
  margin: -12px auto 24px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}
.rule-header:focus-visible {
  outline-offset: -3px;
  border-radius: var(--radius-md);
}
/* Свёрнутые правила недоступны для Tab и экранных читалок */
.rule-content-inner {
  visibility: visible;
  transition: visibility 0s;
}
.rule-card.collapsed .rule-content-inner {
  visibility: hidden;
  transition: visibility 0s linear 0.25s;
}

/* Карта */
.map-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}
.map-hint {
  margin: 0;
  color: var(--dim);
  font-size: 14px;
}

/* Тач-экраны: никаких «залипающих» hover-эффектов после тапа */
@media (hover: none) {
  .btn-main:hover,
  .btn-ghost:hover,
  .ip-pill:hover,
  .feature-card:hover,
  .shop-card:hover,
  .start-button:hover {
    transform: none;
    filter: none;
  }
  .feature-card:hover .feature-icon img {
    transform: none;
  }
}

/* Маленькие телефоны */
@media (max-width: 380px) {
  .hero h1 { font-size: 21px; }
  .shop-card h2 { font-size: 17px; }
  .coin-input-wrapper { flex-direction: column; gap: 6px; }
  .navbar-brand { font-size: 12px; }
}

/* Телефон в горизонтальной ориентации */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 84px 0 40px; }
  .page-section { padding-top: 84px; }
  .map-container { height: calc(100dvh - 110px); min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
