/* ==========================================================================
   TiJa — VARIANT 1 „Blízko referencii"
   Vychádza z mykidsinmotion.com: biele pozadie, modré akcenty, zaoblené
   karty, čitateľná sans-serif typografia, teplý ale usporiadaný dojem.
   ========================================================================== */

:root {
  --teal: #2F8994;          /* primárna farba z loga */
  --teal-dark: #1F656E;
  --teal-light: #E8F4F6;
  --teal-mid: #C9E5E9;
  --yellow: #F8C301;        /* akcentová farba z loga */
  --yellow-soft: #FFF3CF;
  --ink: #16333A;
  --body: #4A6B72;
  --white: #FFFFFF;
  --line: #DCE9EB;
  --footer-bg: #16333A;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 4px 20px rgba(22, 51, 58, .07);
  --shadow-hover: 0 12px 34px rgba(22, 51, 58, .13);
  --wrap: 1180px;
}

/* poistka proti bielemu priestoru pod footerom */
html {
  background: var(--footer-bg);
  overflow-x: hidden;
  overscroll-behavior: none;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: clip;   /* nikdy hidden — rozbilo by scroll */
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { overflow-wrap: anywhere; }
a { color: var(--teal); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--tint { background: var(--teal-light); }
.section--soft { background: #FAFDFD; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal);
  background: var(--teal-light); padding: 7px 15px; border-radius: 100px;
  margin-bottom: 16px;
}
.section--tint .eyebrow { background: var(--white); }
.lead { font-size: 1.1rem; max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* --- Tlačidlá ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 30px; border-radius: 100px; font-weight: 800; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: .25s ease;
  overflow-wrap: anywhere; text-align: center;
}
.btn--primary { background: var(--teal); color: var(--white); }
.btn--primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #E4B200; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn--ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--ghost:hover { background: var(--teal); color: var(--white); }

/* --- Navigácia ---------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav__logo { min-width: 0; flex-shrink: 1; }
.nav__logo img { height: 50px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 10px 13px; border-radius: 10px; font-weight: 700; font-size: .93rem;
  color: var(--ink); white-space: nowrap;
}
.nav__links a:hover { background: var(--teal-light); color: var(--teal); }
.nav__cta { margin-left: 8px; padding: 11px 20px !important; background: var(--yellow); }
.nav__cta:hover { background: #E4B200 !important; }

/* burger — VŽDY vpravo (pravidlo platformy) */
.burger {
  display: none; width: 46px; height: 46px; border: 0; background: var(--teal-light);
  border-radius: 12px; cursor: pointer; flex-shrink: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--teal); border-radius: 2px; transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* drawer — slide-in z PRAVA (pravidlo platformy) */
.drawer {
  position: fixed; top: 0; right: -100%; bottom: 0; width: min(340px, 86vw);
  background: var(--white); z-index: 120; padding: 88px 24px 32px;
  transition: right .3s ease; overflow-y: auto;
  box-shadow: -8px 0 40px rgba(22,51,58,.18);
  pointer-events: none;   /* zatvorený nesmie blokovať kliky */
}
.drawer.open { right: 0; pointer-events: auto; }
.drawer a {
  display: block; padding: 14px 16px; border-radius: 12px; font-weight: 700;
  color: var(--ink); border-bottom: 1px solid var(--line); overflow-wrap: anywhere;
}
.drawer a:last-of-type { border-bottom: 0; }
.drawer a:hover { background: var(--teal-light); color: var(--teal); }
.drawer .btn { width: 100%; justify-content: center; margin-top: 18px; }
.backdrop {
  position: fixed; inset: 0; background: rgba(22,51,58,.5); z-index: 110;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.backdrop.open { opacity: 1; pointer-events: auto; }

/* --- Hero --------------------------------------------------------------- */
.hero { padding: 132px 0 clamp(56px, 8vw, 92px); background: linear-gradient(170deg, var(--teal-light) 0%, #FFF 72%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.hero__grid > * { min-width: 0; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p { font-size: 1.13rem; margin-bottom: 30px; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--teal-mid); }
.hero__stats > div { min-width: 0; }
.hero__stats strong { display: block; font-size: 1.9rem; color: var(--teal); font-weight: 800; line-height: 1.1; }
.hero__stats span { font-size: .86rem; }

/* --- Placeholder pre fotografie ---------------------------------------- */
.ph {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.5) 0 12px, transparent 12px 24px),
    linear-gradient(140deg, var(--teal-mid), var(--yellow-soft));
  display: grid; place-items: center; min-height: 260px; text-align: center; padding: 24px;
}
.ph::after {
  content: attr(data-label);
  font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal-dark); background: rgba(255,255,255,.86);
  padding: 9px 17px; border-radius: 100px; overflow-wrap: anywhere;
}
.ph--hero { aspect-ratio: 4/3.4; min-height: 300px; }
.ph--round { border-radius: 50%; aspect-ratio: 1; min-height: 0; }
.ph--wide { aspect-ratio: 16/9; }

/* --- Karty -------------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid > * { min-width: 0; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: .28s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--teal-mid); }
.card .ph { border-radius: 0; min-height: 190px; }
.card__body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: 10px; }
.card__body p { font-size: .96rem; margin-bottom: 16px; }
.card__more { margin-top: auto; font-weight: 800; font-size: .92rem; color: var(--teal); }

/* prístupy */
.chip-card {
  background: var(--white); border-radius: var(--radius); padding: 26px;
  border-left: 5px solid var(--yellow); box-shadow: var(--shadow);
}
.chip-card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.chip-card p { font-size: .93rem; }

/* výhody */
.benefit { display: flex; gap: 15px; align-items: flex-start; }
.benefit > * { min-width: 0; }
.benefit__ico {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px;
  background: var(--yellow-soft); display: grid; place-items: center;
  font-size: 1.3rem; line-height: 1;
}
.benefit h3 { font-size: 1.02rem; margin-bottom: 5px; }
.benefit p { font-size: .93rem; }

/* --- Členská sekcia ----------------------------------------------------- */
.member {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: rgba(255,255,255,.9); border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 60px); position: relative; overflow: hidden;
}
.member h2, .member h3 { color: var(--white); }
.member .eyebrow { background: rgba(255,255,255,.16); color: var(--white); }
.member__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.member__grid > * { min-width: 0; }
.member__list { list-style: none; display: grid; gap: 13px; margin-top: 22px; }
.member__list li { display: flex; gap: 11px; align-items: flex-start; font-size: .98rem; }
.member__list li::before { content: '✓'; color: var(--yellow); font-weight: 900; flex-shrink: 0; }
.member__price {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius); padding: 28px; text-align: center;
}
.member__price strong { display: block; font-size: 2.6rem; color: var(--white); font-weight: 800; line-height: 1; }
.member__price span { font-size: .88rem; display: block; margin: 8px 0 20px; }
.member__price .btn { width: 100%; justify-content: center; }

