/* =========================================================
   Hartl podlahy – Premium Redesign
   Brand: #c19dd5 (lila), #1e1b2e (tmavá), #e8ddd0 (béžová)
   Fonts: Poppins (headings) · Inter (body)
   ========================================================= */

:root {
  --brand:        #c19dd5;
  --brand-dark:   #a87fc1;
  --brand-deep:   #7a5896;
  --brand-soft:   #f3e8fa;
  --beige:        #e8ddd0;
  --beige-soft:   #f5f0ea;
  --beige-dark:   #c4b5a5;
  --text:         #1a1726;
  --text-mid:     #3d3a50;
  --muted:        #888;
  --muted-light:  #bbb;
  --bg:           #ffffff;
  --bg-soft:      #faf8fc;
  --dark:         #1e1b2e;
  --dark-mid:     #2d2840;
  --gradient-dark: linear-gradient(135deg, #2a1f40 0%, #322f38 50%, #26252b 100%);
  --gradient-charcoal: linear-gradient(160deg, #34333a 0%, #201f23 100%);
  --line:         #ececec;
  --shadow-sm:    0 2px 10px rgba(50,30,80,.06);
  --shadow-md:    0 10px 36px rgba(70,30,100,.11);
  --shadow-lg:    0 24px 64px rgba(70,30,100,.16);
  --shadow-brand: 0 8px 28px rgba(193,157,213,.38);
  --radius:       16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --maxw:         1240px;
  --ease:         cubic-bezier(.22,.61,.36,1);
  --ease-spring:  cubic-bezier(.34,1.56,.64,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; transition: color .25s; }
a:hover { color: var(--brand); }

h1, h2, h3, h4 {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 .6em;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); font-weight: 600; }
h3 { font-size: 1.18rem; font-weight: 600; }
h4 { font-size: .95rem; }
p  { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .95rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brand-dark); font-weight: 700;
  font-family: 'Poppins', sans-serif; margin-bottom: .8em;
}
.eyebrow-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--brand); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 72px; }
.section-head__lead { color: var(--muted); font-size: 1.05rem; }

/* ══════════ BUTTONS ══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 999px; font-weight: 600;
  font-family: 'Poppins', sans-serif; font-size: .95rem; letter-spacing: .02em;
  cursor: pointer; border: 2px solid transparent; text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s, background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn--primary {
  background: var(--brand-dark); color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover {
  background: var(--brand-deep); color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(122,88,150,.45);
}
.btn--outline {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,.48);
}
.btn--outline:hover {
  background: rgba(255,255,255,.12); color: #fff;
  border-color: rgba(255,255,255,.85);
  transform: translateY(-3px);
}
.btn--secondary {
  background: transparent; color: var(--brand-dark);
  border-color: var(--brand);
}
.btn--secondary:hover {
  background: var(--brand-soft); color: var(--brand-deep);
  transform: translateY(-2px);
}
.btn--sm  { padding: 10px 22px; font-size: .86rem; }
.btn--lg  { padding: 17px 36px; font-size: 1rem; }
.btn--full{ width: 100%; }

/* ══════════ LOADER ══════════ */
.loader {
  position: fixed; inset: 0; background: var(--gradient-charcoal); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__inner { text-align: center; }
.loader__logo {
  width: 88px; height: 88px; object-fit: contain; margin: 0 auto 28px;
  animation: loaderPulse 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(193,157,213,.55));
}
.loader__progress {
  width: 200px; height: 3px;
  background: rgba(255,255,255,.08); border-radius: 99px;
  overflow: hidden; margin: 0 auto;
}
.loader__progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  animation: loaderBar 1.4s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.1); opacity: .8; }
}
@keyframes loaderBar {
  0%   { width: 0; margin-left: 0; }
  50%  { width: 100%; margin-left: 0; }
  100% { width: 0; margin-left: 100%; }
}

/* ══════════ HEADER ══════════ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: padding .4s var(--ease);
}
.header::before {
  content: ""; position: absolute; inset: 0;
  background: transparent; backdrop-filter: blur(0px);
  transition: background .4s, backdrop-filter .4s, box-shadow .4s;
  pointer-events: none;
}
/* Tmavá lišta po scrollu — logo je bílé, musí být vidět */
.header.is-scrolled::before {
  background: rgba(22, 17, 38, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 2px 28px rgba(0,0,0,.25);
}
.header.is-scrolled { padding: 11px 0; }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; position: relative; z-index: 1;
}
.header__logo img { height: 70px; transition: height .3s; display: block; }
.header.is-scrolled .header__logo img { height: 44px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__menu { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; align-items: center; }
.nav__menu a {
  color: rgba(255,255,255,.88); font-weight: 500;
  font-family: 'Poppins', sans-serif; font-size: .9rem;
  position: relative; padding: 4px 0;
  transition: color .25s;
}
/* Hover: výrazná bílá, ne světlá fialová která nejde přečíst */
.nav__menu a:hover { color: #fff; }
.nav__menu a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--brand);
  border-radius: 2px; transition: width .3s var(--ease);
}
.nav__menu a:hover::after { width: 100%; }

