/* ===========================
   STARTUJEME PŘEDŠKOLÁKY – EMOCE (page-scope)
   Samostatné CSS jen pro tuto stránku
   =========================== */

/* --- Základní fonty a pozadí (stejně jako na home) --- */
@font-face {
    font-family: 'Gagalin';
    src: url('fonts/Gagalin-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

html { scroll-behavior: smooth; }

:root {
    --primary: #ff762f;
    --primary-strong: #ff5a00;
    --blue: #004a99;
    --text: #ffffff;
    --bg-tint: rgba(19, 30, 41, 0.1);
    --shadow: rgba(0, 0, 0, 0.2);
    --shadow-strong: rgba(255, 118, 47, 0.3);
    --card-bg: #131e29;   /* tmavě modré pozadí */
    --panel-bg: #192a3c;  /* o něco světlejší/kontrastní modrá */
    --accent: #78de20;    /* zelená na zvýraznění */
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    /*background: radial-gradient(ellipse at center, #004a99 10%, #4c8bc4 100%);*/
    background-image: url('images/background.png');
    background-size: cover;         /* roztáhne obrázek přes celé pozadí */
    background-repeat: no-repeat;   /* neopakuje obrázek */
    background-position: center;    /* vycentruje obrázek */
    background-attachment: fixed;
}

/* --- Typografie a odkazy --- */
h1, h2 {
    font-family: 'Gagalin', sans-serif;
    font-weight: normal;
    letter-spacing: .5px;
    margin: 0 0 10px 0;
    text-shadow: 1px 1px 2px rgba(0, 30, 60, 0.5);
    color: var(--primary);
}
h1 { font-size: 3.5rem; }
h2 { font-size: 4rem; text-align: center;}

h3, h4, h5 { margin: 0 0 .6rem 0; }

p {
    margin: .4rem 0 1rem 0;
    line-height: 1.7;
    text-shadow: 1px 1px 2px rgba(0, 30, 60, 0.5);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .25s ease;
}
a:hover { color: red; }

/* --- Kontejner a sekce --- */
section { padding: 14px 0; }
.container {
    width: 60%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Doplňkové textové styly --- */
.muted { opacity: .9; }
strong { color: orange; }

/* --- Návratový odkaz --- */
.back-link {
  display: inline-block;
  margin: .2rem 0 1rem 0;
  color: var(--primary);
  font-weight: 600;
}
.back-link:hover { text-decoration: underline; }

/* --- Podnadpisy (subheading) v oranžové Gagalin --- */
.subheading {
  color: var(--primary);
  font-family: 'Gagalin', sans-serif;
  font-weight: normal;
  font-size: 2rem;
  margin: 0 0 .8rem 0;
  text-shadow: 1px 1px 2px rgba(0, 30, 60, 0.5);
}

/* --- „Pilulka“ štítek --- */
.pill-link {
  display: block;              /* udělá z odkazu blok */
  margin: 1.5rem auto;         /* auto zarovná na střed */
  max-width: 50%;            /* aby to nebylo přes celou šířku */
  text-align: center;          /* text uprostřed */
  padding: 12px 20px;
  background: var(--primary);
  color: #fff !important;
  border: none;
  border-radius: 35px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: background-color 0.3s ease, transform 0.25s ease;
}

.pill-link:hover {
  background: #e65c00;   /* trochu tmavší oranžová */
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,.3);
}


/* --- Fade-in efekty (stejné chování jako na webu) --- */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in, .fade-in.visible { transition: none; transform: none; opacity: 1; }
}

/* --- Layout profil (obrázek + text) --- */
.profile {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    text-align: justify;
}
.profile-text { flex: 1; min-width: 250px; }
.profile-img {
    max-width: 250px;
    width: 100%;
    margin: 0;
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--shadow);
    flex-shrink: 0;
}
/* AIDA blok – svislé zarovnání obrázku vůči textu */
.profile.highlight {
  align-items: center;   /* přepíše původní flex-start */
}

/* (volitelné) udržet obrázek hezky uprostřed */
.profile.highlight .profile-img {
  align-self: center;
}

.profile-img.no-shadow { box-shadow: none; }
/* Obrázky pod sebou, zarovnané na střed, každý na 33% šířky */
.block {
  margin: 1.5rem 0;
}

