/* =========================================================================
   MyoMastery e-shop — základ převzatý z webu (směr „Klinický atlas“)
   Tokeny, hlavička, patička, tlačítka a stavební prvky jsou 1:1 z webu,
   aby web i e-shop vypadaly jako jeden celek.
   ========================================================================= */

:root {
  /* --- barvy ------------------------------------------------------ */
  --paper:    #FFFFFF;
  --paper-2:  #F6FAFC;
  --ink:      #0F212C;
  --ink-2:    #46606E;
  --blue:     #0E5C86;
  --blue-dk:  #0A3D5A;
  --brand:    #2B96CF;
  --fill:     #D6EAF6;
  --air:      #EDF6FB;
  --rule:     #DCE7EE;
  --rule-2:   #EAF1F6;
  --ochre:    #9A6412;
  --ochre-l:  #D9A32A;

  /* --- prostorový rytmus: jedna škála pro celý web ----------------- */
  --sp-1: 8px;  --sp-2: 16px; --sp-3: 24px; --sp-4: 40px;
  --sp-5: 64px; --sp-6: 96px; --sp-7: 128px;
  --gut:  clamp(20px, 5vw, 56px);
  --maxw: 1240px;
  --measure: 68ch;

  /* --- dvě hodnoty rádiusu a dvě stínu ----------------------------- */
  --r-s: 2px;
  --r-m: 10px;
  --sh-1: 0 1px 2px rgba(15,33,44,.05);
  --sh-2: 0 18px 44px -22px rgba(10,61,90,.34);

  /* --- pohyb ------------------------------------------------------- */
  --ease: cubic-bezier(.16,.84,.44,1);
  --t: 180ms;

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* --- základ stránky ------------------------------------------------ */
html { -webkit-text-size-adjust: 100%; }
body.myo {
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.myo::before {
  content: ''; position: fixed; inset: 0; background-image: var(--grain);
  opacity: .025; pointer-events: none; z-index: 9; mix-blend-mode: multiply;
}
:where(body.myo) :is(h1, h2, h3, h4, h5, h6) {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600; letter-spacing: -.025em; line-height: 1.15; color: var(--ink);
  hyphens: manual; overflow-wrap: break-word;
}
:where(body.myo) h1 { font-size: clamp(34px, 1.6rem + 2.4vw, 52px); line-height: 1.1; }
:where(body.myo) h2 { font-size: clamp(27px, 1.35rem + 1.9vw, 40px); }
:where(body.myo) h3 { font-size: clamp(19px, 1.05rem + .45vw, 23px); line-height: 1.3; letter-spacing: -.015em; }
:where(body.myo) h4 { font-size: 17px; letter-spacing: -.01em; line-height: 1.4; }
:where(body.myo) a { color: var(--blue); text-decoration-color: color-mix(in srgb, var(--blue) 34%, transparent); text-underline-offset: .18em; transition: color var(--t) var(--ease), text-decoration-color var(--t) var(--ease); }
:where(body.myo) a:hover { color: var(--blue-dk); text-decoration-color: currentColor; }
body.myo :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: var(--r-s); }
body.myo ::selection { background: var(--fill); color: var(--ink); }


.skip {
  position: absolute; left: var(--sp-2); top: -100px; z-index: 100;
  background: var(--blue); color: #fff !important; padding: 10px 18px; border-radius: var(--r-s);
  text-decoration: none; font-weight: 600; font-size: 14px;
}
.skip:focus { top: var(--sp-2); }

/* reset jen pro hlavičku a patičku — obsah stránek (Elementor, WooCommerce) si drží své styly */
.site-head *, .site-foot *, .site-head *::before, .site-foot *::before, .site-head *::after, .site-foot *::after { box-sizing: border-box; }
:where(.site-head, .site-foot) :is(ul, ol) { list-style: none; margin: 0; padding: 0; }
:where(.site-head, .site-foot) :is(p, h2, address) { margin: 0; }
:where(.site-head, .site-foot) img { display: block; max-width: 100%; }
.site-foot address { font-style: normal; }
.site-head button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.site-head button:hover, .site-head button:focus { background: none; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =========================================================================
   Stavební prvky
   ========================================================================= */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 940px; }

.section { padding-block: clamp(64px, 8vw, 112px); position: relative; }
.section--tight { padding-block: clamp(48px, 5.5vw, 76px); }
.section--loose { padding-block: clamp(80px, 11vw, 152px); }
.section--air   { background: linear-gradient(180deg, var(--air), var(--paper-2) 62%, var(--paper)); }
.section--paper { background: var(--paper-2); }
.section--rule  { border-top: 1px solid var(--rule); }

/* modrý závoj — plná barva se nikde nepoužívá jako celá plocha */
.veil { position: relative; isolation: isolate; }
.veil::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58% 62% at 88% 6%, var(--air), transparent 68%),
    radial-gradient(46% 54% at 4% 96%, color-mix(in srgb, var(--fill) 55%, transparent), transparent 70%);
}
.veil--flip::before {
  background:
    radial-gradient(52% 58% at 8% 4%, var(--air), transparent 66%),
    radial-gradient(48% 52% at 96% 88%, color-mix(in srgb, var(--fill) 46%, transparent), transparent 70%);
}

