/* traur.bg – single stylesheet. Former styles.css (2021) + site.css merged 2026-10-15; dead rules removed.
   Design tokens (palette, panel tones, radius, shadows, spacing, widths) are defined in the first rule below. */
:root {
  /* Brand palette (approved 15.10.2026) */
  --ash-brown: #544541;
  --dusty-taupe: #998676;
  --pale-oak: #c8bdb2;
  --dust-grey: #dfd8d0;
  --parchment: #f6f3ee;
  --accent: var(--pale-oak);
  /* accent text, icons, borders, focus rings, active chips */
  --accent-light: var(--dust-grey);
  /* highlighted numbers (timeline years, stats) */
  --accent-line: var(--dusty-taupe);
  /* decorative lines */
  --accent-dim: var(--ash-brown);
  /* muted borders on dark cards */

  /* Panel tones – every box/card uses one of these */
  --panel-dark: linear-gradient(180deg, #1c1c1c 0%, #141414 100%);
  --panel-ash: linear-gradient(135deg, #5e4d48 0%, var(--ash-brown) 55%, #3f3431 100%);
  --panel-light: linear-gradient(135deg, var(--parchment) 0%, var(--dust-grey) 50%, var(--pale-oak) 100%);
  --panel-taupe: linear-gradient(135deg, #a8968a 0%, var(--dusty-taupe) 55%, #85735f 100%);
  /* Neutral surfaces, lines and text on the dark site */
  --surface-1: #141414;
  --surface-2: #1a1a1a;
  --line-1: #2c2c2c;
  --line-2: #333;
  --line-3: #444;
  --text-1: #fff;
  --text-2: #ddd;
  --text-3: #ccc;
  --text-4: #aaa;
  /* Corner radius */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 999px;
  /* Shadows */
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 44px rgba(0, 0, 0, 0.55);
  /* Spacing scale (gap / padding / margin) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  /* Content widths */
  --w-text: 680px;
  --w-narrow: 760px;
  --w-content: 1080px;
  --w-wide: 1100px;
}
/* =====================================================================
   COMPONENTS – shared building blocks (Phase 3). Element rules further down only add what is specific.
   section · panel (+ tones) · grid · steps · pill · btn (see BUTTONS) · tile (see TILE)
   ===================================================================== */
/* Section: standard vertical rhythm for page sections */
.section {
  padding: var(--s-20) var(--s-4) 0;
}
@media (max-width: 799px) {
  .section {
    padding-top: var(--s-12);
  }
}
/* Panel: every box/card. Tones: --ash · --light · --taupe · --outline. Sizes: --lg · --flush */
.panel {
  position: relative;
  padding: var(--s-6);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  background: var(--panel-dark);
  box-shadow: var(--shadow-sm);
  color: var(--text-1);
}
.panel--lg {
  padding: var(--s-10) var(--s-8);
}
.panel--flush {
  padding: 0;
  overflow: hidden;
}
.panel--outline {
  border-color: var(--accent);
}
.panel--ash {
  border-color: transparent;
  background: var(--panel-ash);
  color: var(--parchment);
}
.panel--light {
  border-color: transparent;
  background: var(--panel-light);
  color: var(--ash-brown);
}
@media (max-width: 599px) {
  .panel {
    padding: var(--s-5);
  }
  .panel--lg {
    padding: var(--s-6) var(--s-5);
  }
  .panel--flush {
    padding: 0;
  }
}
/* Grid: --2 · --3 · --4 columns; tablets max 2, phones 1 (or 2 with --phone-2) */
.grid {
  --cols: 3;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--s-6);
  align-items: stretch;
  max-width: var(--w-content);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--s-4);
}
.grid--2 {
  --cols: 2;
}
.grid--3 {
  --cols: 3;
}
.grid--4 {
  --cols: 4;
}
@media (max-width: 999px) {
  .grid--3,
  .grid--4 {
    --cols: 2;
  }
}
@media (max-width: 799px) {
  .grid--2 {
    --cols: 1;
  }
}
@media (max-width: 599px) {
  .grid {
    --cols: 1;
    gap: var(--s-4);
  }
  .grid.grid--phone-2 {
    --cols: 2;
    gap: var(--s-3);
  }
}
/* Steps: numbered vertical steps (guide); --compact for short lists (Паметници) */
.steps--compact .step {
  grid-template-columns: 40px 1fr;
  column-gap: var(--s-4);
  padding-bottom: var(--s-6);
}
.steps--compact .step-num {
  width: 40px;
  height: 40px;
  font-size: 1.125rem;
}
.steps--compact .step::before {
  left: 19px;
  top: 48px;
}
.step-body .step-title,
:is(#servicePage, #page-extra) .step-body .step-title {
  margin: 6px 0 var(--s-2);
  color: var(--text-1);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
}
/* Pill: small rounded label (tags) and the person pill in the home hero */
.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  border-radius: var(--r-pill);
}
.pill--tag {
  padding: 4px 12px;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pill--person {
  padding: 6px 20px 6px 6px;
  border: 1px solid rgba(200, 189, 178, 0.35);
  background: rgba(20, 18, 17, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.pill--person img {
  width: 52px;
  height: 52px;
  border: 2px solid var(--pale-oak);
  border-radius: 50%;
  object-fit: cover;
}
.pill--person span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}
.pill--person b {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}
.pill--person small {
  color: var(--dust-grey);
  font-size: 0.875rem;
}
@media (max-width: 799px) {
  .pill--person {
    padding-right: 18px;
  }
  .pill--person img {
    width: 48px;
    height: 48px;
  }
  .pill--person b {
    font-size: 0.9375rem;
  }
  .pill--person small {
    font-size: var(--fs-caption);
  }
}
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}
* {
  -webkit-overflow-scrolling: touch;
}
html {
  scroll-behavior: smooth;
}
html.hidden {
  overflow: hidden;
}
body {
  background-color: rgba(0, 0, 0, 0.9);
}
.fa-angle-down {
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
.fa-angle-down:hover {
  -webkit-transform: scale(1.3);
  transform: scale(1.3);
}
.address {
  color: white !important;
}
iframe {
  width: 40vw;
  height: 40vh;
}
.title {
  font-size: 3.75rem;
  margin-bottom: 60px;
  margin-top: 30px;
  font-weight: bold;
  color: white;
  text-align: center;
}
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  background: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  padding: 0 0 30px 0;
}
#navbar img {
  width: 300px;
}
#navbar .logo {
  text-align: center;
}
#navbar .logo img {
  cursor: pointer;
}
#navbar .flex {
  display: flex;
  padding-top: var(--s-5);
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  width: 79%;
  margin: 0 auto;
}
#navbar a {
  text-decoration: none;
  color: white;
  -webkit-transition: 0.5s;
  transition: 0.5s;
  font-size: 1.875rem;
}
#navbar a:hover {
  -webkit-transform: scale(1.24);
  transform: scale(1.24);
}
#home {
  text-align: center;
  background: url("../images/copy1-min.jpg") no-repeat center top;
  background-size: cover;
  padding-top: 25vh;
}
#home h2 {
  width: 69%;
}
#home h3 {
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: normal;
  margin-bottom: var(--s-5);
}
#home a.phone {
  color: white;
  text-decoration: none;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}
#home #whatsapp {
  display: block;
  border: 3px solid white;
  color: white;
  text-decoration: none;
  border-radius: 3px;
  padding: var(--s-5);
  margin: 10px;
  font-size: 1.25rem;
  cursor: pointer;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}
#home #whatsapp:hover {
  background-color: white;
  color: black;
  border-radius: 10px;
}
#home #facebook {
  font-size: 1.25rem;
  margin: 10px;
  display: block;
  border: 3px solid white;
  color: white;
  text-decoration: none;
  border-radius: 3px;
  padding: var(--s-5);
  cursor: pointer;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}
#home #facebook:hover {
  background-color: white;
  color: black;
  border-radius: 10px;
}
#about {
  padding: 50px var(--s-5);
  background: url("../images/aboutbg-min.jpg") no-repeat center center;
  background-size: cover;
}
#about.single {
  padding-top: 21vh;
}
#about.single .info {
  width: 90vw;
  padding-top: 5vh;
}
#about.single .images {
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
#about.single .images img.long {
  width: 40%;
}
#about .info {
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  width: 70%;
  margin: 0 auto;
  -webkit-box-pack: space-evenly;
  -ms-flex-pack: space-evenly;
  justify-content: space-evenly;
  color: white;
  margin-bottom: var(--s-20);
}
#about .info img {
  display: block;
  width: 500px;
  border-radius: 15px;
}
#about .info p {
  text-align: right;
  padding-left: var(--s-5);
  vertical-align: middle;
}
#about .title {
  text-align: center;
  color: white;
  font-size: 3.75rem;
  font-weight: bold;
}
.slideshow img {
  border-radius: 55px;
}
#service .cards {
  display: flex;
  -webkit-box-pack: space-evenly;
  -ms-flex-pack: space-evenly;
  margin-bottom: 30px;
}
#service .cards a {
  text-decoration: none;
  color: white;
}
#service .cards .card {
  -webkit-transition: 0.3s;
  transition: 0.3s;
  width: 25vw;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}
#service .cards .card:hover {
  -webkit-transform: scale(1.15);
}
#service .cards .card img {
  width: 25vw;
  height: 24vh;
}
#service .cards .card h4 {
  font-size: 1.2rem;
}
:is(#servicePage, #page-extra) {
  /* On mouse-over, add a deeper shadow */
  /* Add some padding inside the card container */;
}
:is(#servicePage, #page-extra) .title {
  text-align: center;
  color: white;
  font-size: 2.5rem;
  margin-bottom: var(--s-5);
  margin-top: 65px;
}
:is(#servicePage, #page-extra) p {
  text-align: center;
  color: white;
  width: 80vw;
  margin: 0 auto;
  font-size: 1.375rem;
}
:is(#servicePage, #page-extra) a {
  text-align: center;
  color: white;
  width: 80vw;
  margin: 0 auto;
  font-size: 1.375rem;
}
:is(#servicePage, #page-extra) .slideshow {
  padding: 0 25%;
}
:is(#servicePage, #page-extra) .slideshow img {
  padding: 50px;
}
:is(#servicePage, #page-extra) .service {
  padding-top: 10vh;
}
:is(#servicePage, #page-extra) .card:hover {
  -webkit-transform: scale(1.2);
  transform: scale(1.2);
}
#contact {
  padding-top: 50px;
}
footer {
  height: 50px;
  margin-top: 15px;
  display: flex;
  -webkit-box-pack: space-evenly;
  -ms-flex-pack: space-evenly;
  justify-content: space-evenly;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
footer i {
  color: white;
  font-size: 2rem;
  -webkit-transition: 0.4s color;
  transition: 0.4s color;
}
footer i.fa-whatsapp:hover {
  color: #c8bdb2;
}
footer i.fa-facebook-messenger:hover {
  color: #c8bdb2;
}
footer i.fa-facebook:hover {
  color: #c8bdb2;
}
footer i.fa-google:hover {
  color: #c8bdb2;
}
#faq {
  width: 89vw;
  text-align: left;
  margin: 0 auto;
  padding-top: var(--s-10);
}
#faq i {
  display: none;
}
.collapsed-content {
  display: none;
  color: white;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}
.collapsed-content.show {
  display: block;
}
.collapsed-content a {
  display: block;
  margin: 10px;
  font-size: 1.0625rem !important;
}
#arrow-wrapper {
  width: 60px;
  height: 60px;
  display: block;
  margin: 0 auto;
  cursor: pointer;
}
.arrow-border {
  position: relative;
  width: 60px;
  height: 60px;
  border: 2px solid white;
  border-radius: 50%;
}
.arrow {
  position: absolute;
  bottom: 24px;
  width: 20px;
  height: 20px;
  border-top: 3px solid white;
  border-right: 3px solid white;
  right: 18px;
}
.down {
  -webkit-transform: rotate(135deg);
  transform: rotate(135deg);
}
.pulse {
  border-radius: 50%;
  height: 57px;
  width: 55px;
  position: absolute;
  margin: 0;
  -webkit-animation: pulsate 2s ease-out;
  animation: pulsate 2s ease-out;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  opacity: 0;
  -webkit-animation-delay: 2s;
  animation-delay: 2s;
}
@-webkit-keyframes pulsate {
  0% {
    -webkit-transform: scale(0.9, 0.9);
            transform: scale(0.9, 0.9);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1.3, 1.3);
            transform: scale(1.3, 1.3);
    opacity: 0;
  }
}
@keyframes pulsate {
  0% {
    -webkit-transform: scale(0.9, 0.9);
            transform: scale(0.9, 0.9);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1.3, 1.3);
            transform: scale(1.3, 1.3);
    opacity: 0;
  }
}
.menu-wrap {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
}
.toggler {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 50px;
  height: 50px;
  z-index: 3;
  opacity: 0;
  cursor: pointer;
}
.hamburger {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  width: 50px;
  height: 50px;
  z-index: 2;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-radius: 50%;
}
.hamburger > div {
  position: absolute;
  width: 60%;
  height: 3px;
  border-radius: 1.5px;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
.hamburger > div:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  border-radius: 1.5px;
  background-color: white;
  top: -10px;
  left: 0;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
.hamburger > div:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  border-radius: 1.5px;
  background-color: white;
  top: 10px;
  left: 0;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}
.toggler:checked + .hamburger > div {
  -webkit-transform: rotate(135deg);
  transform: rotate(135deg);
}
.toggler:checked:hover + .hamburger > div {
  -webkit-transform: rotate(225deg);
  transform: rotate(225deg);
}
.toggler:checked + .hamburger > div:before,
.toggler:checked + .hamburger > div:after {
  top: 0;
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
}
.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
  -webkit-transition: 0.6s;
  transition: 0.6s;
}
.menu > div {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translateX(-150%) translateY(-50%);
  transform: translateX(-150%) translateY(-50%);
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  text-align: center;
  -webkit-transition: 0.6s;
  transition: 0.6s;
}
.menu > div > div {
  max-width: 90vw;
  max-height: 100vh;
  opacity: 0;
  -webkit-transition: 0.6s;
  transition: 0.6s;
}
.menu > div > div > ul > li {
  list-style: none;
}
.menu > div > div > ul > li > a {
  text-decoration: none;
  color: #fff;
  font-weight: 550;
  text-transform: uppercase;
  margin: 0.5rem;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  font-size: 1.2rem;
  display: inline-block;
}
.menu > div > div > ul > li > a:hover {
  color: #c8bdb2;
}
.toggler:checked ~ .menu {
  visibility: visible;
}
.toggler:checked ~ .menu > div {
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}
.toggler:checked ~ .menu > div > div {
  opacity: 1;
}
/* (dropped: rule after a stray brace – browsers ignore it) */
@media (min-width: 800px) and (max-width: 999px) {
  #about .info {
    width: 100%;
  }
  #about .info img {
    width: 350px;
  }
  #about .info p {
    font-size: 1.5625rem;
  }
}
@media (max-width: 799px) {
  a.phone:hover {
    font-size: 2.5rem !important;
  }
  .title {
    font-size: 2.5rem;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
  }
  .menu-wrap {
    display: block;
  }
  #navbar .flex {
    width: 100%;
    display: none;
  }
  #home h2 {
    width: 95%;
  }
  #home #facebook,
  #home #whatsapp {
    font-size: 0.9375rem;
  }
  #about p {
    width: 90vw;
  }
  #about .info {
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: column !important;
    flex-direction: column !important;
  }
  #about .info img {
    width: 300px;
  }
  #about .info p {
    text-align: center !important;
    margin-top: 30px;
    font-size: 1.25rem;
  }
  #about.single {
    padding-top: 5vh;
  }
  #about.single p {
    font-size: 1.25rem;
  }
  #service .title {
    margin-bottom: var(--s-5);
  }
  #service .cards {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }
  #service .cards .card {
    margin-bottom: 30px;
  }
  #service .cards .card,
  #service .cards .card img {
    width: 65vw;
  }
  #contact iframe {
    width: 80vw;
    margin-bottom: var(--s-10);
  }
}
@media (max-width: 599px) {
  #navbar a {
    font-size: 1.5625rem;
  }
  #home div a.phone {
    font-size: 3.125rem;
  }
}
@media (max-width: 420px) {
  #navbar img {
    width: 220px;
  }
  #navbar a {
    font-size: 1.25rem;
  }
  #home div a.phone {
    font-size: 1.875rem;
  }
  :is(#servicePage, #page-extra) {
    padding-top: 0%;
  }
  :is(#servicePage, #page-extra) p {
    font-size: 1.3125rem;
  }
  :is(#servicePage, #page-extra) .slideshow {
    padding: 0 3%;
  }
}
@media (hover: hover) and (pointer: fine) {
  #whatsapp:hover {
    background-color: #544541;
    color: black;
    border-radius: 20px;
  }
}
#table {
  font-family: "Montserrat", sans-serif;
  border-collapse: collapse;
  margin: 0 auto;
  color: white;
}
#table td,
#table th {
  border: 1px solid var(--text-2);
  padding: var(--s-2);
}
#table th {
  padding-top: var(--s-3);
  padding-bottom: var(--s-3);
  text-align: left;
}
/*# sourceMappingURL=styles.css.map */

/* Additions on top of styles.css (2026 SEO update). Plain CSS – no build step. */
/* Brand palette (2026-10-15) – replaces the former gold accents (#c9a227 / #d8c08a / #ecd9a5).
   The site is dark, so the light palette tones are the accents. Google rating stars stay yellow. */
.card h3,
.card h2 {
  font-size: 1.2rem;
}
/* Breadcrumb */
.breadcrumb {
  text-align: center;
  margin-top: 65px;
}
:is(#servicePage, #page-extra) .breadcrumb + h1.title,
.breadcrumb + h1.title {
  margin-top: 15px;
}
.breadcrumb a {
  color: var(--text-2);
}
/* FAQ as <details> – same look as the old .collapsible-question */
.faq {
  margin: 0 auto;
  padding-top: var(--s-10);
}
.faq-item {
  font-size: 1.125rem;
  color: white;
  margin: var(--s-4) auto;
  background-color: #252525;
  border-radius: 5px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-answer {
  font-weight: 100;
}
.faq-answer a {
  color: white;
}
/* Second "pre-footer" block (ids must be unique) */
/* Contacts */
#contact .address {
  margin-top: var(--s-3);
  line-height: 1.4;
}
#contact .address small {
  color: var(--text-3);
}
#contact .address a {
  color: white;
}
/* Price tables */
#table small {
  color: var(--text-3);
}
.price-note {
  font-size: 0.9375rem !important;
  color: #bbb !important;
  margin-top: 10px !important;
}
/* Notice box (anti-scam) and content lists */
.content-list {
  color: white;
  width: 70vw;
  margin: 10px auto;
  font-size: 1.25rem;
  text-align: left;
  line-height: 1.5;
}
.content-list li {
  margin: var(--s-2) 0;
}
.content-list a,
:is(#servicePage, #page-extra) p a {
  color: white;
}
/* Reviews */
.reviews {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
}
.review .stars {
  color: #f5c518;
}
@media (max-width: 799px) {
  .faq-item {
    width: 95%;
  }
  .content-list {
    width: 90vw;
    font-size: 1.125rem;
  }
}
/* "Комплексна услуга" price box */
.price-box {
  width: 70%;
  margin: 30px auto;
  text-align: left;
}
.price-box h3 {
  text-align: center;
  margin-bottom: 14px;
}
:is(#servicePage, #page-extra) .price-box p {
  width: auto;
  font-size: 1.125rem;
  text-align: left;
}
.price-box-cols {
  display: flex;
  gap: 30px;
  margin: var(--s-4) 0;
}
.price-box-cols > div {
  flex: 1;
}
.price-box ul {
  line-height: 1.5;
}
:is(#servicePage, #page-extra) .price-box .price-box-note {
  color: var(--text-2);
  font-size: 1rem;
}
#table td.price {
  white-space: nowrap;
}
@media (max-width: 799px) {
  .price-box-cols {
    flex-direction: column;
    gap: 10px;
  }
  #table {
    width: 92%;
  }
  #table td.price {
    white-space: normal;
  }
}
/* =====================================================================
   Design pass 1 (2026-10-14): type scale, readable text,
   paragraph spacing, minimum sizes, table contrast.
   ===================================================================== */
