

* {
  font-variant-ligatures: none;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}



.container {
  max-width: 100%;
  overflow: visible;
}
/* ===== COLOR SYSTEM ===== */
:root {
  --bg: #fafafa;
  --text: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;
  --card-bg: #ffffff;
  --border: rgba(0,0,0,0.08);
  --link: #444444;
  --link-hover: #000000;
  --font-size: 16px;

  --cal-bg: #f6f7fb;
  --cal-card: #ffffff;
  --cal-text: #1a1a1a;
  --cal-border: #e6eaf0;
  --cal-accent: #6b5cff;

  --share-bg: #111;
  --share-text: #fff;

  --sub-bg: #ffffff;
  --sub-border: rgba(0,0,0,0.08);
  --sub-input-bg: #ffffff;
  --sub-input-border: rgba(0,0,0,0.12);
  --sub-input-text: #111111;
  --sub-placeholder: #999999;
  --sub-button-bg: #111111;
  --sub-button-text: #ffffff;
  --sub-status: #555555;
  --sub-focus: rgba(0,0,0,0.05);
}

:root[data-theme="dark"] {
  --bg: #0f1115;
  --text: #e6e8eb;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --card-bg: #161820;
  --border: rgba(255,255,255,0.07);
  --link: #cccccc;
  --link-hover: #ffffff;

  --cal-bg: #12131a;
  --cal-card: #1e2030;
  --cal-text: #e8eaf6;
  --cal-border: rgba(255,255,255,0.08);
  --cal-accent: #8c7dff;

  --share-bg: #f5f6f8;
  --share-text: #111;

  --sub-bg: #161820;
  --sub-border: rgba(255,255,255,0.07);
  --sub-input-bg: #1e2030;
  --sub-input-border: rgba(255,255,255,0.10);
  --sub-input-text: #f5f5f5;
  --sub-placeholder: #666666;
  --sub-button-bg: #f5f5f5;
  --sub-button-text: #111111;
  --sub-status: #aaaaaa;
  --sub-focus: rgba(255,255,255,0.06);
}


/* DARK */


/* AUTO */

/* ===== BASE ===== */
body {
    margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: var(--font-size);
    font-display: swap;
      -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
    overflow-x: hidden;
      font-synthesis: none;
  text-rendering: geometricPrecision;
    font-size-adjust: none;
      padding-bottom: 80px;
}

/* text hierarchy */
p {
  color: var(--text-secondary);
}

small,
.meta,
.date {
  color: var(--text-muted);
}


main, .container, .card {
  contain: layout paint;
}

/* odkazy */
a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}



.date {
  font-size: 0.8rem;
  opacity: 0.5;
  margin-bottom: 2.5rem;
}

a, button {
  -webkit-touch-callout: none;
}

a svg, button svg {
  -webkit-user-drag: none;
  user-select: none;
}

#word::selection {
  background: rgba(0,0,0,0.1);
}


button, svg, a {
  -webkit-tap-highlight-color: transparent;
}

svg {
  pointer-events: none;
}
/* ===== LAYOUT ===== */
main {
  padding: 2rem 1.2rem 3rem;
}



/* ===== QUOTE ===== */
#word {
  color: var(--text);
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  line-height: 1.75;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* první písmeno */
#word::first-letter {
  font-size: 1.4em;
}

/* ===== AUTHOR ===== */
.author {
  color: var(--text-muted);
}

/* ===== ACTIONS ===== */

/* =========================
   BASE SHARE LAYOUT
========================= */

.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;

  gap: 14px;
}

/* desktop container */
.share-desktop {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =========================
   ICON BUTTON (DESKTOP)
========================= */

.share-btn {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.share-btn svg {
  position: absolute;
  width: 18px;
  height: 18px;
  transition: 0.2s ease;
}

.icon-copy {
  opacity: 1;
}

.icon-check {
  opacity: 0;
  transform: scale(0.6);
}

.share-btn.is-copied .icon-copy {
  opacity: 0;
  transform: scale(0.6);
}

.share-btn.is-copied .icon-check {
  opacity: 1;
  transform: scale(1);
}

.is-copied {
  transform: scale(0.98);
  opacity: 0.9;
}
/* =========================
   MOBILE PRIMARY BUTTON
========================= */

.share-mobile {
  display: none;
}

/* MOBILE */
@media (max-width: 768px) {

  .share-mobile {
    display: flex;

    width: fit-content;

    margin: 24px auto; /* 🔥 klíč: vertikální i horizontální centrování */

    padding: 12px 18px;
    border-radius: 999px;

  background: var(--share-bg);
    color: var(--share-text);

    font-weight: 600;

    border: none;
    cursor: pointer;

    align-items: center;
    justify-content: center;

    position: relative;
  }
  /* hover */
.share-mobile:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(107, 92, 255, 0.35);
}

/* active */
.share-mobile:active {
  transform: scale(0.96);
}

/* focus */
.share-mobile:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}


}


