:root {
  --primary: #e8505b;
  --primary-dark: #c93d48;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #f7f7f9;
  --card: #ffffff;
  --border: #e5e7eb;
  --success: #16a34a;
  --danger: #dc2626;
  --radius: 14px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}

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

.nav nav a {
  margin-left: 1.5rem;
  color: var(--text);
  font-weight: 500;
}

.nav nav a:hover {
  color: var(--primary);
}

.hero {
  background: linear-gradient(135deg, #e8505b 0%, #f9a26c 100%);
  color: #fff;
  padding: 4rem 0 7rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
}

.hero p {
  opacity: 0.9;
  font-size: 1.1rem;
}

.checkout {
  margin-top: -4.5rem;
  margin-bottom: 3rem;
}

.card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 0 auto;
}

.card-image {
  background: url("https://images.unsplash.com/photo-1449158743715-0a90ebb6d2d8?w=900&q=80") center / cover no-repeat;
  min-height: 300px;
}

.card-body {
  padding: 2rem;
}

.badge {
  display: inline-block;
  background: #fde8ea;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.card-body h2 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.details {
  list-style: none;
  margin: 1.25rem 0;
  border-top: 1px solid var(--border);
}

.details li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.details span {
  color: var(--muted);
}

form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

form input {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

form input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 80, 91, 0.15);
}

.error {
  color: var(--danger);
  font-size: 0.85rem;
  min-height: 1.2em;
  margin-bottom: 0.5rem;
}

.btn {
  width: 100%;
  padding: 0.85rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  word-break: break-word;
}

.status.success {
  background: #dcfce7;
  color: var(--success);
}

.status.failed {
  background: #fee2e2;
  color: var(--danger);
}

.page {
  background: var(--card);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin: 2.5rem auto;
  max-width: 850px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.page h1 {
  margin-bottom: 0.25rem;
}

.page h2 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.4rem;
}

.page p,
.page li {
  color: #374151;
  margin-bottom: 0.5rem;
}

.page ul {
  padding-left: 1.25rem;
}

.site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer nav a {
  color: #d1d5db;
  margin-left: 1.25rem;
}

.site-footer nav a:hover {
  color: #fff;
}

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

  .card-image {
    min-height: 200px;
  }

  .site-footer nav a {
    display: inline-block;
    margin: 0.25rem 1rem 0.25rem 0;
  }
}
