:root {
  --blue:#3a9bdc;
  --blue-600:#2f83ba;
  --bg:#ffffff;
  --paper:#f6f7f9;
  --line:#e7eaf0;
  --text:#5b6470;
  --muted:#7b8592;
  --shadow:0 10px 30px rgba(15,23,42,.08);
  --radius:18px;
  --radius-sm:14px;
  --container:1200px;
}

/*html{scroll-behavior:smooth}*/
*{box-sizing:border-box}
body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.35s ease;
}
body.page-loaded {
  opacity: 1;
}

h1, h2, h3 {
  font-family: 'Inter', sans-serif;
  margin: 0 0 .5rem;
  color: var(--text);
  font-weight: 800;
}
h1{font-size:clamp(2.2rem,3.2vw+1rem,3.2rem);line-height:1.12;letter-spacing:0}
h2{font-size:clamp(1.7rem,1.2vw+1rem,2.1rem)}
h3{font-size:1.1rem}
p{margin:.35rem 0 1rem}
a{color:var(--blue);text-decoration:none}
img{max-width:100%;display:block}
.container{max-width:var(--container);margin:0 auto;padding:0 24px}
.muted{color:var(--muted)}
:target { scroll-margin-top: 90px; }

/* HEADER */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  overflow: visible;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    height 0.35s cubic-bezier(0.25, 1, 0.5, 1.2);
}
header.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  z-index: 0;
  transition: background 0.35s ease;
}
header.site-header.scrolled {
  height: 70px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}
header.site-header.scrolled::before {
  background: rgba(255, 255, 255, 0.75);
}

/* LOGO */
.brand {
  display: flex;
  align-items: center;
  margin-left: -42px;
  position: relative;
  z-index: 6;
}
.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  color: #1f2937;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.65s cubic-bezier(0.25, 1, 0.5, 1.2) 0.05s,
    opacity 0.65s ease 0.05s;
}
.brand-wordmark small {
  color: var(--blue);
  font-size: .82em;
  font-weight: 800;
}
header.site-header.scrolled .brand-wordmark {
  transform: scale(0.9);
  opacity: 0.88;
}
.logo {
  height: 50px;
  width: auto;
  max-height: 50px;
  cursor: pointer;
  object-fit: contain;
  display: flex;
  align-items: center;
  transform-origin: center center;
  transform: translateY(-3px);
  opacity: 1;
  transition:
    transform 0.65s cubic-bezier(0.25, 1, 0.5, 1.2) 0.05s,
    opacity 0.65s ease 0.05s,
    margin 0.35s ease;
}
header.site-header.scrolled .logo {
  transform: scale(0.78) translateY(-2px);
  opacity: 0.85;
}

/* NAV */
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
  transition:
    transform 0.55s cubic-bezier(0.25, 1, 0.5, 1.2),
    padding 0.45s cubic-bezier(0.25, 1, 0.5, 1.2);
}
header.site-header.scrolled .nav {
  transform: none;
}
nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  top: 50%;
  translate: 0 -43%;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  margin: 0;
  padding: 0;
}
nav a {
  position: relative;
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--text);
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 6px 0 8px;
  line-height: 1.4;
  transition: color .25s ease;
}
nav a::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 115%;
  height: 1px;
  background: var(--blue);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center center;
  transition: transform .35s cubic-bezier(.25,1,.5,1);
  will-change: transform;
  backface-visibility: hidden;
  pointer-events: none;
}
nav a:hover::after,
nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}
nav a:hover,
nav a.active {
  color: var(--blue);
}