/* =========================
   MOBILE RULES
========================= */

@media (max-width: 768px) {

  .share-desktop {
    display: none;
  }


}

/* =========================
   DARK MODE IMPROVEMENT
========================= */

html[data-theme="dark"] .share-btn {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

html[data-theme="dark"] .share-btn:hover {
  background: rgba(255,255,255,0.07);
}
/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 1.2rem;
  height: 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav a {
  display: inline-block;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
}

.nav nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav a.active {
  color: var(--text);
  background: rgba(0,0,0,0.06);
}

.nav a:hover {
  background: rgba(0,0,0,0.05);
}

html[data-theme="dark"] .nav a.active {
  background: rgba(255,255,255,0.08);
}

html[data-theme="dark"] .nav a:hover {
  background: rgba(255,255,255,0.05);
}


/* karta */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3em;
  max-width: 1100px;
  margin: 0 auto;
  overflow: visible;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
 
.day-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 4rem;
  font-size: 0.9rem;
  opacity: 0.6;
}

.day-nav a {
  text-decoration: none;
  color: var(--text);
    padding: 4px 6px;
}

.day-nav a:hover {
  opacity: 1;
}

.day-nav a.active {
  opacity: 1;
  font-weight: 500;
}

/* layout */
.share {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 2rem;
}

/* base */


.share-btn:hover {
  opacity: 1;
  transform: none;
}



/* brand hover */
.share-btn[aria-label="Facebook"]:hover { color: #1877f2; }
.share-btn[aria-label="Messenger"]:hover { color: #0084ff; }
.share-btn[aria-label="WhatsApp"]:hover { color: #25d366; }

/* dark */


/* ===== CONTROLS ===== */
.controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.control-group {
  display: flex;
  gap: 6px;
}

/* base button */
.control-btn {
  background: transparent;
  border: none;
  color: rgb(88, 86, 86);;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* hover */
.control-btn:hover {
  background: rgba(0,0,0,0.05);
}

/* active state */
.control-btn.active {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.15);
}

/* click feedback */
.control-btn:active {
  transform: scale(0.95);
}

.modus {
  background: transparent;
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* hover */
.modus:hover {
  background: rgba(0,0,0,0.05);
}

/* active state */
.modus.active {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.15);
}

/* click feedback */
.modus:active {
  transform: scale(0.95);
}



/* ===== FONT SIZE ===== */
/* velikosti */
body[data-font="small"] {
  --font-size: 14px;
}

body[data-font="medium"] {
  --font-size: 16px;
}

body[data-font="large"] {
  --font-size: 18px;
}
/* ===== MOBILE ===== */
@media (max-width: 600px) {
  main {
    padding: 1.2rem 1rem 2rem;
  }

  #word {
    font-size: 1.8rem;
    margin-bottom: 1em;
  }
}
/*kontaktní formulář*/

/* sekce */
.form-section {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
    border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 32px;

}

/* nadpis */
.section-title {
  margin-bottom: 12px;
  font-weight: 500;
  opacity: 0.8;
}

/* card */
.form-card {
  width: 100%;
  max-width: 420px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.06);
}



/* dark mode */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.form-group {
  display: flex;
}

/* inputs */


form {
  max-width: 420px;
  margin: 4rem auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

input,
textarea {
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 10px 4px;
  font-size: 0.95rem;
  background: transparent;
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: none;
  border-bottom: 1px solid #999;
}

/* button */
form button {
  margin-top: 10px;
  padding: 10px;
  border: none;
  background: none;
  border-bottom: 1px solid var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.7;
}

form button:hover {
  opacity: 1;
}
/*noční režim formuláře*/


[data-theme="dark"] {


  --fb: #2d88ff;
  --fb-hover: #1b74e4;

  --wa: #2fe36e;
  --wa-hover: #25c25f;

  --copy: #aaa;
  --copy-hover: #fff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg-btn: #1e1e1e;
    --text-btn: #ddd;
  }
}

.ui-btn {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  border: none;
  background: transparent;
  cursor: pointer;

  position: relative;
  padding: 0;
}

/* ICON WRAPPER */
.share-btn {
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;
  line-height: 0;
  position: relative;
}

/* SVG sjednocení */
.share-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  fill: none;
}