/* CTA v headeru — průhledný když je nad hero */
.header:not(.is-scrolled) .header__cta {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.45);
  color: #fff; box-shadow: none;
}
.header:not(.is-scrolled) .header__cta:hover {
  background: rgba(255,255,255,.25); color: #fff;
}

/* CTA položka v mobilním menu - skrytá na desktopu */
.nav__menu-cta-item { display: none; }

.nav__toggle {
  display: none; background: none; border: 0;
  width: 44px; height: 44px; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  padding: 0;
}
.nav__toggle span {
  display: block; width: 26px; height: 2px; border-radius: 2px;
  background: #fff; transition: transform .3s, opacity .3s;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__toggle { display: flex; }
  .header__cta { display: none !important; }
  .nav__menu-cta-item { display: block; }

  .nav__menu {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: var(--dark-mid);
    border: 1px solid rgba(255,255,255,.1);
    flex-direction: column; gap: 0; align-items: stretch;
    padding: 8px 0 16px;
    box-shadow: 0 24px 60px rgba(0,0,0,.4);
    border-radius: var(--radius);
    transform: translateY(-10px); opacity: 0; visibility: hidden;
    transition: .32s var(--ease); pointer-events: none;
  }
  .nav__menu.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }

  /* Větší text v mobilním menu */
  .nav__menu a {
    color: rgba(255,255,255,.88) !important;
    display: block;
    padding: 16px 28px;
    font-size: 1.08rem !important;
    font-weight: 600;
    letter-spacing: .01em;
  }
  .nav__menu li { border-top: 1px solid rgba(255,255,255,.07); }
  .nav__menu li:first-child { border: none; }
  .nav__menu a:hover { color: #fff !important; background: rgba(255,255,255,.05); }
  .nav__menu a::after { display: none; }

  /* CTA tlačítko v mobilním menu */
  .nav__menu-cta-item {
    padding: 16px 24px 4px;
    border-top: 1px solid rgba(255,255,255,.07);
  }
  .nav__menu-cta-item a.btn {
    display: flex; width: 100%;
    padding: 14px 24px; font-size: 1rem;
    justify-content: center;
  }
}

/* ══════════ HERO – celé foto bez ořezu, text na střed ══════════ */
.hero {
  position: relative;
  display: grid;
  overflow: hidden; color: #fff;
  background: var(--gradient-dark);
}

/* Foto v přirozeném poměru stran, přes celou šířku, bez ořezu */
.hero__bg { grid-area: 1 / 1 / 2 / 2; width: 100%; z-index: 0; align-self: start; }
.hero__bg img {
  width: 100%; height: auto;
  display: block;
}

/* Tmavý gradient přes foto – zesiluje nahoře/dole kvůli čitelnosti textu na středu */
.hero__ambient {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 50% 38%, rgba(122,88,150,.2) 0%, transparent 60%),
    linear-gradient(180deg, rgba(20,17,30,.8) 0%, rgba(24,20,32,.5) 42%, rgba(22,19,28,.58) 68%, rgba(20,17,30,.85) 100%);
}

/* Plovoucí blobby */
.hero__deco { position: absolute; z-index: 2; pointer-events: none; border-radius: 50%; }
.hero__deco--1 {
  width: 500px; height: 500px; top: -100px; right: 10%;
  background: radial-gradient(circle, rgba(193,157,213,.14) 0%, transparent 68%);
  animation: blobFloat 11s ease-in-out infinite;
}
.hero__deco--2 {
  width: 320px; height: 320px; bottom: 8%; left: 3%;
  background: radial-gradient(circle, rgba(232,221,208,.1) 0%, transparent 68%);
  animation: blobFloat 14s ease-in-out -6s infinite;
}
@keyframes blobFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-26px) scale(1.05); }
}

.hero__inner {
  grid-area: 1 / 1 / 2 / 2;
  position: relative; z-index: 3;
  width: 100%;
  padding: 90px 0;
  display: flex; align-items: center; justify-content: center;
}

