:root {
  --ink: #111315;
  --coal: #202326;
  --steel: #5c6770;
  --line: #dfe5e8;
  --paper: #ffffff;
  --mist: #f3f6f5;
  --sage: #426c5c;
  --blue: #245f73;
  --clay: #b3534f;
  --gold: #c39b53;
  --focus: #0f6ec7;
  --shadow: 0 18px 44px rgba(12, 18, 22, 0.12);
  --radius: 8px;
  --container: min(1180px, calc(100vw - 40px));
  --hero-image: url("../img/hero-consultation.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  width: auto;
  height: auto;
  left: 16px;
  top: 16px;
  z-index: 200;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  clip: auto;
  white-space: normal;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--paper);
  background: rgba(13, 16, 18, 0.64);
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  color: var(--ink);
  border-color: rgba(17, 19, 21, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 34px rgba(9, 15, 20, 0.08);
}

.nav-shell {
  width: var(--container);
  min-height: 78px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 190px;
  padding: 6px 0;
}

.brand img,
.site-footer img {
  width: 100%;
  filter: invert(1);
}

.site-header.is-scrolled .brand img,
.site-footer img {
  filter: none;
}

.nav-menu {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-menu a {
  opacity: 0.86;
}

.nav-menu a:hover {
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switch {
  min-width: 88px;
  height: 38px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid currentColor;
  border-radius: 999px;
  overflow: hidden;
}

.lang-button {
  min-width: 42px;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
}

.lang-button.is-active {
  color: var(--ink);
  background: var(--paper);
}

.site-header.is-scrolled .lang-button.is-active {
  color: var(--paper);
  background: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  background: transparent;
}

.nav-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  display: block;
  margin: 4px auto;
  background: currentColor;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--paper);
  background: var(--sage);
  border-color: var(--sage);
}

.button-primary:hover {
  background: #315848;
  border-color: #315848;
}

.button-dark {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.button-ghost {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.button-small {
  min-height: 38px;
  padding-inline: 14px;
  font-size: 0.88rem;
}

.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  padding: 132px 0 34px;
  color: var(--paper);
  background-image: linear-gradient(90deg, rgba(9, 12, 14, 0.92) 0%, rgba(9, 12, 14, 0.7) 39%, rgba(9, 12, 14, 0.2) 70%), var(--hero-image);
  background-size: cover;
  background-position: center right;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 11, 12, 0.1), rgba(8, 11, 12, 0.36));
  pointer-events: none;
}

.hero-content {
  position: relative;
  width: var(--container);
  margin-inline: auto;
  padding-bottom: 82px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.7rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-status {
  position: relative;
  width: var(--container);
  min-height: 104px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(13, 16, 18, 0.62);
  backdrop-filter: blur(14px);
}

.hero-status div {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-status div:last-child {
  border-right: 0;
}

.hero-status strong {
  display: block;
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
}

.hero-status span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.93rem;
}

.intro-band {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.intro-item {
  min-height: 220px;
  padding: 34px;
  background: var(--mist);
}

.intro-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--paper);
  background: var(--blue);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

.intro-item:nth-child(2) .intro-icon {
  background: var(--sage);
}

.intro-item:nth-child(3) .intro-icon {
  background: var(--clay);
}

.intro-icon .icon-svg {
  width: 23px;
  height: 23px;
}

.intro-item h2 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  line-height: 1.2;
}

.intro-item p {
  margin: 0;
  color: var(--steel);
}

.office-section {
  color: var(--paper);
  background: var(--coal);
}

.office-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.56fr) minmax(0, 1.44fr);
  gap: 42px;
  align-items: center;
}

.office-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
}

.office-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.74);
}

.office-copy .button {
  margin-top: 26px;
}

.office-gallery {
  min-height: 560px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.office-photo {
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #2f3537;
}

.office-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.office-photo-main {
  grid-column: 1 / 5;
  grid-row: 1 / 5;
}

.office-photo-team {
  grid-column: 5 / 7;
  grid-row: 1 / 4;
}

.office-photo-corridor {
  grid-column: 5 / 7;
  grid-row: 4 / 7;
}

.office-photo-meeting {
  grid-column: 1 / 3;
  grid-row: 5 / 7;
}

.office-photo-foosball {
  grid-column: 3 / 5;
  grid-row: 5 / 7;
}

.section {
  padding: 92px 0;
}

.section-muted {
  background: #f7f8f8;
}

.section-dark {
  color: var(--paper);
  background: var(--coal);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
  text-align: center;
}

.section-heading.align-left {
  margin: 0;
  text-align: left;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--steel);
  font-size: 1.05rem;
}

.section-dark .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.segmented-control {
  width: fit-content;
  min-height: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(108px, 1fr));
  margin: 0 auto 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}

.segment {
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--steel);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 900;
}

.segment:last-child {
  border-right: 0;
}

.segment.is-active {
  color: var(--paper);
  background: var(--ink);
}

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

