/* ==========================================================================
   DEO Tiefbau GmbH
   --------------------------------------------------------------------------
   1. Tokens          6. Hero            11. Contact
   2. Base            7. About           12. Footer
   3. Layout          8. Services        13. Dialogs
   4. Components      9. Visual strip    14. Motion
   5. Header         10. Why us          15. Responsive
   ========================================================================== */


/* 1. Tokens
   ========================================================================== */
:root {
  /* Palette: bone, graphite, burgundy and sand, plus tints of these */
  --bone: #efeae0;
  --sand: #ded6c6;
  --sand-soft: #e6e0d3;
  --graphite: #22211e;
  --stone: #6a655c;
  --burgundy: #6b1d2b;
  --burgundy-tint: #e2b4ae;

  --line: rgba(34, 33, 30, 0.18);
  --line-light: rgba(239, 234, 224, 0.3);
  --error: #9a2a1a;
  --ok: #2f5d3a;

  /* Type */
  --font-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;

  /* Space and layout */
  --section-y: clamp(5rem, 10vw, 9rem);
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --col-gap: clamp(1rem, 2vw, 2rem);
  --container: 1320px;
  --header-h: 76px;
  --header-h-compact: 60px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 0.2s;
  --t-med: 0.4s;
}


/* 2. Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--graphite);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

/* Interface text uses the grotesque; running text uses the serif */
h1, h2, h3, h4, .logo, .nav, .btn, .text-link, .link-btn, label, input, textarea, button, dt,
.hero__label, .hero__badge, .hero__vertical, .service__tags, .fact__label, .field__error,
.form__status, .form__note, .footer__title, .footer__bottom, .nav__note, .dialog__note,
.skip-link, .benefit__num, .fact__num {
  font-family: var(--font-display);
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section-title {
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

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

.section--curtain :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--bone);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--graphite);
  color: var(--bone);
  font-weight: 500;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; }


/* 3. Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

.section { padding-block: var(--section-y); }
.section--soft { background: var(--sand-soft); }
.section--curtain { background: var(--burgundy); color: var(--bone); }


/* 4. Components
   ========================================================================== */

/* Buttons and links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.6rem;
  background: var(--graphite);
  color: var(--bone);
  border: 1px solid var(--graphite);
  border-radius: 2px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn:hover { background: var(--burgundy); border-color: var(--burgundy); }

.btn--small {
  padding: 0.6rem 1.05rem;
  font-size: 0.92rem;
  background: transparent;
  color: var(--graphite);
}
.btn--small:hover { background: var(--graphite); border-color: var(--graphite); color: var(--bone); }

.text-link {
  display: inline-block;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 0.15rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: color var(--t-fast), background-size var(--t-med) var(--ease);
}
.text-link:hover { color: var(--burgundy); background-size: 100% 2px; }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color var(--t-fast);
}
.link-btn:hover { color: var(--burgundy); }

/* Visual blocks (illustrations now, photographs later) */
.media {
  position: relative;
  overflow: hidden;
  background: var(--sand);
}
.media svg,
.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--tall { aspect-ratio: 4 / 5; }
.media--hall { aspect-ratio: 4 / 3; }

