:root {
  --green: #00d46f;
  --green-2: #16f58d;
  --ink: #10131d;
  --muted: #667084;
  --line: #e5eaf2;
  --panel: #ffffff;
  --soft: #f5f7fb;
  --night: #06111e;
  --shadow: 0 18px 48px rgba(16, 28, 48, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 16%, rgba(0, 212, 111, .08), transparent 30%),
    linear-gradient(180deg, #f9fbfe 0%, #f4f7fb 56%, #eef3f8 100%);
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.shell {
  width: min(1220px, calc(100% - 60px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, #071423 0%, #020912 100%);
  box-shadow: 0 8px 26px rgba(0, 0, 0, .22);
}

.topbar__inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 140px minmax(260px, 1fr) auto;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  color: var(--green-2);
  font-size: 29px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 1px;
}

.catalog, .top-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8px;
  font-weight: 800;
}

.catalog {
  color: #00170c;
  background: linear-gradient(135deg, #1cff8f, #00cc68);
  box-shadow: 0 14px 32px rgba(0, 213, 111, .22);
}
.catalog svg { fill: currentColor; stroke: none; }

.search {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 14px 0 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .045);
}
.search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
}
.search input::placeholder { color: #9aa6b5; }
.search button {
  width: 34px;
  height: 34px;
  border: 0;
  color: #fff;
  background: transparent;
}

.actions { display: flex; gap: 14px; }
.top-btn {
  color: #fff;
  min-width: 120px;
  padding: 0 18px;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .055);
}
.cart b {
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #052313;
  background: var(--green-2);
  font-size: 12px;
}

.breadcrumbs {
  height: 74px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #697386;
  font-size: 13px;
}
.breadcrumbs span {
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: .8;
}
.breadcrumbs b { color: #2d3748; }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 18px;
}
.layout > * { min-width: 0; }

.panel {
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(220, 227, 238, .9);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.topup { padding: 34px 32px 0; }
.service-head {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}
.service-head > div { min-width: 0; }
.steam-logo {
  width: 100px;
  height: 100px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, #f7fbff 0 13%, transparent 14%),
    linear-gradient(145deg, #071a42, #00669f 56%, #071a42);
}
.steam-logo svg {
  width: 76px;
  height: 76px;
  fill: currentColor;
  stroke: none;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 36px; line-height: 1.08; font-weight: 900; }
.service-head p {
  margin-top: 10px;
  color: #111827;
  font-size: 19px;
  line-height: 1.45;
}

.topup-form { display: grid; gap: 21px; min-width: 0; }
.field { display: grid; gap: 10px; min-width: 0; font-weight: 800; }
.field > span { font-size: 15px; }
.input-wrap, .select-wrap, .amount {
  height: 50px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d7deea;
  border-radius: 8px;
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
.input-wrap:focus-within, .select-wrap:focus-within, .amount:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 212, 111, .12);
}
input, select {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  padding: 0 16px;
}
input::placeholder { color: #8a94a6; }
.input-wrap button {
  flex: 0 0 44px;
  height: 100%;
  border: 0;
  color: #647084;
  background: transparent;
}
.select-wrap { position: relative; }
.select-wrap::before {
  content: "🇹🇷";
  position: absolute;
  left: 17px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
}
.select-wrap select { padding-left: 52px; appearance: none; }
.select-wrap::after {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  right: 20px;
  border-right: 1.5px solid #111827;
  border-bottom: 1.5px solid #111827;
  transform: rotate(45deg) translateY(-3px);
  pointer-events: none;
}
.amount input { flex: 1 1 auto; }
.amount select {
  flex: 0 0 104px;
  border-left: 1px solid #d7deea;
  appearance: none;
  font-weight: 800;
}

.chips {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.chips button {
  height: 42px;
  border: 1px solid #dce2eb;
  border-radius: 999px;
  color: #273143;
  background: linear-gradient(180deg, #fbfcfe, #f0f3f7);
  box-shadow: inset 0 -1px 1px rgba(16, 24, 40, .04);
}
.chips button.is-active {
  color: #04b862;
  border-color: var(--green);
  background: #ecfff5;
}

.commission {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 10px;
  background: linear-gradient(90deg, #dcfbe8, #ebfff3);
}
.commission__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #00b65c;
  background: rgba(255, 255, 255, .56);
  font-weight: 900;
  font-size: 26px;
}
.commission span, .receive span {
  display: block;
  color: #657083;
  font-size: 14px;
  margin-top: 5px;
  font-weight: 600;
}
.receive { text-align: right; }
.receive b {
  display: block;
  margin-top: 6px;
  color: #00bd63;
  font-size: 21px;
}

.pay {
  height: 54px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #08d970, #00bd60);
  box-shadow: 0 14px 34px rgba(0, 198, 102, .25);
  font-weight: 900;
  font-size: 17px;
}

.payments {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 28px;
  border-top: 1px solid #e4e9f1;
  white-space: nowrap;
}
.payments span {
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}
.visa { color: #164b99; font-size: 20px; font-style: italic; }
.mc { display: inline-flex; }
.mc i {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 50%;
  background: #ed1c24;
}
.mc i + i { margin-left: -8px; background: #f9a51a; opacity: .9; }
.mir { color: #05804c; font-size: 20px; }
.sbp { color: #1b2638; }
.um { color: #5a35e8; font-size: 13px; }
.tron { color: #e81b2c; }

.side { display: grid; gap: 18px; align-content: start; }
.benefits, .recent { padding: 26px; }
.benefits h2, .recent h2, .countries h2 {
  font-size: 21px;
  line-height: 1.2;
  font-weight: 900;
}
.benefit {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 26px;
}
.benefit i, .stats i {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: #f1f3f7;
}
.benefit b { display: block; font-size: 15px; }
.benefit span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.recent-list {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}
.recent-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
}
.recent p span, .recent strong span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.recent strong {
  color: #00bf65;
  font-size: 14px;
  text-align: right;
  white-space: nowrap;
}
.see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 26px;
  color: #505a6d;
  font-size: 14px;
  font-weight: 700;
}
.see-all svg { width: 16px; height: 16px; }

.countries {
  margin-top: 18px;
  padding: 26px 30px 18px;
}
.country-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.country {
  min-height: 138px;
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-rows: auto 1fr;
  gap: 12px 12px;
  align-items: center;
  padding: 20px 16px;
  border: 1px solid #e0e6ef;
  border-radius: 10px;
  background: #fff;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.country:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 212, 111, .45);
  box-shadow: 0 14px 28px rgba(16, 28, 48, .08);
}
.country i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 36px;
  font-style: normal;
  overflow: hidden;
}
.country b {
  font-size: 14px;
  line-height: 1.2;
}
.country b span { display: block; margin-top: 3px; font-weight: 600; }
.country small {
  grid-column: 1 / -1;
  align-self: end;
  justify-self: center;
  color: #667084;
  font-size: 14px;
}
.country strong { color: #00ba61; }
.country em {
  display: block;
  width: max-content;
  margin: 5px auto 0;
  padding: 2px 8px;
  border-radius: 999px;
  color: #00a555;
  border: 1px solid #00d46f;
  font-size: 11px;
  font-style: normal;
}
.more i {
  color: #202938;
  background: #f3f5f8;
  font-size: 26px;
}
.country-help {
  margin-top: 20px;
  color: #6c7586;
  font-size: 14px;
}
.country-help a { color: #00bb62; font-weight: 800; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 18px 0;
  padding: 20px 0;
}
.stats div {
  min-height: 56px;
  display: grid;
  grid-template-columns: 62px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 0 30px;
  border-right: 1px solid #e4e9f1;
}
.stats div:last-child { border-right: 0; }
.stats i {
  grid-row: 1 / 3;
  background: #fff;
  border: 1px solid #ecf0f5;
  box-shadow: 0 12px 28px rgba(16, 28, 48, .08);
}
.stats b { font-size: 20px; }
.stats span { color: #667084; font-size: 13px; font-weight: 600; }

.footer {
  margin-top: 0;
  padding: 34px 0 24px;
  color: #c6d0dc;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 212, 111, .16), transparent 28%),
    linear-gradient(145deg, #071727, #020811);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.25fr 1.35fr;
  gap: 70px;
}
.footer .brand { font-size: 25px; }
.footer p {
  max-width: 260px;
  margin-top: 22px;
  color: #d4dbe5;
  font-size: 14px;
  line-height: 1.65;
}
.footer h3 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 18px;
}
.footer a {
  display: block;
  margin-top: 13px;
  color: #cbd4df;
  font-size: 14px;
}
.socials {
  display: flex;
  gap: 12px;
  margin: 18px 0 24px;
}
.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  font-weight: 900;
  font-size: 12px;
}
.footer small { color: #b5c0cc; }
.dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 212, 111, .12);
}
.footer-payments {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  color: #fff;
  margin-top: -34px;
  font-size: 20px;
}

@media (max-width: 1100px) {
  .topbar__inner { grid-template-columns: 1fr auto auto; gap: 14px; padding: 16px 0; }
  .search { grid-column: 1 / -1; order: 2; }
  .layout { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr 1fr; }
  .country-grid { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(n+3) { margin-top: 20px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 38px; }
  .footer-payments { justify-content: flex-start; margin-top: 30px; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1220px); }
  .topbar__inner { min-height: auto; grid-template-columns: 1fr auto; }
  .brand { font-size: 23px; }
  .catalog { width: 48px; min-height: 46px; }
  .catalog span, .top-btn span { display: none; }
  .actions { grid-column: 1 / -1; order: 3; }
  .top-btn { min-width: 0; flex: 1; min-height: 46px; }
  .breadcrumbs { height: 58px; overflow-x: auto; white-space: nowrap; }
  .topup { padding: 22px 18px 0; }
  .service-head { grid-template-columns: 74px minmax(0, 1fr); gap: 16px; }
  .steam-logo { width: 74px; height: 74px; border-radius: 14px; }
  .steam-logo svg { width: 56px; height: 56px; }
  h1 { font-size: 28px; }
  .service-head p { font-size: 16px; }
  .chips { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .commission { grid-template-columns: 44px 1fr; }
  .receive { grid-column: 1 / -1; text-align: left; }
  .payments { gap: 15px; overflow-x: auto; }
  .side { grid-template-columns: 1fr; }
  .benefits, .recent, .countries { padding: 22px 18px; }
  .country-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .country { min-height: 130px; padding: 16px 12px; }
  .stats { grid-template-columns: 1fr; padding: 8px 0; }
  .stats div {
    border-right: 0;
    border-bottom: 1px solid #e4e9f1;
    padding: 18px;
  }
  .stats div:nth-child(n+3) { margin-top: 0; }
  .stats div:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 430px) {
  .country-grid { grid-template-columns: 1fr; }
  .recent-list > div { grid-template-columns: 1fr; gap: 6px; }
  .recent strong { text-align: left; }
}