/* atlasová mřížka — vlasové linky po 48 px, maskované do bílé */
.grid-paper { position: relative; isolation: isolate; }
.grid-paper::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(72% 62% at 62% 34%, #000 8%, transparent 76%);
  mask-image: radial-gradient(72% 62% at 62% 34%, #000 8%, transparent 76%);
}

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2); line-height: 1.2; margin-bottom: var(--sp-3);
}
.eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--rule); max-width: 96px; }
.eyebrow__num { color: var(--blue); font-variant-numeric: tabular-nums; }

.lead {
  font-size: clamp(17px, .95rem + .5vw, 21px);
  line-height: 1.6; letter-spacing: -.01em; color: var(--ink-2);
  max-width: 62ch;
}
.muted { color: var(--ink-2); }
.small { font-size: 14px; font-weight: 500; line-height: 1.55; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--r-s);
  background: var(--fill); color: var(--blue-dk);
}
.tag--ochre { background: transparent; color: var(--ochre); border: 1px solid color-mix(in srgb, var(--ochre-l) 55%, transparent); }
.tag--soon  { background: transparent; color: var(--ink-2); border: 1px dashed var(--rule); }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* --- tlačítka ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  padding: 13px 24px; border-radius: var(--r-s);
  text-decoration: none; border: 1px solid transparent;
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease),
              border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dk); color: #fff; }
.btn--ghost { border-color: var(--rule); color: var(--ink); background: var(--paper); }
.btn--ghost:hover { border-color: var(--brand); color: var(--blue-dk); background: var(--paper); }
.btn--quiet { color: var(--blue); padding-inline: 0; }
.btn--quiet:hover { color: var(--blue-dk); }
.btn--sm { font-size: 14px; padding: 10px 18px; }
.btn--lg { font-size: 16px; padding: 16px 30px; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { pointer-events: none; opacity: .5; }

.arrow-link {
  display: inline-flex; align-items: baseline; gap: 9px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  color: var(--blue);
}
.arrow-link span:last-child { transition: transform var(--t) var(--ease); }
.arrow-link:hover span:last-child { transform: translateX(4px); }
.arrow-link::before {
  content: ''; align-self: center; width: 18px; height: 1px; background: currentColor;
  transition: width var(--t) var(--ease); flex: none;
}
.arrow-link:hover::before { width: 26px; }

/* --- obrazová tabule ------------------------------------------------ */
.plate { margin: 0; }
.plate__frame {
  position: relative;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 8px;
  border-radius: var(--r-s);
  overflow: hidden;
}
.plate__frame img {
  width: 100%;
  aspect-ratio: var(--plate-ratio, 4 / 3);
  object-fit: var(--plate-fit, cover);
  border-radius: 1px;
  transition: transform 420ms var(--ease);
}
.plate__no {
  position: absolute; z-index: 2; left: 16px; top: 16px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em;
  padding: 3px 8px; border-radius: var(--r-s);
  background: rgba(255,255,255,.92); color: var(--blue-dk);
  border: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}
.plate__cap {
  margin-top: 10px; padding-top: 9px;
  border-top: 1px solid var(--rule);
  font-size: 13.5px; line-height: 1.5; color: var(--ink-2);
  max-width: 58ch;
}
.plate--plain .plate__frame { border: 0; padding: 0; }
.plate--tint .plate__frame { background: var(--air); }

/* --- karty ---------------------------------------------------------- */
.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-m);
  overflow: hidden;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--sh-2); }
