/* ── Fonts ── */
@font-face {
  font-family: 'Afacad Flux';
  src: url('../fonts/AfacadFlux-VariableFont_slnt,wght.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/Cormorant-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant';
  src: url('../fonts/Cormorant-Italic-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design Tokens ── */
:root {
  --white:      #FFFFFF;
  --off-white:  #F5F3EF;
  --light:      #ECEAE6;
  --mid:        #C4C0B8;
  --sage:       #9BA89A;
  --charcoal:   #3A3A3A;
  --dark:       #1C1C1C;
  --text:       #2A2A2A;
  --muted:      #6B6B6B;
  --nav-h:      72px;
  --serif:      'Cormorant', 'Cormorant Garamond', serif;
  --sans:       'Afacad Flux', 'Inter', sans-serif;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
}
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  font-size: 17px;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: 'slnt' 0;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  width: 100%;
  max-width: 100vw;
  position: relative;
}
img { max-width: 100%; }

/* ── Utility ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 4rem;
}
.label {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(17px, 1.35vw, 21px);
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--dark);
}
.nav-brand-logo { height: 44px; width: auto; flex-shrink: 0; }
.nav-brand svg { width: 38px; height: 38px; flex-shrink: 0; }
.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-brand-name {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dark);
}
.nav-brand-name span { font-weight: 300; }
.nav-brand-sub {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover { color: var(--dark); }
.nav-links .nav-cta a {
  background: var(--dark);
  color: white;
  padding: 0.5rem 1.25rem;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.nav-links .nav-cta a:hover { background: var(--charcoal); color: white; }

/* Burger-Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  z-index: 220;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}
.main-nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.main-nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.main-nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────
   HERO (split layout)
───────────────────────────────────────── */
.hero {
  position: relative;
  height: 85vh;
  min-height: 560px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  padding-top: var(--nav-h);
}
.hero-pane { position: relative; overflow: hidden; }
.hero-pane img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-pane--left img { object-position: center 50%; }
.hero-pane--right img { object-position: center 40%; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
.hero-body {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  padding-left: max(4rem, calc((100vw - 1280px) / 2 + 4rem));
  padding-right: 4rem;
  transform: translateY(-30%);
}
.hero-eyebrow {
  font-family: var(--sans);
  font-size: clamp(18px, 1.8vw, 28px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.hero-eyebrow span { font-weight: 300; opacity: 0.65; }
.hero-title {
  font-family: var(--sans);
  font-weight: 700;
  font-variation-settings: 'wght' 700, 'slnt' 0;
  font-style: normal;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 1.08;
  color: white;
  max-width: 620px;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}
.hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'wght' 400;
  text-transform: none;
  letter-spacing: 0;
}
.hero-sub {
  font-family: var(--sans);
  font-style: normal;
  font-size: 15px;
  letter-spacing: 0;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
}

/* ─────────────────────────────────────────
   INTRO
───────────────────────────────────────── */
.intro {
  padding: 7rem 0;
  background: var(--white);
}
.intro .container {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
}
.intro .container::before {
  content: '';
  position: absolute;
  left: calc(4rem + 220px + 2rem);
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--mid);
}
.intro-aside { padding-top: 0.5rem; text-align: left; }
.intro-aside .label { display: block; }
.intro-divider { display: none; }
.intro-main {
  display: block;
  padding-left: 0;
}
.intro-main h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.65rem, 2.3vw, 2.15rem);
  line-height: 1.2;
  margin: 0 0 1.75rem;
  color: var(--dark);
  letter-spacing: -0.005em;
}
.intro-main .intro-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.intro-main p {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  margin: 0;
}
.intro-main p:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────
   SERVICES LABEL ROW
───────────────────────────────────────── */
.services-bar {
  border-top: 1px solid var(--light);
  padding: 3rem 0 0;
}
.services-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.services-count {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(17px, 1.35vw, 21px);
  letter-spacing: 0;
  color: var(--text);
}

/* ─────────────────────────────────────────
   SERVICE — Common
───────────────────────────────────────── */
.service { padding: 6rem 0; background: var(--white); }
.service--three-row,
.service--image-right { background: var(--off-white); }

.service-num {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: 17px;
  color: var(--text);
  letter-spacing: 0;
  margin-bottom: 1.25rem;
}
.service-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  line-height: 1.18;
  color: var(--dark);
  margin-bottom: 1rem;
  max-width: 22ch;
  letter-spacing: -0.005em;
}
.service-tagline {
  font-family: var(--sans);
  font-size: 16px;
  color: #8a8a8a;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 2rem;
}
.service-desc {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 2rem;
  max-width: 42ch;
}
.service-content { display: flex; flex-direction: column; }