.hero__content { max-width: 700px; text-align: center; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 20px; border: 1px solid rgba(255,255,255,.22);
  border-radius: 99px; font-size: .78rem; letter-spacing: .13em;
  text-transform: uppercase; margin-bottom: 18px;
  background: rgba(255,255,255,.06); backdrop-filter: blur(10px);
  opacity: 0; transform: translateY(18px);
  animation: fadeUp .85s var(--ease) .1s forwards;
}
.hero__badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); flex-shrink: 0;
  box-shadow: 0 0 10px var(--brand);
  animation: pulseDot 2.2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.7); }
}

.hero__title {
  color: #fff; margin-bottom: 16px; display: block;
  text-shadow: 0 4px 40px rgba(0,0,0,.3);
}
.hero__line { display: block; opacity: 0; transform: translateY(42px); }
.hero__line--accent { color: var(--brand); font-style: italic; font-weight: 700; }

.hero__lead {
  font-size: 1.08rem; color: rgba(255,255,255,.82);
  margin: 0 auto 26px; max-width: 520px; line-height: 1.7;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .85s var(--ease) .76s forwards;
}

.hero__cta {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .85s var(--ease) .94s forwards;
}

.hero__stats {
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .85s var(--ease) 1.12s forwards;
}
.hero__stat { padding: 0 24px; text-align: center; }
.hero__stat:first-child { padding-left: 0; }
.hero__stat strong {
  display: block; font-family: 'Poppins', sans-serif;
  font-size: 2rem; font-weight: 700; color: #fff;
  line-height: 1; margin-bottom: 5px; text-transform: lowercase;
}
.hero__stat strong span { color: var(--brand); }
.hero__stat > span { font-size: .75rem; color: rgba(255,255,255,.58); letter-spacing: .1em; }
.hero__stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.16); }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* Responzivita hero */
@media (max-width: 960px) {
  .hero__inner { padding: 128px 0 48px; }
  .hero__content { max-width: 100%; }
  .hero__lead { max-width: 100%; }
}
@media (max-width: 600px) {
  .hero__stat strong { font-size: 1.6rem; }
  .hero__stat { padding: 0 16px; }
}

/* ══════════ O MNĚ ══════════ */
.about { padding: 130px 0; }
.about__grid {
  display: grid; grid-template-columns: 1fr 1.18fr;
  gap: 90px; align-items: center;
}
.about__visual { position: relative; }
.about__img-wrap { position: relative; }
.about__img { border-radius: var(--radius-xl); position: relative; overflow: hidden; }
.about__img--main {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, #f3ecf9 0%, #ece2f5 100%);
  box-shadow: var(--shadow-lg);
}
.about__img--main img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
  display: block;
}
.about__badge-float {
  position: absolute; top: 32px; right: -22px; z-index: 3;
  background: #fff; border-radius: var(--radius);
  padding: 16px 22px; box-shadow: var(--shadow-md);
  text-align: center; min-width: 114px;
}
.about__badge-float strong {
  display: block; font-family: 'Poppins', sans-serif;
  font-size: 1.35rem; font-weight: 700; color: var(--brand-deep); line-height: 1;
}
.about__badge-float span { font-size: .8rem; color: var(--muted); margin-top: 4px; display: block; }

.about__lead {
  font-size: 1.08rem; color: var(--text-mid); line-height: 1.82;
  margin-bottom: 1.3em;
}
.about__values { display: grid; gap: 14px; margin: 30px 0 38px; }
.about__value {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 22px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1px solid var(--line);
  transition: border-color .3s var(--ease), box-shadow .3s;
}
.about__value:hover { border-color: var(--brand-soft); box-shadow: var(--shadow-sm); }
.about__value-icon { color: var(--brand-dark); font-size: 1rem; flex-shrink: 0; margin-top: 3px; }
.about__value strong { display: block; font-weight: 600; font-size: .97rem; margin-bottom: 3px; }
.about__value p { margin: 0; color: var(--muted); font-size: .9rem; }

@media (max-width: 940px) {
  .about__grid { grid-template-columns: 1fr; gap: 64px; }
  .about__badge-float { top: auto; right: auto; bottom: 20px; left: 14px; }
}

/* ══════════ SLUŽBY ══════════ */
.services { padding: 130px 0; background: var(--bg-soft); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}
.service-card {
  background: rgba(255,255,255,.6); border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  overflow: hidden; border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.service-card:hover {
  transform: translateY(-10px); box-shadow: var(--shadow-md);
  border-color: rgba(193,157,213,.35);
}
.service-card__visual {
  height: 148px; display: flex; align-items: flex-end; padding: 20px;
  position: relative; overflow: hidden;
}
.service-card__visual::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,.06); transition: opacity .3s;
}
.service-card:hover .service-card__visual::after { opacity: 0; }
.service-card__icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: rgba(255,255,255,.78); backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transition: transform .35s var(--ease-spring);
}
.service-card:hover .service-card__icon { transform: scale(1.08) translateY(-3px); }
.service-card__icon img { width: 38px; height: 38px; display: block; }

