@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/inter-500.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/ibm-plex-sans-600.woff2") format("woff2");
}

:root {
  /* colour */
  --ink: #0C2417;
  --primary: #0E5E2B;
  --primary-hover: #0A4522;
  --primary-soft: #E2EDE5;
  --accent: #C9A227;
  --paper: #EEF1EC;
  --surface: #FFFFFF;
  --text: #1E2E23;
  --muted: #58665D;
  --border: #D7DED8;
  --danger: #8A2B14;

  /* type */
  --font-head: "IBM Plex Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --fs-100: 0.8125rem;
  --fs-200: 0.9375rem;
  --fs-300: 1.0625rem;
  --fs-400: 1.1875rem;
  --fs-500: 1.375rem;
  --fs-600: 1.6875rem;
  --fs-700: 2.125rem;
  --fs-800: clamp(2.125rem, 1.25rem + 3.6vw, 3.25rem);
  --lh-body: 1.65;
  --lh-head: 1.18;
  --measure: 66ch;

  /* space */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* shape */
  --radius: 4px;
  --radius-lg: 8px;
  --border-w: 1px;
  --nav-h: 4.25rem;
  --wrap: 76rem;
  --gutter: var(--s-5);
  --focus-w: 2px;
  --pattern-opacity: 0.06;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-300);
  font-weight: 400;
  line-height: var(--lh-body);
  text-wrap: pretty;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: var(--lh-head);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--fs-800); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-700); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-500); font-weight: 500; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-400); font-weight: 500; }

p { margin: 0 0 var(--s-4); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--primary-hover); }

img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: var(--focus-w) solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- placeholders ---------- */

.ph { color: var(--muted); }

body.show-placeholders .ph {
  outline: 1px dashed var(--accent);
  outline-offset: 2px;
  background: rgba(201, 162, 39, 0.07);
}

/* ---------- layout helpers ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--s-8);
  scroll-margin-top: calc(var(--nav-h) + var(--s-4));
}

.section--surface { background: var(--surface); border-block: var(--border-w) solid var(--border); }

.section__head { margin-bottom: var(--s-6); }
.section__head p { color: var(--muted); margin-top: var(--s-3); }

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: var(--s-2);
  z-index: 60;
  transform: translateY(-160%);
  background: var(--surface);
  color: var(--ink);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  padding: var(--s-2) var(--s-4);
  font-size: var(--fs-200);
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- pattern band ---------- */

.pattern {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../assets/pattern-parcels.svg");
  background-size: 320px 320px;
  background-repeat: repeat;
  opacity: var(--pattern-opacity);
  pointer-events: none;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 2.875rem;
  padding: var(--s-3) var(--s-5);
  border: var(--border-w) solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: var(--fs-300);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover { background: var(--primary-hover); color: #fff; }

.btn--secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}
.btn--secondary:hover { border-color: var(--primary); color: var(--primary-hover); }

.btn--block { width: 100%; }

/* a placeholder styled as a button, but not interactive */
.btn--pending { background: var(--surface); border-color: var(--border); color: var(--muted); cursor: default; }

/* ---------- header / nav ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: var(--border-w) solid var(--border);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: var(--nav-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-right: auto;
  text-decoration: none;
}
.brand img { height: 38px; width: auto; flex: none; }
.brand__name {
  font-family: var(--font-head);
  font-size: var(--fs-400);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover .brand__name { color: var(--primary-hover); }

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-head);
  font-size: var(--fs-200);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header__phone:hover { color: var(--primary-hover); }
.header__phone svg { color: var(--muted); flex: none; }
.header__phone:hover svg { color: var(--accent); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { color: currentColor; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

.nav {
  display: none;
  border-top: var(--border-w) solid var(--border);
  padding-block: var(--s-4) var(--s-5);
}
.nav[data-open="true"] { display: block; }

.nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  margin-bottom: var(--s-4);
}

.nav__link {
  display: block;
  padding: var(--s-3) var(--s-2);
  font-family: var(--font-head);
  font-size: var(--fs-300);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius);
}
.nav__link:hover { color: var(--primary-hover); background: var(--primary-soft); }
.nav__link[aria-current="true"] { color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }

/* ---------- hero ---------- */

.hero {
  padding-block: var(--s-8);
  border-bottom: var(--border-w) solid var(--border);
}

.hero__inner { display: grid; justify-items: start; }

.hero__emblem { width: min(190px, 52%); height: auto; margin-bottom: var(--s-6); }

.hero h1 { max-width: 22ch; }

.hero__region {
  margin-top: var(--s-4);
  font-family: var(--font-head);
  font-size: var(--fs-400);
  color: var(--muted);
  max-width: 40ch;
}
.hero__region strong { color: var(--ink); font-weight: 500; }

.hero__rule {
  width: 3.5rem;
  height: 2px;
  background: var(--accent);
  margin-block: var(--s-6);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- services accordion ---------- */

.svc-group { margin-bottom: var(--s-7); }
.svc-group:last-child { margin-bottom: 0; }

.svc-group__title {
  font-size: var(--fs-200);
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.02em;
  padding-bottom: var(--s-3);
  margin-bottom: 0;
  border-bottom: 2px solid var(--accent);
}

.svc { border-top: 0; }

.svc__item { border-bottom: var(--border-w) solid var(--border); }
.svc__item h3 { margin: 0; }

.svc__toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-4);
  width: 100%;
  padding: var(--s-5) 0;
  background: transparent;
  border: 0;
  font-family: var(--font-head);
  font-size: var(--fs-400);
  font-weight: 500;
  color: var(--ink);
  line-height: var(--lh-head);
  text-align: left;
  cursor: pointer;
}
.svc__toggle:hover { color: var(--primary-hover); }

