/* ============================================================
   AURUM GPU — premium dark / gold
   ============================================================ */
:root {
  --bg: #050705;
  --bg2: #070c07;
  --bg3: #0a120a;
  --line: rgba(0, 255, 65, 0.1);
  --gold: #00ff41;
  --gold-2: #7dffa8;
  --gold-dim: rgba(0, 255, 65, 0.16);
  --text: #d8ffe4;
  --muted: #6fa87e;
  --card: linear-gradient(180deg, rgba(0,255,65,.04), rgba(0,255,65,.012));
  --shadow: 0 24px 60px rgba(0, 20, 5, 0.6);
  --serif: "Share Tech Mono", "Courier New", monospace;
  --mono: "Share Tech Mono", "Courier New", monospace;
  --sans: "Share Tech Mono", "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: rgba(0, 255, 65, 0.35); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- тач-устройства: без задержки dbl-tap и синего подсвета ---------- */
body { -webkit-tap-highlight-color: transparent; }
button, .btn, .pill, .ctl, .faq-item summary, .lang button, a { touch-action: manipulation; }

/* ---------- scrollbar ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #26262e; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a45; }

/* ============================================================ MATRIX RAIN */
#matrixRain {
  position: fixed; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  opacity: 0.65;
}
body { background: var(--bg); }
body::before {
  /* мягкое затемнение дождя под контентом, чтобы текст читался */
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,7,5,0.15), rgba(5,7,5,0.78) 40%, rgba(5,7,5,0.88));
}