/* ---- B5/B6. Weights + type scale ---- */
h1.title,
#about h1.title,
#service h1.title {
  font-size: 2.625rem;
  font-weight: 600;
  line-height: 1.25;
}
h2.title,
#about .title,
#service .title,
.faq .title,
#contact .title,
:is(#servicePage, #page-extra) .title {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.3;
}
:is(#servicePage, #page-extra) h2.title {
  margin-top: 56px;
}
.price-box h3 {
  font-size: 1.375rem;
  font-weight: 600;
}
#home h1 {
  color: white;
  font-weight: 600;
  margin: 0 auto var(--s-4);
}
#home h2 {
  color: white;
  font-size: 1.5rem;
  font-weight: 400;
  margin: var(--s-4) auto;
}
#home h3 {
  font-size: 1.5rem;
}
b,
strong {
  font-weight: 600;
}
/* ---- A2/A3. Readable text column, left-aligned, spaced paragraphs ---- */
:is(#servicePage, #page-extra) p,
#about p,
#about.single p,
#about .info p,
.content-list,
.faq-answer {
  text-align: left !important;
  font-size: 1.125rem;
  line-height: 1.6;
}
:is(#servicePage, #page-extra) p,
.content-list {
  width: auto;
  max-width: var(--w-text);
  margin: 0 auto 1em;
}
#about .info p {
  max-width: 560px;
  padding: 0 0 0 var(--s-10);
  font-size: 1.25rem;
}
.content-list {
  padding-left: 1.2em;
}
:is(#servicePage, #page-extra) p.price-note,
.price-note {
  font-size: 0.9375rem !important;
  text-align: center !important;
}
#table {
  width: 100%;
  max-width: 820px;
}
/* ---- B7. Minimum sizes ---- */
#contact .address {
  font-size: 1.0625rem;
}
#contact .address small {
  font-size: 0.9375rem;
}
/* ---- C10. Table contrast ---- */
#table th {
  background-color: #3a3a3a;
  color: white;
  font-weight: 600;
}
#table tr:hover {
  background-color: rgba(255, 255, 255, 0.06);
}
@media (max-width: 799px) {
  h1.title,
  #about h1.title,
  #service h1.title,
  #home h1 {
    font-size: 1.875rem;
  }
  #home h1 {
    width: 92%;
  }
  h2.title,
  #about .title,
  #service .title,
  .faq .title,
  #contact .title,
  :is(#servicePage, #page-extra) .title {
    font-size: 1.5rem;
  }
  :is(#servicePage, #page-extra) p,
  #about p,
  #about.single p,
  #about .info p,
  .content-list,
  .faq-answer {
    font-size: 1.0625rem;
  }
  :is(#servicePage, #page-extra) p,
  .content-list {
    padding: 0 var(--s-4);
  }
  /* bullets line up with the paragraph text above, the item text is indented past them */
  .content-list {
    padding-left: calc(var(--s-4) + 1.2em);
  }
  #about .info p {
    padding: 0 var(--s-4);
  }
}
/* Anchor jumps (#ceni, #dokumenti, #contact) land below the fixed header */
[id] {
  scroll-margin-top: 180px;
}
@media (max-width: 799px) {
  [id] {
    scroll-margin-top: 120px;
  }
}
.price-table td.price,
.price-table th:last-child {
  width: 180px;
}
/* Links inside text take the text size (old rule forced 22px) */
:is(#servicePage, #page-extra) p a,
:is(#servicePage, #page-extra) li a,
:is(#servicePage, #page-extra) td a,
.faq-answer a,
#about p a {
  font-size: inherit;
}
/* =====================================================================
   Design pass 2 (2026-10-14): buttons, form, FAQ, prices, guide steps,
   contacts + two-office map, footer columns, team, hero CTAs, spacing.
   ===================================================================== */
/* ---- 12. Buttons: primary (filled) and secondary (outline) ---- */
/* ---- 22. Hero: trust line + three equal CTAs ---- */
.trust-line {
  color: #eee;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  margin: 0 auto var(--s-5);
}
#home a.phone {
  font-size: 2.75rem;
}
#home a.phone:hover {
  font-size: 2.75rem;
  opacity: 0.8;
}
.hero-ctas {
  display: flex;
  justify-content: center;
}
/* ---- 14. FAQ accordion ---- */
.faq {
  width: auto;
}
.faq-item {
  width: 100%;
  max-width: 820px;
  text-align: left;
  background: #1f1f1f;
  border: 1px solid #555;
}
.faq-item summary {
  position: relative;
  padding: var(--s-4) 56px var(--s-4) var(--s-5);
  font-weight: 500;
  line-height: 1.4;
}
.faq-item summary:hover,
.faq-item[open] summary {
  font-weight: 600;
}
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}
.faq-answer {
  background: #2a2a2a;
  border-top: 1px solid var(--line-3);
  border-radius: 0 0 5px 5px;
  padding: var(--s-4) var(--s-5);
  color: #e6e6e6;
}
/* ---- 16. Prices ---- */
.price-big {
  font-size: 3.5rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.1;
  margin: 0 0 var(--s-4);
}
.price-box-cols {
  flex-wrap: wrap;
}
.price-box-cols > div {
  min-width: 200px;
}
.price-box ul {
  list-style: none;
  margin: var(--s-2) 0 0;
}
.price-box li.yes,
.price-box li.no {
  position: relative;
  padding-left: 1.5em;
}
.price-box li.yes::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #fff;
  font-weight: 600;
}
.price-box li.no {
  color: #bbb;
}
.price-box li.no::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #999;
}
#table td.price,
.price-table th:last-child {
  text-align: right;
  font-weight: 600;
}
/* ---- 17. Guide steps ---- */
.steps {
  list-style: none;
  max-width: var(--w-narrow);
  margin: var(--s-10) auto 0;
  padding: 0 var(--s-4);
}
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: var(--s-6);
  position: relative;
  padding-bottom: var(--s-10);
}
.step::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 64px;
  bottom: 8px;
  width: 2px;
  background: #555;
}
.step:last-child::before {
  display: none;
}
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}
:is(#servicePage, #page-extra) .step-body h2.title {
  text-align: left;
  font-size: 1.625rem;
  margin: 10px 0 var(--s-3);
}
:is(#servicePage, #page-extra) .step-body p,
:is(#servicePage, #page-extra) .step-body .content-list {
  max-width: none;
  width: auto;
  margin: 0 0 1em;
  padding-right: 0;
}
/* ---- 19. Contacts: phones, office cards, map, form ---- */
#contact {
  max-width: var(--w-wide);
  margin: 0 auto;
  padding: var(--s-20) var(--s-4) 0;
}
.contact-lead {
  text-align: center;
  color: var(--text-2);
  font-size: 1.125rem;
  margin: -8px 0 var(--s-6);
}
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}
.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  color: #fff;
  margin-bottom: var(--s-2);
}
.contact-form label {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  margin: var(--s-4) 0 6px;
}
#form input,
#form textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  font-family: inherit;
  font-size: 1rem;
  padding: var(--s-3) 14px;
  border-radius: var(--r-sm);
  border: 1px solid #888;
  background: #fff;
  color: #111;
}
#form input:focus,
#form textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
/* Honeypot for send.php – hidden from people, filled in by spam bots */
.contact-form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* ---- 20. Footer: three columns ---- */
.site-footer {
  height: auto;
  display: block;
  margin-top: var(--s-20);
  padding: 56px var(--s-4) var(--s-8);
  border-top: 1px solid var(--line-2);
  background: #0d0d0d;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-10);
  max-width: var(--w-wide);
  margin: 0 auto;
}
.site-footer h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--s-4);
}
.site-footer ul {
  list-style: none;
}
.site-footer li {
  margin-bottom: 10px;
  color: var(--text-3);
  font-size: 1rem;
  line-height: 1.5;
}
.site-footer li small {
  font-size: 0.9375rem;
}
.site-footer a {
  color: var(--text-2);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.footer-offices {
  margin-top: var(--s-4);
}
.footer-note {
  color: var(--text-4);
  font-size: 0.9375rem;
  margin: var(--s-1) 0 var(--s-4);
}
.social-icons {
  display: flex;
  gap: var(--s-5);
}
.social-icons i {
  font-size: 1.625rem;
}
/* ---- 21. Team ---- */
.team .team-intro {
  text-align: center;
  max-width: var(--w-text);
  margin: 0 auto var(--s-10);
  padding: 0;
  font-size: 1.1875rem;
}
.team-grid {
  margin: 0 auto;
}
.team-member {
  text-align: center;
  color: #fff;
}
.team-member img {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto var(--s-3);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #555;
}
.team-member b {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
}
.team-member span {
  display: block;
  color: #bbb;
  font-size: 0.9375rem;
  margin-top: var(--s-1);
}
/* ---- 23. Even spacing between sections ---- */
#about:not(.single) {
  padding: var(--s-20) var(--s-5);
}
#service {
  padding-top: var(--s-20);
  margin-bottom: 0;
}
#service .title {
  margin-bottom: var(--s-10);
}
main > :is(#servicePage, #page-extra) ~ :is(#servicePage, #page-extra) .service {
  padding-top: var(--s-20);
}
h2.title {
  margin-bottom: var(--s-6);
}
@media (max-width: 799px) {
  #home a.phone,
  #home a.phone:hover {
    font-size: 1.875rem;
  }
  .trust-line {
    font-size: 1rem;
    padding: 0 var(--s-4);
  }
  .faq {
    padding-top: var(--s-12);
  }
  .price-big {
    font-size: 2.75rem;
  }
  .step {
    grid-template-columns: 40px 1fr;
    column-gap: var(--s-4);
  }
  .step::before {
    left: 19px;
    top: 48px;
  }
  .step-num {
    width: 40px;
    height: 40px;
    font-size: 1.125rem;
  }
  :is(#servicePage, #page-extra) .step-body h2.title {
    font-size: 1.375rem;
    margin-top: var(--s-1) !important;
  }
  :is(#servicePage, #page-extra) .step-body p,
  :is(#servicePage, #page-extra) .step-body .content-list {
    padding-left: 0;
  }
  :is(#servicePage, #page-extra) .step-body .content-list {
    padding-left: 1.2em;
  }
  #contact {
    padding-top: var(--s-12);
  }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: var(--s-8);
  }
  .site-footer {
    margin-top: var(--s-12);
    padding-top: var(--s-10);
  }
  .team-member img {
    width: 120px;
    height: 120px;
  }
  #about:not(.single) {
    padding: var(--s-12) var(--s-4);
  }
  #service {
    padding-top: var(--s-12);
  }
  main > :is(#servicePage, #page-extra) ~ :is(#servicePage, #page-extra) .service {
    padding-top: var(--s-12);
  }
}
.site-footer li i {
  font-size: 0.875rem;
  margin-right: 6px;
}
#about p a {
  color: #fff;
  text-decoration: underline;
}
.team {
  color: #fff;
}
.team .team-intro {
  color: #e6e6e6;
  line-height: 1.6;
}
/* =====================================================================
   Mobile polish (2026-10-14)
   ===================================================================== */
/* Logo keeps its proportions (the HTML width/height are only a hint) */
#navbar .logo img {
  height: auto;
}
@media (max-width: 799px) {
  /* Old rule forced 5px margins on every .title on phones */
  h1.title,
  :is(#servicePage, #page-extra) h1.title,
  #about h1.title,
  #service h1.title {
    margin: var(--s-3) var(--s-4) var(--s-5) !important;
    line-height: 1.25;
  }
  h2.title,
  :is(#servicePage, #page-extra) h2.title,
  :is(#servicePage, #page-extra) .title {
    margin: var(--s-10) var(--s-4) var(--s-4) !important;
    line-height: 1.3;
  }
  .faq .title,
  #contact .title,
  .team .title,
  #service .title,
  #about:not(.single) .title {
    margin-top: 0 !important;
  }
  :is(#servicePage, #page-extra) .step-body h2.title {
    margin: var(--s-1) 0 var(--s-3) !important;
  }
  .breadcrumb {
    padding: 0 var(--s-4);
  }
  /* Tables: keep 16px side margins, readable cells */
  #table,
  #table.price-table {
    width: calc(100% - 32px) !important;
    margin: 0 auto;
  }
  #table td,
  #table th {
    padding: 10px var(--s-2);
    font-size: 0.9375rem;
    line-height: 1.4;
  }
  .price-table td.price,
  .price-table th:last-child {
    width: 34%;
  }
  /* Buttons: old phone rules shrank them to 12px */
  /* Hero */
  /* Text blocks */
  :is(#servicePage, #page-extra) p.price-note {
    padding: 0 var(--s-4);
  }
  .price-box {
    width: calc(100% - 32px);
  }
  .price-box h3 {
    font-size: 1.25rem;
  }
  .faq-item summary {
    font-size: 1.0625rem;
    padding: 14px var(--s-12) 14px var(--s-4);
  }
  .faq-answer {
    font-size: 1rem;
  }
  .contact-lead {
    padding: 0 var(--s-2);
  }
}
/* Copyright row inside the footer */
.site-footer .footer-bottom {
  max-width: var(--w-wide);
  margin: var(--s-10) auto 0;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-2);
  color: var(--text-4);
  font-size: 0.9375rem;
  text-align: center;
}
.site-footer .footer-bottom a {
  color: var(--text-2);
}
/* Google map inside each office card */
/* Hero trust line with the official Google logo */
.trust-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.hero-ctas {
  margin-top: var(--s-8);
}
.nowrap {
  white-space: nowrap;
}
#home h1 {
  width: 90%;
  max-width: 900px;
}
@media (max-width: 799px) {
  .trust-line .sep {
    display: none;
  }
}
.trust-line .google-g {
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  box-sizing: content-box;
}
@media (max-width: 799px) {
  .trust-line > span:last-child {
    flex-basis: 100%;
  }
}
/* Hero CTAs: wide call button, icon-only WhatsApp/Messenger that expand on hover */
.hero-ctas {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
}
@media (max-width: 799px) {
  .hero-ctas {
    flex-direction: row;
    align-items: stretch;
    padding: 0 var(--s-4);
  }
}
/* Hero CTAs: larger */
.hero-ctas {
  gap: 14px;
}
/* Hero: services as keyword "pills" */
#home {
  height: auto;
  min-height: 100vh;
  padding-bottom: var(--s-10);
}
#arrow-wrapper {
  margin-top: 5vh;
}
@media (max-width: 799px) {
  #home {
    padding-top: 110px;
  }
}
/* Hero services: minimalist list with one elegant bullet style (replaces the pills) */
/* Hero services in a readable box */
/* Call button narrower now that there are four CTAs */
@media (max-width: 799px) {
  .hero-ctas {
    gap: var(--s-2);
  }
}
@media (max-width: 360px) {
  .hero-ctas {
    gap: 6px;
    padding: 0 10px;
  }
}
@media (max-width: 420px) {
  .hero-ctas {
    gap: 6px;
    padding: 0 10px;
  }
}
/* =====================================================================
   Reviews page (/otzivi)
   ===================================================================== */
:is(#servicePage, #page-extra).reviews-page p.reviews-intro {
  text-align: center !important;
  max-width: 640px;
}
.review-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-12);
  max-width: var(--w-narrow);
  margin: var(--s-8) auto var(--s-2);
  padding: var(--s-8) var(--s-10);
  color: #fff;
}
.summary-score {
  text-align: center;
  min-width: 180px;
}
.summary-score .google-g {
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50%;
  padding: var(--s-1);
  box-sizing: content-box;
}
.summary-score .score {
  font-size: 4rem;
  font-weight: 600;
  line-height: 1;
  margin: var(--s-2) 0 var(--s-1);
}
.summary-score .score-stars,
.review .stars {
  color: #f5c518;
  letter-spacing: 2px;
}
.summary-score .score-stars {
  font-size: 1.375rem;
}
.summary-score .score-count {
  color: var(--text-3);
  font-size: 0.9375rem;
  margin-top: 6px;
}
.summary-bars {
  flex: 1;
  max-width: 360px;
}
.bar-row {
  display: grid;
  grid-template-columns: 14px 1fr 28px;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-3);
  margin: 6px 0;
}
.bar-row .bar {
  height: 8px;
  background: #3a3a3a;
  border-radius: var(--r-xs);
  overflow: hidden;
}
.bar-row .bar span {
  display: block;
  height: 100%;
  background: #f5c518;
  border-radius: var(--r-xs);
}
.bar-row .bar-count {
  text-align: right;
}
:is(#servicePage, #page-extra) p.summary-note {
  text-align: center !important;
  font-size: 0.875rem;
  color: var(--text-4);
  max-width: 620px;
}
/* Themes */
.review-themes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  max-width: 820px;
  margin: 0 auto;
}
.review-themes li {
  position: relative;
  padding-left: 18px;
  color: #fff;
  font-size: 1.125rem;
}
.review-themes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: translateY(-50%) rotate(45deg);
}
/* Review cards */
.reviews-featured {
  margin: var(--s-2) auto var(--s-5);
}
.reviews {
  display: block;
  columns: 3 300px;
  column-gap: var(--s-5);
  max-width: var(--w-wide);
  width: auto;
  margin: 0 auto var(--s-8);
  padding: 0 var(--s-4);
}
.review {
  position: relative;
  break-inside: avoid;
  margin: 0 0 var(--s-5);
  text-align: left;
}
.review-featured {
  margin: 0;
  background: #262321;
  border-color: var(--accent-dim);
}
.review .quote-mark {
  position: absolute;
  font-family: Georgia, serif;
  line-height: 1;
  color: var(--accent);
}
.review .stars {
  display: block;
  font-size: 1rem;
  margin-bottom: 10px;
}
.review blockquote {
  color: #e8e8e8;
}
.review-featured blockquote {
  font-size: 1.125rem;
}
.review figcaption {
  margin: 0;
  color: inherit;
  font-size: inherit;
}
.review .avatar,
.rv .avatar {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.review .who b,
.rv .who b {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}
.review .who small,
.rv .who small {
  display: block;
  color: var(--text-4);
  font-size: var(--fs-caption);
  margin-top: 2px;
}
.review-more {
  display: inline;
}
.review-more summary {
  display: inline-block;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.9375rem;
  list-style: none;
}
.review-more summary::-webkit-details-marker {
  display: none;
}
.review-more[open] summary {
  display: none;
}
.review .more-dots:has(+ .review-more[open]) {
  display: none;
}
.leave-review {
  margin-top: var(--s-10);
}
@media (max-width: 799px) {
  .review-summary {
    flex-direction: column;
    gap: var(--s-6);
    margin: var(--s-6) var(--s-4) var(--s-2);
    padding: var(--s-6) var(--s-5);
  }
  .summary-bars {
    width: 100%;
  }
  .summary-score .score {
    font-size: 3.25rem;
  }
  .reviews {
    columns: 1;
  }
  .review-featured blockquote {
    font-size: 1.0625rem;
  }
  .review-themes li {
    font-size: 1rem;
  }
}
/* Reviews page: button rows, "leave a review" card */
.leave-review {
  max-width: var(--w-narrow);
  margin: var(--s-16) auto 0;
}
:is(#servicePage, #page-extra) .leave-review h2.title {
  margin-top: 0;
}
:is(#servicePage, #page-extra) .leave-review p {
  text-align: center !important;
  margin-bottom: var(--s-6);
}
:is(#servicePage, #page-extra).reviews-page h2.title {
  margin-top: var(--s-16);
  margin-bottom: var(--s-6);
}
.reviews {
  margin-bottom: var(--s-6);
}
/* FAQ block: same width/spacing rules on every page (old #faq rule used 89vw) */
#faq.faq {
  width: auto;
  max-width: none;
  padding: var(--s-20) var(--s-4) 0;
}
#faq.faq .title {
  margin-top: 0;
}
@media (max-width: 799px) {
  .leave-review {
    margin: var(--s-12) var(--s-4) 0;
  }
  :is(#servicePage, #page-extra).reviews-page h2.title {
    margin-top: var(--s-12) !important;
  }
  #faq.faq {
    padding-top: var(--s-12);
  }
}
/* Old ":is(#servicePage, #page-extra) a { color: white; width: 80vw }" must not touch buttons */
:is(#servicePage, #page-extra).reviews-page .leave-review h2.title {
  margin-top: 0 !important;
}
/* =====================================================================
   Tables redesign (2026-10-14): price cards + document checklists
   ===================================================================== */
.price-card {
  max-width: 820px;
  margin: var(--s-6) auto;
  background: #1b1b1b;
  border: 1px solid #3a3a3a;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.price-card h3 {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0;
  padding: var(--s-4) var(--s-6);
  background: linear-gradient(90deg, #2a2520, #1f1d1b);
  border-bottom: 1px solid #3a3a3a;
  color: #fff;
  font-size: 1.1875rem;
  font-weight: 600;
  text-align: left;
}
.price-card h3::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}
.price-card table.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  color: #e8e8e8;
}
.price-card .price-table thead th {
  padding: 10px var(--s-6);
  background: none;
  border: 0;
  color: #9a9a9a;
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}
.price-card .price-table thead th:last-child {
  text-align: right;
}
.price-card .price-table td {
  padding: 14px var(--s-6);
  border: 0;
  border-top: 1px solid var(--line-1);
  font-size: 1rem;
  line-height: 1.45;
  vertical-align: middle;
}
.price-card .price-table td.price {
  width: auto;
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  color: var(--accent-light);
}
.price-card .price-table tbody tr {
  transition: background 0.15s;
}
.price-card .price-table tbody tr:hover {
  background: rgba(200, 189, 178, 0.07);
}
:is(#servicePage, #page-extra) p.price-note {
  margin-top: var(--s-1) !important;
}
/* Document checklists */
.doc-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 14px;
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line-2);
}
.doc-list {
  list-style: none;
  counter-reset: doc;
  margin: 0;
  padding: 0;
}
.doc-list li {
  counter-increment: doc;
  position: relative;
  padding: 0 0 14px 42px;
  font-size: 1rem;
  line-height: 1.5;
  color: #e8e8e8;
  min-height: 28px;
}
.doc-list li::before {
  content: counter(doc);
  position: absolute;
  left: 0;
  top: -1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 799px) {
  .price-card {
    margin: var(--s-5) var(--s-4);
    border-radius: 10px;
  }
  .price-card h3 {
    padding: 14px var(--s-4);
    font-size: 1.0625rem;
  }
  .price-card .price-table thead th {
    padding: var(--s-2) var(--s-4);
  }
  .price-card .price-table td {
    padding: var(--s-3) var(--s-4);
    font-size: 0.9375rem;
  }
  .price-card .price-table td.price {
    white-space: normal;
    min-width: 90px;
  }
  .doc-list li {
    font-size: 0.9375rem;
  }
}
/* =====================================================================
   About page: intro panel, timeline, gallery + lightbox
   ===================================================================== */
