:root {
  --bg: #f5f7f9;
  --panel: #ffffff;
  --text: #002b4f;
  --muted: #46647d;
  --line: #b7cfe5;
  --blue: #0b4f86;
  --blue-dark: #103856;
  --blue-soft: #e8f3fb;
  --yellow: #ffd200;
  --yellow-dark: #e4b900;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(16, 56, 86, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  width: min(1230px, calc(100% - 36px));
  margin: 0 auto;
  padding: 46px 0 70px;
}

/* HEADER */
header {
  background: linear-gradient(135deg, #0b3760 0%, #0f4c81 100%);
  color: white;
  margin: 0 0 56px;
  padding: 60px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: center;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

header::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  min-width: 0;
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--yellow);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-decoration: none;
  margin-bottom: 26px;
}

h1 {
  margin: 0 0 24px;
  color: white;
  font-size: clamp(3.4rem, 5.2vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 900;
  max-width: 760px;
}

.lead {
  max-width: 690px;
  color: rgba(255,255,255,0.82);
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-note {
  position: relative;
  z-index: 1;
  max-width: 350px;
  padding: 24px 26px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  font-size: 1rem;
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
}

/* LAYOUT */
.layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
  align-items: start;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #edf2f6;
}

.form-card {
  padding: 24px;
}

.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

h2 {
  margin: 0;
  color: var(--blue);
  font-size: 1.35rem;
  font-weight: 800;
}

.reset {
  border: 0;
  background: var(--yellow);
  color: #000;
  border-radius: 8px;
  padding: 13px 22px;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.reset.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.reset:hover {
  background: var(--yellow-dark);
}

.field {
  margin-bottom: 22px;
}

label {
  display: block;
  color: #001f3b;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
}

.hint {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
  margin-top: 7px;
}

.input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: white;
  border: 1px solid #1d6aad;
  border-radius: 7px;
  min-height: 46px;
  padding: 0 12px;
  box-shadow: 0 3px 8px rgba(13, 86, 145, 0.08);
}

.input-wrap:focus-within {
  outline: 2px solid rgba(29, 106, 173, 0.22);
}

input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 13px 6px;
  font-size: 1rem;
  background: transparent;
  color: #000;
}

.euro {
  color: #000;
  font-size: 1.1rem;
}

.toggle-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.toggle-row button {
  border: 1px solid #cbd6e0;
  background: white;
  color: #000;
  border-radius: 7px;
  padding: 11px 14px;
  font-weight: 700;
  cursor: pointer;
}

.toggle-row button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

/* RESULT */
.result-card {
  position: sticky;
  top: 20px;
  overflow: hidden;
}

.result-top {
  padding: 26px 32px;
  background: white;
  color: var(--blue);
  border-bottom: 1px solid var(--line);
}

.model {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--blue);
  font-weight: 800;
  font-size: 0.95rem;
}

.tax {
  margin-top: 22px;
}

.tax small {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tax-value {
  color: #0b4f86;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.9),
    0 4px 10px rgba(11, 79, 134, 0.14);
}

.average {
  margin-top: 12px;
  color: var(--blue);
  font-weight: 600;
}

.breakdown {
  padding: 0;
}

.row {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 18px;
  padding: 17px 24px;
  border-bottom: 1px solid #d6d6d6;
  color: #000;
  align-items: center;
}

.row strong {
  color: #1a73e8;
  text-align: right;
  font-weight: 800;
}

.row.total {
  background: var(--blue-soft);
  border-color: #1d6aad;
  font-size: 1.05rem;
}

.notice {
  background-color: #fffbea;
  padding-top: 20px;
}

.explain {
  margin: 24px;
  padding: 18px;
  background: #f8fafc;
  border: 1px solid #d7e3ef;
  border-radius: var(--radius);
  color: #002b4f;
  line-height: 1.5;
  font-size: 0.92rem;
}

.bands {
  margin-top: 14px;
  display: grid;
  border: 1px solid #1d6aad;
  border-radius: 8px;
  overflow: hidden;
}

.band {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 12px;
  padding: 12px 14px;
  background: white;
  border-bottom: 1px solid #d6d6d6;
  font-size: 0.9rem;
}

.band:last-child {
  border-bottom: 0;
}

.band strong {
  color: #1a73e8;
  text-align: right;
}

.footer-note {
  margin: 0;
  padding: 20px 24px 24px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 1050px) {
  header {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-note {
    max-width: 620px;
  }
}

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

  header {
    padding: 40px 28px;
  }

  h1 {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }

  .result-card {
    position: static;
  }

  .row {
    grid-template-columns: 1fr;
  }

  .row strong {
    text-align: left;
  }
  .tax-value {
    display: inline-flex;
    align-items: center;

    padding: 14px 18px;

    background: #dff1ff;

    border: 1px solid #bfdcff;

    border-radius: 18px;

    box-shadow:
      0 10px 24px rgba(11, 79, 134, 0.10);

    min-height: 88px;
  }
}

.site-footer {
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  text-align: left;
  
    margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid #d7e3ef;
}

.site-footer a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}