:root {
  --bg: #f0e8dc;
  --surface: rgba(251, 247, 241, 0.94);
  --surface-strong: #f6f0e8;
  --surface-contrast: rgba(241, 233, 223, 0.96);
  --surface-dark: #312b26;
  --text: #221d1a;
  --muted: #6c625c;
  --line: rgba(34, 29, 26, 0.18);
  --accent: #76614d;
  --accent-dark: #4c3d31;
  --accent-soft: #7b8872;
  --shadow: 0 16px 34px rgba(36, 25, 18, 0.08);
  --radius: 6px;
  --copy-optical-offset: clamp(0.2rem, 0.45vw, 0.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(133, 109, 84, 0.08), transparent 180px),
    linear-gradient(180deg, #ebe2d5 0%, #f4ede4 42%, #ece3d8 100%);
}

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

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: calc(100% - 2rem);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
}

#top,
#sluzby,
#onas,
#kontakt {
  scroll-margin-top: 92px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  margin-bottom: 2rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #2f2a25;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(24, 18, 13, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header-inner {
  width: calc(100% - 2rem);
  max-width: 1180px;
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
  padding: 0.55rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 400px;
  min-width: 0;
  margin-left: -0.15rem;
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 338px;
  height: auto;
}

.site-nav {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: nowrap;
  margin-top: 0.05rem;
  margin-left: auto;
}

.site-nav a {
  color: rgba(241, 235, 227, 0.86);
  padding: 0.62rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 3px;
  white-space: nowrap;
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 500;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #fff7ef;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
  text-shadow: 0 0 0.01px currentColor;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f1ebe3;
  border-radius: 4px;
  padding: 0.7rem 1rem;
  cursor: pointer;
}

.menu-toggle::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow:
    0 -5px 0 currentColor,
    0 5px 0 currentColor;
  flex: 0 0 auto;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition:
    transform 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  transform: translateY(-1px);
}

.theme-toggle-track {
  position: relative;
  display: inline-flex;
  width: 50px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f4ede4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  transition:
    transform 180ms ease,
    background-color 160ms ease;
}

[data-theme="dark"] .theme-toggle-thumb {
  transform: translateX(22px);
  background: #fff9f1;
}

[data-theme="dark"] .theme-toggle-track {
  background: rgba(170, 144, 118, 0.28);
  border-color: rgba(244, 237, 228, 0.22);
}

.hero,
.services,
.work-teaser,
.work-gallery,
.about,
.reviews,
.contact {
  margin-bottom: 2.2rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 1.6rem;
  align-items: stretch;
}

.hero-copy,
.hero-card,
.page-intro,
.about-panel,
.stats-panel,
.service-card,
.gallery-card,
.contact-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 3.85rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(90deg, rgba(251, 247, 241, 0.72), rgba(251, 247, 241, 0.56)),
    url("hero-stone-texture.png") center / cover no-repeat;
}

