:root {
  --ink: #13252b;
  --ink-soft: #3a555e;
  --paper: #f3f7f6;
  --paper-deep: #e4eeeb;
  --teal: #0f6d6a;
  --teal-bright: #1a9a95;
  --mint: #b8e0d8;
  --cream: #f7faf9;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(19, 37, 43, 0.18);
  --radius: 4px;
  --header-h: 72px;
  --footer-h: 44px;
  --page-pad: clamp(1rem, 3vw, 1.75rem);
  --section-pad: clamp(3rem, 8vw, 5.5rem);
  --content-max: 1080px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(184, 224, 216, 0.55), transparent 60%),
    radial-gradient(900px 500px at 100% 20%, rgba(15, 109, 106, 0.08), transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, var(--paper) 40%, var(--paper-deep) 100%);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body.app-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
}

@supports (height: 100svh) {
  body.app-shell {
    height: 100svh;
    max-height: 100dvh;
  }
}

.page-stage {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
}

.page {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.45s ease,
    visibility 0.45s;
  z-index: 1;
  will-change: transform, opacity;
  box-sizing: border-box;
}

.page.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  z-index: 3;
}

.page.is-enter-right {
  opacity: 1;
  visibility: visible;
  transform: translate3d(100%, 0, 0);
  z-index: 4;
}

.page.is-enter-left {
  opacity: 1;
  visibility: visible;
  transform: translate3d(-100%, 0, 0);
  z-index: 4;
}

.page.is-leave-left {
  opacity: 0.35;
  visibility: visible;
  transform: translate3d(-28%, 0, 0) scale(0.98);
  z-index: 2;
}

.page.is-leave-right {
  opacity: 0.35;
  visibility: visible;
  transform: translate3d(28%, 0, 0) scale(0.98);
  z-index: 2;
}

.page-panel {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.85rem, 2.5vw, 2rem) calc(var(--page-pad) + var(--safe-right)) clamp(0.85rem, 2.5vw, 2rem) calc(var(--page-pad) + var(--safe-left));
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.page-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroDrift 22s ease-in-out infinite alternate;
}

.page-bg-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(247, 250, 249, 0.82) 0%, rgba(228, 238, 235, 0.72) 45%, rgba(15, 109, 106, 0.28) 100%),
    linear-gradient(to top, rgba(19, 37, 43, 0.22), transparent 50%);
}

.page-bg-veil-deep {
  background:
    linear-gradient(145deg, rgba(10, 36, 40, 0.55) 0%, rgba(247, 250, 249, 0.78) 48%, rgba(15, 109, 106, 0.35) 100%);
}

.page-bg-veil-home {
  background:
    linear-gradient(120deg, rgba(10, 36, 40, 0.82) 0%, rgba(10, 36, 40, 0.45) 48%, rgba(15, 109, 106, 0.35) 100%),
    linear-gradient(to top, rgba(10, 36, 40, 0.75), transparent 45%);
}

.page-glass {
  padding: clamp(0.9rem, 2.8vw, 1.75rem);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(19, 37, 43, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.55);
  width: min(var(--content-max), 100%);
  max-width: 100%;
  box-sizing: border-box;
}

.page-glass-wide {
  width: min(1100px, 100%);
}

.page-panel .section-inner {
  width: min(var(--content-max), 100%);
  max-width: 100%;
  margin: 0 auto;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

iframe {
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 2px;
}

.site-header {
  position: relative;
  z-index: 100;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding:
    calc(0.55rem + var(--safe-top))
    calc(var(--page-pad) + var(--safe-right))
    0.55rem
    calc(var(--page-pad) + var(--safe-left));
  background: rgba(243, 247, 246, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(19, 37, 43, 0.08);
  box-sizing: border-box;
}

.logo {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 8rem);
  line-height: 0;
}

.logo-mark {
  display: block;
  width: auto;
  height: clamp(32px, 8vw, 52px);
  max-width: 100%;
  overflow: hidden;
}

.logo-mark-hero {
  width: min(560px, 100%);
  height: auto;
  max-height: clamp(72px, 18vh, 180px);
  max-width: 100%;
  overflow: hidden;
  filter: drop-shadow(0 6px 18px rgba(47, 116, 224, 0.25));
}

.logo-text {
  font-family: "Nunito", "Varela Round", "Manrope", Arial, sans-serif;
  font-weight: 800;
  fill: rgba(255, 255, 255, 0.4);
  stroke: #2f74e0;
  stroke-linejoin: round;
  stroke-linecap: round;
  paint-order: stroke fill;
}

.logo-sukces {
  font-size: 148px;
  letter-spacing: -6px;
  stroke-width: 10px;
}

.logo-sub {
  font-size: 78px;
  letter-spacing: -2px;
  stroke-width: 7px;
}

.hero-brand {
  margin: 0 0 1rem;
  line-height: 0;
}

.nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-left: auto;
  font-size: clamp(0.82rem, 1.6vw, 0.92rem);
  font-weight: 500;
  min-width: 0;
}

