/* NOVA — ember charcoal shop (anti AI-teal) */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Oswald:wght@500;600;700&display=swap");

:root {
  --accent: #e8843a;
  --accent-hot: #ff6a2a;
  --accent-soft: rgba(232, 132, 58, 0.16);
  --accent-glow: 0 10px 36px rgba(232, 132, 58, 0.28);
  --bg: #14110f;
  --panel: #1c1816;
  --panel-2: #241f1c;
  --line: rgba(255, 236, 220, 0.1);
  --line-strong: rgba(255, 236, 220, 0.18);
  --white: #f6efe8;
  --muted: rgba(246, 239, 232, 0.62);
  --ink: #14110f;
  --font: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --display: "Oswald", "IBM Plex Sans", sans-serif;
  --page: min(1240px, calc(100% - 36px));
  --r: 10px;
  --r-pill: 999px;
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --spring-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  background: var(--bg) url("../assets/bg.png") center / cover no-repeat fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(800px 420px at 8% -8%, rgba(232, 132, 58, 0.14), transparent 55%),
    radial-gradient(640px 380px at 92% 8%, rgba(120, 70, 40, 0.2), transparent 50%),
    linear-gradient(180deg, rgba(20, 17, 15, 0.55), rgba(20, 17, 15, 0.78));
}

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

button,
input {
  font: inherit;
}

.ico {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  width: var(--page);
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 28px;
}

/* Header */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 40;
  margin: 12px 0 16px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px 10px 16px;
  border-radius: var(--r);
  background: rgba(28, 24, 22, 0.88);
  border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: 0.3s var(--spring);
}

.nav a:hover,
.nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
}

.nav a.active {
  color: var(--accent);
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--white);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s var(--spring);
}

.lang-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  place-items: center;
}

/* Control + steps denser */
.control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
}

.server-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.server-tabs .lbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.server-tabs button {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s var(--spring);
}

.server-tabs button.active,
.server-tabs button:hover {
  color: var(--ink);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}

.ip-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.ip-bar code {
  color: var(--white);
  font-family: var(--font);
  font-weight: 700;
}

.ip-bar button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s var(--spring);
}

.ip-bar button:hover {
  background: var(--accent);
  color: var(--ink);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--spring), border-color 0.3s var(--spring);
}

.step:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 132, 58, 0.35);
}

.step .num {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.step strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.step span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

/* Shop: side catalog + sticky detail */
.shop {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
  align-items: start;
  flex: 1;
}

.catalog {
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 14px;
}

.products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.products-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.products-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.item-card {
  --mx: 50%;
  --my: 40%;
  position: relative;
  display: grid;
  grid-template-rows: 110px auto;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-radius: var(--r);
  padding: 0;
  color: var(--white);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.4s var(--spring), border-color 0.3s var(--spring), box-shadow 0.4s var(--spring);
}

.item-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mx) var(--my), rgba(232, 132, 58, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.35s var(--spring);
  pointer-events: none;
  z-index: 1;
}

.item-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 132, 58, 0.4);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.item-card:hover::after,
.item-card.active::after {
  opacity: 1;
}

.item-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--accent-glow);
}

.item-card .thumb {
  position: relative;
  overflow: hidden;
}

.item-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--spring-out);
  filter: saturate(0.9) contrast(1.05);
}

.item-card:hover .thumb img {
  transform: scale(1.06);
}

.item-card .mark {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(20, 17, 15, 0.72);
  border: 1px solid var(--line-strong);
  color: var(--accent);
  backdrop-filter: blur(8px);
}

.item-card .body {
  position: relative;
  z-index: 2;
  padding: 12px 12px 14px;
}

.item-card .item-name {
  display: block;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.item-card .price {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* Detail sticky */
.detail-shell {
  position: sticky;
  top: 84px;
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.detail-hero {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.75);
  transform: scale(1.04);
  animation: ken 14s var(--spring) infinite alternate;
}

@keyframes ken {
  to {
    transform: scale(1.1) translate(-1%, -1%);
  }
}

.detail-hero .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, var(--panel) 95%);
}

.detail-hero .badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(20, 17, 15, 0.75);
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.detail-main {
  padding: 8px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.detail-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
}

.term-select {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.term-select button {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s var(--spring);
}

.term-select button.active {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.perks {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(246, 239, 232, 0.88);
  flex: 1;
}

.perks .head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.perks ul {
  margin: 0;
  padding-left: 18px;
}

.perks li {
  margin-bottom: 5px;
}

.perks .sub {
  margin-top: 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.buy-row {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.cost {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.btn-buy {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent));
  color: var(--ink);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--accent-glow);
  transition: transform 0.35s var(--spring), box-shadow 0.35s var(--spring);
}

.btn-buy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35), transparent 60%);
  transform: translateX(-120%) skewX(-14deg);
  transition: transform 0.65s var(--spring-out);
}

.btn-buy:hover::after {
  transform: translateX(120%) skewX(-14deg);
}

.btn-buy:hover {
  transform: translateY(-2px);
}

.btn-buy:active {
  transform: scale(0.97);
}

.btn-buy > * {
  position: relative;
  z-index: 1;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--white);
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s var(--spring);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Pages */
.page-card {
  border-radius: var(--r);
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 28px;
  margin: 8px 0 24px;
}

.page-card h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 40px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

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

.promo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.promo-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  transition: transform 0.35s var(--spring);
}

.promo-card:hover {
  transform: translateY(-3px);
}

.promo-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 18px;
}

/* Footer */
.site-footer {
  margin-top: 22px;
  padding: 18px 2px 6px;
  display: grid;
  grid-template-columns: 1.4fr auto 1fr;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  color: rgba(246, 239, 232, 0.48);
  border-top: 1px solid var(--line);
}

.pay-row {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.pay-badge {
  min-width: 48px;
  height: 28px;
  padding: 0 8px;
  display: grid;
  place-items: center;
  background: rgba(246, 239, 232, 0.92);
  color: #111;
  font-size: 10px;
  font-weight: 800;
  border-radius: 6px;
}

.foot-copy {
  text-align: right;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  background: rgba(10, 8, 7, 0.62);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--spring);
  padding: 14px;
}

.modal.is-on {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: min(460px, 100%);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 18px 18px 14px 14px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transform: translateY(36px);
  transition: transform 0.45s var(--spring);
}

.modal.is-on .modal-card {
  transform: none;
}

.modal-card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 28px;
  text-transform: uppercase;
}

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

.modal-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.modal-card input {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--white);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 15px;
}

.modal-card input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.modal-actions .btn-buy {
  flex: 1;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 90;
  transform: translate(-50%, 14px);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r-pill);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: 0.35s var(--spring);
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.reveal {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(12px);
  transition: opacity 0.65s var(--spring-out), filter 0.65s var(--spring-out), transform 0.65s var(--spring-out);
}

.reveal.is-on {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

@media (max-width: 980px) {
  .shop {
    grid-template-columns: 1fr;
  }

  .detail-shell {
    position: relative;
    top: 0;
    min-height: 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .foot-copy {
    text-align: center;
  }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    border-radius: var(--r);
    background: rgba(28, 24, 22, 0.96);
    border: 1px solid var(--line);
  }

  .nav.is-open {
    display: flex;
  }

  .site-header {
    position: relative;
  }

  .menu-btn {
    display: grid;
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .items-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .item-card,
  .btn-buy,
  .detail-hero img {
    transition: none !important;
    animation: none !important;
  }

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