/* ============================================================
   BUNKER-14 — мікродатацентр (-1 level)  ·  напрямок «Бункер/сейф»
   ============================================================ */

:root {
  /* Палітра */
  --bg:        #0B0C0E;
  --surface:   #16181C;
  --surface-2: #1c1f24;
  --line:      #23262B;
  --amber:     #FF9D2E;
  --amber-soft:#ffb259;
  --danger:    #E5484D;
  --ok:        #3FB950;
  --text:      #E6E1D6;
  --muted:     #8A8F98;

  /* Типографіка */
  --f-head: 'Space Grotesk', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --f-body: 'Inter', system-ui, sans-serif;

  /* Сітка */
  --maxw: 1200px;
  --pad: 6vw;
  --radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Бетонне зерно — глобальний overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--amber); color: #1a1205; }

/* ---------- Утиліти ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 5.5rem var(--pad); position: relative; z-index: 2; }
.section .inner { max-width: var(--maxw); margin: 0 auto; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.section h2 {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  letter-spacing: -.01em;
  margin-bottom: 1.6rem;
  line-height: 1.1;
}
.section .lead {
  color: var(--muted);
  max-width: 60ch;
  font-size: 1.05rem;
  margin-bottom: 2.6rem;
}

.mono { font-family: var(--f-mono); }

/* ---------- Кнопки ---------- */
.btn {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-amber { background: var(--amber); color: #1a1205; }
.btn-amber:hover { background: var(--amber-soft); box-shadow: 0 0 24px rgba(255,157,46,.35); transform: translateY(-1px); }
.btn-amber:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ============================================================
   ТОП-БАР
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 14px var(--pad);
  background: rgba(11,12,14,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-head);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text);
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 26px; height: 26px;
  display: inline-grid; place-items: center;
  border: 2px solid var(--amber);
  border-radius: 5px;
  color: var(--amber);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 700;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav a {
  color: var(--muted);
  font-size: .92rem;
  font-weight: 500;
}
.nav a:hover { color: var(--text); text-decoration: none; }

.nav-status {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(63,185,80,.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(63,185,80,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(63,185,80,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,185,80,0); }
}

/* Перемикач мови */
.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 12px;
}
.lang button {
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 5px 9px;
  cursor: pointer;
  font: inherit;
}
.lang button.active { background: var(--amber); color: #1a1205; }

/* Бургер */
.burger {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  width: 38px; height: 34px;
  cursor: pointer;
  color: var(--text);
  font-size: 18px;
}

/* Scroll-progress */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--amber);
  z-index: 60;
  transition: width .08s linear;
}

/* ============================================================
   HERO — бронедвері
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 63px);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 2;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255,157,46,.14), transparent 55%),
    linear-gradient(180deg, #101114 0%, var(--bg) 60%);
}
.hero .status-line {
  position: absolute;
  top: 22px; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 var(--pad);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .05em;
  z-index: 3;
}
.hero .status-line .live { color: var(--text); }

.hero-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.hero .copy { min-width: 0; }
.hero h1 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.05;
  font-size: clamp(30px, 5vw, 60px);
  letter-spacing: -.01em;
  margin-bottom: 22px;
  overflow-wrap: break-word;
  hyphens: auto;
}
.hero h1 .glow { color: var(--amber); }
.hero .sub {
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.06rem;
  margin-bottom: 34px;
}
.hero .cta { display: flex; gap: 18px; flex-wrap: wrap; }


/* Бронедвері */
.door {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--surface-2), #101216);
  border: 1px solid var(--line);
  box-shadow: inset 0 0 60px rgba(0,0,0,.6), 0 30px 60px rgba(0,0,0,.5);
}
.door::after {
  content: "";
  position: absolute;
  left: 50%; top: 8%; bottom: 8%;
  width: 2px; background: var(--line);
  transform: translateX(-50%);
}
.door .rivets { position: absolute; inset: 14px; border: 1px dashed rgba(138,143,152,.18); border-radius: 4px; }
.door .wheel {
  position: absolute;
  left: 50%; top: 50%;
  width: 110px; height: 110px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 3px solid var(--line);
  box-shadow: 0 0 0 8px rgba(35,38,43,.4), inset 0 0 18px rgba(0,0,0,.6);
}
.door .wheel::before {
  content: "";
  position: absolute; inset: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255,157,46,.25);
}
.door .tag {
  position: absolute;
  bottom: 18px; left: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: .1em;
}

.scrollcue {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .18em;
  z-index: 3;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: .6; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}