/* počas programového scrollu */
body.scrolling-home nav a,
body.scrolling-section nav a {
  pointer-events: none;
  transition: none !important;
  color: inherit !important;
}
body.scrolling-home nav a::after,
body.scrolling-section nav a::after {
  transform: translateX(-50%) scaleX(0) !important;
  transition: none !important;
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(58,155,220,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: var(--blue);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.mobile-menu-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus-visible {
  background: #fff;
  border-color: rgba(58,155,220,.4);
  outline: none;
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.mobile-menu {
  display: none;
}
body.mobile-menu-open {
  overflow: hidden;
}

/* CTA v headeri */
.cta-flat {
  background: rgba(58, 155, 220, .08);
  color: var(--blue);
  border: 1px solid rgba(58, 155, 220, .28);
  padding: 11px 22px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0;
  border-radius: 999px;
  box-shadow: none;
  transition: background .28s ease, color .28s ease, border-color .28s ease, box-shadow .28s ease, transform .28s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  vertical-align: middle;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.cta-flat:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: none;
  transform: translateY(-1px);
}

/* HERO */
.hero.hero-full {
  position: relative;
  z-index: 0;
  margin-top: 90px;
  height: calc(100vh - 90px);
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fbfd;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
  transform: translateY(0);
  backface-visibility: hidden;
  transform-style: preserve-3d;
}
.hero-webrefresh .hero-bg {
  background:
    linear-gradient(104deg, #fff 0%, #fff 57.5%, #f1f9fe 57.65%, #edf7fd 100%);
}
.hero.hero-full::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,0) 34%, rgba(255,255,255,.22) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-content-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.hero-content-slide.active,
.hero-content-slide.is-leaving {
  opacity: 1;
}
.hero-webrefresh .hero-text {
  max-width: min(1360px, 82vw);
}
.hero-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: var(--text);
}
.hero-text {
  position: absolute;
  top: 32.5%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  align-items: center;
  column-gap: clamp(48px, 5.2vw, 90px);
  max-width: min(1360px, 82vw);
  width: min(1360px, 82vw);
  text-align: left;
  z-index: 3;
}
.hero-headline {
  font-family: "Inter Tight", sans-serif;
  font-weight: 900;
  font-size: clamp(4.02rem, 5.28vw, 6.6rem);
  line-height: 1.07;
  letter-spacing: -.012em;
  margin: 0;
  color: rgba(0, 0, 0, .76);
  text-transform: none;
  text-align: left;
  white-space: normal;
  position: static;
  width: auto;
  max-width: 940px;
  text-shadow: none;
  filter: none;
  transform: none;
  margin-left: clamp(24px, 2.2vw, 40px);
}
.hero-headline-mobile {
  display: none;
}
.hero-support {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0;
  text-align: left;
  transform: translate(-4px, 34px);
}
.hero-support p {
  margin: 0;
}
.hero-support__lead {
  font-family: 'Inter', sans-serif;
  color: rgba(0, 0, 0, .72);
  font-size: clamp(1.18rem, 1.28vw, 1.34rem);
  line-height: 1.42;
  font-weight: 400;
  text-align: left;
}
.hero-support__list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.hero-support__list li {
  position: relative;
  padding-left: 24px;
  font-family: 'Inter', sans-serif;
  color: rgba(0, 0, 0, .68);
  font-size: clamp(1.18rem, 1.28vw, 1.34rem);
  line-height: 1.45;
  font-weight: 600;
}
.hero-support__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.hero-buttons {
  position: absolute;
  top: auto;
  bottom: clamp(124px, 14.4vh, 152px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: min(1240px, 78vw);
  max-width: min(1360px, 82vw);
  z-index: 3;
}
.hero-buttons .btn-hero {
  flex: 0 1 250px;
  min-width: 220px;
  padding-inline: 22px;
  white-space: nowrap;
}
@media (max-width:700px) {
  .hero-buttons {
    flex-direction: column;
    gap: 16px;
    top: 40px;
  }
}
.btn-hero {
  flex: 0 1 38%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .28s ease, color .28s ease, border-color .28s ease, transform .28s ease;
  height: 56px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 30px;
}
.btn-light {
  background: #fff;
  color: #4b5563;
  border-color: rgba(58, 155, 220, .34);
  font-weight: 650;
  box-shadow: 0 8px 20px rgba(31, 41, 55, .045);
}
.btn-light:hover {
  background: #fff;
  color: var(--blue-600);
  border-color: rgba(58, 155, 220, .5);
  transform: translateY(-1px);
}
.btn-blue {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-blue:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  transform: translateY(-1px);
}

/* Bez deliacej línie medzi HERO a INTRO */
.hero + .intro-text::before {
  display: none;
}

/* HERO animácie (po načítaní a pri zmene slidu) */
.hero-text,
.hero-buttons {
  opacity: 0;
  pointer-events: none;
}
.hero-headline,
.hero-support__lead,
.hero-support__list li {
  opacity: 0;
}
body.hero-loaded .hero-content-slide.active .hero-text,
body.hero-loaded .hero-buttons {
  pointer-events: auto;
}
body.hero-loaded .hero-content-slide.active .hero-text {
  opacity: 1;
}
body.hero-loaded .hero-content-slide.is-leaving .hero-text {
  opacity: 1;
}
body.hero-loaded .hero-content-slide.active .hero-headline {
  animation: heroSlideTextIn 1.6s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
body.hero-loaded .hero-content-slide.is-leaving .hero-headline {
  animation: heroSlideTextOut .7s cubic-bezier(0.55, 0, 0.45, 1) forwards;
}
body.hero-loaded .hero-content-slide.active .hero-support__lead {
  animation: heroSupportIn .68s cubic-bezier(0.22, 1, 0.36, 1) .16s forwards;
}
body.hero-loaded .hero-content-slide.active .hero-support__list li {
  animation: heroSupportIn .62s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
body.hero-loaded .hero-content-slide.active .hero-support__list li:nth-child(1) { animation-delay: .25s; }
body.hero-loaded .hero-content-slide.active .hero-support__list li:nth-child(2) { animation-delay: .34s; }
body.hero-loaded .hero-content-slide.active .hero-support__list li:nth-child(3) { animation-delay: .43s; }
body.hero-loaded .hero-content-slide.is-leaving .hero-support__lead,
body.hero-loaded .hero-content-slide.is-leaving .hero-support__list li {
  animation: heroSupportOut .5s cubic-bezier(0.55, 0, 0.45, 1) forwards;
}
@keyframes heroSlideTextIn {
  0% {
    opacity: 0;
    transform: translateX(-110vw);
  }
  60% {
    opacity: 1;
    transform: translateX(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes heroSlideTextOut {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(58vw);
  }
}
@keyframes heroSupportIn {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes heroSupportOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(16px);
  }
}
@keyframes heroBtnsIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(110px);
  }
  60% {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes heroBtnsInMobile {
  0% {
    opacity: 0;
    transform: translateY(110px);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
body.hero-loaded .hero-buttons {
  animation: heroBtnsIn 1.6s cubic-bezier(0.25, 1, 0.5, 1) .45s forwards;
}
.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(48px, 5.8vh, 68px);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transform: translateX(-50%);
}
.hero-slider-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(31, 41, 55, .22);
  cursor: pointer;
  transition: width .25s ease, background .25s ease, opacity .25s ease;
}
.hero-slider-dot.active,
.hero-slider-dot[aria-current="true"] {
  width: 24px;
  background: var(--blue);
}
.hero-slider-dot:focus-visible {
  outline: 2px solid rgba(58,155,220,.5);
  outline-offset: 4px;
}

/* INTRO */
.intro-text {
  background: #fff;
  padding: 80px 24px 80px;
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
  text-align: left;
}

.intro-text.in {
  opacity: 1;
  transform: translateY(0);
}
.intro-text h2 {
  font-weight: 800;
  color: var(--blue);
  font-size: clamp(2.1rem, 2.7vw, 3rem);
  margin-bottom: 36px;
  line-height: 1.2;
}
.intro-text p {
  font-weight: 400;
  color: var(--muted);
  font-size: 1.22rem;
  max-width: 840px;
  margin: 0 auto 18px;
  line-height: 1.58;
}
.intro-text .container { max-width: 1200px; }
.intro-text .cols {
  column-count: 2;
  column-gap: 60px;
}
@media(max-width: 900px) {
  .intro-text h2 {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .intro-text .cols { column-count: 1; }
}

/* SEKCIE + DELIACA LÍNIA */
section {
  padding: 80px 0;
  border-top: none;
  position: relative;
}
section::before {
  content: "";
  z-index: 0;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, var(--container));
  max-width: 1200px;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.08) 20%,
    rgba(0,0,0,0.12) 50%,
    rgba(0,0,0,0.08) 80%,
    rgba(0,0,0,0) 100%
  );
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}
section > * {
  position: relative;
  z-index: 1;
}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:28px;gap:16px}
.section-head p{color:var(--muted);margin:0}

/* PORTFÓLIO – sekcia + nadpis ako Proces / Cenník / Kontakt */
#portfolio.portfolio-section {
  background: #fff;
  padding: 70px 0;
}

#portfolio.portfolio-section .section-head {
  display: block;
  text-align: center;
  margin-bottom: 70px;
}

#portfolio.portfolio-section .section-head h2 {
  text-transform: uppercase;
  font-weight: 300;
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
  color: var(--muted);
  margin-bottom: 14px;
}

#portfolio.portfolio-section .section-head h2 span {
  font-weight: 700;
  color: var(--muted);
  text-transform: none;
}

#portfolio.portfolio-section .section-head p {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  height: 100%;
  padding: 34px 34px 32px;
  overflow: hidden;
  border: 1px solid rgba(58,155,220,.14);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(58,155,220,.028), transparent 42%),
    #fff;
  box-shadow: 0 6px 18px rgba(24,48,82,.025);
  transition:
    transform .52s cubic-bezier(.25,1,.5,1),
    border-color .28s ease,
    box-shadow .28s ease;
}
.service-card::before {
  content: none;
}
.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(58,155,220,0.35);
  box-shadow: 0 16px 38px rgba(24,48,82,.07);
}
.service-card h3 {
  display: flex;
  align-items: flex-start;
  max-width: 330px;
  min-height: 3.45rem;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: clamp(1.35rem, 1.65vw, 1.8rem);
  line-height: 1.17;
  letter-spacing: 0;
}
.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.78;
}

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

@media (max-width: 640px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .service-card {
    min-height: 0;
    padding: 30px 24px;
    border-radius: 20px;
  }
  .service-card h3 {
    min-height: 0;
    margin-bottom: 16px;
    font-size: 1.42rem;
  }
  .service-card p {
    font-size: .96rem;
  }
}

