/*
Theme Name: Himmelsbach Hausmeisterservice
Theme URI: https://himmelsbach-service.de/
Author: Custom Build
Description: Ein klares Onepager-Theme für Himmelsbach Hausmeisterservice.
Version: 1.2.0
Text Domain: himmelsbach-service
*/
@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Oswald:wght@500;600;700&display=swap");

:root {
  --bg: #f7f7f4;
  --bg-accent: #ece8dc;
  --text: #102f57;
  --text-soft: #405369;
  --accent: #b79a5a;
  --accent-dark: #8d7540;
  --surface: #ffffff;
  --header-bg: #f7f7f4;
  --hero-image: none;
  --max: 1320px;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Barlow", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, var(--bg) 0%, #fbfbf8 45%, var(--bg) 100%),
    repeating-linear-gradient(135deg, rgba(16, 47, 87, 0.03) 0, rgba(16, 47, 87, 0.03) 8px, transparent 8px, transparent 18px);
  line-height: 1.6;
  overflow-x: hidden;
}

main,
section {
  width: 100%;
  max-width: 100vw;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--header-bg) 86%, #fff);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #ddd7ca;
  transition: box-shadow 0.28s ease, background-color 0.28s ease, border-color 0.28s ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--header-bg) 78%, #fff);
  border-bottom-color: #cfd8e4;
  box-shadow: 0 10px 22px rgba(16, 47, 87, 0.14);
}

.site-header__inner,
.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  padding: 0.7rem 0;
}

.branding {
  font-family: "Oswald", Impact, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.branding--logo .custom-logo-link {
  display: inline-block;
  line-height: 0;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  animation: logoReveal 0.8s ease-out both;
}

.branding--logo .custom-logo {
  max-height: 68px;
  width: auto;
  animation: logoFloat 5.8s ease-in-out 0.9s infinite;
  transform-origin: center;
}

.branding--logo .custom-logo-link::after {
  content: "";
  position: absolute;
  inset: -40% -120%;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.42) 50%, rgba(255, 255, 255, 0) 65%);
  transform: translateX(-110%);
  animation: logoShine 4.6s ease-in-out 1.2s infinite;
  pointer-events: none;
}

