/* ============================================================
   ARBALET s.r.o. – www.arbalet.sk
   Dizajnový systém – bez závislostí (čistý CSS)
   ============================================================ */

:root {
  --navy: #0a1628;
  --navy-2: #10203a;
  --navy-3: #16294a;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eaf1ff;
  --cyan: #38bdf8;
  --ink: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e4e9f1;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --green: #16a34a;
  --violet: #7c3aed;
  --violet-2: #6d28d9;
  --violet-soft: #f3ecff;
  --pink: #ec4899;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .05);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 60px rgba(10, 22, 40, .18);
  --container: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; }
p { color: var(--muted); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; font-family: var(--font);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(37, 99, 235, .32); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 99, 235, .38); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px rgba(15, 23, 42, .07); }

.header-inner { display: flex; align-items: center; gap: 14px; height: 64px; }

.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); font-weight: 800; letter-spacing: -.03em; font-size: 1.15rem; }
.logo:hover { color: var(--navy); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--blue) 0%, #1e3a8a 100%);
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
}
.logo-mark svg { width: 21px; height: 21px; }
.logo small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .16em; color: var(--muted-2); text-transform: uppercase; line-height: 1; margin-top: 3px; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 0; list-style: none; }
.main-nav a {
  display: block; padding: 8px 11px; border-radius: 999px; color: #334155;
  font-weight: 600; font-size: .9rem; white-space: nowrap;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--navy); }
.main-nav a.active { background: var(--blue-soft); color: var(--blue-dark); }