/* COPY overlay */
.copy-btn {
  position: relative;
}

.copy-btn .icon-copy,
.copy-btn .icon-check {
  position: absolute;
  inset: 0;
  margin: auto;
}

/* default state */
.icon-copy {
  opacity: 1;
  transform: scale(1);
  transition: 0.15s ease;
}

.icon-check {
  opacity: 0;
  transform: scale(0.6);
  transition: 0.15s ease;
}

/* clicked state */
.copy-btn.copied .icon-copy {
  opacity: 0;
  transform: scale(0.6);
}

.copy-btn.copied .icon-check {
  opacity: 1;
  transform: scale(1);
}/* default stav */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ===== CONTAINER ===== */
/*kalendář */
* {
  box-sizing: border-box;
}.calendar {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 1100px;
    flex-direction: column;
    align-items: center; /* 🔥 důležité */
    overflow: visible;
}

.cal-header {
  display: grid;
  align-items: center;

  width: 100%;
  max-width: 1100px;
  margin: 0 auto 10px;

  height: 52px;
  box-sizing: border-box;

  /* ❌ tohle dělá problémy */
  /* contain: layout paint; */

  position: relative;
  text-align: center;
    grid-template-columns: auto 1fr auto;
  padding: 0 12px;
} 


.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(6px, 1.2vw, 14px);

  width: 100%;
  max-width: 1100px;
  margin: 0 auto;

  padding: clamp(8px, 2vw, 20px);

  box-sizing: border-box;
    contain: layout paint;
    z-index: 1;
     position: relative;
     .cal-grid {
  touch-action: pan-y;
}
}

.cal-grid .day {
  aspect-ratio: 1 / 1;
  width: 100%;
  min-height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: clamp(12px, 1.6vw, 16px);

  border-radius: clamp(8px, 1.5vw, 14px);

  text-decoration: none;

  user-select: none;
  -webkit-tap-highlight-color: transparent;

  transition: transform 0.15s ease, background 0.15s ease;
  
}
.cal-grid .day.today {
  border: 2px solid var(--cal-accent);
  background: rgba(107, 92, 255, 0.08);
  font-weight: 600;
}

.cal-grid .day.selected {
  background: var(--cal-accent);
  color: #fff;
  font-weight: 600;
  transform: scale(1.03);
}

.day.selected {
  background: #000;
  color: #fff;
}

.day.today {
  outline: 2px solid #999;
}
/* =========================
   📱 MOBILE (default)
   ========================= */

/* nic víc netřeba – už optimalizované */

/* =========================
   📲 TABLET
   ========================= */
@media (min-width: 640px) {
  .cal-grid {
    gap: 12px;
    padding: 14px;
  }

  .cal-grid .day {
    font-size: 14px;
    border-radius: 14px;
  }
}

/* =========================
   💻 DESKTOP
   ========================= */
@media (min-width: 1024px) {
  .cal-grid {
    gap: 18px;
    padding: 20px;
  }

  .cal-grid .day {
    font-size: 16px;
    border-radius: 16px;
  }

  #calendar {
     width: 100%;
  min-height: 300px;
  }
}

.footer {
  text-align: center;
}

