@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Culori preluate din logo si din peretii clinicii */
  --indigo: #34468f;
  --indigo-deep: #232f66;
  --sky: #29abe2;
  --sky-tint: #e4f4fb;
  --lime: #a6d046;
  --lime-tint: #f0f7dd;
  --leaf: #47721a;
  --ink: #1b2240;
  --ink-soft: #525c7a;
  --line: #dfe3ec;
  --paper: #ffffff;
  --mist: #f5f7f9;
  --radius: 10px;
  --gutter: clamp(1.25rem, 0.75rem + 2.5vw, 2.5rem);
  --section: clamp(4rem, 2.5rem + 6vw, 7.5rem);
}

* {
  box-sizing: border-box;
}

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

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

body {
  margin: 0;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1240px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1100;
  background: var(--indigo);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Tipografie */

h1, h2, h3 {
  margin: 0;
  color: var(--indigo-deep);
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.55rem + 3.7vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.9rem, 1.45rem + 1.9vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.mark {
  background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 92% / 100% 0.14em;
  white-space: nowrap;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--indigo);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  flex: none;
  background: var(--lime);
  border-radius: 2px;
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.2rem);
  max-width: 56ch;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}

.section-head p {
  margin-top: 1rem;
  color: var(--ink-soft);
}

/* Bara de sus si navigatie */

.topbar {
  background: var(--indigo-deep);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.875rem;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-height: 2.5rem;
}

.top-links > :first-child {
  margin-right: auto;
}

.top-links a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand img {
  width: 42px;
  height: 45px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name strong {
  color: var(--indigo);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-name span {
  margin-top: 0.15rem;
  color: var(--indigo);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  position: relative;
  padding-block: 0.4rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

nav a:hover,
nav a.active {
  color: var(--indigo);
}

nav a:not(.cta)::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

nav a:hover::after,
nav a.active::after {
  transform: scaleX(1);
}

nav .cta,
.button.primary {
  background: var(--indigo);
  color: #fff;
}

nav .cta {
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.15s ease;
}

nav .cta:hover {
  background: var(--indigo-deep);
  color: #fff;
}

.menu-toggle {
  display: none;
}

/* Butoane */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button.primary:hover {
  background: var(--indigo-deep);
}

.button.secondary {
  background: transparent;
  color: var(--indigo);
  box-shadow: inset 0 0 0 1.5px var(--indigo);
}

.button.secondary:hover {
  background: var(--indigo);
  color: #fff;
}

.button.on-color {
  background: var(--indigo-deep);
  color: #fff;
}

.button.on-color:hover {
  background: var(--ink);
}

/* Sectiuni */

main section {
  padding-block: var(--section);
}

.tinted {
  background: var(--mist);
}

/* Cadrul foto: blocurile colorate imita peretii verzi si albastri ai clinicii */

.framed {
  position: relative;
  isolation: isolate;
}

.framed::before,
.framed::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: var(--radius);
}

.framed::before {
  right: calc(-1 * clamp(0.75rem, 2vw, 1.75rem));
  bottom: calc(-1 * clamp(0.75rem, 2vw, 1.75rem));
  width: 62%;
  height: 58%;
  background: var(--lime);
}

.framed::after {
  left: calc(-1 * clamp(0.5rem, 1.2vw, 1rem));
  top: 9%;
  width: 34%;
  height: 34%;
  background: var(--sky);
}

.framed img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}

/* Hero */

.hero {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--section);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: center;
}

.hero .lead {
  margin-top: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0 clamp(1.5rem, 4vw, 3.5rem);
  margin: clamp(2rem, 1.5rem + 2vw, 3.25rem) 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.stat dt {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.stat dd {
  order: -1;
  margin: 0;
  color: var(--indigo);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat {
  display: flex;
  flex-direction: column;
}

.hero-visual img {
  aspect-ratio: 4 / 5;
  object-position: 40% 60%;
}

.hero-card {
  position: absolute;
  left: clamp(-3.5rem, -3.5vw, -1rem);
  bottom: -1.5rem;
  max-width: 17.5rem;
  padding: 1.1rem 1.25rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(27, 34, 64, 0.14);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.hero-card strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--indigo-deep);
  font-size: 1.0625rem;
}

.hero-card span {
  color: var(--ink-soft);
}

/* De ce noi */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}

.split .section-head {
  margin-bottom: 0;
}

.feature-list {
  display: grid;
}

.feature {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
}

.feature:first-child {
  padding-top: 0;
  border-top: 0;
}

.feature:last-child {
  padding-bottom: 0;
}

.feature p {
  margin-top: 0.4rem;
  color: var(--ink-soft);
}

.icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  flex: none;
  border-radius: var(--radius);
  color: var(--indigo);
  background: var(--sky-tint);
}

.icon.lime {
  color: var(--leaf);
  background: var(--lime-tint);
}

.icon svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Servicii */

.photo-grid,
.service-grid,
.team-grid,
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-grid {
  gap: clamp(2rem, 1rem + 2vw, 3rem) clamp(1.25rem, 2.5vw, 2rem);
}

.photo-card {
  display: flex;
  flex-direction: column;
}

