/* Shared site styles — used by templates and real pages */

/* ===================== Design variables ===================== */
:root {
  /* Header & footer share the same palette */
  --header-background-color: #015e4b;
  --logo-color: #e4ccb4;
  --body-font: "Quicksand", sans-serif;
  --heading-font: "Gantari", sans-serif;
  --header-text-color: #f3ece2;

  /* Main content */
  --content-background-color: #f3ece2;
  --content-text-color: #4a4a4a;

  /* Typography */
  --base-font-size: 18px;
}

/* Typography — Quicksand for body text, Gantari for headings */
html {
  font-size: var(--base-font-size); /* base size — Bulma's default is 16px */
}
body {
  font-family: var(--body-font);
}
.title,
h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 400; /* regular weight — not bold */
}

/* Paragraph spacing — gap between consecutive paragraphs (site-wide) */
p {
  margin-bottom: 1rem;
}
p:last-child {
  margin-bottom: 0;
}

/* Links underline on hover (site-wide) */
a:hover {
  text-decoration: underline;
}

/* Full-height flex layout so the footer is always pinned to the bottom */
html, body {
  min-height: 100vh;
}
body {
  display: flex;
  flex-direction: column;
}

/* Header & footer — share the same colors */
.site-header,
.site-footer {
  background-color: var(--header-background-color);
  color: var(--header-text-color);
}