#about.single {
  padding-bottom: var(--s-20);
}
/* Timeline: centre line on desktop, cards alternate left/right */
.timeline {
  list-style: none;
  position: relative;
  max-width: 900px;
  margin: var(--s-4) auto 0;
  padding: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: linear-gradient(var(--dusty-taupe), rgba(153, 134, 118, 0.25));
  transform: translateX(-50%);
}
.tl-item {
  position: relative;
  width: 50%;
  padding: 0 44px var(--s-10) 0;
  text-align: right;
}
.tl-item:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 var(--s-10) 44px;
  text-align: left;
}
.tl-year {
  position: absolute;
  top: 6px;
  right: -36px;
  z-index: 1;
  width: 72px;
  padding: 6px 0;
  border-radius: var(--r-pill);
  background: #111;
  border: 2px solid var(--accent);
  color: var(--accent-light);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
}
.tl-item:nth-child(even) .tl-year {
  right: auto;
  left: -36px;
}
.tl-card {
  display: inline-block;
  max-width: 360px;
  margin-top: 44px;
  text-align: left;
}
.tl-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.tl-card p {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-2);
}
.tl-today .tl-year {
  background: var(--accent);
  color: #111;
}
.tl-today .tl-card {
  border-color: var(--accent-dim);
  background: #262321;
}
/* Gallery: first photo large, the rest in a grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: var(--s-3);
  max-width: var(--w-wide);
  margin: var(--s-4) auto 0;
}
/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6);
  background: rgba(0, 0, 0, 0.92);
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 92vw;
  max-height: 80vh;
  border-radius: var(--r-sm);
}
.lightbox .lb-caption {
  color: var(--text-2);
  font-size: 1rem;
}
.lightbox button {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.375rem;
  cursor: pointer;
}
.lightbox .lb-close {
  top: 16px;
  right: 16px;
}
.lightbox .lb-prev {
  left: 16px;
  top: 50%;
}
.lightbox .lb-next {
  right: 16px;
  top: 50%;
}
@media (max-width: 799px) {
  #about.single {
    padding-bottom: var(--s-12);
  }
  .about-section {
    padding-top: var(--s-12);
  }
  .timeline::before {
    left: 20px;
  }
  .tl-item,
  .tl-item:nth-child(even) {
    width: auto;
    margin-left: 0;
    padding: 0 0 28px var(--s-12);
    text-align: left;
  }
  .tl-year,
  .tl-item:nth-child(even) .tl-year {
    left: -12px;
    right: auto;
    width: 64px;
    font-size: 0.9375rem;
    top: 0;
  }
  .tl-card {
    margin-top: var(--s-10);
    max-width: none;
    display: block;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: var(--s-2);
  }
  .lightbox .lb-prev,
  .lightbox .lb-next {
    top: auto;
    bottom: 20px;
  }
  .lightbox .lb-prev {
    left: calc(50% - 60px);
  }
  .lightbox .lb-next {
    right: calc(50% - 60px);
  }
}
/* About intro: slideshow (owners + team) next to the text */
.about-slideshow,
#about .about-slideshow {
  padding: 0;
  margin: 0;
}
.about-slideshow .splide__slide,
.about-slideshow img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 30%;
  padding: 0 !important;
  border-radius: 10px;
}
.about-slideshow .splide__pagination {
  bottom: -26px;
}
@media (max-width: 799px) {
  .about-slideshow .splide__slide,
  .about-slideshow img {
    height: 260px;
  }
}
/* Main FAQ page: topic jump links + grouped sections */
.faq-nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 900px;
  margin: 0 auto var(--s-2);
  padding: 0;
}
.faq-nav a {
  display: inline-block;
  padding: var(--s-2) var(--s-4);
  border: 1px solid #555;
  border-radius: var(--r-pill);
  color: #fff;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.faq-nav a:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
}
.faq-group {
  padding-top: var(--s-12);
}
#faq.faq-all {
  padding-top: var(--s-6);
}
@media (max-width: 799px) {
  .faq-nav a {
    font-size: 0.875rem;
    padding: 7px var(--s-3);
  }
  .faq-group {
    padding-top: var(--s-8);
  }
}
/* FAQ question text is an <h3> inside <summary>; keep the accordion look */
.faq-item summary .faq-q {
  display: inline;
  margin: 0;
  font: inherit;
  color: inherit;
}
.faq-item[id] {
  scroll-margin-top: 180px;
}
/* Phone hero: fill one screen and spread headline / buttons / arrow evenly */
@media (max-width: 799px) {
  #home {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    min-height: 100svh;
    height: auto;
    padding: 93px 0 var(--s-4);
    box-sizing: border-box;
  }
  #home .hero-head,
  #home .hero-ctas {
    width: 100%;
  }
  #home h1 {
    margin-bottom: 14px;
  }
  #home .trust-line {
    margin-bottom: 0;
  }
  #home #arrow-wrapper {
    margin-top: 0;
  }
}
/* Hero: two equal CTAs – call + Viber */
@media (max-width: 799px) {
  #home .hero-ctas {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 0 var(--s-4);
  }
}
/* Office maps: beat legacy "#contact iframe {width:80vw}" so maps stay inside their card */
/* ---- Responsive pass (15.10.2026) ---- */
/* Home: sections after the hero don't need the legacy 10vh top padding meant for page tops */
main > :is(#servicePage, #page-extra):not(:first-child) .service {
  padding-top: var(--s-16);
}
main > :is(#servicePage, #page-extra):not(:first-child) .service > h2.title:first-child {
  margin-top: 0;
}
/* Team: 6 people → 3 + 3 instead of 5 + 1 */
.team-grid {
  max-width: var(--w-narrow);
}
@media (max-width: 799px) {
  main > :is(#servicePage, #page-extra):not(:first-child) .service {
    padding-top: var(--s-12);
  }
  /* Service-page photo slideshows: use the screen width instead of a small framed photo */
  :is(#servicePage, #page-extra) .slideshow {
    padding: 0 var(--s-2);
  }
  :is(#servicePage, #page-extra) .slideshow img {
    padding: var(--s-3) 36px;
  }
}
/* ==== Monument gallery (/galeriya-pametnici) + teaser on /uslugi/pametnici ==== */
.mon-page .mon-lead {
  font-size: 1.1875rem;
  color: #e6e6e6;
}
.mon-gallery {
  margin: 32px 0 0 calc(50% - min(600px, 50vw - 16px));
}
.mon-filters:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}
.mon-grid {
  display: grid;
}
.mon-item {
  margin: 0;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.mon-item[hidden] {
  display: none;
}
.mon-item:not(.mon-placeholder):hover,
.mon-item:target {
  border-color: var(--accent);
}
.mon-item:target {
  box-shadow: 0 0 0 3px rgba(200, 189, 178, 0.35);
}
.mon-media,
:is(#servicePage, #page-extra) a.mon-media {
  display: block;
  width: auto;
  margin: 0;
  overflow: hidden;
}
.mon-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
a.mon-media {
  cursor: zoom-in;
}
a.mon-media:hover img {
  transform: scale(1.04);
}
.mon-item figcaption {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  padding: var(--s-3) var(--s-4) 14px;
  text-align: left;
}
.mon-item figcaption b {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}
.mon-item figcaption span {
  color: var(--text-4);
  font-size: 0.875rem;
}
.mon-placeholder {
  border-style: dashed;
  border-color: #3a3a3a;
}
.mon-placeholder figcaption b {
  color: #bbb;
}
.mon-cta {
  max-width: var(--w-narrow);
  margin: 56px auto 0;
  text-align: center;
}
.mon-cta h2 {
  color: #fff;
  font-size: 1.625rem;
  font-weight: 600;
  margin: 0 0 var(--s-3);
}
:is(#servicePage, #page-extra) .mon-cta p {
  text-align: center !important;
  margin-bottom: var(--s-5);
}
/* Teaser strip on /uslugi/pametnici */
.mon-teaser {
  display: grid;
  margin: var(--s-6) auto var(--s-2);
  padding: 0 var(--s-4);
}
.mon-teaser-item,
:is(#servicePage, #page-extra) a.mon-teaser-item {
  position: relative;
  display: block;
  width: auto;
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line-2);
  font-size: 0.9375rem;
}
.mon-teaser-item img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.mon-teaser-item:hover img {
  transform: scale(1.05);
}
.mon-teaser-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
  text-align: left;
}
@media (max-width: 999px) {
  .mon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mon-teaser {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 599px) {
  .mon-filters:not([hidden]) {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .mon-cta {
    margin: var(--s-10) var(--s-4) 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mon-media img,
  .mon-teaser-item img {
    transition: none;
  }
}
/* ==== Breadcrumbs (all inner pages): below the fixed header, clickable, subtle ==== */
.breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px var(--s-2);
  max-width: var(--w-text);
  margin: var(--s-16) auto 0;
  padding: 0 var(--s-4);
  color: #999;
  font-size: 0.875rem;
  line-height: 1.4;
}
.breadcrumb a,
:is(#servicePage, #page-extra) .breadcrumb a,
#about .breadcrumb a {
  display: inline;
  width: auto;
  margin: 0;
  color: var(--text-2);
  font-size: 0.875rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(153, 134, 118, 0.5);
  transition: color 0.2s, border-color 0.2s;
}
.breadcrumb a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.breadcrumb span[aria-current] {
  color: var(--text-4);
}
@media (min-width: 800px) {
  /* Fixed header is ~175px tall on desktop: start page content below it */
  main > :is(#servicePage, #page-extra):first-child > .service:first-child {
    padding-top: 120px;
  }
}
@media (max-width: 799px) {
  .breadcrumb {
    margin-top: var(--s-6);
    font-size: var(--fs-caption);
  }
  .breadcrumb a,
  :is(#servicePage, #page-extra) .breadcrumb a,
  #about .breadcrumb a {
    font-size: var(--fs-caption);
  }
}
/* ==== Gallery v2: uniform portrait tiles, 3 per row ==== */
.mon-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
  max-width: var(--w-content);
  margin: 0 auto;
}
.mon-gallery {
  width: min(1080px, calc(100vw - 32px));
  margin-left: calc(50% - min(540px, 50vw - 16px));
}
.mon-media,
:is(#servicePage, #page-extra) a.mon-media {
  position: relative;
  aspect-ratio: 2 / 3;
  background: #111;
}
.mon-media img {
  position: relative;
  z-index: 1;
}
/* Landscape photos: whole photo, centred over a blurred copy, same tile size */
.mon-wide::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: var(--bg) center / cover;
  filter: blur(18px) brightness(0.55);
}
.mon-wide img {
  object-fit: contain;
}
.mon-item figcaption {
  min-height: 72px;
}
.mon-item figcaption span {
  line-height: 1.4;
}
.mon-placeholder .mon-media img {
  object-fit: cover;
}
.mon-cta-note {
  margin-top: var(--s-5) !important;
  font-size: 0.9375rem !important;
  color: #bbb;
}
@media (max-width: 599px) {
  .mon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--s-3);
  }
  .mon-item figcaption {
    padding: 10px 10px var(--s-3);
    min-height: 0;
  }
  .mon-item figcaption b {
    font-size: 0.9375rem;
  }
  .mon-item figcaption span {
    font-size: var(--fs-caption);
  }
}
/* ==== /uslugi/pametnici landing page ==== */
.pam-benefits {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.pam-benefits li {
  border-top: 2px solid var(--accent);
}
.pam-benefits i {
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
:is(#servicePage, #page-extra) .pam-benefits p {
  margin: 0;
}
:is(#servicePage, #page-extra) .pam-center {
  text-align: center !important;
}
.mon-teaser {
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  max-width: var(--w-content);
}
.mon-teaser-item,
:is(#servicePage, #page-extra) a.mon-teaser-item {
  aspect-ratio: 2 / 3;
}
.mon-teaser-item span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--s-10) 14px 14px;
  font-size: 1rem;
  font-weight: 600;
}
.mon-teaser-item small {
  font-size: var(--fs-caption);
  font-weight: 400;
  color: var(--text-3);
}
.pam-compare-card h3 {
  font-weight: 600;
}
.pam-compare-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pam-compare-card li {
  position: relative;
  padding: 0 0 var(--s-2) 26px;
  line-height: 1.5;
}
.pam-compare-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.pam-compare-card:first-child li::before {
  color: var(--ash-brown);
}
@media (max-width: 999px) {
  .pam-benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 599px) {
  .pam-benefits {
    grid-template-columns: 1fr;
  }
  .pam-benefits li {
    padding: var(--s-5) 18px;
  }
  .mon-teaser {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
/* Pages whose first block is not .service: keep breadcrumbs below the fixed header */
:is(#servicePage, #page-extra) > #service:first-child {
  padding-top: 126px;
}
@media (max-width: 799px) {
  :is(#servicePage, #page-extra) > #service:first-child {
    padding-top: 84px;
  }
  #about.single > .breadcrumb:first-child {
    margin-top: var(--s-16);
  }
}
/* HTML width/height are only hints: let aspect-ratio decide */
.mon-teaser-item img {
  height: 100%;
}
/* About: key numbers (ABOUT_STATS in data.py), 2026-10-15 */
.about-stats {
  list-style: none;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--s-16) var(--s-4) 0;
}
.about-stats li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--s-6) var(--s-3);
  text-align: center;
}
.about-stats .stat-num {
  color: var(--accent-light);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.1;
}
.about-stats .stat-label {
  margin-top: var(--s-2);
  color: #e6e6e6;
  font-size: 1.0625rem;
  line-height: 1.4;
}
@media (max-width: 799px) {
  .about-stats {
    padding-top: var(--s-12);
  }
  .about-stats .stat-num {
    font-size: 2rem;
  }
  .about-stats .stat-label {
    font-size: 1rem;
  }
}
/* Pametnici hero: original slideshow next to the intro copy */
/* ==== Benefits v2: one refined panel with hairline dividers ==== */
.pam-benefits {
  counter-reset: benefit;
  gap: 0;
  max-width: 1048px;
  margin: var(--s-8) auto 0;
  padding: 0;
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--panel-dark);
}
.pam-benefits li {
  counter-increment: benefit;
  position: relative;
  padding: var(--s-10) 34px 36px;
  background: transparent;
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
  transition: background 0.3s ease;
}
.pam-benefits li:nth-child(3n) {
  border-right: 0;
}
.pam-benefits li:nth-last-child(-n + 3) {
  border-bottom: 0;
}
/* accent line + number */
.pam-benefits li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 34px;
  width: 28px;
  height: 2px;
  background: var(--accent-line);
  transition: width 0.35s ease;
}
.pam-benefits li::after {
  content: counter(benefit, decimal-leading-zero);
  position: absolute;
  top: 36px;
  right: 30px;
  color: var(--accent-light);
  opacity: 0.45;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.pam-benefits li:hover {
  background: rgba(200, 189, 178, 0.04);
  /* pale oak tint */;
}
.pam-benefits li:hover::before {
  width: 64px;
  background: var(--accent);
}
.pam-benefits i {
  display: block;
  width: auto;
  height: auto;
  margin: 0 0 18px;
  border: 0;
  border-radius: 0;
  color: var(--dusty-taupe);
  font-size: 1.375rem;
  opacity: 0.9;
}
.pam-benefits h3 {
  margin: 0 0 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
}
:is(#servicePage, #page-extra) .pam-benefits p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #b8b8b8;
}
:is(#servicePage, #page-extra) .pam-benefits p a {
  color: #e6e6e6;
}
@media (max-width: 999px) {
  .pam-benefits {
    margin: 28px var(--s-4) 0;
  }
  .pam-benefits li,
  .pam-benefits li:nth-child(3n) {
    border-right: 1px solid var(--line-1);
    border-bottom: 1px solid var(--line-1);
  }
  .pam-benefits li:nth-child(2n) {
    border-right: 0;
  }
  .pam-benefits li:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}
@media (max-width: 599px) {
  .pam-benefits {
    gap: 0;
  }
  .pam-benefits li,
  .pam-benefits li:nth-child(2n),
  .pam-benefits li:nth-child(3n) {
    border-right: 0;
    border-bottom: 1px solid var(--line-1);
  }
  .pam-benefits li:last-child {
    border-bottom: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pam-benefits li,
  .pam-benefits li::before {
    transition: none;
  }
}
:is(#servicePage, #page-extra) .pam-benefits p {
  padding: 0;
  max-width: none;
}
@media (max-width: 599px) {
  .pam-benefits li,
  .pam-benefits li:nth-child(2n),
  .pam-benefits li:nth-child(3n) {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 14px;
    padding: var(--s-6) 44px 22px var(--s-5);
  }
  .pam-benefits i {
    grid-row: span 2;
    margin: 2px 0 0;
    font-size: 1.25rem;
  }
  .pam-benefits h3 {
    margin-bottom: 6px;
    font-size: 1rem;
  }
  .pam-benefits li::before {
    left: 20px;
  }
  .pam-benefits li::after {
    top: 25px;
    right: 18px;
  }
}
/* ==== Palette pass: legacy styles.css colours (brand-coloured hovers, yellow, green, lilac) ==== */
footer.site-footer .social-icons a:hover i,
footer i.fa-whatsapp:hover,
footer i.fa-facebook-messenger:hover,
footer i.fa-facebook:hover,
footer i.fa-google:hover {
  color: var(--accent);
}
.menu > div > div > ul > li > a:hover,
.menu .collapsed-item:hover {
  color: var(--accent);
}
#whatsapp:hover {
  background-color: var(--ash-brown);
  color: var(--parchment);
}
.pulse {
  -webkit-box-shadow: 0 0 1px 2px var(--dusty-taupe);
  box-shadow: 0 0 1px 2px var(--dusty-taupe);
}
.pam-compare-card:first-child h3 {
  color: var(--ash-brown);
}
#arrow-wrapper a {
  color: var(--parchment);
}
/* ==== 404 page ==== */
.nf-page {
  max-width: var(--w-text);
  margin: 0 auto;
  padding-bottom: var(--s-10);
  text-align: center;
}
:is(#servicePage, #page-extra) .nf-page .nf-code {
  margin: 0 auto var(--s-1);
  max-width: none;
  text-align: center !important;
  font-size: 7.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--dust-grey);
  opacity: 0.85;
}
.nf-page .nf-code::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin: var(--s-6) auto 0;
  background: var(--accent-line);
}
:is(#servicePage, #page-extra) .nf-page h1.title {
  margin: var(--s-6) 0 var(--s-4);
}
:is(#servicePage, #page-extra) .nf-page .nf-text {
  text-align: center !important;
  color: var(--text-3);
}
.nf-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  padding-top: var(--s-6);
  border-top: 1px solid var(--line-1);
}
.nf-links a,
:is(#servicePage, #page-extra) .nf-links a {
  display: inline;
  width: auto;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 189, 178, 0.35);
}
.nf-links a:hover {
  color: var(--parchment);
  border-color: var(--parchment);
}
@media (max-width: 599px) {
  :is(#servicePage, #page-extra) .nf-page .nf-code {
    font-size: 5.5rem;
  }
  .nf-page {
    padding: 0 var(--s-4) var(--s-6);
  }
}
@media (min-width: 800px) {
  :is(#servicePage, #page-extra) .nf-page .nf-code {
    margin-top: var(--s-20);
  }
}
/* ==== Contact section v2 (.ct) ==== */
#contact.ct {
  max-width: var(--w-content);
}
.ct-grid {
  margin-top: var(--s-2);
}
/* Call panel */
.ct-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0 0 14px;
  color: var(--accent);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ct-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 189, 178, 0.15);
}
#contact a.ct-main {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: 2.375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  line-height: 1.1;
}
.ct-main i {
  font-size: 1.625rem;
  color: var(--accent);
}
#contact a.ct-main:hover {
  color: var(--parchment);
}
.ct-main-note {
  margin: var(--s-2) 0 var(--s-6);
  color: var(--text-4);
  font-size: 0.875rem;
}
.ct-phones {
  border-top: 1px solid var(--line-1);
}
#contact a.ct-phone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-1);
  color: #fff;
  text-decoration: none;
  transition: padding-left 0.25s ease;
}
#contact a.ct-phone:hover {
  padding-left: 6px;
}
.ct-phone i {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-dim);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.875rem;
}
.ct-phone b {
  display: block;
  font-size: 1.1875rem;
  font-weight: 600;
}
.ct-phone small {
  display: block;
  color: #999;
  font-size: var(--fs-caption);
}
.ct-sub {
  margin: var(--s-6) 0 10px;
  color: var(--text-4);
  font-size: 0.875rem;
}
/* Form panel */
.ct .contact-form {
  max-width: none;
  margin: 0;
}
.ct .contact-form h3 {
  text-align: left;
  margin: 0 0 var(--s-1);
}
.ct-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ct #form textarea {
  resize: vertical;
}
/* Offices */
#contact .ct-office .office-map {
  display: block;
  width: 100%;
  height: 220px;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.ct-office-body {
  padding: 22px var(--s-6) var(--s-6);
}
.ct-office h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 600;
}
.ct-office p {
  display: flex;
  gap: 10px;
  margin: 0 0 6px;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.5;
}
.ct-office p i {
  flex: 0 0 16px;
  margin-top: var(--s-1);
  color: var(--dusty-taupe);
}
.ct-office .office-hours {
  color: var(--text-4);
}
#contact a.ct-link {
  display: inline-block;
  color: var(--accent);
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 189, 178, 0.35);
}
#contact a.ct-link:hover {
  color: var(--parchment);
  border-color: var(--parchment);
}
@media (max-width: 599px) {
  #contact a.ct-main {
    font-size: 1.875rem;
  }
  .ct-main i {
    font-size: 1.375rem;
  }
  .ct-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #contact a.ct-phone {
    transition: none;
  }
}
/* Contact: the 4 boxes share one 2-column grid so their edges line up; equal heights per row */
.ct-offices {
  align-items: stretch;
}
.ct-offices {
  margin-top: var(--s-6);
}
.ct-panel {
  display: flex;
  flex-direction: column;
}
.ct-office {
  display: flex;
  flex-direction: column;
}
.ct-office-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}
#contact a.ct-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: var(--s-3);
}
.ct .contact-form form {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.ct #form textarea {
  flex: 1;
  min-height: 132px;
}
@media (max-width: 599px) {
  .ct-offices {
    margin-top: var(--s-4);
  }
}
/* ==== Info card carousel ({{cards}}) ==== */
.ic-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ic-track::-webkit-scrollbar {
  display: none;
}
.ic-track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: var(--r-lg);
}
.ic-card {
  position: relative;
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
  padding: 34px 30px 30px;
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  background: var(--panel-dark);
  color: var(--text-2);
}
/* two cards: two halves */
.ic-track:has(> .ic-card:nth-child(2):last-child) .ic-card {
  flex-basis: calc((100% - 20px) / 2);
}
.ic-card::before {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--accent-line);
}
.ic-card h2.ic-title {
  margin: 0 0 14px;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}