.page-intro {
  padding: 2.8rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero h1,
.page-intro h1,
.section-heading h2,
.about-panel h2,
.hero-card h2 {
  margin: 0;
  font-family: "Merriweather", serif;
  line-height: 1.18;
}

.hero h1 {
  font-size: 3rem;
  font-size: clamp(2.15rem, 4.15vw, 3.7rem);
  margin-top: 0.8rem;
  letter-spacing: 0.015em;
  line-height: 1.16;
}

.hero-location {
  margin: 0.45rem 0 1.25rem;
  font-family: "Merriweather", serif;
  font-size: clamp(1.35rem, 2.5vw, 2.15rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.012em;
}

.page-intro h1 {
  font-size: 3.1rem;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  margin-top: 0.8rem;
  letter-spacing: 0.015em;
  line-height: 1.16;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-text,
.page-intro-text,
.service-card p,
.about-panel p,
.contact-card p,
.form-note {
  color: var(--muted);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: auto;
  padding-top: 2.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.35rem;
  border-radius: 3px;
  border: 1px solid var(--accent-dark);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 10px 22px rgba(76, 61, 49, 0.16);
}

.button-secondary {
  border-color: rgba(76, 61, 49, 0.28);
  background: transparent;
  color: var(--accent-dark);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(76, 61, 49, 0.06);
}

.price-intro {
  max-width: 980px;
  margin-inline: auto;
}

.price-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.price-viewer {
  max-width: 980px;
  margin: 0 auto 3rem;
  padding: clamp(0.6rem, 2vw, 1rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.price-preview-link {
  display: block;
}

.price-preview-link img {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(32, 26, 22, 0.14);
}

.hero-card {
  padding: 4.15rem 2.2rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background:
    linear-gradient(90deg, rgba(251, 247, 241, 0.76), rgba(251, 247, 241, 0.6)),
    url("hero-stone-texture.png") center / cover no-repeat;
}

.hero-card-label {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.hero-card h2 {
  font-size: 2rem;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  margin-top: 0;
  margin-bottom: 0;
}

.hero-contact-list {
  display: grid;
  gap: 0.35rem;
}

.hero-contact-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero-card-intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-top: 0;
  padding-top: 0;
}

.hero-link {
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.hero-link:hover,
.hero-link:focus-visible {
  color: var(--text);
  text-decoration-thickness: 2px;
}

.services,
.work-teaser,
.work-gallery,
.reviews,
.contact {
  padding: 2.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(247, 241, 233, 0.9);
  box-shadow: var(--shadow);
}

.services {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--surface-dark);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 38px rgba(25, 18, 14, 0.16);
}

.services .section-heading h2 {
  color: #f3ece4;
}

.work-gallery {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.section-heading {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2.2rem;
}

.section-heading h2,
.about-panel h2 {
  font-size: 2.25rem;
  font-size: clamp(1.9rem, 3.25vw, 2.85rem);
  letter-spacing: 0.015em;
  line-height: 1.2;
}

.about-panel h2 {
  line-height: 1.22;
}

.service-grid,
.gallery-grid,
.work-teaser,
.contact-layout,
.about {
  display: grid;
  gap: 1.35rem;
}

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

.service-grid .service-card {
  grid-column: auto;
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-grid .service-card {
    grid-column: auto;
  }
}

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

.new-graves-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  margin-bottom: 0.35rem;
}

.new-graves-item {
  margin: 0;
}

.new-graves-item--wide {
  grid-column: 1 / -1;
}

.new-graves-item img {
  display: block;
  width: 100%;
  height: clamp(320px, 38vw, 520px);
  object-fit: cover;
  object-position: center center;
  border-radius: 3px;
  border: 0;
  background: transparent;
  -webkit-user-drag: none;
  user-select: none;
}

.new-graves-image-shift-down {
  object-position: center 62%;
}

.gallery-section-heading {
  margin: 0 0 1.5rem;
}

.gallery-section-heading h2 {
  margin: 0;
}

.gallery-section-text {
  max-width: 42rem;
  margin: 0.7rem 0 0;
}

.gallery-divider {
  height: 1px;
  margin: 2.25rem 0 2.25rem;
  background: var(--line);
}

.work-teaser {
  grid-template-columns: 1fr;
  align-items: start;
  background:
    linear-gradient(180deg, rgba(123, 136, 114, 0.08), transparent 120px),
    rgba(248, 243, 236, 0.94);
}

.work-teaser h2 {
  margin: 0 0 0.8rem;
  font-family: "Merriweather", serif;
  font-size: 2.15rem;
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  letter-spacing: 0.015em;
  line-height: 1.18;
}

.hero-card h2 {
  font-size: 2rem;
  letter-spacing: 0.02em;
}

.work-teaser p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.work-teaser-copy {
  display: grid;
  align-content: start;
  gap: 1.2rem;
  order: 1;
}

/* Merriweather headings have a different visual edge than body copy; this keeps
   supporting text optically aligned without moving the section grid itself. */
.hero-text,
.hero-actions,
.hero-card-intro,
.hero-contact-list,
.hero-card-actions,
.page-intro-text,
.gallery-section-text,
.work-teaser p,
.work-teaser-action,
.about-panel p {
  margin-left: var(--copy-optical-offset);
}

.work-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  align-self: stretch;
  max-width: 920px;
  margin: 0 auto;
}

.work-preview-item {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 24px rgba(31, 22, 16, 0.08);
}

.work-preview-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  order: 2;
}

.compare-card {
  display: block;
  margin: 0;
  min-width: 0;
  width: 100%;
}

.compare-slider {
  --compare-position: 50%;
  position: relative;
  width: 100%;
  min-height: 260px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(89, 75, 62, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 30px rgba(31, 22, 16, 0.12);
  isolation: isolate;
}

.compare-image,
.compare-before {
  position: absolute;
  inset: 0;
}

.compare-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-before {
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--compare-position)) 0 0);
}

.compare-label {
  position: absolute;
  bottom: 0.65rem;
  z-index: 3;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: rgba(31, 22, 16, 0.74);
  color: #fff9f1;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.compare-label-before {
  left: 0.65rem;
}

.compare-label-after {
  right: 0.65rem;
}

.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare-position);
  z-index: 2;
  width: 2px;
  background: rgba(255, 249, 241, 0.92);
  transform: translateX(-50%);
}