.block > figure {
  margin: 1rem auto 2rem;
  text-align: center;           /* vycentruje popisek */
}

.block > figure > img.profile-img {
  display: block;
  width: 45% !important;        /* přebije případné defaulty z emoce.css */
  max-width: 45% !important;
  height: auto;
  margin: 0 auto;               /* vycentruje obrázek */
}

.block > figure > figcaption {
  margin-top: .5rem;
  text-align: center;
}

figure {
  text-align: center;
}

figure img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .profile { flex-direction: column; align-items: center; text-align: center; }
  .profile-text { text-align: left; }
}

/* --- Zvýrazněné bloky (highlight) --- */
.highlight {
    background-color: var(--bg-tint);
    border-left: 4px solid var(--primary-strong);
    border-right: 4px solid var(--primary-strong);
    padding: 1.2rem 1.4rem;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    font-size: 1.05rem;
    line-height: 1.6;
    transition: box-shadow .25s ease, border-color .25s ease;
}
.highlight:hover {
    box-shadow: 0 6px 20px var(--shadow-strong);
    border-left-color: var(--primary);
    border-right-color: var(--primary);
}

/* --- Seznamy --- */
/* „globální“ seznam ve stylu homepage – raketa */
ul {
    list-style: none;
    padding-left: 0;
    font-size: 1.05rem;
}
ul li {
    position: relative;
    padding-left: 2rem;
    color: var(--text);
    text-shadow: 1px 1px 2px rgba(0, 30, 60, 0.5);
}
ul li::before {
    content: "🚀";
    position: absolute;
    left: 0;
    color: var(--primary-strong);
}

/* jemnější bullet seznam pro technické výčty */
.bullets li::before {
  content: "•";
  font-weight: 700;
  color: var(--primary);
}

/* číslovaný seznam s vlastní číslovkou */
.ordered { counter-reset: cnt; list-style: none; padding-left: 0; }
.ordered li {
  counter-increment: cnt;
  padding-left: 2.2rem;
  position: relative;
}
.ordered li::before {
  content: counter(cnt) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 700;
}

/* --- Tip / rada box --- */
.tip-box {
  margin: 1rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--primary-strong);
  border-right: 4px solid var(--primary-strong);
  background: var(--bg-tint);
  border-radius: 12px;
}

/* --- Motto / citace --- */
.motto {
  margin: 1rem 0 0 0;
  padding-left: 1rem;
  border-left: 4px solid var(--primary);
  font-style: italic;
  color: var(--text);
}

/* --- Mřížka fází (Začátečník / Pokročilý / Profík) --- */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
@media (max-width: 900px) {
  .phase-grid { grid-template-columns: 1fr; }
}

.phase-card {
  display: block;
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  border: 2px solid var(--primary);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 4px 12px var(--shadow);
  color: var(--text) !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
  text-align: center;
  position: relative;            /* ✅ DŮLEŽITÉ pro ::after */
}

.phase-card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px var(--shadow-strong);
  /* border-color se u completed/pending nepřebíjí níže */
  background-color: rgba(255,255,255,0.11);
}
.phase-card h4 {
  margin: .4rem 0 .4rem 0;
  color: var(--primary);
  font-weight: 1000;
  font-size: 1.4rem;
}
.phase-card p { margin: 0; font-size: 1rem; }
.phase-icon { font-size: 2rem; line-height: 1; margin-bottom: .4rem; }
/* Stavové barvy okraje */
/* Nedokončené */
.phase-card.pending {
  border: 3px dashed orange; /* víc výrazné */
  background-color: rgba(255, 165, 0, 0.1); /* lehce oranžový podklad */
}
/* Při hoveru oranžová ještě vystoupí */
.phase-card.pending:hover {
  border-color: darkorange;
  background-color: rgba(255, 165, 0, 0.18);
}
/* Dokončené */
.phase-card.completed {
  border: 3px solid limegreen;
  background-color: rgba(0, 255, 0, 0.1);
  box-shadow: 0 0 12px rgba(50, 205, 50, 0.5); /* zelený glow */
}

/* Hover na dokončené jen posílí efekt */
.phase-card.completed:hover {
  border-color: limegreen;
  background-color: rgba(0, 255, 0, 0.18);
  box-shadow: 0 0 16px rgba(50, 205, 50, 0.7);
}