.s1 { background: url('images/vinyl.png') center / cover no-repeat; }
.s2 { background: url('images/parkety.png') center / cover no-repeat; }
.s3 { background: url('images/PVC_krytiny.png') center / cover no-repeat; }
.s4 { background: url('images/koberce.png') center / cover no-repeat; }
.s5 { background: url('images/dvere.png') center / cover no-repeat; }
.s6 { background: url('images/sokl_lista.png') center / cover no-repeat; }

.service-card__body { padding: 24px 26px 28px; }
.service-card h3 { margin-bottom: 9px; font-size: 1.08rem; }
.service-card p  { color: var(--muted); margin-bottom: 16px; font-size: .93rem; line-height: 1.65; }
.service-card__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.service-card__list li {
  font-size: .87rem; color: var(--text-mid);
  display: flex; align-items: center; gap: 9px;
}
.service-card__list li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); flex-shrink: 0;
}

/* ══════════ PORTFOLIO ══════════ */
.portfolio { padding: 130px 0; }

.portfolio__filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 52px;
}
.portfolio__filter {
  padding: 9px 22px; border-radius: 99px;
  border: 1.5px solid var(--line);
  background: #fff; color: var(--text-mid);
  font-family: 'Poppins', sans-serif; font-size: .84rem; font-weight: 500;
  cursor: pointer; transition: all .25s var(--ease);
}
.portfolio__filter:hover { border-color: var(--brand); color: var(--brand-dark); }
.portfolio__filter.is-active {
  background: var(--brand-dark); color: #fff;
  border-color: var(--brand-dark); box-shadow: var(--shadow-brand);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 14px;
}
.portfolio__item {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); cursor: pointer;
  transition: transform .45s var(--ease), box-shadow .4s;
}
.portfolio__item:hover { transform: scale(1.015); box-shadow: var(--shadow-lg); z-index: 1; }
.portfolio__item.is-hidden { display: none; }

.portfolio__img {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  transition: transform .65s var(--ease);
}
.portfolio__item:hover .portfolio__img { transform: scale(1.07); }

.portfolio__info {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(to top, rgba(15,10,30,.88) 0%, rgba(15,10,30,.22) 55%, transparent 100%);
  opacity: 0; transition: opacity .38s var(--ease); color: #fff;
}
.portfolio__item:hover .portfolio__info { opacity: 1; }
@media (hover: none) { .portfolio__info { opacity: 1; } }