:is(#servicePage, #page-extra) .ic-card p,
.ic-card p {
  max-width: none;
  margin: 0 0 var(--s-3);
  padding: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-3);
}
.ic-card p:last-child {
  margin-bottom: 0;
}
.ic-card .content-list {
  max-width: none;
  margin: 0 0 var(--s-3);
  padding-left: 18px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-3);
}
.ic-card .content-list li {
  margin-bottom: 6px;
}
:is(#servicePage, #page-extra) .ic-card a {
  display: inline;
  width: auto;
  margin: 0;
  font-size: inherit;
}
.ic-nav:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
}
.ic-dots {
  display: flex;
  gap: var(--s-2);
}
.ic-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: #555;
  cursor: pointer;
  transition: width 0.25s, background 0.25s;
}
.ic-dot[aria-current="true"] {
  width: 24px;
  background: var(--accent);
}
@media (max-width: 999px) {
  .ic-card,
  .ic-track:has(> .ic-card:nth-child(2):last-child) .ic-card {
    flex-basis: calc((100% - 20px) / 1.6);
  }
}
@media (max-width: 599px) {
  .ic-card,
  .ic-track:has(> .ic-card:nth-child(2):last-child) .ic-card {
    flex-basis: 86%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ic-dot {
    transition: none;
  }
}
/* Desktop: ~2.3 cards visible so the row reads as a carousel (the next card peeks in) */
@media (min-width: 1000px) {
  .ic-card,
  .ic-track:has(> .ic-card:nth-child(2):last-child) .ic-card {
    flex-basis: calc((100% - 40px) / 2.3);
  }
}
/* ==== Info carousel v2: full page width, one slide per screen, palette colours ==== */
html,
body {
  overflow-x: clip;
  /* lets the full-bleed carousel use 100vw without a sideways scrollbar */;
}
.ic {
  width: 100vw;
  max-width: none;
  margin: 56px 0 8px calc(50% - 50vw);
  padding: 0;
}
.ic-track {
  scroll-padding: 0;
}
.ic-card,
.ic-track:has(> .ic-card:nth-child(2):last-child) .ic-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 0;
}
.ic-card::before {
  width: 40px;
}
.ic-card h2.ic-title {
  font-size: 1.75rem;
  margin-bottom: 18px;
}
:is(#servicePage, #page-extra) .ic-card p,
.ic-card p,
.ic-card .content-list {
  font-size: 1.125rem;
  line-height: 1.7;
}
/* 1st, 4th… slide: Ash Brown with Parchment text */
.ic-card:nth-child(3n + 1) {
  background: var(--panel-ash);
}
.ic-card:nth-child(3n + 1)::before {
  background: var(--pale-oak);
}
.ic-card:nth-child(3n + 1),
.ic-card:nth-child(3n + 1) h2.ic-title,
.ic-card:nth-child(3n + 1) p,
.ic-card:nth-child(3n + 1) .content-list,
:is(#servicePage, #page-extra) .ic-card:nth-child(3n + 1) a {
  color: var(--parchment);
}
/* 2nd, 5th… slide: Dust Grey → Pale Oak with Ash Brown text */
.ic-card:nth-child(3n + 2) {
  background: var(--panel-light);
}
.ic-card:nth-child(3n + 2)::before {
  background: var(--ash-brown);
}
.ic-card:nth-child(3n + 2),
.ic-card:nth-child(3n + 2) h2.ic-title,
.ic-card:nth-child(3n + 2) p,
.ic-card:nth-child(3n + 2) .content-list,
:is(#servicePage, #page-extra) .ic-card:nth-child(3n + 2) a {
  color: var(--ash-brown);
}
/* 3rd, 6th… slide: Dusty Taupe with near-black text */
.ic-card:nth-child(3n + 3) {
  background: var(--panel-taupe);
}
.ic-card:nth-child(3n + 3)::before {
  background: var(--parchment);
}
.ic-card:nth-child(3n + 3),
.ic-card:nth-child(3n + 3) h2.ic-title,
.ic-card:nth-child(3n + 3) p,
.ic-card:nth-child(3n + 3) .content-list,
:is(#servicePage, #page-extra) .ic-card:nth-child(3n + 3) a {
  color: #1a1614;
}
.ic-card b,
.ic-card strong {
  color: inherit;
}
:is(#servicePage, #page-extra) .ic-card a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ic-nav:not([hidden]) {
  margin-top: var(--s-5);
}
@media (max-width: 599px) {
  .ic {
    margin-top: var(--s-10);
  }
  .ic-card,
  .ic-track:has(> .ic-card:nth-child(2):last-child) .ic-card {
    min-height: 0;
  }
  .ic-card h2.ic-title {
    font-size: 1.375rem;
  }
  :is(#servicePage, #page-extra) .ic-card p,
  .ic-card p,
  .ic-card .content-list {
    font-size: 1rem;
  }
}
:is(#servicePage, #page-extra) .ic-card:nth-child(3n + 1) p,
:is(#servicePage, #page-extra) .ic-card:nth-child(3n + 1) .content-list {
  color: var(--parchment);
}
:is(#servicePage, #page-extra) .ic-card:nth-child(3n + 2) p,
:is(#servicePage, #page-extra) .ic-card:nth-child(3n + 2) .content-list {
  color: var(--ash-brown);
}
:is(#servicePage, #page-extra) .ic-card:nth-child(3n + 3) p,
:is(#servicePage, #page-extra) .ic-card:nth-child(3n + 3) .content-list {
  color: #1a1614;
}
/* ==== Info carousel v3: real cards, one centred per screen, neighbours peek in ==== */
.ic {
  --icw: min(960px, calc(100vw - 112px));
}
.ic-track {
  gap: var(--s-6);
  padding: 10px calc((100vw - var(--icw)) / 2) 18px;
  scroll-padding-inline: calc((100vw - var(--icw)) / 2);
}
.ic-card,
.ic-track:has(> .ic-card:nth-child(2):last-child) .ic-card {
  flex: 0 0 var(--icw);
  min-height: 320px;
  padding: 60px 72px 56px;
  border-radius: 18px;
  scroll-snap-align: center;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.ic-card::before {
  left: 72px;
  top: 38px;
}
@media (max-width: 599px) {
  .ic {
    --icw: calc(100vw - 40px);
  }
  .ic-track {
    gap: var(--s-3);
  }
  .ic-card,
  .ic-track:has(> .ic-card:nth-child(2):last-child) .ic-card {
    padding: 50px 22px 34px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  }
  .ic-card::before {
    left: 22px;
    top: 28px;
  }
}
/* ==== Hero scroll arrow: concentric ring, centred chevron, round pulse ==== */
#arrow-wrapper,
#arrow-wrapper a {
  display: block;
  width: 56px;
  height: 56px;
}
#arrow-wrapper .arrow-border {
  position: relative;
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--parchment);
  border-radius: 50%;
}
#arrow-wrapper .arrow {
  position: static;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  /* optical centre of a downward chevron */
  border-top: 3px solid var(--parchment);
  border-right: 3px solid var(--parchment);
  transform: rotate(135deg);
}
#arrow-wrapper .pulse {
  position: absolute;
  inset: -2px;
  width: auto;
  height: auto;
  border-radius: 50%;
}
/* ==== Hero: Диляна next to the call buttons (phones only) ==== */
@media (max-width: 799px) {
  .hero-person {
    margin: 0 auto;
  }
}
/* ==== Hero title in capitals (home page only) ==== */
#home h1 {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 2.375rem;
  line-height: 1.25;
}
@media (max-width: 799px) {
  #home h1 {
    font-size: 1.5625rem;
    line-height: 1.3;
  }
}
@media (max-width: 360px) {
  #home h1 {
    font-size: 1.375rem;
  }
}
/* ==== Hero actions: buttons, then Диляна underneath (phones) ==== */
.hero-actions {
  width: 100%;
}
@media (max-width: 799px) {
  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-4);
  }
  #home .hero-ctas {
    margin-top: 0;
    width: 100%;
  }
}
/* ==== Service cards: photo + outlined button, whole card is one link ==== */
#service .cards .card {
  height: auto;
}
#service .cards .card:hover {
  transform: translateY(-4px);
}
#service .cards .card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: auto;
  margin: 0;
  color: #fff;
  text-decoration: none;
}
#service .cards .card img {
  display: block;
  object-fit: cover;
  border-radius: 10px;
}
#service .card a:focus-visible {
  outline: none;
}
#service .card a:focus-visible img {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  #service .cards .card {
    transition: none;
  }
}
/* ==== Contacts: palette colour ==== */
.ct-call .ct-eyebrow,
.ct-call .ct-main i,
.ct-call .ct-phone i {
  color: var(--pale-oak);
}
.ct-call .ct-dot {
  background: var(--pale-oak);
  box-shadow: 0 0 0 4px rgba(246, 243, 238, 0.15);
}
.ct-call .ct-main-note,
.ct-call .ct-phone small,
.ct-call .ct-sub {
  color: var(--dust-grey);
}
.ct-call .ct-phones,
#contact .ct-call a.ct-phone {
  border-color: rgba(246, 243, 238, 0.18);
}
.ct-call .ct-phone i {
  border-color: rgba(200, 189, 178, 0.55);
}
/* form: send button in Pale Oak */
/* offices: Dusty Taupe accent line under the map, warm card body */
#contact .ct-office .office-map {
  border-bottom: 3px solid var(--dusty-taupe);
}
.ct-office h3 {
  color: var(--parchment);
}
/* Диляна under the hero buttons on desktop too */
@media (min-width: 800px) {
  .hero-person {
    width: fit-content;
    margin: var(--s-5) auto 0;
  }
}
/* ==== Coffins gallery: landscape tiles (4:3) ==== */
.mon-grid--landscape .mon-media,
:is(#servicePage, #page-extra) .mon-grid--landscape a.mon-media {
  aspect-ratio: 4 / 3;
}
.mon-grid--landscape .mon-media img {
  object-fit: cover;
}
.mon-grid--landscape .mon-wide img,
.mon-grid--portrait .mon-wide img {
  object-fit: contain;
}
/* Links to the coffin and wreath galleries on /uslugi/traurni-stoki */
/* ==== Header above page content (breadcrumbs used to cover the dropdown) ==== */
#navbar {
  z-index: 50;
}
/* ==== Desktop "Услуги" dropdown: minimal dark panel ==== */
.nav-dd {
  position: relative;
}
#navbar .nav-dd > a#dropdown {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
#navbar .nav-dd > a#dropdown i {
  font-size: 0.875rem;
  color: var(--pale-oak);
  transition: transform 0.25s ease;
}
.nav-dd-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 60;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid rgba(200, 189, 178, 0.18);
  border-radius: 14px;
  background: rgba(20, 18, 17, 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
/* invisible bridge so the mouse can travel from "Услуги" to the panel */
.nav-dd-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}
.nav-dd:hover .nav-dd-panel,
.nav-dd:focus-within .nav-dd-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav-dd.nav-dd-closed .nav-dd-panel {
  opacity: 0;
  visibility: hidden;
}
.nav-dd:hover > a#dropdown i,
.nav-dd:focus-within > a#dropdown i {
  transform: rotate(180deg);
}
#navbar .nav-dd-panel a {
  position: relative;
  display: block;
  padding: 11px 14px 11px 28px;
  border-radius: var(--r-md);
  color: #e6e6e6;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
#navbar .nav-dd-panel a:hover {
  transform: none;
  background: rgba(200, 189, 178, 0.08);
  color: #fff;
}
#navbar .nav-dd-panel a::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--dusty-taupe);
  opacity: 0.5;
  transition: opacity 0.15s, background 0.15s;
}
#navbar .nav-dd-panel a:hover::before,
#navbar .nav-dd-panel a[aria-current="page"]::before {
  opacity: 1;
  background: var(--pale-oak);
}
#navbar .nav-dd-panel a[aria-current="page"] {
  color: var(--parchment);
  background: rgba(200, 189, 178, 0.06);
}
#navbar .nav-dd-panel a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.nav-dd-sep {
  height: 1px;
  margin: 6px var(--s-3);
  background: rgba(200, 189, 178, 0.15);
}
#navbar .nav-dd-panel a.nav-dd-all {
  margin-top: 6px;
  padding-left: 14px;
  border-top: 1px solid rgba(200, 189, 178, 0.15);
  border-radius: 0 0 var(--r-md) var(--r-md);
  color: var(--pale-oak);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}
#navbar .nav-dd-panel a.nav-dd-all::before {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .nav-dd-panel,
  #navbar .nav-dd > a#dropdown i {
    transition: none;
  }
}
/* ==== Мрамор или гранит? – palette cards with simple motion ==== */
.pam-compare-card {
  position: relative;
  overflow: hidden;
  padding: 34px 30px 28px;
  border: 0;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pam-compare-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
}
/* subtle stone sheen that sweeps across on hover */
.pam-compare-card::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s ease;
  pointer-events: none;
}
.pam-compare-card:hover::after {
  left: 120%;
}
.pam-compare-card.pam-marble h3 {
  color: var(--ash-brown);
}
.pam-compare-card.pam-granite h3 {
  color: var(--parchment);
}
.pam-compare-card h3 {
  margin: var(--s-1) 0 14px;
  font-size: 1.625rem;
}
.pam-marble .pam-compare-tag {
  background: rgba(84, 69, 65, 0.12);
  color: var(--ash-brown);
}
.pam-granite .pam-compare-tag {
  background: rgba(246, 243, 238, 0.14);
  color: var(--dust-grey);
}
.pam-compare-card li {
  font-size: 1rem;
}
.pam-compare-card.pam-marble li,
.pam-compare-card.pam-marble li::before {
  color: var(--ash-brown);
}
.pam-compare-card.pam-granite li {
  color: var(--parchment);
}
.pam-compare-card.pam-granite li::before {
  color: var(--pale-oak);
}
/* fade-up when the cards scroll into view (class added by main.js) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.pam-compare .reveal:nth-child(2) {
  transition-delay: 0.12s;
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .pam-compare-card::after {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .pam-compare-card {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
.pam-page .breadcrumb {
  max-width: var(--w-text);
  justify-content: center;
}
/* ==== Hero CTA row on landing pages (e.g. gallery link on /uslugi/pametnici) ==== */
/* ==== Contact form panel in the light palette tone ==== */
.ct .contact-form h3,
.ct .contact-form label {
  color: var(--ash-brown);
}
.ct #form input,
.ct #form textarea {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(84, 69, 65, 0.25);
  color: #2a2220;
}
.ct #form input::placeholder,
.ct #form textarea::placeholder {
  color: rgba(84, 69, 65, 0.55);
}
.ct #form input:focus,
.ct #form textarea:focus {
  outline: 2px solid var(--ash-brown);
  outline-offset: 1px;
  border-color: var(--ash-brown);
  background: #fff;
}
/* =====================================================================
   BUTTONS – the only button styles on the site.
   .btn + one colour (.btn-primary | .btn-secondary | .btn-dark) + optional size (.btn-sm | .btn-lg)
   .btn-block = full width · .btn-icon = round icon button · .btn-row = row of buttons
   (":is(…)" lifts specificity above the 2021 ":is(#servicePage, #page-extra) a" link rules.)
   ===================================================================== */
:is(body, :is(#servicePage, #page-extra), #contact, #home, #about, #service, #faq) .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  width: auto;
  min-height: 48px;
  margin: 0;
  padding: var(--s-3) var(--s-6);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: Montserrat, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
:is(body, :is(#servicePage, #page-extra), #contact, #home, #about, #service, #faq) .btn:hover {
  transform: translateY(-1px);
}
:is(body, :is(#servicePage, #page-extra), #contact, #home, #about, #service, #faq) .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn i {
  font-size: 0.95em;
}
/* colours */
:is(body, :is(#servicePage, #page-extra), #contact, #home, #about, #service, #faq) .btn-primary {
  background: var(--pale-oak);
  border-color: var(--pale-oak);
  color: var(--ash-brown);
}
:is(body, :is(#servicePage, #page-extra), #contact, #home, #about, #service, #faq) .btn-primary:hover {
  background: var(--parchment);
  border-color: var(--parchment);
  color: var(--ash-brown);
}
:is(body, :is(#servicePage, #page-extra), #contact, #home, #about, #service, #faq) .btn-secondary {
  background: transparent;
  border-color: rgba(200, 189, 178, 0.6);
  color: var(--parchment);
}
:is(body, :is(#servicePage, #page-extra), #contact, #home, #about, #service, #faq) .btn-secondary:hover,
:is(body, :is(#servicePage, #page-extra), #contact, #home, #about, #service, #faq) a:hover > .btn-secondary,
:is(body, :is(#servicePage, #page-extra), #contact, #home, #about, #service, #faq) .btn-secondary[aria-pressed="true"] {
  background: var(--pale-oak);
  border-color: var(--pale-oak);
  color: var(--ash-brown);
}
:is(body, :is(#servicePage, #page-extra), #contact, #home, #about, #service, #faq) .btn-dark {
  background: var(--ash-brown);
  border-color: var(--ash-brown);
  color: var(--parchment);
}
:is(body, :is(#servicePage, #page-extra), #contact, #home, #about, #service, #faq) .btn-dark:hover {
  background: #3f3431;
  border-color: #3f3431;
  color: var(--parchment);
}
/* sizes */
:is(body, :is(#servicePage, #page-extra), #contact, #home, #about, #service, #faq) .btn-sm {
  min-height: 40px;
  padding: var(--s-2) var(--s-4);
  font-size: 0.9375rem;
}
:is(body, :is(#servicePage, #page-extra), #contact, #home, #about, #service, #faq) .btn-lg {
  min-height: 56px;
  padding: 14px 28px;
  font-size: 1.125rem;
}
:is(body, :is(#servicePage, #page-extra), #contact, #home, #about, #service, #faq) .btn-block {
  display: flex;
  width: 100%;
}
/* round icon button: carousel arrows, slideshow arrows, photo viewer */
.btn-icon,
.splide .splide__arrow,
.lightbox button.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(200, 189, 178, 0.6);
  border-radius: 50%;
  background: rgba(20, 18, 17, 0.6);
  color: var(--pale-oak);
  font-size: 1.125rem;
  line-height: 1;
  opacity: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.btn-icon:hover:not(:disabled),
.splide .splide__arrow:hover:not(:disabled) {
  background: var(--pale-oak);
  border-color: var(--pale-oak);
  color: var(--ash-brown);
  opacity: 1;
}
.splide .splide__arrow svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.btn-icon:disabled,
.splide .splide__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
.btn-icon:focus-visible,
.splide .splide__arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.lightbox button.btn-icon {
  position: absolute;
  width: 48px;
  height: 48px;
  font-size: 1.5rem;
}
/* button row */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s-3);
  margin: var(--s-8) auto 0;
  padding: 0 var(--s-4);
}
.btn-row--start {
  justify-content: flex-start;
  margin: 0;
  padding: 0;
}
.btn-row--equal > .btn {
  flex: 0 1 280px;
}
@media (max-width: 599px) {
  .btn-row:not(.btn-row--inline) {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-row:not(.btn-row--inline) > .btn {
    width: 100%;
  }
}
/* context: home hero pair stays side by side on phones, equal width, short Viber label */
@media (max-width: 799px) {
  #home .hero-ctas.btn-row {
    flex-wrap: nowrap;
    margin: 0;
  }
  #home .hero-ctas .btn {
    min-width: 0;
    white-space: nowrap;
  }
  #home .hero-ctas .lbl-long {
    display: none;
  }
}
@media (max-width: 360px) {
  #home .hero-ctas .btn {
    font-size: 0.9375rem;
    gap: 6px;
  }
}
/* context: phone pametnici gallery CTA uses the short label */
@media (max-width: 599px) {
  .btn .lbl-long {
    display: none;
  }
  .btn > span:has(.lbl-long)::first-letter {
    text-transform: uppercase;
  }
}
/* context: contact form submit, chat buttons on the Ash Brown panel, gallery filters */
#form .btn-block {
  margin-top: var(--s-5);
}
.ct-chat .btn {
  flex: 0 1 auto;
}
.mon-filters:not([hidden]) {
  gap: var(--s-2);
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn-icon {
    transition: none;
  }
}
/* buttons rows: no side padding inside boxes; space before following text */
:is(.leave-review, .mon-cta, .ct-panel) .btn-row {
  padding: 0;
}
.btn-row + p {
  margin-top: var(--s-6);
}
/* home hero pair: one line each */
#home .hero-ctas .btn {
  white-space: nowrap;
}
@media (max-width: 799px) {
  :is(body, #home) #home .hero-ctas .btn-lg {
    font-size: 1rem;
  }
}
/* Home hero pair – final sizing: always two equal pills */
#home .hero-ctas.btn-row {
  justify-content: center;
}
@media (min-width: 800px) {
  #home .hero-ctas .btn {
    flex: 0 0 300px;
    width: 300px;
    min-width: 0;
  }
}
@media (max-width: 799px) {
  #home .hero-ctas.btn-row {
    gap: var(--s-3);
    padding: 0 var(--s-4);
  }
  #home .hero-ctas .btn {
    flex: 1 1 0;
    max-width: 280px;
    padding-inline: var(--s-4);
    gap: var(--s-2);
  }
}
@media (max-width: 420px) {
  :is(body, #home) #home .hero-ctas .btn-lg {
    font-size: 0.9375rem;
    padding-inline: var(--s-3);
  }
}
@media (max-width: 360px) {
  #home .hero-ctas.btn-row {
    gap: var(--s-2);
  }
  :is(body, #home) #home .hero-ctas .btn-lg {
    font-size: 0.875rem;
    padding-inline: 10px;
    gap: 6px;
  }
}
@media (max-width: 340px) {
  :is(body, #home) #home .hero-ctas .btn-lg {
    font-size: 0.8125rem;
    gap: 5px;
  }
}
/* =====================================================================
   TILE – big button card: one outlined frame around image + label (service cards)
   ===================================================================== */
#service .cards {
  gap: var(--s-6);
  justify-content: center;
  max-width: var(--w-content);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--s-4);
}
#service .cards .tile {
  flex: 0 1 340px;
  width: auto;
  height: auto;
  margin: 0;
}
#service .cards .tile:hover {
  transform: none;
}
#service .tile > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(200, 189, 178, 0.35);
  border-radius: var(--r-xl);
  background: var(--panel-dark);
  color: var(--parchment);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
#service .cards .tile img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease;
}
#service .tile .tile-label,
:is(#servicePage, #page-extra) #service .tile .tile-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin: 0;
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid rgba(200, 189, 178, 0.2);
  color: var(--parchment);
  font-size: 1.1875rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  transition: background 0.25s ease, color 0.25s ease;
}
#service .tile .tile-label i {
  color: var(--pale-oak);
  font-size: 1rem;
  transition: transform 0.25s ease, color 0.25s ease;
}
#service .tile > a:hover,
#service .tile > a:focus-visible {
  border-color: var(--pale-oak);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