/* Header: vertical gradient (solid color above stays as fallback) */
.site-header {
  background-image: linear-gradient(#136869, #062e2d);
}

/* Footer: the same gradient reversed (darker at the top) */
.site-footer {
  background-image: linear-gradient(#062e2d, #136869);
}

/* Headings in header & footer inherit the header text color */
.site-header .title,
.site-footer .title {
  color: var(--header-text-color);
}

/* ===================== Header / navigation ===================== */
/* Keep the header (and its dropdown) above the page content */
.site-header {
  position: relative;
  z-index: 10;
}
.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-logo {
  display: inline-flex;
}
.site-logo img {
  display: block;
  height: 3.5rem;
  width: auto;
}

/* Hamburger toggle (checkbox hack — no JS). Visually hidden checkbox,
   burger hidden on desktop and revealed on mobile via the media query. */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.nav-burger {
  display: none; /* shown only on mobile */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background-color: var(--header-text-color);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-menu a {
  color: var(--header-text-color);
  text-decoration: none;
}
.site-menu a:hover {
  text-decoration: underline;
}
/* Top-level menu items only (not submenu sub-items) — bigger & uppercase */
.site-menu > li > a {
  font-size: 1.1rem;
  text-transform: uppercase;
}

/* Submenu — pure CSS, opens on hover or keyboard focus (no JS).
   Custom class names avoid clashing with Bulma's .dropdown* component. */
.site-menu .has-submenu {
  position: relative;
}
.submenu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
.submenu-arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}
.submenu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 12rem;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background-color: #136869 /* lighter green from the header gradient */;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.submenu a {
  display: block;
  padding: 0.5rem 1.25rem;
  white-space: nowrap;
}
.submenu a:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

/* Open state */
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.has-submenu:hover .submenu-arrow,
.has-submenu:focus-within .submenu-arrow {
  transform: rotate(180deg);
}

/* ---- Mobile: collapse the menu behind a hamburger ---- */
@media (max-width: 768px) {
  .site-header > .container {
    flex-wrap: wrap;
  }

  /* Reveal the hamburger; animate its bars into an X when open */
  .nav-burger {
    display: flex;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Menu becomes a full-width column below, hidden until toggled */
  .site-nav {
    display: none;
    flex-basis: 100%;
  }
  .nav-toggle:checked ~ .site-nav {
    display: block;
  }
  .site-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0 0.25rem;
  }
  .site-menu > li {
    width: 100%;
  }
  .site-menu > li > a {
    display: block;
    padding: 0.6rem 0;
  }

  /* On touch there is no hover, so show the submenu inline & expanded */
  .has-submenu .submenu {
    position: static;
    min-width: 0;
    margin: 0 0 0 1rem;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .submenu a {
    padding: 0.4rem 0;
  }
  .submenu-arrow {
    display: none;
  }
}

/* Footer links use the header text color */
.site-footer a {
  color: var(--header-text-color);
}

/* Outline icons (footer, etc.) — wireframe style, a bit larger */
.icon-text .icon:has(.footer-icon) {
  width: 1.75rem;
  height: 1.75rem;
}
.footer-icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Main content — grows to fill available space */
.site-main {
  background-color: var(--content-background-color);
  color: var(--content-text-color);
  flex-grow: 1;
}

/* ===================== Home page header (index.html) ===================== */
/* Taller header: menu on top, big centered logo below */
.site-header--home > .container {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
  min-height: 18rem;          /* ~3× the standard header height */
  padding-top: 2rem;
  padding-bottom: 2.75rem;
}

/* Menu sits at the very top, centered */
.site-header--home .site-nav {
  order: 1;
  width: 100%;
}
.site-header--home .site-menu {
  justify-content: center;
}

/* Logo below the menu, centered and larger */
.site-header--home .site-logo {
  order: 2;
  margin: 0 auto;
}
.site-header--home .site-logo img {
  height: 12rem;
}

/* Tagline under the logo */
.site-tagline {
  order: 3;
  width: 100%;
  text-align: center;
  font-family: var(--heading-font);
  color: var(--logo-color);
  font-size: 2rem;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  margin-top: 0.25rem;
}

/* The submenu would otherwise be clipped by its right-aligned origin in a
   centered bar — anchor it to the centre of its trigger instead. */
.site-header--home .has-submenu .submenu {
  right: auto;
  left: 50%;
  transform: translate(-50%, 0.5rem);
}
.site-header--home .has-submenu:hover .submenu,
.site-header--home .has-submenu:focus-within .submenu {
  transform: translate(-50%, 0);
}

@media (max-width: 768px) {
  .site-header--home > .container {
    min-height: 0;
    gap: 1.25rem;
    padding-top: 1.25rem;
  }
  /* Keep the hamburger on top, logo centered beneath it */
  .site-header--home .nav-burger { order: 0; align-self: flex-end; }
  .site-header--home .site-nav   { order: 1; }
  .site-header--home .site-logo  { order: 2; }
  .site-header--home .site-logo img { height: 5rem; }
  .site-tagline { font-size: 1.25rem; }
  .site-header--home .has-submenu .submenu {
    left: 0;
    transform: none;
  }
}

/* ===================== Home intro (index.html) ===================== */
.home-intro {
  max-width: 880px;
  margin: 0 auto;
  padding-top: 3.5rem;
  text-align: center;
}
.home-intro h1 {
  font-family: var(--heading-font);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--header-background-color);
  margin: 0 0 1rem;
}
.home-intro p {
  font-size: 1.05rem;
  opacity: .85;
  margin: 0 auto;
  max-width: 640px;
}

/* ===================== Service boxes (index.html) ===================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 880px;
  margin: 0 auto;
  padding: 2.5rem 0 4.5rem;
}
.service-box {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  aspect-ratio: 1 / 1; /* square boxes */
  border: 2px solid var(--header-background-color);
  border-radius: 14px;
  padding: 1.5rem;
  font-family: var(--heading-font);
  font-size: 1.5rem;
  background-size: cover;
  background-position: center;
  color: var(--header-text-color);
  position: relative;
  z-index: 0;
  overflow: hidden;
}
/* Dark scrim between the photo and the text, for readability */
.service-box::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(20, 30, 27, 0.28);
  transition: background-color .2s ease;
}
.service-box:hover::before,
.service-box:focus-visible::before {
  background-color: rgba(1, 94, 75, 0.6);
}

/* Box backgrounds — each box only sets its own image.
   Images with a -retina variant use image-set(), so the 2x file loads only on retina displays. */
.service-box--masaze {
  background-image: url("../img/bg-massage.webp");
}
.service-box--phorma {
  background-image: url("../img/bg-phorma-laser-therapy.webp");
  background-image: image-set(
    url("../img/bg-phorma-laser-therapy.webp") 1x,
    url("../img/bg-phorma-laser-therapy-retina.webp") 2x);
}
.service-box--osetrenie {
  background-image: url("../img/bg-individual-skin-treatment.webp");
  background-image: image-set(
    url("../img/bg-individual-skin-treatment.webp") 1x,
    url("../img/bg-individual-skin-treatment-retina.webp") 2x);
}
.service-box--doplnkove {
  background-image: url("../img/bg-additional-services.webp");
  background-image: image-set(
    url("../img/bg-additional-services.webp") 1x,
    url("../img/bg-additional-services-retina.webp") 2x);
}

/* Mobile: boxes stacked one after another */
@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
    padding: 2rem 0 3rem;
  }
}