.portfolio__tag {
  display: inline-block; padding: 4px 13px; border-radius: 99px;
  background: var(--brand); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  margin-bottom: 10px; font-family: 'Poppins', sans-serif;
  width: fit-content; text-transform: uppercase;
}
.portfolio__info h3 { color: #fff; font-size: .98rem; margin-bottom: 4px; }
.portfolio__info p  { font-size: .83rem; color: rgba(255,255,255,.72); margin: 0; }
.portfolio__more-wrap { text-align: center; margin-top: 40px; }
.portfolio__more-wrap.is-hidden { display: none; }

.portfolio__cta { text-align: center; margin-top: 56px; }

@media (max-width: 1024px) {
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  .portfolio__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .portfolio__filters { gap: 8px; }
  .portfolio__filter { padding: 8px 16px; font-size: .8rem; }
}

/* ══════════ PROČ JÁ ══════════ */
.why {
  padding: 130px 0; background: var(--gradient-dark);
  position: relative; overflow: hidden;
}
.why::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(193,157,213,.12) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(232,221,208,.07) 0%, transparent 50%),
    url('images/pozadi_logo.svg');
  background-repeat: no-repeat, no-repeat, repeat;
  background-size: auto, auto, 640px auto;
  background-position: 0 0, 0 0, center;
  pointer-events: none;
}
.why .container { position: relative; z-index: 1; }
.why .section-head h2    { color: #fff; }
.why .section-head__lead { color: rgba(255,255,255,.5); }
.why .eyebrow            { color: var(--brand); }

.why__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-xl); overflow: hidden;
}
.why__item {
  padding: 46px 38px;
  border-right: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative; overflow: hidden; transition: background .35s;
  background: rgba(255,255,255,.045);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.why__item:nth-child(3n)       { border-right: none; }
.why__item:nth-last-child(-n+3){ border-bottom: none; }
.why__item::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--brand), transparent);
  opacity: 0; transition: opacity .35s;
}
.why__item:hover { background: rgba(193,157,213,.12); }
.why__item:hover::before { opacity: 1; }
.why__item h3 { color: #fff; font-size: 1.55rem; margin-bottom: 12px; }
.why__item p  { color: rgba(255,255,255,.55); font-size: .98rem; margin: 0; line-height: 1.72; }

@media (max-width: 900px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .why__item:nth-child(3n)       { border-right: 1px solid rgba(255,255,255,.06); }
  .why__item:nth-child(2n)       { border-right: none; }
  .why__item:nth-last-child(-n+3){ border-bottom: 1px solid rgba(255,255,255,.06); }
  .why__item:nth-last-child(-n+2){ border-bottom: none; }
}
@media (max-width: 580px) {
  .why__grid { grid-template-columns: 1fr; }
  .why__item { border-right: none !important; padding: 32px 28px; }
  .why__item:last-child { border-bottom: none; }
}

/* ══════════ CERTIFIKÁTY ══════════ */
.certificates { padding: 130px 0; background: var(--bg-soft); }
.certificates__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}
.cert-card {
  background: rgba(255,255,255,.6); border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  overflow: hidden; border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.cert-card:hover {
  transform: translateY(-10px); box-shadow: var(--shadow-md);
  border-color: rgba(193,157,213,.35);
}
.cert-card__thumb {
  display: block; position: relative; width: 100%;
  aspect-ratio: 4/3; border: 0; padding: 0; margin: 0;
  background: var(--beige-soft); cursor: zoom-in; overflow: hidden;
}
.cert-card__thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform .5s var(--ease);
}
.cert-card__thumb:hover img { transform: scale(1.06); }
.cert-card__zoom {
  position: absolute; right: 14px; bottom: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(30,27,46,.72); color: #fff; backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; line-height: 1;
  transition: background .3s, transform .35s var(--ease-spring);
}
.cert-card__thumb:hover .cert-card__zoom { background: var(--brand-dark); transform: scale(1.1); }
.cert-card__body { padding: 24px 26px 28px; }
.cert-card__tag {
  display: inline-block; padding: 4px 13px; border-radius: 99px;
  background: var(--brand-soft); color: var(--brand-deep);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  margin-bottom: 12px; font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
}
.cert-card h3 { margin-bottom: 9px; font-size: 1.08rem; }
.cert-card__body p { color: var(--muted); margin-bottom: 14px; font-size: .93rem; line-height: 1.65; }
.cert-card__date { font-size: .82rem; color: var(--brand-dark); font-weight: 600; font-family: 'Poppins', sans-serif; }

/* Lightbox pro zvětšení certifikátu */
.cert-lightbox {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(15,10,25,.92); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.cert-lightbox.is-open { opacity: 1; visibility: visible; }
.cert-lightbox img {
  max-width: min(700px, 92vw); max-height: 88vh;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform: scale(.94); transition: transform .35s var(--ease-spring);
}
.cert-lightbox.is-open img { transform: scale(1); }
.cert-lightbox__close {
  position: absolute; top: 22px; right: 26px;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.1); color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .25s;
}
.cert-lightbox__close:hover { background: rgba(255,255,255,.2); transform: rotate(90deg); }

/* Galerie realizací - více fotek + navigace šipkami */
.portfolio__item { cursor: pointer; }
.portfolio__item:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.gallery-lightbox {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(15,10,25,.94); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 70px 90px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.gallery-lightbox.is-open { opacity: 1; visibility: visible; }
.gallery-lightbox__stage {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  max-width: 100%; max-height: 100%;
}
.gallery-lightbox__stage img {
  max-width: min(1000px, 84vw); max-height: 74vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform: scale(.96); transition: transform .3s var(--ease-spring), opacity .2s;
}
.gallery-lightbox.is-open .gallery-lightbox__stage img { transform: scale(1); }
.gallery-lightbox__caption {
  color: #fff; font-family: 'Poppins', sans-serif; font-weight: 600;
  font-size: 1rem; margin: 0; text-align: center;
}
.gallery-lightbox__counter {
  color: rgba(255,255,255,.55); font-size: .82rem; margin: 0;
  letter-spacing: .06em;
}
.gallery-lightbox__close {
  position: absolute; top: 22px; right: 26px;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.1); color: #fff;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .25s;
}
.gallery-lightbox__close:hover { background: rgba(255,255,255,.2); transform: rotate(90deg); }
.gallery-lightbox__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.1); color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, transform .25s;
}
.gallery-lightbox__arrow:hover { background: rgba(255,255,255,.22); }
.gallery-lightbox__arrow--prev { left: 18px; }
.gallery-lightbox__arrow--next { right: 18px; }
.gallery-lightbox__arrow:disabled { opacity: .3; cursor: default; }
.gallery-lightbox__arrow:disabled:hover { background: rgba(255,255,255,.1); }