/* Fajfka zůstává */
.phase-card.completed::after {
  content: "✅";
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 1.4rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.35));
  pointer-events: none;
}

/* --- Jemné horizontální pravidlo (pokud bys použil) --- */
hr {
  width: 80%;
  margin: 20px auto;
  border: 0;
  border-top: 2px solid var(--primary);
}

/* --- Malé utility --- */
.center { text-align: center; }
.right { text-align: right; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }

.intro {
  max-width: 75%;
  margin: 0 auto 1.5rem auto;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.6;
}
.intro strong {
  color: #ff762f;
}

/* zvýrazněné tlačítko Pokračovat */
.big-next {
  font-size: 1.8rem;
  padding: 1.2rem 2.2rem;
  background-color: #ff762f;
  color: #fff !important;
  border-radius: 40px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 18px rgba(255, 118, 47, 0.6);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.big-next:hover {
  background-color: #ff5a00;
  transform: scale(1.07);
  box-shadow: 0 0 28px rgba(255, 118, 47, 0.9);
}

/* footer na střed, oranžový text */
.footer-orange {
  text-align: center;
  padding: 2rem 1rem;
  color: #ff762f;
  font-size: 1rem;
}
.footer-orange a {
  color: #ff762f;
  text-decoration: none;
  font-weight: 600;
}
.footer-orange a:hover {
  text-decoration: underline;
}

.video-center {
  text-align: center;
  margin: 1rem 0;
}
.video-center video {
  max-width: 80%;
  max-height: 60vh;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

/* ==== EMOCE DONE – hero sekce ==== */
.done-hero {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid var(--primary);
  border-radius: 16px;
  box-shadow: 0 4px 16px var(--shadow);
  margin: 1rem 0 2rem;
}
.done-hero .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: .6rem;
  box-shadow: 0 0 20px rgba(255,118,47,.55);
}
.done-hero h2 {
  margin: .2rem 0 .6rem 0;
  font-size: 2.4rem;
}
.done-hero .lead {
  font-size: 1.15rem;
  margin: 0 auto 1rem;
  max-width: 760px;
}
.back-btn {
  margin-top: .5rem;
  font-size: 1.05rem;
  padding: .8rem 1.4rem;
}

/* ==== Propojení – grid karet ==== */
.schema-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
@media (max-width: 1024px) {
  .schema-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .schema-grid { grid-template-columns: 1fr; }
}

.schema-card {
  background: rgba(255,255,255,0.08);
  border: 2px solid var(--primary);
  border-radius: 14px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 4px 12px var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;
}
.schema-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-strong);
  background-color: rgba(255,255,255,0.11);
  box-shadow: 0 6px 20px var(--shadow-strong);
}

/* nadpis jako tlačítko */
.schema-title {
  display: inline-block;
  text-decoration: none;
  padding: .5rem 1rem;
  border: 2px solid var(--primary);
  border-radius: 999px;
  color: #fff !important;
  font-weight: 700;
  background: linear-gradient(180deg, rgba(255,118,47,.85), rgba(255,90,0,.95));
  box-shadow: 0 0 14px rgba(255,118,47,.45);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  margin-bottom: .6rem;
}
.schema-title:hover {
  transform: scale(1.04);
  box-shadow: 0 0 20px rgba(255,118,47,.8);
  border-color: var(--primary-strong);
  background: linear-gradient(180deg, rgba(255,118,47,1), rgba(255,90,0,1));
}

.schema-card p {
  margin: .2rem 0 0 0;
  font-size: 1rem;
  line-height: 1.5;
}

