/* ===== Reset & base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #FBFAF6;
  color: #23302E;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #1B8582;
  text-decoration: none;
}

a:hover {
  color: #146462;
}

img {
  display: block;
  max-width: 100%;
}

h1, h2, h3, p {
  margin: 0;
}

button {
  font: inherit;
}

/* ===== Motion ===== */
@keyframes zk-float {
  0% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
  100% { transform: translateY(0) rotate(-1.2deg); }
}

@keyframes zk-stepin {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zk-wiggle {
  0% { transform: rotate(-1deg); }
  25% { transform: rotate(-5deg); }
  55% { transform: rotate(1deg); }
  80% { transform: rotate(-3deg); }
  100% { transform: rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .zk-float {
    animation: none !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .zk-step {
    animation: none !important;
  }
}

/* ===== Reveal-on-scroll (JS toggles .is-visible) ===== */
[data-reveal] {
  transition: opacity .7s ease, transform .7s ease;
}

[data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(26px);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ===== Layout helpers ===== */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.wrap-narrow {
  max-width: 1000px;
  margin: 0 auto;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: radial-gradient(120% 90% at 80% -10%, #DAF1EF 0%, #EAF6F5 34%, #FBFAF6 72%);
  padding: clamp(28px, 6vw, 64px) clamp(16px, 5vw, 40px) clamp(40px, 7vw, 72px);
}

.hero__paw {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: #24A9A5;
  -webkit-mask: url("assets/icons/tlapka.svg") 108% 118% / min(48vw, 440px) no-repeat;
  mask: url("assets/icons/tlapka.svg") 108% 118% / min(48vw, 440px) no-repeat;
  opacity: 0.08;
}

.hero__inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
}

.hero__copy {
  flex: 1 1 320px;
  min-width: 290px;
}

.hero__title {
  font-family: 'PT Serif', Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.02;
  margin: 18px 0 6px;
  color: #16413F;
}

.hero__subtitle {
  font-family: 'PT Serif', Georgia, serif;
  font-size: clamp(22px, 4.4vw, 38px);
  line-height: 1.1;
  color: #24A9A5;
  margin: 6px 0 14px;
}

.hero__lead {
  font-size: clamp(16px, 2.4vw, 19px);
  color: #4B5A58;
  max-width: 30ch;
  margin: 0 0 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 17px;
  color: #fff;
  background: #24A9A5;
  padding: 15px 26px;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(36, 169, 165, 0.32);
  transition: background .2s, transform .2s, box-shadow .2s;
  border: none;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  color: #fff;
  background: #1B8582;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(36, 169, 165, 0.4);
}

.btn__arrow {
  font-size: 19px;
}

.hero__card-col {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.zk-float {
  width: clamp(230px, 58vw, 320px);
  animation: zk-float 6s ease-in-out infinite;
}

.hero__hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: #1B8582;
  background: rgba(255, 255, 255, 0.7);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ===== Flip card ===== */
.card {
  display: block;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  perspective: 1400px;
  cursor: pointer;
  outline: none;
  width: 100%;
  aspect-ratio: 745 / 1040;
  filter: drop-shadow(0 26px 40px rgba(20, 60, 58, 0.32));
}

.card:focus-visible {
  outline: 3px solid #24A9A5;
  outline-offset: 4px;
}

.card__flip {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}

.card.is-flipped .card__flip {
  transform: rotateY(180deg);
}

.card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  opacity: 1;
  transition: opacity 0s linear .3s;
}

.card__face img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card__face--back {
  transform: rotateY(180deg);
  opacity: 0;
}

.card.is-flipped .card__face--front {
  opacity: 0;
}

.card.is-flipped .card__face--back {
  opacity: 1;
}

/* ===== Section shells ===== */
.section {
  padding: clamp(48px, 8vw, 88px) clamp(16px, 5vw, 40px);
}

.section--tinted {
  background: #EAF6F5;
}

.section-title {
  font-family: 'PT Serif', Georgia, serif;
  font-weight: 700;
  font-size: clamp(24px, 4.4vw, 36px);
  color: #16413F;
  text-align: center;
  margin: 0 0 14px;
}

.section-lead {
  text-align: center;
  color: #5C6B69;
  font-size: clamp(16px, 2.4vw, 19px);
  max-width: 56ch;
  margin: 0 auto clamp(26px, 4vw, 36px);
  text-wrap: pretty;
}

/* ===== Co to je ===== */
.intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.intro h2 {
  margin: 0 0 18px;
}

.intro p {
  font-size: clamp(17px, 2.6vw, 22px);
  line-height: 1.55;
  color: #3E4D4B;
  text-wrap: pretty;
}

.intro strong {
  color: #1B8582;
}

/* ===== Jak se hraje: tabs ===== */
.tabs-row {
  text-align: center;
  margin: 0 0 clamp(26px, 4vw, 38px);
}

.tablist {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  background: #fff;
  border: 1px solid rgba(36, 169, 165, 0.22);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(20, 60, 58, 0.06);
}

.tab {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease;
  background: transparent;
  color: #1B8582;
}

.tab[aria-selected="true"] {
  background: #24A9A5;
  color: #fff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(16px, 3vw, 26px);
}

@media (min-width: 760px) {
  .steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

.zk-step {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(20, 60, 58, 0.06);
  border: 1px solid rgba(36, 169, 165, 0.1);
  animation: zk-stepin .5s ease both;
}

.zk-step__num {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: #24A9A5;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zk-step h3 {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 22px;
  margin: 0 0 8px;
  color: #16413F;
}

.zk-step p {
  margin: 0;
  color: #5C6B69;
  font-size: 15.5px;
  line-height: 1.55;
}

/* ===== Teaser (bonus card) ===== */
.teaser {
  max-width: 1000px;
  margin: clamp(34px, 5vw, 50px) auto 0;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(209, 123, 34, 0.22);
  box-shadow: 0 12px 30px rgba(20, 60, 58, 0.07);
  padding: clamp(24px, 4vw, 38px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.teaser__fan {
  position: relative;
  flex: 0 0 auto;
  width: clamp(150px, 42vw, 190px);
  height: clamp(210px, 58vw, 266px);
  margin: 6px auto;
  cursor: pointer;
  outline: none;
  border: none;
  background: none;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
}

.teaser__fan:focus-visible {
  outline: 3px solid #24A9A5;
  outline-offset: 6px;
  border-radius: 10px;
}

.teaser__fan img {
  position: absolute;
  border-radius: 10px;
  filter: drop-shadow(0 10px 18px rgba(20, 60, 58, 0.18));
}

.teaser__fan img:nth-child(1) {
  left: 12%;
  top: 8%;
  width: 78%;
  transform: rotate(-8deg);
}

.teaser__fan img:nth-child(2) {
  left: 6%;
  top: 4%;
  width: 82%;
  transform: rotate(4deg);
}

.teaser__top {
  left: 0%;
  top: 0%;
  width: 86%;
  z-index: 2;
  transform: rotate(-1deg);
  filter: drop-shadow(0 14px 22px rgba(20, 60, 58, 0.24));
  transition: top .3s ease, transform .3s ease;
}

.teaser__fan.is-peeking .teaser__top {
  top: -8%;
  transform: rotate(-2deg);
  animation: zk-wiggle .6s ease;
}

.teaser__badge {
  position: absolute;
  right: 2%;
  top: -4%;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #D17B22;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(209, 123, 34, 0.4);
}

.teaser__copy {
  flex: 1 1 260px;
  min-width: 240px;
}

.teaser__copy h3 {
  font-family: 'PT Serif', Georgia, serif;
  font-size: clamp(20px, 3vw, 26px);
  color: #16413F;
  margin: 0 0 10px;
}

.teaser__copy p {
  margin: 0;
  color: #5C6B69;
  font-size: clamp(15.5px, 2.3vw, 17px);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ===== Šest prostředí: vějíř karet (desktop) + stack (mobil) ===== */
.prostredi-mobile { display: block; }
.prostredi-desktop { display: none; }

@media (min-width: 760px) {
  .prostredi-mobile { display: none; }
  .prostredi-desktop { display: block; }
}

/* -- fan (desktop) -- */
.fan-stage {
  position: relative;
  width: clamp(320px, 84vw, 560px);
  height: clamp(360px, 54vw, 430px);
  margin: 0 auto;
}

.fan-card-outer {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: clamp(168px, 40vw, 222px);
  aspect-ratio: 745 / 1040;
  transform: translateX(-50%);
}

.fan-card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  border-radius: 10px;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 15px 22px rgba(20, 60, 58, 0.26));
  transition: transform .55s cubic-bezier(.2, .7, .2, 1), filter .3s ease;
}

.fan-card:focus-visible {
  outline: 3px solid #24A9A5;
  outline-offset: 4px;
}

.fan-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  border-radius: 10px;
}

.fan-leader-row {
  display: flex;
  justify-content: center;
  margin-top: 56px;
  min-height: 36px;
}

.fan-leader {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.fan-leader__icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
}

.fan-leader__text {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 22px;
}

.fan-leader--anim {
  animation: zk-labelin .4s ease both;
}

.fan-leader--mobile .fan-leader__icon {
  width: 22px;
  height: 22px;
}

.fan-leader--mobile .fan-leader__text {
  font-size: 18px;
}

@keyframes zk-labelin {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -- stack (mobil) -- */
.mobile-stack {
  max-width: 320px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(20, 60, 58, 0.12);
  border-radius: 28px;
  padding: 28px 18px 26px;
  box-shadow: 0 18px 40px rgba(20, 60, 58, 0.08);
}

.mobile-stage {
  position: relative;
  width: 100%;
  max-width: 210px;
  height: clamp(250px, 60vw, 290px);
  margin: 0 auto;
}

.mobile-card-outer {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: clamp(150px, 52vw, 180px);
  aspect-ratio: 745 / 1040;
  transform: translateX(-50%);
}

.mobile-card {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  border-radius: 10px;
  filter: drop-shadow(0 11px 16px rgba(20, 60, 58, 0.2));
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .4s ease;
}

.mobile-card:focus-visible {
  outline: 3px solid #24A9A5;
  outline-offset: 4px;
}

.mobile-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  border-radius: 10px;
}

.mobile-leader-row {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  min-height: 30px;
}

.mobile-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.mobile-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(20, 60, 58, 0.16);
  transition: transform .25s ease, background .25s ease;
}

.mobile-dot[aria-current="true"] {
  transform: scale(1.35);
}

@media (prefers-reduced-motion: reduce) {
  .fan-card,
  .mobile-card,
  .mobile-dot {
    transition: none;
  }
  .fan-leader--anim {
    animation: none;
  }
}

/* odkaz na podstránku s tabulkou rychlostí */
.prostredi-link {
  text-align: center;
  margin: clamp(26px, 4vw, 38px) 0 0;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 16px;
}

.prostredi-link a {
  border-bottom: 2px solid rgba(36, 169, 165, 0.35);
  padding-bottom: 2px;
}

.prostredi-link a:hover {
  border-bottom-color: #146462;
}

/* ===== Jak vznikla ===== */
.origin {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
}

.origin__copy {
  flex: 1 1 320px;
  min-width: 280px;
}

.origin__copy h2 {
  font-family: 'PT Serif', Georgia, serif;
  font-weight: 700;
  font-size: clamp(24px, 4.4vw, 36px);
  color: #16413F;
  margin: 0 0 18px;
}

.origin__copy p {
  font-size: clamp(16px, 2.4vw, 18.5px);
  line-height: 1.7;
  color: #3E4D4B;
  text-wrap: pretty;
}

.origin__image {
  flex: 0 1 230px;
  min-width: 200px;
  display: flex;
  justify-content: center;
}

.origin__image img {
  width: clamp(180px, 42vw, 240px);
  transform: rotate(4deg);
  filter: drop-shadow(0 18px 28px rgba(20, 60, 58, 0.22));
}

/* ===== Kontakt ===== */
.contact {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.contact__icon {
  display: inline-block;
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  background: #24A9A5;
  -webkit-mask: url("assets/icons/tlapka.svg") center / contain no-repeat;
  mask: url("assets/icons/tlapka.svg") center / contain no-repeat;
}

.contact h2 {
  font-family: 'PT Serif', Georgia, serif;
  font-weight: 700;
  font-size: clamp(26px, 4.6vw, 38px);
  color: #16413F;
  margin: 0 0 16px;
}

.contact p {
  font-size: clamp(16px, 2.5vw, 20px);
  line-height: 1.6;
  color: #4B5A58;
  margin: 0 0 30px;
}

.contact .btn {
  padding: 16px 30px;
}

.contact__note {
  margin: 26px 0 0;
  font-size: 12.5px;
  color: #8A9694;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid rgba(36, 169, 165, 0.16);
  padding: 26px 20px;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #8A9694;
}

.site-footer__nav {
  margin: 0 0 12px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 14px;
}