@media (max-width: 760px) {
  .gallery-lightbox { padding: 90px 16px 40px; }
  .gallery-lightbox__arrow { width: 44px; height: 44px; font-size: 1.6rem; }
  .gallery-lightbox__arrow--prev { left: 6px; }
  .gallery-lightbox__arrow--next { right: 6px; }
}

/* ══════════ PARTNEŘI ══════════ */
.partners { padding: 100px 0; background: var(--bg); }
.partners__grid {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 28px;
}
.partners__item {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line);
  padding: 26px 46px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.partners__item:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-md);
  border-color: rgba(193,157,213,.35);
}
.partners__item img { height: 64px; width: auto; max-width: 220px; object-fit: contain; display: block; }

@media (max-width: 580px) {
  .partners__item { padding: 20px 32px; }
  .partners__item img { height: 48px; }
}

/* ══════════ REFERENCE ══════════ */
.testimonials {
  padding: 130px 0; background: var(--beige-soft);
  position: relative; overflow: hidden;
}
.testimonials::before {
  content: ""; position: absolute; inset: 0;
  background: url('images/pozadi_logo_bile.svg');
  background-repeat: repeat;
  background-size: 640px auto;
  background-position: center;
  opacity: .7;
  pointer-events: none;
}
.testimonials .container { position: relative; z-index: 1; }
.testimonials__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.testimonials__grid--single {
  grid-template-columns: 1fr; max-width: 560px; margin: 0 auto;
}
.testimonial {
  margin: 0; padding: 40px 38px;
  background: rgba(255,255,255,.6); border-radius: var(--radius-xl);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s;
}
.testimonial::before {
  content: "\201C";
  position: absolute; top: -8px; right: 28px;
  font-size: 9rem; font-family: 'Poppins', sans-serif; font-weight: 700;
  color: var(--brand-soft); line-height: 1; pointer-events: none; user-select: none;
}
.testimonial:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); }
.testimonial__stars { color: var(--brand); font-size: .95rem; letter-spacing: 3px; margin-bottom: 18px; }
.testimonial p {
  font-style: italic; font-size: 1.02rem; line-height: 1.78;
  color: var(--text-mid); margin-bottom: 26px; position: relative; z-index: 1;
}
.testimonial footer strong {
  display: block; font-family: 'Poppins', sans-serif;
  font-weight: 600; margin-bottom: 3px;
}
.testimonial footer span { font-size: .84rem; color: var(--muted); }

@media (max-width: 860px) {
  .testimonials__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

/* ══════════ KONTAKT ══════════ */
.contact {
  padding: 130px 0;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}
.contact__grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 80px; align-items: start; }
.contact__lead { font-size: 1.03rem; color: var(--muted); margin: 14px 0 34px; line-height: 1.8; }
.contact__items { display: grid; gap: 14px; }
.contact__item {
  display: flex; align-items: center; gap: 16px;
  padding: 17px 20px; border-radius: var(--radius);
  background: var(--bg-soft); border: 1.5px solid var(--line);
  color: var(--text); text-decoration: none;
  transition: border-color .25s, box-shadow .25s;
}
a.contact__item:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.contact__item-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.contact__item-icon img { width: 22px; height: 22px; display: block; }
.contact__item strong {
  display: block; font-size: .73rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-dark);
  font-family: 'Poppins', sans-serif; margin-bottom: 3px;
}
.contact__item span { font-size: .98rem; color: var(--text); }

.contact__info-card {
  margin-top: 26px; padding: 16px 20px;
  border-radius: var(--radius); border: 1px solid var(--line);
  font-size: .88rem; color: var(--muted);
}
.contact__info-card strong { display: block; color: var(--text); margin-bottom: 4px; font-size: .93rem; }
.contact__info-card p { margin: 0; }