.photo-card .media {
  aspect-ratio: 4 / 3;
  margin-bottom: 1.1rem;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--line);
}

.photo-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-card:hover .media img {
  transform: scale(1.03);
}

.photo-card .media.block {
  display: grid;
  place-items: center;
  background: var(--indigo);
  color: var(--lime);
}

.photo-card .media.block svg {
  width: 4.5rem;
  height: 4.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-card p {
  margin-top: 0.4rem;
  color: var(--ink-soft);
}

.photo-card .tags {
  margin-top: 0.6rem;
  color: var(--indigo);
  font-size: 0.9rem;
  font-weight: 500;
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  color: var(--indigo);
  font-weight: 600;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 0.15rem;
}

.more-link:hover {
  color: var(--indigo-deep);
  border-bottom-color: var(--indigo-deep);
}

.service-grid {
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-card .icon {
  margin-bottom: 1.25rem;
}

.service-card p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-size: 0.975rem;
}

.service-card li {
  position: relative;
  padding-left: 1.25rem;
  margin-top: 0.25rem;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--lime);
  border-radius: 2px;
}

/* Preturi */

.price-list {
  margin: 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}

.price-row:first-child {
  padding-top: 0;
}

.price-row dt {
  color: var(--ink);
}

.price-row dd {
  margin: 0;
  flex: none;
  color: var(--indigo);
  font-weight: 700;
}

/* Galerie */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(11rem, 7rem + 12vw, 20rem);
  gap: clamp(0.5rem, 1vw, 0.875rem);
  margin: 0;
}

.gallery-grid figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  grid-column: span 4;
  background: var(--line);
}

.gallery-grid .wide {
  grid-column: span 5;
}

.gallery-grid .narrow {
  grid-column: span 3;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-grid figcaption {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  padding: 0.2rem 0.6rem;
  background: var(--paper);
  border-radius: 5px;
  color: var(--indigo-deep);
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Testimoniale */

.testimonial-grid {
  gap: clamp(2rem, 4vw, 3.5rem);
}

.testimonial {
  display: flex;
  flex-direction: column;
  padding-top: 1.25rem;
  border-top: 3px solid var(--lime);
}

.testimonial:nth-child(2) {
  border-top-color: var(--sky);
}

.testimonial:nth-child(3) {
  border-top-color: var(--indigo);
}

.testimonial blockquote {
  flex: 1;
  margin: 0;
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1.55;
}

.person {
  margin-top: 1.25rem;
  line-height: 1.35;
}

.person strong {
  display: block;
  color: var(--indigo-deep);
}

.person span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Banner programare */

.mini-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 1rem + 4vw, 4rem);
  background: var(--lime);
  border-radius: var(--radius);
}

.mini-banner h2 {
  color: var(--indigo-deep);
}

.mini-banner p {
  margin-top: 0.6rem;
  color: var(--indigo-deep);
  max-width: 52ch;
}

.mini-banner .button {
  flex: none;
}

/* Antet pagini interioare */

main section.page-hero {
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  background: var(--mist);
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(2rem, 1rem + 5vw, 6rem);
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 1.5rem + 2.8vw, 3.75rem);
}

.page-hero .lead {
  margin-top: 1.25rem;
}

.page-hero .framed img {
  aspect-ratio: 4 / 3;
}

/* Echipa */

.about-text p + p {
  margin-top: 1rem;
}

.about-text {
  color: var(--ink-soft);
}

.about-text h2 {
  margin-bottom: 1.25rem;
}