#service .tile > a:hover img,
#service .tile > a:focus-visible img {
  transform: scale(1.04);
}
#service .tile > a:hover .tile-label,
#service .tile > a:focus-visible .tile-label {
  background: var(--pale-oak);
  color: var(--ash-brown);
}
#service .tile > a:hover .tile-label i,
#service .tile > a:focus-visible .tile-label i {
  color: var(--ash-brown);
  transform: translateX(4px);
}
#service .tile > a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 999px) {
  #service .cards {
    flex-direction: row;
    flex-wrap: wrap;
  }
  #service .cards .tile {
    flex: 0 1 calc(50% - var(--s-3));
    margin-bottom: 0;
  }
}
@media (max-width: 599px) {
  #service .cards {
    gap: var(--s-4);
  }
  #service .cards .tile {
    flex: 1 1 100%;
    width: 100%;
  }
  #service .cards .tile img {
    width: 100%;
    height: 190px;
  }
  #service .tile .tile-label,
  :is(#servicePage, #page-extra) #service .tile .tile-label {
    font-size: 1.125rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  #service .tile > a,
  #service .tile img,
  #service .tile .tile-label,
  #service .tile .tile-label i {
    transition: none;
  }
}
/* tile: label spans the full card width (older card rule centred the link's children) */
#service .tile > a {
  align-items: stretch;
  gap: 0;
}
#service .cards .card.tile > a {
  align-items: stretch;
  gap: 0;
}
#service .cards {
  flex-direction: row;
  flex-wrap: wrap;
}
@media (min-width: 1000px) {
  #service .cards .tile {
    flex: 0 1 calc((100% - 2 * var(--s-6)) / 3);
  }
}
:is(#servicePage, #page-extra) #service .tile > a:hover .tile-label,
:is(#servicePage, #page-extra) #service .tile > a:focus-visible .tile-label,
#service .cards .tile > a:hover .tile-label,
#service .cards .tile > a:focus-visible .tile-label {
  background: var(--pale-oak);
  color: var(--ash-brown);
}
/* =====================================================================
   About hero – modern split: text left, photo right, quiet background
   ===================================================================== */
#about.about-hero {
  padding: 200px var(--s-6) var(--s-20);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #141414;
}
.ah-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  max-width: var(--w-content);
  margin: 0 auto;
}
.about-hero .breadcrumb,
#about.about-hero .breadcrumb {
  justify-content: flex-start;
  margin: 0 0 var(--s-6);
  padding: 0;
  max-width: none;
}
#about.about-hero h1.title {
  margin: 0 0 var(--s-6) !important;
  font-size: 2.75rem;
  line-height: 1.15;
  text-align: left;
}
#about.about-hero .ah-text p {
  max-width: none;
  margin: 0 0 var(--s-4);
  padding: 0;
  color: var(--text-3);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-align: left !important;
}
#about.about-hero .ah-text p.ah-lead {
  color: var(--parchment);
  font-size: 1.1875rem;
}
#about.about-hero .ah-text p.ah-sign {
  display: flex;
  flex-direction: column;
  margin: var(--s-6) 0 var(--s-8);
  padding-left: var(--s-4);
  border-left: 2px solid var(--dusty-taupe);
  color: var(--parchment);
  font-size: 1.125rem;
  font-weight: 600;
  font-style: italic;
}
.ah-sign small {
  color: var(--text-4);
  font-size: 0.875rem;
  font-weight: 400;
  font-style: normal;
}
/* photo: rounded, with an offset Dusty Taupe frame behind it */
.ah-media {
  position: relative;
}
.ah-media::before {
  content: "";
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 1px solid rgba(153, 134, 118, 0.6);
  border-radius: 24px;
  pointer-events: none;
}
#about .ah-media .about-slideshow,
.ah-media .about-slideshow {
  position: relative;
  margin: 0;
  padding: 0;
}
.ah-media .about-slideshow img,
.ah-media .about-slideshow .splide__slide {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
}
.ah-media .about-slideshow .splide__pagination {
  bottom: 16px;
}
#ekip {
  scroll-margin-top: 180px;
}
@media (max-width: 999px) {
  #about.about-hero {
    padding: 150px var(--s-5) var(--s-16);
  }
  .ah-grid {
    grid-template-columns: 1fr;
  }
  .ah-media {
    max-width: 520px;
    width: 100%;
  }
}
@media (max-width: 599px) {
  #about.about-hero {
    padding: 100px var(--s-4) var(--s-12);
  }
  #about.about-hero h1.title {
    font-size: 1.875rem;
    margin: 0 0 var(--s-5) !important;
  }
  #about.about-hero .ah-text p.ah-lead {
    font-size: 1.0625rem;
  }
  .ah-media::before {
    inset: 14px -10px -14px 14px;
    border-radius: 20px;
  }
  #about.about-hero .btn-row--start {
    flex-direction: column;
    align-items: stretch;
  }
}
/* phones/tablets: title first, then the photo, then the story */
@media (max-width: 999px) {
  .ah-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .ah-text {
    display: contents;
  }
  .ah-text > * {
    order: 3;
  }
  .ah-text > .breadcrumb {
    order: 0;
  }
  .ah-text > h1 {
    order: 1;
  }
  .ah-media {
    order: 2;
    margin: var(--s-2) auto var(--s-12);
  }
}
@media (max-width: 599px) {
  .ah-media {
    width: calc(100% - 12px);
    margin: 0 0 var(--s-10);
  }
}
/* Reviews: regular rows (needed for "load more"), hidden cards until revealed */
.reviews[data-loadmore] > .review {
  break-inside: auto;
}
.reviews > .review.is-collapsed {
  display: none;
}
.reviews-loadmore {
  margin: 0 auto var(--s-8);
}
.reviews-loadmore .btn i {
  font-size: 0.8125rem;
}
/* ==== Reviews tidy-up: one grid system, equal-height cards per row, author pinned to the bottom ==== */
.reviews-featured {
  margin-top: var(--s-2);
  margin-bottom: var(--s-6);
}
/* a real grid (the older .reviews rule made it newspaper columns, which split cards and broke "load more") */
.reviews[data-loadmore] {
  display: grid;
  columns: auto;
  gap: var(--s-5);
  margin-bottom: var(--s-8);
}
.reviews-featured > .review {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
}
.reviews[data-loadmore] > .review {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
}
.reviews[data-loadmore] > .review.is-collapsed {
  display: none;
}
.review blockquote {
  flex: 1 1 auto;
  margin: var(--s-3) 0 0;
  font-size: 1rem;
  line-height: 1.6;
}
.reviews-featured .review blockquote {
  font-size: 1.0625rem;
}
.review figcaption {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-2);
}
.review .quote-mark {
  top: 10px;
  right: 20px;
  font-size: 3.5rem;
  opacity: 0.35;
}
.review-more summary {
  margin-top: var(--s-2);
}
@media (max-width: 599px) {
  .reviews-featured {
    margin-bottom: var(--s-4);
  }
}
.reviews .review:focus {
  outline: none;
}
/* Component context tweaks */
.ct-grid.grid,
.ct-offices.grid {
  padding: 0;
}
.team.section {
  padding-bottom: var(--s-10);
}

/* "Обновено: дд.мм.гггг" under the H1 of service pages and guides */
.updated,
:is(#servicePage, #page-extra) p.updated {
  margin: -8px auto var(--s-5);
  color: var(--text-4);
  font-size: 0.875rem;
  text-align: center !important;
}

/* "Накратко" – short direct answer under the H1 of service pages */
.answer {
  max-width: var(--w-text);
  margin: 0 auto var(--s-6);
  padding: var(--s-1) 0 var(--s-1) var(--s-5);
  border-left: 2px solid var(--dusty-taupe);
}
:is(#servicePage, #page-extra) .answer p {
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--parchment);
  font-size: 1.125rem;
  line-height: 1.65;
}
:is(#servicePage, #page-extra) .answer p.answer-label {
  margin-bottom: var(--s-1);
  color: var(--pale-oak);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
@media (max-width: 799px) {
  .answer {
    margin: 0 var(--s-4) var(--s-6);
  }
  :is(#servicePage, #page-extra) .answer p {
    font-size: 1.0625rem;
  }
}

/* "Източници и полезни връзки" on guide pages */
.sources {
  max-width: var(--w-text);
  margin: var(--s-10) auto 0;
  padding: var(--s-5) var(--s-6);
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  color: var(--text-3);
  font-size: 0.9375rem;
}
.sources-title {
  margin: 0 0 var(--s-2);
  color: var(--pale-oak);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sources ul {
  margin: 0 0 var(--s-3);
  padding-left: 1.1em;
}
.sources li {
  margin: var(--s-1) 0;
}
.sources a {
  color: var(--parchment);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sources-note {
  margin: 0;
  color: var(--text-4);
  font-size: 0.875rem;
}
@media (max-width: 799px) {
  .sources {
    margin: var(--s-8) var(--s-4) 0;
  }
}

/* Comparison table (/pogrebenie-ili-kremaciq) */
.table-wrap {
  max-width: var(--w-narrow);
  margin: var(--s-8) auto;
  padding: 0 var(--s-4);
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line-1);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.5;
  text-align: left;
}
.compare-table caption {
  padding-bottom: var(--s-3);
  color: var(--text-4);
  font-size: 0.875rem;
  text-align: left;
}
.compare-table th,
.compare-table td {
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line-1);
  vertical-align: top;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}
.compare-table thead th {
  background: var(--panel-ash);
  color: var(--parchment);
  font-size: 1.125rem;
  font-weight: 600;
}
.compare-table thead th a,
:is(#servicePage, #page-extra) .compare-table thead th a {
  display: inline;
  width: auto;
  margin: 0;
  color: var(--parchment);
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.compare-table tbody th {
  width: 22%;
  color: var(--pale-oak);
  font-weight: 600;
}
.compare-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.025);
}
@media (max-width: 599px) {
  .compare-table {
    min-width: 520px;
    font-size: 0.9375rem;
  }
  .compare-table th,
  .compare-table td {
    padding: var(--s-3);
  }
}
/* team: 8 people → 4 per row on desktop */
.team-grid.grid {
  max-width: 960px;
}
/* "Накратко" after the slideshow: clear the pagination dots */
.slideshow + .answer {
  margin-top: var(--s-10);
}
.btn-row + .answer {
  margin-top: var(--s-10);
}

/* ==== Memorial calculator (/kalkulator-40-dni) ==== */
.calc {
  max-width: var(--w-narrow);
  margin: var(--s-8) auto var(--s-4);
}
.calc-title,
:is(#servicePage, #page-extra) .calc h2.calc-title {
  margin: 0 0 var(--s-5);
  color: var(--ash-brown);
  font-size: 1.375rem;
  font-weight: 600;
  text-align: center;
}
.calc-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.calc-form label {
  color: var(--ash-brown);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.calc-form input[type="date"] {
  min-height: 52px;
  padding: 10px 18px;
  border: 1px solid rgba(84, 69, 65, 0.45);
  border-radius: var(--r-pill);
  background: var(--parchment);
  color: var(--ash-brown);
  color-scheme: light;
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
}
.calc-form input[type="date"]:focus {
  outline: 2px solid var(--ash-brown);
  outline-offset: 2px;
}
.calc-results {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-3);
  margin: 0;
  padding: 0;
}
.calc-results li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--s-4) var(--s-2);
  border: 1px solid rgba(84, 69, 65, 0.2);
  border-radius: var(--r-lg);
  background: rgba(246, 243, 238, 0.6);
  text-align: center;
  transition: opacity 0.2s;
}
.calc-name {
  color: var(--ash-brown);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.calc-date {
  display: flex;
  flex-direction: column;
  color: var(--ash-brown);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}
.calc-date small {
  color: var(--ash-brown);
  font-size: var(--fs-detail);
  font-weight: 400;
}
.calc-left {
  color: var(--ash-brown);
  font-size: var(--fs-caption);
}
.calc-results li.calc-main {
  border-color: transparent;
  background: var(--panel-ash);
}
.calc-results li.calc-main .calc-name,
.calc-results li.calc-main .calc-date {
  color: var(--parchment);
}
.calc-results li.calc-main .calc-date {
  font-size: 1.1875rem;
}
.calc-results li.calc-main .calc-date small,
.calc-results li.calc-main .calc-left {
  color: var(--dust-grey);
}
/* past dates: an empty dashed card instead of faded text (faded ash on beige drops below 4.5:1) */
.calc-results li.is-past {
  border-style: dashed;
  border-color: rgba(84, 69, 65, 0.35);
  background: transparent;
}
.calc-results li.is-next:not(.calc-main) {
  border-color: var(--ash-brown);
}
.calc-results li.is-next .calc-left {
  font-weight: 600;
}
.calc-results li.calc-main.is-next .calc-left {
  color: var(--parchment);
}
:is(#servicePage, #page-extra) .calc p.calc-note {
  max-width: none;
  margin: var(--s-6) 0 0;
  padding: 0;
  color: var(--ash-brown);
  font-size: 0.9375rem;
  text-align: center !important;
}
.calc .btn-row {
  padding: 0;
  margin-top: var(--s-6);
}
/* the light (beige) calculator panel: the outline button in ash brown instead of parchment */
:is(#servicePage, #page-extra) .calc .btn-secondary {
  border-color: rgba(84, 69, 65, 0.5);
  color: var(--ash-brown);
}
:is(#servicePage, #page-extra) .calc .btn-secondary:hover {
  background: var(--ash-brown);
  border-color: var(--ash-brown);
  color: var(--parchment);
}
@media (max-width: 799px) {
  .calc-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .calc-results li.calc-main {
    grid-column: 1 / -1;
    order: -1;
  }
}
@media (max-width: 599px) {
  .calc {
    margin: var(--s-6) var(--s-4) var(--s-4);
  }
}

/* Home services: extra tiles hidden until "Виж още услуги" */
#service .cards .tile.is-collapsed {
  display: none;
}
.services-more .btn i {
  font-size: 0.8125rem;
}
.btn[hidden],
:is(body, #servicePage, #contact, #home, #about, #service, #faq) .btn[hidden] {
  display: none;
}

/* cremation price box: "+ такса на крематориума" under the price */
.price-plus {
  display: block;
  margin-top: 4px;
  color: var(--pale-oak);
  font-size: 1.125rem;
  font-weight: 600;
}

/* =====================================================================
   Price box v2 (Комплексна услуга): Ash Brown header band + clean body
   ===================================================================== */
.price-box.pb {
  width: auto;
  max-width: 980px;
  margin: var(--s-8) auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(200, 189, 178, 0.18);
  border-radius: var(--r-xl);
  background: var(--panel-dark);
  box-shadow: var(--shadow-md);
  color: var(--text-2);
  text-align: left;
}
.pb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
  padding: var(--s-8) var(--s-10);
  background: var(--panel-ash);
}
.pb-name {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.pb-label {
  color: var(--pale-oak);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.price-box.pb h3,
.pb-name h3 {
  margin: 0;
  color: var(--parchment);
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}
.price-box.pb .price-big.pb-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 0;
  color: var(--parchment);
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.pb-plus {
  margin-top: var(--s-2);
  padding: 4px 12px;
  border: 1px solid rgba(246, 243, 238, 0.35);
  border-radius: var(--r-pill);
  color: var(--dust-grey);
  font-size: var(--fs-detail);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.pb-body {
  padding: var(--s-8) var(--s-10) var(--s-6);
}
:is(#servicePage, #page-extra) .price-box.pb p.pb-lead {
  max-width: none;
  margin: 0 0 var(--s-8);
  padding: 0;
  color: var(--text-2);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.price-box.pb .pb-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s-8);
}
.price-box.pb .pb-cols > div {
  padding: 0;
}
.price-box.pb .pb-cols b {
  display: block;
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line-1);
  color: var(--pale-oak);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.price-box.pb ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.price-box.pb li.yes,
.price-box.pb li.no {
  position: relative;
  padding: 5px 0 5px 28px;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.price-box.pb li.yes {
  color: var(--text-1);
}
.price-box.pb li.yes::before,
.price-box.pb li.no::before {
  position: absolute;
  left: 0;
  top: 7px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
}
.price-box.pb li.yes::before {
  content: "✓";
  background: var(--pale-oak);
  color: var(--ash-brown);
}
.price-box.pb li.no {
  color: var(--text-4);
}
.price-box.pb li.no::before {
  content: "–";
  border: 1px solid var(--line-3);
  color: var(--text-4);
}
:is(#servicePage, #page-extra) .price-box.pb p.pb-note {
  max-width: none;
  margin: var(--s-6) 0 0;
  padding: var(--s-4) 0 0;
  border-top: 1px solid var(--line-1);
  color: var(--text-4);
  font-size: 0.875rem;
  text-align: center !important;
}
@media (max-width: 899px) {
  .price-box.pb .pb-cols {
    grid-template-columns: 1fr 1fr;
  }
  .pb-out {
    grid-column: 1 / -1;
  }
}
@media (max-width: 599px) {
  .price-box.pb {
    margin: var(--s-6) var(--s-4);
  }
  .pb-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-4);
    padding: var(--s-6) var(--s-5);
  }
  .price-box.pb h3,
  .pb-name h3 {
    font-size: 1.5rem;
  }
  .price-box.pb .price-big.pb-price {
    align-items: flex-start;
    font-size: 2.75rem;
  }
  .pb-body {
    padding: var(--s-6) var(--s-5) var(--s-5);
  }
  .price-box.pb .pb-cols {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
}
/* price box: icon next to the package name */
.pb-title {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}
.pb-icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  padding: 10px;
  border: 1px solid rgba(246, 243, 238, 0.35);
  border-radius: 50%;
  background: rgba(246, 243, 238, 0.06);
  fill: none;
  stroke: var(--parchment);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 599px) {
  .pb-icon {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    padding: 8px;
  }
}
.pb-icon {
  padding: 12px;
  stroke-width: 2.6;
}
@media (max-width: 599px) {
  .pb-icon {
    padding: 10px;
  }
}

/* Price box body in the light brand tone (Parchment → Pale Oak) under the Ash Brown header */
.price-box.pb {
  border-color: transparent;
  background: var(--panel-light);
  color: var(--ash-brown);
}
:is(#servicePage, #page-extra) .price-box.pb p.pb-lead {
  color: #3f3431;
}
.price-box.pb .pb-cols b {
  border-bottom-color: rgba(84, 69, 65, 0.2);
  color: var(--ash-brown);
}
.price-box.pb li.yes {
  color: #2a2220;
}
.price-box.pb li.yes::before {
  background: var(--ash-brown);
  color: var(--parchment);
}
.price-box.pb li.no {
  color: rgba(84, 69, 65, 0.75);
}
.price-box.pb li.no::before {
  border-color: rgba(84, 69, 65, 0.35);
  color: rgba(84, 69, 65, 0.75);
}
:is(#servicePage, #page-extra) .price-box.pb p.pb-note {
  border-top-color: rgba(84, 69, 65, 0.2);
  color: rgba(84, 69, 65, 0.8);
}

/* ==== Church calendar (/tsarkoven-kalendar) ==== */
.cc {
  max-width: var(--w-narrow);
  margin: var(--s-8) auto var(--s-6);
  background: var(--panel-ash);
  border-color: transparent;
}
.cc-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.cc-title,
:is(#servicePage, #page-extra) .cc h2.cc-title {
  margin: 0;
  color: var(--parchment);
  font-size: 1.375rem;
  font-weight: 600;
  text-align: center;
}
.cc-y {
  font-variant-numeric: tabular-nums;
}
.cc-bar .btn-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(246, 243, 238, 0.35);
  border-radius: 50%;
  background: transparent;
  color: var(--parchment);
  cursor: pointer;
}
.cc-bar .btn-icon:hover {
  background: rgba(246, 243, 238, 0.12);
}
:is(#servicePage, #page-extra) .cc p.cc-upcoming {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: none;
  margin: 0 0 var(--s-5);
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--parchment);
  color: var(--ash-brown);
  text-align: center !important;
}
.cc-upcoming[hidden] {
  display: none !important;
}
.cc-upcoming span {
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dusty-taupe);
}
.cc-upcoming b {
  font-size: 1.1875rem;
  line-height: 1.3;
}
.cc-upcoming time {
  font-size: 0.9375rem;
}
.cc-keys {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
  margin: 0;
  padding: 0;
}
.cc-keys li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--s-3);
  border: 1px solid rgba(246, 243, 238, 0.25);
  border-radius: var(--r-lg);
  text-align: center;
}
.cc-keys li.is-past {
  opacity: 0.55;
}
.cc-key-name {
  color: var(--dust-grey);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cc-keys time {
  color: var(--parchment);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}
.cc-months {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  max-width: var(--w-content);
  margin: 0 auto;
}
/* month cards: brand beige (Parchment → Dust Grey, the lighter part of the calculator's panel, so faded
   past feasts and the "next feast" highlight keep ≥ 4.5:1), Ash Brown text */
.cc-month {
  padding: var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--parchment) 0%, var(--dust-grey) 100%);
  color: var(--ash-brown);
}
.cc-month.is-current {
  border-color: var(--ash-brown);
  box-shadow: inset 0 0 0 1px var(--ash-brown);
}
/* past months: the same beige card under a 30 % Ash Brown overlay; text in the deeper brown
   (#3f3431, as in --panel-ash) keeps ≥ 5.3:1 on the darkened beige */