/* ===================== Contact page (kontakt.html) ===================== */
.contact-map iframe {
  display: block;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(1, 94, 75, 0.06);
}

/* ===================== Home about (index.html) ===================== */
.home-about {
  max-width: 880px;
  margin: 0 auto;
  padding-bottom: 4.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.home-about-text p {
  margin: 0 0 1rem;
}
.home-about-sign {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  color: var(--header-background-color);
}
.home-about-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(1, 94, 75, 0.06);
}

/* Mobile: photo below the text */
@media (max-width: 768px) {
  .home-about {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ===================== Pricelist (cennik.html) ===================== */
.price-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
}

.price-hero {
  text-align: center;
  margin-bottom: 3.25rem;
}
.price-hero h1 {
  font-family: var(--heading-font);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--header-background-color);
  margin: 0 0 .6rem;
}
.price-hero p {
  font-size: 1.05rem;
  opacity: .8;
  margin: 0;
}

.price-cat {
  margin-bottom: 3rem;
}
.price-cols:last-child .price-cat:last-child {
  margin-bottom: 0;
}
.price-cat-title {
  font-family: var(--heading-font);
  font-size: 1.6rem;
  color: var(--header-background-color);
  margin: 0 0 1.25rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid rgba(1, 94, 75, 0.2);
}

/* Intro paragraph under a category title */
.price-cat-intro {
  margin: 0 0 1.25rem;
  opacity: .85;
}

/* Short description of a treatment */
.price-desc {
  margin: .15rem 0 0;
  font-size: .95rem;
  opacity: .85;
}
.price-card > .price-desc {
  margin-top: .75rem;
}

.nowrap {
  white-space: nowrap;
}

/* Treatment with two variants (relax + basic) side by side */
.price-group {
  margin-bottom: 2.25rem;
}
.price-group:last-child {
  margin-bottom: 0;
}
.price-group-title {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  color: var(--content-text-color);
  margin: 0;
}
.price-group > .price-desc {
  margin: .15rem 0 .9rem;
}
.price-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.price-pair .price-card {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .price-pair {
    grid-template-columns: 1fr;
  }
}

.price-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.5rem 1.65rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 20px rgba(1, 94, 75, 0.06);
}
.price-card:last-child {
  margin-bottom: 0;
}

.price-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.price-name {
  font-family: var(--heading-font);
  font-size: 1.3rem;
  color: var(--content-text-color);
  margin: 0;
}
.price-dur {
  display: inline-block;
  margin-top: .2rem;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #5a5a5a;
}
.price-amt {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  color: var(--header-background-color);
  white-space: nowrap;
}

.price-list {
  list-style: none;
  margin: .75rem 0 0;
  padding: 0;
}
.price-list li {
  display: inline;
  line-height: 1.6;
}
.price-list li:not(:last-child)::after {
  content: " \2022  "; /* bullet separator between items */
  color: var(--header-background-color);
  opacity: .55;
}

/* Variant: one item per line with dot bullets */
.price-list--lines {
  display: grid;
  gap: .35rem;
}
.price-list--lines li {
  display: list-item;
  list-style: none;
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.5;
}
.price-list--lines li:not(:last-child)::after {
  content: none;
}
.price-list--lines li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--header-background-color);
  opacity: .55;
}

@media (max-width: 540px) {
  .price-card-head { align-items: flex-start; }
  .price-amt { font-size: 1.5rem; }
}

/* ===================== Service page (masaze-tvare.html) ===================== */
.svc-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
}
.svc-wrap p {
  line-height: 1.65;
}

.svc-hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(1, 94, 75, 0.06);
  margin-bottom: 2.75rem;
}
.svc-hero-img--narrow {
  width: 65%;
  margin-left: auto;
  margin-right: auto;
}
/* Mobile: narrow hero goes full width */
@media (max-width: 768px) {
  .svc-hero-img--narrow {
    width: 100%;
  }
}

.svc-intro-title {
  font-family: var(--heading-font);
  font-size: 1.6rem;
  color: var(--header-background-color);
  margin: 0 0 1rem;
}
.svc-types-title {
  margin-top: 2.5rem;
}

