/*
  BezKlikání.cz — Shared Design System
  Used by: site/main pages
  Inline page <style> blocks take precedence where they conflict.
*/

:root {
  --brand-start: #1228a0;
  --brand-mid:   #7222b8;
  --brand-end:   #d91882;
  --accent:      #be1c9b;
  --text:        #ffffff;
  --text-dim:    rgba(255,255,255,0.72);
  --text-mute:   rgba(255,255,255,0.55);
  --glass-bg:    rgba(255,255,255,0.08);
  --glass-border:rgba(255,255,255,0.18);
  --gradient:    linear-gradient(135deg, var(--brand-start) 0%, var(--brand-mid) 52%, var(--brand-end) 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 1400px 800px at 50% -5%, rgba(255,255,255,0.14) 0%, transparent 62%),
    radial-gradient(ellipse 700px 700px at 88% 92%, rgba(217,24,130,0.22) 0%, transparent 55%),
    linear-gradient(135deg, #1228a0 0%, #7222b8 52%, #d91882 100%);
  background-attachment: fixed;
}

h1, h2, h3, h4 { font-family: 'Figtree', sans-serif; letter-spacing: -0.025em; }
a { color: inherit; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  background: rgba(18,40,160,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.5rem; gap: 1rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--text); flex-shrink: 0;
}
.nav-logo img {
  height: 36px; width: 36px;
  box-sizing: border-box; padding: 4px;
  object-fit: contain; border-radius: 10px;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.5) inset;
}
.nav-logo-name {
  font-weight: 700; font-size: 0.95rem;
  font-family: 'Figtree', sans-serif; white-space: nowrap;
}
.nav-links {
  display: flex; align-items: center; gap: 0.9rem;
  flex-wrap: wrap; justify-content: flex-end;
}
.nav-links a {
  text-decoration: none; color: rgba(255,255,255,0.82);
  font-weight: 600; font-size: 0.88rem;
  transition: color 0.2s; white-space: nowrap;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  display: inline-block; padding: 0.55rem 1.3rem;
  background: #fff; color: var(--brand-mid);
  border-radius: 10px; text-decoration: none;
  font-size: 0.85rem; font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s; white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ── GLASS ── */
.glass {
  position: relative;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-radius: 20px; overflow: hidden;
}
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.04) 55%, rgba(255,255,255,0.14));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* ── BUTTONS ── */
.btn-primary {
  position: relative; overflow: hidden;
  display: inline-block; padding: 1.05rem 2.6rem;
  background: #fff; color: var(--brand-mid);
  border-radius: 14px; text-decoration: none;
  font-family: 'Figtree', sans-serif; font-size: 1.05rem; font-weight: 800;
  letter-spacing: -0.01em; border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.4) inset;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(190,28,155,0.25) 50%, transparent 70%);
  transform: translateX(-120%) skewX(-15deg); pointer-events: none;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(0,0,0,0.3); }
.btn-primary:hover::after { transform: translateX(220%) skewX(-15deg); transition: transform 0.55s ease; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── SECTIONS (shared between landing pages) ── */
section { padding: 5rem 1.5rem; position: relative; }
.container { max-width: 980px; margin: 0 auto; }
.section-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: #ffd6ec; margin-bottom: 0.6rem; font-weight: 700;
}
.section-title {
  font-family: 'Figtree', sans-serif; font-weight: 900;
  font-size: clamp(1.8rem, 4.2vw, 2.6rem);
  margin-bottom: 1rem; line-height: 1.1;
}
.section-desc { color: var(--text-dim); max-width: 680px; margin-bottom: 2.5rem; font-size: 1rem; }

/* ── LEGAL FOOTER ── */
.legal-footer {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding: 2rem 1.5rem; text-align: center;
  color: var(--text-dim); font-size: 0.82rem;
  position: relative; z-index: 10;
}
.legal-footer-inner {
  max-width: 980px; margin: 0 auto;
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 0.35rem 0.5rem;
}
.legal-footer a { color: #fff; text-decoration: underline; font-weight: 700; }
.legal-separator { color: rgba(255,255,255,0.35); }

/* ── FORM SHARED ── */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.4rem; font-weight: 600; }
.form-label .opt { color: var(--text-mute); font-weight: 500; }
.form-input {
  width: 100%; padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.92); color: #0f172a;
  border: 1px solid transparent; border-radius: 12px;
  font-family: inherit; font-size: 1rem;
  transition: background 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: #94a3b8; }
.form-input:focus {
  outline: none; background: #fff;
  box-shadow: 0 0 0 3px rgba(190,28,155,0.38), 0 0 0 1px rgba(190,28,155,0.55);
}
.form-input.error { box-shadow: 0 0 0 2px #ef4444; }
textarea.form-input { resize: vertical; min-height: 84px; }
select.form-input { appearance: none; cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-error-msg { display: none; color: #ffd0d0; font-size: 0.78rem; margin-top: 0.3rem; }
.form-error-msg.visible { display: block; }
.form-checkbox {
  display: flex; align-items: flex-start; gap: 0.6rem;
  font-size: 0.85rem; color: var(--text-dim); margin-top: 0.5rem;
}
.form-checkbox input { margin-top: 0.2rem; accent-color: var(--accent); width: 16px; height: 16px; }
.btn-submit {
  position: relative; overflow: hidden; width: 100%;
  margin-top: 1.5rem; padding: 1rem 2rem;
  background: #fff; color: var(--brand-mid);
  border: none; border-radius: 12px;
  font-family: 'Figtree', sans-serif; font-size: 1rem; font-weight: 800;
  cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}
.btn-submit:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; }

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-up-kf { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:translateY(0)} }

/* ── LOADER OVERLAY ── */
.loader-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  align-items: center; justify-content: center;
  background: rgba(18,40,160,0.4); backdrop-filter: blur(8px);
}
.loader-overlay.visible { display: flex; }
.loader-spinner {
  width: 52px; height: 52px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.25); border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-inner { padding: 0.65rem 1rem; }
  .nav-links { gap: 0.5rem; }
  .nav-links a { font-size: 0.8rem; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .nav-logo-name { display: none; }
}