.cc-month.is-past {
  background: linear-gradient(rgba(84, 69, 65, 0.3), rgba(84, 69, 65, 0.3)),
    linear-gradient(135deg, var(--parchment) 0%, var(--dust-grey) 100%);
  color: #3f3431;
}
:is(#servicePage, #page-extra) .cc-month.is-past h3 {
  border-bottom-color: rgba(63, 52, 49, 0.3);
  color: #3f3431;
}
.cc-month.is-past .cc-ev + .cc-ev {
  border-top-color: rgba(63, 52, 49, 0.25);
}
.cc-month.is-past .cc-ev.is-past {
  opacity: 1;
}
.cc-month.is-past .cc-ev .cc-d b,
.cc-month.is-past .cc-ev .cc-d small,
.cc-month.is-past .cc-ev .cc-n {
  color: #3f3431;
}
.cc-month.is-past .cc-ev.is-major .cc-d::after {
  background: #3f3431;
}
:is(#servicePage, #page-extra) .cc-month h3 {
  margin: 0 0 var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid rgba(84, 69, 65, 0.25);
  color: var(--ash-brown);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
}
.cc-month ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cc-ev {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--s-2);
  align-items: start;
  padding: 8px 0;
}
.cc-ev + .cc-ev {
  border-top: 1px dashed rgba(84, 69, 65, 0.2);
}
.cc-d {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}
.cc-d b {
  color: var(--ash-brown);
  font-size: 1.125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cc-d small {
  color: var(--ash-brown);
  font-size: var(--fs-caption);
}
.cc-n {
  color: var(--ash-brown);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.cc-ev.is-major .cc-n {
  color: var(--ash-brown);
  font-weight: 600;
}
.cc-d {
  position: relative;
}
.cc-ev.is-major .cc-d::after,
.cc-dot {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pale-oak);
}
.cc-ev.is-major .cc-d::after {
  background: var(--ash-brown);
  position: absolute;
  top: 2px;
  right: 4px;
}
.cc-d b.cc-range {
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
}
.cc-ev.is-major .cc-d:has(.cc-range)::after {
  right: -4px;
}
.cc-ev.is-zad .cc-n {
  color: var(--ash-brown);
  font-style: italic;
}
/* past feasts: lighter weight and a softer tone that still keeps ≥ 4.5:1 on the beige */
.cc-ev.is-past {
  opacity: 0.85;
}
.cc-ev.is-past .cc-n,
.cc-ev.is-past .cc-d b {
  font-weight: 400;
}
.cc-ev.is-next,
.cc-ev.is-today {
  margin: 0 calc(var(--s-2) * -1);
  padding: 8px var(--s-2);
  border-radius: var(--r-md);
  background: rgba(84, 69, 65, 0.12);
}
.cc-ev.is-next + .cc-ev,
.cc-ev.is-today + .cc-ev {
  border-top-color: transparent;
}
:is(#servicePage, #page-extra) p.cc-legend {
  max-width: none;
  margin: var(--s-4) auto 0;
  color: var(--text-4);
  font-size: var(--fs-caption);
  text-align: center !important;
}
.cc-legend .cc-dot {
  margin: 0 4px 0 0;
  vertical-align: 1px;
}
@media (max-width: 999px) {
  .cc-months {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .cc {
    padding: var(--s-6) var(--s-4);
  }
  .cc-title,
  :is(#servicePage, #page-extra) .cc h2.cc-title {
    font-size: 1.1875rem;
  }
  .cc-keys {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cc-months {
    grid-template-columns: 1fr;
  }
}

/* ==== Contact: office cards in brand colours (checkerboard with the call / form panels above) ==== */
/* Office card tones: --oak (in use on both offices), --light and --taupe kept as alternatives */
#contact .ct-office--light,
#contact .ct-office--taupe {
  border-color: transparent;
  overflow: hidden;
}
#contact .ct-office--light {
  background: var(--panel-light);
}
#contact .ct-office--taupe {
  background: var(--panel-taupe);
}
#contact .ct-office--light .office-map {
  border-bottom-color: var(--ash-brown);
}
#contact .ct-office--taupe .office-map {
  border-bottom-color: var(--parchment);
}
#contact .ct-office--light h3,
#contact .ct-office--light p,
#contact .ct-office--light .office-hours {
  color: var(--ash-brown);
}
#contact .ct-office--light p i {
  color: var(--dusty-taupe);
}
#contact .ct-office--taupe h3,
#contact .ct-office--taupe p,
#contact .ct-office--taupe .office-hours {
  color: var(--parchment);
}
#contact .ct-office--taupe p i {
  color: var(--dust-grey);
}
#contact .ct-office--light .office-hours {
  opacity: 0.85;
}
#contact .ct-office--light a.ct-link {
  color: var(--ash-brown);
  font-weight: 600;
  border-bottom-color: rgba(84, 69, 65, 0.4);
}
#contact .ct-office--light a.ct-link:hover {
  color: #3f3431;
  border-color: var(--ash-brown);
}
#contact .ct-office--taupe a.ct-link {
  color: var(--parchment);
  font-weight: 600;
  border-bottom-color: rgba(246, 243, 238, 0.5);
}
#contact .ct-office--taupe a.ct-link:hover {
  color: #fff;
  border-color: #fff;
}

/* Pale Oak office cards: Ash Brown text and accents */
#contact .ct-office--oak {
  border-color: transparent;
  overflow: hidden;
  background: linear-gradient(135deg, #d3c9bf 0%, var(--pale-oak) 55%, #b9ada1 100%);
}
#contact .ct-office--oak .office-map {
  border-bottom-color: var(--ash-brown);
}
#contact .ct-office--oak h3,
#contact .ct-office--oak p,
#contact .ct-office--oak .office-hours {
  color: var(--ash-brown);
}
#contact .ct-office--oak p i {
  color: var(--ash-brown);
  opacity: 0.75;
}
#contact .ct-office--oak a.ct-link {
  color: var(--ash-brown);
  font-weight: 600;
  border-bottom-color: rgba(84, 69, 65, 0.45);
}
#contact .ct-office--oak a.ct-link:hover {
  color: #3f3431;
  border-color: var(--ash-brown);
}

/* ==== Footer: logo bottom-right of the main footer, just above the separator line; social icons bigger, network colours on hover (as on the original site) ==== */
.footer-logo-row {
  display: flex;
  justify-content: flex-end;
  max-width: var(--w-wide);
  margin: var(--s-8) auto 0;
}
.site-footer .footer-logo-row + .footer-bottom {
  margin-top: var(--s-5);
}
.site-footer a.footer-logo {
  flex: none;
}
.site-footer a.footer-logo:hover {
  text-decoration: none;
}
.footer-logo img {
  display: block;
  width: 180px;
  height: auto;
}
.site-footer .social-icons {
  gap: var(--s-6);
  margin-top: var(--s-2);
}
.site-footer .social-icons i {
  font-size: 2rem;
  transition: color 0.3s;
}
.site-footer .social-icons a:hover {
  text-decoration: none;
}
footer.site-footer .social-icons a:hover i.fa-whatsapp,
footer.site-footer .social-icons a:focus-visible i.fa-whatsapp {
  color: #25d366;
}
footer.site-footer .social-icons a:hover i.fa-facebook-messenger,
footer.site-footer .social-icons a:focus-visible i.fa-facebook-messenger {
  color: #006aff;
}
footer.site-footer .social-icons a:hover i.fa-facebook,
footer.site-footer .social-icons a:focus-visible i.fa-facebook {
  color: #3b5998;
}
footer.site-footer .social-icons a:hover i.fa-google,
footer.site-footer .social-icons a:focus-visible i.fa-google {
  color: #3cba54;
}
@media (max-width: 799px) {
  .footer-logo-row {
    justify-content: center;
  }
  .footer-logo img {
    width: 160px;
  }
}

/* ==== Комплексна услуга card footer: note left, Драгомиров logo right (white nobg.png recoloured to Ash Brown via mask) ==== */
.price-box.pb .pb-foot,
.calc .pb-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid rgba(84, 69, 65, 0.2);
}
:is(#servicePage, #page-extra) .price-box.pb .pb-foot p.pb-note {
  margin: 0;
  padding: 0;
  border: 0;
  text-align: left !important;
}
.price-box.pb .pb-logo,
.calc .pb-logo {
  flex: none;
  width: 150px;
  aspect-ratio: 300 / 79;
  background: var(--ash-brown);
  -webkit-mask: url("/images/nobg.png") center / contain no-repeat;
  mask: url("/images/nobg.png") center / contain no-repeat;
}
@media (max-width: 599px) {
  .price-box.pb .pb-foot,
  .calc .pb-foot {
    flex-direction: column;
    gap: var(--s-4);
  }
  :is(#servicePage, #page-extra) .price-box.pb .pb-foot p.pb-note {
    text-align: center !important;
  }
  .price-box.pb .pb-logo,
  .calc .pb-logo {
    width: 130px;
  }
}
/* calculator: the footer holds only the logo, centred */
.calc .pb-foot.calc-foot {
  justify-content: center;
}

/* /uslugi/pametnici: "Цената включва" inside the marble / granite cards */
:is(#servicePage, #page-extra) .pam-compare-card p.pam-incl-title {
  max-width: none;
  margin: var(--s-3) 0 var(--s-3);
  padding: var(--s-4) 0 0;
  border-top: 1px solid rgba(84, 69, 65, 0.2);
  color: var(--dusty-taupe);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-align: left !important;
  text-transform: uppercase;
}
:is(#servicePage, #page-extra) .pam-compare-card.panel--ash p.pam-incl-title {
  border-top-color: rgba(246, 243, 238, 0.22);
  color: var(--pale-oak);
}
:is(#servicePage, #page-extra) .pam-compare + p.pam-center {
  margin-top: var(--s-6);
}

/* Blog articles (.guide): larger hero photo right under the title – same slideshow component, wider frame */
:is(#servicePage, #page-extra) .guide .slideshow {
  max-width: 960px;
  margin: 0 auto var(--s-6);
  padding: 0 var(--s-4);
}
:is(#servicePage, #page-extra) .guide .slideshow img {
  padding: 0;
  border-radius: var(--r-xl);
}

/* About hero background photo: a real <img> (alt carries the photo credit) under a dark overlay */
#about.about-hero > img.ah-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center 40%;
}
#about.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 12, 11, 0.9) 0%, rgba(14, 12, 11, 0.72) 55%, rgba(14, 12, 11, 0.55) 100%),
    linear-gradient(180deg, rgba(14, 12, 11, 0.35) 0%, rgba(14, 12, 11, 0) 30%, rgba(14, 12, 11, 0) 70%, #141414 100%);
}
@media (max-width: 799px) {
  #about.about-hero > img.ah-bg {
    object-position: center top;
  }
  #about.about-hero::before {
    background: linear-gradient(180deg, rgba(14, 12, 11, 0.6) 0%, rgba(14, 12, 11, 0.85) 45%, #141414 100%);
  }
}

/* ==== Service-page hero (.svc-hero): breadcrumb, H1, first paragraph and slideshow on a full-width autumn photo ==== */
.svc-hero {
  position: relative;
  isolation: isolate;
  padding-bottom: var(--s-12);
  margin-bottom: var(--s-10);
}
/* photo + overlay reach the screen edges and run up behind the fixed header */
.svc-hero > img.svc-hero-bg,
.svc-hero::before {
  position: absolute;
  top: -40vh;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
}
.svc-hero > img.svc-hero-bg {
  z-index: -2;
  height: calc(100% + 40vh);
  margin: 0;
  padding: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center 35%;
}
.svc-hero::before {
  content: "";
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, rgba(26, 26, 26, 0) 70%, #1a1a1a 100%),
    radial-gradient(ellipse at 50% 35%, rgba(14, 12, 11, 0.5) 0%, rgba(14, 12, 11, 0.78) 75%),
    linear-gradient(180deg, rgba(14, 12, 11, 0.5) 0%, rgba(14, 12, 11, 0.2) 45%);
}
.svc-hero h1.title,
.svc-hero-text > p {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}
.svc-hero .slideshow img {
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.45));
}
@media (max-width: 799px) {
  .svc-hero {
    padding-bottom: var(--s-8);
    margin-bottom: var(--s-8);
  }
  .svc-hero::before {
    background: linear-gradient(180deg, rgba(14, 12, 11, 0.7) 0%, rgba(14, 12, 11, 0.6) 50%, rgba(14, 12, 11, 0.75) 85%, #1a1a1a 100%);
  }
}
/* hero buttons stay on one line (e.g. "Каталог Паметници" on phones) */
.svc-hero .btn-row .btn {
  white-space: nowrap;
}
@media (max-width: 420px) {
  .svc-hero .btn-row .btn-lg {
    padding-left: var(--s-4);
    padding-right: var(--s-4);
  }
}
/* equal-width hero buttons wide enough for "Каталог Паметници" */
.svc-hero .btn-row--equal > .btn {
  flex: 0 1 300px;
  max-width: 100%;
}

/* ==== Service hero v2 – fits one screen: split layout on wide screens, slideshow sized by screen height ==== */
.svc-hero .slideshow {
  padding: 0 !important;
}
.svc-hero .slideshow img {
  display: block;
  width: 100%;
  padding: 0 !important;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-lg);
}
/* dots sit on the photo instead of below it */
.svc-hero .splide__pagination {
  bottom: 12px;
}
.svc-hero p.updated {
  margin-bottom: var(--s-3);
}
@media (min-width: 1000px) {
  .svc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    column-gap: 56px;
    grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1fr);
    align-content: center;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto var(--s-10);
    padding: 0 var(--s-8) var(--s-10);
    min-height: calc(100svh - 150px);
  }
  .svc-hero > .svc-hero-text {
    grid-column: 1;
    grid-row: 2;
  }
  .svc-hero > .slideshow {
    grid-column: 2;
    grid-row: 1 / -1;
    align-self: center;
    margin: 0;
  }
  .svc-hero > .btn-row {
    grid-column: 1;
    grid-row: 3;
  }
  .svc-hero .slideshow img {
    max-height: calc(100svh - 260px);
    min-height: 260px;
  }
  .svc-hero nav.breadcrumb {
    justify-content: flex-start;
    margin: 0 0 var(--s-4);
    padding: 0;
  }
  :is(#servicePage, #page-extra) .svc-hero h1.title {
    margin: 0 0 var(--s-2);
    font-size: 2.5rem;
    line-height: 1.15;
    text-align: left;
  }
  :is(#servicePage, #page-extra) .svc-hero-text > p {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    text-align: left !important;
  }
  :is(#servicePage, #page-extra) .svc-hero-text > p:not(.updated) {
    font-size: 1.1875rem;
    line-height: 1.6;
  }
  .svc-hero > .btn-row {
    justify-content: flex-start;
    margin: var(--s-6) 0 0;
    padding: 0;
  }
  .svc-hero .btn-row--equal > .btn {
    flex: 0 1 240px;
  }
}
/* the hero pages need less empty space above the breadcrumb */
:is(#servicePage, #page-extra) .service:has(> .svc-hero) {
  padding-top: 150px;
}
@media (max-width: 999px) {
  .svc-hero .slideshow {
    max-width: 640px;
    margin: var(--s-4) auto 0;
  }
  .svc-hero .slideshow img {
    max-height: 40svh;
    min-height: 180px;
  }
}
@media (max-width: 799px) {
  :is(#servicePage, #page-extra) .service:has(> .svc-hero) {
    padding-top: 92px;
  }
  .svc-hero nav.breadcrumb {
    margin-bottom: var(--s-2);
  }
  :is(#servicePage, #page-extra) .svc-hero h1.title {
    margin-bottom: var(--s-1);
    font-size: 1.75rem;
    line-height: 1.2;
  }
  :is(#servicePage, #page-extra) .svc-hero-text > p:not(.updated) {
    margin-top: 0;
    font-size: 1rem;
    line-height: 1.55;
  }
  .svc-hero .slideshow {
    margin-top: var(--s-3);
  }
  .svc-hero .slideshow img {
    max-height: 34svh;
  }
  .svc-hero > .btn-row {
    margin-top: var(--s-4);
  }
}
/* hero buttons: compact so two fit side by side next to the photo; phones get smaller type to keep the hero on one screen */
@media (min-width: 1000px) {
  :is(#servicePage, #page-extra) .svc-hero .btn-row > .btn.btn-lg,
  :is(#servicePage, #page-extra) .svc-hero .btn-row > .btn {
    flex: 0 0 auto;
    min-width: 0;
    padding: 14px 22px;
    font-size: 1rem;
  }
}
@media (max-width: 799px) {
  :is(#servicePage, #page-extra) .svc-hero .btn-row > .btn.btn-lg {
    min-height: 48px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 1rem;
  }
  .svc-hero .btn-row {
    gap: var(--s-2);
  }
  :is(#servicePage, #page-extra) .svc-hero-text > p.updated {
    margin: 0 0 var(--s-2);
    font-size: var(--fs-caption);
  }
}
@media (max-width: 420px) {
  :is(#servicePage, #page-extra) .svc-hero h1.title {
    font-size: 1.5625rem;
  }
  .svc-hero .slideshow img {
    max-height: 30svh;
  }
}
@media (max-width: 799px) {
  /* pages with buttons under the photo: a slightly shorter photo keeps the buttons on screen */
  .svc-hero:has(> .btn-row) .slideshow img {
    max-height: 26svh;
  }
}

/* ==== Service hero fills the whole first screen; "Накратко" starts below the fold ====
   The hero box starts under the .service top padding (150px desktop / 92px phones), so min-height = screen − that padding. */
.svc-hero {
  margin-bottom: var(--s-12);
}
@media (min-width: 1000px) {
  .svc-hero {
    min-height: calc(100svh - 120px);
    padding-bottom: var(--s-8);
  }
}
@media (max-width: 999px) {
  .svc-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100svh - 120px);
  }
}
@media (max-width: 799px) {
  .svc-hero {
    min-height: calc(100svh - 92px);
    padding-bottom: var(--s-6);
  }
}

/* ==== Service hero v3: homepage CTAs (call, Viber, Диляна) under the text; slideshow + gallery buttons on the right ==== */
.svc-hero-ctas.btn-row {
  margin: var(--s-6) 0 0;
  padding: 0;
}
.svc-hero-person {
  margin-top: var(--s-4);
}
.svc-hero-media > .btn-row {
  justify-content: center;
  margin: var(--s-4) 0 0;
  padding: 0;
}
@media (min-width: 1000px) {
  .svc-hero {
    grid-template-rows: auto;
    align-items: center;
  }
  .svc-hero > .svc-hero-text {
    grid-column: 1;
    grid-row: 1;
  }
  .svc-hero > .svc-hero-media {
    grid-column: 2;
    grid-row: 1;
  }
  .svc-hero-media > .slideshow {
    margin: 0;
  }
  .svc-hero-ctas.btn-row {
    justify-content: flex-start;
  }
}
@media (max-width: 999px) {
  .svc-hero-ctas.btn-row {
    justify-content: center;
    margin-top: var(--s-4);
  }
  .svc-hero-person {
    margin: var(--s-3) auto 0;
    width: fit-content;
  }
  .svc-hero-media {
    margin-top: var(--s-4);
  }
}
@media (max-width: 599px) {
  .svc-hero-ctas.btn-row {
    flex-wrap: nowrap;
  }
  :is(#servicePage, #page-extra) .svc-hero .svc-hero-ctas > .btn.btn-lg {
    flex: 1 1 0;
    min-width: 0;
    padding-left: var(--s-3);
    padding-right: var(--s-3);
  }
  .svc-hero-ctas .lbl-long {
    display: none;
  }
}
/* keep the hero on one screen with the CTAs: smaller photo on phones, Диляна only where there is room */
@media (max-width: 599px) {
  .svc-hero-person {
    display: none;
  }
  .svc-hero .slideshow img {
    max-height: 26svh;
  }
  .svc-hero:has(.svc-hero-media > .btn-row) .slideshow img {
    max-height: 22svh;
  }
  .svc-hero-media > .btn-row {
    flex-wrap: nowrap;
    margin-top: var(--s-3);
  }
  .svc-hero-media > .btn-row > .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 8px var(--s-3);
    font-size: 0.9375rem;
  }
}
@media (min-width: 1000px) and (max-height: 780px) {
  .svc-hero-person {
    display: none;
  }
  .svc-hero-ctas.btn-row {
    margin-top: var(--s-4);
  }
}
@media (max-width: 999px) {
  /* buttons keep the same side gutter as the text on phones and tablets */
  .svc-hero-ctas.btn-row,
  .svc-hero-media > .btn-row {
    padding-left: var(--s-4);
    padding-right: var(--s-4);
  }
}

/* ==== Hero gallery controls ====
   Desktop: arrows and dots sit in a control bar under the photo (not on top of it).
   Phones/tablets: the photo keeps the page gutter and rounded corners instead of running edge to edge. */
