:root {
  --accent: #2f766d;
  --accent-dark: #1f5b54;
  --accent-soft: #e5f2ef;
  --page: #f5f8f6;
  --surface: #ffffff;
  --ink: #19322f;
  --muted: #667773;
  --line: #dce7e3;
  --warning: #8a633a;
  --shadow: 0 22px 65px rgba(38, 75, 68, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}
button, input, select { font: inherit; }
a { color: inherit; }

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 17px clamp(20px, 5vw, 72px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  align-items: center;
  display: inline-flex;
  font-size: 18px;
  font-weight: 850;
  gap: 10px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 10px 10px 10px 3px;
  color: white;
  display: inline-flex;
  height: 33px;
  justify-content: center;
  width: 33px;
}
nav { display: flex; gap: 27px; }
nav a { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--accent-dark); }
.header-actions { align-items: center; display: flex; gap: 28px; }
.language-switch { align-items: center; background: var(--accent-soft); border-radius: 999px; display: flex; font-size: 11px; font-weight: 850; gap: 3px; padding: 3px; }
.language-switch a, .language-switch span { border-radius: 999px; padding: 6px 9px; text-decoration: none; }
.language-switch span[aria-current="page"] { background: var(--surface); box-shadow: 0 1px 5px rgba(25, 50, 47, .12); color: var(--accent-dark); }
.language-switch a { color: var(--muted); }
.language-switch a:hover, .language-switch a:focus-visible { color: var(--accent-dark); }

.hero {
  display: grid;
  gap: clamp(34px, 6vw, 78px);
  grid-template-columns: minmax(260px, .8fr) minmax(520px, 1.2fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 72px 30px 80px;
}
.hero-copy { align-self: start; padding-top: 68px; position: sticky; top: 95px; }
.eyebrow { color: var(--accent-dark); font-size: 12px; font-weight: 850; letter-spacing: .12em; margin: 0 0 18px; text-transform: uppercase; }
h1, .content-section > h2, .accuracy-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.045em;
}
h1 { font-size: clamp(45px, 5.3vw, 72px); line-height: .98; margin: 0 0 24px; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.65; margin: 0; max-width: 490px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 14px 18px; list-style: none; margin: 30px 0 0; padding: 0; }
.trust-list li { color: var(--muted); font-size: 12px; font-weight: 700; }
.trust-list li::before { color: var(--accent); content: "✓"; font-weight: 900; margin-right: 6px; }

.calculator-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.calculator-header { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 24px 26px; }
.step-label { color: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .1em; margin: 0 0 5px; text-transform: uppercase; }
h2, h3 { margin-top: 0; }
.calculator-header h2 { font-size: 18px; letter-spacing: -.02em; margin: 0; }
.system-switch { background: var(--accent-soft); border-radius: 999px; display: flex; padding: 3px; }
.system-button { background: transparent; border: 0; border-radius: 999px; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 850; padding: 7px 11px; }
.system-button.is-active { background: var(--surface); box-shadow: 0 1px 5px rgba(25, 50, 47, .14); color: var(--accent-dark); }

#paint-form { padding: 25px 26px 27px; }
.field-grid { display: grid; gap: 16px; }
.dimensions-grid { grid-template-columns: repeat(3, 1fr); }
.details-grid { grid-template-columns: repeat(2, 1fr); }
.field-wide { grid-column: 1 / -1; }
.field > span:first-child { color: var(--muted); display: block; font-size: 11px; font-weight: 800; margin: 0 0 7px 2px; }
.field input, .field select, .number-input { background: var(--page); border: 1px solid var(--line); border-radius: 11px; color: var(--ink); min-height: 46px; outline: 0; width: 100%; }
.field > input, .field select { padding: 11px 12px; }
.field input:focus, .field select:focus, .number-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47, 118, 109, .12); }
.number-input { align-items: center; display: flex; overflow: hidden; }
.number-input input { background: transparent; border: 0; border-radius: 0; min-width: 0; padding: 11px 4px 11px 12px; }
.number-input input:focus { box-shadow: none; }
.number-input b { color: var(--muted); flex: 0 0 auto; font-size: 11px; padding: 0 12px 0 6px; }
.field small { color: var(--muted); display: block; font-size: 10px; line-height: 1.4; margin: 5px 2px 0; }
.section-divider { border-top: 1px solid var(--line); margin: 25px 0; }
.form-section-heading h3 { font-size: 16px; letter-spacing: -.01em; margin: 0 0 16px; }

.accuracy-settings { background: #f9fbfa; border: 1px solid var(--line); border-radius: 12px; margin-top: 17px; }
.accuracy-settings summary { color: var(--accent-dark); cursor: pointer; font-size: 12px; font-weight: 800; padding: 13px 15px; }
.coverage-row { align-items: end; border-top: 1px solid var(--line); display: grid; gap: 18px; grid-template-columns: 180px 1fr; padding: 15px; }
.coverage-row p { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 0 0 5px; }

.result-panel { align-items: center; background: var(--accent-soft); border: 1px solid rgba(47, 118, 109, .16); border-radius: 14px; display: flex; justify-content: space-between; padding: 20px; }
.result-label { color: var(--accent-dark); font-size: 11px; font-weight: 850; letter-spacing: .05em; margin: 0 0 6px; text-transform: uppercase; }
.result-main { margin: 0; }
.result-main strong { color: var(--accent-dark); font-family: Georgia, "Times New Roman", serif; font-size: 36px; letter-spacing: -.04em; }
.result-main span { color: var(--muted); font-size: 12px; margin-left: 6px; }
.result-summary { display: grid; gap: 7px; }
.result-summary span { color: var(--muted); font-size: 11px; }
.result-summary b { color: var(--ink); }
.result-help { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 10px 3px 0; }
.field-error { background: #fff8f3; border: 1px solid #eed6c2; border-radius: 10px; color: #794b27; font-size: 12px; margin-bottom: 16px; padding: 11px 13px; }

.content-section { background: var(--surface); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); padding: 72px max(24px, calc((100vw - 1120px) / 2)); }
.content-section > h2, .accuracy-section h2 { font-size: clamp(34px, 4vw, 49px); margin: 0 0 34px; }
.info-grid { display: grid; gap: 40px; grid-template-columns: repeat(3, 1fr); }
.info-grid article > span { color: var(--accent); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.info-grid h3 { font-size: 17px; margin: 8px 0 8px; }
.info-grid p, .accuracy-section > p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }
.accuracy-section { display: grid; gap: 60px; grid-template-columns: .9fr 1.1fr; margin: 0 auto; max-width: 1120px; padding: 80px 24px; }
.accuracy-section h2 { margin-bottom: 0; }
.accuracy-section > p { align-self: center; font-size: 16px; }
footer { border-top: 1px solid var(--line); color: var(--muted); display: flex; font-size: 11px; gap: 20px; justify-content: space-between; padding: 25px max(24px, calc((100vw - 1120px) / 2)); }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--muted); }