.contact__form {
  background: #fff; padding: 46px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.contact__form h3 { font-size: 1.45rem; margin-bottom: 7px; }
.contact__form-lead { color: var(--muted); font-size: .93rem; margin-bottom: 28px; }

.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.field--hp {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; margin: 0;
}
.field label {
  font-size: .8rem; font-weight: 600; color: var(--muted);
  font-family: 'Poppins', sans-serif; letter-spacing: .05em;
}
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line);
  border-radius: 10px; font-family: 'Inter', sans-serif;
  font-size: .97rem; color: var(--text); background: var(--bg-soft);
  transition: border-color .25s, box-shadow .25s, background .25s;
  -webkit-appearance: none; appearance: none;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px rgba(193,157,213,.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-light); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field textarea { resize: vertical; min-height: 134px; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 42px; cursor: pointer;
}
.check {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: .88rem; color: var(--muted); margin: 4px 0 22px; cursor: pointer;
}
.check input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; cursor: pointer; }
.form-status { margin: 14px 0 0; font-size: .93rem; min-height: 1.4em; }
.form-status.is-success { color: #1a8754; }
.form-status.is-error   { color: #c0392b; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; gap: 52px; }
  .field-row { grid-template-columns: 1fr; }
  .contact__form { padding: 28px; }
}

/* ══════════ PRÁVNÍ STRÁNKY (GDPR / COOKIES) ══════════ */
.legal {
  padding: 160px 0 110px; background: var(--bg-soft); min-height: 100vh;
}
.legal__inner { max-width: 760px; margin: 0 auto; }
.legal__inner h1 { margin-bottom: 8px; }
.legal__updated { color: var(--muted); font-size: .88rem; margin-bottom: 2.5em; }
.legal__inner h2 {
  font-size: 1.3rem; margin-top: 2.2em; margin-bottom: .6em;
  padding-top: .4em; border-top: 1px solid var(--line);
}
.legal__inner h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal__inner p, .legal__inner li { color: var(--text-mid); font-size: .98rem; line-height: 1.8; }
.legal__inner ul, .legal__inner ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.legal__inner li { margin-bottom: .5em; }
.legal__inner a { color: var(--brand-dark); text-decoration: underline; }
.legal__inner strong { color: var(--text); }
.legal__table {
  width: 100%; border-collapse: collapse; margin: 1.4em 0 1.8em;
  font-size: .92rem;
}
.legal__table th, .legal__table td {
  text-align: left; padding: 10px 14px; border: 1px solid var(--line); vertical-align: top;
}
.legal__table th { background: #fff; font-family: 'Poppins', sans-serif; font-size: .82rem; }
.legal__back {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 32px; font-size: .9rem; font-weight: 600;
  color: var(--brand-dark); font-family: 'Poppins', sans-serif;
}

@media (max-width: 700px) {
  .legal { padding: 130px 0 80px; }
}

/* ══════════ FOOTER ══════════ */
.footer { background: var(--gradient-dark); color: rgba(255,255,255,.52); padding: 76px 0 24px; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr;
  gap: 52px; padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__logo {
  height: 70px; margin-bottom: 18px;
}
.footer__brand p { font-size: .93rem; line-height: 1.65; }
.footer__sub { font-size: .82rem; opacity: .6; margin-top: 2px; }
.footer h4 {
  color: #fff; font-size: .82rem; letter-spacing: .16em;
  text-transform: uppercase; margin-bottom: 20px;
  font-family: 'Poppins', sans-serif;
}
.footer__nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer__nav a { color: rgba(255,255,255,.52); font-size: .92rem; transition: color .25s; }
.footer__nav a:hover { color: var(--brand); }
.footer a { color: rgba(255,255,255,.52); }
.footer a:hover { color: var(--brand); }
.footer__address { font-size: .88rem; line-height: 1.85; margin-top: 14px; }
.footer__legal-note { font-size: .78rem; line-height: 1.6; margin-top: 10px; color: rgba(255,255,255,.32); }
.footer__bottom {
  padding: 22px 0 0; text-align: center;
  font-size: .82rem; color: rgba(255,255,255,.28);
}
.footer__legal {
  list-style: none; display: flex; justify-content: center; flex-wrap: wrap;
  gap: 6px 20px; padding: 0; margin: 14px 0 0;
}
.footer__legal a {
  font-size: .8rem; color: rgba(255,255,255,.4); text-decoration: none;
  transition: color .25s;
}
.footer__legal a:hover { color: var(--brand); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; gap: 36px; } }

/* ══════════ TO TOP ══════════ */
.to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--brand-dark); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; box-shadow: var(--shadow-brand); z-index: 90;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: .35s var(--ease), background .2s;
  text-decoration: none; line-height: 1;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--brand-deep); color: #fff; transform: translateY(-3px); }