.svc-quicklinks {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: .75rem;
  flex-wrap: wrap;
}
.svc-quicklinks a {
  font-family: var(--heading-font);
  font-size: 1.05rem;
  letter-spacing: .03em;
  color: var(--header-background-color);
  text-decoration: none;
  border-bottom: 1px solid rgba(1, 94, 75, 0.35);
  transition: border-color .2s ease;
}
.svc-quicklinks a:hover,
.svc-quicklinks a:focus-visible {
  border-bottom-color: var(--header-background-color);
}
.svc-quicklinks span {
  color: var(--header-background-color);
  opacity: .55;
}

/* Smooth scroll + don't hide anchored headings behind the top edge */
html {
  scroll-behavior: smooth;
}
.svc-section,
.price-cat {
  scroll-margin-top: 1.5rem;
}

/* Images stacked vertically, each at its natural size, centered */
.svc-img-row {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
  justify-items: center;
}
.svc-img-row img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(1, 94, 75, 0.06);
}

/* Two images next to each other (gift cards) */
.svc-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
}
.svc-img-pair img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(1, 94, 75, 0.06);
}
@media (max-width: 640px) {
  .svc-img-pair {
    grid-template-columns: 1fr;
  }
}

/* Two columns: image + text (image left by default, right with --rev) */
.svc-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
  margin: 2.5rem 0;
}
.svc-split--rev {
  grid-template-columns: 1.15fr 1fr;
}
.svc-split--rev img {
  order: 2;
}
.svc-split img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(1, 94, 75, 0.06);
}

.svc-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: .6rem;
}
.svc-list li {
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.55;
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--header-background-color);
  opacity: .55;
}

.svc-section {
  margin-top: 3.5rem;
}
.svc-tagline {
  font-style: italic;
  color: var(--header-background-color);
  margin: 0 0 1.1rem;
}
.svc-sub {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  color: var(--content-text-color);
  margin: 0;
}

/* Duration + price strip */
.svc-meta {
  background: #ffffff;
  border-radius: 14px;
  padding: 1rem 1.5rem;
  box-shadow: 0 6px 20px rgba(1, 94, 75, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.75rem 0 1rem;
}
.svc-dur {
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #5a5a5a;
}
a.svc-dur {
  text-decoration: none;
  border-bottom: 1px solid rgba(1, 94, 75, 0.35);
  transition: color .2s ease, border-color .2s ease;
}
a.svc-dur:hover,
a.svc-dur:focus-visible {
  color: var(--header-background-color);
  border-bottom-color: var(--header-background-color);
}
.svc-price {
  font-family: var(--heading-font);
  font-size: 1.75rem;
  color: var(--header-background-color);
  white-space: nowrap;
}

.svc-ritual {
  font-size: .95rem;
  opacity: .85;
}

.svc-sign {
  font-family: var(--heading-font);
  font-size: 1.2rem;
  color: var(--header-background-color);
}

/* Mobile: single column, image above text */
@media (max-width: 768px) {
  .svc-split,
  .svc-split--rev {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .svc-split--rev img {
    order: 0;
  }
}

/* ===================== Service page additions (phorma-laser-therapy.html) ===================== */
.svc-emph {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  color: var(--header-background-color);
  margin: 1.5rem 0 0;
}

/* 2x2 cards with image + text */
.svc-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 0 0 1.75rem;
}
.svc-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  box-shadow: 0 6px 20px rgba(1, 94, 75, 0.06);
}
.svc-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.svc-card--row {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.1rem;
  align-items: start;
  align-content: start;
  font-size: .9rem;
}
.svc-card--row .svc-sub {
  grid-column: 1 / -1;
  grid-row: 1;
  font-size: 1.05rem;
  margin-bottom: .75rem;
}
.svc-card--row img {
  grid-column: 1;
  grid-row: 2;
  width: 88px;
  margin-bottom: 0;
}
.svc-card--row p {
  grid-column: 2;
  grid-row: 2;
  margin-top: -.3em; /* zruší polovičné riadkovanie, text začína opticky na úrovni obrázka */
}
.svc-card:not(.svc-card--row) p {
  margin: .5rem 0 0;
}

/* Image that should not be cropped/stretched edge-to-edge (product/machine shots) */
.svc-img-contain {
  max-height: 300px;
  width: auto !important;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: none !important;
}
.svc-img-mt {
  margin-top: 2rem;
}
/* Crop to the same aspect ratio as the Luminea photo (750x422) */
.svc-img-ratio {
  aspect-ratio: 750 / 422;
  object-fit: cover;
}

/* Heading with a small icon */
.svc-icon-head {
  font-family: var(--heading-font);
  font-size: 1.1rem;
  color: var(--content-text-color);
  margin: 2rem 0 .75rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.svc-hicon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  color: var(--header-background-color);
}

