/* Dokliq – štýly webu a aplikácie. Farby a písma podľa prezentácie (Prezentacia/Uvodna). Bez frameworku. */

:root {
  --navy: #0A1450;
  --navy-2: #3A4677;
  --muted: #5F6A8B;
  --sky: #00A9E8;
  --sky-deep: #0072A3;
  --sky-soft: #E6F2FA;
  --bg: #F4F8FB;
  --card: #FFFFFF;
  --line: rgba(10, 20, 80, .12);
  --ok: #12A150;
  --ok-soft: #E3F6EA;
  --warn: #A86400;
  --warn-soft: #FFF1DA;
  --error: #C62828;
  --error-soft: #FDECEC;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --radius: 16px;
  --radius-small: 10px;
  --shadow: 0 18px 40px -18px rgba(10, 20, 80, .35);
  --max: 1160px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--sky-deep); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.025em; line-height: 1.05; margin: 0 0 .4em; }
h1 { font-weight: 800; font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.035em; line-height: .98; }
h2 { font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-weight: 700; font-size: 1.2rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: var(--mono); font-size: .9em; }
.label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

.section-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.section-inner.narrow { max-width: 720px; }
.section { padding: 88px 0; position: relative; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-section { padding: 56px 0 88px; position: relative; overflow: hidden; }

/* ---------- štítky, odznaky ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-2); background: #fff; border: 1px solid var(--line); border-radius: 99px;
  padding: 6px 13px; margin-bottom: 18px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 3px rgba(0, 169, 232, .18); }
.badge {
  font-family: var(--mono); font-size: .72rem; background: var(--sky-soft); color: var(--sky-deep);
  border-radius: 99px; padding: 3px 10px; white-space: nowrap;
}
.mark-text { position: relative; white-space: nowrap; z-index: 0; }
.mark-text::after {
  content: ""; position: absolute; left: -2px; right: -4px; bottom: .06em; height: .26em;
  background: var(--sky); opacity: .85; z-index: -1; border-radius: 3px;
}
.kliq { color: var(--sky-deep); }
.star {
  display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 5px;
  background: var(--sky); color: var(--navy); font-size: .7rem; font-weight: 800; line-height: 1; flex: none;
}

/* ---------- tlačidlá ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem var(--body); text-decoration: none; cursor: pointer;
  border-radius: 99px; padding: 13px 24px; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sky); color: var(--navy); box-shadow: 0 10px 24px -12px rgba(0, 169, 232, .9); }
.btn-primary:hover { background: #18B6F0; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-small { padding: 9px 18px; font-size: .92rem; }
.btn-block { width: 100%; }
.link-btn { color: var(--navy); font-weight: 600; text-decoration: none; }
.link-btn:hover { color: var(--sky-deep); }

/* ---------- hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 248, 251, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.logo-mark { display: inline-flex; }
.logo-text { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; }
.logo .q, .contact-web .q { color: var(--sky); }
.logo-small .logo-text { font-size: 1.3rem; }
.main-nav { display: flex; gap: 24px; margin-right: auto; }
.main-nav a { color: var(--navy-2); text-decoration: none; font-weight: 600; font-size: .96rem; }
.main-nav a:hover { color: var(--sky-deep); }
.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }

.user-menu { position: relative; }
.user-menu-toggle {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 5px 14px 5px 5px;
  font: 600 .95rem var(--body); color: var(--navy);
}
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 700;
}
.user-menu-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-small);
  box-shadow: var(--shadow); padding: 8px; z-index: 60;
}
.user-menu-dropdown.open { display: block; }
.user-menu-dropdown a, .user-menu-dropdown button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px;
  color: var(--navy); text-decoration: none; background: none; border: 0; font: 500 .95rem var(--body); cursor: pointer;
}
.user-menu-dropdown a:hover, .user-menu-dropdown button:hover { background: var(--sky-soft); }
.user-menu-dropdown form { margin: 4px 0 0; border-top: 1px solid var(--line); padding-top: 4px; }
.user-menu-group { display: block; padding: 10px 12px 4px; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* prepínač jazykov SK · CZ · EN · DE */
.lang-switch { display: inline-flex; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.lang-switch a {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-decoration: none;
  color: var(--navy-2); padding: 4px 8px; border-radius: 99px;
}
.lang-switch a:hover { color: var(--sky-deep); }
.lang-switch a.active { background: var(--navy); color: #fff; }
.footer-contact .lang-switch { margin-top: 10px; align-self: flex-start; }
.mobile-only { display: none; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---------- kruhy „kliq“ ---------- */
.rings { position: absolute; pointer-events: none; z-index: 0; }
.rings span { position: absolute; border-radius: 50%; border: 1.5px solid rgba(0, 169, 232, .18); }
.rings-hero { right: -180px; top: -160px; width: 640px; height: 640px; }
.rings-hero span:nth-child(1) { inset: 0; }
.rings-hero span:nth-child(2) { inset: 100px; }
.rings-hero span:nth-child(3) { inset: 200px; border-color: rgba(0, 169, 232, .3); }
.rings-cta { left: -140px; bottom: -240px; width: 460px; height: 460px; }
.rings-cta span:nth-child(1) { inset: 0; border-color: rgba(0, 169, 232, .3); }
.rings-cta span:nth-child(2) { inset: 90px; border-color: rgba(0, 169, 232, .2); }
.rings-auth { left: 50%; top: 40px; width: 720px; height: 720px; margin-left: -360px; }
.rings-auth span:nth-child(1) { inset: 0; }
.rings-auth span:nth-child(2) { inset: 120px; }
.rings-auth span:nth-child(3) { inset: 240px; border-color: rgba(0, 169, 232, .28); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.lead { font-size: 1.18rem; color: var(--navy-2); max-width: 560px; margin-top: 22px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0; }
.pill { font-weight: 700; font-size: .95rem; border-radius: 99px; padding: 8px 16px; background: #fff; border: 1px solid var(--line); }
.pill.solid { background: var(--sky); border-color: var(--sky); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.doc-title { font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.doc-sub { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.fields { display: grid; grid-template-columns: auto 1fr auto; column-gap: 12px; margin: 0; font-size: .92rem; }
.fields dt, .fields dd { margin: 0; padding: 7px 0; border-top: 1px dashed var(--line); }
.fields dt { color: var(--muted); }
.fields dd { font-family: var(--mono); font-size: .88rem; }
.st { font-family: var(--body) !important; font-size: .74rem !important; font-weight: 700; align-self: center; white-space: nowrap; }
.fields .st { border-radius: 99px; padding: 2px 9px; margin: 4px 0; border-top: 0; }
.st.ok { background: var(--ok-soft); color: var(--ok); }
.st.info { background: var(--sky-soft); color: var(--sky-deep); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--navy); }
.total b { font-family: var(--display); font-size: 1.9rem; letter-spacing: -.02em; }
.alert {
  margin-top: 14px; background: #FFF6E6; border: 1px solid #F5D9A6; border-radius: var(--radius-small);
  padding: 10px 12px; font-size: .88rem; color: #6B4600; display: flex; gap: 9px; align-items: flex-start;
}

/* ---------- kroky ---------- */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step, .who-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.num { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--sky); letter-spacing: -.04em; }
.step h3, .who-card h3 { margin-top: 12px; }
.step p, .who-card p { color: var(--navy-2); margin: 0; }

.extract-band {
  margin-top: 36px; background: var(--navy); color: #EAF1FB; border-radius: var(--radius);
  padding: 30px 32px; position: relative; overflow: hidden;
}
.extract-band h3 { color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag { font-size: .9rem; font-weight: 600; border: 1px solid rgba(163, 176, 214, .45); border-radius: 99px; padding: 5px 13px; }
.tag.hl { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.sources { margin: 18px 0 0; font-size: .92rem; color: #A3B0D6; }
.sources b { color: #fff; font-weight: 600; }

/* ---------- funkcie ---------- */
.legend { display: inline-flex; align-items: center; gap: 8px; color: var(--navy-2); }
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.group { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.group-head h3 { margin: 0; font-size: 1.1rem; }
.ico { width: 32px; height: 32px; border-radius: 9px; background: var(--sky-soft); display: grid; place-items: center; flex: none; }
.ico svg { stroke: var(--sky-deep); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.group li { display: flex; gap: 8px; font-size: .93rem; color: var(--navy-2); align-items: flex-start; }
.group li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #A3B0D6; margin: 8px 5px 0; flex: none; }
.group li.plus { color: var(--navy); font-weight: 600; }
.group li.plus::before { display: none; }
.group li.plus .star { margin-top: 3px; }

.table-wrap { overflow-x: auto; margin-top: 28px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; text-align: left; padding: 11px 14px; color: var(--muted); background: #F7FAFD; }
td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.compare th.us { background: var(--navy); color: #fff; }
.compare td.them { color: var(--muted); }
.compare td.us { font-weight: 600; background: #F2F9FE; }
.compare td.us::before { content: "✓ "; color: var(--sky-deep); font-weight: 800; }

/* ---------- pre koho, kontakt ---------- */
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.cta { background: var(--navy); color: #EAF1FB; overflow: hidden; }
.cta h2 { color: #fff; }
.cta h2 .kliq { color: var(--sky); }
.cta p { color: #C9D3EE; max-width: 560px; }
.cta-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.contact-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(163, 176, 214, .3); border-radius: var(--radius); padding: 24px; }
.contact-card .label { color: #A3B0D6; display: block; margin: 8px 0 6px; }
.contact-card p { margin: 0; color: #EAF1FB; }
.contact-card a { color: #fff; }
.contact-web { font-family: var(--display); font-weight: 800; font-size: 1.8rem; color: #fff; letter-spacing: -.02em; }

/* ---------- pätička ---------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 24px; display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); max-width: 380px; margin: 10px 0 0; font-size: .95rem; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; }
.footer-bottom {
  max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter) 28px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono); font-size: .76rem; color: var(--muted); letter-spacing: .04em;
}
.footer-bottom a { color: var(--muted); }

/* ---------- formuláre a prihlásenie ---------- */
.auth { display: grid; place-items: center; min-height: calc(100vh - 260px); padding: 64px var(--gutter); }
.auth-card { position: relative; z-index: 1; width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px; }
.auth-card h1 { font-size: 2.2rem; }
.auth-alt { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: .95rem; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; border: 0; padding: 0; min-width: 0; }
.form-field legend { padding: 0; margin-bottom: 6px; }
.form-field label, .form-field legend { font-weight: 600; font-size: .92rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type=text], input[type=email], input[type=password], input:not([type]), select {
  font: 1rem var(--body); color: var(--navy); background: #fff; width: 100%;
  border: 1.5px solid var(--line); border-radius: var(--radius-small); padding: 11px 13px;
}
input:focus, select:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(0, 169, 232, .18); }
.form-check { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; font-size: .95rem; cursor: pointer; }
.form-check input { width: 18px; height: 18px; accent-color: var(--sky-deep); }
.field-error { color: var(--error); font-size: .85rem; }
.form-errors:empty, .form-errors.validation-summary-valid { display: none; }
.form-errors { background: var(--error-soft); color: var(--error); border-radius: var(--radius-small); padding: 10px 14px; margin-bottom: 16px; font-size: .92rem; }
.form-errors ul { margin: 0; padding-left: 18px; }
.input-validation-error { border-color: var(--error) !important; }

/* ---------- aplikácia a administrácia ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; min-width: 0; }
.panel h2 { font-size: 1.35rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.panel-head h2 { margin: 0; }
.panel .table-wrap { margin-top: 8px; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; color: var(--navy-2); }
.company-list { list-style: none; margin: 0; padding: 0; }
.company-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.company-name { font-weight: 600; }
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 24px; }
.admin-nav a { text-decoration: none; color: var(--navy-2); font-weight: 600; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; }
.admin-nav a.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.admin-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; align-items: start; }
.admin-grid .panel { margin-bottom: 0; }
.flash { background: var(--ok-soft); color: var(--ok); border-radius: var(--radius-small); padding: 10px 14px; margin-bottom: 18px; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; text-decoration: none; color: var(--navy); display: flex; flex-direction: column; gap: 4px; }
.stat:hover { border-color: var(--sky); }
.stat-value { font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; }
table.data td { font-size: .95rem; }
.num-col { text-align: right; }
.howto { margin: 0; padding-left: 20px; color: var(--navy-2); display: grid; gap: 6px; }

/* ---------- responzívnosť ---------- */
@media (max-width: 960px) {
  .hero-grid, .cta-grid, .admin-grid { grid-template-columns: 1fr; }
  .groups { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 48px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .header-inner { gap: 12px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 14px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-top: 1px solid var(--line); }
  .main-nav a:first-child { border-top: 0; }
  .hide-mobile { display: none; }
  .mobile-only { display: block; padding: 12px 0 4px; border-top: 1px solid var(--line); }
  .user-name { display: none; }
  .user-menu-toggle { padding: 4px; }
  .steps, .who, .groups, .stats { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .card, .auth-card, .panel { padding: 20px; }
  .extract-band { padding: 24px 20px; }
  .fields { font-size: .86rem; column-gap: 8px; }
  .rings-hero { width: 420px; height: 420px; right: -220px; top: -120px; }
  .rings-hero span:nth-child(2) { inset: 70px; }
  .rings-hero span:nth-child(3) { inset: 140px; }
  .rings-auth { width: 480px; height: 480px; margin-left: -240px; }
  .rings-auth span:nth-child(2) { inset: 80px; }
  .rings-auth span:nth-child(3) { inset: 160px; }
  .footer-bottom { flex-direction: column; }
}
