:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #1a2332;
  --muted: #5c6b7a;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --border: #e2e8f0;
  --total-bg: #ecfdf5;
  --total-border: #99f6e4;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, #eef6ff 0%, var(--bg) 220px);
  line-height: 1.55;
}

a {
  color: var(--accent);
}

.container {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 28px 0 12px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.hero {
  padding: 12px 0 28px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  font-size: 0.9rem;
  font-weight: 600;
}

.field-full {
  grid-column: 1 / -1;
}

select,
button {
  font: inherit;
}

select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-secondary:hover {
  background: #f0fdfa;
}

.form-actions {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.popular {
  margin-top: 28px;
}

.popular h2,
.section-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.breakdown-table {
  width: 100%;
  border-collapse: collapse;
}

.breakdown-table th,
.breakdown-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.breakdown-table th {
  font-weight: 600;
  color: var(--muted);
  width: 55%;
}

.breakdown-table td {
  font-weight: 700;
  text-align: right;
}

.total-box {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--total-bg);
  border: 1px solid var(--total-border);
}

.total-box .label {
  color: var(--muted);
  font-size: 0.95rem;
}

.total-box .amount {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.meta-item {
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 10px;
  font-size: 0.92rem;
}

.meta-item strong {
  display: block;
  margin-bottom: 4px;
}

.affiliate-block {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.affiliate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.disclaimer {
  margin-top: 24px;
  padding: 14px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #92400e;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer {
  margin: 40px 0 24px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

.breadcrumb {
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

@media (max-width: 640px) {
  .form-grid,
  .meta-grid {
    grid-template-columns: 1fr;
  }
}