@media (max-width: 1280px) {
  .brand {
    margin-left: 0;
  }
}

@media (min-width: 861px) and (max-width: 1240px) {
  .hero-webrefresh .hero-text {
    max-width: min(980px, calc(100% - 96px));
  }
  .hero-text {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    column-gap: clamp(34px, 5vw, 62px);
    width: min(980px, calc(100% - 96px));
    top: 32.5%;
  }
  .hero-headline {
    font-size: clamp(3.52rem, 5.23vw, 5.23rem);
    line-height: 1.07;
    margin-left: clamp(14px, 1.8vw, 24px);
  }
  .hero-support {
    width: 100%;
    max-width: 460px;
    margin: 0;
    transform: translate(0, 26px);
  }
  .hero-buttons {
    top: auto;
    bottom: clamp(114px, 13.4vh, 140px);
    width: min(980px, calc(100% - 96px));
    max-width: min(980px, calc(100% - 96px));
  }
  .hero-slider-dots {
    bottom: clamp(46px, 5.8vh, 64px);
  }
  .hero-buttons .btn-hero {
    flex-basis: 250px;
    min-width: 230px;
    padding-inline: 18px;
  }
}

@media (max-width: 860px) {
  .nav {
    padding: 0 18px;
    gap: 16px;
  }
  .brand {
    margin-left: 0;
  }
  .nav nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    flex: 0 0 44px;
    position: relative;
    z-index: 8;
  }
  .mobile-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 18px;
    z-index: 7;
    display: grid;
    width: min(320px, calc(100vw - 36px));
    padding: 12px;
    border: 1px solid rgba(58,155,220,.16);
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 24px 60px rgba(24,48,82,.12);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease, transform .25s cubic-bezier(.25,1,.5,1);
  }
  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
  }
  .mobile-menu a:hover,
  .mobile-menu a:focus-visible,
  .mobile-menu a.active {
    background: rgba(58,155,220,.08);
    color: var(--blue);
    outline: none;
  }
  .hero-webrefresh .hero-bg {
    transform: none !important;
    will-change: auto;
  }
  .cta-flat {
    padding: 9px 15px;
    font-size: 12px;
  }
  .brand-wordmark {
    font-size: 1.15rem;
  }
  .hero-text {
    left: 50%;
    right: auto;
    top: clamp(104px, 16vh, 132px);
    display: block;
    width: min(720px, calc(100% - 48px));
    transform: translateX(-50%);
  }
  .hero-webrefresh .hero-text {
    max-width: min(720px, calc(100% - 48px));
  }
  .hero-headline {
    font-size: clamp(3.8rem, 10.35vw, 5.34rem);
    line-height: 1.06;
    white-space: normal;
    left: auto;
    width: auto;
    max-width: 100%;
    transform: none;
    text-align: center;
    margin-left: 0;
  }
  .hero-headline-desktop {
    display: none;
  }
  .hero-headline-mobile {
    display: inline;
  }
  .hero-support {
    width: min(620px, 88%);
    max-width: none;
    margin: 28px auto 0;
    text-align: center;
    transform: none;
  }
  .hero-content-slide:nth-child(n+2) .hero-support {
    margin-top: 36px;
  }
  .hero-support__lead {
    text-align: center;
  }
  .hero-support__list {
    justify-items: start;
    margin-top: 22px;
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
  .hero-support__list li {
    width: fit-content;
    text-align: left;
  }
  .hero-buttons {
    top: auto;
    bottom: 54px;
    left: 50%;
    width: min(720px, calc(100% - 48px));
    max-width: min(720px, calc(100% - 48px));
    padding: 0;
  }
  .hero-slider-dots {
    bottom: 24px;
  }
  .hero.hero-full {
    min-height: 720px;
  }
  .btn-hero {
    width: min(100%, 340px);
    flex-basis: auto;
  }
}

@media (max-width: 560px) {
  .nav {
    padding: 0 18px;
    gap: 12px;
  }
  .nav .cta-flat {
    display: none;
  }
}