.about-photo img {
  aspect-ratio: 1 / 1;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

.value-card {
  padding: clamp(1.75rem, 1rem + 3vw, 3.25rem);
  border-radius: var(--radius);
  background: var(--sky-tint);
}

.value-card.lime {
  background: var(--lime-tint);
}

.value-card p {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  line-height: 1.5;
}

.team-grid {
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.monogram {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.1rem;
  padding: 1.1rem 1.35rem;
  border-radius: var(--radius);
  background: var(--indigo);
  color: #fff;
  font-size: clamp(3rem, 2rem + 3vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.team-card:nth-child(2) .monogram {
  background: var(--sky);
  color: var(--indigo-deep);
}

.team-card:nth-child(3) .monogram {
  background: var(--lime);
  color: var(--indigo-deep);
}

.team-card .role {
  color: var(--indigo);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-card h3 {
  margin-top: 0.2rem;
}

.team-card p {
  margin-top: 0.5rem;
  color: var(--ink-soft);
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem);
  align-items: start;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.info-list li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1.1rem;
  align-items: center;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
}

.info-list strong {
  display: block;
  color: var(--indigo-deep);
}

.info-list div {
  color: var(--ink-soft);
}

.info-list a:hover {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-box {
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  background: var(--mist);
  border-radius: var(--radius);
}

.form-box form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.75rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field.full,
.form-box .button {
  grid-column: 1 / -1;
}

.field label {
  color: var(--indigo-deep);
  font-size: 0.9375rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #b9c1d3;
  border-radius: 8px;
  background: var(--paper);
  font: inherit;
  color: var(--ink);
}

input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 0;
  border-color: var(--indigo);
  border-radius: 8px;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-note {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-note a {
  color: var(--indigo);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#programare {
  scroll-margin-top: 6rem;
}

textarea::placeholder {
  color: var(--ink-soft);
}

/* Footer */

.footer {
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 1.5rem;
  background: var(--indigo-deep);
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
}

.footer .row {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr 1fr;
  gap: 2.5rem;
}

.footer .brand {
  margin-bottom: 1.1rem;
}

.footer .brand img {
  padding: 4px;
  width: 48px;
  height: 50px;
  background: #fff;
  border-radius: 8px;
}

.footer .brand-name strong,
.footer .brand-name span,
.footer h3 {
  color: #fff;
}

.footer h3 {
  margin-bottom: 0.9rem;
  font-size: 1rem;
  letter-spacing: 0;
}

.footer p {
  max-width: 34ch;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.footer ul a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer .bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
}

/* Aparitie discreta la scroll, doar unde browserul o suporta nativ */

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes rise {
      from {
        opacity: 0;
        transform: translateY(1.25rem);
      }
    }

    .reveal {
      animation: rise auto ease-out backwards;
      animation-timeline: view();
      animation-range: entry 0% entry 45%;
    }
  }
}

@media (max-width: 1060px) {
  nav {
    gap: 1.25rem;
  }

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

  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

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

@media (max-width: 900px) {
  .top-links > :first-child {
    display: none;
  }

  .top-links {
    justify-content: space-between;
  }

  .nav-wrap {
    min-height: 66px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--indigo);
    cursor: pointer;
  }

  .menu-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
  }

  .menu-toggle .close,
  .menu-toggle[aria-expanded="true"] .open {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] .close {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgba(27, 34, 64, 0.1);
  }

  nav.open {
    display: flex;
  }

  nav a:not(.cta) {
    padding-block: 0.8rem;
    border-bottom: 1px solid var(--line);
  }

  nav a:not(.cta)::after {
    display: none;
  }

  nav a.active {
    font-weight: 700;
  }

  nav .cta {
    margin-top: 1rem;
    padding-block: 0.85rem;
    text-align: center;
  }

  .hero .container,
  .page-hero .container,
  .split,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    margin-right: clamp(0.75rem, 2vw, 1.75rem);
  }

  .hero-visual img {
    aspect-ratio: 1 / 1;
    object-position: 40% 55%;
  }

  .hero-card {
    left: 0.75rem;
    bottom: 0.75rem;
  }

  .page-hero .framed {
    margin-right: clamp(0.75rem, 2vw, 1.75rem);
  }

  .page-hero .framed img {
    aspect-ratio: 16 / 9;
  }

  .gallery-grid figure,
  .gallery-grid .wide,
  .gallery-grid .narrow {
    grid-column: span 6;
  }

  .mini-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .photo-grid,
  .service-grid,
  .team-grid,
  .value-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-box form {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 1rem;
  }

  .stat dt {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .hero-card {
    position: static;
    max-width: none;
    margin-top: 0.75rem;
    box-shadow: none;
    border: 1px solid var(--line);
  }

  .footer .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

/* Galerie */

main section.page-hero.compact .container {
  grid-template-columns: minmax(0, 1fr);
}

main section.photos {
  padding-block: 0 var(--section);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.filter-bar {
  position: sticky;
  top: 77px;
  z-index: 900;
  margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-block: 0.75rem;
}

.filters button {
  flex: none;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.975rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filters button span {
  margin-left: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.filters button:hover {
  border-color: var(--indigo);
}

.filters button[aria-pressed="true"] {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}

.filters button[aria-pressed="true"] span {
  color: rgba(255, 255, 255, 0.8);
}

.photo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: clamp(0.375rem, 0.8vw, 0.75rem);
  list-style: none;
  padding: 0;
  margin: 0;
}

.photo-wall a {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  background: var(--mist);
}

.photo-wall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-wall a:hover img {
  transform: scale(1.03);
}

/* Lightbox */

.lightbox {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #10152f;
  color: #fff;
}

.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.lightbox:modal {
  overscroll-behavior: contain;
}

.lightbox::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: #10152f;
}

.lightbox-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem var(--gutter);
}

.lightbox-count {
  font-size: 0.975rem;
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 clamp(0.5rem, 5vw, 5.5rem) 1rem;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  min-height: 0;
  border-radius: 6px;
  touch-action: pan-y pinch-zoom;
}

.lightbox-stage img:not([src^="img/"]) {
  visibility: hidden;
}

.lightbox-btn {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-btn svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-btn.prev,
.lightbox-btn.next {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
}

.lightbox-btn.prev {
  left: var(--gutter);
}

.lightbox-btn.next {
  right: var(--gutter);
}

@media (max-width: 900px) {
  .filter-bar {
    top: 67px;
  }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .photo-wall {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.5rem), 1fr));
  }

  .lightbox-btn.prev,
  .lightbox-btn.next {
    top: auto;
    bottom: 1.5rem;
    translate: none;
    background: rgba(16, 21, 47, 0.75);
  }
}