.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background: #fff9f1;
  color: #4f4033;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 22px rgba(31, 22, 16, 0.2);
  transform: translate(-50%, -50%);
}

.compare-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: ew-resize;
  opacity: 0;
}

.work-teaser-action {
  display: flex;
  justify-content: center;
  margin-top: 0;
  order: 3;
}

.service-card {
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.services .service-card h3 {
  color: #f3ece4;
}

.services .service-card p {
  color: rgba(243, 236, 228, 0.78);
}

.before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: start;
}

.gallery-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.before-after figure {
  margin: 0;
}

.gallery-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.before-after img {
  display: block;
  width: 100%;
  height: clamp(320px, 42vw, 540px);
  object-fit: cover;
  border-radius: 3px;
  border: 0;
  background: transparent;
  -webkit-user-drag: none;
  user-select: none;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(20, 16, 13, 0.88);
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.lightbox-figure {
  margin: 0;
  display: grid;
  gap: 0.8rem;
  justify-items: center;
  justify-self: center;
  align-self: center;
  width: fit-content;
  max-width: min(96vw, 1440px);
  position: relative;
  z-index: 1;
  will-change: transform, opacity;
}

.lightbox-image {
  display: block;
  max-width: min(96vw, 1440px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  background: #efe7dc;
  -webkit-user-drag: none;
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
}

.lightbox-caption {
  color: #f1ebe3;
  font-size: 1rem;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  border: 0;
  background: transparent;
  color: #f7f0e8;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 46px;
  height: 46px;
  border-radius: 4px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-nav {
  width: 72px;
  height: 120px;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.about {
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.55fr) minmax(280px, 0.8fr);
  padding: 2.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--surface-dark);
  box-shadow: 0 18px 38px rgba(25, 18, 14, 0.16);
}

.about > .section-heading {
  grid-column: 1 / -1;
  margin-bottom: 0.4rem;
}

.about > .section-heading h2 {
  color: #f3ece4;
}

.about-panel,
.stats-panel {
  padding: 2.2rem;
}

.about-portrait {
  margin: 0;
  min-width: 0;
  align-self: stretch;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 16px 32px rgba(24, 18, 13, 0.14);
}

.about-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-panel h2,
.about-panel p,
.stats-panel strong,
.stats-panel span {
  color: #f3ece4;
}

.about-panel h3 {
  margin: 0 0 1rem;
  font-family: "Merriweather", serif;
  font-size: clamp(1.5rem, 2vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: 0.015em;
  color: #f3ece4;
}

.about-panel p,
.stats-panel span {
  color: rgba(243, 236, 228, 0.78);
}

.reviews {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), transparent),
    #fbf7f2;
}

.review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1.35rem;
}

.review-card {
  padding: 1.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 12px 28px rgba(31, 22, 16, 0.06);
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.65rem;
}

.review-meta strong {
  color: var(--text);
}

.review-meta span,
.review-source {
  color: var(--muted);
}

.review-stars {
  margin-bottom: 0.9rem;
  color: #b77422;
  letter-spacing: 0.08em;
  font-size: 1.05rem;
  line-height: 1;
}

.review-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.review-source {
  margin: 1.15rem 0 0;
  font-size: 0.95rem;
}

.review-source a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.stats-panel {
  display: grid;
  gap: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-panel div {
  padding: 0 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.stats-panel div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.stats-panel strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: "Merriweather", serif;
  font-size: 2rem;
}

.stats-panel span {
  color: rgba(243, 236, 228, 0.88);
  font-size: 1.02rem;
  line-height: 1.6;
}

.contact-layout {
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  align-items: stretch;
}

.contact-layout-simple {
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(1.6rem, 4vw, 2.6rem);
  align-items: center;
}

.contact {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), transparent),
    #fbf7f2;
}