@media (max-width: 520px) {
  .hero.hero-full {
    min-height: 610px;
  }
  .hero-webrefresh .hero-bg {
    background:
      linear-gradient(170deg, #fff 0%, #fff 70%, #f0f8fe 70.2%, #edf7fd 100%);
  }
  .hero-text {
    top: clamp(58px, 9.2vh, 76px);
    width: calc(100% - 40px);
  }
  .hero-webrefresh .hero-text {
    max-width: calc(100% - 40px);
  }
  .hero-headline {
    font-size: clamp(3.27rem, 14.7vw, 4.35rem);
    line-height: 1.06;
    margin-left: 0;
  }
  .hero-support {
    display: block;
    width: min(340px, 100%);
    margin-top: 22px;
  }
  .hero-content-slide:nth-child(n+2) .hero-support {
    margin-top: 26px;
  }
  .hero-support__lead {
    font-size: clamp(1.12rem, 4.2vw, 1.45rem);
    line-height: 1.42;
    text-align: center;
  }
  .hero-support__list {
    gap: 10px;
    margin-top: 18px;
  }
  .hero-support__list li {
    font-size: .98rem;
  }
  .hero-buttons {
    top: auto;
    bottom: 72px;
    left: 0;
    width: 100%;
    max-width: none;
    padding: 0 20px;
    transform: none;
  }
  .hero-slider-dots {
    bottom: 46px;
  }
  body.hero-loaded .hero-buttons {
    animation-name: heroBtnsInMobile;
  }
  .hero-buttons .btn-hero {
    min-width: 0;
    width: min(100%, 340px);
    flex-basis: auto;
  }
  .phone-mock {
    left: 16%;
    width: 30%;
  }
  .desktop-mock {
    right: 12%;
    width: 54%;
  }
}

/* CENNÍK */
@media (max-width: 360px) {
  .hero.hero-full {
    height: calc(100svh - 90px);
    min-height: 560px;
  }
  .hero-text {
    top: 54px;
  }
  .hero-headline {
    font-size: clamp(2.8rem, 13.8vw, 3.35rem);
    line-height: 1.04;
  }
  .hero-support {
    margin-top: 16px;
  }
  .hero-content-slide:nth-child(n+2) .hero-support {
    margin-top: 20px;
  }
  .hero-support__lead {
    font-size: 1rem;
    line-height: 1.38;
  }
  .hero-support__list {
    gap: 7px;
    margin-top: 13px;
  }
  .hero-support__list li {
    font-size: .9rem;
    line-height: 1.35;
  }
  .hero-buttons {
    bottom: 66px;
    gap: 10px;
    padding: 0 18px;
  }
  .hero-buttons .btn-hero {
    height: 52px;
    width: min(100%, 320px);
  }
  .hero-slider-dots {
    bottom: 40px;
  }
}

.pricing-modern {
  background: #fff;
  text-align: center;
  padding: 70px 0;                 /* menej vertikálneho priestoru */
}

.pricing-modern .section-head {
  display: block;
  text-align: center;
  margin-bottom: 60px;              /* menšia medzera pod nadpisom */
}

.pricing-modern .section-head h2 {
  text-transform: uppercase;
  font-weight: 300;
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
  color: var(--muted);
  margin-bottom: 14px;
}
.pricing-modern .section-head h2 span {
  font-weight: 700;
  color: var(--muted);
}
.pricing-modern .section-head p {
  color: var(--muted);
  font-size: 1.25rem;
  max-width: 800px;
  line-height: 1.6;
  margin: 0 auto 18px;   /* zachováme spodnú medzeru pre popis */
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;                        /* o kúsok menší gap */
  max-width: 1100px;
  margin: 0 auto 36px;              /* kratšia spodná medzera */
  padding: 0 24px;
  align-items: stretch;             /* všetky karty rovnako vysoké v riadku */
  overflow: visible;                /* nech sa hover-scale „nezreže“ */
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  padding: 20px 30px 35px;          /* tvoje nové hodnoty – OK */
  text-align: left;
  text-decoration: none;
  color: var(--text);
  will-change: transform;           /* plynulejší hover */
  transition:
    transform .52s cubic-bezier(.25,1,.5,1),
    border-color .28s ease,
    box-shadow .28s ease;
}

.price-card:hover {
  transform: translateY(-2px);
  border-color: rgba(58,155,220,0.35);
  box-shadow: 0 16px 38px rgba(24,48,82,.07);
}
.price-card .price-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}
.price-card .price-header {
  min-height: 116px;
}
.price-card .price-header p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.price-tag {
  font-size: 2rem;
  font-weight: 800;
  color: #3a9bdc;
  margin-bottom: 4px;
  letter-spacing: 0;
}
.price-tax-note {
  margin: 0 0 14px;
  color: rgba(71, 85, 105, .54);
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.2;
}
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.price-card ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.98rem;
}
.price-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #3a9bdc;
  font-weight: 700;
}
.btn-card {
  display: inline-block;
  border: 1px solid rgba(58,155,220,.42);
  color: #3a9bdc;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0 24px;
  transition: background .28s ease, color .28s ease, border-color .28s ease, transform .28s ease;
  letter-spacing: 0;
  border-radius: 999px;
  background: rgba(58,155,220,.06);
}
.btn-card { line-height: 1; height: 44px; display: inline-flex; align-items: center; }
.btn-card:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-1px);
}
.btn-wrap { text-align: center; margin-top: auto; }
.price-card.featured { border: 1px solid var(--line); background: #fff; box-shadow: none; }
.price-card.featured:hover {
  border-color: rgba(58,155,220,0.35);
  box-shadow: 0 16px 38px rgba(24,48,82,.07);
}

.pricing-microcopy {
  max-width: 980px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.6;
  text-align: center;
}
.pricing-microcopy__lead {
  margin: 0 auto 8px;
}
.pricing-microcopy__note {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-style: italic;
}
@media (max-width: 720px) {
  .pricing-microcopy {
    max-width: 100%;
    margin-bottom: 28px;
    font-size: .94rem;
  }
  .pricing-microcopy__note {
    align-items: center;
  }
}
.pricing-more-control {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  margin: 4px 0 0;
}
.pricing-more-hint {
  position: absolute;
  left: calc(50% + 34px);
  top: 50%;
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 3px;
  color: rgba(58,155,220,.78);
  transform: translateY(-50%);
  cursor: pointer;
  pointer-events: auto;
}
.pricing-more-hint span {
  font-family: "Caveat", cursive;
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1;
  color: #6f8496;
  white-space: nowrap;
}
.pricing-more-hint svg {
  width: 86px;
  height: 38px;
  overflow: visible;
  transform: translateY(-5px);
}
.pricing-more-hint path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pricing-more-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(58,155,220,.26);
  background: rgba(255,255,255,.92);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(31,41,55,.055);
  transition: background .28s ease, border-color .28s ease, transform .28s ease, color .28s ease;
}
.pricing-more-toggle:hover {
  background: #fff;
  border-color: rgba(58,155,220,.48);
  transform: translateY(-1px);
}
.pricing-more-toggle span {
  width: 13px;
  height: 13px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .32s cubic-bezier(.25,1,.5,1);
}
.pricing-more-toggle.is-open span {
  transform: translateY(3px) rotate(225deg);
}
.pricing-extra {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-8px);
  transition:
    max-height .55s cubic-bezier(.25,1,.5,1),
    opacity .32s ease,
    transform .42s cubic-bezier(.25,1,.5,1);
}
.pricing-extra.is-open {
  max-height: 860px;
  opacity: 1;
  transform: translateY(0);
}
.pricing-extra-inner {
  max-width: 1180px;
  margin: 26px auto 0;
  padding: 0 24px;
}
.pricing-extra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.pricing-extra-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  padding: 24px 28px;
  color: var(--text);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity .42s ease,
    transform .52s cubic-bezier(.25,1,.5,1),
    border-color .28s ease,
    box-shadow .28s ease;
}
.pricing-extra.is-open .pricing-extra-card {
  opacity: 1;
  transform: translateY(0);
}
.pricing-extra.is-open .pricing-extra-card:hover {
  transform: translateY(-2px);
  border-color: rgba(58,155,220,0.35);
  box-shadow: 0 16px 38px rgba(24,48,82,.07);
}
.pricing-extra-card--featured {
  border-color: rgba(58,155,220,.28);
  background: linear-gradient(180deg, rgba(58,155,220,.045), #fff 44%);
  padding-top: 30px;
}
.pricing-extra-card--premium {
  border-color: var(--line);
  background: #fff;
  padding-top: 30px;
}
.pricing-extra-badge {
  position: absolute;
  top: 0;
  left: 28px;
  transform: translateY(-50%);
  margin-bottom: 0;
  padding: 5px 12px;
  border: 1px solid #3a9bdc;
  border-radius: 999px;
  background: #3a9bdc;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.pricing-extra-card--premium .pricing-extra-badge {
  border-color: rgba(58,155,220,.36);
  background: #fff;
  color: #3a9bdc;
}
.pricing-extra-card .price-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.pricing-extra-card .price-header {
  min-height: 148px;
}
.pricing-extra-card .price-header p {
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.65;
  margin-bottom: 14px;
}
.pricing-extra-card .price-tag {
  font-size: 1.65rem;
  margin-bottom: 12px;
}
.pricing-extra-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pricing-extra-card li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5;
}
.pricing-extra-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #3a9bdc;
  font-weight: 800;
}
.pricing-extra-note {
  max-width: 780px;
  margin: 18px auto 0;
  padding: 13px 14px;
  border: 1px solid rgba(58,155,220,.14);
  background: rgba(58,155,220,.045);
  color: #7b8592;
  font-size: .88rem;
  line-height: 1.55;
  text-align: center;
}

@media (max-height: 820px) {
  .pricing-modern { padding: 70px 0; }
  .pricing-modern .section-head { margin-bottom: 60px; }
  .price-card { padding: 18px 24px 28px; }
  .price-card .price-header { min-height: 116px; }
}

@media (max-width: 980px) {
  .pricing-extra-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-extra.is-open {
    max-height: 1180px;
  }
}