.btn-send.primary {
  background: #c49b3f; /* zlatá - liturgický vibe */
  color: #111;
  border: none;
  padding: 14px 24px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-send.primary:hover {
  background: #e0b94f;
  transform: translateY(-1px);
}

.btn-send.primary:active {
  transform: scale(0.97);
}



/* ===== TOAST BASE ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(20px) scale(0.95);

  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(10px);

  opacity: 0;
  pointer-events: none;

  transition: all 0.25s ease;

  z-index: 99999;
}


@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* dark mode */
html[data-theme="dark"] .toast {
  background: rgba(255,255,255,0.12);
}
/* ===== RESPONSIVE PATCH ===== */

/* 1. GLOBAL FIX */
* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

/* 2. MAIN WIDTH CONTROL */
main.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* 3. NAV – mobile fix */
@media (max-width: 768px) {
  .nav-inner {
    height: auto;
    padding: 10px 1rem;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav nav {
    flex-wrap: wrap;
    gap: 4px;
    order: 2;
    width: 100%;
  }

  .controls {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .logo {
    order: 1;
  }
}

/* 4. CARD – menší padding na mobilu */
@media (max-width: 600px) {
  .card {
    padding: 1.5em;
    border-radius: 14px;
  }
}

/* 5. TEXT – škálování (definováno v #word výše) */



/* 7. DAY NAV – přetečení fix */
.day-nav {
  flex-wrap: wrap;
  gap: 12px;
}
/*přepínání mezi měsíci*/

body[data-theme="dark"] .cal-header {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,0.06);
}

/* měsíc uprostřed */
#month {
  flex: 1;
  text-align: center;

  font-size: clamp(14px, 2vw, 18px);
  font-weight: 600;

  text-transform: capitalize;
}



/* tlačítka */
.cal-header button {
  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  flex-shrink: 0;

  border-radius: 10px;

    color: inherit;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;

  display: grid;
  place-items: center;
    z-index: 20;
      position: relative;

  width: 40px;
  height: 40px;
  justify-self: center; /* centrování v gridu */
}





.cal-header button:hover {
  color: var(--cal-text);
  border-color: var(--cal-border);
}


/* svg styling */
.cal-header svg {
   display: block;
  width: 18px;
  height: 18px;

  stroke: var(--cal-text);
  fill: none;
    pointer-events: none;
}


@supports (backdrop-filter: blur(8px)) {
  .cal-header {
    backdrop-filter: blur(8px);
  }
}
/*tlačítko zapojit se dnes*/

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 16px;
  padding: 12px 18px;

  border-radius: 12px;
  text-decoration: none;

  background: var(--cal-accent);
  color: #fff;
  font-weight: 600;
  font-size: 14px;

  transition: all 0.2s ease;
}

/* hover */
.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(107, 92, 255, 0.25);
}

/* active */
.cta-btn:active {
  transform: scale(0.97);
}
/*sdílení na mobilu*/


/* mobil */
/* default = skryté */




.share-center-mobile {
  display: none;
}



@media (max-width: 768px) {
  .share-center-mobile {
    display: flex;
    justify-content: center;
    margin: 20px 0;
  }
}
/* formulář pro posílání slova na den */


/* ===== SUBSCRIBE ===== */

.subscription-box{

  max-width:460px;
  margin:0 auto;

  display:flex;
  flex-direction:column;
  gap:14px;

  padding:28px;

  background:var(--sub-bg);

  border:1px solid var(--sub-border);

  border-radius:24px;
}

.subscription-box input{

  width:100%;

  padding:16px 18px;

  background:var(--sub-input-bg);

  color:var(--sub-input-text);

  border:1px solid var(--sub-input-border);

  border-radius:14px;

  font-size:1rem;

  transition:.2s ease;

  box-sizing:border-box;
}

.subscription-box input::placeholder{
  color:var(--sub-placeholder);
}

.subscription-box input:focus{

  outline:none;

  box-shadow:
    0 0 0 4px var(--sub-focus);
}

.subscription-box button{

  width:100%;

  padding:16px 20px;

  border:none;
  border-radius:14px;

  background:var(--sub-button-bg);

  color:var(--sub-button-text);

  font-size:1rem;
  font-weight:600;

  cursor:pointer;

  transition:.2s ease;
}

.subscription-box button:hover{

  transform:translateY(-1px);

  opacity:.94;
}

#status{

  margin-top:6px;

  text-align:center;

  font-size:.95rem;
  font-weight:500;

  color:var(--sub-status);
}

/* ===== MOBILE ===== */

@media (max-width:640px){

  .subscription-box{
    padding:22px;
    border-radius:20px;
  }

}

.subscribe-section{
  padding:40px 20px 20px;
}

.share-buttons{
  margin-top:10px;
}

/* ===== tlačítko pro stažení aplikace ===== */