/* ============================================================
   KPI-стрічка
   ============================================================ */
.kpi {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.kpi .cell {
  background: var(--bg);
  padding: 1.8rem 1.2rem;
  text-align: center;
  transition: background .2s ease;
}
.kpi .cell:hover { background: var(--surface); }
.kpi .num {
  font-family: var(--f-mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
}
.kpi .num small { color: var(--amber); font-size: 1.1rem; }
.kpi .num.word { font-size: 1.35rem; }
.kpi .lbl {
  font-size: .76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 6px;
}

/* ============================================================
   СТАТУС-БЛОК
   ============================================================ */
.status-board { background: var(--surface); border-bottom: 1px solid var(--line); }
.status-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 2.5rem;
  align-items: center;
}
.status-head .big {
  font-family: var(--f-mono);
  font-size: 2.6rem;
  color: var(--ok);
  line-height: 1;
}
.status-head .meta { color: var(--muted); font-family: var(--f-mono); font-size: .85rem; margin-top: 8px; }

.status-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-pill {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tag-pill .ok-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* ============================================================
   КАРТКИ
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.card {
  background: linear-gradient(145deg, var(--surface-2), #111317);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: relative;
  transition: transform .15s ease, border-color .15s ease;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: transparent;
  border-radius: var(--radius) 0 0 var(--radius);
  transition: background .15s ease;
}
.card:hover { transform: translateY(-4px); border-color: #2c3038; }
.card:hover::before { background: var(--amber); }
.card h3 { font-family: var(--f-head); font-size: 1.15rem; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .95rem; }

.card .svc-status {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 3px 9px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: .9rem;
}
.svc-status.online  { color: var(--ok);    background: rgba(63,185,80,.12);  border: 1px solid rgba(63,185,80,.3); }
.svc-status.limited { color: var(--amber); background: rgba(255,157,46,.10); border: 1px solid rgba(255,157,46,.3); }
.card .card-cta { margin-top: 1.1rem; display: inline-block; font-family: var(--f-mono); font-size: 13px; }

/* ============================================================
   ЩО МОЖНА РОЗМІСТИТИ (host-grid + fit)
   ============================================================ */
.host-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.host-card { display: flex; flex-direction: column; }
.host-card .kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--amber);
  margin-bottom: .7rem;
}
.host-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.host-card p { font-size: .9rem; flex: 1; }
.host-card .power {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--muted);
  margin-top: 1rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}
.host-card .power b { color: var(--text); font-weight: 500; }

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.fit-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.fit-panel h3 {
  font-family: var(--f-head);
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}
.fit-panel.ok h3 { color: var(--ok); }
.fit-panel.deal h3 { color: var(--amber); }
.fit-list { list-style: none; display: grid; gap: .7rem; }
.fit-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--muted); font-size: .95rem; }
.fit-list .mk { font-family: var(--f-mono); font-weight: 700; flex: none; }
.fit-panel.ok .mk { color: var(--ok); }
.fit-panel.deal .mk { color: var(--amber); }

/* ============================================================
   ТАРИФИ
   ============================================================ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}
.price-card {
  background: linear-gradient(145deg, var(--surface-2), #111317);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .15s ease, border-color .15s ease;
}
.price-card:hover { transform: translateY(-4px); border-color: #2c3038; }
.price-card.featured {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px rgba(255,157,46,.25), 0 20px 44px rgba(0,0,0,.45);
}
.price-card .badge {
  position: absolute;
  top: -11px; left: 1.5rem;
  background: var(--amber);
  color: #1a1205;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 4px;
}
.price-card h3 { font-family: var(--f-head); font-size: 1.25rem; margin-bottom: .35rem; }
.price-card .power { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-bottom: 1.2rem; }
.price-card .price { display: flex; align-items: baseline; gap: .4rem; margin-bottom: 1.5rem; min-height: 2.4rem; }
.price-card .price .from { font-size: .8rem; color: var(--muted); }
.price-card .price b { font-family: var(--f-head); font-size: 2.3rem; line-height: 1; color: var(--text); }
.price-card .price .per { font-size: .85rem; color: var(--muted); }
.price-card .price .custom { font-family: var(--f-head); font-size: 1.5rem; color: var(--amber); }
.price-card.featured .price b { color: var(--amber); }
.price-list { list-style: none; display: grid; gap: .6rem; margin-bottom: 1.6rem; flex: 1; }
.price-list li { display: flex; gap: .6rem; font-size: .9rem; color: var(--muted); align-items: flex-start; }
.price-list li::before { content: "+"; color: var(--ok); font-family: var(--f-mono); font-weight: 700; flex: none; }
.price-card .btn { width: 100%; justify-content: center; }
.price-note {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem 2.2rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--muted);
}
.price-note .k { color: var(--text); }

/* ============================================================
   СЕРВЕРИ / ЯК ЦЕ ПРАЦЮЄ / FAQ
   ============================================================ */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; align-items: stretch; }