.card__media { overflow: hidden; background: var(--air); }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 420ms var(--ease); }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding: var(--sp-3); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__title { font-size: 19px; letter-spacing: -.015em; line-height: 1.3; }
.card__title a { text-decoration: none; color: inherit; }
.card__title a::after { content: ''; position: absolute; inset: 0; }
.card__text { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.card__foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card__foot--stack { flex-direction: column; align-items: flex-start; gap: 8px; }

/* --- drobečky ------------------------------------------------------- */
.crumbs { font-size: 13px; color: var(--ink-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--rule); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }


/* =========================================================================
   Hlavička
   ========================================================================= */

.site-head { position: sticky; top: 0; z-index: 30; background: var(--paper); }
.site-head__strip { background: var(--air); border-bottom: 1px solid var(--rule); font-size: 13px; }
.site-head__strip-in { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 38px; }
.site-head__claim { color: var(--ink-2); margin: 0; font-size: 12.5px; letter-spacing: .01em; }
.site-head__util { display: flex; align-items: center; gap: var(--sp-3); font-size: 12.5px; }
.site-head__util a { color: var(--ink-2); text-decoration: none; }
.site-head__util a:hover, .site-head__util a[aria-current] { color: var(--blue); }
.site-head__tel { font-weight: 600; font-variant-numeric: tabular-nums; }

.site-head__bar { border-bottom: 1px solid var(--rule); background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.site-head__bar-in { display: flex; align-items: center; gap: var(--sp-3); min-height: 74px; }
.site-head.is-stuck .site-head__bar { box-shadow: 0 1px 0 var(--rule), 0 12px 26px -22px rgba(10,61,90,.5); }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.site-head .brand__bird { width: auto; height: 40px; flex: none; animation: breathe 7s var(--ease) infinite; }
.site-head .brand__word { width: auto; height: 21px; }
@keyframes breathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50%      { transform: scale(1.035) translateY(-3px); }
}

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: 9px 13px; border-radius: var(--r-s);
  font-size: 14.5px; font-weight: 500; color: var(--ink); text-decoration: none;
  transition: color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.site-nav a:hover { color: var(--blue); background: var(--air); }
.site-nav a[aria-current] { color: var(--blue); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }

.site-head__actions { display: flex; align-items: center; gap: var(--sp-2); flex: none; }
.cart-link {
  position: relative; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: var(--r-s); color: var(--ink);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.cart-link:hover { background: var(--air); color: var(--blue); }
.shop-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border: 1px solid var(--rule); border-radius: var(--r-s);
  font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none;
  transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.shop-link:hover { background: var(--air); border-color: var(--brand); }
.shop-link__arrow { font-weight: 500; }

.nav-toggle { display: none; align-items: center; gap: 9px; padding: 8px 4px; font-size: 13px; font-weight: 600; }
.nav-toggle__box { display: grid; gap: 4px; width: 20px; }
.nav-toggle__box i { display: block; height: 1.5px; background: var(--ink); transition: transform var(--t) var(--ease), opacity var(--t) var(--ease); }
.site-head.is-open .nav-toggle__box i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.site-head.is-open .nav-toggle__box i:nth-child(2) { opacity: 0; }
.site-head.is-open .nav-toggle__box i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.site-head__panel { display: none; }


/* košík v hlavičce — počet položek */
.cart-link { text-decoration: none; }
.cart-link svg { display: block; }
.cart-link.is-current { color: var(--blue); background: var(--air); }
.cart-link__count {
  position: absolute; top: 2px; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--blue); color: #fff; font-size: 10.5px; font-weight: 600; line-height: 18px; text-align: center;
  font-variant-numeric: tabular-nums;
}
.shop-link.is-current { background: var(--air); border-color: var(--brand); color: var(--blue-dk); }
.site-head__panel-shop { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-3); }
.site-head__panel-shop a {
  display: inline-block; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--blue);
  border: 1px solid var(--rule); border-radius: var(--r-s); padding: 7px 14px;
}
.site-head__panel-shop a[aria-current] { background: var(--air); border-color: var(--brand); }

/* =========================================================================
   Patička
   ========================================================================= */

/* Bez vlastní horní mezery — poslední sekce má svůj spodní padding a patička
   vlastní horní. Součet obojího dělal pod závěrečným CTA přes 260 px prázdna. */
