/* ============================================================
   Наш Minecraft — сайт закрытого теста
   Палитра: крем/тёмно-зелёный/лайм. Есть тёмная тема (ОС).
   ============================================================ */

:root {
  --bg: #f3f0e7;
  --ink: #15231d;
  --muted: #5c6c61;
  --dark: #101b17;
  --dark-2: #1b3027;
  --lime: #c9f17b;
  --line: #d4d9ce;
  --serif: Georgia, 'Times New Roman', serif;
  --header: #f8f6ef;
  --card: #f9f8f2;
  --card-warm: #fffdf6;
  --strip: #e9eada;
  --strip-line: #cfd7c8;
  --future: #e6e9da;
  --future-card: #f4f5ea;
  --code-bg: #e9efdd;
  --hero-shadow: #e2e6d6;
  --ok: #81aa43;
  --bad: #b4552d;
  --warn: #a8862c;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121a16;
    --ink: #e6ede4;
    --muted: #9db3a4;
    --dark: #0c1411;
    --dark-2: #16241d;
    --lime: #c9f17b;
    --line: #2c3b33;
    --header: #15201a;
    --card: #17231d;
    --card-warm: #1a2620;
    --strip: #131d17;
    --strip-line: #2c3b33;
    --future: #111a15;
    --future-card: #16211b;
    --code-bg: #223228;
    --hero-shadow: #0a100d;
    --ok: #9ecb62;
    --bad: #d98a63;
    --warn: #d9b95e;
  }
}