/* ============================================================ HEADER */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 8, 11, 0.72);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { color: var(--gold); font-size: 20px; }
.brand-name { font-family: var(--serif); font-size: 21px; letter-spacing: 0.16em; font-weight: 600; }
.brand-name em { font-style: normal; color: var(--gold); }
.brand-name.sm { font-size: 16px; }
.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 13.5px; letter-spacing: 0.04em; color: var(--muted);
  transition: color 0.25s; text-transform: uppercase;
}
.nav a:hover { color: var(--gold-2); }
.header-right { display: flex; align-items: center; gap: 16px; }
.lang { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); }
.lang i { opacity: 0.4; font-style: normal; }
.lang button {
  background: none; border: none; color: var(--muted); font: inherit;
  cursor: pointer; padding: 4px 2px; letter-spacing: 0.06em; transition: color 0.25s;
}
.lang button.on { color: var(--gold); font-weight: 600; }
.lang button:hover { color: var(--gold-2); }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--gold); margin: 5px 0; transition: 0.3s; }

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 999px; font-size: 14px; font-weight: 600;
  letter-spacing: 0.05em; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
  text-transform: uppercase; font-family: var(--sans);
}
.btn-sm { padding: 9px 22px; font-size: 12.5px; }
.btn-gold {
  background: linear-gradient(135deg, #7dffa8, #00ff41 55%, #00b82e);
  color: #03230b; box-shadow: 0 8px 26px rgba(0, 255, 65, 0.25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 255, 65, 0.4); }
.btn-ghost {
  background: transparent; color: var(--gold-2); border-color: rgba(0, 255, 65, 0.35);
}
.btn-ghost:hover { border-color: var(--gold); background: var(--gold-dim); transform: translateY(-2px); }

/* ============================================================ HERO */
.hero { position: relative; padding: 190px 0 110px; text-align: center; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% -5%, rgba(0, 255, 65, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(5,7,5,0), var(--bg));
}
.hero-in { position: relative; }
.hero-top-row {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-bottom: 30px; flex-wrap: wrap;
}
.hero-cases-link {
  font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.06em;
  color: var(--gold-2); border-bottom: 1px dashed rgba(0, 255, 65, 0.45);
  padding-bottom: 2px; transition: color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.hero-cases-link:hover { color: #fff; border-bottom-color: #fff; }
.hero-compact { padding: 150px 0 70px; }
.hero-badge {
  display: inline-block; padding: 8px 20px; border-radius: 999px;
  border: 1px solid rgba(0, 255, 65, 0.3); background: rgba(0, 255, 65, 0.06);
  color: var(--gold-2); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 30px; font-family: var(--mono);
  backdrop-filter: blur(4px);
}
.hero-title {
  font-family: var(--mono); font-weight: 400; font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1.18; letter-spacing: 0.04em;
  text-shadow: 0 0 22px rgba(0, 255, 65, 0.25);
}
.hero-title span { display: block; }
.gold-i {
  font-style: normal;
  background: linear-gradient(120deg, #b8ffc9, #00ff41 60%, #00a835);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(0, 255, 65, 0.45));
}
.hero-sub {
  max-width: 640px; margin: 26px auto 0; color: var(--muted); font-size: 17px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.hero-stats {
  display: flex; justify-content: center; gap: 56px; margin-top: 78px; flex-wrap: wrap;
}
.stat b {
  display: block; font-family: var(--serif); font-size: 34px; font-weight: 600;
  color: var(--gold-2); line-height: 1.1;
}
.stat span { font-size: 12.5px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* ============================================================ SECTIONS */
.section { padding: 110px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.sec-label {
  color: var(--gold); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 16px;
}
.sec-title { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); font-weight: 600; line-height: 1.15; }
.sec-sub { color: var(--muted); margin-top: 18px; font-size: 16px; }

/* ============================================================ GRID / CARDS */
.grid { display: grid; gap: 22px; }
/* min(Npx, 100%): на экранах уже N (напр. iPhone SE 320px) колонка не вылезает
   за контейнер и не появляется горизонтальный скролл */
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px;
  transition: transform 0.35s cubic-bezier(0.2, 0.6, 0.2, 1), border-color 0.35s, box-shadow 0.35s;
  position: relative;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 65, 0.35);
  box-shadow: var(--shadow);
}
.why-ico {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 19px; color: var(--gold-2);
  background: var(--gold-dim); border: 1px solid rgba(0, 255, 65, 0.25); margin-bottom: 22px;
}
.why-card h3, .srv-card h3 { font-size: 18.5px; font-weight: 600; margin-bottom: 12px; letter-spacing: 0.01em; }
.why-card p, .srv-card p { color: var(--muted); font-size: 14.5px; }
.why-srv {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  font-size: 13px; font-weight: 600; color: var(--gold-2); letter-spacing: 0.02em;
  transition: color 0.25s, gap 0.25s;
}
.why-srv::before { content: "→"; font-size: 14px; }
.why-srv:hover { color: #fff; gap: 10px; }

/* ---------- compact catalog ---------- */
.show-all { display: flex; margin: 34px auto 0; }

/* ---------- services ---------- */
.srv-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.srv-top h3 { margin-bottom: 0; }
.badge-ind {
  white-space: nowrap; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-2); border: 1px solid rgba(0, 255, 65, 0.35);
  padding: 5px 11px; border-radius: 999px; background: rgba(0, 255, 65, 0.07);
}
.srv-cta { text-align: center; margin-top: 44px; }

/* ============================================================ WHY NOW / CASES */
.whynow-card { position: relative; padding-top: 40px; }
.whynow-num {
  position: absolute; top: 22px; right: 26px;
  font-family: var(--mono); font-size: 15px; color: var(--gold);
  opacity: 0.55; letter-spacing: 0.1em;
}
.whynow-gain {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  color: var(--gold-2) !important; font-size: 13.5px !important; font-style: italic;
}

.cases-group {
  font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: 0.02em;
  margin: 44px 0 20px; display: flex; align-items: center; gap: 16px;
}
.cases-group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.case-card { padding-top: 40px; position: relative; }
.case-num {
  position: absolute; top: 20px; right: 26px;
  font-family: var(--mono); font-size: 17px; color: var(--gold); opacity: 0.6;
  letter-spacing: 0.08em;
}
.case-result {
  margin-top: 14px; padding: 12px 16px; border-radius: 10px;
  background: rgba(0, 255, 65, 0.07); border-left: 2px solid var(--gold);
  color: var(--gold-2) !important; font-size: 13.5px !important;
}
.case-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.case-tags span {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 9px; letter-spacing: 0.05em;
}

.auto-strip { margin-top: 56px; text-align: center; }
.auto-title {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.auto-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  font-size: 13px; color: var(--text); border: 1px solid rgba(0, 255, 65, 0.28);
  background: rgba(0, 255, 65, 0.05); border-radius: 999px; padding: 8px 18px;
  transition: background 0.25s, border-color 0.25s;
}
.chip:hover { background: var(--gold-dim); border-color: var(--gold); }

/* ---------- cases CTA ---------- */
.cta-box {
  text-align: center; padding: 60px 30px; border-radius: 22px;
  border: 1px solid rgba(0, 255, 65, 0.25);
  background: linear-gradient(180deg, rgba(0, 255, 65, 0.06), rgba(255, 255, 255, 0.01));
}
.cta-box h2 { font-family: var(--mono); font-weight: 400; font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; }
.cta-box p { color: var(--muted); max-width: 560px; margin: 0 auto 34px; font-size: 15.5px; }
.cta-box .ct-grid { margin-bottom: 30px; }
.cta-main { margin-top: 4px; }
.cta-box .ct-btn { background: rgba(255, 255, 255, 0.02); }

/* ============================================================ MODELS */
.how-formula {
  text-align: center; font-family: var(--mono); font-size: clamp(13px, 1.6vw, 16px);
  color: var(--gold-2); padding: 18px 24px; margin: 0 auto 44px; max-width: 760px;
  border: 1px dashed rgba(0, 255, 65, 0.4); border-radius: 12px;
  background: rgba(0, 255, 65, 0.04);
}
.model-card .case-num { font-size: 13px; opacity: 0.75; }
.badge-18, .badge-warn {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 6px; position: static;
}
.badge-18 { color: #ff9d9d; border: 1px solid rgba(255, 120, 120, 0.45); background: rgba(255, 90, 90, 0.08); }
.badge-warn { color: var(--gold-2); border: 1px solid rgba(0, 255, 65, 0.45); background: rgba(0, 255, 65, 0.08); }
.model-price {
  margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  background: rgba(0, 255, 65, 0.06); border: 1px solid rgba(0, 255, 65, 0.2);
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; justify-content: space-between;
}
.model-price .mp-gpu { font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; }
.model-price b { font-family: var(--mono); font-size: 22px; color: var(--gold-2); font-weight: 400; }
.model-price small { color: var(--muted); font-size: 12px; }
.models-notes { max-width: 780px; margin: 40px auto 0; }
.models-notes p { color: var(--muted); font-size: 12.5px; margin-top: 10px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 10px; }

/* ---------- services page ---------- */
.grid-4-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 18px; }
.srv-how {
  margin-top: 14px; padding: 14px 16px; border-radius: 10px;
  background: rgba(0, 255, 65, 0.04); border: 1px dashed rgba(0, 255, 65, 0.25);
  color: var(--muted) !important; font-size: 13px !important;
}
.srv-how b { color: var(--gold); font-weight: 600; letter-spacing: 0.06em; }
@media (max-width: 860px) { .grid-4-steps { grid-template-columns: 1fr 1fr; } }

/* ---------- calculator ---------- */
.calc-box {
  max-width: 640px; margin: 0 auto; padding: 34px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--line);
}
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.calc-out { margin-top: 26px; text-align: center; }
.calc-vram { font-family: var(--mono); font-size: 17px; color: var(--gold-2); margin-bottom: 10px; }
.calc-gpu { font-size: 15px; }
.calc-gpu b { font-family: var(--mono); color: var(--gold-2); font-weight: 400; font-size: 18px; }
.calc-note { margin-top: 14px; color: var(--muted); font-size: 12.5px; font-style: italic; }

/* ============================================================ FAQ */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; transition: border-color 0.3s;
}
.faq-item[open] { border-color: rgba(0, 255, 65, 0.35); }
.faq-item summary {
  cursor: pointer; padding: 20px 54px 20px 24px; font-size: 16px; font-weight: 600;
  list-style: none; position: relative; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 20px; color: var(--gold); transition: transform 0.3s;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { color: var(--gold-2); }
.faq-item p { padding: 0 24px 22px; color: var(--muted); font-size: 14.5px; }
.faq-more { text-align: center; margin-top: 40px; }

/* ============================================================ SUPPORT WIDGET */
.sup-btn {
  position: fixed; right: 26px; bottom: 26px; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 24px 0 18px; border-radius: 999px;
  background: linear-gradient(135deg, #7dffa8, #00ff41 55%, #00b82e);
  color: #03230b; font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
  border: none; cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 255, 65, 0.35);
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.25s;
}
.sup-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(0, 255, 65, 0.5); }
.sup-btn.hidden { opacity: 0; pointer-events: none; transform: scale(0.6); }
.sup-btn .sup-ico { font-size: 20px; line-height: 1; }
.sup-pulse {
  position: absolute; inset: 0; border-radius: 999px;
  border: 2px solid rgba(0, 255, 65, 0.7);
  animation: supPulse 2.2s ease-out infinite; pointer-events: none;
}
@keyframes supPulse {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(1.22); opacity: 0; }
  100% { transform: scale(1.22); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .sup-pulse { display: none; } }

.sup-bubble {
  position: fixed; right: 26px; bottom: 94px; z-index: 200;
  max-width: 260px; padding: 10px 16px; border-radius: 14px 14px 4px 14px;
  background: rgba(5, 9, 5, 0.95);
  border: 1px solid rgba(0, 255, 65, 0.35);
  color: var(--gold-2); font-size: 13px; line-height: 1.45;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 255, 65, 0.1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  animation: supBubbleIn 0.5s cubic-bezier(0.2, 0.6, 0.2, 1) 0.8s both;
  transition: opacity 0.25s, transform 0.25s;
}
.sup-bubble:hover { transform: translateY(-2px); }
.sup-bubble.hidden { opacity: 0; pointer-events: none; transform: translateY(8px); }
.sup-bubble i {
  position: absolute; right: 26px; bottom: -7px;
  color: rgba(0, 255, 65, 0.5); font-style: normal; font-size: 14px; line-height: 1;
}
@keyframes supBubbleIn {
  from { opacity: 0; transform: translateY(12px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

.sup-panel {
  position: fixed; right: 26px; bottom: 26px; z-index: 210;
  width: min(380px, calc(100vw - 40px));
  height: min(560px, calc(100vh - 60px));
  height: min(560px, calc(100dvh - 60px)); /* dvh: живой вьюпорт с адресной строкой iOS/Android */
  background: rgba(5, 9, 5, 0.97);
  border: 1px solid rgba(0, 255, 65, 0.3);
  border-radius: 18px;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 255, 65, 0.08);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  opacity: 0; pointer-events: none; transform: translateY(24px) scale(0.96);
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.sup-panel.open { opacity: 1; pointer-events: auto; transform: none; }

.sup-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid rgba(0, 255, 65, 0.15);
}
.sup-title { font-size: 14px; font-weight: 600; letter-spacing: 0.03em; }
.sup-status { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.sup-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #00ff41;
  box-shadow: 0 0 8px #00ff41; display: inline-block;
}
.sup-close {
  background: none; border: none; color: var(--muted); font-size: 15px;
  cursor: pointer; padding: 6px 10px; border-radius: 8px; transition: 0.2s;
}
.sup-close:hover { color: #fff; background: rgba(0, 255, 65, 0.08); }

.sup-body {
  flex: 1; overflow-y: auto; padding: 16px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.sup-msg {
  max-width: 85%; padding: 10px 14px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.5; word-break: break-word;
}
.sup-hello {
  align-self: flex-start; background: rgba(0, 255, 65, 0.07);
  border: 1px solid rgba(0, 255, 65, 0.2); color: var(--text);
  border-bottom-left-radius: 4px;
}
.sup-them {
  align-self: flex-start; background: rgba(0, 255, 65, 0.07);
  border: 1px solid rgba(0, 255, 65, 0.18); color: var(--text);
  border-bottom-left-radius: 4px;
}
.sup-me {
  align-self: flex-end; background: linear-gradient(135deg, #0a2f14, #0d3d1a);
  border: 1px solid rgba(0, 255, 65, 0.3); color: #d8ffe4;
  border-bottom-right-radius: 4px;
}

.sup-foot {
  display: flex; gap: 10px; padding: 12px 14px 6px;
  border-top: 1px solid rgba(0, 255, 65, 0.12);
}
.sup-foot textarea {
  flex: 1; resize: none; background: rgba(0, 255, 65, 0.04);
  border: 1px solid rgba(0, 255, 65, 0.22); color: var(--text);
  border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 13.5px;
  outline: none; transition: border-color 0.25s;
}
.sup-foot textarea:focus { border-color: rgba(0, 255, 65, 0.55); }
.sup-foot .btn { flex-shrink: 0; align-self: flex-end; }

.sup-alt {
  padding: 8px 14px 12px; text-align: center; font-size: 11.5px; color: var(--muted);
}
.sup-alt a { color: var(--gold-2); margin: 0 4px; }
.sup-alt a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .sup-btn { right: 16px; bottom: 16px; width: 52px; height: 52px; font-size: 21px; }
  .sup-panel { right: 12px; bottom: 12px; }
}

/* ============================================================ CATALOG */
.cat-controls { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.ctl-search { flex: 1; min-width: 220px; }
.ctl, .ctl-search input {
  width: 100%; background: var(--bg3); border: 1px solid var(--line); color: var(--text);
  border-radius: 12px; padding: 12px 16px; font: inherit; font-size: 14px;
  transition: border-color 0.25s; outline: none;
}
.ctl:focus, .ctl-search input:focus { border-color: rgba(0, 255, 65, 0.5); }
.ctl { width: auto; min-width: 170px; cursor: pointer; }
.ctl option { background: var(--bg3); }
.cat-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.pill {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 8px 18px; font: inherit; font-size: 13px;
  cursor: pointer; transition: 0.25s; letter-spacing: 0.03em;
}
.pill:hover { border-color: rgba(0, 255, 65, 0.4); color: var(--gold-2); }
.pill.on { background: var(--gold-dim); border-color: var(--gold); color: var(--gold-2); }

.cat-section { margin-bottom: 56px; }
.cat-section-title {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
  font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: 0.02em;
}
.cat-section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cat-section-title .cnt { font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }

.gpu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(268px, 100%), 1fr)); gap: 18px; }
.gpu-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 22px; display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.gpu-card:hover {
  transform: translateY(-4px); border-color: rgba(0, 255, 65, 0.38); box-shadow: var(--shadow);
}
.gpu-name { font-size: 17.5px; font-weight: 700; letter-spacing: 0.02em; }
.gpu-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.gpu-tag {
  font-size: 11px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px;
}
.gpu-tag.gold { color: var(--gold-2); border-color: rgba(0, 255, 65, 0.3); }
.gpu-price-row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.gpu-price { font-family: var(--serif); font-size: 27px; font-weight: 600; color: var(--gold-2); }
.gpu-price small { font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 400; }
.gpu-median { font-size: 12.5px; color: var(--muted); }
.gpu-note { font-size: 11.5px; color: var(--muted); font-style: italic; }
.gpu-rent {
  display: block; text-align: center; padding: 10px; border-radius: 10px;
  border: 1px solid rgba(0, 255, 65, 0.32); color: var(--gold-2);
  font-size: 13px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase;
  transition: 0.25s;
}
.gpu-rent:hover { background: var(--gold-dim); border-color: var(--gold); }
.cat-empty { text-align: center; color: var(--muted); padding: 60px 0; font-size: 15px; }
.cat-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }

/* ============================================================ CONTACTS */
.ct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 300px)); gap: 20px; justify-content: center; }
.ct-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 40px 24px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--card); transition: 0.3s;
}
.ct-btn:hover { transform: translateY(-4px); border-color: rgba(0, 255, 65, 0.4); box-shadow: var(--shadow); }
.ct-ico { font-size: 26px; color: var(--gold-2); }
.ct-btn b { font-size: 17px; letter-spacing: 0.03em; }
.ct-hint { font-size: 12.5px; color: var(--muted); }
.ct-note { text-align: center; color: var(--muted); margin-top: 26px; }