@media (max-width: 560px) {
  .price-card .price-header {
    min-height: 0;
  }
  .pricing-extra-inner {
    padding: 0;
  }
  .pricing-more-control {
    min-height: 112px;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 6px;
  }
  .pricing-more-hint {
    position: static;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
    transform: none;
    text-align: center;
  }
  .pricing-more-hint span {
    font-size: 1.28rem;
  }
  .pricing-more-hint svg {
    display: none;
  }
  .pricing-extra.is-open {
    max-height: 1400px;
  }
  .pricing-extra-grid {
    grid-template-columns: 1fr;
  }
  .pricing-extra-card {
    padding: 22px 20px;
  }
  .pricing-extra-card .price-header {
    min-height: 0;
  }
}


/* FAQ */
.faq-section {
  background: #fff;
  padding: 70px 0;
}

.faq-section .section-head {
  display: block;
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}

.faq-section .section-head h2 {
  text-transform: uppercase;
  font-weight: 300;
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
  color: var(--muted);
  margin-bottom: 14px;
}

.faq-section .section-head h2 span {
  font-weight: 700;
  color: var(--muted);
}

.faq-section .section-head p {
  max-width: 800px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.6;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
  border: 1px solid rgba(58, 155, 220, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .92);
  cursor: pointer;
  transition: border-color .25s ease, background-color .25s ease, transform .25s ease;
}

.faq-item:hover,
.faq-item.is-open {
  border-color: rgba(58, 155, 220, .32);
  transform: translateY(-1px);
}

.faq-item h3 {
  margin: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 58px;
  padding: 14px 22px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
}

.faq-question:focus-visible {
  outline: 3px solid rgba(58, 155, 220, .25);
  outline-offset: -6px;
}

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(58, 155, 220, .28);
  border-radius: 999px;
  background: #fff;
}

.faq-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translate(-50%, -62%) rotate(45deg);
  transition: transform .22s ease;
}

.faq-item.is-open .faq-icon::before {
  transform: translate(-50%, -36%) rotate(225deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s cubic-bezier(.22, 1, .36, 1);
}

.faq-answer > div {
  overflow: hidden;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .faq-section {
    padding: 56px 0;
  }
  .faq-section .section-head {
    margin-bottom: 36px;
  }
  .faq-section .section-head p {
    font-size: 1.04rem;
  }
  .faq-question {
    min-height: 60px;
    padding: 14px 18px;
    gap: 14px;
  }
  .faq-answer p {
    padding: 0 18px 18px;
    font-size: 1rem;
    line-height: 1.65;
  }
  .faq-icon {
    width: 28px;
    height: 28px;
  }
}

/* Kontakt – unifikovaná sekcia ako portfólio/proces/cenník */
#kontakt.contact-section {
  background: #fff;
  padding: 50px 0;
}
#kontakt.contact-section .section-head {
  display: block;
  text-align: center;
  margin-bottom: 30px;
}

.contact .section-head h2 {
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-weight: 300; /* "Kontaktujte" tenšie */
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
  color: var(--muted);
  margin-bottom: 14px;
}

.contact .section-head h2 span {
  font-weight: 700; /* "nás" hrubšie */
  color: var(--muted);
}

.contact .section-head p {
  color: var(--muted);
  font-size: 1.25rem;   /* rovnaké ako v Cenníku */
  max-width: 800px;     /* šírka ako pri ostatných sekciách */
  margin: 0 auto;
  line-height: 1.6;
}

/* KONTAKT */
.contact .form {
  max-width:900px;
  margin:0 auto;
}
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.field {
  display:flex;
  flex-direction:column;
  margin-bottom:14px;
}
.field label {
  font-family: 'Inter', sans-serif;
  margin-bottom:6px;
}

/* Polia – text farbou stránky */
.field input,
.field textarea,
.field select {
  box-sizing: border-box;
  width: 100%;
  padding: 14px 14px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  color: var(--muted);          /* ← zadaný text = tvoja sivá */
}
/* Autofill / suggestions – nech je text tiež sivý */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill,
.field textarea:-webkit-autofill:hover,
.field textarea:-webkit-autofill:focus,
.field select:-webkit-autofill,
.field select:-webkit-autofill:hover,
.field select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--muted);
  caret-color: var(--muted);
  box-shadow: 0 0 0 30px #fff inset !important; /* zruší žlté/šedé pozadie */
  transition: background-color 9999s ease-out 0s;
}

/* Placeholder o tón bledší */
.field input::placeholder,
.field textarea::placeholder {
  color: #b6bec8;
}

/* kým je vybratá "prázdna" hodnota, text v selecte má byť bledý */
.field select:invalid {
  color: #b6bec8;
}

/* placeholder <option hidden disabled> neukazuj v rozbaľovacom menu */
.field select option[hidden] {
  display: none;
}

/* Fokus – modrý outline (1px) */
.field input:focus,
.field textarea:focus,
.field select:focus{
  outline: 1px solid var(--blue);
  box-shadow: 0 0 0 3px rgba(58,155,220,.15);
}

/* Hover – jemne modrá hrana */
.field input:hover,
.field textarea:hover,
.field select:hover { border-color: var(--blue); }

/* Textarea – výška */
.field textarea { min-height: 140px; resize: vertical; }

/* SELECT – vlastná šípka (safe SVG), posunutá od pravého okraja */
.field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background:
    #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239aa3af' stroke-width='2'/%3E%3C/svg%3E")
    no-repeat right 18px center / 12px 12px;
  padding-right: 36px;      /* miesto pre šípku */
}

/* Date picker vstup (custom JS) – ikonka + padding, rovnaká sivá */
/* Skry starú šípku v legacy IE/Edge (nevadí inde) */
.field select::-ms-expand { display: none; }

/* panely (polia) */
.contact .pane{ margin-top: 8px; border: 0; padding: 0; }
.contact .pane[hidden]{ display: none; }
.contact .pane.active{ display: block; }

/* drobné ladení */
.contact .form .submit-wrap{
  margin-top: 30px;
  margin-bottom: 30px;
}
.form-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.55;
  text-align: center;
}
/* Stavová hláška pri odoslaní formulára – moderný badge */
.form-status {
  margin-top: 16px;
  display: none;              /* ← defaultne vôbec nezaberá miesto */
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 0;
  background: transparent;
  border: 1px solid transparent;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 100%;
  text-align: left;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity .2s ease,
    transform .2s ease,
    background .2s ease,
    border-color .2s ease;
}

.form-status.form-status--show {
  display: flex;              /* ← zobrazí sa len keď pridáme --show */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}