.service-img { overflow: hidden; min-height: 390px; }
.service-img img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.7s ease;
}
.service-img:hover img { transform: scale(1.03); }

.service-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.btn-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  border: 1px solid var(--dark);
  color: white;
  background: var(--dark);
  transition: background 0.2s, color 0.2s;
}
.btn-cta:hover { background: var(--charcoal); color: white; }

/* Variant: two small images left (vertikal versetzt) */
.service--two-small .container {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 4rem;
  align-items: center;
}
.service--two-small .service-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.service--two-small .service-imgs .service-img:first-child {
  margin-top: 4.5rem;
}
.service--two-small .service-imgs .service-img:last-child {
  margin-top: 0;
}
.service--two-small .service-imgs .service-img img { aspect-ratio: 3 / 4; }

/* Variant: three images in a row, text ABOVE — bündig im Container */
.service--three-row .container { display: block; }
.service--three-row .service-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin: 0 0 3rem;
  position: relative;
}
.service--three-row .service-text::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--mid);
  transform: translateX(-50%);
}
.service--three-row .service-text > .service-content:first-child { padding-right: 2rem; }
.service--three-row .service-text > .service-content:last-child { padding-left: 2rem; padding-top: 3.5rem; }
.service--three-row .service-title { max-width: 22ch; }
.service--three-row .service-desc { max-width: 48ch; margin-bottom: 0; }
.service--three-row .service-imgs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service--three-row .service-imgs .service-img img { aspect-ratio: 4 / 3; }

/* Variant: image-left, content-right */
.service--image-left .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.service--image-left .service-img img { aspect-ratio: 4 / 3; }

/* Variant: image-right, content-left */
.service--image-right .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.service--image-right .service-content { order: 0; }
.service--image-right .service-imgs { order: 1; }
.service--image-right .service-img img { aspect-ratio: 4 / 3; }

/* ─────────────────────────────────────────
   REFERENCES carousel
───────────────────────────────────────── */
.references {
  padding: 2.5rem 0 5rem;
  background: var(--white);
  border-top: 1px solid var(--light);
}
.references-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto 1.75rem;
  padding: 0 4rem;
}
.references-head .label { margin: 0; }
.references-nav { display: flex; gap: 0.5rem; }
.references-btn {
  width: 42px;
  height: 42px;
  border: none;
  background: var(--dark);
  color: white;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.references-btn:hover { background: var(--charcoal); }
.references-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.references-viewport {
  overflow: hidden;
  padding-left: max(4rem, calc((100vw - 1280px) / 2 + 4rem));
  padding-right: 0;
}
.references-track {
  display: flex;
  gap: 0;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.references-track:active { cursor: grabbing; }
.references-track img { pointer-events: none; -webkit-user-drag: none; }
.references-item {
  flex: 0 0 25%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}
.references-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─────────────────────────────────────────
   SERVICES DETAIL grid
───────────────────────────────────────── */
.services-detail {
  padding: 7rem 0;
  background: var(--white);
  border-top: 1px solid var(--light);
}
.services-detail-heading {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  color: var(--dark);
  margin-bottom: 4rem;
  letter-spacing: -0.005em;
}
.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.services-detail-col {
  padding: 0 2rem;
  border-left: 1px solid var(--light);
}
.services-detail-col:first-child { padding-left: 0; border-left: none; }
.services-detail-col:last-child { padding-right: 0; }
.services-detail-col h3 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  margin-bottom: 2.5rem;
}
.services-detail-col h3 .num { color: inherit; font-weight: 400; }
.services-detail-col h3 .num::after { content: ' /'; }
.services-detail-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.services-detail-col li {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  position: relative;
  padding-left: 0.85rem;
}
.services-detail-col li::before {
  content: '_';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text);
  font-weight: 500;
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
.contact {
  background: var(--dark);
  padding: 7rem 0;
}
.contact .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  align-items: start;
}

.contact-info .label {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 2.5rem;
  display: block;
}