.nav a {
  position: relative;
  color: var(--ink-soft);
  padding: 0.25rem 0;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nav a.is-active {
  color: var(--teal);
  font-weight: 700;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--teal-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--teal);
}

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

.nav a[data-nav="dentists"] {
  border: 1px solid rgba(15, 109, 106, 0.35);
  background: rgba(15, 109, 106, 0.08);
  color: var(--teal);
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius);
}

.nav a[data-nav="dentists"]::after {
  display: none;
}

.nav a[data-nav="dentists"].is-active,
.nav a[data-nav="dentists"]:hover,
.nav a[data-nav="dentists"]:focus-visible {
  background: rgba(15, 109, 106, 0.16);
  border-color: var(--teal);
  color: var(--ink);
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 44px;
  min-height: 36px;
  padding: 0.35rem 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.lang-btn img {
  width: 22px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(19, 37, 43, 0.12);
}

.lang-btn:hover,
.lang-btn:focus-visible {
  background: rgba(15, 109, 106, 0.08);
  color: var(--teal);
}

.lang-btn.is-active {
  background: rgba(15, 109, 106, 0.12);
  border-color: rgba(15, 109, 106, 0.28);
  color: var(--teal);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100%;
  height: 100%;
  display: grid;
  align-items: end;
  padding:
    clamp(0.85rem, 3vw, 2.5rem)
    calc(var(--page-pad) + var(--safe-right))
    clamp(1rem, 4vw, 3rem)
    calc(var(--page-pad) + var(--safe-left));
  color: var(--white);
  overflow: auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(10, 36, 40, 0.82) 0%, rgba(10, 36, 40, 0.45) 48%, rgba(15, 109, 106, 0.35) 100%),
    linear-gradient(to top, rgba(10, 36, 40, 0.75), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-width: 100%;
  animation: riseIn 0.9s ease both;
  box-sizing: border-box;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.8vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
  max-width: 32ch;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: clamp(0.86rem, 2vw, 0.92rem);
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
  }
}

.btn-primary {
  background: var(--mint);
  color: var(--ink);
}

@media (hover: hover) {
  .btn-primary:hover {
    background: #c9ebe4;
  }
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

@media (hover: hover) {
  .btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.14);
  }
}

.section {
  padding: var(--section-pad) calc(var(--page-pad) + var(--safe-right)) var(--section-pad) calc(var(--page-pad) + var(--safe-left));
}

.section-inner {
  width: min(var(--content-max), 100%);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: clamp(0.72rem, 1.8vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.section h2 {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 20ch;
  overflow-wrap: break-word;
}

.section-text {
  margin: 0;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
}

.about {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(184, 224, 216, 0.25));
}

.services {
  padding-top: clamp(2.5rem, 6vw, 4rem);
}

.service-list {
  list-style: none;
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.1rem, 3vw, 1.5rem) clamp(1.25rem, 3vw, 2rem);
}

.service-list li {
  min-width: 0;
  padding-top: 1.1rem;
  border-top: 2px solid rgba(15, 109, 106, 0.25);
  animation: fadeUp 0.7s ease both;
}

.service-list li:nth-child(2) { animation-delay: 0.08s; }
.service-list li:nth-child(3) { animation-delay: 0.16s; }
.service-list li:nth-child(4) { animation-delay: 0.24s; }

.service-list h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  font-weight: 700;
}

.service-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(0.92rem, 2vw, 1rem);
}

.gallery {
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.85) 0%, rgba(228, 238, 235, 0.9) 100%);
}

.gallery-inner {
  text-align: center;
}

.gallery-inner h2,
.gallery-intro {
  margin-left: auto;
  margin-right: auto;
}

.page-gallery .carousel-viewport {
  aspect-ratio: 16 / 9;
  max-height: min(48vh, 420px);
}

.page-gallery .gallery-inner h2 {
  margin-bottom: 0.5rem;
}

.page-about .section-text,
.page-services .section-text {
  max-width: 62ch;
}

.page-services .service-list {
  margin-top: 1.25rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  width: min(1100px, 100%);
}

.contact .map-wrap {
  margin-top: 0;
  width: 100%;
  max-width: none;
}

.contact .map-frame {
  height: clamp(200px, 36vh, 320px);
}

.dentists-page-inner {
  width: min(720px, 100%);
}

.dentists-page .dentists-form {
  margin-top: 1rem;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.dentists-page .dentists-form textarea {
  min-height: 90px;
}

.carousel {
  position: relative;
  width: min(860px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.75rem 0.5rem;
}

.carousel-viewport {
  grid-column: 2;
  grid-row: 1;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--shadow);
  background: #0a2428;
  aspect-ratio: 16 / 10;
  width: 100%;
  min-width: 0;
}

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

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(4%) scale(1.02);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  z-index: 1;
}