.form-status::before {
  content: '';
  flex: 0 0 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

/* ERROR – jednotná červená */
.form-status--error {
  background: #fef2f4;
  border-color: #fecdd3;
  color: #be123c;
}
.form-status--error::before {
  content: '!';
  background: #fecdd3;
  color: #be123c;
}

/* SUCCESS */
.form-status--success {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}
.form-status--success::before {
  content: '✓';
  background: #bbf7d0;
  color: #166534;
}

/* Custom súhlas (checkbox) v štýle webu */
.field.agree .check{
  position: relative;
  display:flex;
  align-items:center;
  gap:20px;
  cursor:pointer;
  user-select:none;
}
.field.agree .check input{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
  left:0;
  top:0;
  margin:0;
}
.field.agree .check .box{
  flex: 0 0 20px;          /* fixná šírka vo flexe */
  width: 20px;
  height: 20px;
  min-width: 20px;         /* poistka, aby sa nezmenšoval */
  min-height: 20px;
  border-radius: 2px;      /* jemne zaoblené rohy – viac „checkbox look“ */
  border: 1px solid #cbd5e1;
  background: #fff;
  display: inline-block;
  position: relative;
  transition:
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}


.field.agree .check:hover .box{
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(58,155,220,.18);
}

.field.agree .check input:focus + .box{
  outline:2px solid var(--blue);
  outline-offset:2px;
}
.field.agree .check input:checked + .box{
  background:var(--blue);
  border-color:var(--blue);
}
.field.agree .check input:checked + .box::after{
  content:"";
  position:absolute;
  left:5px; /*top:1px;*/
  width:7px; height:12px;
  border:2px solid #fff;
  border-top:none; border-left:none;
  transform:rotate(45deg);
}
.field.agree .check .txt{ color:var(--muted); }

.field.agree .gdpr-link{
  border: none;
  background: none;
  padding: 0;
  margin-left: 4px;
  color: var(--blue);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.field.agree .gdpr-link:hover{
  color: var(--blue-600);
}


/* Kontakt – dvojstĺpcové riadky */
.contact .form .grid.two{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:14px;
}
@media (max-width:700px){
  .contact .form .grid.two{ grid-template-columns:1fr; }
}

/* Centrovanie submitu a status pod tlačidlom */
.contact .form .submit-wrap{
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Kontakt – submit tlačidlo nech sa nespráva ako hero-flex */
.contact .form .submit-wrap .btn-hero {
  flex: 0 0 auto;   /* vypne 38% šírku z .btn-hero */
  width: auto;
}

/* Modifier: rovnaká veľkosť/animácia ako .btn-hero, ale outline štýl */
.btn-hero.btn-hero--outline {
  background: rgba(58,155,220,.06);
  color: var(--blue);
  font-family: 'Inter', sans-serif;
  border: 1px solid rgba(58,155,220,.42);
  height: 56px;
  padding: 0 34px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: background .28s ease, color .28s ease, border-color .28s ease, transform .28s ease;
}

.btn-hero.btn-hero--outline:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  transform: translateY(-1px);
}
/* nech je pri hovere ruka aj na button verzii hero tlačidla */
.btn-hero,
.btn-hero.btn-hero--outline,
button.btn-hero {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}


/* FOOTER */
footer{
  padding:28px 0;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:.95rem;
  background:#fff;
}

.foot{
  display:grid;
  grid-template-columns:minmax(520px, 1fr) minmax(420px, 720px);
  align-items:start;
  gap:22px 56px;
}

.foot-block{
  min-width: 0;
}

.foot-sub{
  margin-top:4px;
  font-size:.9rem;
  color:#9aa3af;
  white-space:nowrap;
}

.foot-nav{
  justify-self:end;
}

.foot-links{
  display:grid;
  grid-template-columns:minmax(0, 1fr) auto;
  align-items:center;
  gap:10px 34px;
  font-size:.9rem;
}

.foot-links__row{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px 18px;
}

.foot-links__row--legal{
  grid-column:1;
  font-size:.86rem;
  color:#9aa3af;
}

.foot-links a,
.foot-link-as-btn{
  color:var(--muted);
  text-decoration:none;
  cursor:pointer;
  border:none;
  background:none;
  padding:0;
  font:inherit;
}

.foot-links a:hover,
.foot-link-as-btn:hover{
  color:var(--blue);
  text-decoration:underline;
}

.foot-social{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  grid-column:2;
  grid-row:1 / span 2;
  align-self:center;
}

.foot-social a{
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--blue);
  text-decoration:none;
  transition:
    background .2s ease,
    color .2s ease,
    border-color .2s ease,
    transform .15s ease;
}

.foot-social a svg{
  width:20px;
  height:20px;
}

.foot-social a:hover{
  background:var(--blue);
  color:#fff;
  border-color:var(--blue);
  transform:translateY(-1px);
}

@media (max-width: 700px){
  .field.agree .check{
    align-items:flex-start;
    gap:10px;
    text-align:left;
  }
  .field.agree .check .box{
    flex:0 0 18px;
    width:18px;
    height:18px;
    min-width:18px;
    min-height:18px;
    margin-top:2px;
  }
  .field.agree .check input:checked + .box::after{
    left:4px;
    width:7px;
    height:11px;
  }
  .field.agree .check .txt{
    font-size:.86rem;
    line-height:1.5;
    text-align:left;
  }
  .field.agree .gdpr-link{
    display:inline;
    margin-left:2px;
    font-size:inherit;
    line-height:inherit;
    vertical-align:baseline;
    white-space:normal;
  }
  .foot{
    grid-template-columns:1fr;
    justify-items:center;
    align-items:center;
    gap:18px;
    text-align:center;
  }
  .foot-block{
    width:100%;
    min-width:0;
  }
  .foot-sub{
    max-width:320px;
    margin-left:auto;
    margin-right:auto;
    line-height:1.45;
    white-space:normal;
  }
  .foot-links{
    grid-template-columns:1fr;
    justify-items:center;
    gap:10px;
    font-size:.84rem;
    line-height:1.35;
    max-width:320px;
    margin:0 auto;
  }
  .foot-nav{
    justify-self:center;
  }
  .foot-links__row{
    justify-content:center;
    gap:7px 12px;
  }
  .foot-links__row--legal{
    grid-column:auto;
    font-size:.8rem;
  }
  .foot-social{
    grid-column:auto;
    grid-row:auto;
    justify-content:center;
  }
}

/* Floating tlačidlo "hore" vpravo dole */
.to-top{
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.96);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* bez tieňa */
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity .25s ease,
    transform .25s ease,
    visibility .25s ease,
    background .2s ease,
    color .2s ease,
    border-color .2s ease;
  z-index: 9999;
}


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