.service-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(11, 17, 20, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #b8cdd0;
  box-shadow: 0 18px 38px rgba(11, 17, 20, 0.11);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.service-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  border: 1px solid #cfe0e4;
  border-radius: var(--radius);
  background: #edf5f6;
}

.service-icon .icon-svg {
  width: 25px;
  height: 25px;
}

.service-card h3 {
  margin: 14px 0 10px;
  font-size: 1.28rem;
  line-height: 1.18;
}

.service-card p {
  margin: 0;
  color: var(--steel);
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--blue);
  background: #e7f0f2;
  font-size: 0.78rem;
  font-weight: 900;
}

.service-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 900;
}

.service-link .icon-svg {
  width: 17px;
  height: 17px;
  transition: transform 180ms ease;
}

.service-link:hover .icon-svg {
  transform: translateX(3px);
}

.calculator-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.calculator-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(11, 17, 20, 0.06);
}

.calculator-card-header {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
}

.calculator-card-header .eyebrow {
  margin-bottom: 6px;
}

.calculator-card-header h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.12;
}

.calculator-card-header p:last-child {
  margin: 8px 0 0;
  color: var(--steel);
}

.calculator-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--blue);
}

.calculator-card:nth-child(2) .calculator-icon {
  background: var(--sage);
}

.calculator-icon .icon-svg {
  width: 25px;
  height: 25px;
}

.calculator-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.calculator-field {
  display: grid;
  gap: 7px;
  align-content: start;
}

.calculator-field-wide {
  grid-column: 1 / -1;
}

.calculator-field > span:first-child {
  color: var(--coal);
  font-size: 0.83rem;
  font-weight: 900;
}

.input-with-suffix {
  position: relative;
  display: block;
}

.input-with-suffix input {
  padding-right: 54px;
}

.input-with-suffix b {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--steel);
  font-size: 0.75rem;
  transform: translateY(-50%);
}

.calculator-results {
  display: grid;
  gap: 0;
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}

.calculator-results div {
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.calculator-results dt {
  color: var(--steel);
  font-size: 0.86rem;
}

.calculator-results dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  text-align: right;
}

.calculator-results .calculator-total {
  padding: 15px 12px;
  border-bottom: 0;
  color: var(--paper);
  background: var(--coal);
}

.calculator-results .calculator-total dt,
.calculator-results .calculator-total dd {
  color: var(--paper);
}

.calculator-note,
.calculator-disclaimer {
  color: var(--steel);
  font-size: 0.82rem;
}

.calculator-note {
  margin: 16px 0 0;
}

.calculator-source {
  display: inline-block;
  margin-top: 10px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.calculator-disclaimer {
  max-width: 920px;
  margin-top: 22px;
  text-align: center;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.process-number {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  background: var(--sage);
  border-radius: 999px;
  font-weight: 900;
}

.process-item h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
}

.process-item p {
  margin: 0;
  color: var(--steel);
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.case-form,
.case-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.case-form {
  padding: 30px;
}

.case-summary {
  position: sticky;
  top: 104px;
  padding: 30px;
}

.field-group {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field-group label {
  color: var(--coal);
  font-size: 0.86rem;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd8dc;
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
}

input,
select {
  min-height: 48px;
  padding: 0 13px;
}

textarea {
  min-height: 138px;
  padding: 13px;
  resize: vertical;
}

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

.check-line {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  margin: 18px 0 22px;
  color: var(--steel);
  font-size: 0.92rem;
}

.check-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.check-line a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  width: 100%;
}

.form-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--sage);
  font-weight: 800;
}

.form-message.is-error {
  color: var(--clay);
}

.case-summary h3 {
  margin: 0 0 12px;
  font-size: 1.44rem;
}

#service-summary {
  margin: 0 0 20px;
  color: var(--steel);
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--coal);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 12px;
  height: 12px;
  border: 2px solid var(--sage);
  border-radius: 50%;
}

.timeline-chip {
  margin-top: 24px;
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  color: var(--coal);
  background: #fbf6eb;
  font-weight: 800;
}

.resources-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 46px;
}

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

.resource-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.resource-card span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-card h3 {
  margin: 16px 0 10px;
  font-size: 1.2rem;
}

.resource-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.resource-card a {
  margin-top: auto;
  color: #fff;
  font-weight: 900;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.faq-item summary {
  min-height: 72px;
  padding: 20px 24px;
  font-weight: 900;
  cursor: pointer;
}

.faq-item p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--steel);
}

.contact-section {
  padding-top: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 40px;
  color: var(--paper);
  background: var(--sage);
  border-radius: var(--radius);
}

.contact-layout h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
}

.contact-layout p:not(.eyebrow) {
  max-width: 640px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.contact-actions {
  display: grid;
  gap: 10px;
  min-width: 260px;
}

.contact-link {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius);
  color: #fff;
  font-weight: 900;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(340px, auto) auto;
  gap: 24px;
  align-items: center;
  color: var(--steel);
  font-size: 0.92rem;
}

.footer-brand {
  display: grid;
  gap: 10px;
}