.site-header.is-scrolled .branding--logo .custom-logo-link {
  animation: logoDockIn 0.45s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.site-header.is-scrolled .branding--logo .custom-logo {
  animation: none;
  transform: translateY(0) scale(0.94);
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.96);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes logoShine {
  0%, 72% {
    transform: translateX(-110%);
  }
  88%, 100% {
    transform: translateX(110%);
  }
}

@keyframes logoDockIn {
  0% {
    transform: translateY(-8px) scale(1.06);
    opacity: 0.72;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 1.15rem;
}

.main-nav a {
  font-size: 0.9rem;
  color: var(--text-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.main-nav a:hover {
  color: var(--accent);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.header-phone,
.header-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, #fff);
  background: color-mix(in srgb, var(--accent) 20%, #fff);
  color: var(--text);
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.header-phone:hover {
  background: color-mix(in srgb, var(--accent) 32%, #fff);
}

.header-instagram svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-instagram:hover {
  background: color-mix(in srgb, var(--accent) 32%, #fff);
}

.header-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #c8d3e4;
  border-radius: 10px;
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.header-burger span {
  width: 20px;
  height: 2px;
  background: #12345d;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.desktop-contact-sidebar {
  display: none;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 20, 37, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 45;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(86vw, 340px);
  height: 100dvh;
  background: #fff;
  border-left: 1px solid #d4dcea;
  box-shadow: -18px 0 32px rgba(10, 24, 43, 0.15);
  transform: translateX(102%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s ease;
  z-index: 50;
  padding: 1rem;
  overflow-y: auto;
}

.mobile-menu-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.3rem 0 0.9rem;
  margin-bottom: 0.35rem;
  background: #fff;
}

.mobile-menu-brand .custom-logo {
  max-height: 42px;
  width: auto;
}

.mobile-menu-brand a {
  font-family: "Oswald", Impact, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.mobile-menu-close {
  width: 34px;
  height: 34px;
  border: 1px solid #d5dcea;
  border-radius: 8px;
  background: #f7f8fb;
  color: #12345d;
  font-size: 1.25rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mobile-menu-list,
.mobile-menu-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
}

.mobile-menu-panel a {
  display: block;
  padding: 0.8rem 0.75rem;
  border-radius: 8px;
  font-weight: 700;
  color: var(--text);
  background: #f7f8fb;
}

.mobile-menu-panel a:hover {
  background: #edf1f8;
}

body.mobile-menu-open {
  overflow: hidden;
}

body.contact-modal-open {
  overflow: hidden;
}

body.mobile-menu-open .mobile-menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.mobile-menu-open .mobile-menu-panel {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.mobile-menu-open .header-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.mobile-menu-open .header-burger span:nth-child(2) {
  opacity: 0;
}

body.mobile-menu-open .header-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  padding: 8rem 0 7rem;
  background:
    radial-gradient(circle at 14% 28%, rgba(183, 154, 90, 0.34), transparent 24%),
    linear-gradient(105deg, rgba(16, 47, 87, 0.84) 0%, rgba(16, 47, 87, 0.64) 42%, rgba(16, 47, 87, 0.2) 100%),
    var(--hero-image),
    linear-gradient(135deg, #d9e0e9 0%, #f3efe5 100%);
  background-size: cover, cover, cover, auto;
  background-position: center, center, center, center;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  border-bottom: 1px solid #d8deea;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: clamp(1rem, 6vw, 7rem);
  bottom: clamp(1.2rem, 5vw, 4rem);
  width: clamp(150px, 18vw, 260px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03)),
    color-mix(in srgb, var(--accent) 18%, transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.38rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: none;
}

.hero h1 {
  font-family: "Oswald", Impact, sans-serif;
  font-size: clamp(2.45rem, 6vw, 4.9rem);
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0 0 0.75rem;
  max-width: 12ch;
  color: #fff;
  text-shadow: 0 6px 22px rgba(9, 24, 44, 0.45);
}

.hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.6rem;
  text-shadow: 0 4px 18px rgba(9, 24, 44, 0.4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: 760px;
}

.hero__badges span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(3px);
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--accent);
  color: #102f57;
}

.btn--primary:hover {
  background: var(--accent-dark);
}

section {
  padding: 5.2rem 0;
}

.section--soft {
  background: linear-gradient(180deg, var(--bg-accent) 0%, #f5f1e7 100%);
  border-top: 1px solid #d8d0be;
  border-bottom: 1px solid #d8d0be;
  overflow: hidden;
}

.section-title {
  font-family: "Oswald", Impact, sans-serif;
  margin: 0 0 0.45rem;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  letter-spacing: 0.01em;
}

.section-intro {
  color: var(--text-soft);
  margin: 0 0 2rem;
}

.grid {
  display: grid;
  gap: 1.2rem;
}

.grid--services {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.seo-region {
  padding-top: 3.8rem;
  background:
    linear-gradient(180deg, #fff 0%, #fbfaf6 100%);
}

.seo-region__content {
  max-width: 1120px;
  padding: clamp(1.2rem, 3vw, 2rem);
  border-left: 5px solid var(--accent);
  background: color-mix(in srgb, var(--surface) 86%, var(--bg-accent));
  box-shadow: 0 18px 36px rgba(16, 47, 87, 0.07);
}

.seo-region__text {
  columns: 2 340px;
  column-gap: clamp(1.5rem, 4vw, 3rem);
}

.seo-region__text p {
  break-inside: avoid;
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.75;
}

.seo-region__text p:last-child {
  margin-bottom: 0;
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

.process-step {
  position: relative;
  padding-top: 2.4rem;
  border-color: #d2dced;
  box-shadow: 0 16px 30px rgba(16, 47, 87, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(16, 47, 87, 0.13);
}

.process-step::after {
  content: "→";
  position: absolute;
  right: -0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  display: none;
  place-items: center;
  font-weight: 700;
  font-size: 1rem;
  color: #0f2e56;
  background: linear-gradient(180deg, #e7d8b6 0%, var(--accent) 100%);
  box-shadow: 0 8px 14px rgba(16, 47, 87, 0.18);
  z-index: 2;
}

.process-number {
  position: absolute;
  top: -0.95rem;
  left: 1.15rem;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 700;
  color: #0d2b4f;
  background: linear-gradient(180deg, #d5bf8d 0%, var(--accent) 100%);
  box-shadow: 0 8px 14px rgba(16, 47, 87, 0.18);
}

@media (min-width: 760px) {
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-step:not(:nth-child(2n))::after {
    display: grid;
  }
}

@media (min-width: 1120px) {
  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-step::after {
    display: none;
  }

  .process-step:not(:nth-child(3n))::after {
    display: grid;
  }
}

.project-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.project-card {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #d5ddea;
  background: #fff;
  box-shadow: 0 10px 20px rgba(16, 47, 87, 0.07);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card__link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.project-card__link:hover .project-content h3,
.project-card__link:focus-visible .project-content h3 {
  color: var(--accent-dark);
}

.project-card__link:focus-visible {
  outline: 3px solid rgba(183, 154, 90, 0.45);
  outline-offset: -3px;
}

.project-media {
  position: relative;
  height: clamp(260px, 30vw, 360px);
  min-height: 260px;
  overflow: hidden;
}

.project-carousel {
  position: relative;
  height: 100%;
}

.project-slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  height: 100%;
}

.project-slides::-webkit-scrollbar {
  display: none;
}

.project-slide {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
  height: 100%;
}

.project-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(15, 46, 86, 0.7);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.project-nav--prev {
  left: 8px;
}

.project-nav--next {
  right: 8px;
}

.project-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.project-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.project-dot.is-active {
  background: var(--accent);
}

.project-media img,
.project-placeholder {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.project-thumbs {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 0.5rem;
  background: #f4f6fa;
}

.project-thumb {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-placeholder {
  background:
    radial-gradient(circle at 25% 20%, rgba(183, 154, 90, 0.4) 0, rgba(183, 154, 90, 0) 45%),
    linear-gradient(130deg, #0f2f57 0%, #254e82 52%, #7c9ec8 100%);
}

.project-content {
  position: relative;
  margin: 0.6rem;
  padding: 0.8rem 0.8rem 0.85rem;
  border-radius: 9px;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(213, 221, 234, 0.8);
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow: hidden;
  flex: 1;
}

.project-content h3 {
  margin: 0 0 0.2rem;
  font-size: 0.96rem;
  line-height: 1.25;
  min-height: 2.5em;
}

.project-facts {
  margin: 0 0 0.35rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.12rem;
  font-size: 0.77rem;
  color: #375073;
}

.project-facts strong {
  color: #17375f;
}

.project-content p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 9;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card__cta {
  width: fit-content;
  margin-top: auto;
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  background: var(--accent);
  color: #102f57;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.project-tags {
  margin-top: auto;
  padding-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid #d2dcec;
  background: #f2f6fd;
  color: #15375f;
  font-size: 0.72rem;
  font-weight: 700;
}

.project-single {
  padding: 3.4rem 0 4.4rem;
  background:
    radial-gradient(circle at 10% 5%, rgba(183, 154, 90, 0.14), transparent 34%),
    linear-gradient(180deg, #fbfaf6 0%, #f4efe5 100%);
}

.project-single__article {
  display: grid;
  gap: 1.7rem;
}

.project-single__back {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.project-single__back::before {
  content: "<";
  display: inline-grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(183, 154, 90, 0.18);
}

.project-single__header {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  align-items: start;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border: 1px solid #e0d9c9;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 45px rgba(16, 47, 87, 0.08);
}

.project-single__eyebrow {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.project-single__intro h1 {
  margin: 0;
}

.project-single__summary {
  max-width: 62ch;
  margin: 1rem 0 1.2rem;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-soft);
}

.project-single__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.btn--secondary {
  display: inline-block;
  border: 1px solid #cdbf9d;
  color: #102f57;
  background: #fff;
}

.project-single__meta {
  padding: 1.2rem 1.3rem;
}

.project-single__meta h2,
.project-single__content h2 {
  margin-top: 0;
}

.project-single__meta .project-facts {
  font-size: 0.95rem;
  gap: 0.5rem;
  margin-bottom: 0;
}

.project-single__media .project-media {
  height: clamp(320px, 52vw, 720px);
  min-height: 320px;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(16, 47, 87, 0.12);
  border: 1px solid #d5ddea;
}

.project-single__content {
  padding: clamp(1.3rem, 3vw, 2.2rem);
  max-width: 920px;
}

.project-single__content p {
  margin: 0 0 1rem;
  line-height: 1.75;
}

.project-single__content > *:last-child {
  margin-bottom: 0;
}

@media (min-width: 1200px) {
  .project-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid #e8e3d8;
  padding: 1.35rem;
  box-shadow: 0 12px 26px rgba(19, 18, 14, 0.06);
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.18rem;
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
}

@media (min-width: 1180px) {
  html {
    scroll-padding-top: 110px;
  }

  body {
    padding-top: 98px;
  }

  .site-header {
    position: fixed;
    right: 0;
    left: 0;
  }

  body.admin-bar .site-header {
    top: 32px;
  }

  .site-header__inner {
    gap: 1.4rem;
    padding: 0.85rem 0;
  }

  .branding--logo .custom-logo {
    max-height: 76px;
  }

  .header-actions {
    margin-left: 0.4rem;
  }

  .header-phone,
  .header-instagram {
    font-size: 0.95rem;
    padding: 0.5rem 0.95rem;
  }

  .main-nav ul {
    gap: 1.35rem;
  }

  .main-nav a {
    font-size: 0.95rem;
    letter-spacing: 0.04em;
  }

  .desktop-contact-sidebar {
    position: fixed;
    right: 0;
    top: 42%;
    z-index: 19;
    display: grid;
    gap: 0.55rem;
    transform: translateY(-50%);
  }

  .desktop-contact-sidebar a {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: min(430px, calc(100vw - 2rem));
    min-height: 68px;
    padding: 0.55rem 0.9rem 0.55rem 0.65rem;
    border: 1px solid #d7caa9;
    border-right: 0;
    border-radius: 16px 0 0 16px;
    background: color-mix(in srgb, var(--surface) 94%, var(--accent));
    box-shadow: 0 12px 28px rgba(16, 47, 87, 0.13);
    color: var(--text);
    transform: translateX(calc(100% - 78px));
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  }

  .desktop-contact-sidebar a:hover,
  .desktop-contact-sidebar a:focus-visible {
    transform: translateX(0);
    background: #fff;
    box-shadow: 0 16px 34px rgba(16, 47, 87, 0.18);
  }

  .desktop-contact-sidebar__icon {
    display: inline-flex;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
  }

  .desktop-contact-sidebar__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .desktop-contact-sidebar__text {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
  }

  .desktop-contact-sidebar a:hover .desktop-contact-sidebar__text,
  .desktop-contact-sidebar a:focus-visible .desktop-contact-sidebar__text {
    opacity: 1;
    transform: translateX(0);
  }

  .desktop-contact-sidebar__text span {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-dark);
  }

  .desktop-contact-sidebar__text strong {
    font-size: 0.95rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .hero {
    min-height: 62vh;
    display: flex;
    align-items: center;
  }

  .hero .container {
    width: min(calc(100% - 5rem), var(--max));
  }

  .hero h1 {
    font-size: clamp(3rem, 5.1vw, 5rem);
    max-width: 13ch;
  }

  .hero p {
    max-width: 760px;
    font-size: 1.15rem;
  }

  .project-grid {
    gap: 1.1rem;
  }
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.about-box {
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, #d7cfbf);
}

.team-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.person {
  text-align: center;
}

.person img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.7rem;
}

.person-avatar {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  max-width: 100%;
  margin: 0 auto 0.9rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.38), transparent 32%),
    color-mix(in srgb, var(--accent) 22%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, #d7cfbf);
}

.person-avatar svg {
  width: 58px;
  height: auto;
  color: var(--accent-dark);
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  stroke-linecap: round;
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 1rem 1.2rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-answer {
  border-top: 1px solid #e6e0d3;
  padding: 1rem 1.2rem;
}

.contact {
  background: linear-gradient(180deg, #efe8d7 0%, #f7f3eb 100%);
}

.contact-grid {
  display: grid;
  gap: 1rem 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.25rem 0;
}

.contact-item__icon {
  display: inline-flex;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.contact-item__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item__text {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
  color: var(--text);
}

.contact-item__text strong {
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-item__text a,
.contact-item__text span {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.contact-map {
  margin-top: 1.5rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid #e0d9c9;
  border-radius: var(--radius);
}

.contact-map iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  border: 0;
}

.contact-map a {
  display: inline-flex;
  padding: 0.85rem 1rem;
  font-weight: 800;
}

.contact-form-wrap {
  margin-top: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid #e0d9c9;
  padding: 1.25rem;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.contact-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 37, 0.64);
  backdrop-filter: blur(4px);
}

.contact-modal__dialog {
  position: relative;
  width: min(720px, 100%);
  max-height: min(88dvh, 820px);
  overflow-y: auto;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border: 1px solid #e0d9c9;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(8, 20, 37, 0.34);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s ease;
}

.contact-modal[aria-hidden="false"] .contact-modal__dialog {
  transform: translateY(0) scale(1);
}

.contact-modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #d5dcea;
  border-radius: 8px;
  background: #f7f8fb;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.contact-modal__close:hover,
.contact-modal__close:focus-visible {
  background: #edf1f8;
}

.contact-modal__title {
  margin: 0 2.8rem 0.25rem 0;
  font-family: "Oswald", Impact, sans-serif;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  line-height: 1.1;
}

.contact-modal__intro {
  margin: 0 2.8rem 1rem 0;
  color: var(--text-soft);
}

.pt-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.pt-form-field {
  display: grid;
  gap: 0.35rem;
}

.pt-form-field input,
.pt-form-field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #d5cebf;
  font: inherit;
}

.pt-form-field input.has-error,
.pt-form-field textarea.has-error {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.pt-form-error {
  display: none;
  color: #9f1f17;
  font-size: 0.88rem;
  font-weight: 600;
}

.pt-form-error.is-visible {
  display: block;
}

.pt-form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.pt-form-services {
  margin: 1rem 0 0;
  padding: 0;
  border: 0;
}

.pt-form-services legend {
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.pt-form-services__list {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pt-form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #d5cebf;
  border-radius: 8px;
  background: #faf7f1;
}

.pt-form-checkbox input {
  margin-top: 0.2rem;
}

.pt-form-submit {
  margin-top: 0.9rem;
}

.pt-form-submit:disabled,
.pt-form-submit.is-loading {
  cursor: wait;
  opacity: 0.72;
}

.pt-form-alert {
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.9rem;
  font-weight: 600;
}

.pt-form-alert[hidden] {
  display: none;
}

.pt-form-alert--success {
  background: #e8f4e8;
  color: #165d16;
}

.pt-form-alert--error {
  background: #fbe8e8;
  color: #7a1b1b;
}

.site-footer {
  border-top: 1px solid #ddd7ca;
  color: #686868;
  padding: 1.2rem 0;
  font-size: 0.92rem;
  background: #f3eee2;
}

.site-footer a {
  color: var(--text);
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--accent-dark);
}

.site-footer__sep {
  margin: 0 0.45rem;
  color: #a29b8e;
}

.mobile-contact-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  bottom: 0;
  z-index: 60;
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  box-sizing: border-box;
  background: rgba(15, 46, 86, 0.93);
  backdrop-filter: blur(6px);
  box-shadow: 0 -10px 22px rgba(0, 0, 0, 0.2);
}

.mobile-contact-bar__btn {
  display: grid;
  place-items: center;
  min-height: 44px;
  min-width: 0;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-contact-bar__btn--phone {
  background: var(--accent);
  color: #102f57;
}

.mobile-contact-bar__btn--contact {
  background: #ffffff;
  color: #102f57;
}

@media (max-width: 860px) {
  .site-header__inner,
  .container {
    width: 100%;
    padding-inline: 1rem;
  }

  section {
    padding: 3.4rem 0;
  }

  .section--soft {
    box-shadow: 0 0 0 100vmax #f5f1e7;
    clip-path: inset(0 -100vmax);
  }

  .section-title {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
    line-height: 1.18;
  }

  .section-intro {
    margin-bottom: 1.55rem;
  }

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

  .main-nav {
    display: none;
  }

  .header-burger {
    display: inline-flex;
  }

  .hero {
    padding-top: 6rem;
  }

  .project-media {
    height: clamp(220px, 54vw, 300px);
    min-height: 220px;
  }

  .project-content {
    min-height: 170px;
  }

  .project-content p {
    -webkit-line-clamp: 7;
  }

  .project-single__header {
    grid-template-columns: 1fr;
  }

  .header-actions {
    display: none;
  }

  body {
    padding-bottom: 88px;
  }

  .mobile-contact-bar {
    display: grid;
  }

  .contact-modal {
    align-items: end;
    padding: 0.75rem;
  }

  .contact-modal__dialog {
    max-height: min(86dvh, 760px);
    border-radius: 12px 12px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .branding--logo .custom-logo-link,
  .branding--logo .custom-logo-link::after,
  .branding--logo .custom-logo,
  .site-header,
  .site-header.is-scrolled .branding--logo .custom-logo-link {
    animation: none !important;
    transition: none !important;
  }
}