@media (min-width: 1000px) {
  .svc-hero .splide {
    margin-bottom: 58px;
  }
  .svc-hero .splide .splide__arrow {
    top: calc(100% + 14px);
    transform: none;
    width: 40px;
    height: 40px;
  }
  .svc-hero .splide .splide__arrow--prev {
    left: 0;
  }
  .svc-hero .splide .splide__arrow--next {
    right: 0;
  }
  .svc-hero .splide__pagination {
    bottom: -40px;
  }
  .svc-hero .slideshow img {
    max-height: calc(100svh - 320px);
  }
  .svc-hero-media > .btn-row {
    margin-top: 0;
  }
}
@media (max-width: 999px) {
  .svc-hero .slideshow {
    padding: 0 var(--s-4) !important;
  }
  .svc-hero .slideshow img {
    border-radius: var(--r-lg);
  }
  .svc-hero .splide .splide__arrow {
    width: 38px;
    height: 38px;
  }
  .svc-hero .splide .splide__arrow--prev {
    left: 10px;
  }
  .svc-hero .splide .splide__arrow--next {
    right: 10px;
  }
}

/* About slideshow: a wide photo (group shot) is shown whole inside the 4:5 frame */
.ah-media .about-slideshow img.is-wide {
  object-fit: contain;
  background: #141414;
}

/* ==== About hero v2 – same rule as the service heroes: exactly one screen, no CTAs, photo sized by screen height ==== */
#about.about-hero {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding: 150px var(--s-6) var(--s-8);
}
#about.about-hero .ah-grid {
  width: 100%;
  max-width: 1200px;
  gap: 64px;
}
#about.about-hero h1.title {
  margin: 0 0 var(--s-4) !important;
  font-size: 2.5rem;
}
#about.about-hero .ah-text p {
  margin: 0 0 var(--s-3);
  font-size: 1rem;
  line-height: 1.6;
}
#about.about-hero .ah-text p.ah-lead {
  font-size: 1.125rem;
}
#about.about-hero .ah-text p.ah-sign {
  margin: var(--s-4) 0 0;
}
#about.about-hero .breadcrumb {
  margin-bottom: var(--s-4);
}
/* photo height follows the screen height (4:5 frame) */
#about.about-hero .ah-media {
  justify-self: center;
  width: min(100%, calc((100svh - 230px) * 0.8));
}
@media (min-width: 1000px) and (max-height: 800px) {
  #about.about-hero h1.title {
    font-size: 2.125rem;
  }
  #about.about-hero .ah-text p,
  #about.about-hero .ah-text p.ah-lead {
    font-size: 0.9375rem;
    line-height: 1.55;
  }
}
@media (max-width: 999px) {
  #about.about-hero {
    padding: 120px var(--s-5) var(--s-6);
  }
  #about.about-hero .ah-media {
    width: min(100%, calc(30svh * 0.8));
    margin: var(--s-2) auto var(--s-5);
  }
}
@media (max-width: 599px) {
  #about.about-hero {
    padding: 92px var(--s-4) var(--s-5);
  }
  #about.about-hero h1.title {
    margin-bottom: var(--s-3) !important;
    font-size: 1.5rem;
  }
  #about.about-hero .breadcrumb {
    margin-bottom: var(--s-2);
  }
  #about.about-hero .ah-text p,
  #about.about-hero .ah-text p.ah-lead {
    font-size: 0.9062rem;
    line-height: 1.5;
    margin-bottom: var(--s-2);
  }
  #about.about-hero .ah-text p.ah-sign {
    margin-top: var(--s-2);
    font-size: 0.9375rem;
  }
  #about.about-hero .ah-media {
    width: min(100%, calc(22svh * 0.8));
    margin: var(--s-1) auto var(--s-3);
  }
  .ah-media::before {
    inset: 8px -6px -8px 8px;
  }
}
@media (max-width: 999px) {
  #about.about-hero .ah-grid {
    gap: 0;
  }
}
@media (max-width: 599px) and (max-height: 820px) {
  #about.about-hero {
    padding-top: 86px;
    padding-bottom: var(--s-3);
  }
  #about.about-hero .ah-media {
    width: min(100%, calc(16svh * 0.8));
    margin: 0 auto var(--s-2);
  }
  #about.about-hero h1.title {
    font-size: 1.375rem;
    margin-bottom: var(--s-2) !important;
  }
  #about.about-hero .ah-text p,
  #about.about-hero .ah-text p.ah-lead {
    font-size: 0.875rem;
    line-height: 1.45;
  }
  #about.about-hero .ah-text p.ah-sign {
    font-size: 0.875rem;
  }
}

/* About page uses the service hero (.svc-hero); the owners' signature under the text */
:is(#servicePage, #page-extra) .svc-hero-text > p.ah-sign {
  display: flex;
  flex-direction: column;
  margin: var(--s-4) 0 0;
  padding: 0 0 0 var(--s-4);
  border-left: 2px solid var(--dusty-taupe);
  color: var(--parchment);
  font-size: 1.0625rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.4;
  text-align: left !important;
}
.svc-hero-text > p.ah-sign small {
  color: var(--text-4);
  font-size: var(--fs-caption);
  font-weight: 400;
  font-style: normal;
}
@media (min-width: 1000px) {
  :is(#servicePage, #page-extra).about-page .svc-hero-text > p:not(.updated):not(.ah-sign) {
    font-size: 1.0625rem;
    line-height: 1.6;
  }
}
@media (max-width: 999px) {
  :is(#servicePage, #page-extra) .svc-hero-text > p.ah-sign {
    width: fit-content;
    margin: var(--s-3) auto 0;
    font-size: 0.9375rem;
  }
}
/* About hero carries ~3× the text of a service intro. Text never shrinks below 16px;
   on phones and tablets the gallery takes whatever height is left on the screen instead (min 150px). */
@media (min-width: 1000px) and (max-height: 800px) {
  :is(#servicePage, #page-extra).about-page .svc-hero-text > p:not(.updated):not(.ah-sign) {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: var(--s-2);
  }
  :is(#servicePage, #page-extra).about-page .svc-hero h1.title {
    font-size: 2rem;
  }
}
@media (max-width: 999px) {
  :is(#servicePage, #page-extra).about-page .svc-hero-text > p:not(.updated):not(.ah-sign) {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: var(--s-3);
  }
  :is(#servicePage, #page-extra).about-page .svc-hero-text > p.ah-sign {
    margin-top: var(--s-2);
    font-size: 0.9375rem;
  }
  /* the photo fills the rest of the screen */
  .about-page .svc-hero {
    justify-content: flex-start;
  }
  .about-page .svc-hero-media {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    /* never thinner than a 3:2 photo; on tall screens it grows to fill the rest */
    min-height: min(calc((100vw - 2 * var(--s-4)) * 0.6667), 427px);
    margin-top: var(--s-3);
  }
  .about-page .svc-hero .slideshow {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }
  .about-page .svc-hero .slideshow .splide {
    position: absolute;
    inset: 0 var(--s-4);
  }
  .about-page .svc-hero .slideshow .splide__track,
  .about-page .svc-hero .slideshow .splide__list {
    height: 100%;
  }
  .about-page .svc-hero .slideshow img {
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 30%;
  }
}
@media (max-width: 599px) and (max-height: 700px) {
  :is(#servicePage, #page-extra).about-page .svc-hero-text > p:not(.updated):not(.ah-sign) {
    margin-bottom: var(--s-2);
  }
}

/* ==== Homepage "За нас": a full-screen section like the hero, on the Luca Bravo autumn photo (real <img>, credited alt) ==== */
#about:not(.single) {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  background: #141414;
}
#about:not(.single) > img.sec-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center 40%;
}
#about:not(.single)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, #141414 0%, rgba(20, 20, 20, 0) 15%, rgba(20, 20, 20, 0) 85%, #141414 100%),
    radial-gradient(ellipse at 50% 50%, rgba(14, 12, 11, 0.45) 0%, rgba(14, 12, 11, 0.7) 80%);
}
#about:not(.single) {
  padding-top: 120px;
  padding-bottom: var(--s-10);
}
@media (max-width: 799px) {
  #about:not(.single) {
    padding-top: 96px;
    padding-bottom: var(--s-6);
  }
}
#about:not(.single) .info {
  margin-bottom: var(--s-10);
}
@media (max-width: 599px) and (max-height: 820px) {
  #about:not(.single) .info img {
    width: auto;
    max-width: 100%;
    max-height: 26svh;
    margin: 0 auto;
  }
  #about:not(.single) .info p {
    font-size: 0.9375rem;
    line-height: 1.5;
  }
  #about:not(.single) .info {
    margin-bottom: var(--s-5);
  }
  #about:not(.single) .title {
    margin-bottom: var(--s-3);
  }
}
@media (min-width: 800px) {
  #about:not(.single) .info {
    width: min(1100px, 92%);
    gap: var(--s-8);
  }
  #about:not(.single) .info img {
    flex: 0 1 46%;
    width: 46%;
    max-height: 52svh;
    object-fit: cover;
  }
  #about:not(.single) .info p {
    flex: 1 1 0;
    padding-left: 0;
  }
}

/* ==== Homepage hero background: Ingmar sunlit forest (real <img>, credited alt) under a dark overlay ==== */
#home {
  position: relative;
  isolation: isolate;
  background: #141414;
}
#home > img.sec-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center 45%;
}
#home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 12, 11, 0.45) 0%, rgba(14, 12, 11, 0.1) 30%, rgba(14, 12, 11, 0.15) 75%, #141414 100%),
    radial-gradient(ellipse at 50% 40%, rgba(14, 12, 11, 0.15) 0%, rgba(14, 12, 11, 0.3) 80%);
}
#home h1,
#home .trust-line {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}
/* Hero arrow → "За нас": the section is full-screen with its own header clearance, so land exactly on its top */
#about:not(.single) {
  scroll-margin-top: 0;
}


/* =====================================================================
   Type scale (typeset pass, 19.10.2026) – one set of roles for the whole site.
   rem-based so the visitor's browser text size is respected. Floor for any
   meaningful label is 14px; reading text is 17px on phones, 18px on desktop.
   ===================================================================== */
:root {
  --fs-caption: 0.875rem;  /* 14 – labels, breadcrumbs, captions, metadata */
  --fs-detail: 0.9375rem;  /* 15 – price and date details, notes */
  --fs-body: 1.0625rem;    /* 17 – reading text on phones */
  --fs-h3: 1.0625rem;      /* 17 */
  --fs-h2: 1.3125rem;      /* 21 */
  --fs-h1: 1.625rem;       /* 26 */
  --fs-section: clamp(1.75rem, 4vw, 3rem); /* 28–48: section titles and carousel chapter titles */
}
@media (min-width: 800px) {
  :root {
    --fs-body: 1.125rem;   /* 18 */
    --fs-h3: 1.1875rem;    /* 19 */
    --fs-h2: 1.75rem;      /* 28 */
    --fs-h1: 2.5rem;       /* 40 */
  }
}
/* Page titles: one size on every page (service, guides, FAQ, reviews, galleries, 404); the homepage display headline keeps its own */
:is(#servicePage, #page-extra) .service h1.title,
:is(#servicePage, #page-extra) #service h1.title {
  font-size: var(--fs-h1);
  line-height: 1.15;
}
/* Section headings: one clear step below the page title */
:is(#servicePage, #page-extra) .service h2.title {
  font-size: var(--fs-h2);
  line-height: 1.25;
}
.section h2.title,
#service h2.title,
#about:not(.single) h2.title,
.faq h2.title,
#contact h2.title {
  font-size: var(--fs-h2);
  line-height: 1.25;
}
/* Homepage: each title opens a full-screen section (За нас, Услуги, reviews, FAQ, Контакти) – same size as the
   carousel chapter titles. Inner pages keep --fs-h2 so their section titles stay below the page's H1. */
main:has(> #home) :is(.section, #service, #about:not(.single), .faq) h2.title,
body:has(> main > #home) > #contact h2.title {
  font-size: var(--fs-section);
  line-height: 1.15;
}
/* Reading text that was set smaller than the paragraphs around it */
.ic-card p,
.doc-list li,
.doc-cards .doc-list li,
.review blockquote {
  font-size: var(--fs-body);
}
.price-box.pb li {
  font-size: 1rem;
}
/* Desktop menu: no longer louder than the page's own headings */
@media (min-width: 1000px) {
  #navbar a {
    font-size: 1.375rem;  /* 22 */
  }
}
/* very short phones (e.g. iPhone SE): one step smaller page title so the hero still fits one screen */
@media (max-width: 599px) and (max-height: 700px) {
  :is(#servicePage, #page-extra) .service h1.title {
    font-size: 1.4375rem;
  }
  .svc-hero nav.breadcrumb {
    margin-bottom: 4px;
  }
}

/* Polish after the type scale (19.10.2026) */
/* balanced line breaks: no single orphan word on a heading or a two-line button */
h1, h2, h3,
.btn {
  text-wrap: balance;
}
/* the "Денонощно, 7 дни в седмицата" line in the call panel stays on one line on phones */
@media (max-width: 599px) {
  .ct-eyebrow {
    letter-spacing: 0.04em;
  }
}

/* ==== Service hero on phones/tablets (≤999px): breadcrumb → title → description → gallery → CTAs ====
   Content starts right under the menu bar; the gallery takes the free height so nothing floats in empty space. */
@media (max-width: 999px) {
  .svc-hero {
    justify-content: flex-start;
    padding-top: var(--s-3);
  }
  .svc-hero > .svc-hero-text {
    display: contents;
  }
  .svc-hero > .svc-hero-text > .svc-hero-ctas {
    order: 2;
  }
  .svc-hero > .svc-hero-media {
    order: 1;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    margin-top: var(--s-3);
  }
  .svc-hero .svc-hero-media > .slideshow {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    max-width: 640px;
    min-height: clamp(150px, 28svh, calc((100vw - 2 * var(--s-4)) * 0.6667));
    margin: 0 auto;
  }
  .svc-hero .svc-hero-media > .slideshow .splide {
    position: absolute;
    inset: 0 var(--s-4);
  }
  .svc-hero .svc-hero-media > .slideshow .splide__track,
  .svc-hero .svc-hero-media > .slideshow .splide__list {
    height: 100%;
  }
  .svc-hero.svc-hero .svc-hero-media > .slideshow img {
    width: 100%;
    height: 100%;
    max-height: none;
    min-height: 0;
    aspect-ratio: auto;
    object-fit: cover;
  }
  /* CTAs close the hero: call gets the larger share so its label has room */
  .svc-hero .svc-hero-ctas.btn-row {
    flex-wrap: nowrap;
    margin-top: var(--s-4);
  }
  :is(#servicePage, #page-extra) .svc-hero .svc-hero-ctas > .btn.btn-lg {
    flex: 3 1 0;
    min-width: 0;
    padding-left: var(--s-3);
    padding-right: var(--s-3);
  }
  :is(#servicePage, #page-extra) .svc-hero .svc-hero-ctas > .btn.btn-secondary {
    flex: 2 1 0;
  }
}
@media (max-width: 599px) and (max-height: 700px) {
  .svc-hero .svc-hero-media > .slideshow {
    min-height: max(140px, 21svh);
  }
}

/* Author section at the end of Полезно articles – "паметна плоча": centred between hairlines, cross mark on top */
:is(#servicePage, #page-extra) .service > .author {
  max-width: var(--w-text);
  margin: var(--s-16) auto 0;
  padding: 0 var(--s-4);
  text-align: center;
}
.author-rule {
  display: flex;
  align-items: center;
  gap: 18px;
}
.author-rule::before,
.author-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(153, 134, 118, 0.55);
}
.author-rule--plain::after {
  display: none;
}
.author-rule span {
  width: 34px;
  aspect-ratio: 1;
  background: var(--pale-oak);
  -webkit-mask: url("/images/logo-mark-brown.png") center / contain no-repeat;
  mask: url("/images/logo-mark-brown.png") center / contain no-repeat;
}
.author > img {
  display: block;
  width: 132px;
  height: 132px;
  margin: var(--s-7, 28px) auto 18px;
  padding: 6px;
  border: 1px solid var(--pale-oak);
  border-radius: 50%;
  object-fit: cover;
}
:is(#servicePage, #page-extra) .author p.author-name {
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--parchment);
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.1;
  text-align: center !important;
}
:is(#servicePage, #page-extra) .author p.author-role {
  max-width: none;
  margin: 10px 0 var(--s-6);
  padding: 0;
  color: var(--pale-oak);
  font-size: var(--fs-detail);
  letter-spacing: 0.04em;
  text-align: center !important;
}
:is(#servicePage, #page-extra) .author p.author-bio {
  max-width: 54ch;
  margin: 0 auto var(--s-8);
  padding: 0;
  color: var(--text-2);
  font-size: 1.1875rem;
  font-style: italic;
  line-height: 1.7;
  text-align: center !important;
}
@media (max-width: 799px) {
  :is(#servicePage, #page-extra) .author p.author-bio {
    font-size: var(--fs-body);
  }
}