.slide.is-exit {
  opacity: 0;
  transform: translateX(-4%) scale(0.98);
}

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

.slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(0.9rem, 3vw, 1.4rem) clamp(0.8rem, 2.5vw, 1.2rem) clamp(0.8rem, 2.5vw, 1.1rem);
  background: linear-gradient(to top, rgba(10, 36, 40, 0.88), transparent);
  color: #fff;
  font-size: clamp(0.82rem, 2.2vw, 0.95rem);
  font-weight: 500;
  text-align: left;
}

.carousel-nav {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(15, 109, 106, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--teal);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  touch-action: manipulation;
}

@media (hover: hover) {
  .carousel-nav:hover,
  .carousel-nav:focus-visible {
    background: var(--mint);
    transform: scale(1.06);
  }
}

.carousel-nav.prev { grid-column: 1; grid-row: 1; }
.carousel-nav.next { grid-column: 3; grid-row: 1; }

.carousel-dots {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(15, 109, 106, 0.28);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  touch-action: manipulation;
}

.dot.is-active {
  background: var(--teal);
  transform: scale(1.2);
}

.contact {
  padding-bottom: calc(var(--section-pad) - 0.5rem + var(--safe-bottom));
}

.contact-card {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: min(100%, 520px);
  padding: clamp(1rem, 3vw, 1.4rem) clamp(1rem, 3vw, 1.6rem);
  background: rgba(255, 255, 255, 0.72);
  border-left: 3px solid var(--teal);
  font-style: normal;
  box-shadow: 0 12px 30px rgba(19, 37, 43, 0.08);
}

.contact-card strong {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.8vw, 1.25rem);
}

.contact-address-link {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.contact-address-link:hover,
.contact-address-link:focus-visible {
  color: var(--teal-bright);
}

.map-wrap {
  position: relative;
  display: block;
  margin-top: 1.5rem;
  width: min(720px, 100%);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-frame {
  display: block;
  width: 100%;
  height: clamp(220px, 50vw, 360px);
  border: 0;
  pointer-events: none;
}

.map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(0.75rem, 2.5vw, 1rem);
  background: linear-gradient(to top, rgba(10, 36, 40, 0.72), transparent 55%);
  transition: background 0.25s ease;
  text-decoration: none;
}

.map-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: clamp(0.8rem, 2.2vw, 0.9rem);
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  box-shadow: 0 8px 20px rgba(10, 36, 40, 0.2);
  transform: translateY(0);
  transition: transform 0.2s ease, background 0.2s ease;
}

@media (hover: hover) {
  .map-overlay:hover,
  .map-overlay:focus-visible {
    background: linear-gradient(to top, rgba(10, 36, 40, 0.82), rgba(15, 109, 106, 0.18) 55%);
  }

  .map-overlay:hover .map-cta,
  .map-overlay:focus-visible .map-cta {
    background: var(--mint);
    transform: translateY(-2px);
  }
}

.dentists-dialog {
  width: min(640px, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem - var(--safe-left) - var(--safe-right));
  max-height: calc(100dvh - 1.5rem - var(--safe-top) - var(--safe-bottom));
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  overflow: visible;
}

.dentists-dialog::backdrop {
  background: rgba(10, 36, 40, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dentists-dialog-panel {
  position: relative;
  padding: clamp(1.25rem, 4vw, 1.75rem) clamp(1rem, 3vw, 1.5rem) clamp(1rem, 3vw, 1.5rem);
  background: linear-gradient(165deg, #ffffff 0%, #f3f8f7 100%);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: auto;
  max-height: calc(100dvh - 1.5rem - var(--safe-top) - var(--safe-bottom));
  -webkit-overflow-scrolling: touch;
}

.dialog-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 109, 106, 0.1);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  background: rgba(15, 109, 106, 0.2);
}

.dialog-lead {
  margin: 0 0 1.35rem;
  padding-right: 2rem;
  color: var(--ink-soft);
  font-size: clamp(0.92rem, 2.2vw, 1rem);
}

.dentists-form {
  display: grid;
  gap: 0.95rem;
}

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

.dentists-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}

.dentists-form input,
.dentists-form select,
.dentists-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(19, 37, 43, 0.16);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
}

.dentists-form input:focus,
.dentists-form select:focus,
.dentists-form textarea:focus {
  outline: 2px solid rgba(26, 154, 149, 0.35);
  border-color: var(--teal-bright);
}

.dentists-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.btn-primary-solid {
  background: var(--teal);
  color: #fff;
  border: none;
  cursor: pointer;
}

@media (hover: hover) {
  .btn-primary-solid:hover {
    background: #0c5b58;
  }
}

