:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --surface: #ffffff;
  --surface-2: #eef3ee;
  --ink: #17211b;
  --muted: #5d695f;
  --line: #cdd8d0;
  --accent: #176f5b;
  --accent-dark: #0f5e4c;
  --blue: #315f9f;
  --shadow: 0 18px 50px rgba(31, 50, 37, 0.13);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(238, 243, 238, 0.6), rgba(247, 248, 245, 0) 340px),
    var(--bg);
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 42px;
  border-bottom: 1px solid rgba(205, 216, 208, 0.86);
  background: rgba(247, 248, 245, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 780;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  background: var(--accent);
  border-radius: 8px;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.header-action {
  min-height: 40px;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 760;
}

.hero,
.content-section,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(640px, 1.28fr);
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 46px 0 54px;
}

.hero-copy {
  min-width: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 800;
}

.hero-copy p,
.section-copy,
.article-body p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.hero-copy p {
  max-width: 560px;
  margin-top: 22px;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.pill-link,
.primary,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 780;
}

.pill-link,
.ghost {
  padding: 0 13px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
}

.pill-link.active,
.pill-link:hover,
.primary {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.tool-shell {
  align-self: center;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 300px;
  min-height: 430px;
}

.tool-menu {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: #f4f7f3;
}

.tool-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  gap: 8px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.tool-menu a:last-child {
  border-right: 0;
}

.tool-menu .active {
  color: var(--accent);
  background: var(--surface);
}

.tool-panel {
  padding: 28px;
  border-right: 1px solid var(--line);
}

.tool-panel form {
  display: none;
}

.tool-panel form:first-child {
  display: block;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 680;
  outline: none;
}

.checkline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 20px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
}

.checkline input {
  width: 16px;
  min-height: 16px;
}

.primary {
  width: 100%;
  border: 0;
}

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

.result-panel {
  min-width: 0;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(23, 111, 91, 0.08), rgba(255, 255, 255, 0) 220px),
    #fbfcfa;
}

.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 840;
  text-transform: uppercase;
}

.result-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-number {
  margin-top: 22px;
  color: var(--accent);
  font-size: 72px;
  line-height: 0.95;
  font-weight: 820;
  word-break: break-word;
}

.result-panel p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.timeline {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
}

.bar {
  position: relative;
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #dce6de;
}

.bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 50%);
  background: var(--accent);
  border-radius: inherit;
}

.holiday-list {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.holiday-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.holiday-item time {
  color: var(--muted);
  font-size: 13px;
}

.content-section {
  padding: 52px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(260px, 1fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  font-weight: 800;
}

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

.card {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card strong {
  display: block;
  font-size: 17px;
}

.card p,
.card a {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.card a {
  color: var(--accent);
  font-weight: 780;
}

.article-body {
  display: grid;
  grid-template-columns: minmax(0, 720px) 320px;
  gap: 52px;
  align-items: start;
}

.article-body h2,
.article-body h3 {
  margin-top: 34px;
}

.article-body p,
.article-body ul {
  margin-top: 14px;
}

.article-body li {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.faq-item summary {
  cursor: pointer;
  padding: 15px 16px;
  color: var(--ink);
  font-weight: 800;
}

.faq-item p {
  margin: 0;
  padding: 0 16px 16px;
}

.data-table-wrap {
  width: 100%;
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.data-table th {
  color: var(--ink);
  font-weight: 800;
}

.data-table td {
  color: var(--muted);
  font-weight: 700;
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table.compact {
  min-width: 840px;
  font-size: 13px;
}

.data-table a {
  color: var(--accent);
}

.sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 30px 0 46px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 650;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: min(560px, calc(100% - 36px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.cookie-banner p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.cookie-banner div {
  display: flex;
  gap: 8px;
}

.cookie-banner button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-size: 13px;
  font-weight: 800;
}

.cookie-banner [data-cookie-accept] {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
}

@media (max-width: 1040px) {
  .hero,
  .tool-grid,
  .article-body {
    grid-template-columns: 1fr;
  }

  .tool-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    padding: 16px 20px;
  }

  .top-nav,
  .header-action {
    display: none;
  }

  .hero,
  .content-section,
  .site-footer {
    width: auto;
    max-width: 358px;
    margin-left: 16px;
    margin-right: auto;
  }

  .hero {
    min-height: auto;
    padding-top: 32px;
  }

  h1 {
    max-width: 100%;
    font-size: 34px;
    line-height: 1.06;
  }

  .tool-menu,
  .field-row,
  .section-heading,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .tool-menu a {
    justify-content: flex-start;
    padding: 0 24px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tool-menu a:last-child {
    border-bottom: 0;
  }

  .tool-panel,
  .result-panel {
    padding: 26px;
  }

  .cookie-banner {
    grid-template-columns: 1fr;
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
  }
}