/* Carousel cards: one internal-link CTA per card, pinned to the bottom so the row lines up */
.ic-card {
  display: flex;
  flex-direction: column;
}
:is(#servicePage, #page-extra) .ic-card p.ic-cta,
.ic-card p.ic-cta {
  margin: auto 0 0;
  padding-top: var(--s-5);
}
:is(#servicePage, #page-extra) .ic-card p.ic-cta a,
.ic-card p.ic-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--pale-oak);
  font-size: var(--fs-detail);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 189, 178, 0.35);
}
:is(#servicePage, #page-extra) .ic-card p.ic-cta a:hover,
.ic-card p.ic-cta a:hover {
  color: var(--parchment);
  border-color: var(--parchment);
}
.ic-card p.ic-cta a span {
  transition: transform 0.2s ease;
}
.ic-card p.ic-cta a:hover span {
  transform: translateX(3px);
}
:is(#servicePage, #page-extra) .ic-card p.ic-cta,
.ic-card p.ic-cta {
  text-align: left !important;
}
:is(#servicePage, #page-extra) .ic-card p.ic-cta a,
.ic-card p.ic-cta a {
  justify-content: flex-start;
  color: var(--parchment);
  text-align: left;
  text-wrap: pretty;
  border-bottom-color: rgba(200, 189, 178, 0.5);
}
:is(#servicePage, #page-extra) .ic-card p.ic-cta a,
.ic-card p.ic-cta a {
  display: inline;
  padding: 10px 0 4px;
  line-height: 1.7;
}
.ic-card p.ic-cta a span {
  display: inline-block;
  margin-left: 6px;
}

/* =====================================================================
   "Глава" – the {{cards}} section: full-width photo band, one chapter at a time
   (replaces the old .ic card track; markup from build.py cards_block, behaviour in main.js)
   ===================================================================== */
.ch {
  position: relative;
  isolation: isolate;
  width: 100vw;
  margin: var(--s-16) 0 var(--s-16) calc(50% - 50vw);
  overflow: hidden;
  color: var(--text-2);
}
/* The photo is darkened in place (instead of a scrim on top) and only the photo fades out at the
   top and bottom edge, so the band begins and ends in the page background itself. A separate scrim
   that fades too lets the photo show through more strongly mid-fade, which reads as a light seam. */
.ch {
  --ch-fade: calc(var(--s-16) * 2);
  --ch-mask: linear-gradient(180deg, transparent 0, rgba(0, 0, 0, 0.1) calc(var(--ch-fade) * 0.3), rgba(0, 0, 0, 0.5) calc(var(--ch-fade) * 0.6), #000 var(--ch-fade), #000 calc(100% - var(--ch-fade)), rgba(0, 0, 0, 0.5) calc(100% - var(--ch-fade) * 0.6), rgba(0, 0, 0, 0.1) calc(100% - var(--ch-fade) * 0.3), transparent 100%);
}
/* brightness 0.18 = the old 82 % scrim: keeps every line of text ≥ 7:1 whatever part of the photo is behind it */
.ch > img.ch-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  object-fit: cover;
  filter: brightness(0.18);
  -webkit-mask-image: var(--ch-mask);
  mask-image: var(--ch-mask);
}
.ch-in {
  max-width: 860px;
  margin: 0 auto;
  padding: 104px var(--s-8) 96px;
}
/* segmented progress – each segment is a real button (44px tall target, 2px line) */
.ch-prog {
  display: flex;
  gap: 8px;
  margin: 0 0 var(--s-8);
}
.ch-prog[hidden] {
  display: none;
}
.ch-seg {
  position: relative;
  flex: 1;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.ch-seg::after {
  content: "";
  position: absolute;
  inset: 21px 0 auto;
  height: 2px;
  border-radius: 2px;
  background: rgba(246, 243, 238, 0.28);
  transition: background 0.3s ease;
}
.ch-seg.is-done::after {
  background: var(--parchment);
}
.ch-seg:hover::after {
  background: rgba(246, 243, 238, 0.6);
}
.ch-seg.is-done:hover::after {
  background: var(--parchment);
}
.ch-seg:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* chapters */
.ch-slide {
  text-align: left;
}
:is(#servicePage, #page-extra, body) .ch h2.ch-title {
  margin: 0 0 var(--s-6);
  color: #fff;
  font-size: var(--fs-section);
  font-weight: 600;
  line-height: 1.12;
  text-align: left;
  text-wrap: balance;
}
.ch h2.ch-title:focus {
  outline: none;
}
:is(#servicePage, #page-extra, body) .ch .ch-slide p {
  max-width: 60ch;
  margin: 0 0 var(--s-4);
  padding: 0;
  color: var(--text-2);
  font-size: 1.1875rem;
  line-height: 1.7;
  text-align: left !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
:is(#servicePage, #page-extra, body) .ch .ch-slide p a:not(.btn) {
  color: var(--parchment);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* the chapter's last line → navigation: always the same gap, whether it ends in text or a button */
:is(#servicePage, #page-extra, body) .ch .ch-slide > :last-child {
  margin-bottom: 0;
}
/* paragraph → button: one fixed gap (24px); button → navigation: one fixed gap (40px) */
:is(#servicePage, #page-extra, body) .ch .ch-slide p.ch-cta {
  margin: var(--s-6) 0 0;
  text-shadow: none;
}
.ch .ch-slide p.ch-cta .btn {
  display: inline-flex;
  gap: 10px;
}
.ch-nav {
  display: flex;
  gap: 12px;
  margin-top: var(--s-10);
}
.ch-nav[hidden] {
  display: none;
}
/* with JS: all chapters share one grid cell (stable height); only the current one is shown */
.ch-js .ch-slides {
  display: grid;
}
.ch-js .ch-slide {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.ch-js .ch-slide.is-on {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.35s ease, visibility 0s;
}
.ch-still .ch-slide,
.ch-still .ch-slide.is-on {
  transition: none;
}
/* without JS: chapters stacked, separated by a hairline */
.ch:not(.ch-js) .ch-slide + .ch-slide {
  margin-top: var(--s-12);
  padding-top: var(--s-12);
  border-top: 1px solid rgba(200, 189, 178, 0.25);
}
@media (max-width: 799px) {
  .ch {
    --ch-fade: var(--s-20);
    margin: var(--s-12) 0 var(--s-12) calc(50% - 50vw);
  }
  .ch-in {
    padding: 72px var(--s-5) 64px;
  }
  .ch-prog {
    margin-bottom: var(--s-6);
  }
  :is(#servicePage, #page-extra, body) .ch h2.ch-title {
    margin-bottom: var(--s-4);
  }
  :is(#servicePage, #page-extra, body) .ch .ch-slide p {
    font-size: var(--fs-body);
  }
  :is(#servicePage, #page-extra, body) .ch .ch-slide p.ch-cta {
    margin-top: var(--s-5);
  }
  .ch-nav {
    margin-top: var(--s-8);
  }
  /* phones: the band is as tall as the current chapter, so the arrows sit right under its text/CTA
     (hidden chapters leave the flow and disappear at once instead of fading over the arrows) */
  .ch-js .ch-slides {
    position: relative;
  }
  .ch-js .ch-slide:not(.is-on) {
    position: absolute;
    inset: 0 0 auto;
    transition: none;
  }
}

/* =====================================================================
   Reviews section (build.py reviews_section): homepage, /service, /uslugi/*.
   One large quote at a time, rotated by main.js (pausable); without JS all quotes are shown.
   ===================================================================== */
/* spacing: the same gap above the title and below the button (96 px desktop, 64 px phones) */
.rv {
  max-width: 860px;
  margin: 0 auto;
  padding: calc(var(--s-20) + var(--s-4)) var(--s-4) var(--s-4);
  text-align: center;
}
:is(#servicePage, #page-extra, body) .rv h2.title {
  margin-top: 0;
}
/* right after the carousel: its own bottom padding (96 / 64 px under the arrows) is the gap,
   so the section cancels the carousel's bottom margin and adds no padding of its own */
.rv.rv--after-ch {
  margin-top: calc(var(--s-16) * -1);
  padding-top: 0;
}
:is(#servicePage, #page-extra, body) .rv p.rv-rating {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s-2);
  max-width: none;
  margin: 0 0 var(--s-10);
  padding: 0;
  color: var(--text-3);
  font-size: var(--fs-detail);
  text-align: center !important;
}
.rv-rating img {
  width: 20px;
  height: 20px;
  margin: 0;
}
.rv-rating b {
  color: var(--text-1);
  font-weight: 600;
}
.rv-stars {
  color: #f5c518;
  letter-spacing: 2px;
}
.rv-stage {
  display: grid;
  gap: var(--s-12);
}
.rv-q {
  margin: 0;
}
.rv-mark {
  display: block;
  height: 56px;
  color: var(--dusty-taupe);
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
}
.rv-q blockquote {
  max-width: 40ch;
  margin: 0 auto var(--s-6);
  color: var(--parchment);
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  font-weight: 400;
  line-height: 1.55;
  text-wrap: balance;
}
.rv-q figcaption {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-3);
  margin: 0;
  color: var(--parchment);
  text-align: left;
}
.rv-ctrl {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-1);
  margin: var(--s-8) 0 var(--s-2);
}
.rv-ctrl[hidden] {
  display: none;
}
/* dots: 44px tap targets, a short line as the visible mark */
.rv-dot {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.rv-dot::after {
  content: "";
  position: absolute;
  inset: 21px 8px;
  border-radius: 2px;
  background: rgba(246, 243, 238, 0.28);
  transition: background 0.3s ease;
}
.rv-dot[aria-current="true"]::after {
  background: var(--parchment);
}
.rv-dot:hover::after {
  background: rgba(246, 243, 238, 0.6);
}
.rv-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.rv-ctrl .rv-pause {
  width: 36px;
  height: 36px;
  margin-left: var(--s-2);
  font-size: 0.75rem;
}
.rv .btn-row {
  margin-top: var(--s-6);
}
/* with JS: all quotes share one grid cell (stable height); only the current one is shown */
.rv-js .rv-stage {
  gap: 0;
}
.rv-js .rv-q {
  grid-area: 1 / 1;
  align-self: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
/* the old quote fades out first, then the new one fades in (no overlapping text) */
.rv-js .rv-q.is-on {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.45s ease 0.25s, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .rv-js .rv-q,
  .rv-js .rv-q.is-on {
    transition: none;
  }
}
@media (max-width: 799px) {
  .rv {
    padding-top: var(--s-16);
  }
  .rv.rv--after-ch {
    margin-top: calc(var(--s-12) * -1);
    padding-top: 0;
  }
  /* the generic mobile h2.title rule sets its margin with !important */
  :is(#servicePage, #page-extra, body) .rv h2.title {
    margin-top: 0 !important;
  }
  :is(#servicePage, #page-extra, body) .rv p.rv-rating {
    margin-bottom: var(--s-8);
  }
  .rv-mark {
    height: 44px;
    font-size: 4.5rem;
  }
}

/* =====================================================================
   Contact section, option B (build.py contact): the 24/7 number large on top, one map
   with a Варна / Аксаково switch and the office card on it, the form on an Ash panel beside it.
   ===================================================================== */
/* three boxes: numbers + chats (full width), map, form – same radius and the same gap between them */
.ctb-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
  text-align: center;
}
.ctb-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin: 0;
  color: var(--ash-brown);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ctb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ash-brown);
  box-shadow: 0 0 0 4px rgba(84, 69, 65, 0.15);
}
#contact a.ctb-main {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ash-brown);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-decoration: none;
}
#contact a.ctb-main i {
  font-size: 0.45em;
}
#contact a.ctb-main:hover {
  color: #3f3431;
}
.ctb-others {
  margin: 0;
  color: var(--ash-brown);
  font-size: var(--fs-detail);
}
#contact .ctb-others a {
  color: var(--ash-brown);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(84, 69, 65, 0.4);
  text-underline-offset: 4px;
  white-space: nowrap;
}
#contact .ctb-others a:hover {
  text-decoration-color: var(--ash-brown);
}
/* chat buttons on the beige box: Ash Brown outline (as in the memorial calculator) */
#contact .ctb-top .btn-secondary {
  border-color: rgba(84, 69, 65, 0.5);
  color: var(--ash-brown);
}
#contact .ctb-top .btn-secondary:hover {
  background: var(--ash-brown);
  border-color: var(--ash-brown);
  color: var(--parchment);
}
.ctb-top .btn-row {
  margin-top: var(--s-2);
  padding: 0;
}
.ctb-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-6);
  align-items: stretch;
}
/* map: Google Maps in its own colours */
.ctb-map {
  position: relative;
  min-height: 480px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
}
#contact .ctb-map iframe.office-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ctb-tabs {
  position: absolute;
  z-index: 2;
  top: var(--s-4);
  right: var(--s-4);
  display: flex;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(20, 18, 17, 0.88);
}
.ctb-tabs[hidden] {
  display: none;
}
.ctb-tabs button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: none;
  color: var(--pale-oak);
  font: inherit;
  font-size: var(--fs-detail);
  font-weight: 600;
  cursor: pointer;
}
.ctb-tabs button[aria-selected="true"] {
  background: var(--parchment);
  color: var(--ash-brown);
}
.ctb-tabs button:focus-visible {
  outline: 2px solid var(--parchment);
  outline-offset: 2px;
}
/* office cards: stacked over the bottom of the map; with JS only the selected one is shown */
.ctb-office {
  position: relative;
  z-index: 2;
  max-width: 380px;
  margin: var(--s-4);
  padding: var(--s-5) var(--s-6);
  border-radius: var(--r-lg);
  background: var(--panel-light);
  box-shadow: var(--shadow-lg);
  color: var(--ash-brown);
}
.ctb-map:not(.ctb-js) {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ctb-map.ctb-js .ctb-office {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
.ctb-map.ctb-js .ctb-office[hidden] {
  display: none;
}
:is(#servicePage, #page-extra, body) .ctb-office h3 {
  margin: 0 0 var(--s-2);
  color: var(--ash-brown);
  font-size: 1.0625rem;
  font-weight: 600;
  text-align: left;
}
:is(#servicePage, #page-extra, body) #contact .ctb-office p {
  margin: 0 0 4px;
  padding: 0;
  color: var(--ash-brown);
  font-size: var(--fs-detail);
  line-height: 1.5;
  text-align: left !important;
}
.ctb-office p i {
  width: 18px;
}
#contact .ctb-office a {
  display: inline-block;
  margin-top: var(--s-2);
  color: var(--ash-brown);
  font-size: var(--fs-detail);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* form on the Ash panel */
.ctb .ctb-form {
  max-width: none;
  margin: 0;
}
.ctb .ctb-form h3 {
  margin: 0 0 var(--s-2);
  color: var(--parchment);
  text-align: left;
}
.ctb .ctb-form label {
  color: var(--parchment);
}
.ctb #form input,
.ctb #form textarea {
  border: 1px solid rgba(246, 243, 238, 0.3);
  background: rgba(246, 243, 238, 0.08);
  color: var(--parchment);
}
.ctb #form input::placeholder,
.ctb #form textarea::placeholder {
  color: rgba(246, 243, 238, 0.6);
}
.ctb #form input:focus,
.ctb #form textarea:focus {
  outline: 2px solid var(--parchment);
  outline-offset: 1px;
  border-color: var(--parchment);
  background: rgba(246, 243, 238, 0.12);
}
.ctb #form textarea {
  resize: vertical;
}
.ctb #form .btn {
  margin-top: var(--s-5);
}
@media (max-width: 899px) {
  .ctb-grid {
    grid-template-columns: 1fr;
  }
  .ctb-map {
    min-height: 440px;
  }
}
@media (max-width: 599px) {
  .ctb-office {
    margin: var(--s-3);
    padding: var(--s-4) var(--s-5);
  }
  .ctb-tabs {
    top: var(--s-3);
    right: var(--s-3);
  }
}

/* =====================================================================
   Полезно article hero (build.py article_hero): breadcrumb, H1, "Обновено" and the photo fill exactly
   the first screen on every device; the photo takes whatever height the text leaves, so "Накратко"
   (or the first paragraph) starts right at the fold. The top padding clears the fixed header.
   ===================================================================== */
:is(#servicePage, #page-extra) .service:has(> .art-hero),
main > :is(#servicePage, #page-extra):first-child > .service:first-child:has(> .art-hero) {
  padding-top: 0;
}
.art-hero {
  --art-top: 150px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--art-top) 0 var(--s-8);
}
.art-hero > nav.breadcrumb {
  margin-top: 0;
}
:is(#servicePage, #page-extra) .art-hero h1.title {
  margin-bottom: var(--s-2);
}
.art-hero .updated {
  margin-bottom: var(--s-5);
}
/* the photo grows into the remaining height (never thinner than 160px on very short screens) */
:is(#servicePage, #page-extra) .art-hero > .slideshow {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 160px;
  margin: 0 auto;
}
.art-hero > .slideshow .splide {
  position: absolute;
  inset: 0;
}
.art-hero > .slideshow .splide__track,
.art-hero > .slideshow .splide__list {
  height: 100%;
}
.art-hero > .slideshow img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.art-hero + .answer {
  margin-top: var(--s-8);
}
@media (max-width: 799px) {
  .art-hero {
    --art-top: 92px;
    padding-bottom: var(--s-6);
  }
  /* phones: exactly one screen tall; text and photo are centred together as one group, so any spare space
     goes above the breadcrumb and below the photo. The 3:2 photos keep a calm 4:5 frame (never a tall strip),
     with the text gutter on both sides, and shrink on short screens. */
  .art-hero {
    height: 100vh;
    height: 100svh;
    justify-content: center;
  }
  :is(#servicePage, #page-extra) .art-hero > .slideshow {
    flex: 0 1 auto;
    align-self: stretch;
    width: auto;
    aspect-ratio: 4 / 5;
    margin: 0 var(--s-4);
  }
}
/* small tablets: a square frame fills the taller screen without a large empty band */
@media (min-width: 600px) and (max-width: 799px) {
  :is(#servicePage, #page-extra) .art-hero > .slideshow {
    aspect-ratio: 1 / 1;
  }
}

/* =====================================================================
   Homepage hero, option B (19.10.2026): two-level title in sentence case, left-aligned on the darker side of
   the photo; the header bar and logo stay as they are. Overrides the older layered #home rules above.
   ===================================================================== */
#home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 180px 0 110px;
  box-sizing: border-box;
  text-align: left;
}
#home::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.1) 80%),
    linear-gradient(180deg, rgba(14, 12, 11, 0.35) 0%, rgba(14, 12, 11, 0) 30%, rgba(14, 12, 11, 0) 75%, #141414 100%);
}
#home .hero-head,
#home .hero-actions {
  width: 100%;
  max-width: var(--w-content);
  margin: 0 auto;
  padding: 0 var(--s-4);
  box-sizing: border-box;
}
#home h1 {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: auto;
  max-width: 720px;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
  font-size: inherit;
  line-height: normal;
}
#home h1 .h1-brand {
  font-size: clamp(2.25rem, 5.2vw, 4.125rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
#home h1 .h1-line {
  color: var(--dust-grey);
  font-size: clamp(1.25rem, 2.3vw, 1.875rem);
  font-weight: 300;
  line-height: 1.35;
}
#home h1 .h1-line b {
  color: #fff;
  font-weight: 500;
}
#home .h1-rule {
  display: block;
  width: 64px;
  height: 2px;
  margin: var(--s-6) 0 var(--s-5);
  background: var(--pale-oak);
}
#home .trust-line {
  justify-content: flex-start;
  padding: 0;
}
#home .hero-ctas.btn-row {
  justify-content: flex-start;
  margin-top: var(--s-6);
  padding: 0;
}
#home .hero-person {
  width: fit-content;
  margin: var(--s-5) 0 0;
}
#home #arrow-wrapper {
  position: absolute;
  left: 50%;
  bottom: var(--s-6);
  margin: 0;
  transform: translateX(-50%);
}
/* phones: same two levels, left-aligned; the photo darkens towards the bottom; call + "Viber" side by side,
   only as wide as their labels */
@media (max-width: 799px) {
  #home {
    align-items: stretch;
    justify-content: center;
    padding: 110px 0 96px;
  }
  #home::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.65) 70%, #141414 100%);
  }
  #home .hero-head,
  #home .hero-actions {
    padding: 0 var(--s-5);
  }
  #home .hero-actions {
    align-items: flex-start;
  }
  #home h1 .h1-brand {
    font-size: 2.25rem;
  }
  #home h1 .h1-line {
    font-size: 1.25rem;
  }
  #home .h1-rule {
    margin: var(--s-5) 0 var(--s-4);
  }
  /* two clean rows on phones: [G 4,8 ★] then "На Ваше разположение денонощно" */
  #home .trust-line {
    row-gap: 4px;
  }
  #home .trust-line > span:last-child {
    flex-basis: 100%;
  }
  #home .hero-ctas.btn-row {
    width: auto;
    padding: 0;
    margin-top: var(--s-5);
  }
  #home .hero-ctas .btn {
    flex: 0 0 auto;
  }
  #home .hero-person {
    margin: var(--s-4) 0 0;
  }
}
/* short phones (e.g. 320×568, 360×640): tighter spacing and a smaller title so the hero still fits one screen */
@media (max-width: 799px) and (max-height: 700px) {
  #home {
    padding: 100px 0 76px;
  }
  #home h1 {
    gap: 10px;
  }
  #home h1 .h1-brand {
    font-size: 1.875rem;
  }
  #home h1 .h1-line {
    font-size: 1.0625rem;
  }
  #home .h1-rule {
    margin: var(--s-4) 0 var(--s-3);
  }
  #home .hero-ctas.btn-row {
    margin-top: var(--s-4);
  }
  #home .hero-person {
    margin-top: var(--s-3);
  }
}
/* homepage hero: "Обадете ни се" and "Viber" always the same width (two equal columns sized by the longer label) */
#home .hero-ctas.btn-row {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  width: auto;
}
#home .hero-ctas.btn-row > .btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
}
#home .hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#home .hero-actions > .hero-ctas.btn-row {
  margin-left: 0;
  margin-right: 0;
}

/* =====================================================================
   General rule (19.10.2026): photo backgrounds dissolve into the page.
   Every section that sits on a photo (homepage hero, homepage "За нас", service-page heroes) uses the page
   colour as its own background and fades its overlay to exactly that colour at the edges it shares with
   other sections, along an eased curve – so one section never meets the next at a visible line.
   (The {{cards}} carousel does the same with a mask on its photo.)
   ===================================================================== */
:root {
  --page-bg: #1a1a1a;
  --page-bg-rgb: 26, 26, 26;
  --dissolve-top: linear-gradient(180deg, var(--page-bg) 0%, rgba(var(--page-bg-rgb), 0.85) 6%, rgba(var(--page-bg-rgb), 0.55) 13%, rgba(var(--page-bg-rgb), 0.25) 21%, rgba(var(--page-bg-rgb), 0.08) 27%, rgba(var(--page-bg-rgb), 0) 32%);
  --dissolve-bottom: linear-gradient(0deg, var(--page-bg) 0%, rgba(var(--page-bg-rgb), 0.85) 6%, rgba(var(--page-bg-rgb), 0.55) 13%, rgba(var(--page-bg-rgb), 0.25) 21%, rgba(var(--page-bg-rgb), 0.08) 27%, rgba(var(--page-bg-rgb), 0) 32%);
}
body {
  background-color: var(--page-bg);
}
/* homepage hero: starts under the header, dissolves at the bottom into "За нас" */
#home {
  background: var(--page-bg);
}
#home::before {
  background:
    var(--dissolve-bottom),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.1) 80%),
    linear-gradient(180deg, rgba(14, 12, 11, 0.35) 0%, rgba(14, 12, 11, 0) 30%);
}
@media (max-width: 799px) {
  #home::before {
    background:
      var(--dissolve-bottom),
      linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.6) 70%);
  }
}
/* homepage "За нас": dissolves at the top (from the hero) and at the bottom (into the services) */
#about:not(.single) {
  background: var(--page-bg);
}
#about:not(.single)::before {
  background:
    var(--dissolve-top),
    var(--dissolve-bottom),
    radial-gradient(ellipse at 50% 50%, rgba(14, 12, 11, 0.45) 0%, rgba(14, 12, 11, 0.7) 80%);
}
/* service-page heroes: dissolve at the bottom into the page */
.svc-hero::before {
  background:
    var(--dissolve-bottom),
    radial-gradient(ellipse at 50% 35%, rgba(14, 12, 11, 0.5) 0%, rgba(14, 12, 11, 0.78) 75%),
    linear-gradient(180deg, rgba(14, 12, 11, 0.5) 0%, rgba(14, 12, 11, 0.2) 45%);
}

/* Cookie banner (Google Consent Mode, built by main.js) – a .panel pinned to the bottom of the screen.
   It doesn't block the page: statistics stay off until „Приемам“. Reopened from the footer link. */
.consent.panel {
  position: fixed;
  left: var(--s-4);
  right: var(--s-4);
  bottom: var(--s-4);
  z-index: 200;
  max-width: 440px;
  margin-left: auto; /* right-hand corner on wide screens */
  padding: var(--s-5);
  border-color: var(--line-3);
  box-shadow: var(--shadow-lg);
}
.consent[hidden] {
  display: none;
}
.consent .consent-title {
  margin: 0 0 var(--s-2);
  color: var(--text-1);
  font-size: var(--fs-h3);
  font-weight: 600;
}
.consent .consent-text {
  margin: 0 0 var(--s-4);
  color: var(--text-2);
  font-size: var(--fs-detail);
  line-height: 1.55;
}
.consent .btn-row > .btn {
  flex: 1 1 0;
}
.site-footer .footer-bottom .consent-open {
  margin-top: var(--s-2);
  padding: var(--s-1) 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.site-footer .footer-bottom .consent-open:hover {
  color: var(--text-1);
}
.site-footer .footer-bottom .consent-open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.consent .consent-text a {
  color: var(--text-1);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* phones: a compact strip – smaller text and buttons, close to the screen edge */
@media (max-width: 599px) {
  .consent.panel {
    left: var(--s-2);
    right: var(--s-2);
    bottom: var(--s-2);
    padding: var(--s-3) var(--s-4);
  }
  .consent .consent-title {
    margin-bottom: var(--s-1);
    font-size: var(--fs-detail);
  }
  .consent .consent-text {
    margin-bottom: var(--s-3);
    font-size: var(--fs-caption);
    line-height: 1.45;
  }
  :is(body, #servicePage) .consent .btn {
    min-height: 40px;
    padding: var(--s-2) var(--s-4);
    font-size: var(--fs-caption);
  }
}