/* domovské tlačítko dole */
.btn-home {
  display: inline-block;
  padding: .8rem 1.2rem;
  background: rgba(255,118,47,.18);
  border: 2px solid var(--primary);
  border-radius: 999px;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.btn-home:hover {
  transform: translateY(-1px) scale(1.03);
  background: rgba(255,118,47,.28);
  border-color: var(--primary-strong);
  box-shadow: 0 0 16px rgba(255,118,47,.6);
}

.preserve { white-space: pre-line; }
.video-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 900px){ .video-grid{ grid-template-columns:1fr; } }
.done-wrap{ text-align:center; margin:2rem 0; }
.done-btn{ display:inline-block; padding:1rem 1.6rem; background:#ff762f; border-radius:35px; color:#fff; font-weight:700; text-decoration:none; box-shadow:0 4px 12px rgba(0,0,0,.2); transition: background-color .3s ease, transform .3s ease; }
.done-btn:hover{ background:#ff5a00; transform:scale(1.05); color:white; }

/* Accordion */
.accordion {
  display: grid;
  gap: 1rem;
}

.acc-trigger.phase-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  border: none;
  background: var(--card-bg);
  color: #fff;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  text-align: left; /* text bloky uvnitř <h4>, <p> budou vlevo vůči sobě */
}

.acc-trigger.phase-card h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.acc-trigger.phase-card p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85; /* lehčí vizuální hierarchie */
}

.acc-trigger.phase-card .phase-icon {
  font-size: 1.5rem;
  flex-shrink: 0; /* ikona má pevnou velikost a netlačí text */
}


.acc-trigger.phase-card:focus-visible {
  outline: 2px solid var(--accent, #ff762f);
  outline-offset: 2px;
}

/* šipka/indikátor otevření (volitelné, pokud chceš) */
.acc-trigger.phase-card::after {
  content: '▾';
  justify-self: end;
  font-size: 2rem;
  font-weight: bold;
  transition: transform .2s ease;
}
.acc-trigger[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Panel s obsahem */
.acc-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
  background: var(--panel-bg, #fafafa);
  border-radius: 1rem;
  padding: 0 1.25rem;     /* v základu bez vert. paddingu, ať neuskakuje při zavření */
}

.acc-panel.open {
  padding: 1.25rem;
}

/* === INFO TABULKA – v barvách projektu === */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.06);          /* lehký skleněný efekt jako karty */
  border: 2px solid var(--primary);            /* oranžový rám */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow);
}

.info-table th,
.info-table td {
  padding: 0.75rem 1rem;
  vertical-align: top;
  color: var(--text);                           /* bílý text jako zbytek webu */
}

.info-table thead th {
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: #fff;
  text-align: left;
  font-weight: 700;
  letter-spacing: .2px;
  border-bottom: 2px solid var(--primary-strong);
}

.info-table tbody tr {
  transition: background-color .2s ease;
}

.info-table tbody tr:nth-child(even) {
  background: rgba(255, 118, 47, 0.08);        /* jemné oranžové zebra řádky */
}

.info-table tbody tr:hover {
  background: rgba(255, 118, 47, 0.16);        /* zvýraznění na hover */
}

.info-table td:first-child {
  font-weight: 700;
  white-space: nowrap;
  width: 140px;
  color: var(--primary);                        /* věk zvýrazněn oranžově */
}

/* tenké oddělení řádků (volitelné) */
.info-table tbody td {
  border-top: 1px solid rgba(255, 118, 47, 0.25);
}

/* Hezčí číslování – badge ve stylu projektu */
.ordered.pretty { counter-reset: cnt; list-style: none; padding-left: 0; }
.ordered.pretty li{
  counter-increment: cnt;
  position: relative;
  padding: .25rem .5rem .25rem 3rem;   /* místo pro badge vlevo */
  margin: .35rem 0;
  line-height: 1.65;
}
.ordered.pretty li::before{
  content: counter(cnt);
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: #fff;
  font-weight: 900;
  box-shadow: 0 0 12px rgba(255,118,47,.45);
}
/* Dotazník – sjednocení s modrým stylem */
.panel {
  background: var(--panel-bg);
  border-radius: 1rem;
  box-shadow: 0 4px 16px var(--shadow);
  padding: 2rem;
  margin: 2rem 0;
}

.question {
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: .75rem;
  background: rgba(255,255,255,0.05);
}

.q-text {
  font-weight: 600;
  margin-bottom: .5rem;
  color: var(--text);
}

.scale { display: flex; gap: .5rem; }
.scale-item input { display: none; }
.scale-item span {
  display:inline-block;
  padding:.4rem .8rem;
  border-radius:50%;
  border:2px solid var(--primary);
  cursor:pointer;
  transition: all .2s ease;
  color: var(--text);
}
.scale-item input:checked + span {
  background: var(--primary);
  color:white;
}