.site-foot { background: var(--blue-dk); color: color-mix(in srgb, #fff 86%, var(--brand)); font-size: 14.5px; }
.site-foot__top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); padding-block: clamp(48px, 6vw, 84px) var(--sp-5); }
.site-foot .site-foot__bird { width: auto; height: 46px; }
.site-foot .site-foot__word { width: auto; height: 20px; margin-top: 14px; filter: brightness(0) invert(1); opacity: .95; }
.site-foot__claim { margin-top: var(--sp-2); font-size: 13px; color: color-mix(in srgb, #fff 62%, var(--brand)); }
.site-foot__note { margin-top: var(--sp-2); font-size: 13.5px; line-height: 1.65; color: color-mix(in srgb, #fff 68%, var(--brand)); max-width: 34ch; }
.site-foot__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.site-foot h2 { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, #fff 55%, var(--brand)); margin-bottom: var(--sp-2); }
.site-foot ul { display: grid; gap: 9px; }
.site-foot a { color: color-mix(in srgb, #fff 90%, var(--brand)); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.site-foot address { line-height: 1.7; }
.site-foot__lines { margin-top: var(--sp-3); display: grid; gap: 10px; font-size: 13.5px; }
.site-foot__lines li { display: grid; grid-template-columns: 82px 1fr; gap: 10px; }
.site-foot__lines span { color: color-mix(in srgb, #fff 52%, var(--brand)); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }
.site-foot__bottom {
  border-top: 1px solid color-mix(in srgb, #fff 16%, transparent);
  padding-block: var(--sp-3) var(--sp-4);
  display: flex; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap;
  font-size: 12.5px; color: color-mix(in srgb, #fff 62%, var(--brand));
}
.site-foot__disclaimer { max-width: 62ch; }


/* =========================================================================
   Responzivita hlavičky a patičky (z webu)
   ========================================================================= */
@media (max-width: 1080px) {
  .site-nav a { padding-inline: 10px; font-size: 14px; }
  .site-foot__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .site-foot__contact { grid-column: 1 / -1; border-top: 1px solid color-mix(in srgb, #fff 16%, transparent); padding-top: var(--sp-3); }
}
@media (max-width: 900px) {
  .site-head__strip { display: none; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .site-head__actions { margin-left: auto; gap: 10px; }
  .site-head.is-open .site-head__panel { display: block; }
  .site-head__panel {
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding-block: var(--sp-3) var(--sp-4);
    max-height: calc(100dvh - 74px); overflow-y: auto;
  }
  .site-head__panel-main { display: grid; gap: 2px; }
  .site-head__panel-main a {
    display: block; padding: 12px 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em;
    color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule-2);
  }
  .site-head__panel-main a[aria-current] { color: var(--blue); }
  .site-head__panel-sec { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: var(--sp-3); }
  .site-head__panel-sec a { font-size: 14px; color: var(--ink-2); text-decoration: none; }
  .site-head__panel-contact { margin-top: var(--sp-3); display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; font-weight: 600; }
  .site-foot__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4) var(--sp-3); }
}
@media (max-width: 620px) {
  :root { --sp-5: 48px; --sp-6: 64px; --sp-7: 88px; }
  body.myo { font-size: 16px; }
  .shop-link { padding: 7px 10px; }
  .site-foot__top { grid-template-columns: minmax(0, 1fr); }
  .site-foot__nav { grid-template-columns: minmax(0, 1fr); }
  .site-foot__bottom { flex-direction: column; gap: var(--sp-2); }
}
@media (max-width: 480px) {
  .site-head__bar-in { gap: 12px; }
  .site-head__actions { gap: 6px; }
  .nav-toggle { padding: 8px 6px; }
  .nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (max-width: 350px) {
  .site-head .brand__word { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-head, .site-foot__nav, .nav-toggle { display: none; }
  body.myo::before { display: none; }
}

/* =========================================================================
   Hlavička podstránky (WordPress stránky bez Elementoru, e-shop)
   ========================================================================= */
.page-head { padding-block: var(--sp-4) clamp(32px, 4vw, 52px); }
.page-head .crumbs { margin-bottom: var(--sp-3); }
.page-head h1 { margin: 0; }
.page-head__lead { margin-top: var(--sp-3); }

/* Skryté položky menu: v Vzhled > Menu dejte položce CSS třídu 'skryto'. Smazáním třídy se položka zase zobrazí. */
.menu-item.skryto,
.elementor-nav-menu .menu-item.skryto { display: none !important; }
