/* ══════════════════════════════════════════════════════════════
   FotoCRM — supporting pages (kontakt, faq, changelog, legal, content)
   Reuses fluent-tokens.css + styles.css. Load after both.
   ══════════════════════════════════════════════════════════════ */

/* ── Page hero (compact) ─────────────────────────────── */
.phero { padding: 64px 0 40px; background: linear-gradient(180deg, #fff, var(--page-soft)); border-bottom: 1px solid var(--hairline); }
.phero-inner { max-width: 760px; }
.phero.center .phero-inner { margin: 0 auto; text-align: center; }
.phero h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; margin: 16px 0 0; }
.phero p { font-size: 18px; color: var(--ink-2); margin: 16px 0 0; line-height: 1.55; text-wrap: pretty; }
.phero.center p { margin-left: auto; margin-right: auto; max-width: 620px; }

.page-main { padding: 56px 0 90px; }

/* breadcrumb */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs svg { width: 14px; height: 14px; }

/* ══════════ CONTACT ══════════ */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: start; }
.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.ci-card { background: #fff; border: 1px solid var(--hairline); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-2); }
.ci-card h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 16px; }
.ci-item { display: flex; gap: 13px; padding: 11px 0; }
.ci-item + .ci-item { border-top: 1px solid var(--stroke-subtle); }
.ci-ic { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--accent-selected); color: var(--accent); border: 1px solid rgba(15,108,189,.16); }
.ci-ic svg { width: 19px; height: 19px; }
.ci-l { font-size: 12px; color: var(--ink-3); }
.ci-v { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 1px; }
.ci-v.mono { font-weight: 500; }
.ci-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ci-stat { background: var(--bg-2); border: 1px solid var(--hairline); border-radius: 12px; padding: 16px; }
.ci-stat-v { font-family: var(--font-mono); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.ci-stat-v .u { font-size: 14px; color: var(--ink-3); }
.ci-stat-l { font-size: 12.5px; color: var(--ink-2); margin-top: 5px; line-height: 1.35; }
.ci-stat.ok .ci-stat-v { color: var(--emerald); }

/* form */
.cform { background: #fff; border: 1px solid var(--hairline); border-radius: 18px; padding: 30px; box-shadow: var(--shadow-2); }
.cform h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 4px; }
.cform .cform-sub { font-size: 14.5px; color: var(--ink-2); margin: 0 0 24px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field label .req { color: var(--ink-3); font-weight: 400; }
.input, .select, .textarea {
  font-family: var(--font-sans); font-size: 15px; color: var(--ink);
  background: #FCFCFD; border: 1px solid var(--stroke-2);
  border-radius: 10px; padding: 12px 13px; width: 100%;
  transition: border-color var(--duration-fast) var(--ease-easy), box-shadow var(--duration-fast) var(--ease-easy), background var(--duration-fast) var(--ease-easy);
}
.input::placeholder, .textarea::placeholder { color: var(--fg-disabled); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--stroke-1); }
.input:focus, .select:focus, .textarea:focus { outline: none; background: #fff; border-color: var(--brand-100); box-shadow: 0 0 0 3px rgba(15,108,189,.10); }
.textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; cursor: pointer; }
.field .hint { font-size: 12px; color: var(--ink-3); }
.cform-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; flex-wrap: wrap; }
.cform-note { font-size: 12.5px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 6px; }
.cform-note svg { width: 14px; height: 14px; color: var(--emerald); }
.form-ok { display: none; align-items: center; gap: 10px; background: var(--emerald-bg); border: 1px solid var(--emerald-border); color: #075e3f; border-radius: 12px; padding: 14px 16px; font-size: 14.5px; font-weight: 500; margin-top: 18px; }
.form-ok.show { display: flex; }
.form-ok svg { width: 20px; height: 20px; color: var(--emerald); flex: none; }

@media (max-width: 820px){ .contact-grid { grid-template-columns: 1fr; } .frow { grid-template-columns: 1fr; gap: 0; } }

/* ══════════ FAQ ══════════ */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-search { position: relative; margin-bottom: 24px; }
.faq-search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); }
.faq-search input { width: 100%; font-family: var(--font-sans); font-size: 16px; color: var(--ink); background: #fff; border: 1px solid var(--stroke-1); border-radius: 12px; padding: 15px 16px 15px 48px; box-shadow: var(--shadow-2); transition: border-color var(--duration-fast), box-shadow var(--duration-fast); }
.faq-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,108,189,.14); }
.faq-cat { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin: 28px 0 10px; padding-left: 2px; }
.faq-cat:first-of-type { margin-top: 6px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; transition: border-color var(--duration-fast), box-shadow var(--duration-fast); }
.faq-item[open] { border-color: rgba(15,108,189,.3); box-shadow: var(--shadow-2); }
.faq-q { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; cursor: pointer; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--accent); }
.faq-chev { width: 22px; height: 22px; flex: none; color: var(--ink-3); transition: transform var(--duration-normal) var(--ease-easy); }
.faq-item[open] .faq-chev { transform: rotate(180deg); color: var(--accent); }
.faq-a { padding: 0 20px 19px; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.faq-a p { margin: 0 0 10px; } .faq-a p:last-child { margin: 0; }
.faq-empty { display: none; text-align: center; color: var(--ink-3); font-size: 15px; padding: 40px 0; }
.faq-empty.show { display: block; }

/* ══════════ CHANGELOG ══════════ */
.cl-wrap { max-width: 760px; margin: 0 auto; }
.cl-entry { position: relative; padding: 0 0 36px 116px; }
.cl-entry::before { content: ""; position: absolute; left: 92px; top: 8px; bottom: -8px; width: 2px; background: var(--hairline-strong); }
.cl-entry:last-child::before { display: none; }
.cl-node { position: absolute; left: 85px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); z-index: 1; }
.cl-node::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.cl-date { position: absolute; left: 0; top: 3px; width: 74px; text-align: right; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); }
.cl-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cl-ver { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink); background: var(--bg-3); border: 1px solid var(--hairline); padding: 4px 10px; border-radius: 7px; }
.cl-title { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.cl-changes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.cl-changes li { display: flex; gap: 11px; align-items: baseline; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.cl-tag { flex: none; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; min-width: 78px; text-align: center; }
.cl-tag.new { background: var(--emerald-bg); color: var(--emerald); border: 1px solid var(--emerald-border); }
.cl-tag.imp { background: var(--accent-selected); color: var(--accent); border: 1px solid rgba(15,108,189,.2); }
.cl-tag.fix { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning-border); }
@media (max-width: 560px){
  .cl-entry { padding-left: 28px; }
  .cl-entry::before { left: 4px; }
  .cl-node { left: -3px; }
  .cl-date { position: static; width: auto; text-align: left; display: block; margin-bottom: 6px; }
}

/* ══════════ LEGAL ══════════ */
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: 92px; }
.toc-h { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.toc-list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--stroke-2); }
.toc-list a { display: block; font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; transition: color var(--duration-fast), border-color var(--duration-fast); line-height: 1.35; }
.toc-list a:hover { color: var(--ink); }
.toc-list a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.legal-body { max-width: 720px; }
.legal-notice { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--hairline); border-radius: 10px; padding: 12px 16px; margin-bottom: 32px; }
.legal-notice svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.legal-notice .mono { color: var(--ink); font-weight: 500; }
.legal-body h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 44px 0 14px; scroll-margin-top: 92px; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin: 26px 0 10px; }
.legal-body p { font-size: 15.5px; color: var(--ink-2); line-height: 1.72; margin: 0 0 16px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { font-size: 15.5px; color: var(--ink-2); line-height: 1.7; margin-bottom: 7px; }
.legal-body strong { color: var(--ink); font-weight: 600; }
@media (max-width: 820px){ .legal-grid { grid-template-columns: 1fr; gap: 24px; } .toc { position: static; } .toc-list { display: flex; flex-wrap: wrap; gap: 4px 14px; border-left: none; } .toc-list a { border-left: none; padding-left: 0; } .toc-list a.active { border-left: none; } }

/* ══════════ CONTENT TEMPLATE ══════════ */
.content-body { max-width: 720px; margin: 0 auto; }
.content-body h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; margin: 44px 0 14px; }
.content-body h2:first-child { margin-top: 0; }
.content-body p { font-size: 17px; color: var(--ink-2); line-height: 1.75; margin: 0 0 18px; }
.content-body p.lead { font-size: 20px; color: var(--ink); line-height: 1.6; }
.content-quote { margin: 32px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--accent); }
.content-quote p { font-family: var(--font-serif-italic); font-style: italic; font-size: 22px; color: var(--ink); line-height: 1.5; margin: 0 0 12px; }
.content-quote cite { font-style: normal; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.content-fig { margin: 32px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--hairline); background: linear-gradient(135deg, var(--brand-140), #F3EEFB); height: 280px; position: relative; display: grid; place-items: center; }
.content-fig::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(15,108,189,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(15,108,189,.06) 1px, transparent 1px); background-size: 30px 30px; }
.content-fig .ph-label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-3); background: rgba(255,255,255,.7); border: 1px solid var(--hairline); padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(4px); }
.content-fig .ph-label svg { width: 16px; height: 16px; }
.content-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 32px 0; }
.content-stat { background: var(--bg-2); border: 1px solid var(--hairline); border-radius: 14px; padding: 22px; text-align: center; }
.content-stat-v { font-family: var(--font-mono); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; color: var(--accent); }
.content-stat-l { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
@media (max-width: 560px){ .content-stats { grid-template-columns: 1fr; } }
.field-error{display:block;margin-top:6px;color:var(--danger);font-size:12px;font-weight:600;}
/* Shared restrained motion for supporting pages. Content is never hidden waiting for JS. */
@keyframes page-enter { from {opacity:0;translate:0 16px;} to {opacity:1;translate:0 0;} }
.page-enter.page-entered { animation:page-enter .55s cubic-bezier(.2,.7,.2,1) both; }
.ci-card,.cl-entry,.content-stat { transition:border-color .22s ease,box-shadow .22s ease; }
.faq-q,.toc-list a,.ci-v a { transition:color .18s ease,background-color .18s ease; }
@media(hover:hover) and (pointer:fine) {
 .ci-card:hover,.content-stat:hover { border-color:var(--accent); box-shadow:0 8px 24px #2328380a; }
 .cl-entry:hover .cl-title,.faq-q:hover,.ci-v a:hover { color:var(--accent); }
 .toc-list a:hover { background:var(--accent-selected); }
}
.page-enter:focus-within { animation:none; }
@media(prefers-reduced-motion:reduce) {
 .page-enter.page-entered { animation:none; }
 .ci-card,.cl-entry,.content-stat,.faq-q,.toc-list a,.ci-v a { transition:none; }
}
@media print { .page-enter.page-entered {animation:none;} }