.actions { text-align:center; margin-top:2rem; }
#evaluateBtn {
  padding: 1rem 1.8rem;
  font-weight: 700;
  border-radius: 35px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background .3s ease, transform .25s ease;
}
#evaluateBtn:hover {
  background: var(--primary-strong);
  transform: scale(1.05);
}

/* === Styl pro Výsledky dotazníku ve vzhledu Startujeme předškoláky === */
.panel {
  background: var(--panel-bg);
  border-radius: 1rem;
  box-shadow: 0 4px 16px var(--shadow);
  padding: 2rem;
  margin: 2rem 0;
  color: var(--text);
}

.area {
  margin: 1.5rem 0;
}

.area h2 {
  font-family: 'Gagalin', sans-serif;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.question {
  margin: .8rem 0;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: .75rem;
  background: rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.question strong {
  color: var(--primary);
  font-size: 1.1rem;
}

.muted {
  opacity: .85;
  font-size: .95rem;
}

.actions {
  text-align:center;
  margin-top:2rem;
}

.actions .btn {
  display:inline-block;
  padding: .9rem 1.4rem;
  border-radius: 35px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  border:none;
  margin: .25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transition: background .3s ease, transform .25s ease;
}
.actions .btn:hover {
  background: var(--primary-strong);
  transform: scale(1.05);
}

.btn{
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, var(--primary), var(--primary-strong));
  color: white;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  text-align: center;
  margin: 2vh 0 3vh 0;
}
.btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 22px var(--shadow-strong);
  border-color: var(--primary-strong);
  color: white !important;
}
.btn:active{ transform: translateY(0); }
.btn-full{ width: auto;color:white }

/* HERO CTA – výrazný oranžový gradient + měkký glow, bez layout shiftu */
.btn-hero{
  --cta: var(--primary, #ff762f);
  --cta-2: #ff9c6b;                 /* teplejší druhý odstín */
  position: relative;
  isolation: isolate;               /* halo pod tlačítkem */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;

  padding: 1rem 1.6rem;
  border: 0;
  border-radius: 999px;             /* pilulka */
  font-weight: 800;
  letter-spacing: .3px;
  font-size: clamp(1,7rem, 2vw, 2rem);

  color: #fff;
  background: linear-gradient(135deg, var(--cta), var(--cta-2));
  background-size: 150% 150%;
  box-shadow:
    0 18px 50px rgba(255,118,47,.45),
    0 8px 22px rgba(0,0,0,.25);

  transition:
    transform .18s cubic-bezier(.2,.8,.2,1),
    box-shadow .22s ease,
    background-position .25s ease,
    filter .22s ease;
  transform: translateZ(0);         /* vyhlazení animace */
}

/* jemné oranžové „halo“ pod tlačítkem – dodá WOW efekt */
.btn-hero::before{
  content:"";
  position:absolute; inset:-2px;
  border-radius: inherit;
  z-index:-1;
  background: linear-gradient(135deg,
              rgba(255,118,47,.85),
              rgba(255,168,120,.65),
              rgba(255,118,47,.85));
  filter: blur(14px);
  opacity: .0;
  transition: opacity .25s ease, filter .25s ease;
}

/* decentní lesk */
.btn-hero::after{
  content:"";
  position:absolute; inset:2px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(120% 200% at 50% 0%,
      rgba(255,255,255,.25), rgba(255,255,255,0) 40%);
  opacity: .5;
  mix-blend-mode: soft-light;
}

/* interakce – plynulé „plavání“ bez cukání */
.btn-hero:hover{
  transform: translateY(-2px) scale(1.06);
  background-position: 40% 60%;
  box-shadow:
    0 26px 70px rgba(255,118,47,.55),
    0 12px 30px rgba(0,0,0,.28);
}
.btn-hero:hover::before{ opacity: .9; filter: blur(18px); }

.btn-hero:active{
  transform: translateY(0) scale(.98);
  box-shadow:
    0 12px 28px rgba(255,118,47,.40),
    0 8px 18px rgba(0,0,0,.22);
}

/* přístupný focus kroužek */
.btn-hero:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 3px rgba(255,255,255,.95),
    0 0 0 6px var(--cta),
    0 26px 70px rgba(255,118,47,.55);
}

