:root {
  --bg: #0b0c11;
  --bg2: #10131c;
  --panel: #151827;
  --panel2: #1b2030;
  --line: rgba(255, 255, 255, 0.08);
  --line2: rgba(255, 255, 255, 0.14);
  --txt: #ececf2;
  --muted: #9aa0b2;
  --accent: #ff7a2f;
  --accent2: #ff3359;
  --gold: #ffc24b;
  --green: #4ade80;
  --red: #ff5b5b;
  --radius: 14px;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
  --grad: linear-gradient(135deg, #ff7a2f, #ff3359);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--txt);
  font: 15px/1.58 'Inter', 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

body.lock {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

h1, h2, h3, h4, h5 {
  font-family: 'Russo One', 'Inter', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.2;
}

.wrapper {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- Header ---------------- */
header.top {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 24px;
  background: rgba(11, 12, 17, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logotype {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logotype .pic {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(145deg, #2f3c17, #7a8a33);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12), 0 4px 14px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  flex: none;
}

.logotype .pic::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
}

.logotype .logo_text {
  display: flex;
  flex-direction: column;
  font-family: 'Russo One', 'Inter', sans-serif;
  text-transform: lowercase;
  line-height: 1;
}

.logotype .logo_text span:first-child {
  font-size: 20px;
  color: #fff;
  letter-spacing: 0.5px;
}

.logotype .logo_text span:last-child {
  font-size: 16px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 2px;
}

nav#header_menu ul {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

nav#header_menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

nav#header_menu a i {
  font-size: 13px;
  opacity: 0.85;
}

nav#header_menu a:hover {
  color: #fff;
  background: var(--panel);
}

nav#header_menu a.active {
  color: #fff;
  background: var(--panel);
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #1f2636, #2a3350);
  box-shadow: inset 0 0 0 1px var(--line2), 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s, filter 0.2s, box-shadow 0.2s;
}

.button:hover {
  filter: brightness(1.13);
  transform: translateY(-1px);
}

.button.button-orange {
  background: var(--grad);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 8px 24px rgba(255, 90, 40, 0.35);
}

.button.button-green {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15), 0 8px 24px rgba(34, 197, 94, 0.3);
}

.button.button-ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line2);
}

.menu-button {
  display: none;
  padding: 10px 14px;
  font-size: 18px;
}

/* ---------------- Hero ---------------- */
#head {
  position: relative;
  min-height: 74vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(255, 122, 47, 0.16), transparent 60%),
    radial-gradient(760px 460px at 12% 88%, rgba(255, 51, 89, 0.12), transparent 60%),
    #0a0b10;
}

#head::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000 30%, transparent 75%);
}

.blocks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blk {
  position: absolute;
  border-radius: 10px;
  opacity: 0.55;
  animation: floaty var(--dur, 9s) ease-in-out infinite alternate;
  filter: blur(1px);
}

.blk b {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
}

@keyframes floaty {
  0% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  100% { transform: translateY(-26px) rotate(calc(var(--rot, 0deg) + 6deg)); }
}

#head_top {
  position: relative;
  z-index: 2;
  padding: 70px 20px 30px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

#head_top h1 {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.12;
}

#head_top h1 .brand {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

#head_top h5 {
  margin-top: 18px;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 2.4vw, 20px);
  line-height: 1.55;
}

.head_bottom {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 30px 20px 40px;
}

.s-online-wrapp {
  display: flex;
  justify-content: flex-end;
}

.s-online {
  width: min(420px, 100%);
  background: rgba(21, 24, 39, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.s-online h6 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.s-online .online {
  font-size: 18px;
  font-weight: 600;
}

.s-online .online span {
  color: var(--gold);
}

.s-online .online .off {
  color: var(--red);
}

.progress {
  margin: 12px 0 16px;
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--grad);
  transition: width 0.6s ease;
}

.copyip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: 'Russo One', sans-serif;
  font-size: 17px;
  letter-spacing: 0.4px;
  user-select: none;
  transition: border-color 0.2s, background 0.2s;
}

.copyip:hover {
  border-color: var(--accent);
  background: rgba(255, 122, 47, 0.08);
}

.copyip i {
  color: var(--accent);
}

/* ---------------- Join section ---------------- */
#join_us {
  position: relative;
  background: var(--bg2);
  border-block: 1px solid var(--line);
  padding: 46px 20px;
}

#join_us .inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