/* SVG fills used by the illustrations */
.f-paper  { fill: var(--bone); }
.f-sand   { fill: var(--sand); }
.f-ink    { fill: var(--graphite); }
.f-mid    { fill: #5b534a; }
.f-stone  { fill: #8b8478; }
.f-accent { fill: var(--burgundy); }
.f-tint   { fill: var(--burgundy-tint); }


/* 5. Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: height var(--t-med) var(--ease), background-color var(--t-med), border-color var(--t-med);
}

.site-header.is-scrolled {
  height: var(--header-h-compact);
  background: rgba(239, 234, 224, 0.96);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.logo__mark {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}
.logo__mark::after {
  content: "";
  display: inline-block;
  width: 0.3em;
  height: 0.3em;
  margin-left: 0.12em;
  background: var(--burgundy);
}

.logo__sub {
  padding-left: 0.85rem;
  border-left: 1px solid currentColor;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--stone);
}

.logo--light .logo__mark::after { background: var(--burgundy-tint); }
.logo--light .logo__sub { color: rgba(239, 234, 224, 0.7); }

.nav { position: relative; z-index: 1; }
.nav__note { display: none; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
}

.nav__link {
  position: relative;
  padding: 0.4rem 0;
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle {
  position: relative;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle__bar {
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--graphite);
  transition: transform var(--t-med) var(--ease);
}
.nav-toggle__bar:nth-child(1) { transform: translateY(-4px); }
.nav-toggle__bar:nth-child(2) { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: rotate(-45deg); }


/* 6. Hero
   ========================================================================== */
.hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: var(--section-y);
}

.hero__grid {
  align-items: center;
  row-gap: 3.5rem;
}

.hero__content { grid-column: 1 / span 7; }
.hero__visual  { grid-column: 8 / -1; }

.hero__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--stone);
}
.hero__label::before {
  content: "";
  flex: none;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--burgundy);
}