/* malá šipka poskočí o fous vpravo */
.btn-hero .icon{
  display:inline-block;
  width: 1.2em; height: 1.2em;
  transform: translateY(1px);
  transition: transform .18s ease;
}
.btn-hero:hover .icon{ transform: translate(2px,1px); }

/* respektujeme reduced motion */
@media (prefers-reduced-motion: reduce){
  .btn-hero, .btn-hero::before, .btn-hero .icon{ transition: none; }
}

/* === HERO CTA – permanentní pulz (dýchání) + halo + pozvolný shift gradientu === */

/* registr proměnné pro hladký scale (funguje i s hoverem) */
@property --pulse {
  syntax: '<number>';
  inherits: false;
  initial-value: 0;
}

.btn-hero{
  /* jemné dýchání (scale přes proměnnou, aby hover mohl přičíst vlastní scale) */
  --pulse: 0;
  background-size: 200% 200%;
  /* běží 2 animace: dýchání + pomalý posun gradientu */
  animation:
    heroPulse 3s ease-in-out infinite,
    bgShift   14s ease-in-out infinite;
  /* transform se počítá z proměnné; hover níže přidá svůj offset */
  transform: translateY(0) scale(calc(1 + var(--pulse)));
}

/* oranžové halo pod tlačítkem také „dýchá“ */
.btn-hero::before{
  animation: heroHalo 3s ease-in-out infinite;
}

/* na hover tlačítko „plave“ a PŘITOM pulzuje dál */
.btn-hero:hover{
  /* přidej vlastní offset k pulzu – (1.06) * (1 + pulse) */
  transform: translateY(-2px) scale(calc(1.06 + var(--pulse)));
  /* zrychlíme i halo a lehce posuneme gradient */
  animation:
    heroPulse 3s ease-in-out infinite,
    bgShift   10s ease-in-out infinite;
}
.btn-hero:hover::before{
  animation-duration: 2.2s;
}

/* Klíčové snímky – dýchání tlačítka (pulz) */
@keyframes heroPulse{
  0%,100% { --pulse: 0; }
  50%     { --pulse: 0.045; } /* ~4.5 % zvětšení – můžeš změnit na 0.06 pro výraznější */
}

/* Halo – více světla v polovině cyklu */
@keyframes heroHalo{
  0%,100% { opacity: .15; filter: blur(12px); transform: scale(.97); }
  50%     { opacity: .9;  filter: blur(18px); transform: scale(1.06); }
}