.contact-card,
.contact-form {
  padding: 1.5rem;
}

.contact-layout-simple .contact-card {
  height: 100%;
}

.contact-card-primary {
  display: grid;
  gap: 1.45rem;
}

.contact-item {
  display: block;
}

.contact-item p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

.contact-item a {
  color: var(--text);
  font-weight: 500;
}

.contact-card-secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent),
    rgba(255, 255, 255, 0.5);
}

.contact-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-note {
  margin: 0 0 0.35rem;
  color: var(--accent-dark);
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-main {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.5;
}

.contact-main a {
  font-weight: 700;
}

.contact-main-phone,
.contact-main-phone a {
  white-space: nowrap;
}

.contact-map-card {
    display: block;
    min-height: 330px;
    border-radius: var(--radius);
    overflow: hidden;
}

.contact-map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  border: 0;
  filter: grayscale(0.14) contrast(0.98) saturate(0.9);
}

.service-area-map {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
  gap: 1.35rem;
  margin-top: 1.35rem;
  align-items: stretch;
}

.map-copy,
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent),
    rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow);
}

.map-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
}

.map-copy h3 {
  margin: 0 0 0.7rem;
  font-family: "Merriweather", serif;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: 0.01em;
}

.map-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.map-frame {
  min-height: 310px;
  overflow: hidden;
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 310px;
  border: 0;
  filter: grayscale(0.22) contrast(0.96) saturate(0.86);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.82);
}

.contact-form textarea {
  resize: vertical;
}

.form-note {
  min-height: 1.6rem;
  margin: 0;
}

.site-nav.is-open {
  display: flex;
}

.site-footer {
  margin-top: 1rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #2f2a25;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 22px rgba(24, 18, 13, 0.12);
}

.site-footer-inner {
  width: calc(100% - 2rem);
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.4rem 0 1.9rem;
}

.site-footer p {
  margin: 0;
  color: rgba(241, 235, 227, 0.62);
  font-size: 0.92rem;
  line-height: 1.65;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.8fr) minmax(220px, 0.9fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
  padding-bottom: 2.2rem;
}

.footer-title {
  margin-bottom: 0.55rem !important;
  color: #f4ede4 !important;
  font-weight: 800;
}