.hero__title {
  margin: 1.5rem 0 1.75rem;
  font-size: clamp(2.9rem, 7vw, 6.25rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero__title .line { display: block; }
.hero__title .line--indent { padding-left: clamp(1rem, 4.5vw, 4rem); }

.hero__lead {
  max-width: 35rem;
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--stone);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2.25rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3.5rem;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.hero__meta dt { font-size: 0.88rem; color: var(--stone); }
.hero__meta dd { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }

/* Layered visual composition */
.hero__visual {
  position: relative;
  padding-bottom: 14%;
}

.hero__main {
  width: 80%;
  margin-left: auto;
  margin-right: 2.25rem;
  aspect-ratio: 4 / 5;
}

.hero__second {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  aspect-ratio: 4 / 3;
  border: 8px solid var(--bone);
}

.hero__badge {
  position: absolute;
  left: 0;
  top: 9%;
  width: min(13.5rem, 46%);
  padding: 1.1rem 1.2rem;
  background: var(--graphite);
  color: var(--bone);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

.hero__vertical {
  position: absolute;
  top: 0;
  right: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.85rem;
  color: var(--stone);
}


/* 7. About
   ========================================================================== */
.about__title { max-width: 22ch; }

.about__grid {
  margin-top: clamp(3rem, 6vw, 5.5rem);
  row-gap: 4rem;
}

.about__media {
  grid-column: 1 / span 5;
  position: relative;
}

.about__statement {
  position: absolute;
  right: -3.5rem;
  bottom: 2.5rem;
  width: min(17rem, 75%);
  padding: 1.25rem 1.5rem;
  background: var(--bone);
  border-left: 4px solid var(--burgundy);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.about__text {
  grid-column: 7 / -1;
  margin-top: clamp(0rem, 6vw, 5rem);
}

.about__lead {
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  line-height: 1.35;
}

.about__cols {
  margin-top: 2rem;
  columns: 2 15rem;
  column-gap: 2rem;
  color: var(--stone);
}
.about__cols p { margin-bottom: 1rem; break-inside: avoid; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.facts li { padding-top: 1rem; border-top: 1px solid var(--graphite); }
.fact__num {
  display: block;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}
.fact__label {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--stone);
}


/* 8. Services
   ========================================================================== */
.services__grid { align-items: start; row-gap: 3rem; }

.services__intro {
  grid-column: 1 / span 4;
  position: sticky;
  top: 6rem;
}
.services__lead { margin-top: 1.25rem; max-width: 26rem; color: var(--stone); }
.services .media--hall { margin-top: 2.5rem; }

.services__list { grid-column: 6 / -1; }

.service {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  column-gap: 1.5rem;
  padding: 1.9rem 0;
  border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }

.service::before {
  content: "";
  position: absolute;
  inset: 0 -1rem;
  z-index: -1;
  background: rgba(34, 33, 30, 0.05);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.service::after {
  content: "";
  position: absolute;
  left: -1rem;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--burgundy);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t-med) var(--ease);
}
.service:hover::before { opacity: 1; }
.service:hover::after  { transform: scaleY(1); }

.service__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 0.2rem;
  color: var(--graphite);
  transition: color var(--t-fast);
}
.service:hover .service__icon { color: var(--burgundy); }

.service__title {
  font-size: clamp(1.6rem, 2.5vw, 2.15rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.service__desc { margin-top: 0.65rem; max-width: 36rem; color: var(--stone); }
.service__tags { margin-top: 0.85rem; font-size: 0.92rem; font-weight: 500; }


/* 9. Visual strip
   ========================================================================== */
.strip { height: clamp(11rem, 26vw, 22rem); }
.strip .media { height: 100%; }


/* 10. Why us
   ========================================================================== */
.why__head {
  align-items: end;
  row-gap: 1.5rem;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}
.why__head .section-title { grid-column: 1 / span 7; }
.why__lead {
  grid-column: 9 / -1;
  color: rgba(239, 234, 224, 0.8);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--col-gap);
}

.benefit {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-light);
}
.benefit:nth-child(2) { margin-top: 3rem; }
.benefit:nth-child(3) { margin-top: 6rem; }
.benefit:nth-child(4) { margin-top: 9rem; }

.benefit__num {
  display: block;
  font-size: clamp(4.5rem, 8vw, 7.5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--burgundy-tint);
}
.benefit h3 { margin: 1.25rem 0 0.75rem; font-size: 1.6rem; font-weight: 500; letter-spacing: -0.025em; }
.benefit p { font-size: 1.05rem; color: rgba(239, 234, 224, 0.82); }


/* 11. Contact
   ========================================================================== */
.contact__grid { align-items: start; row-gap: 3.5rem; }

.contact__info { grid-column: 1 / span 5; }
.contact__lead { margin-top: 1.25rem; max-width: 27rem; color: var(--stone); }

.info-list { margin-top: 2.75rem; }
.info-item {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.info-item:last-child { border-bottom: 1px solid var(--line); }
.info-item dt { font-size: 0.92rem; font-weight: 500; color: var(--stone); padding-top: 0.2rem; }
.info-item address { margin-bottom: 0.9rem; font-size: 1.15rem; line-height: 1.5; }
.info-link {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--t-fast);
}
.info-link:hover { color: var(--burgundy); }

.contact__form-wrap {
  grid-column: 7 / -1;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  background: var(--sand);
  border-top: 4px solid var(--burgundy);
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.75rem;
}
.field { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.field--full { grid-column: 1 / -1; }

.field label { font-size: 0.95rem; font-weight: 600; }
.field label small { font-size: 0.85rem; font-weight: 400; color: var(--stone); }

.field input,
.field textarea {
  width: 100%;
  padding: 0.6rem 0.25rem;
  background: transparent;
  color: var(--graphite);
  border: 0;
  border-bottom: 1px solid rgba(34, 33, 30, 0.55);
  border-radius: 0;
  font-size: 1.05rem;
  transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.field input:focus,
.field textarea:focus {
  outline: none;
  background: rgba(239, 234, 224, 0.5);
  border-bottom-color: var(--burgundy);
  box-shadow: 0 1px 0 var(--burgundy);
}

.field__error {
  min-height: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.3;
  color: var(--error);
}
.field.has-error input,
.field.has-error textarea { border-bottom-color: var(--error); }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__note { flex: 1 1 15rem; font-size: 0.88rem; line-height: 1.45; color: var(--stone); }

.form__status:empty { padding: 0; border: 0; background: none; }
.form__status {
  padding: 1rem 1.25rem;
  font-size: 1rem;
  line-height: 1.45;
  background: var(--bone);
  border-left: 4px solid var(--stone);
}
.form__status.is-success { border-left-color: var(--ok); }
.form__status.is-error   { border-left-color: var(--error); }


/* 12. Footer
   ========================================================================== */
.site-footer {
  padding: clamp(4rem, 8vw, 6rem) 0 2rem;
  background: var(--graphite);
  color: var(--bone);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.2fr 1fr;
  gap: 2.5rem var(--col-gap);
}

.footer__brand p {
  max-width: 24rem;
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: rgba(239, 234, 224, 0.72);
}

.footer__title {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--burgundy-tint);
}

.footer__list li + li { margin-top: 0.55rem; }
.footer__list a,
.footer__list .link-btn,
.footer__address a {
  font-family: var(--font-display);
  font-size: 1rem;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--t-med) var(--ease);
}
.footer__list a:hover,
.footer__list .link-btn:hover,
.footer__address a:hover { background-size: 100% 1px; color: var(--bone); }

.footer__list .link-btn { text-decoration: none; }
.footer__address { font-size: 1.05rem; line-height: 1.6; color: rgba(239, 234, 224, 0.82); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.92rem;
  color: rgba(239, 234, 224, 0.65);
}


/* 13. Dialogs
   ========================================================================== */
dialog {
  width: min(40rem, calc(100% - 2rem));
  max-height: calc(100dvh - 3rem);
  padding: 0;
  border: 0;
  border-top: 4px solid var(--burgundy);
  background: var(--bone);
  color: var(--graphite);
  overflow: auto;
}
dialog::backdrop { background: rgba(34, 33, 30, 0.6); }

.dialog__inner { padding: clamp(1.5rem, 4vw, 2.5rem); }
.dialog__inner h2 { font-size: 2rem; font-weight: 500; }
.dialog__inner h3 { margin: 1.5rem 0 0.35rem; font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
.dialog__inner p { font-size: 1.05rem; }
.dialog__inner a { text-underline-offset: 3px; }
.dialog__inner form { margin-top: 2rem; }
.dialog__note { margin-top: 0.6rem; font-size: 0.9rem; font-weight: 500; color: var(--burgundy); }


/* 14. Motion
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal { opacity: 1; transform: none; }
}


/* 15. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .benefit:nth-child(n) { margin-top: 0; }
  .benefit:nth-child(even) { margin-top: 3rem; }

  .services__intro { grid-column: 1 / span 5; }
  .services__list { grid-column: 6 / -1; }

  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  /* Mobile navigation */
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: 6.5rem var(--gutter) 2rem;
    background: var(--bone);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.03em;
  }
  .nav__link::after { display: none; }
  .nav__link[aria-current="true"] { color: var(--burgundy); }
  .nav__cta { margin-top: 1.75rem; }
  .nav__cta .btn { width: 100%; padding: 1rem; }
  .nav__note { display: block; font-size: 0.95rem; line-height: 1.5; color: var(--stone); }

  /* Single-column layouts */
  .hero__content,
  .hero__visual,
  .about__media,
  .about__text,
  .services__intro,
  .services__list,
  .why__head .section-title,
  .why__lead,
  .contact__info,
  .contact__form-wrap { grid-column: 1 / -1; }

  .hero__visual { width: 100%; max-width: 34rem; margin-left: auto; }

  .about__title { max-width: none; }
  .about__media { max-width: 30rem; margin-bottom: 2rem; }
  .about__statement { right: 1rem; bottom: -2rem; }
  .about__text { margin-top: 0; }

  .services__intro { position: static; }
  .services .media--hall { max-width: 30rem; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1.125rem; }

  .hero__meta { gap: 1rem 2rem; }
  .hero__badge { font-size: 0.92rem; padding: 0.9rem 1rem; }

  .facts { grid-template-columns: 1fr; gap: 1.25rem; }
  .facts li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: 1rem; align-items: baseline; }
  .fact__label { margin-top: 0; }

  .service { grid-template-columns: 2rem minmax(0, 1fr); column-gap: 1rem; }
  .service__icon { width: 2rem; height: 2rem; }
  .service::before { inset: 0 -0.5rem; }
  .service::after { left: -0.5rem; }

  .benefits { grid-template-columns: 1fr; }
  .benefit:nth-child(n) { margin-top: 0; }

  .form { grid-template-columns: 1fr; }
  .info-item { grid-template-columns: 1fr; gap: 0.25rem; }

  .footer__grid { grid-template-columns: 1fr; }
}