/* --- Referencie --------------------------------------------------------- */
.quote {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px;
}
.quote p { font-size: 1rem; font-style: italic; color: var(--ink); }
.quote footer { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.quote footer > * { min-width: 0; }
.quote .ph--round { width: 48px; flex-shrink: 0; min-height: 48px; }
.quote .ph--round::after { content: ''; padding: 0; }
.quote strong { color: var(--ink); font-size: .95rem; display: block; }
.quote small { font-size: .82rem; }

/* --- Podpora ------------------------------------------------------------ */
.support { background: var(--yellow-soft); border-radius: var(--radius-lg); padding: clamp(30px, 4vw, 52px); }
.support .grid--3 { gap: 22px; margin-top: 30px; }
.support__item { background: var(--white); border-radius: var(--radius); padding: 26px; text-align: center; }
.support__item strong { display: block; font-size: 1.7rem; color: var(--teal); font-weight: 800; margin-bottom: 6px; }

/* --- Kontakt / formulár ------------------------------------------------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 52px); }
.contact__grid > * { min-width: 0; }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-row > * { min-width: 0; }
.info-row strong { display: block; color: var(--ink); font-size: .95rem; }
.info-row span, .info-row a { font-size: .95rem; overflow-wrap: anywhere; }
form { display: grid; gap: 15px; }
label { font-weight: 700; font-size: .88rem; color: var(--ink); display: block; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; min-width: 0; padding: 14px 16px; border: 1.5px solid var(--line);
  border-radius: 13px; font: inherit; font-size: .96rem; color: var(--ink); background: var(--white);
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-light); }
textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .8rem; }

/* --- Footer ------------------------------------------------------------- */
.footer { background: var(--footer-bg); color: rgba(255,255,255,.68); padding: clamp(48px, 6vw, 76px) 0 0; }
.footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 16px; letter-spacing: .04em; text-transform: uppercase; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.footer__grid > * { min-width: 0; }
.footer img { height: 62px; width: auto; margin-bottom: 18px; }
.footer p { font-size: .92rem; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { color: rgba(255,255,255,.68); font-size: .92rem; overflow-wrap: anywhere; }
.footer a:hover { color: var(--yellow); }
.footer__social { display: flex; gap: 11px; margin-top: 16px; }
.footer__social a {
  width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.09);
  display: grid; place-items: center; font-size: 1rem;
}
.footer__social a:hover { background: var(--teal); }
.footer__bottom {
  margin-top: 44px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .85rem;
}
.footer__bottom > * { min-width: 0; }

/* --- Demo lišta --------------------------------------------------------- */
.demobar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 140;
  background: var(--ink); color: #fff; padding: 10px 16px; font-size: .82rem;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
}
.demobar a { color: var(--yellow); font-weight: 800; }
.demobar span { opacity: .75; }
body { padding-bottom: 52px; }

/* --- Responzívne -------------------------------------------------------- */
@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .burger { display: flex; }
  .hero__grid, .member__grid, .contact__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 116px; }
  .grid--3 { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav__logo img { height: 42px; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .hero__stats { gap: 20px; }
  .btn { padding: 14px 24px; font-size: .95rem; }
}
/* úzky viewport (Android screen zoom ~280–340px) */
@media (max-width: 380px) {
  .nav__inner { padding: 10px 14px; gap: 10px; }
  .nav__logo img { height: 34px; }
  .burger { width: 40px; height: 40px; }
  .wrap { padding: 0 14px; }
  .card__body, .chip-card, .quote, .support__item { padding: 20px; }
  .hero__stats strong { font-size: 1.5rem; }
  .member__price strong { font-size: 2rem; }
}
