:root {
  --bg: #eef3f7;
  --panel: #ffffff;
  --panel-hover: #f4f8fb;
  --line: rgba(16, 32, 48, 0.08);
  --text: #18232d;
  --muted: #506171;
  --danger: #9f2d2d;
  --danger-soft: #fff5f5;
  --success: #1d6e3f;
  --success-soft: #f3fbf6;
  --shadow: 0 14px 32px rgba(20, 35, 50, 0.1);
  --radius: 12px;
  --content: 860px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbfd 0%, #eef3f7 100%);
}

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

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--content));
  margin: 0 auto;
}

.site-header {
  padding: 24px 0 22px;
}

.site-header .page-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

.brand img {
  width: min(100%, 420px);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin-top: 74px;
}

.nav a,
.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.button {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.nav a:hover,
.button:hover,
.button:focus {
  background: var(--panel-hover);
  color: var(--text);
  transform: translateY(-1px);
}

.payments-footer {
  padding: 0 0 28px;
}

.payments-footer .page-shell {
  text-align: center;
}

.payments-footer-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .site-header .page-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand img {
    width: min(100%, 320px);
  }

  .nav {
    width: 100%;
    justify-content: center;
    margin-top: 0;
  }

  .payments-footer-image {
    width: 100%;
  }
}