.page-main { margin: 0 auto; max-width: 900px; padding: 70px 24px 90px; }
.page-intro { margin-bottom: 48px; max-width: 760px; }
.page-intro h1 { font-size: clamp(43px, 6vw, 68px); }
.page-intro .lead { max-width: 690px; }
.article-shell { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 55px rgba(38, 75, 68, .08); padding: clamp(24px, 5vw, 54px); }
.article-shell h2 { font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-weight: 500; letter-spacing: -.03em; margin: 44px 0 13px; }
.article-shell h2:first-child { margin-top: 0; }
.article-shell h3 { font-size: 17px; margin: 27px 0 8px; }
.article-shell p, .article-shell li { color: var(--muted); font-size: 15px; line-height: 1.75; }
.article-shell p { margin: 0 0 16px; }
.article-shell ul, .article-shell ol { padding-left: 22px; }
.article-shell li { margin-bottom: 9px; padding-left: 4px; }
.article-shell a { color: var(--accent-dark); font-weight: 700; }
.guide-steps { display: grid; gap: 14px; margin: 22px 0 8px; }
.guide-step { background: var(--page); border: 1px solid var(--line); border-radius: 13px; display: grid; gap: 14px; grid-template-columns: 35px 1fr; padding: 17px; }
.guide-step > span { align-items: center; background: var(--accent-soft); border-radius: 50%; color: var(--accent-dark); display: flex; font-size: 12px; font-weight: 900; height: 34px; justify-content: center; width: 34px; }
.guide-step h3 { margin: 1px 0 4px; }
.guide-step p { font-size: 13px; margin: 0; }
.note-box { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 8px; color: var(--accent-dark); margin: 22px 0; padding: 16px 18px; }
.note-box p { color: var(--accent-dark); font-size: 13px; margin: 0; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.primary-link, .secondary-link { border-radius: 11px; display: inline-flex; font-size: 13px; font-weight: 800; padding: 12px 16px; text-decoration: none; }
.primary-link { background: var(--accent); color: white !important; }
.secondary-link { border: 1px solid var(--line); color: var(--accent-dark) !important; }
.effective-date { color: var(--muted); font-size: 12px; margin-top: -10px; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; max-width: 720px; padding-top: 48px; }
  .hero-copy { padding-top: 0; position: static; }
  .hero-copy h1 { max-width: 650px; }
  .accuracy-section { gap: 25px; grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { position: static; }
  nav { display: none; }
  .header-actions { gap: 0; }
  .hero { padding: 38px 15px 55px; }
  h1 { font-size: 47px; }
  .lead { font-size: 16px; }
  .calculator-header { align-items: flex-start; gap: 14px; padding: 20px 17px; }
  #paint-form { padding: 20px 17px; }
  .dimensions-grid, .details-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .coverage-row { grid-template-columns: 1fr; }
  .result-panel { align-items: flex-start; flex-direction: column; gap: 17px; }
  .result-main strong { font-size: 33px; }
  .info-grid { gap: 27px; grid-template-columns: 1fr; }
  .content-section { padding-bottom: 55px; padding-top: 55px; }
  footer { flex-direction: column; }
  .page-main { padding: 45px 15px 65px; }
  .article-shell { border-radius: 16px; padding: 24px 19px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.consent-banner {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 920px;
  margin: 0 auto;
  padding: 1rem 1.1rem;
  color: #17362f;
  background: #fffdf7;
  border: 1px solid rgba(39, 93, 79, 0.22);
  border-radius: 16px;
  box-shadow: 0 16px 45px rgba(23, 54, 47, 0.18);
}

.consent-banner p { margin: 0; line-height: 1.55; }
.consent-banner a { color: #275d4f; font-weight: 700; }
.consent-actions { display: flex; flex: 0 0 auto; gap: .65rem; }
.consent-actions button,
.consent-settings-button {
  border: 1px solid #275d4f;
  border-radius: 999px;
  padding: .65rem .9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.consent-accept { color: white; background: #275d4f; }
.consent-decline { color: #275d4f; background: transparent; }
.consent-settings-button {
  position: fixed;
  z-index: 900;
  left: .8rem;
  bottom: .8rem;
  padding: .45rem .7rem;
  color: #275d4f;
  background: #fffdf7;
  box-shadow: 0 6px 20px rgba(23, 54, 47, 0.14);
  font-size: .82rem;
}

@media (max-width: 680px) {
  .consent-banner { align-items: stretch; flex-direction: column; }
  .consent-actions { justify-content: flex-end; }
}
