:root {
  --primary: #0094ff;
  --primary-dark: #0078d4;
  --accent: #fad634;
  --accent-hover: #ffd91c;
  --text: #32363a;
  --text-muted: #828181;
  --surface: #ffffff;
  --bg: #f7f7fa;
  --border: #ebedef;
  --shadow: 0 8px 24px rgba(0, 50, 100, 0.06);
  --container: 920px;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  background: var(--bg);
}

body.modal-open {
  overflow: hidden;
}

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

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

p,
h1 {
  margin: 0;
}

.container {
  width: min(calc(100% - 24px), var(--container));
  margin: 0 auto;
}

.site-header {
  padding: 14px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  flex-shrink: 0;
}

.site-logo img {
  width: 148px;
  height: auto;
  display: block;
}

.site-header__tagline {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.offers-section {
  padding: 20px 0 32px;
}

.offers-list {
  display: grid;
  gap: 12px;
}

.offer-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.offer-row:hover {
  border-color: rgba(0, 148, 255, 0.28);
  box-shadow: 0 12px 28px rgba(0, 148, 255, 0.1);
}

.offer-row__logo {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 10px;
  border-radius: 12px;
  background: var(--bg);
}

.offer-row__logo img {
  width: auto;
  max-width: 100%;
  max-height: 65px;
  object-fit: contain;
}

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

.metric-pill {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--bg);
}

.metric-pill__label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.metric-pill__value {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.offer-row__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 132px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}

.button--ghost {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid rgba(0, 148, 255, 0.35);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: rgba(0, 148, 255, 0.06);
}

.button--accent {
  background: var(--accent);
  color: #000000;
}

.button--accent:hover,
.button--accent:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.empty-state {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  text-align: center;
}

.site-footer {
  padding: 24px 0 28px;
  background: var(--surface);
  border-top: 3px solid var(--primary);
}

.site-footer__inner {
  display: grid;
  gap: 14px;
}

.site-footer__logo img {
  width: 120px;
  height: auto;
}

.site-footer__legal {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.site-footer__bottom a {
  color: var(--primary);
  font-weight: 600;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal[hidden] {
  display: none;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(32, 33, 36, 0.45);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 22px 18px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(32, 33, 36, 0.2);
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-right: 28px;
}

.modal-head__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  padding: 8px;
  border-radius: 12px;
  background: var(--bg);
}

.modal-head__title {
  font-size: 18px;
  font-weight: 700;
}

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

.modal-grid__item {
  padding: 12px;
  border-radius: 10px;
  background: var(--bg);
}

.modal-grid__item span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.modal-grid__item strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.modal-links {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.modal-links a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fefefe;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.modal-cta {
  width: 100%;
  margin-top: 16px;
}

.policy-page {
  padding: 24px 0 40px;
}

.policy-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.policy-card h1 {
  font-size: clamp(24px, 4vw, 30px);
}

.policy-card p {
  margin-top: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 820px) {
  .offers-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .offer-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 10px;
  }

  .offer-row__logo {
    min-height: 64px;
    padding: 8px;
  }

  .offer-row__metrics {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .metric-pill {
    padding: 8px 10px;
  }

  .metric-pill__value {
    font-size: 13px;
  }

  .offer-row__actions {
    flex-direction: column;
    min-width: 0;
  }

  .offer-row__actions .button {
    flex: 1 1 auto;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .site-logo img {
    width: 132px;
  }

  .site-header__tagline {
    font-size: 13px;
  }
}