.footer-brand p + p {
  margin-top: 0.25rem;
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a,
.footer-contact a {
  width: fit-content;
  color: rgba(244, 237, 228, 0.78);
  font-size: 0.94rem;
  line-height: 1.4;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: #f4ede4;
  transform: translateX(3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(244, 237, 228, 0.14);
}

.footer-credit {
  color: rgba(241, 235, 227, 0.5) !important;
  font-size: 0.86rem !important;
}

.footer-bottom a {
  font-weight: 600;
  color: #f4ede4;
  font-size: 0.9rem;
}

.footer-credit a {
  font-size: inherit;
  color: rgba(244, 237, 228, 0.72);
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: #f4ede4;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  height: 54px;
  padding: 0 1.2rem;
  border: 1px solid rgba(76, 61, 49, 0.18);
  border-radius: 999px;
  background: rgba(246, 240, 232, 0.94);
  color: var(--accent-dark);
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(32, 24, 18, 0.12);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #fff8f0;
  color: #2a2623;
}

.privacy-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.privacy-card h2 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-family: "Merriweather", serif;
  font-size: 1.9rem;
  line-height: 1.05;
}

@media (max-width: 900px) {
  .hero,
  .about,
  .service-grid,
  .gallery-grid,
  .work-teaser,
  .review-grid,
  .contact-layout,
  .contact-layout-simple,
  .service-area-map,
  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-card,
  .page-intro,
  .services,
  .work-gallery,
  .reviews,
  .about-panel,
  .about-portrait,
  .stats-panel,
  .contact-card,
  .contact-form,
  .map-copy {
    padding: 1.6rem;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 270px;
  }

  .about {
    padding: 1.6rem;
  }

  .about-portrait {
    max-width: 420px;
    justify-self: center;
    padding: 0;
  }

  .about-portrait img {
    aspect-ratio: 4 / 5;
    height: auto;
  }

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

  .compare-grid {
    max-width: 860px;
  }

  .review-grid {
    gap: 1rem;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
    gap: 2rem 3rem;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --copy-optical-offset: 0.18rem;
  }

  html {
    scroll-padding-top: 76px;
  }

  #top,
  #sluzby,
  #onas,
  #kontakt {
    scroll-margin-top: 76px;
  }

  .page-shell {
    width: calc(100% - 1rem);
    max-width: 1180px;
    padding-top: 0;
  }

  .contact-layout,
  .contact-layout-simple,
  .contact-card,
  .contact-layout-simple .contact-card {
    min-width: 0;
    width: 100%;
  }

  .site-header {
    margin-bottom: 1rem;
  }

  .site-footer-inner {
    width: 100%;
    max-width: 1180px;
    padding: 2rem 1.25rem 1.6rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 1.55rem;
    padding-bottom: 1.65rem;
  }

  .footer-nav,
  .footer-contact {
    gap: 0.6rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    margin-left: 0;
  }

  .brand-logo {
    width: auto;
    max-width: calc(100vw - 180px);
  }

  .site-header-inner {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 0.8rem 0;
    row-gap: 0.6rem;
    column-gap: 0.75rem;
    align-items: center;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 3;
    grid-row: 1;
    flex: 0 0 auto;
    align-self: center;
  }

  .theme-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
  }

  .menu-toggle {
    margin-left: 0;
    justify-self: end;
  }

  .site-nav {
    display: none;
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.65rem;
    gap: 0.45rem;
  }

  .site-nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 0.9rem 1rem 1rem;
    background: #2f2a25;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 24px rgba(24, 18, 13, 0.24);
  }

  .site-nav a {
    width: 100%;
    font-size: 1rem;
  }

  .work-teaser-action {
    margin-left: 0;
    justify-content: center;
  }

  .work-preview-grid {
    grid-template-columns: 1fr;
  }

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

  .services {
    padding: 1.65rem 1.45rem;
  }

  .service-grid {
    gap: 0.9rem;
  }

  .service-card {
    padding: 1.15rem 1.25rem;
  }

  .service-card h3 {
    margin-bottom: 0.55rem;
    font-size: 1rem;
  }

  .service-card p {
    margin-bottom: 0;
    line-height: 1.65;
  }

  .service-grid .service-card:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }

  .work-preview-item img {
    min-height: 180px;
  }

  .compare-slider {
    aspect-ratio: 4 / 3;
  }

  .review-card {
    padding: 1.25rem;
  }

  .review-card p {
    line-height: 1.7;
  }

  .price-actions .button {
    width: 100%;
  }

  .hero h1 {
    line-height: 1.22;
  }

  .section-heading h2,
  .about-panel h2,
  .hero-card h2,
  .work-teaser h2,
  .page-intro h1 {
    line-height: 1.24;
  }

  .button-primary[href="#kontakt"] {
    min-height: 54px;
    padding-inline: 1.55rem;
  }

  .contact-main {
    font-size: 1.55rem;
  }

  .contact-main-phone {
    font-size: 1.16rem;
  }

  .contact-card-primary {
    gap: 1.2rem;
  }

  .contact-item {
    display: block;
  }

  .contact-map-card,
  .contact-map-card iframe {
    min-height: 260px;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .new-graves-grid {
    grid-template-columns: 1fr;
  }

  .new-graves-item--wide {
    grid-column: auto;
  }

  .lightbox {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0.75rem;
  }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 96px;
    font-size: 3.2rem;
    z-index: 3;
  }

  .lightbox-prev {
    left: 1rem;
  }

  .lightbox-next {
    right: 1rem;
  }

  .back-to-top {
    display: none;
  }
}