#join_us h2 {
  font-size: clamp(22px, 3.4vw, 30px);
}

#join_us h5 {
  margin-top: 10px;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
}

.copy_ip_line {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.copy_ip_line .version {
  color: var(--muted);
  font-size: 14px;
}

.copy_ip_line .version b {
  color: var(--txt);
}

/* ---------------- Store ---------------- */
#store {
  padding: 70px 20px 40px;
}

.section-title {
  text-align: center;
  margin-bottom: 34px;
}

.section-title h2 {
  font-size: clamp(26px, 4vw, 38px);
}

.section-title p {
  margin-top: 10px;
  color: var(--muted);
}

.cats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 99px;
  border: 1px solid var(--line2);
  background: var(--panel);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.18s;
}

.chip:hover {
  color: #fff;
  border-color: var(--accent);
}

.chip.active {
  color: #fff;
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 6px 18px rgba(255, 90, 40, 0.35);
}

.goods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 18px;
}

.good {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.good:hover {
  transform: translateY(-4px);
  border-color: var(--line2);
  box-shadow: var(--shadow);
}

.good .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(255, 60, 80, 0.4);
}

.good .thumb {
  position: relative;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 62px;
  background:
    radial-gradient(220px 120px at 50% -20%, rgba(255, 255, 255, 0.14), transparent),
    linear-gradient(160deg, var(--t1, #2a3350), var(--t2, #161a28));
  border-bottom: 1px solid var(--line);
}

.good .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 22px;
  pointer-events: none;
}

.good .body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.good .name {
  font-family: 'Russo One', sans-serif;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.good .desc {
  color: var(--muted);
  font-size: 13px;
  flex: 1;
}

.good .prices {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.good .price {
  font-family: 'Russo One', sans-serif;
  color: var(--gold);
  font-size: 19px;
}

.good .price-old {
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: line-through;
}

.good .buy {
  margin-top: 6px;
  width: 100%;
}

/* ---------------- Social ---------------- */
#social {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 20px auto 60px;
  padding: 0 20px;
}

#social a > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}

#social a {
  color: inherit;
}

#social a > div:hover {
  transform: translateY(-3px);
  border-color: var(--line2);
  box-shadow: var(--shadow);
}

#social .s-ic {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

#social .vc { background: linear-gradient(135deg, #4c75a3, #3c5e85); }
#social .dc { background: linear-gradient(135deg, #5865f2, #4047b0); }
#social .yt { background: linear-gradient(135deg, #ff0033, #c4002b); }
#social .fo { background: linear-gradient(135deg, #2a3350, #1c2233); }

#social span.lbl {
  font-weight: 600;
  font-size: 15px;
}

/* ---------------- Footer ---------------- */
footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: #090a0e;
  padding: 44px 20px 30px;
}

footer .cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr 1fr;
  gap: 30px;
  max-width: 1180px;
  margin: 0 auto;
}

footer .cols p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

footer .cols h6 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--muted);
}

footer .cols a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 3px 0;
  transition: color 0.15s;
}

footer .cols a:hover {
  color: var(--accent);
}

footer .copy {
  max-width: 1180px;
  margin: 30px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #5b6172;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------------- Modal ---------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 6, 10, 0.7);
  backdrop-filter: blur(6px);
}

.modal-overlay.open {
  display: flex;
}