/* ══════════ COOKIE LIŠTA + NASTAVENÍ ══════════
   Přijmout / Odmítnout / Nastavení mají záměrně stejnou velikost a styl (.btn--outline
   vs .btn--primary jen jako vizuální hierarchie primární akce, ne jako znevýhodnění). */
.cookie-banner {
  position: fixed; top: 50%; left: 50%; z-index: 9997;
  width: calc(100% - 40px); max-width: 880px;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 30px 34px;
  opacity: 0; visibility: hidden;
  transform: translate(-50%, -50%) scale(.94);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.cookie-banner.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.cookie-banner__inner {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1 1 340px; margin: 0; font-size: .92rem; color: var(--text-mid); line-height: 1.6;
}
.cookie-banner__text a { color: var(--brand-dark); text-decoration: underline; }
.cookie-banner__actions {
  display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0;
}

/* Zablokuje prohlížení webu, dokud návštěvník neudělá volbu (přijmout/odmítnout/uložit) */
html.cookie-lock, html.cookie-lock body { overflow: hidden; height: 100%; }
.cookie-gate-backdrop {
  position: fixed; inset: 0; z-index: 9996;
  background: rgba(20,17,28,.5); backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s var(--ease), visibility .35s;
}
.cookie-gate-backdrop.is-visible { opacity: 1; visibility: visible; pointer-events: auto; }

.cookie-modal {
  position: fixed; inset: 0; z-index: 9998;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.cookie-modal.is-open { opacity: 1; visibility: visible; }
.cookie-modal__backdrop {
  position: absolute; inset: 0; background: rgba(20,17,28,.6); backdrop-filter: blur(4px);
}
.cookie-modal__panel {
  position: relative; z-index: 1; width: 100%; max-width: 520px;
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: 36px; max-height: 86vh; overflow-y: auto;
  transform: scale(.96); transition: transform .35s var(--ease-spring);
}
.cookie-modal.is-open .cookie-modal__panel { transform: scale(1); }
.cookie-modal__panel h3 { margin-bottom: 10px; }
.cookie-modal__panel > p { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
.cookie-modal__panel > p a { color: var(--brand-dark); text-decoration: underline; }
.cookie-modal__close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: var(--bg-soft); color: var(--text-mid); font-size: 1.3rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .25s;
}
.cookie-modal__close:hover { background: var(--brand-soft); }

.cookie-modal__item {
  padding: 16px 0; border-top: 1px solid var(--line);
}
.cookie-modal__item:last-of-type { border-bottom: 1px solid var(--line); }
.cookie-modal__item-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px;
}
.cookie-modal__item-head strong { font-size: .95rem; }
.cookie-modal__item p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.6; }

.cookie-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.cookie-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-switch span {
  position: absolute; inset: 0; background: var(--line); border-radius: 99px;
  transition: background .25s; cursor: pointer;
}
.cookie-switch span::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .25s var(--ease);
}
.cookie-switch input:checked + span { background: var(--brand-dark); }
.cookie-switch input:checked + span::before { transform: translateX(18px); }
.cookie-switch--disabled { opacity: .55; }
.cookie-switch--disabled span { cursor: not-allowed; }

.cookie-modal__actions {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px;
}
.cookie-modal__actions .btn { flex: 1 1 auto; }

@media (max-width: 640px) {
  .cookie-banner { width: calc(100% - 24px); padding: 22px 20px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1 1 auto; }
  .cookie-modal__panel { padding: 26px; }
}

/* ══════════ REVEAL ON SCROLL ══════════ */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger pro sourozence */
.services__grid     .reveal:nth-child(2),
.why__grid          .reveal:nth-child(2),
.testimonials__grid .reveal:nth-child(2),
.certificates__grid .reveal:nth-child(2),
.portfolio__grid    .reveal:nth-child(2) { transition-delay: .08s; }
.services__grid     .reveal:nth-child(3),
.why__grid          .reveal:nth-child(3),
.testimonials__grid .reveal:nth-child(3),
.certificates__grid .reveal:nth-child(3),
.portfolio__grid    .reveal:nth-child(3) { transition-delay: .16s; }
.services__grid     .reveal:nth-child(4),
.why__grid          .reveal:nth-child(4),
.portfolio__grid    .reveal:nth-child(4) { transition-delay: .24s; }
.why__grid .reveal:nth-child(5) { transition-delay: .32s; }
.why__grid .reveal:nth-child(6) { transition-delay: .40s; }

/* ══════════ REDUCED MOTION ══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__badge, .hero__lead, .hero__cta, .hero__stats,
  .hero__line { opacity: 1; transform: none; animation: none; }
}