[data-theme="dark"] {
  --bg: #171311;
  --surface: rgba(32, 27, 24, 0.94);
  --surface-strong: #201b18;
  --surface-contrast: rgba(40, 34, 30, 0.96);
  --surface-dark: #171311;
  --text: #f4ede4;
  --muted: #c7bbaf;
  --line: rgba(244, 237, 228, 0.14);
  --accent: #aa9076;
  --accent-dark: #8f735a;
  --accent-soft: #8f9983;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}

[data-theme="dark"] body {
    background:
      linear-gradient(180deg, rgba(170, 144, 118, 0.07), transparent 180px),
      linear-gradient(180deg, #181311 0%, #1b1614 42%, #16110f 100%);
}

[data-theme="dark"] .hero-copy,
[data-theme="dark"] .hero-card,
[data-theme="dark"] .page-intro,
[data-theme="dark"] .service-card,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .map-copy,
[data-theme="dark"] .map-frame,
[data-theme="dark"] .price-viewer,
[data-theme="dark"] .site-footer {
    background: var(--surface);
    border-color: var(--line);
}

[data-theme="dark"] .hero-copy,
[data-theme="dark"] .hero-card {
    background:
      linear-gradient(90deg, rgba(28, 23, 20, 0.88), rgba(28, 23, 20, 0.7)),
      url("hero-stone-texture.png") center / cover no-repeat;
}

[data-theme="dark"] .services {
    background:
      linear-gradient(180deg, rgba(170, 144, 118, 0.12), transparent 170px),
      rgba(43, 36, 31, 0.98);
    border-color: rgba(200, 177, 151, 0.18);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .work-teaser {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
      rgba(28, 23, 20, 0.96);
    border-color: var(--line);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .contact {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
      rgba(28, 23, 20, 0.96);
    border-color: var(--line);
}

[data-theme="dark"] .map-frame iframe {
    filter: grayscale(0.38) contrast(0.92) saturate(0.72);
}

[data-theme="dark"] .reviews {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
      rgba(28, 23, 20, 0.96);
    border-color: var(--line);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .about {
    background:
      linear-gradient(180deg, rgba(170, 144, 118, 0.12), transparent 170px),
      rgba(43, 36, 31, 0.98);
    border-color: rgba(200, 177, 151, 0.18);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .service-card {
    background: rgba(255, 248, 240, 0.035);
    border-color: rgba(222, 205, 186, 0.12);
}

[data-theme="dark"] .review-card {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(222, 205, 186, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .service-card h3,
[data-theme="dark"] .hero h1,
[data-theme="dark"] .page-intro h1,
[data-theme="dark"] .section-heading h2,
[data-theme="dark"] .work-teaser h2,
[data-theme="dark"] .hero-card h2,
[data-theme="dark"] .contact-main,
[data-theme="dark"] .site-footer strong {
    color: var(--text);
}

[data-theme="dark"] .button-secondary {
    background: transparent;
    border-color: rgba(244, 237, 228, 0.22);
    color: var(--text);
}

[data-theme="dark"] .button-secondary:hover,
[data-theme="dark"] .button-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .button-primary {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff9f1;
}

[data-theme="dark"] .hero-link,
[data-theme="dark"] .contact-main a,
[data-theme="dark"] .review-source a {
    color: #f4ede4;
}

[data-theme="dark"] .contact-item p,
[data-theme="dark"] .contact-item a {
    color: var(--text);
}

[data-theme="dark"] .contact-note {
    color: var(--accent);
}

[data-theme="dark"] .review-card p,
[data-theme="dark"] .review-meta span,
[data-theme="dark"] .review-source {
    color: var(--muted);
}

[data-theme="dark"] .review-stars {
    color: #d7a35e;
}

[data-theme="dark"] .site-footer-links a {
    color: #f4ede4;
}

[data-theme="dark"] .back-to-top {
    border-color: rgba(244, 237, 228, 0.14);
    background: rgba(33, 28, 25, 0.94);
    color: #f4ede4;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .back-to-top:hover,
[data-theme="dark"] .back-to-top:focus-visible {
    background: rgba(42, 35, 31, 0.98);
    color: #fff9f1;
}

[data-theme="dark"] .work-preview-item {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .compare-slider {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .compare-label {
    background: rgba(18, 15, 13, 0.78);
}

[data-theme="dark"] .lightbox-image {
    background: #221d1a;
}

[data-theme="dark"] .menu-toggle,
[data-theme="dark"] .theme-toggle {
    color: var(--text);
}

[data-theme="dark"] .site-nav a:hover,
[data-theme="dark"] .site-nav a:focus-visible {
    border-color: rgba(244, 237, 228, 0.16);
    background: rgba(255, 255, 255, 0.08);
}