.contact-info h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-variation-settings: 'wght' 700, 'slnt' 0;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
  line-height: 1.15;
  color: white;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.contact-info > p {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: white;
  line-height: 1.45;
  margin-bottom: 2.5rem;
  max-width: 42ch;
}

.contact-address {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 1.75rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 15px;
  font-weight: 500;
  color: white;
}
.contact-address strong {
  color: white;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.contact-address a {
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
}
.contact-address a:hover { opacity: 0.75; }

/* Form */
.contact .container > * { min-width: 0; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  min-width: 0;
}
.form-row > * { min-width: 0; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; max-width: 100%; min-width: 0; }
.form-group label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.5); font-weight: 400; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.3)'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-group select option { background: #1c1c1c; color: white; }
.form-group textarea { height: 120px; resize: vertical; line-height: 1.6; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
}

.btn-submit {
  align-self: flex-start;
  background: white;
  color: var(--dark);
  border: none;
  padding: 0.9rem 2.25rem;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--sage); color: white; }

.form-note {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  background: #111111;
  padding: 1.75rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
}
.footer-brand {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: white;
}
.footer-brand span { font-weight: 400; opacity: 0.75; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: white;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-links a:hover { opacity: 0.7; }

/* ─────────────────────────────────────────
   SCROLL REVEAL (progressive enhancement: nur aktiv wenn JS lädt)
───────────────────────────────────────── */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js-reveal .reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }
@media print {
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; }
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 2.5rem; }
  .main-nav { padding: 0 2.5rem; }
  .hero-body { padding: 0 2.5rem; }
  .references-head { padding: 0 2.5rem; }
  .references-viewport { padding-left: 2.5rem; }
  .services-detail-grid { gap: 2rem; }
  .references-item { flex: 0 0 33.333%; }
}

@media (max-width: 820px) {
  .main-nav { padding: 0 1.5rem; }
  .nav-brand-logo { height: 30px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: auto;
    max-height: calc(100vh - var(--nav-h));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 1.5rem;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    z-index: 210;
    overflow-y: auto;
  }
  .main-nav.open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
  }
  .nav-links li { border-bottom: 1px solid var(--light); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 1.1rem 0.25rem;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--dark);
  }
  .nav-links .nav-cta a {
    background: var(--dark);
    color: white;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  .container { padding: 0 1.5rem; }
  .hero-body { padding: 0 1.5rem; }

  .hero { grid-template-columns: 1fr; height: 70vh; }
  .hero-pane--right { display: none; }

  .intro { padding: 4rem 0; }
  .intro .container { grid-template-columns: 1fr; gap: 2rem; }
  .intro .container::before { display: none; }
  .intro-aside { display: flex; align-items: center; justify-content: space-between; }
  .intro-divider { display: none; }

  .service { padding: 4rem 0; }
  .service--two-small .container,
  .service--image-left .container,
  .service--image-right .container { grid-template-columns: 1fr; gap: 2rem; }
  .service--image-right .service-content { order: 1; }
  .service--image-right .service-imgs { order: 0; }
  .service--three-row .service-imgs { grid-template-columns: 1fr; }
  .service--three-row .service-text { grid-template-columns: 1fr; gap: 1.5rem; }
  .service--three-row .service-text::before { display: none; }
  .service--three-row .service-text > .service-content:first-child,
  .service--three-row .service-text > .service-content:last-child { padding-left: 0; padding-right: 0; padding-top: 0; }
  .service--two-small .service-imgs .service-img:first-child { margin-top: 0; }

  .references { padding: 2rem 0 4rem; }
  .references-head { padding: 0 1.5rem; }
  .references-viewport { padding-left: 1.5rem; }
  .references-item { flex: 0 0 50%; }

  .services-detail { padding: 4rem 0; }
  .services-detail-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .services-detail-col { border-left: none; padding: 0; }

  .contact { padding: 5rem 0; }
  .contact .container { grid-template-columns: 1fr; gap: 3.5rem; }
  .form-row { grid-template-columns: 1fr; }

  footer { flex-direction: column; gap: 1rem; text-align: center; padding: 1.75rem 1.5rem; }
}

@media (max-width: 520px) {
  .references-item { flex: 0 0 100%; }
  .services-detail-grid { grid-template-columns: 1fr; }
}
