/* ===== TOKENS ===== */
:root{
  --bg: #F0E4DE;
  --bg-alt: #F7F2EE;
  --dark: #3A2226;
  --accent: #C88EA7;
  --accent-deep: #B87A96;
  --accent-soft: #E8CFDA;
  --text: #2B211D;
  --white: #FFFFFF;

  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* výška pevnej hlavičky – JavaScript ju prepíše presnou hodnotou */
  --header-h: 72px;
}

*{ box-sizing:border-box; margin:0; padding:0; }

/* scroll-padding-top: sekcia sa po kliknutí na menu zastaví presne pod hlavičkou */
html{
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body{
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-alt);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }

.container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

a{ color: inherit; text-decoration:none; }

h1,h2,h3{ font-family: var(--font-display); color: var(--dark); font-weight: 500; }

.eyebrow{
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title{
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}
.section-title.center{ text-align:center; margin-bottom: 48px; }

/* ===== BUTTONS ===== */
.btn{
  display:inline-block;
  padding: 14px 28px;
  border-radius: 2px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover{ transform: translateY(-3px); box-shadow: 0 10px 20px rgba(58,34,38,0.18); }
.btn-dark{ background: var(--dark); color: var(--white); }
.btn-dark:hover{ background: #2A181C; }
.btn-light{ background: var(--white); color: var(--dark); }
.btn-light:hover{ background: var(--accent-soft); }
.btn-outline{ border: 1px solid var(--accent); color: var(--dark); background: transparent; }
.btn-outline:hover{ background: var(--accent); color: var(--white); }
.btn-link{ padding: 14px 0; font-weight:500; color: var(--dark); border-bottom: 1px solid transparent; }
.btn-link:hover{ border-color: var(--dark); transform:none; box-shadow:none; }

.link-arrow{
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  display:inline-block;
  margin-top: 12px;
  transition: transform 0.25s ease, color 0.25s ease;
}
.link-arrow:hover{ color: var(--dark); transform: translateX(4px); }

/* ===== HEADER ===== */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(247,242,238,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(58,34,38,0.08);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 32px;
}
.logo{ display:flex; align-items:center; gap:12px; }
.logo-img{
  width: 42px; height:42px;
  object-fit: contain;
  border-radius: 50%;
}
.logo-text{ display:flex; flex-direction:column; line-height:1; }
.logo-main{ font-family: var(--font-display); font-size:1.3rem; letter-spacing:0.08em; color:var(--dark); }
.logo-sub{ font-size:0.6rem; letter-spacing:0.3em; color:var(--accent); margin-top:2px; }
.logo--light .logo-main{ color: var(--white); }

.main-nav{ display:flex; gap: 30px; }
.main-nav a{ position:relative; font-size:0.85rem; font-weight:500; letter-spacing:0.03em; padding-bottom:4px; }
.main-nav a::after{
  content:""; position:absolute; left:0; bottom:0;
  width:0; height:1px; background: var(--accent);
  transition: width 0.3s ease;
}
.main-nav a:hover{ color: var(--accent); }
.main-nav a:hover::after{ width:100%; }

.nav-toggle{ display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; }
.nav-toggle span{ width:22px; height:2px; background: var(--dark); transition: transform 0.3s ease, opacity 0.3s ease; }
.nav-toggle.is-active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2){ opacity:0; }
.nav-toggle.is-active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero{ padding: 64px 0 90px; overflow:hidden; }
.hero-inner{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items:center;
}

.hero-text > *{ opacity:0; animation: fadeUp 0.8s ease forwards; }
.hero-text > *:nth-child(1){ animation-delay: 0.1s; }
.hero-text > *:nth-child(2){ animation-delay: 0.25s; }
.hero-text > *:nth-child(3){ animation-delay: 0.4s; }
.hero-text > *:nth-child(4){ animation-delay: 0.55s; }
.hero-text > *:nth-child(5){ animation-delay: 0.7s; }

.hero-text h1{
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height:1.1;
  margin-bottom: 20px;
}
.hero-rule{
  display:block;
  width: 56px; height: 2px;
  background: var(--accent);
  margin: 20px 0;
}
.hero-desc{ max-width: 380px; margin-bottom: 32px; color:#5A4A45; }
.hero-actions{ display:flex; align-items:center; gap: 28px; flex-wrap:wrap; }

.hero-media{
  position:relative;
  opacity:0;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
}
.hero-glow{
  position:absolute; inset: -10%;
  background: radial-gradient(circle at 60% 40%, rgba(200,142,167,0.55), rgba(200,142,167,0) 65%);
  filter: blur(10px);
  z-index:0;
  animation: glowPulse 6s ease-in-out infinite;
}
.hero-img{
  position:relative; z-index:1;
  border-radius: 4px;
  aspect-ratio: 4/5;
  object-fit: cover;
  width:100%;
  opacity:0;
  animation: heroImgIn 1.1s ease forwards, kenBurns 22s ease-in-out infinite alternate;
  animation-delay: 0.2s, 1.1s;
}
.hero-tag{
  position:absolute; right: 24px; bottom: 24px; z-index:2;
  color: var(--white);
  font-size:0.72rem;
  letter-spacing: 0.12em;
  text-transform:uppercase;
  text-align:right;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

/* ===== KEYFRAMES ===== */
@keyframes fadeUp{
  from{ opacity:0; transform: translateY(24px); }
  to{ opacity:1; transform: translateY(0); }
}
@keyframes heroImgIn{
  from{ opacity:0; transform: scale(1.08); }
  to{ opacity:1; transform: scale(1); }
}
@keyframes kenBurns{
  from{ transform: scale(1); }
  to{ transform: scale(1.07); }
}
@keyframes glowPulse{
  0%,100%{ opacity:0.55; transform: scale(1); }
  50%{ opacity:0.8; transform: scale(1.08); }
}

/* ===== SCROLL REVEAL ===== */
.reveal{
  opacity:0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible{ opacity:1; transform: translateY(0); }

.services-grid .reveal:nth-child(2){ transition-delay:0.1s; }
.services-grid .reveal:nth-child(3){ transition-delay:0.2s; }
.services-grid .reveal:nth-child(4){ transition-delay:0.3s; }

/* postupné zobrazovanie kariet v Signature Treatments (opakuje sa po riadkoch) */
.signature-grid .reveal:nth-child(4n+2){ transition-delay:0.08s; }
.signature-grid .reveal:nth-child(4n+3){ transition-delay:0.16s; }
.signature-grid .reveal:nth-child(4n+4){ transition-delay:0.24s; }

.about-gallery{ transition-delay:0.15s; }

/* ===== SERVICES ===== */
.services{ padding: 80px 0; background: var(--bg-alt); }
.services-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(58,34,38,0.1);
}
.service-card{
  padding: 40px 28px;
  border-right: 1px solid rgba(58,34,38,0.1);
  text-align:center;
  transition: background 0.3s ease;
}
.service-card:hover{ background: rgba(200,142,167,0.06); }
.service-card:last-child{ border-right:none; }
.service-card--accent{ background: var(--accent); color: var(--white); }
.service-card--accent:hover{ background: var(--accent-deep); }
.service-card--accent h3{ color: var(--white); }
.service-card--accent .service-icon{ color: var(--white); }
.service-card--accent .link-arrow{ color: var(--white); text-decoration: underline; }

.service-icon{ width:44px; height:44px; margin: 0 auto 18px; color: var(--accent); transition: transform 0.3s ease; }
.service-card:hover .service-icon{ transform: scale(1.1) rotate(-4deg); }
.service-icon svg{ width:100%; height:100%; }
.service-card h3{ font-size:1.15rem; margin-bottom: 14px; }
.service-card ul{ list-style:none; font-size:0.9rem; color:#5A4A45; }
.service-card--accent ul{ color: rgba(255,255,255,0.95); }
.service-card ul li{ margin-bottom: 6px; }

/* ===== SIGNATURE ===== */
.signature{ padding: 80px 0; background: var(--bg); }
.signature-head p{ max-width: 420px; color:#5A4A45; margin-bottom: 4px; }

.signature-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px 24px;
  margin-top: 40px;
  align-items: start;
}

/* fotka – vždy štvorec, obrázok sa vyplní a orežie */
.signature-img{
  aspect-ratio: 1/1;
  overflow:hidden;
  border-radius: 3px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--accent-soft), rgba(200,142,167,0.25));
}
.signature-img img{
  width:100%; height:100%;
  object-fit:cover;
  object-position:center;
  transition: transform 0.5s ease;
}
.signature-card:hover .signature-img img{ transform: scale(1.08); }

/* ručne nastavená pozícia orezu pre jednotlivé fotky */
.signature-img img.img-jalupro{ object-position: center 35%; }
.signature-img img.img-radio{   object-position: center 35%; }
.signature-img img.img-endo{    object-position: center 65%; }
.signature-img img.img-vital{   object-position: 70% center; }

.signature-card h3{ font-size:1.05rem; margin-bottom: 8px; }
.signature-card p{ font-size:0.85rem; line-height:1.6; color:#5A4A45; }

/* zoznam účinkov (chemický peeling) */
.signature-list{
  list-style:none;
  margin-top: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  color:#5A4A45;
}
.signature-list li{
  position:relative;
  padding-left: 16px;
  margin-bottom: 5px;
}
.signature-list li::before{
  content:"";
  position:absolute; left:0; top:0.6em;
  width:6px; height:6px; border-radius:50%;
  background: var(--accent);
}

/* ===== PRICING ===== */
.pricing{ padding: 90px 0; background: var(--bg-alt); }
.price-frame{
  position:relative;
  border: 1px solid var(--accent);
  padding: 56px 48px 40px;
  max-width: 1080px;
  margin: 0 auto;
}
.price-frame::before{
  content:"";
  position:absolute; inset:8px;
  border: 1px solid rgba(200,142,167,0.4);
  pointer-events:none;
}
.price-frame-badge{
  position:absolute; top:-18px; left:50%; transform:translateX(-50%);
  width:36px; height:36px; border-radius:50%;
  background: var(--accent);
  color:var(--white);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display);
}
.price-columns{
  display:grid;
  grid-template-columns: 1.25fr 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
.price-col h3,
.price-subgroup h3{
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(58,34,38,0.15);
}
.price-col--split{ display:flex; flex-direction:column; gap: 36px; }

.price-list{ list-style:none; }
.price-list li{
  display:flex;
  align-items: flex-end;
  font-size: 0.8rem;
  line-height: 1.35;
  margin-bottom: 9px;
  transition: color 0.2s ease;
}
.price-list li > span:first-child{
  flex: 0 1 auto;
  min-width: 0;
  padding-right: 4px;
}
.price-list li:hover{ color: var(--accent); }
.price-list .dots{
  flex: 1 1 12px;
  min-width: 12px;
  border-bottom: 1px dotted rgba(58,34,38,0.4);
  margin: 0 4px 3px;
}
.price-list li > span:last-child{
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 500;
}
.price-footer{ text-align:center; margin-top: 40px; }
.price-note{
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  padding: 16px 32px;
  border-radius: 2px;
  box-shadow: 0 12px 24px rgba(58,34,38,0.1);
}
.price-note-icon{ width:26px; height:26px; color: var(--accent-deep); flex-shrink:0; }

/* ===== ABOUT ===== */
.about{ padding: 90px 0; background: var(--bg); }

/* horný riadok: portrét + text */
.about-top{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items:center;
}

.about-portrait{
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: 0 20px 40px rgba(58,34,38,0.15);
  background: linear-gradient(135deg, var(--accent-soft), rgba(200,142,167,0.25));
}
.about-portrait img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text h2{ font-size: clamp(1.8rem,3vw,2.4rem); margin: 6px 0 20px; line-height:1.2; }
.about-text p{ color:#5A4A45; max-width: 460px; margin-bottom: 32px; }
.about-features{ display:flex; gap:32px; flex-wrap:wrap; }
.feature{ display:flex; flex-direction:column; align-items:flex-start; gap:10px; max-width:130px; }
.feature svg{ width:30px; height:30px; color: var(--accent); transition: transform 0.3s ease; }
.feature:hover svg{ transform: scale(1.15); }
.feature span{ font-size:0.82rem; font-weight:600; color: var(--dark); }

/* panoramatická galéria priestorov pod horným riadkom */
.about-gallery{ margin-top: 56px; }

.about-gallery-slideshow{
  position: relative;
  width: 100%;
  aspect-ratio: 21/8;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(58,34,38,0.15);
  background: linear-gradient(135deg, var(--accent-soft), rgba(200,142,167,0.25));
}

.about-gallery-slideshow img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: aboutGallerySlideshow 36s infinite;
}

/* 6 fotiek, každá viditeľná 6 sekúnd (36s / 6 = 6s na fotku) */
.about-gallery-slideshow img:nth-child(1){ animation-delay: 0s;  }
.about-gallery-slideshow img:nth-child(2){ animation-delay: 6s;  }
.about-gallery-slideshow img:nth-child(3){ animation-delay: 12s; }
.about-gallery-slideshow img:nth-child(4){ animation-delay: 18s; }
.about-gallery-slideshow img:nth-child(5){ animation-delay: 24s; }
.about-gallery-slideshow img:nth-child(6){ animation-delay: 30s; }

@keyframes aboutGallerySlideshow{
  0%      { opacity: 0; }
  2.22%   { opacity: 1; }
  14.44%  { opacity: 1; }
  16.67%  { opacity: 0; }
  100%    { opacity: 0; }
}

.about-gallery-scrim{
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(43,33,29,0.5), rgba(43,33,29,0) 50%);
  pointer-events: none;
}

.about-gallery-caption{
  position: absolute;
  left: 28px;
  bottom: 20px;
  z-index: 3;
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

/* ===== CTA ===== */
.cta{
  position:relative;
  background: var(--dark);
  overflow:hidden;
  padding: 60px 0;
}
.cta-glow{
  position:absolute; right:-10%; top:50%; transform:translateY(-50%);
  width:420px; height:420px; border-radius:50%;
  background: radial-gradient(circle, rgba(200,142,167,0.5), rgba(200,142,167,0) 70%);
  filter: blur(20px);
  animation: glowPulse 7s ease-in-out infinite;
}
.cta-inner{
  position:relative; z-index:1;
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:24px;
}
.cta-inner h2{ color: var(--white); font-size: clamp(1.6rem,3vw,2.2rem); font-weight:400; }

/* ===== FOOTER ===== */
.site-footer{ background: var(--dark); color: rgba(255,255,255,0.85); padding: 64px 0 24px; }
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
}
.footer-brand p{ margin: 14px 0 18px; font-size:0.88rem; color: rgba(255,255,255,0.65); }
.footer-social{ display:flex; gap:14px; }
.footer-social a{
  width:34px; height:34px; border-radius:50%;
  border: 1px solid rgba(255,255,255,0.3);
  display:flex; align-items:center; justify-content:center;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.footer-social a:hover{ background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

.footer-col h4{
  font-family: var(--font-body); font-size:0.78rem;
  text-transform:uppercase; letter-spacing:0.1em;
  color: var(--accent); margin-bottom: 16px;
}
.footer-col p{ font-size:0.9rem; margin-bottom: 8px; color: rgba(255,255,255,0.75); }
.footer-col p span{ float:right; color: rgba(255,255,255,0.5); }
.footer-col p a:hover{ color: var(--accent); }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}

/* ===== RESPONSIVE ===== */

/* tablet */
@media (max-width: 960px){
  .hero-inner{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: repeat(2,1fr); }
  .service-card{ border-right:none; border-bottom: 1px solid rgba(58,34,38,0.1); }
  .signature-grid{ grid-template-columns: repeat(2,1fr); }
  .signature-grid .reveal:nth-child(n){ transition-delay:0s; }
  .price-columns{ grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .price-col--split{ grid-column: span 2; flex-direction: row; gap: 28px; }
  .price-frame{ padding: 48px 32px 32px; }
  .about-top{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
}

/* mobil */
@media (max-width: 680px){
  .container{ padding: 0 20px; }
  .header-inner{ padding: 12px 20px; }

  .main-nav{
    display:none;
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; gap:16px;
    background: var(--bg-alt);
    padding: 24px 20px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  }
  .main-nav.nav-open{ display:flex; }
  .nav-toggle{ display:flex; }
  .header-inner .btn{ display:none; }

  /* na mobile menej extrémny panoramatický pomer, nech fotky nie sú príliš tenké */
  .about-gallery-slideshow{ aspect-ratio: 4/3; }
  .about-gallery-caption{ left: 18px; bottom: 14px; }

  /* cenník: všetko pod sebou v jednom stĺpci */
  .pricing{ padding: 64px 0; }
  .price-frame{ padding: 44px 20px 28px; }
  .price-frame::before{ inset: 6px; }
  .price-columns{ grid-template-columns: 1fr; gap: 36px; }
  .price-col--split{ grid-column: auto; flex-direction: column; gap: 36px; }
  .price-list li{ font-size: 0.9rem; margin-bottom: 11px; }
  .price-col h3,
  .price-subgroup h3{ font-size: 0.9rem; }
  .price-note{ font-size: 1.05rem; padding: 14px 22px; gap:10px; }
  .price-note-icon{ width:22px; height:22px; }
}

@media (max-width: 560px){
  .signature-grid{ grid-template-columns: 1fr; }
  .signature-grid .reveal:nth-child(n){ transition-delay:0s; }
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html{ scroll-behavior: auto; }
}