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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  color: #000;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  border-bottom: 2px solid #000;
  background: #fff;
}

.nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.menu { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; }

.menu a {
  color: #000;
  text-decoration: none;
  font-size: 15px;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.menu a:hover, .menu a.active { border-bottom-color: #000; }

main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
}

h1 { font-size: 32px; margin-bottom: 8px; }
h2 { font-size: 20px; margin: 28px 0 8px; }
p { margin-bottom: 12px; }
.sub { color: #444; margin-bottom: 28px; }

.card {
  border: 2px solid #000;
  padding: 28px;
  max-width: 520px;
}

label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }

input[type="number"], input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #000;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-family: inherit;
  border-radius: 0;
}

input:focus, textarea:focus, button:focus-visible {
  outline: 3px solid #000;
  outline-offset: 2px;
}

textarea { min-height: 140px; resize: vertical; }

.field { margin-bottom: 20px; }

.rates { display: flex; flex-wrap: wrap; gap: 10px; }

.rates input { position: absolute; opacity: 0; pointer-events: none; }

.rates label {
  margin: 0;
  padding: 10px 18px;
  border: 2px solid #000;
  cursor: pointer;
  font-weight: 700;
  user-select: none;
}

.rates input:checked + label { background: #000; color: #fff; }
.rates input:focus-visible + label { outline: 3px solid #000; outline-offset: 2px; }

#customWrap { display: none; margin-top: 12px; }
#customWrap.show { display: block; }

button, .btn {
  background: #000;
  color: #fff;
  border: 2px solid #000;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  border-radius: 0;
}

button:hover { background: #fff; color: #000; }

button.secondary { background: #fff; color: #000; }
button.secondary:hover { background: #000; color: #fff; }

.error { color: #000; font-weight: 700; margin-top: 10px; min-height: 22px; font-size: 14px; }

#result { margin-top: 24px; border-top: 2px solid #000; padding-top: 16px; display: none; }
#result.show { display: block; }

.row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #000; }
.row.total { font-weight: 700; font-size: 20px; border-bottom: none; padding-top: 14px; }

footer {
  border-top: 2px solid #000;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

footer a { color: #000; }

.note { font-size: 13px; color: #444; margin-top: 18px; }

ul.list { margin: 0 0 12px 22px; }
ul.list li { margin-bottom: 6px; }

#cookieBox {
  display: none;
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: #000;
  color: #fff;
  border: 2px solid #fff;
  outline: 2px solid #000;
  padding: 20px;
  z-index: 100;
}

#cookieBox.show { display: block; }
#cookieBox p { margin-bottom: 14px; font-size: 14px; }
#cookieBox a { color: #fff; }
#cookieBox .actions { display: flex; gap: 10px; flex-wrap: wrap; }
#cookieBox button { background: #fff; color: #000; border-color: #fff; padding: 10px 20px; }
#cookieBox button:hover { background: #000; color: #fff; }

/* ---------- Homepage layout ---------- */
main.full { max-width: none; padding: 0; }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

.hero { background: #000; color: #fff; padding: 64px 0 72px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  border: 2px solid #fff;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 { font-size: 52px; line-height: 1.08; margin-bottom: 18px; letter-spacing: -1px; }
.hero p.lead { font-size: 18px; color: #ccc; margin-bottom: 24px; max-width: 460px; }

.ticks { list-style: none; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 8px; font-weight: 700; }
.ticks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
}

.hero-center { text-align: center; }
.hero-center .card { margin: 0 auto; max-width: 520px; text-align: left; }
.hero-center p.lead { margin: 40px auto 20px; max-width: 560px; }
.hero-center .ticks { display: inline-block; text-align: left; }

.hero .card { background: #fff; color: #000; border-color: #fff; box-shadow: 10px 10px 0 #666; max-width: none; }

.quick { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.quick button { padding: 4px 12px; font-size: 13px; }

.section { padding: 64px 0; border-bottom: 2px solid #000; }
.section.alt { background: #f2f2f2; }
.section.dark { background: #000; color: #fff; border-bottom: none; text-align: center; }

.section h2 { font-size: 30px; margin: 0 0 12px; letter-spacing: -0.5px; }
.section .intro { max-width: 640px; color: #444; margin-bottom: 36px; }
.section.dark .intro { color: #ccc; margin-left: auto; margin-right: auto; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.tile { border: 2px solid #000; padding: 24px; background: #fff; }
.tile h3 { font-size: 18px; margin-bottom: 8px; }
.tile p { margin: 0; font-size: 15px; color: #333; }

.num {
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 36px;
  text-align: center;
  border: 2px solid #000;
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}

table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border: 2px solid #000; padding: 12px 14px; text-align: left; }
th { background: #000; color: #fff; }
.table-wrap { overflow-x: auto; }

.formula {
  border: 2px solid #000;
  background: #fff;
  padding: 16px 20px;
  font-family: "Courier New", monospace;
  font-size: 16px;
  margin-bottom: 28px;
}

.faq details { border: 2px solid #000; background: #fff; margin-bottom: 12px; }
.faq summary { padding: 16px 20px; font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 22px; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 2px solid #000; }
.faq details p { padding: 16px 20px; margin: 0; }

.btn-light {
  display: inline-block;
  background: #fff;
  color: #000;
  text-decoration: none;
  padding: 14px 32px;
  font-weight: 700;
  border: 2px solid #fff;
  margin-top: 8px;
}
.btn-light:hover { background: #000; color: #fff; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 38px; }
  .grid3 { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 52px; }
  .section { padding: 44px 0; }
}

@media (max-width: 520px) {
  h1 { font-size: 26px; }
  .hero h1 { font-size: 32px; }
  .card { padding: 20px; }
}
