/* =========================================================================
   aloo — Nápověda (help.aloo.cz)
   Sdílí vizuální jazyk webu: světlý podklad, Poppins, černé nadpisy.
   Samostatný stylopis (nezávislý na css/styles.css hlavního webu).
   ========================================================================= */

:root {
  --ink:        #000000;
  --text:       rgba(0,0,0,.72);
  --muted:      rgba(0,0,0,.51);
  --muted-2:    rgba(0,0,0,.38);
  --white:      #ffffff;
  --surface:    #f6f7f9;
  --line:       rgba(0,0,0,.10);
  --accent:     #4a80d6;
  --dark:       #000000;
  --dark-muted: #9b9ca1;
  --radius:     16px;
  --radius-sm:  10px;
  --maxw:       1180px;
  --gutter:     clamp(20px, 5vw, 48px);
  --shadow:     0 18px 50px rgba(0,0,0,.10);
  --ease:       cubic-bezier(.4,.14,.3,1);
  --ff-sans:    "Poppins", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; font-family: var(--ff-sans); font-size: 16px; line-height: 1.75;
  color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-sans); font-weight: 700; color: var(--ink); line-height: 1.2; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Header ---------- */
.help-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.help-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.help-header__brand { display: flex; align-items: center; gap: 12px; }
.help-header__brand img { width: 104px; height: auto; }
.help-header__tag { font-size: .82rem; font-weight: 600; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; }
.help-header__actions { display: flex; align-items: center; gap: 20px; }
/* Jazykový přepínač — rozbalovací roleta (<details>) */
.lang-select { position: relative; }
.lang-select > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .86rem; font-weight: 600; letter-spacing: .03em; color: var(--ink);
  transition: border-color .2s var(--ease);
}
.lang-select > summary::-webkit-details-marker { display: none; }
.lang-select > summary::marker { content: ""; }
.lang-select > summary:hover { border-color: var(--ink); }
.lang-select__chev { width: 12px; height: 12px; flex: none; transition: transform .2s var(--ease); }
.lang-select[open] .lang-select__chev { transform: rotate(180deg); }
.lang-select__menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 170px; background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); padding: 6px;
  display: flex; flex-direction: column; max-height: 62vh; overflow-y: auto;
}
.lang-select__menu a {
  padding: 9px 12px; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--muted);
  white-space: nowrap; transition: background .15s var(--ease), color .15s var(--ease);
}
.lang-select__menu a:hover { background: var(--surface); color: var(--ink); }
.lang-select__menu a.is-current { color: var(--ink); font-weight: 600; }
.lang-select__menu a.is-current::after { content: "✓"; float: right; margin-left: 14px; color: var(--muted-2); }
.lang-flag { display: inline-block; width: 19px; height: 13px; margin-right: 9px; border-radius: 2px; background-size: cover; background-position: center; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.lang-select > summary .lang-flag { margin-right: 0; }
.flag-cz { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4'%3E%3Crect width='6' height='4' fill='%23fff'/%3E%3Crect y='2' width='6' height='2' fill='%23d7141a'/%3E%3Cpath d='M0 0 3 2 0 4z' fill='%2311457e'/%3E%3C/svg%3E"); }
.flag-gb { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3Crect width='60' height='30' fill='%23012169'/%3E%3Cpath d='M0 0 60 30M60 0 0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0 60 30M60 0 0 30' stroke='%23C8102E' stroke-width='2'/%3E%3Crect x='25' width='10' height='30' fill='%23fff'/%3E%3Crect y='10' width='60' height='10' fill='%23fff'/%3E%3Crect x='27' width='6' height='30' fill='%23C8102E'/%3E%3Crect y='12' width='60' height='6' fill='%23C8102E'/%3E%3C/svg%3E"); }
.flag-pl { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 4'%3E%3Crect width='6' height='4' fill='%23fff'/%3E%3Crect y='2' width='6' height='2' fill='%23dc143c'/%3E%3C/svg%3E"); }
.flag-de { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3'%3E%3Crect width='6' height='1' fill='%23000'/%3E%3Crect y='1' width='6' height='1' fill='%23dd0000'/%3E%3Crect y='2' width='6' height='1' fill='%23ffce00'/%3E%3C/svg%3E"); }
.help-header__back { font-size: .92rem; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.help-header__back:hover { color: var(--ink); }
.help-header__back svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.help-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.help-hero h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.01em; }
.help-hero p { margin-top: 16px; font-size: 1.06rem; color: var(--muted); max-width: 34em; }

/* ---------- Layout: sidebar + content ---------- */
.help-layout {
  display: grid; grid-template-columns: 248px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px); align-items: start;
  padding-bottom: clamp(56px, 8vw, 96px);
}
.help-nav { position: sticky; top: 96px; }
.help-nav__title { font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.help-nav a {
  display: block; padding: 7px 12px; border-radius: 9px;
  font-size: .94rem; color: var(--muted); border-left: 2px solid transparent;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.help-nav a:hover { background: var(--surface); color: var(--ink); }
.help-nav a.is-active { color: var(--ink); font-weight: 600; background: var(--surface); border-left-color: var(--ink); }

/* ---------- Content ---------- */
.help-content { min-width: 0; }
.help-section { padding-top: 8px; margin-bottom: clamp(40px, 6vw, 64px); }
.help-section > h2 {
  font-size: 1.55rem; padding-bottom: 12px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line); scroll-margin-top: 96px;
}
.help-section h3 { font-size: 1.12rem; margin: 26px 0 10px; }
.help-section p { margin-bottom: 12px; }
.help-section p + h3 { margin-top: 30px; }

.help-list { margin: 8px 0 16px; display: flex; flex-direction: column; gap: 8px; }
.help-list li { position: relative; padding-left: 24px; color: var(--text); }
.help-list li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent);
}
.help-list li strong { color: var(--ink); font-weight: 600; }

/* Kroky (číslované) */
.help-steps { counter-reset: step; margin: 10px 0 18px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.help-steps li { position: relative; padding-left: 44px; min-height: 30px; }
.help-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 30px; height: 30px;
  background: var(--ink); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-size: .86rem; font-weight: 600;
}
.help-steps li strong { color: var(--ink); font-weight: 600; }

/* Callout */
.help-note, .help-warn {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius-sm);
  margin: 16px 0; font-size: .95rem; background: var(--surface); border: 1px solid var(--line);
}
.help-note svg, .help-warn svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.help-note { border-left: 3px solid var(--accent); }
.help-warn { border-left: 3px solid #e0a200; background: #fdf7e8; border-color: #f0e2b8; }
.help-note strong, .help-warn strong { color: var(--ink); }

/* Karty (rychlé odkazy na začátku) */
.help-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 8px 0 8px; }
.help-card {
  display: block; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.help-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.help-card__ico { width: 34px; height: 34px; color: var(--ink); margin-bottom: 10px; }
.help-card__ico svg { width: 100%; height: 100%; }
.help-card h3 { font-size: 1rem; margin-bottom: 4px; }
.help-card p { font-size: .86rem; color: var(--muted); }

/* FAQ (accordion) */
.help-faq { border-top: 1px solid var(--line); }
.help-faq details { border-bottom: 1px solid var(--line); }
.help-faq summary {
  list-style: none; cursor: pointer; padding: 16px 40px 16px 0; position: relative;
  font-weight: 600; color: var(--ink); font-size: 1.02rem;
}
.help-faq summary::-webkit-details-marker { display: none; }
.help-faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  transform: translateY(-50%); transition: transform .25s var(--ease);
  background: no-repeat center/contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}
.help-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.help-faq details > div { padding: 0 0 18px; color: var(--muted); font-size: .98rem; }

/* Download badges */
.help-download { display: flex; gap: 14px; flex-wrap: wrap; margin: 18px 0 8px; }
.help-download img { height: 52px; width: auto; transition: transform .2s var(--ease); }
.help-download a:hover img { transform: translateY(-2px); }

/* ---------- Footer ---------- */
.help-footer { background: var(--dark); color: var(--dark-muted); padding: 40px 0; }
.help-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.help-footer__brand { display: flex; align-items: center; gap: 14px; }
.help-footer__brand img { width: 92px; }
.help-footer a { color: var(--dark-muted); }
.help-footer a:hover { color: #fff; }
.help-footer__links { display: flex; gap: 22px; flex-wrap: wrap; font-size: .92rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .help-layout { grid-template-columns: 1fr; gap: 24px; }
  .help-nav {
    position: static; top: auto; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  }
  .help-nav__inner { display: flex; flex-wrap: wrap; gap: 4px; }
  .help-nav a { border-left: none; }
  .help-nav a.is-active { border-left: none; }
}
@media (max-width: 520px) {
  .help-header__tag { display: none; }
  .help-header__actions { gap: 12px; }
  .help-header__back-txt { display: none; }
  .help-footer__inner { flex-direction: column; align-items: flex-start; }
}