/* Serum cards */
.svc-serum {
  background: #ffffff;
  border-radius: 14px;
  padding: 1.5rem 1.65rem;
  box-shadow: 0 6px 20px rgba(1, 94, 75, 0.06);
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 1.75rem;
  align-items: center;
}
/* Meta strip inside a serum card: plain row spanning both columns, no nested box */
.svc-serum .svc-meta {
  grid-column: 1 / -1;
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}
.svc-serum img {
  display: block;
  width: 100%;
  height: auto;
}
.svc-keywords {
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--header-background-color);
  margin: .35rem 0 1rem;
}
.svc-serum .svc-sub {
  margin: 0;
}
.svc-serum p {
  margin: 0 0 1rem;
}
.svc-serum p:last-child {
  margin-bottom: 0;
}

/* Numbered steps */
.svc-steps {
  list-style: none;
  counter-reset: svc-step;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: .9rem;
}
.svc-steps li {
  counter-increment: svc-step;
  position: relative;
  padding-left: 2.6rem;
  line-height: 1.55;
}
.svc-steps li::before {
  content: counter(svc-step);
  position: absolute;
  left: 0;
  top: .05em;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--header-background-color);
  color: var(--header-text-color);
  font-family: var(--heading-font);
  font-size: .95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .svc-grid2 {
    grid-template-columns: 1fr;
  }
  .svc-serum {
    grid-template-columns: 1fr;
  }
  .svc-serum img {
    max-width: 240px;
    margin: 0 auto;
  }
}

.print-bg {
  display: none;
}

/* ===================== Print styles (cennik.html) ===================== */
@media print {
  /* Landscape paper, two columns of treatments */
  @page {
    size: A4 landscape;
    margin: 0;
  }

  /* Scaled down like "2 pages per sheet" (~70 % linear scale) */
  html {
    font-size: 10px;
  }

  /* The screen layout is a full-height flex column (to pin the footer);
     in print the flex body paginates badly and adds a blank last page */
  html, body {
    min-height: 0;
  }
  body {
    display: block;
    padding: 12mm;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    color: var(--header-text-color);
  }
  .site-main {
    background: transparent;
    color: inherit;
  }
  .print-bg {
    display: block;
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(#136869, #062e2d);
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Header-style colors: light text on the gradient */
  .price-hero h1,
  .price-cat-title,
  .price-group-title,
  .price-name,
  .price-dur,
  .price-amt {
    color: var(--header-text-color);
  }
  .price-cat-title {
    border-bottom-color: rgba(243, 236, 226, 0.35);
  }
  .price-list li:not(:last-child)::after {
    color: var(--header-text-color);
  }

  /* "Cenník" heading starts at the very top; content flows in two columns */
  .price-wrap {
    padding-top: 0;
    padding-bottom: 0;
    max-width: none;
  }
  .price-cols {
    columns: 2;
    column-gap: 2.5rem;
  }
  .price-cols + .price-cols {
    break-before: page; /* second group starts on page 2 */
    padding-top: 12mm;  /* body padding doesn't repeat on later pages */
  }
  .price-hero {
    column-span: all; /* title spans both columns */
    margin-bottom: 1.5rem;
  }

  /* No header / footer / section quick links on paper */
  .site-header,
  .site-footer,
  .svc-quicklinks {
    display: none;
  }

  /* Detail items of each procedure flow on one line */
  .price-list {
    display: block;
    margin-top: .5rem;
  }
  .price-list li {
    display: inline;
    padding-left: 0;
  }
  .price-list li::before {
    display: none;
  }
  .price-list li:not(:last-child)::after {
    content: " \2022  "; /* bullet separator between items */
  }

  /* Flow: page 1 = Phorma Laser -> Masáže across the two columns,
     page 2 = Individuálne ošetrenie (column 1) and Doplnkové služby (column 2) */
  .price-cat {
    break-before: auto;
    break-inside: auto;
  }
  #doplnkove-sluzby {
    break-before: column; /* second column of its page */
  }
  .price-cat-title {
    break-after: avoid; /* no lonely title at a column bottom */
  }

  /* Keep each card/group together in a column */
  .price-card {
    break-inside: avoid;
    box-shadow: none;
    background: transparent;
    border: 1px solid rgba(243, 236, 226, 0.45);
  }
  .price-group {
    break-inside: avoid;
  }
}