/* Pomalý pohyb gradientu pro prémiový feel */
@keyframes bgShift{
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

/* Respekt k reduced motion */
@media (prefers-reduced-motion: reduce){
  .btn-hero,
  .btn-hero::before{
    animation: none !important;
    transform: none !important;
  }
}

/* ===================== style_devices.css — DODATEK PRO EMOCE ===================== */
/* Mobile-first overrides pro komponenty definované v emoce.css
   (karty, kontejnery, nadpisy, video, tabulky, schema/phase grid, CTA, reviews, media-grid). */

/* Breakpoint proměnné */
:root{
  --bp-phone-max: 599px;
  --bp-tablet-min: 600px;
  --bp-tablet-max: 899px;
}

/* ------------------------------ PHONES (<= 599px) ------------------------------ */
@media (max-width: 599px){

  /* Pojistka proti horizontálnímu scrollu na některých mobilech */
  html, body{ max-width: 100%; overflow-x: hidden; }
  body{ background-attachment: scroll; } /* fixed na mobilech často škube */

  section{ padding: 10px 0; }

  /* .container má v emoce.css width:60% + padding:20px → tady full-width bez přesahu */
  .container{
    width: 100%;
    max-width: 100%;
    padding-left: clamp(12px, 4vw, 20px);
    padding-right: clamp(12px, 4vw, 20px);
  }

  /* Nadpisy zmenšit, aby nelámaly řádky agresivně */
  h1{ font-size: clamp(1.8rem, 7.2vw, 2.2rem); }
  h2{ font-size: clamp(1.6rem, 6.4vw, 2rem); }
  .subheading{ font-size: clamp(1.2rem, 5.2vw, 1.4rem); }

  /* Úzký úvod a texty */
  .intro{
    max-width: 100%;
    font-size: 1.05rem;
    margin: 0 auto 1rem;
    text-align: center;
  }

  /* Zvýrazněné bloky (karty) – kompaktnější spacing */
  .highlight{
    padding: 1rem 1rem;
    margin: 1.2rem 0;
    font-size: 1rem;
    line-height: 1.55;
  }

  /* Seznamy – víc vzduchu, lepší čitelnost */
  ul{ font-size: 1rem; }
  ul li{ margin: .35rem 0; line-height: 1.55; }

  /* CTA tlačítka – přes celou šířku */
  .btn, .done-btn, .big-next, .btn-full{
    width: 100%;
    display: inline-flex;
    justify-content: center;
  }

  /* „Pilulka“ odkaz – přes celou, menší písmo */
  .pill-link{
    max-width: 100%;
    width: 100%;
    font-size: 1rem;
    padding: 12px 16px;
  }

  /* Profilový layout – stack + větší obrázek */
  .profile{
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    text-align: center;
  }
  .profile-text{ text-align: left; }
  .profile-img{ max-width: 90% !important; }

    .img-center{ text-align:center;margin-top:1rem }
    .img-center img{ max-width:40%; height:auto; border-radius:12px; box-shadow:0 4px 16px rgba(0,0,0,.2) }

  /* Videa – žádný ořez, plná šířka karty */
  .video-center video{
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  /* Video grid – 1 sloupec */
  .video-grid{ grid-template-columns: 1fr !important; gap: 1rem; }

  /* Phase grid – už to přepínáš v emoce.css, jen drobný spacing */
  .phase-card{ padding: 1rem; }
  .phase-card h4{ font-size: 1.2rem; }
  .phase-card p{ font-size: .95rem; }

  /* Schema grid – v emoce.css padá na 1 sloupec ≤640px; jen sjednocení spacingu */
  .schema-card{ padding: 1rem; }

  /* Accordion – kompaktnější vnitřky */
  .acc-trigger.phase-card{ padding: .9rem 1rem; }
  .acc-trigger.phase-card h4{ font-size: 1rem; }
  .acc-trigger.phase-card p{ font-size: .9rem; }
  .acc-panel.open{ padding: 1rem; }

  /* Tabulky – horizontální scroll bez rozbití layoutu */
  .info-table{
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Ukázky AIDY – media grid vždy jeden sloupec, karty do šířky */
  .media-grid{
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    justify-items: center;
  }
  .media-card{ width: min(100%, 640px); }
  .media-thumb{ aspect-ratio: var(--ar, 16/9); } /* JS doplňuje reálný poměr */

  /* Reviews – mobilní úpravy (pokud je sekce na stránce) */
  #reviews{
    --card-phone: 92%;
    --track-pad: 3.4rem;
  }
  #reviews .carousel-track{ padding: 0 var(--track-pad) 1rem; gap: 20px; }
  #reviews .review-card{
    min-width: var(--card-phone); max-width: var(--card-phone);
  }
  #reviews .review-text{ -webkit-line-clamp: 7; }
  #reviews .carousel-btn{ width: 40px; height: 40px; font-size: 1.2rem; }
  #prevBtn{ left: max(8px, env(safe-area-inset-left)); }
  #nextBtn{ right: max(8px, env(safe-area-inset-right)); }

  /* Footer – kompaktnější */
  .footer-orange{ padding: 1.2rem .75rem; font-size: .9rem; }
}

/* -------------------------- TABLETS (600–899px) -------------------------- */
@media (min-width: 600px) and (max-width: 899px){

  /* Container – širší, ale s bezpečnými okraji */
  .container{
    width: 100%;
    max-width: min(1100px, 94vw);
    padding-left: clamp(16px, 3.4vw, 28px);
    padding-right: clamp(16px, 3.4vw, 28px);
  }

  /* Nadpisy – střední stupnice */
  h1{ font-size: clamp(2.2rem, 5.6vw, 2.8rem); }
  h2{ font-size: clamp(2rem, 5vw, 2.4rem); }
  .subheading{ font-size: clamp(1.25rem, 3.6vw, 1.5rem); }

  .intro{ max-width: 85%; font-size: 1.1rem; }

  /* Karty – trochu víc vzduchu než na mobilu */
  .highlight{ padding: 1.2rem 1.25rem; }

  /* Pilulka – ne úplně přes celou */
  .pill-link{ max-width: 70%; }

  /* Profil – obrázek ~45 % */
  .profile{ gap: 1.4rem; }
  .profile-img{ max-width: 45% !important; }

  /* Video – hezký rámeček, ne přes celou */
  .video-center video{ max-width: 90%; }

  /* Media grid – 2 sloupce */
  .media-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 1.25rem;
  }

  /* Reviews – karty širší než na mobilu */
  #reviews{
    --card-tablet: 70%;
    --track-pad: 4.2rem;
  }
  #reviews .review-card{
    min-width: var(--card-tablet); max-width: var(--card-tablet);
  }
  #reviews .review-text{ -webkit-line-clamp: 6; }
  #reviews .carousel-btn{ width: 46px; height: 46px; font-size: 1.5rem; }
}