/* ---------- База ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, 'Segoe UI', sans-serif; }
a { color: inherit; }
button { font: inherit; }
img { max-width: 100%; }
code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; }

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #789356;
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- Шапка ---------- */
.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  background: var(--header);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; font-size: 20px; white-space: nowrap; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 7px;
  background: var(--dark);
  overflow: hidden;
  flex: none;
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.site-header nav { display: flex; gap: 31px; }
.site-header nav a { text-decoration: none; font-size: 14px; font-weight: 650; padding: 4px 2px; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-footer a:hover { color: #567926; }
.site-header nav a.active { border-bottom-color: var(--ok); color: #406b2d; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 9px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 60px; min-height: 625px; padding-block: 76px 84px; }
.eyebrow, .section-number { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #55742c; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 5px #dbe9c8; flex: none; }
@media (prefers-color-scheme: dark) { .pulse { box-shadow: 0 0 0 5px #22301f; } }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.055em; line-height: 1.08; }
h1 { font-size: clamp(54px, 6.1vw, 88px); margin: 26px 0 25px; font-weight: 750; }
h1 em { font-style: normal; font-family: var(--serif); font-weight: 400; color: #628342; }
.lede { font-size: 19px; color: var(--muted); max-width: 550px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .15s, background .15s;
}
.button:hover { transform: translateY(-2px); }
.primary { background: var(--dark); color: #f8f8ed; }
.secondary { background: transparent; border-color: #9eaa9a; }
.light { background: var(--lime); color: #15231d; }
#copy-address.copied { background: #a9d95e; }

.hero-panel { background: var(--dark); color: #e5f1dd; border-radius: 12px; box-shadow: 20px 25px 0 var(--hero-shadow); overflow: hidden; min-height: 425px; display: flex; flex-direction: column; }
.panel-top, .panel-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 23px 27px; }
.panel-top { font: 700 12px/1 system-ui; letter-spacing: .18em; color: #a9c39c; }
.panel-bottom { font-size: 13px; border-top: 1px solid #3e5145; }
.panel-bottom span:first-child { font-weight: 700; font-size: 15px; }
.panel-time { padding: 0 27px 12px; font-size: 11px; color: #7e937f; border-top: 1px solid transparent; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #b9e878; box-shadow: 0 0 12px #b9e878; flex: none; }
.status-dot.offline { background: #b4bbb0; box-shadow: none; }
.status-dot.unknown { background: #e8c66a; box-shadow: 0 0 12px #e8c66a; }
#server-status.status-ok { color: #b9e878; }
#server-status.status-bad { color: #e8a07a; }
#server-status.status-mid { color: #e8c66a; }

.world-art { position: relative; flex: 1; min-height: 295px; overflow: hidden; background: radial-gradient(ellipse at 64% 26%, #365746 0, #20382e 35%, #14251e 76%); }
.moon { position: absolute; width: 72px; height: 72px; border-radius: 50%; background: #e0e9ad; right: 26%; top: 22%; box-shadow: 0 0 70px 20px #d9e6a845; }
.hill { position: absolute; width: 120%; height: 180px; left: -10%; clip-path: polygon(0 76%, 15% 42%, 27% 70%, 42% 25%, 61% 74%, 78% 37%, 100% 76%, 100% 100%, 0 100%); }
.hill-back { background: #36523f; bottom: 23px; }
.hill-front { background: #263e31; bottom: -40px; transform: scaleX(-1); }
.tree { position: absolute; bottom: 47px; width: 9px; height: 78px; background: #15281e; }
.tree:before { content: ''; position: absolute; bottom: 38px; left: -29px; width: 67px; height: 104px; background: #15291f; clip-path: polygon(50% 0, 0 100%, 100% 100%); }
.tree-one { left: 20%; }
.tree-two { right: 12%; transform: scale(.72); transform-origin: bottom; }

/* ---------- Полоса фактов ---------- */
.info-strip { background: var(--strip); border-block: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-grid > div { padding: 26px 18px 26px 0; }
.strip-grid > div + div { padding-left: 26px; border-left: 1px solid var(--strip-line); }
.strip-grid small, .address-card small { display: block; color: #6b796d; font-size: 12px; margin-bottom: 6px; }
.strip-grid strong { font-size: 14px; }

/* ---------- Секции ---------- */
.section { padding-block: 110px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 36px; }
.section-heading h2 { font-size: clamp(38px, 4.4vw, 60px); margin: 14px 0 0; }
.section-heading > p { max-width: 385px; color: var(--muted); margin-bottom: 6px; }
.section-number { color: #69884e; }

.steps, .rule-grid, .future-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 28px; border: 1px solid var(--line); background: var(--card); min-height: 235px; }
.step-index { display: inline-block; color: #789356; font-weight: 850; font-size: 14px; margin-bottom: 35px; }
.step h3, .rule-grid h3, .future-grid h3 { font-size: 20px; letter-spacing: -.035em; margin-bottom: 8px; }
.step p, .rule-grid p, .future-grid p, .claim-grid p { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.step a { color: #406b2d; font-weight: 750; }
.step code, .rule-grid code { font-size: 13px; background: var(--code-bg); border-radius: 3px; padding: 2px 4px; }

.address-card { margin-top: 20px; padding: 21px 25px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-radius: 6px; background: var(--dark); color: #f5f8ed; }
.address-card small { color: #a5c298; }
.address-card strong { font: 750 24px/1.2 ui-monospace, 'Cascadia Code', Consolas, monospace; letter-spacing: -.04em; }
.small-note { color: #6a786c; font-size: 13px; margin: 18px 0 0; }

.section-dark { background: var(--dark); color: #edf2e9; }
.section-dark .section-heading > p, .section-dark .rule-grid p { color: #a6b8aa; }
.section-dark .section-number { color: var(--lime); }
.rule-grid article { padding: 31px; border: 1px solid #3d5244; border-radius: 5px; background: #1a2b22; min-height: 220px; }
.rule-icon { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #5b7b55; color: var(--lime); font-size: 24px; margin-bottom: 38px; }
.section-dark code { background: #304934; color: #d5efbd; }

/* ---------- Приваты и рецепты ---------- */
.claim-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.claim-grid article { padding: 26px; border: 1px solid var(--line); background: var(--card); min-height: 212px; }
.tier { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 5px; font-weight: 850; margin-bottom: 32px; }
.copper { background: #eac29c; color: #6c3c1f; }
.iron { background: #d7dedb; color: #4a5a55; }
.diamond { background: #b8e7d7; color: #236953; }
.netherite { background: #d9c9d6; color: #634c67; }
.claim-grid h3 { margin-bottom: 2px; }
.claim-grid strong { display: block; font-size: 23px; letter-spacing: -.04em; margin-bottom: 7px; }

.recipe-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
.recipe-gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.recipe-gallery img { display: block; width: 100%; height: auto; }
.recipe-gallery figcaption { padding: 13px 18px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.recipe-gallery figcaption strong { color: var(--ink); }

.recipe-details { margin-top: 24px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--card-warm); }
.recipe-details summary { cursor: pointer; font-weight: 750; }
.recipe-details[open] summary { margin-bottom: 12px; }
.recipe-details p { margin: 0 0 10px; color: var(--muted); }
.recipe-details ul { margin: 0; padding-left: 23px; }
.recipe-details li + li { margin-top: 8px; }

/* ---------- Будущее ---------- */
.future-section { background: var(--future); }
.future-grid article { position: relative; padding: 28px; background: var(--future-card); min-height: 230px; }
.future-grid article > span { font-size: 26px; color: #608042; display: block; margin-bottom: 48px; }
.future-grid small { display: inline-block; margin-top: 24px; font-weight: 800; color: #658448; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--dark); color: #b9cabb; padding: 34px 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 13px; }
.footer-row .brand { color: #edf2e9; font-size: 16px; }
.footer-row .brand-mark { background: #2e4835; width: 28px; height: 28px; }
.footer-row a { text-decoration: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .hero { gap: 30px; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid > div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--strip-line); }
  .strip-grid > div:nth-child(4) { border-top: 1px solid var(--strip-line); }
  .claim-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .wrap { width: min(100% - 32px, 1160px); }
  .site-header { height: auto; padding: 14px 16px; flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .site-header nav { display: none; width: 100%; flex-direction: column; gap: 4px; padding-top: 8px; }
  .site-header.nav-open nav { display: flex; }
  .site-header nav a { font-size: 15px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .hero { display: block; padding-block: 55px; }
  .hero h1 { font-size: clamp(42px, 11vw, 48px); }
  .hero-panel { margin-top: 47px; min-height: 330px; box-shadow: 12px 14px 0 var(--hero-shadow); }
  .world-art { min-height: 220px; }
  .section { padding-block: 70px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 18px; }
  .steps, .rule-grid, .future-grid { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .step-index { margin-bottom: 18px; }
  .recipe-gallery { grid-template-columns: 1fr; }
  .address-card { align-items: flex-start; flex-direction: column; }
  .address-card strong { font-size: 19px; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid > div { padding: 16px 7px 16px 0; }
  .strip-grid > div + div { padding-left: 12px; }
  .strip-grid strong { font-size: 12px; }
  .footer-row { flex-wrap: wrap; }
  .footer-row > span:nth-child(2) { width: 100%; order: 3; }
}

@media (max-width: 420px) {
  h1 { font-size: 48px; }
  .brand { font-size: 17px; }
  .claim-grid { gap: 8px; }
  .claim-grid article { padding: 17px; min-height: 0; }
  .claim-grid strong { font-size: 19px; }
  .address-card strong { font-size: 17px; }
  .panel-bottom { gap: 8px; padding: 20px 18px; }
  .panel-bottom span:first-child { font-size: 13px; }
  .panel-bottom span:last-child { white-space: nowrap; font-size: 11px; }
  .panel-time { padding: 0 18px 10px; }
}

/* ---------- Движение ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