.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--navy); font-size: .88rem;
  white-space: nowrap;
}
.header-phone svg { width: 17px; height: 17px; color: var(--blue); }
.header-phone:hover { color: var(--blue); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 82% -10%, rgba(56, 189, 248, .28) 0%, transparent 60%),
    radial-gradient(700px 420px at 5% 110%, rgba(37, 99, 235, .35) 0%, transparent 62%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #0d1f3c 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 78%);
}
.hero-inner { position: relative; padding: 88px 0 76px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px 7px 9px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px; font-size: .84rem; font-weight: 600; color: #dbeafe; backdrop-filter: blur(6px);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .2); }

.hero h1 { color: #fff; margin: 22px 0 18px; }
.hero h1 .accent {
  background: linear-gradient(90deg, #7dd3fc 0%, #60a5fa 60%, #a78bfa 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { color: #b9c6dc; font-size: 1.12rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-stats { display: flex; gap: 14px; margin-top: 44px; flex-wrap: wrap; }
.hero-stat {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 14px; padding: 14px 20px; min-width: 132px; backdrop-filter: blur(4px);
}
.hero-stat strong { display: block; font-size: 1.55rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.hero-stat span { font-size: .8rem; color: #93a5c2; font-weight: 500; }

.hero-visual { position: relative; }
.hero-card {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 22px; padding: 26px; backdrop-filter: blur(14px); box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.hero-card > p { color: #9fb1cd; font-size: .88rem; }
.service-list { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.service-list li {
  display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px 14px;
  color: #dbe6f7; font-size: .92rem; font-weight: 500;
}
.service-list li svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }
.hero-card .card-foot { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .82rem; color: #8fa3c2; }
.hero-card .card-foot strong { color: #fff; }

/* ---------- Sekcie ---------- */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #a9b8d0; }

.section-head { max-width: 700px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue); border-radius: 2px; }
.section-head.center .eyebrow::before { display: none; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

/* ---------- Karty ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #cfdcf5; }
.card .icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 18px;
}
.card .icon svg { width: 23px; height: 23px; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: .95rem; }
.card .card-link { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-weight: 600; font-size: .92rem; }
.card .card-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

.card-accent { background: linear-gradient(150deg, var(--blue) 0%, var(--blue-dark) 100%); border: none; color: #fff; }
.card-accent:hover { box-shadow: 0 18px 40px rgba(37, 99, 235, .35); }
.card-accent h3, .card-accent strong { color: #fff; }
.card-accent p { color: #dbeafe; }
.card-accent .icon { background: rgba(255, 255, 255, .18); color: #fff; }

/* ---------- Proces ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px;
  position: relative; overflow: hidden;
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; right: 16px; top: 6px; font-size: 3.2rem; font-weight: 800;
  color: var(--blue-soft); letter-spacing: -.05em; line-height: 1;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; position: relative; }
.step p { font-size: .9rem; position: relative; }
.step .step-no {
  width: 34px; height: 34px; border-radius: 10px; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: .85rem; font-weight: 700; margin-bottom: 14px; position: relative; z-index: 1;
}

/* ---------- Výhody / zoznamy ---------- */
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; color: #334155; }
.check-list li svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 3px; }
.section-dark .check-list li { color: #cbd8ec; }
.section-dark .check-list li svg { color: #4ade80; }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row + .feature-row { margin-top: 72px; }

.panel {
  background: linear-gradient(150deg, #f8fafc 0%, #eef3fb 100%);
  border: 1px solid var(--line); border-radius: 20px; padding: 30px; position: relative; overflow: hidden;
}
.panel::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -70px;
  background: radial-gradient(circle, rgba(37, 99, 235, .18) 0%, transparent 70%);
}

/* ---------- Cenníkové / info boxy ---------- */
.info-box {
  background: var(--blue-soft); border: 1px solid #d5e2ff; border-radius: var(--radius);
  padding: 22px 24px; display: flex; gap: 14px; align-items: flex-start;
}
.info-box svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 3px; }
.info-box p { color: #35507a; font-size: .93rem; }
.info-box strong { color: var(--navy); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue) 0%, #1e40af 55%, #172554 100%);
  border-radius: 24px; padding: 52px 48px; color: #fff; text-align: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #cfe0ff; max-width: 620px; margin: 0 auto 26px; }
.cta-band .hero-actions { justify-content: center; margin-top: 0; }

/* ---------- Stránkové hero (vnútorné stránky) ---------- */
.page-hero {
  color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(700px 380px at 85% -20%, rgba(56, 189, 248, .25) 0%, transparent 60%),
              linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 100%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 0%, #000 20%, transparent 75%);
}
.page-hero-inner { position: relative; padding: 64px 0 58px; max-width: 760px; }
.page-hero h1 { color: #fff; margin: 16px 0 14px; }
.page-hero p { color: #b3c2da; font-size: 1.08rem; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: #8ba0c2; list-style: none; flex-wrap: wrap; }
.breadcrumb a { color: #a9c1ea; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #55688a; }
.breadcrumb li:last-child { color: #fff; font-weight: 600; }

/* ---------- Tabuľka ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { text-align: left; padding: 15px 20px; font-size: .95rem; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); font-weight: 700; color: var(--navy); font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; }
td { color: #475569; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #fafcff; }
td strong { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
details.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 22px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
details.faq-item[open] { border-color: #cfdcf5; box-shadow: var(--shadow-sm); }
details.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 1rem; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+"; font-size: 1.4rem; color: var(--blue); font-weight: 400; line-height: 1; transition: transform .2s ease;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item .faq-body { padding: 0 0 20px; color: var(--muted); font-size: .96rem; }

/* ---------- Kontakt ---------- */
.contact-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 34px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.contact-item:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.contact-item .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.contact-item .icon svg { width: 21px; height: 21px; }
.contact-item h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); font-weight: 700; margin-bottom: 5px; }
.contact-item a, .contact-item .value { font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.contact-item .sub { font-size: .88rem; color: var(--muted); font-weight: 500; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px; box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card > p { font-size: .95rem; margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: .87rem; font-weight: 600; color: #334155; }
label .req { color: #dc2626; }
input, select, textarea {
  font-family: var(--font); font-size: .97rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .14);
}
textarea { resize: vertical; min-height: 130px; }
.form-check {
  display: flex; gap: 11px; align-items: flex-start; font-size: .87rem;
  color: var(--muted); font-weight: 500; cursor: pointer; line-height: 1.5;
}
.form-check input[type="checkbox"] {
  width: 17px; height: 17px; margin-top: 2px; flex: none; accent-color: var(--blue); cursor: pointer;
}
.form-check a { text-decoration: underline; }
.form-note { font-size: .82rem; color: var(--muted-2); margin-top: 14px; }
.form-status {
  display: none; margin-top: 16px; padding: 13px 16px; border-radius: 12px;
  font-size: .92rem; font-weight: 600; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0;
}
.form-status.show { display: block; }
.form-status.error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.map-embed {
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff;
}
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; filter: saturate(.9); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #93a5c2; padding: 64px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.site-footer .logo { color: #fff; }
.site-footer .logo:hover { color: #fff; }
.site-footer .logo small { color: #64748b; }
.footer-about { font-size: .92rem; color: #8fa0bd; margin-top: 16px; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; font-weight: 700; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: #93a5c2; font-size: .93rem; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; margin-bottom: 12px; color: #93a5c2; }
.footer-contact svg { width: 17px; height: 17px; color: var(--cyan); flex: none; margin-top: 3px; }
.footer-contact a { color: #93a5c2; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09); padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: #64748b;
}
.footer-bottom a { color: #8fa0bd; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Logo partnerov ---------- */
.brand-row { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: center; }
.brand-chip {
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; color: #7b8ba6;
  padding: 10px 20px; border: 1px dashed var(--line); border-radius: 999px; background: #fff;
  transition: color .2s ease, border-color .2s ease;
}
.brand-chip:hover { color: var(--navy); border-color: var(--blue); }

/* ---------- Revízie ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Layout prvky ---------- */
.divider-note {
  display: flex; align-items: center; gap: 14px; color: var(--muted-2); font-size: .85rem;
  text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin-bottom: 28px;
}
.divider-note::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.price-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.price-tag {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px; font-size: .85rem; font-weight: 600; color: #475569;
}
.price-tag strong { color: var(--blue-dark); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
  font-size: .78rem; font-weight: 600; color: var(--blue-dark); background: var(--blue-soft);
  border-radius: 999px; padding: 5px 12px;
}

.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 32px; } .mt-4 { margin-top: 48px; }
.mb-2 { margin-bottom: 20px; } .mb-3 { margin-bottom: 32px; }
.text-center { text-align: center; }
.lead { font-size: 1.08rem; }

/* ---------- Rozbaľovacie menu ---------- */
.main-nav li { position: relative; }
.main-nav li.has-sub > a::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
}
.main-nav li.has-sub:hover > a::after,
.main-nav li.has-sub:focus-within > a::after { transform: rotate(225deg) translateY(-1px); }

.main-nav .submenu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 236px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-md); padding: 8px; display: none;
  flex-direction: column; align-items: stretch; gap: 2px; list-style: none;
}
.main-nav .submenu::before { content: ""; position: absolute; inset: -10px 0 auto 0; height: 12px; }
.main-nav li.has-sub:hover > .submenu,
.main-nav li.has-sub:focus-within > .submenu { display: flex; }
.main-nav .submenu a {
  padding: 10px 13px; border-radius: 10px; font-size: .93rem; font-weight: 600;
  color: #475569; white-space: nowrap;
}
.main-nav .submenu a:hover { background: var(--bg-soft); color: var(--navy); }
.main-nav .submenu a.active { background: var(--blue-soft); color: var(--blue-dark); }

/* ---------- Rozcestník (úvodná stránka) ---------- */
.hero--portal .hero-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 78px 0 70px; }
.hero--portal .hero-lead { margin: 0 auto; }
.hero--portal .hero-actions, .hero--portal .hero-stats { justify-content: center; }

.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: -46px; position: relative; z-index: 5; }
.portal-card {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line);
  border-radius: 24px; padding: 40px 36px 34px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.portal-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #cfdcf5; }
.portal-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
}
.portal-card--tech::before { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.portal-card--av::before { background: linear-gradient(90deg, var(--violet), var(--pink)); }
.portal-card .branch-icon {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 20px;
}
.portal-card .branch-icon svg { width: 30px; height: 30px; }
.portal-card--tech .branch-icon { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; box-shadow: 0 10px 24px rgba(37, 99, 235, .3); }
.portal-card--av .branch-icon { background: linear-gradient(135deg, var(--violet), var(--pink)); color: #fff; box-shadow: 0 10px 24px rgba(124, 58, 237, .3); }
.portal-card .branch-no { font-size: .75rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.portal-card--tech .branch-no { color: var(--blue); }
.portal-card--av .branch-no { color: var(--violet); }
.portal-card h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 12px 0 12px; }
.portal-card > p { font-size: .98rem; }
.portal-card .check-list { margin-top: 18px; }
.portal-actions { margin-top: auto; padding-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.portal-actions .btn-violet { background: var(--violet); color: #fff; box-shadow: 0 8px 22px rgba(124, 58, 237, .3); }
.portal-actions .btn-violet:hover { background: var(--violet-2); color: #fff; transform: translateY(-2px); }

/* ---------- Ozvučenie a osvetlenie ---------- */
.eyebrow.violet { color: var(--violet); }
.eyebrow.violet::before { background: var(--violet); }
.card--av .icon { background: var(--violet-soft); color: var(--violet); }
.card--av:hover { border-color: #ddd0fb; }
.card-accent-av { background: linear-gradient(150deg, var(--violet) 0%, var(--violet-2) 100%); border: none; color: #fff; }
.card-accent-av:hover { box-shadow: 0 18px 40px rgba(124, 58, 237, .35); }
.card-accent-av h3 { color: #fff; }
.card-accent-av p { color: #ede9fe; }
.card-accent-av .icon { background: rgba(255, 255, 255, .18); color: #fff; }
.check-list li.violet svg { color: var(--violet); }
.step .step-no.violet { background: var(--violet); }

.av-hero-visual {
  background: linear-gradient(155deg, #1e1b4b 0%, #312e81 55%, #1e1b4b 100%);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 28px;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.av-hero-visual::after {
  content: ""; position: absolute; width: 260px; height: 260px; right: -90px; bottom: -90px;
  background: radial-gradient(circle, rgba(236, 72, 153, .4) 0%, transparent 70%);
}
.av-hero-visual h3 { color: #fff; position: relative; }
.av-hero-visual .service-list li { position: relative; }


/* ---------- Reakcie ---------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding: 70px 0 64px; }
  .hero-visual { max-width: 560px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { gap: 36px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 64px; left: 0; right: 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(15, 23, 42, .12);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .main-nav.open { max-height: 640px; overflow-y: auto; }
  .main-nav > ul { flex-direction: column; align-items: stretch; padding: 12px 18px 20px; gap: 4px; }
  .main-nav a { padding: 13px 15px; border-radius: 12px; font-size: 1rem; }
  .main-nav .submenu {
    position: static; display: flex; box-shadow: none; border: none;
    padding: 0 0 4px 16px; min-width: 0; background: transparent;
    border-left: 2px solid var(--line); margin: 0 0 4px 14px; border-radius: 0;
  }
  .main-nav .submenu::before { display: none; }
  .main-nav .submenu a { padding: 9px 13px; font-size: .93rem; }
  .main-nav li.has-sub > a::after { display: none; }
  .header-cta .btn, .header-phone { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .cta-band { padding: 40px 26px; border-radius: 20px; }
  .form-card { padding: 26px 22px; }
  .portal-grid { grid-template-columns: 1fr; margin-top: -30px; }
  .portal-card { padding: 32px 26px 28px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-4, .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-stats { gap: 10px; }
  .hero-stat { min-width: calc(50% - 5px); flex: 1; }
  .hero-actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}


/* ---------- Portal – jednoobrazovkový rozcestník ---------- */
body.page-portal { display: flex; flex-direction: column; min-height: 100vh; }
body.page-portal #main { flex: 1; display: flex; flex-direction: column; }
body.page-portal .hero--portal { flex: 1; display: flex; align-items: center; }
body.page-portal .hero--portal .hero-inner { width: 100%; padding: clamp(14px, 3.5vh, 46px) 0 clamp(56px, 8vh, 80px); }
body.page-portal .badge { font-size: clamp(.78rem, 1.7vh, .84rem); }
body.page-portal .hero h1 { font-size: clamp(1.7rem, 4.6vh, 2.4rem); margin: clamp(10px, 2vh, 22px) 0 clamp(8px, 1.5vh, 16px); }
body.page-portal .hero-lead { font-size: clamp(.97rem, 2vh, 1.12rem); max-width: 640px; }
body.page-portal .hero-stats { margin-top: clamp(14px, 3vh, 34px); gap: clamp(8px, 1.5vh, 14px); }
body.page-portal .hero-stat { padding: clamp(7px, 1.5vh, 14px) clamp(11px, 2vh, 20px); min-width: 100px; border-radius: 12px; }
body.page-portal .hero-stat strong { font-size: clamp(1.1rem, 2.5vh, 1.55rem); }
body.page-portal .hero-stat span { font-size: .78rem; }
body.page-portal .portal-card { padding: clamp(20px, 3.4vh, 36px) clamp(20px, 3vh, 34px); }
body.page-portal .portal-card .branch-icon { width: clamp(44px, 7vh, 60px); height: clamp(44px, 7vh, 60px); border-radius: 15px; margin-bottom: clamp(9px, 2vh, 18px); }
body.page-portal .portal-card .branch-icon svg { width: clamp(22px, 3.4vh, 30px); height: clamp(22px, 3.4vh, 30px); }
body.page-portal .portal-card h2 { font-size: clamp(1.22rem, 3vh, 1.7rem); margin: clamp(6px, 1.2vh, 12px) 0; }
body.page-portal .portal-card > p { font-size: clamp(.89rem, 1.8vh, .98rem); }
body.page-portal .portal-card .check-list { margin-top: clamp(9px, 2vh, 18px); font-size: clamp(.84rem, 1.6vh, .92rem); }
body.page-portal .portal-actions { padding-top: clamp(12px, 2.8vh, 28px); }
.portal-bar { border-top: 1px solid var(--line); padding: clamp(9px, 1.7vh, 15px) 0 clamp(11px, 1.9vh, 18px); font-size: .86rem; color: var(--muted-2); }
.portal-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.portal-bar a { color: var(--muted); font-weight: 600; }
.portal-bar a:hover { color: var(--blue); }

@media (min-width: 900px) and (max-height: 900px) {
  body.page-portal .hero-stats { display: none; }
}
@media (min-width: 900px) and (max-height: 800px) {
  body.page-portal .portal-card .check-list { display: none; }
  body.page-portal .hero--portal .hero-inner { padding-bottom: 54px; }
}
@media (min-width: 900px) {
  body.page-portal { height: min(100vh, 1024px); overflow: hidden; }
}
@media (min-width: 900px) and (max-height: 700px) {
  body.page-portal .hero-lead { display: none; }
  body.page-portal .hero--portal .hero-inner { padding: 24px 0 44px; }
  body.page-portal .hero h1 { font-size: clamp(1.5rem, 6vh, 1.9rem); }
  body.page-portal .portal-card { padding: 18px 24px; }
  body.page-portal .portal-card > p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
/* ---------- Portal – reakcia na šírku okna ---------- */
@media (max-width: 1240px) and (min-width: 861px) {
  body.page-portal .hero h1 { font-size: clamp(1.6rem, 2.5vw, 2.05rem); }
  body.page-portal .hero--portal .hero-inner { padding: 30px 0 62px; }
  body.page-portal .hero-lead { font-size: 1rem; max-width: 560px; }
  body.page-portal .hero-stats { display: none; }
  body.page-portal .portal-card { padding: 24px 26px 22px; }
  body.page-portal .portal-card .branch-icon { width: 48px; height: 48px; margin-bottom: 12px; }
  body.page-portal .portal-card .branch-icon svg { width: 24px; height: 24px; }
  body.page-portal .portal-card h2 { font-size: clamp(1.25rem, 1.9vw, 1.5rem); margin: 8px 0; }
  body.page-portal .portal-card > p { font-size: .93rem; }
  body.page-portal .portal-actions { padding-top: 16px; }
}
@media (max-width: 1024px) and (min-width: 861px) {
  body.page-portal .portal-card .check-list { display: none; }
  body.page-portal .hero h1 { font-size: clamp(1.5rem, 2.7vw, 1.85rem); }
}
@media (max-width: 860px) {
  body.page-portal .hero h1 { font-size: clamp(1.6rem, 5.5vw, 2.2rem); }
  body.page-portal .hero--portal .hero-inner { padding: 36px 0 50px; }
  body.page-portal .hero-lead { font-size: 1rem; }
  body.page-portal .portal-grid { margin-top: -24px; }
  body.page-portal .portal-card { padding: 26px 24px 24px; }
  body.page-portal .portal-card .branch-icon { width: 50px; height: 50px; }
  body.page-portal .portal-actions .btn { flex: 1; justify-content: center; }
}
@media (max-width: 620px) {
  body.page-portal .hero--portal .hero-inner { padding: 28px 0 40px; }
  body.page-portal .hero-stats { display: none; }
  body.page-portal .portal-card .check-list { display: none; }
  body.page-portal .portal-actions { flex-direction: column; }
}
/* ---------- Kompaktná hlavička ---------- */
@media (max-width: 1180px) {
  .header-cta .btn { display: none; }
  .main-nav a { font-size: .87rem; padding: 8px 9px; }
  .header-inner { gap: 10px; }
}
@media (min-width: 861px) and (max-width: 980px) {
  .header-phone { display: none; }
  .logo small { display: none; }
}