/* -------------------------- DOPLŇKY A POJISTKY -------------------------- */

/* Tlačítka – respekt k reduced motion (globálně) */
@media (prefers-reduced-motion: reduce){
  .btn, .done-btn, .big-next,
  .btn-hero, .btn-hero::before{
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* Bezpečné okraje pro iOS (notch) pro absolutní prvky – obecná pojistka */
@supports (padding: max(0px)) {
  @media (max-width: 899px){
    .safe-inline-pad{
      padding-left: max(16px, env(safe-area-inset-left));
      padding-right: max(16px, env(safe-area-inset-right));
    }
  }
}
/* ===================== BUTTONS – PHONES & TABLETS ===================== */

/* Helper: ať wrapper centrování opravdu uplatní na inline-flex odkazy */
.done-wrap,
.btn-wrap {
  text-align: center;
}

/* ---------- Phones (<= 599px) ---------- */
@media (max-width: 599px){
  /* Základ pro všechna tlačítka (kotvy i buttony) */
  .btn,
  .done-btn,
  .btn-full,
  .big-next,
  .btn-hero,
  .btn-pulse-soft,
  a.btn,
  a.done-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    /* rozumný rozměr bez „vobrů“ */
    padding: clamp(10px, 2.6vh, 12px) clamp(14px, 5vw, 18px);
    font-size: clamp(.95rem, 4.4vw, 1.05rem);
    line-height: 1.2;
    min-height: 44px;            /* tap target */
    border-radius: 999px;

    /* výchozí šířka = podle obsahu */
    width: auto;
    max-width: 100%;
    margin-inline: auto;         /* centrování */
    white-space: nowrap;         /* kompaktní CTA */
  }

  /* Velká CTA na 50 % šířky (ale nepřes 360 px) */
  .big-next,
  .btn-hero,
  .btn-pulse-soft {
    width: min(50%, 360px);
  }

  /* Utility – přebijí výchozí chování, když potřebuješ jinak */
  .btn--auto { width: auto !important; }
  .btn--half { width: 50% !important; }
  .btn--full { width: 100% !important; }

  /* Když je víc tlačítek pod sebou */
  .btn-group {
    display: grid;
    gap: 10px;
    justify-items: center;
  }
}

/* ---------- Tablets (600–899px) ---------- */
@media (min-width: 600px) and (max-width: 899px){
  .btn,
  .done-btn,
  .btn-full,
  .big-next,
  .btn-hero,
  .btn-pulse-soft,
  a.btn,
  a.done-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 20px;
    font-size: clamp(1rem, 2.6vw, 1.1rem);
    line-height: 1.2;
    min-height: 44px;
    border-radius: 999px;

    width: auto;
    max-width: 100%;
    margin-inline: auto;
    white-space: nowrap;
  }

  /* Velká CTA drž na 50 % (působí „hero“, ale ne přes celou) */
  .big-next,
  .btn-hero,
  .btn-pulse-soft {
    width: min(50%, 420px);
  }

  /* Utility */
  .btn--auto { width: auto !important; }
  .btn--half { width: 50% !important; }
  .btn--full { width: 100% !important; }

  .btn-group {
    display: grid;
    grid-auto-flow: row;
    gap: 12px;
    justify-items: center;
  }
}