/* ============================================================ FOOTER */
.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer-in > span:last-child { color: var(--muted); font-size: 12.5px; }

/* ============================================================ REVEAL */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================ ADMIN */
.adm-wrap { max-width: 1100px; margin: 0 auto; padding: 110px 4% 80px; }
.adm-title { font-family: var(--serif); font-size: 34px; font-weight: 600; margin-bottom: 6px; }
.adm-sub { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.login-box {
  max-width: 420px; margin: 0 auto; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 44px 38px; text-align: center;
}
.login-box h2 { font-family: var(--serif); font-size: 26px; margin-bottom: 8px; }
.login-box p { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.field { text-align: left; margin-bottom: 18px; }
.field label { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select {
  width: 100%; background: var(--bg3); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 11px 14px; font: inherit; font-size: 14px; outline: none;
  transition: border-color 0.25s;
}
.field input:focus, .field select:focus { border-color: rgba(0, 255, 65, 0.5); }
.adm-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 34px; flex-wrap: wrap; }
.adm-tab {
  background: none; border: none; color: var(--muted); font: inherit; font-size: 14px;
  padding: 12px 18px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
  letter-spacing: 0.03em; transition: color 0.25s;
}
.adm-tab:hover { color: var(--gold-2); }
.adm-tab.on { color: var(--gold-2); border-bottom-color: var(--gold); }
.adm-panel { display: none; }
.adm-panel.on { display: block; }
.adm-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 30px; margin-bottom: 24px;
}
.adm-card h3 { font-size: 18px; margin-bottom: 6px; }
.adm-card .desc { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.markup-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.markup-row input { max-width: 140px; }
.markup-preview { color: var(--muted); font-size: 14px; }
.markup-preview b { color: var(--gold-2); font-weight: 600; }
.gpu-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.gpu-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 860px; }
.gpu-table th {
  text-align: left; padding: 12px 12px; color: var(--muted); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.02); white-space: nowrap;
}
.gpu-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.gpu-table tr:last-child td { border-bottom: none; }
.gpu-table input[type="number"] {
  width: 84px; background: var(--bg3); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 7px 9px; font: inherit; font-size: 13px; outline: none;
}
.gpu-table input[type="number"]:focus { border-color: rgba(0, 255, 65, 0.5); }
.gpu-table .t-name { font-weight: 600; white-space: nowrap; }
.gpu-table select {
  background: var(--bg3); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 7px 9px; font: inherit; font-size: 12.5px; outline: none;
}
.switch { position: relative; display: inline-block; width: 38px; height: 21px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0; background: #2a2a33; border-radius: 999px;
  transition: 0.25s; border: 1px solid var(--line);
}
.slider::before {
  content: ""; position: absolute; height: 15px; width: 15px; left: 2px; top: 2px;
  background: #77756a; border-radius: 50%; transition: 0.25s;
}
.switch input:checked + .slider { background: rgba(0, 255, 65, 0.3); }
.switch input:checked + .slider::before { transform: translateX(17px); background: var(--gold-2); }
.icon-btn {
  background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 8px;
  width: 32px; height: 32px; cursor: pointer; font-size: 14px; transition: 0.25s;
}
.icon-btn:hover { border-color: rgba(220, 80, 80, 0.5); color: #e07a7a; }
.add-row { display: grid; grid-template-columns: 2fr 1.4fr 1fr 1fr 1fr 1fr auto; gap: 10px; align-items: center; margin-top: 18px; }
.add-row input, .add-row select {
  background: var(--bg3); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 9px 11px; font: inherit; font-size: 13px; outline: none; width: 100%;
}
.add-row input:focus, .add-row select:focus { border-color: rgba(0, 255, 65, 0.5); }
.adm-actions { display: flex; gap: 14px; align-items: center; margin-top: 30px; flex-wrap: wrap; }
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 90px);
  background: #1a1a22; border: 1px solid rgba(0, 255, 65, 0.45); color: var(--gold-2);
  padding: 13px 26px; border-radius: 12px; font-size: 14px; z-index: 300;
  transition: transform 0.4s cubic-bezier(0.2, 0.6, 0.2, 1); box-shadow: var(--shadow);
}
.toast.show { transform: translate(-50%, 0); }
.toast.err { border-color: rgba(220, 80, 80, 0.5); color: #e07a7a; }
.adm-logout { margin-left: auto; }
.saved-dot { color: var(--muted); font-size: 13px; }
.contacts-form { max-width: 560px; }
.forum-row { display: grid; grid-template-columns: 180px 1fr 40px; gap: 10px; margin-bottom: 10px; align-items: center; }
.forum-row input {
  background: var(--bg3); border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 13.5px; outline: none;
  width: 100%; transition: border-color 0.25s;
}
.forum-row input:focus { border-color: rgba(0, 255, 65, 0.5); }
.forum-row .icon-btn { width: 38px; height: 38px; }
#btnAddForum:disabled { opacity: 0.45; cursor: not-allowed; }
.pwd-form { max-width: 420px; }
.adm-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8, 8, 11, 0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.adm-header-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.adm-link-back { color: var(--muted); font-size: 13px; transition: color 0.25s; }
.adm-link-back:hover { color: var(--gold-2); }

/* ============================================================ RESPONSIVE */
@media (max-width: 860px) {
  .nav {
    display: none; position: fixed; top: 68px; left: 0; right: 0; flex-direction: column;
    background: rgba(5, 7, 5, 0.97); backdrop-filter: blur(18px);
    padding: 26px 6%; gap: 20px; border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - 68px); overflow-y: auto; /* низкие экраны/ландшафт */
  }
  .nav.open { display: flex; }
  .burger { display: block; }
  #navCta, .header-right .btn { display: none; }
  .header-in { gap: 12px; }
  .grid > * { min-width: 0; }
  .srv-top { flex-wrap: wrap; }
  .hero { padding: 150px 0 80px; }
  .hero-stats { gap: 30px; }
  .stat b { font-size: 26px; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .add-row { grid-template-columns: 1fr 1fr; }

  /* iOS Safari зумит страницу при фокусе на поле с кеглем < 16px —
     приводим все контролы к 16px на телефонах/планшетах */
  .ctl, .ctl-search input, .field input, .field select,
  .gpu-table input[type="number"], .gpu-table select,
  .add-row input, .add-row select, .forum-row input,
  .markup-row input, .sup-foot textarea { font-size: 16px; }

  /* тач-таргеты: пальцевые размеры у мелких кнопок */
  .lang button { padding: 10px 6px; }
  .sup-close { padding: 10px 14px; font-size: 17px; }
  .icon-btn { width: 38px; height: 38px; }
}

/* ---------- планшеты-узкие и крупные телефона (портрет) ---------- */
@media (max-width: 560px) {
  .calc-row { grid-template-columns: 1fr; }
  .forum-row { grid-template-columns: 1fr; }
  .forum-row .icon-btn { justify-self: end; }
  .calc-box { padding: 24px 18px; }
  .card { padding: 26px 20px; }
  .gpu-card { padding: 20px 16px; }
  .hero-cta .btn { width: 100%; }
  .cta-box { padding: 40px 18px; }
  .faq-item summary { padding: 16px 48px 16px 18px; font-size: 15px; }
  .faq-item p { padding: 0 18px 18px; }
}

/* ---------- телефоны ---------- */
@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .hero { padding: 120px 0 60px; }
  .hero-compact { padding: 118px 0 50px; }
  .hero-sub { font-size: 15px; }
  .hero-stats { gap: 18px 22px; }
  .stat b { font-size: 22px; }
  .sec-head { margin-bottom: 40px; }
  .add-row { grid-template-columns: 1fr; }
  .gpu-price { font-size: 24px; }
  .toast { width: calc(100% - 32px); padding: 12px 16px; }
  .login-box { padding: 32px 22px; }
}

/* ---------- ландшафт телефона: экономим высоту ---------- */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding: 100px 0 50px; }
  .hero-stats { display: none; }
  .sec-head { margin-bottom: 30px; }
}

/* ---------- тач: нет «залипающего» hover после тапа и лишних теней ---------- */
@media (hover: none) {
  .card:hover, .gpu-card:hover, .ct-btn:hover { transform: none; box-shadow: none; }
  .btn-gold:hover, .btn-ghost:hover { transform: none; }
  .why-srv:hover { gap: 7px; }
}

/* ---------- вырезы/жест-бар (iPhone notch, home indicator) ---------- */
@supports (padding: env(safe-area-inset-bottom)) {
  @media (max-width: 860px) {
    .sup-btn { bottom: calc(16px + env(safe-area-inset-bottom)); }
    .sup-bubble { bottom: calc(80px + env(safe-area-inset-bottom)); }
    .sup-panel { bottom: calc(12px + env(safe-area-inset-bottom)); height: min(560px, calc(100dvh - 60px - env(safe-area-inset-bottom))); }
  }
}