.footer-brand img {
  width: 150px;
}

.footer-layout p {
  margin: 0;
}

.footer-layout a,
.footer-links a {
  color: var(--ink);
  font-weight: 900;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
  font-size: 0.82rem;
}

.footer-links a:hover {
  color: var(--blue);
}

.cookie-notice {
  position: fixed;
  inset: auto 18px 18px;
  z-index: 180;
  width: min(720px, calc(100vw - 36px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid #c8d5d9;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice strong {
  display: block;
}

.cookie-notice p {
  margin: 4px 0 0;
  color: var(--steel);
  font-size: 0.9rem;
}

.cookie-notice a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
}

.legal-page {
  background: #f5f7f7;
}

.legal-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(20px, calc((100vw - 1040px) / 2));
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.legal-header .brand {
  width: 172px;
}

.legal-header .brand img {
  filter: none;
}

.legal-main {
  width: min(1040px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 72px 0 88px;
}

.legal-intro {
  max-width: 760px;
}

.legal-intro h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.legal-intro > p:last-child {
  margin-top: 18px;
  color: var(--steel);
}

.legal-alert {
  margin-top: 22px;
  padding: 15px 18px;
  border-left: 4px solid var(--gold);
  color: #604817;
  background: #fff8e9;
  font-weight: 800;
}

.legal-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 40px;
}

.legal-index a {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--blue);
  background: #fff;
  font-size: 0.86rem;
  font-weight: 900;
}

.legal-document {
  margin-top: 16px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 26px rgba(11, 17, 20, 0.05);
}

.legal-document h2 {
  margin: 0 0 20px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.02;
}

.legal-document h3 {
  margin: 26px 0 8px;
  font-size: 1.1rem;
}

.legal-document p,
.legal-document li {
  color: #45535a;
}

.legal-document a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-footer p {
  color: var(--steel);
}

@media (max-width: 1040px) {
  .nav-shell {
    grid-template-columns: auto auto auto;
  }

  .nav-toggle {
    display: inline-block;
    justify-self: end;
  }

  .nav-menu {
    position: fixed;
    inset: 78px 0 auto;
    display: none;
    width: 100%;
    padding: 22px max(20px, calc((100vw - 1180px) / 2));
    color: var(--ink);
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: grid;
    gap: 16px;
    justify-items: start;
  }

  .nav-actions {
    justify-self: end;
  }

  .nav-actions .button {
    display: none;
  }

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

  .process-layout,
  .case-layout,
  .resources-layout,
  .contact-layout,
  .calculator-grid,
  .office-layout {
    grid-template-columns: 1fr;
  }

  .office-gallery {
    min-height: 520px;
  }

  .case-summary {
    position: static;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100vw - 28px, 1180px);
  }

  .nav-shell {
    min-height: 70px;
    gap: 12px;
  }

  .brand {
    width: 146px;
  }

  .nav-menu {
    inset: 70px 0 auto;
    padding: 18px 14px;
  }

  .language-switch {
    min-width: 78px;
    height: 36px;
  }

  .hero {
    min-height: 88vh;
    padding-top: 110px;
    background-image: linear-gradient(90deg, rgba(9, 12, 14, 0.95) 0%, rgba(9, 12, 14, 0.76) 55%, rgba(9, 12, 14, 0.42) 100%), var(--hero-image);
    background-position: 58% center;
  }

  .hero-content {
    padding-bottom: 44px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-status,
  .intro-grid,
  .service-grid,
  .resource-grid,
  .faq-list,
  .form-grid,
  .calculator-form {
    grid-template-columns: 1fr;
  }

  .hero-status div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-status div:last-child {
    border-bottom: 0;
  }

  .intro-item,
  .case-form,
  .case-summary,
  .contact-layout,
  .calculator-card {
    padding: 24px;
  }

  .calculator-field-wide {
    grid-column: auto;
  }

  .calculator-results div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .calculator-results dd {
    text-align: left;
  }

  .office-gallery {
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 8px;
  }

  .office-photo {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1 / 1;
  }

  .office-photo-main,
  .office-photo-team {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }

  .office-photo-corridor {
    aspect-ratio: 3 / 4;
  }

  .section {
    padding: 64px 0;
  }

  .segmented-control {
    width: 100%;
    grid-template-columns: 1fr;
    border-radius: var(--radius);
  }

  .segment {
    min-height: 46px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

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

  .service-card {
    min-height: auto;
  }

  .process-item {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    min-width: 0;
  }

  .footer-layout {
    grid-template-columns: 1fr;
  }

  .footer-layout img {
    width: 150px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .cookie-notice {
    display: grid;
  }

  .cookie-notice .button {
    width: 100%;
  }

  .legal-header {
    min-height: 66px;
  }

  .legal-header .brand {
    width: 146px;
  }

  .legal-main {
    width: min(100vw - 28px, 1040px);
    padding: 48px 0 64px;
  }

  .legal-document {
    padding: 22px;
  }
}

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