.modal {
  width: min(470px, 100%);
  background: linear-gradient(170deg, #181c2b, #12141e);
  border: 1px solid var(--line2);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  padding: 26px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  animation: pop 0.22s ease;
}

@keyframes pop {
  from { transform: translateY(14px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.modal .m-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.modal .m-title {
  font-family: 'Russo One', sans-serif;
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.modal .m-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.modal .m-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}

.modal .m-close:hover {
  color: #fff;
  background: var(--panel2);
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s;
}

.field input:focus {
  border-color: var(--accent);
}

.field .hint {
  font-size: 12px;
  color: #5b6172;
  margin-top: 5px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.qty-row .qty-label {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line2);
  border-radius: 10px;
  overflow: hidden;
}

.stepper button {
  width: 38px;
  height: 38px;
  border: none;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  transition: background 0.15s;
}

.stepper button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.stepper input {
  width: 52px;
  height: 38px;
  text-align: center;
  border: none;
  border-inline: 1px solid var(--line2);
  background: transparent;
  color: #fff;
  font-size: 15px;
  outline: none;
}

.m-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 16px;
}

.m-total .t-val {
  font-family: 'Russo One', sans-serif;
  font-size: 22px;
  color: var(--gold);
}

.m-note {
  font-size: 12px;
  color: #5b6172;
  text-align: center;
  margin-top: 10px;
}

.m-note a { color: var(--accent); }

.m-error {
  display: none;
  color: var(--red);
  font-size: 13px;
  background: rgba(255, 91, 91, 0.1);
  border: 1px solid rgba(255, 91, 91, 0.3);
  border-radius: 9px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.m-error.show {
  display: block;
}

/* ---------------- Toasts ---------------- */
#toasts {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--panel2);
  border: 1px solid var(--line2);
  border-radius: 11px;
  padding: 13px 17px;
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: slideIn 0.25s ease;
  max-width: 340px;
}

.toast.ok { border-left: 3px solid var(--green); }
.toast.err { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--accent); }

@keyframes slideIn {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ---------------- Content pages ---------------- */
.page {
  max-width: 900px;
  margin: 50px auto 70px;
  padding: 0 20px;
}

.page h1 {
  font-size: 30px;
  margin-bottom: 20px;
}

.page .card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 18px;
}

.page .card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 600;
}

.page .card p, .page .card li {
  color: var(--muted);
  line-height: 1.75;
}

.page .card ul {
  padding-left: 18px;
}

.page .card li {
  margin: 4px 0;
}

.page .card li i {
  color: var(--accent);
  margin-right: 6px;
}

/* ---------------- Success / fail ---------------- */
.result {
  max-width: 560px;
  margin: 70px auto;
  padding: 0 20px;
  text-align: center;
}

.result .ic {
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  color: #fff;
}

.result.ok-page .ic { background: linear-gradient(135deg, #16a34a, #22c55e); }
.result.fail-page .ic { background: linear-gradient(135deg, #b91c1c, #ef4444); }

.result h1 {
  font-size: 26px;
  margin-bottom: 10px;
}

.result p {
  color: var(--muted);
  margin-bottom: 22px;
}

.status-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  background: var(--panel);
  border: 1px solid var(--line2);
  margin-bottom: 18px;
}

.status-pill.s-paid, .status-pill.s-delivered { color: var(--green); border-color: rgba(74, 222, 128, 0.35); }
.status-pill.s-pending { color: var(--gold); border-color: rgba(255, 194, 75, 0.35); }
.status-pill.s-failed, .status-pill.s-refunded { color: var(--red); border-color: rgba(255, 91, 91, 0.35); }

/* ---------------- Admin ---------------- */
.admin-box {
  max-width: 1180px;
  margin: 40px auto 70px;
  padding: 0 20px;
}

.admin-login {
  max-width: 380px;
  margin: 90px auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
}

.admin-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.stat b {
  font-family: 'Russo One', sans-serif;
  font-size: 22px;
  color: var(--gold);
}

.stat span {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 3px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

table.orders {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.orders th {
  text-align: left;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

table.orders td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

table.orders tr:last-child td { border-bottom: none; }

table.orders .p-st {
  font-weight: 600;
}

.p-st.pending { color: var(--gold); }
.p-st.paid { color: #7db4ff; }
.p-st.delivered { color: var(--green); }
.p-st.failed, .p-st.refunded { color: var(--red); }

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

.mini {
  padding: 6px 10px;
  font-size: 12.5px;
  border-radius: 8px;
}

.err-txt { color: var(--red); font-size: 12px; max-width: 260px; }

.spin {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rot 0.8s linear infinite;
}

@keyframes rot { to { transform: rotate(360deg); } }

/* ---------------- Responsive ---------------- */
@media (max-width: 820px) {
  .menu-button { display: inline-flex; }

  nav#header_menu {
    display: none;
    position: fixed;
    top: 73px;
    left: 12px;
    right: 12px;
    z-index: 95;
    background: rgba(13, 15, 22, 0.98);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  nav#header_menu.open { display: block; }

  nav#header_menu ul { flex-direction: column; align-items: stretch; }

  nav#header_menu a { padding: 12px 14px; }

  #head_top { padding-top: 46px; }

  .s-online-wrapp { justify-content: flex-start; }

  footer .cols { grid-template-columns: 1fr 1fr; gap: 22px; }
}

@media (max-width: 520px) {
  footer .cols { grid-template-columns: 1fr; }
}