:root {
  --navy: #0b1c36;
  --blue: #0047df;
  --blue-dark: #0035ac;
  --muted: #536176;
  --line: #d9e0e9;
  --paper: #ffffff;
  --ground: #f4f6f9;
  --tint: #edf3ff;
  --error: #a22029;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 40px;
  --space-6: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
h1, h2, h3, h4, nav, .brand, .footer-brand, a, address, p, dd, td, th, label, button {
  overflow-wrap: anywhere;
}
h1 { font-size: clamp(2.5rem, 5.8vw, 5.5rem); line-height: 1.02; letter-spacing: -.055em; font-weight: 750; }
h2 { font-size: clamp(1.65rem, 3vw, 2.65rem); line-height: 1.15; letter-spacing: -.04em; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.02em; }
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { color: var(--blue-dark); }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
button { white-space: normal; }
a, button, input, select, textarea, [tabindex] { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #b04b00; outline-offset: 4px; }
[hidden] { display: none !important; }
svg { display: block; max-width: 100%; }
main, section, article, aside, form, fieldset,
.hero > *, .site-header > *, .main-nav > *, .studio-grid > *,
.field-grid > *, .input-action > *, .invoice-top > *, .invoice-parties > *,
.invoice-dates > *, .invoice-totals > *, .section-heading > *,
.guide-grid > *, .supporting-section > *, .footer-grid > *,
.cookie-banner > *, .cookie-actions > *, .article-grid > *,
.contact-grid > *, .hero-actions > *, .export-actions > *,
.dialog-actions > *, .checkbox-label > * { min-width: 0; }
.container { width: calc(100% - 80px); max-width: 1320px; margin-inline: auto; }
.section { margin-top: 64px; }
.small { font-size: .82rem; line-height: 1.65; }
.muted, .field-help { color: var(--muted); }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .14em; line-height: 1.6; color: var(--blue); }
.lead { font-size: 1.17rem; line-height: 1.7; color: var(--muted); max-width: 680px; }
.text-link { font-weight: 700; text-decoration: underline; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  padding: 12px 24px;
  min-height: 48px;
  background: var(--blue);
  color: #fff;
  font-size: .9rem;
  line-height: 1.4;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background-color .15s, border-color .15s;
}
.button:hover { background: var(--blue-dark); color: #fff; border-color: var(--blue-dark); }
.button-secondary { background: #fff; color: var(--navy); border-color: #aab6c7; }
.button-secondary:hover { background: var(--tint); color: var(--navy); border-color: var(--blue); }
.button-small { min-height: 40px; padding: 8px 16px; font-size: .8rem; }
.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 100;
  padding: 16px;
  background: var(--navy);
  color: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); color: #fff; }
.site-header {
  height: 64px;
  padding-inline: 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  background: #fff;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-size: 1rem; font-weight: 800; text-decoration: none; line-height: 1.05; justify-self: start; }
.brand svg { flex: 0 0 28px; }
.main-nav { display: flex; gap: 24px; align-items: center; font-size: .87rem; font-weight: 700; }
.main-nav a { color: var(--muted); text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--blue); text-decoration: underline; }
.header-cta { justify-self: end; }
.menu-button { display: none; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 4px; padding: 8px; font-size: .75rem; font-weight: 700; min-height: 36px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 64px; padding-top: 64px; }
.hero > div:first-child { display: grid; gap: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 16px; }
.data-card { background: #fff; color: var(--navy); border: 1px solid var(--line); border-radius: 4px; }
.card-header { padding: 24px; border-bottom: 1px solid var(--line); display: grid; gap: 12px; background: #f8faff; color: var(--navy); }
.stat { font-size: 1.45rem; letter-spacing: -.04em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.card-body { padding: 24px; display: grid; gap: 24px; }
.check-list, .ordered-list { padding-left: 24px; display: grid; gap: 16px; }
.check-list { list-style-type: "✓  "; }
.check-list li::marker { color: var(--blue); }
.section-heading { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 40px; }
.section-heading > div { display: grid; gap: 16px; }
.section-heading > p { max-width: 340px; color: var(--muted); }
.studio-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 24px; align-items: start; }
.preview-column { display: grid; gap: 24px; }
.invoice-form { gap: 40px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 24px; }
legend { font-size: 1rem; font-weight: 700; margin-bottom: 24px; padding: 0; }
.field { display: grid; gap: 8px; align-content: start; }
label { font-size: .85rem; font-weight: 700; }
input:not([type="checkbox"]), select, textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #9facbe;
  border-radius: 4px;
  padding: 12px 16px;
  min-height: 48px;
  background: #fff;
  color: var(--navy);
  font-size: .9rem;
  line-height: 1.5;
}
input::placeholder, textarea::placeholder { color: #657186; opacity: 1; }
textarea { resize: vertical; }
input[type="date"] { appearance: none; }
input[type="checkbox"] { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 20px; accent-color: var(--blue); }
.field-help { font-size: .78rem; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.input-action { display: flex; gap: 8px; }
.input-action input { flex: 1; }
.input-action button { padding-inline: 16px; }
.line-items { display: grid; gap: 24px; }
.item-editor { display: grid; gap: 24px; padding: 24px; background: var(--ground); color: var(--navy); border: 1px solid var(--line); border-radius: 4px; }
.remove-button { justify-self: start; padding: 8px 16px; min-height: 40px; border: 1px solid #b68488; border-radius: 4px; background: #fff; color: var(--error); font-size: .8rem; font-weight: 700; }
.remove-button:hover { background: #fff0f0; color: #821520; }
.notice { padding: 16px; border-left: 3px solid var(--blue); background: var(--tint); color: var(--navy); }
.invoice-paper { padding: 40px; background: #fff; color: var(--navy); font-size: .82rem; display: grid; gap: 40px; }
.invoice-top { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.invoice-top > div { display: grid; gap: 16px; }
.invoice-top h2 { font-size: 1.45rem; letter-spacing: -.035em; }
.invoice-currency { font-weight: 700; color: var(--muted); }
.invoice-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.invoice-parties > div, .invoice-notes { display: grid; gap: 16px; align-content: start; }
.invoice-paper h3 { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.invoice-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.invoice-dates > div { display: grid; gap: 12px; }
.invoice-dates dt { color: var(--muted); }
dd { margin: 0; font-variant-numeric: tabular-nums; }
.invoice-dates dd { font-weight: 700; }
.table-scroll { width: 100%; max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
.invoice-table { table-layout: fixed; font-size: .75rem; }
.invoice-table th, .invoice-table td { padding: 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
.invoice-table th { background: var(--ground); color: var(--navy); font-size: .7rem; }
.invoice-table th:first-child { width: 34%; }
.invoice-table th:nth-child(2) { width: 14%; }
.invoice-table th:nth-child(3), .invoice-table th:nth-child(4) { width: 26%; }
.invoice-table th:not(:first-child), .invoice-table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.invoice-totals { display: grid; gap: 24px; width: 100%; }
.invoice-totals > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.invoice-totals dd { text-align: right; font-weight: 700; }
.grand-total { border-top: 2px solid var(--navy); padding: 24px 16px; background: var(--tint); color: var(--navy); font-size: 1.2rem; font-weight: 700; }
.invoice-notes { border-top: 1px solid var(--line); padding-top: 24px; }
.export-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.status { color: var(--muted); font-size: .85rem; }
.status:empty { display: none; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.guide-card { display: flex; flex-direction: column; color: var(--navy); text-decoration: none; transition: border-color .15s; }
.guide-card:hover { border-color: var(--blue); color: var(--navy); }
.guide-card .card-body { flex: 1; grid-template-rows: auto 1fr auto; }
.guide-card .text-link { font-size: .85rem; color: var(--blue); }
.guide-card p { color: var(--muted); font-size: .92rem; }
.supporting-section { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; padding-top: 64px; border-top: 1px solid var(--line); }
.supporting-section > div { display: grid; align-content: start; gap: 24px; }
.supporting-section > div:last-child p { color: var(--muted); }
.site-footer { margin-top: 64px; padding: 64px 0; background: var(--navy); color: #e4eaf4; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .7fr .8fr 1.2fr; gap: 40px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: start; gap: 16px; }
.site-footer a, .footer-button { color: #e4eaf4; font-size: .82rem; }
.site-footer a:hover, .footer-button:hover { color: #fff; }
.site-footer h2 { font-size: .9rem; letter-spacing: 0; color: #fff; }
.site-footer .footer-brand { font-size: 1.05rem; font-weight: 800; text-decoration: none; }
.footer-button { padding: 0; border: 0; background: transparent; color: #e4eaf4; text-align: left; text-decoration: underline; text-underline-offset: 4px; }
.cookie-banner { position: fixed; z-index: 40; bottom: 16px; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; background: #fff; color: var(--navy); border: 1px solid #9facbe; box-shadow: 0 8px 40px #0b1c3620; max-height: 60vh; overflow-y: auto; }
.cookie-banner h2 { font-size: 1.1rem; letter-spacing: -.02em; margin-bottom: 8px; }
.cookie-banner p { font-size: .8rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 1 540px; }
.cookie-actions .button { font-size: .78rem; padding: 12px 16px; }
.cookie-dialog { width: min(560px, calc(100% - 32px)); max-height: 85vh; padding: 24px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--navy); }
.cookie-dialog::backdrop { background: #0b1c3699; color: #fff; }
.cookie-dialog form { display: grid; gap: 24px; }
.cookie-dialog h2 { font-size: 1.7rem; }
.cookie-dialog p { font-size: .9rem; color: var(--muted); }
.checkbox-label { display: flex; align-items: start; gap: 16px; font-weight: 400; font-size: .86rem; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.global-status { position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 60; padding: 16px; border: 1px solid var(--line); background: var(--navy); color: #fff; font-size: .85rem; }
.global-status:empty { display: none; }
.article-layout, .legal-layout, .contact-layout { padding-top: 64px; }
.article-heading { display: grid; gap: 24px; margin-bottom: 64px; max-width: 1000px; }
.article-heading > .text-link { justify-self: start; font-size: .85rem; }
.article-heading h1 { font-size: clamp(2.5rem, 5.3vw, 4.9rem); }
.article-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.prose { max-width: 800px; }
.prose section + section { margin-top: 64px; }
.prose section { display: grid; gap: 24px; }
.prose h2 { font-size: 1.7rem; }
.prose p { color: #35445a; }
.article-aside { display: grid; gap: 24px; }
.article-aside .button { width: 100%; }
.next-guide { font-weight: 700; padding: 16px 0; font-size: .9rem; }
.legal-layout { max-width: 960px; }
.legal-layout .prose { max-width: none; }
.policy-table { font-size: .85rem; }
.policy-table caption { text-align: left; padding: 0 0 24px; color: var(--muted); }
.policy-table th, .policy-table td { padding: 16px; border: 1px solid var(--line); vertical-align: top; }
.policy-table thead th { background: var(--navy); color: #fff; }
.policy-table tbody th { background: #fff; color: var(--navy); }
.policy-table td { background: #fff; color: #35445a; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.contact-aside { display: grid; gap: 64px; }
.contact-aside .card-body > div { display: grid; gap: 16px; }
.contact-aside a { font-size: .9rem; }
address { font-style: normal; }
.registered-office-map { width: 100%; height: auto; border: 1px solid var(--line); }
.is-invalid { border-color: var(--error) !important; background: #fff8f8 !important; color: var(--navy) !important; }
.field-error { font-size: .8rem; color: var(--error); }
.contact-result { display: grid; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
@media (max-width: 1100px) {
  .container { width: calc(100% - 48px); }
  .site-header { padding-inline: 24px; }
  .hero { gap: 40px; }
  .invoice-paper { padding: 24px; }
  .studio-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .editor-panel .field-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { gap: 40px; }
  .cookie-banner { align-items: start; }
}
@media (max-width: 900px) {
  .studio-grid { grid-template-columns: 1fr; }
  .editor-panel .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: 1fr; gap: 64px; }
  .article-aside { max-width: none; }
  .cookie-banner { flex-direction: column; }
  .cookie-actions { flex-basis: auto; }
}
@media (max-width: 767px) {
  .container { width: calc(100% - 32px); }
  .site-header { height: 52px; padding-inline: 16px; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
  .brand { font-size: .82rem; }
  .brand svg { width: 24px; height: 24px; flex-basis: 24px; }
  .header-cta { padding: 8px; font-size: .7rem; min-height: 36px; }
  .menu-button { display: block; }
  .main-nav { display: none; position: fixed; z-index: 30; inset: 52px 0 0; padding: 40px 24px; background: #fff; color: var(--navy); align-items: stretch; justify-content: start; flex-direction: column; overflow-y: auto; font-size: 1.4rem; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 16px; border-bottom: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; gap: 64px; }
  .hero h1 { font-size: clamp(2.8rem, 10vw, 4.6rem); }
  .hero-summary { max-width: none; }
  .section-heading { flex-direction: column; align-items: start; gap: 24px; }
  .section-heading > p { max-width: none; }
  .supporting-section { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 64px; }
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; gap: 16px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .button { flex: 1 1 120px; }
  .article-heading h1 { font-size: clamp(2.4rem, 8vw, 4rem); }
}
@media (max-width: 540px) {
  .guide-grid, .field-grid, .editor-panel .field-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .card-body, .card-header { padding: 24px; }
  .invoice-paper { padding: 16px; }
  .invoice-parties { grid-template-columns: 1fr; }
  .invoice-table { font-size: .7rem; }
  .invoice-table th { font-size: .65rem; }
  .invoice-top { flex-direction: column; }
  .hero-actions, .export-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .text-link { text-align: center; }
  .input-action { flex-direction: column; gap: 16px; }
  .item-editor { padding: 16px; }
  .policy-table { min-width: 600px; }
  .policy-table th, .policy-table td { min-width: 120px; }
  .lead { font-size: 1.05rem; }
}
@media (max-width: 399px) {
  .brand { font-size: .7rem; gap: 4px; }
  .brand svg { width: 20px; height: 20px; flex-basis: 20px; }
  .header-cta { max-width: 70px; font-size: .65rem; padding: 4px 8px; }
  .menu-button { font-size: .68rem; padding: 8px; }
  .card-body, .card-header { padding: 16px; }
  .hero h1 { font-size: 2.65rem; }
  .invoice-dates { grid-template-columns: 1fr; }
  .invoice-table { min-width: 420px; }
  .invoice-table th:first-child { width: 34%; }
  .grand-total { font-size: 1rem; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .button { flex-basis: auto; width: 100%; }
  .dialog-actions { flex-direction: column; }
  .article-heading h1 { font-size: 2.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@page { size: A4 portrait; margin: 16mm; }
@media print {
  body { background: #fff; color: #000; font-size: 10pt; }
  .site-header, .site-footer, .skip-link, .cookie-banner, .cookie-dialog, .global-status { display: none !important; }
  body.printing-invoice main > :not(#studio),
  body.printing-invoice #studio > :not(.studio-grid),
  body.printing-invoice .editor-panel,
  body.printing-invoice .preview-panel > .card-header,
  body.printing-invoice .preview-column > :not(.preview-panel) { display: none !important; }
  body.printing-invoice .container { width: 100%; max-width: none; margin: 0; padding: 0; }
  body.printing-invoice .studio-grid, body.printing-invoice .preview-column { display: block; }
  body.printing-invoice .preview-panel { border: 0; border-radius: 0; }
  body.printing-invoice .invoice-paper { padding: 0; gap: 8mm; font-size: 10pt; }
  body.printing-invoice .invoice-top { flex-direction: row; }
  body.printing-invoice .invoice-parties, body.printing-invoice .invoice-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.printing-invoice .table-scroll { overflow: visible; }
  body.printing-invoice .invoice-table { width: 100%; min-width: 0; font-size: 9pt; }
  body.printing-invoice .invoice-table th { font-size: 9pt; }
  body.printing-invoice .invoice-table th, body.printing-invoice .invoice-table td { padding: 4mm; }
  body.printing-invoice .invoice-table thead { display: table-header-group; }
  body.printing-invoice .invoice-table tr,
  body.printing-invoice .invoice-totals,
  body.printing-invoice .invoice-parties,
  body.printing-invoice .invoice-dates { break-inside: avoid; }
  body.printing-invoice .invoice-notes h3 { break-after: avoid; }
  .article-layout, .legal-layout, .contact-layout { padding-top: 0; }
  .article-grid { display: block; }
  .article-aside { display: none; }
  .prose { max-width: none; }
  a { color: #000; }
}