/* Nerdigit – jediný stylopis webu. Bez frameworku, bez buildu. */

:root {
  --primary: #138EF7;
  --primary-dark: #077CE0;
  --primary-light: #E7F4FF;
  --primary-soft: #BFE0FD;
  --navy: #172F41;
  --navy-deep: #0E2233;
  --text: #1C2B37;
  --muted: #5B6E7D;
  --border: #E2EAF1;
  --tint: #F4F9FE;
  --white: #fff;
  --success: #16A34A;
  --error: #DC2626;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 47, 65, .06), 0 8px 24px rgba(23, 47, 65, .06);
  --shadow-lg: 0 2px 4px rgba(23, 47, 65, .06), 0 20px 48px rgba(23, 47, 65, .12);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--primary-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: .92rem; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-xl { width: 96px; height: 96px; stroke-width: 1.25; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.5em; border-radius: 999px; font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 20px rgba(19, 142, 247, .35); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost-dark { color: var(--navy); border-color: var(--border); background: #fff; }
.btn-ghost-dark:hover { color: var(--primary-dark); border-color: var(--primary-soft); }
.btn-ghost-dark:hover .icon { transform: none; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--primary-light); color: var(--navy); }
.btn-sm { padding: .6em 1.15em; font-size: .93rem; box-shadow: none; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; text-decoration: none; }
.link-arrow .icon { width: 1.1em; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.brand:hover { color: var(--navy); }
.brand .logo { width: 132px; }
.brand-tag { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-dark); background: var(--primary-light); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 4px; list-style: none; }
.nav ul a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 560; font-size: .97rem; }
.nav ul a:hover { color: var(--primary-dark); background: var(--tint); }
.nav ul a[aria-current] { color: var(--primary-dark); background: var(--primary-light); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }
.nav-toggle .i-close { display: none; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px 20px 24px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .nav ul { flex-direction: column; }
  .nav ul a { padding: 12px 14px; font-size: 1.05rem; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .nav-toggle .i-open { display: none; }
  .nav-open .nav-toggle .i-close { display: block; }
}
@media (max-width: 420px) { .brand-tag { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--navy); color: #C9D8E4; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 0 48px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.section-dark .lead { color: #A9BFD0; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero-dark { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 85% 10%, rgba(19, 142, 247, .28), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(94, 234, 212, .10), transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: #C9D8E4; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px); }
.hero-dark::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(180deg, #000 30%, transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-dark h1 { color: #fff; }
.hero-dark .lead { color: #B4C8D8; font-size: 1.2rem; }
.grad { background: linear-gradient(90deg, #5DB3FF, #138EF7 60%, #7CC8FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(19, 142, 247, .15); border: 1px solid rgba(19, 142, 247, .35); color: #CFE6FB; font-size: .9rem; font-weight: 600; margin-bottom: 24px; }
.pill .icon { color: #5DB3FF; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.hero-actions.center { justify-content: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin-top: 32px; font-size: .95rem; color: #A9BFD0; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { color: #4ADE80; width: 1.1em; }
.hero-visual img { width: 100%; max-width: 560px; margin-left: auto; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual img { margin: 8px auto 0; }
}

/* page hero (subpages) */
.page-hero { background: linear-gradient(180deg, var(--tint), #fff); padding: 40px 0 clamp(48px, 7vw, 80px); border-bottom: 1px solid var(--border); }
.page-hero-sm { padding-bottom: 40px; }
.page-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.page-hero-art { width: 220px; height: 220px; display: grid; place-items: center; border-radius: 40px; color: var(--primary); background: radial-gradient(circle at 30% 20%, #fff, var(--primary-light) 70%); border: 1px solid var(--primary-soft); box-shadow: var(--shadow-lg), inset 0 0 0 10px rgba(255, 255, 255, .6); transform: rotate(-4deg); }
@media (max-width: 860px) { .page-hero-art { display: none; } .page-hero-grid { grid-template-columns: 1fr; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary-dark); }
.crumbs [aria-current] { color: var(--navy); font-weight: 600; }

/* ---------- Clients ---------- */
.clients { padding: 36px 0; border-bottom: 1px solid var(--border); }
.clients p { text-align: center; color: var(--muted); font-size: .85rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.clients-plain { padding-top: 48px; }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 52px; list-style: none; }
.logos img { max-height: 36px; width: auto; filter: grayscale(1); opacity: .6; transition: filter .2s, opacity .2s; }
.logos img:hover { filter: none; opacity: 1; }

/* ---------- Cards ---------- */
.card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; }
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--primary-light); color: var(--primary); margin-bottom: 18px; }
.card-icon .icon { width: 24px; height: 24px; }
.service-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-soft); color: inherit; }
.service-card p { flex: 1; }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-weight: 650; font-size: .95rem; color: var(--primary-dark); }
.card-more .icon { width: 1em; transition: transform .2s; }
.service-card:hover .card-more .icon { transform: translateX(4px); }
.feature .num { display: block; font-size: .85rem; font-weight: 800; color: var(--primary); letter-spacing: .05em; margin-bottom: 14px; }

.stat .icon { width: 36px; height: 36px; color: #5DB3FF; margin-bottom: 16px; }
.stat p { color: #A9BFD0; margin: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: s; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding: 20px 20px 20px 76px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--primary); color: #fff; font-weight: 800; font-size: .9rem; }
.steps strong { display: block; color: var(--navy); font-size: 1.08rem; }
.steps span { color: var(--muted); }
.steps-row { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps-row li { padding: 76px 22px 22px; }

/* ---------- AI box ---------- */
.ai-box { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #C9D8E4; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.ai-box::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; background: radial-gradient(circle, rgba(19, 142, 247, .45), transparent 70%); }
.ai-box-title { display: flex; align-items: center; gap: 10px; font-weight: 750; color: #fff; font-size: 1.15rem; }
.ai-box-title .icon { color: #5DB3FF; width: 26px; height: 26px; }
.checklist { list-style: none; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .icon { color: #4ADE80; margin-top: 3px; }

.prose h2 { margin-top: 0; }
.prose p { color: #3A4C5A; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.legal h2 { font-size: 1.45rem; margin-top: 2em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin-top: 1.4em; }

/* ---------- Reviews ---------- */
.review { display: flex; flex-direction: column; margin: 0; }
.review blockquote { margin: 0 0 20px; flex: 1; position: relative; padding-top: 28px; }
.review blockquote::before { content: "“"; position: absolute; top: -14px; left: -2px; font-size: 64px; line-height: 1; color: var(--primary-soft); font-family: Georgia, serif; }
.review blockquote p { color: #3A4C5A; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.review figcaption strong { display: block; color: var(--navy); line-height: 1.3; }
.review figcaption small { color: var(--muted); font-size: .85rem; line-height: 1.3; display: block; }
.avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-light); color: var(--primary-dark); font-weight: 750; font-size: .9rem; }
/* projects */
.project { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-soft); }
.project-shot { display: block; text-decoration: none; background: var(--tint); border-bottom: 1px solid var(--border); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #EEF3F8; border-bottom: 1px solid var(--border); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: #CBD6E1; }
.browser-bar span { flex: 1; margin-left: 8px; height: 20px; line-height: 20px; border-radius: 6px; background: #fff; font-size: .72rem; color: var(--muted); text-align: center; font-style: normal; }
.project-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .5s ease; }
.project:hover .project-shot img { transform: scale(1.04); }
.project-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.project-body > p:not(.project-type) { flex: 1; }
.project-type { font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); margin: 0 0 6px !important; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: 18px; }
.tags li { font-size: .78rem; font-weight: 600; color: var(--primary-dark); background: var(--primary-light); padding: 4px 10px; border-radius: 999px; }
.project .card-more { text-decoration: none; }
.project .card-more:hover .icon { transform: translate(2px, -2px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* slider */
.slider-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.slider-head h2 { margin: 0; }
.slider-more { margin: 16px 0 0; }
.slider-nav { display: flex; gap: 10px; flex: none; }
.slider-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--border); background: #fff; color: var(--navy); cursor: pointer; transition: border-color .2s, color .2s, opacity .2s; }
.slider-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.slider-btn:disabled { opacity: .35; cursor: default; }
.icon.flip { transform: scaleX(-1); }
.slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 4px 24px; margin: -4px -4px 0; scrollbar-width: thin; scrollbar-color: var(--primary-soft) transparent; overscroll-behavior-x: contain; }
.slider-track > * { scroll-snap-align: start; }
@media (max-width: 960px) { .slider-track { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 620px) { .slider-track { grid-auto-columns: 86%; } .slider-nav { display: none; } }
.reviews + .center { margin-top: 40px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-weight: 650; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--primary); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- Team / about ---------- */
.team { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px 24px; text-align: center; }
.team img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; box-shadow: 0 0 0 6px var(--primary-light); }
.team strong { display: block; color: var(--navy); font-size: 1.08rem; }
.team span { color: var(--muted); font-size: .95rem; }
.facts { display: grid; gap: 16px; }
.fact { display: flex; gap: 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.fact > .icon { width: 28px; height: 28px; color: var(--primary); margin-top: 2px; }
.fact strong { color: var(--navy); display: block; margin-bottom: 4px; }
.fact p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- CTA band ---------- */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(32px, 5vw, 56px); border-radius: 24px; color: #DCEBF8; background: radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 55%, #0A5FB0 100%); box-shadow: 0 20px 48px rgba(19, 142, 247, .3); }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 560px; color: #DCEBF8; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.cta-phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 650; text-decoration: none; }
.cta-phone:hover { color: #fff; text-decoration: underline; }

/* ---------- Contact ---------- */
.contact { background: var(--tint); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.person { display: flex; gap: 16px; align-items: center; margin-top: 32px; padding: 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); max-width: 420px; }
.person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.person strong { display: block; color: var(--navy); }
.person span { display: block; color: var(--muted); font-size: .9rem; margin-bottom: 4px; }
.person a { display: block; font-size: .95rem; text-decoration: none; }
.form-card { padding: clamp(24px, 4vw, 40px); }
.form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; align-content: start; font-weight: 600; font-size: .93rem; color: var(--navy); }
.form label small { font-weight: 400; color: var(--muted); }
.form input, .form textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--tint); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color .2s, background .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(19, 142, 247, .15); }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; text-align: center; }
.form-error { background: #FEF2F2; color: var(--error); border: 1px solid #FECACA; padding: 12px 16px; border-radius: var(--radius-sm); margin: 0; }
.form-success { text-align: center; padding: 24px 0; }
.form-success .card-icon { background: #DCFCE7; color: var(--success); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 36px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 20px; text-decoration: none; color: inherit; }
.contact-card .card-icon { margin: 0; }
.contact-card small { display: block; color: var(--muted); font-size: .82rem; }
.contact-card strong { color: var(--navy); }
a.contact-card:hover { border-color: var(--primary-soft); color: inherit; }

.legal-list { display: grid; grid-template-columns: 200px 1fr; gap: 0; margin: 0 0 1.5em; border-top: 1px solid var(--border); }
.legal-list dt, .legal-list dd { padding: 12px 0; border-bottom: 1px solid var(--border); margin: 0; }
.legal-list dt { font-weight: 650; color: var(--navy); padding-right: 16px; }
@media (max-width: 600px) { .legal-list { grid-template-columns: 1fr; } .legal-list dt { border-bottom: 0; padding-bottom: 0; } }

/* 404 */
.page-hero-404 { padding: 80px 0 100px; }
.big-404 { font-size: clamp(5rem, 16vw, 9rem); font-weight: 900; line-height: 1; letter-spacing: -.05em; margin: 0 0 8px; background: linear-gradient(135deg, var(--primary), var(--navy)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero-404 .lead { margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #9DB3C4; font-size: .95rem; padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer a { color: #C9D8E4; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.brand-light { color: #fff; margin-bottom: 18px; }
.brand-light:hover { color: #fff; }
.footer-h { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.footer-contact { display: grid; gap: 8px; margin-top: 20px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-contact .icon { color: var(--primary); }
.footer-small { font-size: .85rem; margin-top: 12px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding: 24px 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; color: #7590A4; }

/* ---------- Mobil: centrovaný obsah (karty, nadpisy, boxy, patička) ----------
   Záměrně zůstávají vlevo: dlouhé právní texty, formulář, FAQ a odrážky v AI boxu. */
@media (max-width: 560px) {
  /* nadpisy sekcí, hero a úvodní texty */
  .section-head, .page-hero, .hero-copy, .split > div, .contact-intro, .slider-head { text-align: center; }
  .ai-box-title { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .crumbs, .hero-actions, .hero-points, .tags, .cta-actions { justify-content: center; }
  .slider-head { justify-content: center; }

  /* karty */
  .card, .stat { text-align: center; }
  .stat .icon { margin-left: auto; margin-right: auto; }
  .service-card, .project-body { align-items: center; }
  .contact-card { flex-direction: column; text-align: center; }

  /* reference */
  .review blockquote::before { left: 50%; transform: translateX(-50%); }
  .review figcaption { flex-direction: column; text-align: center; }

  /* kroky postupu – číslo nad textem */
  .steps li, .steps-row li { padding: 76px 20px 22px; text-align: center; }
  .steps li::before { left: 50%; transform: translateX(-50%); }

  /* zajímavosti, kontaktní osoba, CTA */
  .fact { flex-direction: column; align-items: center; text-align: center; }
  .person { flex-direction: column; text-align: center; margin-left: auto; margin-right: auto; }
  .cta-band { text-align: center; justify-content: center; }
  .footer-grid { text-align: center; }
  .footer-grid .brand { justify-content: center; }
  .footer-contact { justify-items: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- Jemné animace při scrollu (čisté CSS, bez JS) ----------
   Animuje se vlastnost "translate", ne "transform", aby dál fungoval hover efekt karet.
   Prohlížeče bez podpory zobrazí obsah normálně. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes rise { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
    @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

    .section-head, .card, .steps li, .stat, .fact, .team li, .cta-band, .split > *, .faq details, .slider-head {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
    .logos li { animation: fade-in linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }

    /* lehké zpoždění sousedních položek v mřížce */
    .grid > :nth-child(3n+2), .steps li:nth-child(2n), .team li:nth-child(2n) { animation-range: entry 10% entry 100%; }
    .grid > :nth-child(3n+3), .team li:nth-child(3n) { animation-range: entry 20% cover 30%; }

    /* karty ve slideru se posouvají vodorovně – tam animaci nechceme */
    .slider-track .card { animation: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