.btn-primary-solid:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.btn-ghost-dark {
  border: 1px solid rgba(19, 37, 43, 0.2);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

@media (hover: hover) {
  .btn-ghost-dark:hover {
    border-color: var(--teal);
    color: var(--teal);
  }
}

.form-status {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
}

.form-status.is-success {
  background: rgba(15, 109, 106, 0.12);
  color: var(--teal);
}

.form-status.is-error {
  background: rgba(160, 40, 40, 0.1);
  color: #8a1f1f;
}

body.dialog-open {
  overflow: hidden;
}

.site-footer {
  position: relative;
  z-index: 90;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    0.45rem
    calc(var(--page-pad) + var(--safe-right))
    calc(0.45rem + var(--safe-bottom))
    calc(var(--page-pad) + var(--safe-left));
  text-align: center;
  color: var(--ink-soft);
  font-size: clamp(0.7rem, 1.8vw, 0.86rem);
  background: rgba(243, 247, 246, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(19, 37, 43, 0.08);
  box-sizing: border-box;
}

.site-footer p {
  margin: 0;
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Large tablets / small laptops */
@media (max-width: 1100px) {
  .nav {
    gap: 0.55rem 0.85rem;
  }
}

/* Tablets and phones */
@media (max-width: 900px) {
  :root {
    --page-pad: 0.85rem;
  }

  .site-header {
    row-gap: 0.4rem;
  }

  .logo {
    flex: 1 1 auto;
    max-width: calc(100% - 7.5rem);
  }

  .lang-switch {
    margin-left: auto;
    flex-shrink: 0;
  }

  .nav {
    flex: 1 1 100%;
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.55rem 0.85rem;
    padding: 0.15rem 0 0.35rem;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    align-items: center;
    justify-items: stretch;
  }

  .hero-content {
    width: 100%;
  }

  .page-panel {
    align-items: flex-start;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .page-gallery .carousel-viewport {
    max-height: min(42vh, 320px);
    aspect-ratio: 16 / 10;
  }

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

  .contact .map-frame {
    height: clamp(180px, 32vh, 260px);
  }

  .service-list {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .carousel {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
  }

  .carousel-viewport {
    grid-column: 1;
    width: 100%;
  }

  .carousel-nav {
    position: absolute;
    top: 40%;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
  }

  .carousel-nav.prev { left: 0.35rem; }
  .carousel-nav.next { right: 0.35rem; left: auto; }

  .carousel-dots {
    grid-column: 1;
  }

  .section h2 {
    max-width: none;
  }
}

/* Phones */
@media (max-width: 640px) {
  .lang-btn span {
    display: none;
  }

  .lang-btn {
    min-width: 36px;
    min-height: 36px;
    padding: 0.35rem;
  }

  .logo-mark {
    height: 30px;
  }

  .logo-mark-hero {
    max-height: min(88px, 16vh);
  }

  .hero h1 {
    font-size: clamp(1rem, 4.6vw, 1.25rem);
    max-width: none;
  }

  .hero-lead {
    font-size: 0.92rem;
    max-width: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .page-glass {
    padding: 0.85rem 0.8rem;
    border-radius: 8px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .form-actions .btn {
    width: 100%;
  }

  .map-cta {
    width: 100%;
  }

  .nav {
    font-size: 0.8rem;
    gap: 0.45rem 0.7rem;
  }

  .nav a[data-nav="dentists"] {
    padding: 0.3rem 0.5rem;
    font-size: 0.78rem;
  }

  .page-gallery .carousel-viewport {
    max-height: min(36vh, 260px);
    aspect-ratio: 5 / 4;
  }

  .dentists-page .dentists-form textarea {
    min-height: 88px;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .nav {
    gap: 0.4rem 0.55rem;
    font-size: 0.74rem;
  }

  .site-footer {
    font-size: 0.68rem;
    padding-top: 0.35rem;
    padding-bottom: calc(0.35rem + var(--safe-bottom));
  }
}

/* Wide desktops */
@media (min-width: 1400px) {
  .section-inner {
    max-width: 1160px;
  }

  .carousel {
    max-width: 940px;
  }
}

/* Touch / coarse pointers */
@media (pointer: coarse) {
  .nav a,
  .lang-btn,
  .carousel-nav,
  .dot,
  .btn {
    touch-action: manipulation;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-media img,
  .page-bg img {
    transform: none !important;
    animation: none !important;
  }

  .page,
  .page.is-enter-left,
  .page.is-enter-right,
  .page.is-leave-left,
  .page.is-leave-right {
    transform: none !important;
  }
}

/* Landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    height: auto;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    align-items: center;
  }

  .logo-mark-hero {
    max-height: 56px;
  }

  .page-panel {
    align-items: flex-start;
  }

  .page-gallery .carousel-viewport {
    max-height: 48vh;
  }
}