.svc__sign { flex: none; color: var(--muted); margin-top: 5px; transition: transform 0.2s ease; }
.svc__item[data-open="true"] .svc__sign { color: var(--accent); transform: rotate(45deg); }

.svc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.24s ease;
}
.svc__item[data-open="true"] .svc__panel { grid-template-rows: 1fr; }

/* collapsed content must leave the tab order, not just be clipped */
.svc__panel > div {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s 0.24s;
}
.svc__item[data-open="true"] .svc__panel > div {
  visibility: visible;
  transition-delay: 0s;
}

.svc__body { padding-bottom: var(--s-5); }
.svc__body p { color: var(--muted); }

.svc__cases {
  display: grid;
  gap: var(--s-2);
  margin-top: var(--s-4);
  max-width: var(--measure);
}
.svc__cases li {
  position: relative;
  padding-left: var(--s-5);
  font-size: var(--fs-200);
  color: var(--text);
}
.svc__cases li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.svc__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-5);
  font-family: var(--font-head);
  font-size: var(--fs-200);
  font-weight: 500;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  gap: var(--s-5);
}

.step {
  padding-top: var(--s-4);
  border-top: 2px solid var(--border);
}
.step:first-child { border-top-color: var(--accent); }

.step__n {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-200);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--s-3);
}
.step h3 { margin-bottom: var(--s-2); }
.step p { font-size: var(--fs-200); color: var(--muted); }

/* ---------- contacts ---------- */

.contact-list { display: grid; gap: var(--s-5); }

.contact {
  display: flex;
  gap: var(--s-4);
  align-items: flex-start;
}
.contact svg { flex: none; color: var(--muted); margin-top: 4px; }
.contact:hover svg { color: var(--accent); }

.contact__label {
  display: block;
  font-family: var(--font-head);
  font-size: var(--fs-100);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: var(--s-1);
}
.contact__value { margin: 0; max-width: none; }
.contact__value a,
.contact__big {
  font-family: var(--font-head);
  font-size: var(--fs-500);
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact__value a:hover { color: var(--primary-hover); }

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  padding-block: var(--s-8) var(--s-6);
  font-size: var(--fs-200);
}

.footer__grid { display: grid; gap: var(--s-7); }
.footer__emblem { width: min(150px, 44%); height: auto; }

.footer h4 {
  color: #fff;
  font-size: var(--fs-100);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: var(--s-3);
}
.footer a { color: #fff; }
.footer a:hover { color: var(--accent); }
.footer ul { display: grid; gap: var(--s-2); }

.footer__licence { color: rgba(255, 255, 255, 0.72); max-width: 34ch; margin-top: var(--s-4); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-5);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--fs-100);
  color: rgba(255, 255, 255, 0.66);
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: var(--s-5); }

/* ---------- form ---------- */

.form-layout { display: grid; gap: var(--s-7); }

.form-aside {
  padding: var(--s-5);
  background: var(--primary-soft);
  border-radius: var(--radius-lg);
  border: var(--border-w) solid var(--border);
}
.form-aside h2 { font-size: var(--fs-500); margin-bottom: var(--s-3); }
.form-aside p { font-size: var(--fs-200); color: var(--muted); }
.form-aside .contact__big { display: block; margin-block: var(--s-4) var(--s-2); }

.form {
  display: grid;
  gap: var(--s-5);
  padding: var(--s-5);
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius-lg);
}

.field { display: grid; gap: var(--s-2); }

.field > label,
.field__legend {
  font-family: var(--font-head);
  font-size: var(--fs-200);
  font-weight: 500;
  color: var(--ink);
}
.field__opt { color: var(--muted); font-weight: 400; }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 2.875rem;
  padding: var(--s-3) var(--s-4);
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-300);
  color: var(--text);
}
.textarea { min-height: 9rem; resize: vertical; line-height: var(--lh-body); }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2358665D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-4) center;
  padding-right: var(--s-7);
}