.to-top:hover{
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.to-top__icon{
  width: 18px;
  height: 18px;
  display: block;
}

.to-top__icon path{
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* menší odstup na mobiloch, aby sa nebilo s UI */
@media (max-width: 560px){
  .to-top{
    right: 16px;
    bottom: 16px;
  }
}


/* REVEAL animácie */
.reveal{
  opacity:0;
  transform:translateY(25px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}
/* COOKIE BAR – karta vpravo dole */
.cookie-bar{
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: 420px;
  width: min(420px, calc(100% - 32px));
  z-index: 99999;
  display: none;
}
.cookie-bar.show{ display:block; }

.cookie-card{
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 18px 45px rgba(15,23,42,.25);
  padding:18px 18px 14px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.cookie-card__body h3{
  margin:0 0 6px;
  font-size:1rem;
  font-weight:700;
  color:var(--text);
}
.cookie-card__body p{
  margin:0;
  font-size:.9rem;
  color:var(--muted);
}
.cookie-card__body a,
.cookie-modal__intro a{
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-card__actions{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

/* Tlačidlá v cookie bare / modale */
.cookie-btn{
  -webkit-appearance:none;
  appearance:none;
  border-radius:0;
  border:1px solid transparent;
  background:transparent;
  padding:0 16px;
  height:40px;
  font-family:'Inter',sans-serif;
  font-size:.9rem;
  font-weight:500;
  letter-spacing: 0;
  cursor:pointer;
  white-space:nowrap;
  transition:
    background .18s ease,
    color .18s ease,
    border-color .18s ease,
    transform .12s ease;
}
.cookie-btn:active{
  transform:translateY(1px);
}

.cookie-btn--primary{
  background:var(--blue);
  border-color:var(--blue);
  color:#fff;
}
.cookie-btn--primary:hover{
  background:var(--blue-600);
  border-color:var(--blue-600);
}

.cookie-btn--outline{
  border-color:var(--blue);
  color:var(--blue);
  background:#fff;
}
.cookie-btn--outline:hover{
  background:var(--blue);
  color:#fff;
}

.cookie-btn--ghost{
  color:var(--muted);
  border-color:transparent;
}
.cookie-btn--ghost:hover{
  background:var(--paper);
}

/* menšie odsadenie na mobiloch */
@media (max-width:560px){
  .cookie-bar{
    right:16px;
    bottom:16px;
    width:calc(100% - 32px);
  }
  .cookie-card__actions{
    justify-content:flex-start;
  }
}

/* COOKIE MODAL */
.cookie-modal{
  position:fixed;
  inset:0;
  z-index:99998;
  display:none;
  align-items:center;
  justify-content:center;
}
.cookie-modal.is-open{
  display:flex;
}

.cookie-modal__overlay{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.6);
  backdrop-filter:blur(4px);
}

.cookie-modal__dialog{
  position:relative;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:0 22px 60px rgba(15,23,42,.35);
  max-width:720px;
  width:min(720px, calc(100% - 40px));
  max-height:min(90vh, 640px);
  padding:24px 26px 18px;
  display:flex;
  flex-direction:column;
  gap:18px;
  overflow:auto;
  z-index:1;
}

.cookie-modal__close{
  position:absolute;
  top:14px;
  right:18px;
  border:none;
  background:transparent;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  color:#9aa3af;
}
.cookie-modal__close:hover{
  color:var(--text);
}

.cookie-modal__content h2{
  margin:0 0 6px;
  font-size:1.25rem;
  color:var(--text);
}
.cookie-modal__intro{
  margin:0 0 16px;
  font-size:.95rem;
  color:var(--muted);
}

/* skupiny */
.cookie-modal__group{
  margin-top:6px;
}

/* accordion header */
.cookie-accordion{
  width:100%;
  border:none;
  background:transparent;
  padding:12px 0;
  padding-right: 30px;          /* miesto pre chevron vpravo */
  margin:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:1rem;
  font-weight:600;
  color:var(--text);
  cursor:pointer;
  border-top:1px solid var(--line);
  position: relative;           /* kvôli ::after */
}

/* malý chevron vpravo v hlavičke tabu */
.cookie-accordion::after{
  content:"";
  position:absolute;
  right:4px;
  top:50%;
  width:12px;
  height:12px;
  margin-top:-6px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239aa3af' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat center / 12px 12px;
  transform: rotate(0deg);                /* default = smerom nadol (zatvorené) */
  transition: transform .18s ease;
}

/* otvorený tab – šípka hore */
.cookie-accordion[aria-expanded="true"]::after{
  transform: rotate(180deg);
}

.cookie-tag{
  font-size:.8rem;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing: 0;
  color:var(--muted);
}

/* panel */
.cookie-panel{
  padding:0 0 12px;
  font-size:.9rem;
  color:var(--muted);
  display:none;
}
.cookie-panel.open{
  display:block;
}

.cookie-panel__choice{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:10px;
  color:var(--text);
  font-weight:600;
}

/* switch pre funkčné cookies */
.cookie-switch{
  position:relative;
  width:44px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
}
.cookie-switch input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.cookie-switch__track{
  position:relative;
  width:44px;
  height:24px;
  border-radius:999px;
  background:#e5e7eb;
  transition:background .18s ease;
}
.cookie-switch__track::before{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:18px;
  height:18px;
  border-radius:999px;
  background:#fff;
  box-shadow:0 2px 6px rgba(15,23,42,.25);
  transition:transform .18s ease;
}
.cookie-switch input:checked + .cookie-switch__track{
  background:var(--blue);
}
.cookie-switch input:checked + .cookie-switch__track::before{
  transform:translateX(18px);
}

/* footer tlačidlá v modale */
.cookie-modal__footer{
  margin-top:10px;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
@media (max-width:560px){
  .cookie-modal__dialog{
    width:calc(100% - 24px);
    padding:18px 16px 14px;
  }
  .cookie-modal__footer{
    justify-content:flex-start;
  }
}

/* CTA wiggle */
@keyframes ctaWiggle {
  0%, 100%   { transform: translateZ(0) rotate(0deg); }
  15%        { transform: translateZ(0) rotate(-2.5deg); }
  30%        { transform: translateZ(0) rotate(2.5deg); }
  45%        { transform: translateZ(0) rotate(-1.5deg); }
  60%        { transform: translateZ(0) rotate(1.5deg); }
  75%        { transform: translateZ(0) rotate(0deg); }
}
.cta-flat.wiggle {
  animation: ctaWiggle 0.9s ease-in-out;
  transform-origin: center center;
  will-change: transform;
}
/* Kliknutie – krátke zvýraznenie */
.cta-flat:active {
  background: rgba(58,155,220,.18);
  border-color: var(--blue);
  color: var(--blue);
  transform: translateY(0);
}

/* Keď som v sekcii Kontakt – tlačidlo zvýraznené a neklikateľné */
body.in-contact .cta-flat {
  background: rgba(58,155,220,.12);
  border-color: rgba(58,155,220,.28);
  color: var(--blue);
  box-shadow: none;
  cursor: default;
  pointer-events: none;
  animation: none !important;
  transform: none !important;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* Počas scrollovania na kontakt môžeš ponechať pôvodné správanie alebo toto, ak chceš jemný highlight: */
body.scrolling-contact .cta-flat {
  background: rgba(58,155,220,.14);
  border-color: rgba(58,155,220,.34);
  color: var(--blue);
}


/* PROCESS */
.process {
  background: #fff;
  text-align: center;
  padding: 70px 0;
}

.process .section-head {
  display: block;
  text-align: center;
  margin-bottom: 60px;
}
.process .section-head h2 {
  text-transform: uppercase;
  font-weight: 300;
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
  color: var(--muted);
  margin-bottom: 14px;
}
.process .section-head h2 span {
  font-weight: 700;
  color: var(--muted);
}
.process .section-head p {
  color: var(--muted);
  font-size: 1.3rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
}
.process-grid .step {
  position: relative;
  text-align: center;
  padding: 60px 20px 20px;
  background: transparent;
  transition: transform .45s cubic-bezier(.25,1,.5,1), color .4s ease;
  cursor: default;
}
.process-grid .step:hover {
  transform: translateY(-4px) scale(1.02);
}
.process-grid .num {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 5.5rem;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.05);
  z-index: 0;
  transition: color 0.4s ease;
}
.process-grid .step:hover .num {
  color: rgba(58,155,220,0.18);
}
.process-grid h3 {
  position: relative;
  z-index: 2;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color 0.3s ease;
}
.process-grid .step:hover h3 {
  color: var(--blue);
}
.process-grid p {
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 260px;
  margin: 0 auto;
}
@media (max-width: 1100px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }
}
@media (max-width: 650px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .process-grid .step.is-scroll-active .num {
    color: rgba(58,155,220,0.18);
  }
  .process-grid .step.is-scroll-active h3 {
    color: var(--blue);
  }
}

/* Inline chyba vo formulári */
.field.error input,
.field.error textarea,
.field.error select {
  border-color: #e11d48;   /* červený okraj */
  outline: none;
}
.field .error-msg {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #e11d48;
}

/* GDPR checkbox – zvýraznenie pri chybe + centrovaný text */
.field.agree.error .check .box {
  border-color: #e11d48;
  box-shadow: 0 0 0 1px rgba(225,29,72,.35);
}

.field.agree .error-msg {
  text-align: center;
  margin-top: 8px;
}

/* Modal pri prepnutí formulára (potvrdenie vymazania) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.35);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;  /* už nie stred, ale hore */
  justify-content: center;
  padding-top: 7vh;        /* odsadenie od vrchu */
  z-index: 9999;
}

.modal-box {
  position: relative;
  background: #fff;
  border-radius: 0;
  padding: 22px 24px 14px;
  max-width: 420px;
  width: calc(100% - 40px);
  box-shadow: 0 18px 45px rgba(15,23,42,0.18);
  text-align: left;
  border: 1px solid var(--line);
}
.modal-box h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  text-align: center;
}

/* X v pravom hornom rohu modálneho okna */
.modal-box__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #9aa3af;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition:
    color .15s ease,
    background .15s ease,
    transform .12s ease;
}

.modal-box__close:hover {
  color: var(--text);
  background: #f3f4f9;
  transform: scale(1.02);
}

/* Červený titul pre varovanie – Správa nebola odoslaná */
.modal-box--warn h3 {
  color: #e11d48;
}

/* Success modal – biele pozadie, zelený titul, text na stred */
.modal-box--success {
  background: #fff;
  border-color: #16a34a;
  text-align: center;
}

.modal-box--success h3 {
  color: #16a34a;
}

.modal-box--success p {
  text-align: center;
}

.modal-box p {
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* základ všetkých modálnych tlačidiel */
.modal-actions .btn-modal {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;      /* žiadne biele pozadie */
  color: var(--text);
}

/* Cancel v modale – jemný outline + mierny hover */
.btn-modal-cancel {
  background: #fff;
  border-color: #d0d7e5;      /* o trochu tmavší outline */
  color: var(--muted);
}

.btn-modal-cancel:hover {
  background: #f3f4f9;        /* jemne zosvetlí */
  border-color: #94a3b8;      /* výraznejší okraj pri hover */
}

/* Vymazať – natvrdo vynútime červené tlačidlo */
.btn-modal-danger {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #fff !important;
}
.btn-modal-danger:hover {
  filter: brightness(1.05);
}

/* Zelené tlačidlo v success modale ("Zatvoriť") */
.modal-actions .btn-modal-success {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}
.modal-actions .btn-modal-success:hover {
  filter: brightness(1.05);
}

/* Modré tlačidlo pre GDPR modal – rovnaký štýl ako Vymazať, len modré */
.modal-actions .btn-modal-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.modal-actions .btn-modal-primary:hover {
  filter: brightness(1.05);
}

/* GDPR informačný modal – neutrálna verzia */
.modal-box--gdpr {
  max-width: 560px;
  width: calc(100% - 40px);
  max-height: min(80vh, 560px);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* scrolluje iba vnútorné telo, nie X-ko */
}

/* Scrollovateľné vnútro GDPR modalu */
.modal-box__body {
  margin-top: 8px;
  padding-right: 24px;          /* rovnaké ako padding-right na .modal-box */
  padding-bottom: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  /* vytiahne scroll o 24 px doprava = presne na pravú hranu karty */
  margin-right: -24px;
}

/* X v pravom hornom rohu modalu (GDPR aj iné, ak ho použiješ) */
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #9aa3af;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
}


.modal-box--gdpr h3 {
  color: var(--text);
  text-align: center;
  margin: 0 0 10px;
}

/* text vnútri */
.modal-box--gdpr p,
.modal-box--gdpr ul,
.modal-box--gdpr .legal-document__intro {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.modal-box--gdpr ul {
  padding-left: 18px;
  margin: 0 0 10px;
}
.modal-box--gdpr .legal-document h1{
  display: none;
}
.modal-box--gdpr .legal-document section{
  margin: 0 0 18px;
}
.modal-box--gdpr .legal-document h2{
  margin: 0 0 7px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.3;
}
.modal-box--gdpr .legal-document a{
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* akčná lišta s tlačidlom – vždy pod textom, s medzerou */
.modal-box--gdpr .modal-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  justify-content: flex-end;
}

body.modal-open {
  overflow: hidden;
}

/* Samostatné právne stránky */
.legal-page{
  background: #fff;
  color: var(--text);
  font-family: 'Inter', sans-serif;
}
.legal-header{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 104px;
  padding: 22px 24px;
  border-bottom:1px solid var(--line);
}
.legal-main{
  width:min(860px, calc(100% - 40px));
  margin:0 auto;
  padding: clamp(44px, 7vw, 78px) 0;
}
.legal-document h1{
  margin:0 0 18px;
  color:var(--text);
  font-size:clamp(2rem, 5vw, 4rem);
  line-height:1.02;
  letter-spacing:0;
}
.legal-document__intro{
  margin:0 0 34px;
  max-width: 720px;
  color:var(--muted);
  font-size:1.08rem;
  line-height:1.65;
}
.legal-document section{
  padding: 22px 0;
  border-top:1px solid rgba(229,234,240,.86);
}
.legal-document h2{
  margin:0 0 10px;
  color:var(--text);
  font-size:1.22rem;
  line-height:1.3;
}
.legal-document p{
  margin:0 0 12px;
  color:var(--muted);
  font-size:1rem;
  line-height:1.7;
}
.legal-document p:last-child{
  margin-bottom:0;
}
.legal-document a{
  color:var(--blue);
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:2px;
}
.legal-footer{
  display:flex;
  justify-content:center;
  padding:26px 20px 34px;
  border-top:1px solid var(--line);
}
.legal-footer a{
  color:var(--blue);
  font-weight:700;
  text-decoration:none;
}
.legal-footer a:hover{
  text-decoration:underline;
}

.modal-box--gdpr .legal-document p,
.modal-box--gdpr .legal-document ul{
  font-size:.9rem;
  line-height:1.6;
}
.modal-box--gdpr .legal-document section{
  padding: 14px 0;
}

@media (max-width: 560px){
  .legal-header{
    min-height: 86px;
    justify-content:flex-start;
  }
  .legal-main{
    width:calc(100% - 32px);
    padding: 34px 0 46px;
  }
  .legal-document section{
    padding: 18px 0;
  }
}

@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; }
  .hero-bg { transform: none !important; }
}

.field .help{ font-size:.88rem; color:#9aa3af; margin-top:4px; }