.srv-sub { font-family: var(--f-head); font-size: 1.05rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 2.4rem 0 1.1rem; }
.srv-sub:first-of-type { margin-top: 1rem; }

.card.step { display: flex; flex-direction: column; }
.step-num { font-family: var(--f-mono); font-size: 1.7rem; color: var(--amber); line-height: 1; margin-bottom: .6rem; }

.faq-list { display: grid; gap: .7rem; max-width: 840px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.3rem; }
.faq-list summary { cursor: pointer; padding: 1.1rem 0; font-family: var(--f-head); font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--amber); font-family: var(--f-mono); flex: none; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { color: var(--muted); margin: 0; padding: 0 0 1.1rem; font-size: .95rem; line-height: 1.65; }

.early-banner { background: linear-gradient(145deg, rgba(255,157,46,.08), var(--surface)); border: 1px solid var(--amber); border-radius: var(--radius); padding: 2.6rem 2rem; text-align: center; }
.early-banner h2 { color: var(--amber); margin: .6rem 0 1rem; }
.early-banner p { color: var(--muted); max-width: 60ch; margin: 0 auto 1.6rem; }

/* ============================================================
   ІНФРАСТРУКТУРА (панель ключ→значення)
   ============================================================ */
.specs { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: .92rem;
}
.spec-row:last-child { border-bottom: none; }
.spec-row:nth-child(odd) { background: rgba(255,255,255,.012); }
.spec-row .k { color: var(--muted); }
.spec-row .v { color: var(--text); }
.spec-row .s {
  color: var(--ok);
  font-size: 11px;
  border: 1px solid rgba(63,185,80,.3);
  background: rgba(63,185,80,.1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ============================================================
   ФОРМА / КОНТАКТИ
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

.form { display: grid; gap: 1rem; }
.form label { font-family: var(--f-mono); font-size: 12px; color: var(--muted); display: block; margin-bottom: 6px; letter-spacing: .05em; }
.form input, .form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  padding: 12px 14px;
  font-family: var(--f-body);
  font-size: .95rem;
  transition: border-color .15s ease;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--amber); }
.form textarea { resize: vertical; min-height: 110px; }
.form .err { color: var(--danger); font-size: 12px; font-family: var(--f-mono); display: none; margin-top: 4px; }
.form .field.invalid .err { display: block; }
.form .field.invalid input, .form .field.invalid textarea { border-color: var(--danger); }
.form-note { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-top: .4rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-status { font-family: var(--f-mono); font-size: 13px; margin-top: .6rem; }
.form-status.sending { color: var(--muted); }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }

.contact-info p { margin-bottom: .8rem; font-size: 1.02rem; }
.contact-info .label { font-family: var(--f-mono); font-size: 12px; color: var(--muted); display: block; letter-spacing: .05em; }

/* ============================================================
   ФУТЕР
   ============================================================ */
footer {
  background: #0a0b0d;
  border-top: 1px solid var(--line);
  padding: 2.4rem var(--pad);
  text-align: center;
  position: relative;
  z-index: 2;
}
footer nav { display: flex; justify-content: center; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
footer nav a { color: var(--muted); font-size: .9rem; }
footer .copy { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; }

/* ============================================================
   АНІМАЦІЇ reveal
   ============================================================ */
/* reveal — прогресивне покращення: ховаємо лише коли активний JS */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
/* Горизонтальна навігація лише коли вистачає місця; інакше — бургер */
@media (max-width: 1024px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--pad);
  }
  .nav.open a { padding: .7rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav.open .nav-status { padding: .7rem 0; }
  .burger { display: inline-block; }
}

@media (max-width: 980px) {
  .hero-wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 90px; padding-bottom: 60px; }
  .door { max-width: 300px; margin: 0 auto; }
  .kpi { grid-template-columns: repeat(3, 1fr); }
  .status-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .host-grid { grid-template-columns: repeat(2, 1fr); }
  .fit-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .kpi { grid-template-columns: repeat(2, 1fr); }
  .spec-row { grid-template-columns: 1fr; gap: .3rem; }
  .spec-row .s { justify-self: start; }
  .host-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