.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }

.field__hint { font-size: var(--fs-100); color: var(--muted); }

.field__error {
  display: none;
  font-size: var(--fs-200);
  color: var(--danger);
}
.field[data-invalid="true"] .field__error { display: block; }
.field[data-invalid="true"] .input,
.field[data-invalid="true"] .select,
.field[data-invalid="true"] .textarea { border-color: var(--danger); }

.field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-2) var(--s-3);
  align-items: start;
}
.field--check input { width: 1.15rem; height: 1.15rem; margin: 3px 0 0; accent-color: var(--primary); }
.field--check label { font-family: var(--font-body); font-size: var(--fs-200); font-weight: 400; color: var(--text); }
.field--check .field__error { grid-column: 2; }

/* spam honeypot — must stay reachable to bots, invisible to people */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__footer { display: grid; gap: var(--s-3); }
.form__note { font-size: var(--fs-100); color: var(--muted); }

.panel-status {
  padding: var(--s-6);
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
}
.panel-status h2 { font-size: var(--fs-600); margin-bottom: var(--s-3); }
.panel-status p { color: var(--muted); }
.panel-status .btn { margin-top: var(--s-5); }
[hidden] { display: none !important; }

/* ---------- legal pages ---------- */

.legal { max-width: 48rem; }

.legal__intro { font-size: var(--fs-400); color: var(--muted); }

.legal > section {
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: var(--border-w) solid var(--border);
}
.legal > section:first-of-type { border-top-color: var(--accent); }

.legal h2 { font-size: var(--fs-500); margin-bottom: var(--s-4); }
.legal h3 { font-size: var(--fs-400); font-weight: 500; margin-top: var(--s-6); margin-bottom: var(--s-3); }
.legal h3:first-of-type { margin-top: var(--s-4); }

.legal strong { font-family: var(--font-head); font-weight: 500; color: var(--ink); }

.legal ul {
  list-style: disc;
  padding-left: var(--s-5);
  max-width: var(--measure);
  margin-bottom: var(--s-4);
}
.legal li { margin-bottom: var(--s-2); }
.legal li::marker { color: var(--accent); }

.legal address { font-style: normal; }
.legal address a { overflow-wrap: anywhere; }

.legal__meta { font-size: var(--fs-200); color: var(--muted); }

.legal__party {
  padding: var(--s-5);
  margin-bottom: var(--s-5);
  background: var(--surface);
  border: var(--border-w) solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
}
.legal__party dl { display: grid; gap: var(--s-3); margin: 0; }
.legal__party dt {
  font-family: var(--font-head);
  font-size: var(--fs-100);
  font-weight: 500;
  color: var(--muted);
}
.legal__party dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- 640px ---------- */

@media (min-width: 40em) {
  :root { --gutter: var(--s-6); }

  .section { padding-block: var(--s-9); }
  .hero { padding-block: var(--s-9); }
  .hero__emblem { width: 210px; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
  .contact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .form { padding: var(--s-7); }
  .legal__party { padding: var(--s-6); }
  .legal__party dl {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: var(--s-3) var(--s-5);
    align-items: baseline;
  }
  .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
  .form__footer { grid-auto-flow: column; align-items: center; justify-content: start; gap: var(--s-5); }
  .btn--block { width: auto; }
}

/* ---------- 1024px ---------- */

@media (min-width: 64em) {
  :root { --nav-h: 4.75rem; }

  .nav-toggle { display: none; }

  .nav {
    display: block;
    border-top: 0;
    padding: 0;
  }
  .header__bar { gap: var(--s-6); }
  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--s-1);
    margin: 0;
  }
  .nav .btn { display: none; }
  .nav__link { padding: var(--s-2) var(--s-3); font-size: var(--fs-200); }
  .nav__link[aria-current="true"] {
    box-shadow: none;
    background: transparent;
    position: relative;
  }
  .nav__link[aria-current="true"]::after {
    content: "";
    position: absolute;
    left: var(--s-3);
    right: var(--s-3);
    bottom: -2px;
    height: 2px;
    background: var(--accent);
  }
  .header__cta { display: inline-flex; }
  .brand img { height: 42px; }
  .brand__name { font-size: var(--fs-500); }

  .hero__inner { max-width: 60rem; }
  .hero__emblem { width: 240px; }

  .svc { max-width: 58rem; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-layout { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: start; }
  .form-aside { position: sticky; top: calc(var(--nav-h) + var(--s-5)); }
}

@media (max-width: 63.99em) {
  .header__cta { display: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