.tlacitko-aplikace {
  display:inline-block;
  background:#C5893C;color: #0f1115;
  padding:13px 26px;
  border-radius:10px;
  border:none;
  cursor:pointer;
  text-decoration:none;
  font-family:Georgia,serif;
  font-size:16px;font-weight:600;
}

.ios-install-hint {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

/* ===== SHARE MODAL ===== */

.share-modal {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 9999;
  align-items: flex-end;
  justify-content: center;
}

.share-modal.is-open {
  display: flex;
}

.share-modal-backdrop {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, 0.45);
}

.share-modal-box {
  position: relative;
  background: var(--card-bg);
  border-radius: 20px 20px 0 0;
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 480px;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.18);
}

.share-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
}

.share-modal-title {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 24px;
  text-align: center;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 4px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s;
}

.share-option:active {
  background: var(--border);
}

.share-option-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.share-option-icon svg {
  width: 28px;
  height: 28px;
}

#share-opt-wa .share-option-icon { background: #25d366; color: #fff; }
#share-opt-sms .share-option-icon { background: #5ac8fa; color: #fff; }
#share-opt-fb .share-option-icon { background: #1877f2; color: #fff; }
#share-opt-install .share-option-icon { background: var(--primary, #6b5cff); color: #fff; }

.share-option-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  line-height: 1.3;
}

/* ===== INSTALL MODAL ===== */

.install-modal {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  align-items: flex-end;
  justify-content: center;
}

.install-modal.is-open {
  display: flex;
}

.install-modal-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.45);
}

.install-modal-box {
  position: relative;
  background: var(--card-bg);
  border-radius: 20px 20px 0 0;
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-width: 480px;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.18);
}

.install-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
}

.install-modal-title {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 20px;
}

.install-guide-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 10px;
}

.install-guide ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.9;
}

.install-guide-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== PWA / MOBILNÍ APLIKACE ===== */

/* Safe area pro iPhone (výřez + domů lišta) */
:root {
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Na mobilu zvětší spodní padding pro bottom nav */
@media (max-width: 768px) {
  body {
    padding-bottom: calc(68px + var(--safe-bottom));
  }
}

/* ===== SPODNÍ NAVIGACE ===== */

.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding-bottom: var(--safe-bottom);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 0 11px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s;
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bottom-nav-item.active {
  color: var(--cal-accent);
}

.bottom-nav-item:active {
  opacity: 0.7;
}

/* Na mobilu: zjednodušit horní header — schovat nav + controls */
@media (max-width: 768px) {
  .nav nav { display: none; }
  .controls { display: none; }
}

/* ===== NASTAVENÍ PANEL (SLIDE-UP) ===== */

.settings-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}

.settings-sheet.open {
  visibility: visible;
  pointer-events: auto;
}

.settings-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.settings-sheet.open .settings-overlay {
  opacity: 1;
}

.settings-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-bg);
  border-radius: 24px 24px 0 0;
  padding: 16px 24px calc(28px + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.settings-sheet.open .settings-panel {
  transform: translateY(0);
}

.settings-sheet-handle {
  width: 36px;
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  margin: 0 auto 22px;
}

.settings-sheet-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 18px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.settings-row:last-child {
  border-bottom: none;
}

.settings-label {
  font-size: 15px;
  color: var(--text);
  font-weight: 400;
}

body.sheet-open {
  overflow: hidden;
}

/* ===== O PROJEKTU ===== */

.about-card {
  max-width: 680px;
}

.about-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 500;
  margin: 0 0 1.4rem;
  color: var(--text);
}

.about-intro {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  line-height: 1.8;
  font-style: italic;
  color: var(--text-secondary);
  margin: 0;
}

.about-divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

.about-section {
  margin-bottom: 1.8rem;
}

.about-section p {
  margin: 0.5rem 0 0;
  line-height: 1.75;
}

.about-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin: 0 0 0.6rem;
}

.about-steps {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-steps li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(107, 92, 255, 0.1);
  color: var(--cal-accent);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-cta {
  text-align: center;
  padding-top: 0.5rem;
}

/* PWA standalone – skrýt kontaktní formulář, WhatsApp odběr a instalační tlačítka */
@media (display-mode: standalone) {
  .form-section,
  .suscribe-section,
  #btn-install,
  #share-opt-install {
    display: none;
  }
}
.pwa .form-section,
.pwa .suscribe-section,
.pwa #btn-install,
.pwa #share-opt-install {
  display: none;
}