/* Základní nastavení a sdílené prvky */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(/assets/fonts/fraunces-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(/assets/fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
    --blue: #2f5fe8;
    --blue-d: #1b3fae;
    --blue-50: #eef3ff;
    --blue-100: #dce6ff;
    --ink: #0e1734;
    --body: #5a6484;
    --line: #e3e8f5;
    --white: #fff;
    --night: #070c1c;
    --edge: clamp(18px, 4.5vw, 72px);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--body);
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-wrap: pretty;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    margin: 0;
    color: var(--ink);
    font-family: "Fraunces", Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.12;
    text-wrap: balance;
}

p { margin: 0; }
a { color: var(--blue); }
a:hover { color: var(--blue-d); }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.7; }
::selection { background: var(--blue-100); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
main { scroll-margin-top: 80px; }
main:focus { outline: none; }

.skip-link {
    position: fixed;
    top: 10px;
    left: 18px;
    z-index: 100;
    padding: 12px 20px;
    transform: translateY(-160%);
    border-radius: 8px;
    background: var(--white);
}

.skip-link { clip-path: inset(50%); }
.skip-link:focus { transform: none; clip-path: none; }

.button, .button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.65;
    text-decoration: none;
    transition: transform 250ms, background 250ms, box-shadow 250ms;
}

.button {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 10px 24px rgb(47 95 232 / 22%);
}

.button:hover {
    transform: translateY(-2px);
    background: var(--blue-d);
    color: var(--white);
    box-shadow: 0 14px 30px rgb(47 95 232 / 30%);
}

.button-secondary {
    border-color: var(--line);
    background: var(--white);
    color: var(--ink);
}

.button-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--blue);
    background: var(--blue-50);
    color: var(--ink);
}

.card {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    transition: transform 300ms, box-shadow 300ms, border-color 300ms;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--blue-100);
    box-shadow: 0 18px 40px rgb(14 23 52 / 9%);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--blue-50);
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stat-value {
    color: var(--ink);
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 600;
    line-height: 1;
}

/* Navigace: nativní details funguje i bez JavaScriptu. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 14px var(--edge);
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 94%);
    backdrop-filter: blur(14px);
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
    margin-right: auto;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.brand img { display: block; }
.desktop-nav { display: flex; align-items: center; gap: 24px; }
.nav-link { color: #4b5267; font-size: 15px; text-decoration: none; white-space: nowrap; }
.nav-link:hover { color: var(--ink); }
.header-cta { padding: 11px 20px; font-size: 14px; white-space: nowrap; }
.mobile-menu { display: none; }

.mobile-menu summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font-weight: 700;
    list-style: none;
}

.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu[open] summary { background: var(--blue-50); }
.mobile-menu nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: min(360px, 100%);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 0 0 0 20px;
    background: var(--white);
    box-shadow: 0 18px 40px rgb(14 23 52 / 12%);
}

.mobile-menu nav a { display: block; padding: 10px 16px; color: var(--ink); text-decoration: none; }
.mobile-menu nav a:hover { border-radius: 8px; background: var(--blue-50); }

/* Formulář */
.contact-form {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: clamp(22px, 2.6vw, 30px);
    border-radius: 20px;
    background: var(--white);
    color: var(--body);
    box-shadow: 0 20px 44px rgb(14 23 52 / 18%);
}

.form-field :is(input, select, textarea), .form-feedback { scroll-margin-top: 100px; }
.form-field { display: grid; gap: 6px; min-width: 0; }
.form-field label { color: var(--ink); font-size: 13px; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcff;
    color: var(--ink);
    font-size: 16px;
    transition: border-color 200ms, background 200ms;
}

.form-field textarea { resize: vertical; }
.form-field :is(input, select, textarea):hover { border-color: #c9d5f2; }
.form-field :is(input, select, textarea):focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgb(47 95 232 / 12%); }
.form-field [aria-invalid="true"] { border-color: #a32020; }
.form-field ::placeholder { color: #69738d; }
.form-note { font-size: 12.5px; line-height: 1.55; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.field-error { color: #a32020; font-size: 13px; }
.form-feedback { padding: 16px; border: 1px solid #e5b2b2; border-radius: 12px; background: #fff5f5; color: #802020; }
.form-feedback ul { margin-bottom: 0; padding-left: 20px; }
.form-feedback a { color: inherit; }

/* Patička a stavové stránky */
.site-footer { border-top: 1px solid var(--line); background: #fbfcff; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; max-width: 1280px; margin: auto; padding: 22px var(--edge); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.cookie-settings-link { white-space: nowrap; }
.message-page { max-width: 900px; min-height: 65vh; margin: auto; padding: 80px var(--edge); }
.message-page h1 { margin: 24px 0; font-size: clamp(36px, 5vw, 60px); }
.message-page p { margin-bottom: 28px; }

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes dash { to { stroke-dashoffset: -40; } }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Úvod a ilustrace viditelnosti */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #eaf0ff 0%, #f6f4ff 42%, #fdfbf3 100%);
}

.hero-curves {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .5;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(48px, 6vw, 86px) var(--edge) clamp(56px, 7vw, 96px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
}

.hero-title {
    font-size: clamp(36px, 4.6vw, 62px);
    margin: 22px 0 20px;
}

.hero-intro {
    font-size: 17px;
    max-width: 52ch;
    margin-bottom: 28px;
}

.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-illustration {
    position: relative;
}

.visibility-window {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(14, 23, 52, .12);
    padding: 20px;
    animation: floaty 4s ease-in-out 1;
}

.window-toolbar {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 16px;
}

.window-close {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff5f57;
}

.window-minimize {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #febc2e;
}

.window-expand {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #28c840;
}

.window-caption {
    margin-left: 10px;
    font-size: 12px;
    color: var(--body);
}

.diagram {
    width: 100%;
    height: auto;
    display: block;
}

.chart-dash {
    animation: dash 2.4s linear 1;
}

.chart-pulse {
    animation: pulse 2.6s ease-in-out 1;
}

.ai-mention {
    position: absolute;
    right: -6px;
    bottom: -26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(14, 23, 52, .12);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--blue-50);
    color: var(--blue);
    font-weight: 700;
}

.ai-mention-title {
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink);
    font-weight: 700;
}

.ai-mention-sources {
    font-weight: 400;
    color: var(--body);
}

/* Zkušenosti v číslech */

.credentials {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--edge);
    transform: translateY(-34px);
}

.credentials-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 20px 44px rgba(14, 23, 52, .08);
    padding: clamp(22px, 3vw, 34px);
}

.credentials-heading {
    text-align: center;
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--body);
    margin-bottom: 22px;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.credential-caption {
    font-size: 14px;
    margin-top: 6px;
}

/* Průběh spolupráce */

.cooperation {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(40px, 5vw, 70px) var(--edge) clamp(50px, 6vw, 80px);
    scroll-margin-top: 80px;
}

.cooperation-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(34px, 5vw, 80px);
    align-items: center;
}

.strategy-diagram {
    position: relative;
    background: linear-gradient(140deg, #eef3ff, #f7f5ff);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: clamp(22px, 3vw, 34px);
}

.diagram-flow {
    animation: dash 3s linear 1;
}

.cooperation-title {
    font-size: clamp(28px, 3.4vw, 44px);
    margin: 20px 0 18px;
}

.cooperation-copy {
    margin-bottom: 16px;
    max-width: 54ch;
}

.cooperation-summary {
    margin-bottom: 28px;
    max-width: 54ch;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: clamp(36px, 4vw, 56px);
}

.step-card {
    padding: clamp(22px, 2.4vw, 30px);
}

.step-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--blue-50);
    color: var(--blue);
    font-weight: 700;
    margin-bottom: 18px;
}

.step-title {
    font-size: 20px;
    margin-bottom: 10px;
}

.card-copy {
    font-size: 15px;
}

/* Služby */

.services {
    background: linear-gradient(180deg, #f4f7ff, #fbfcff);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 80px;
}

.section-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(50px, 6vw, 84px) var(--edge);
}

.services-heading {
    text-align: center;
    max-width: 620px;
    margin: 0 auto clamp(32px, 4vw, 48px);
}

.section-title {
    font-size: clamp(28px, 3.4vw, 44px);
    margin: 18px 0 14px;
}

.section-intro {
    font-size: 17px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.service-number {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--blue-50);
    color: var(--blue);
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: 16px;
}

.service-title {
    font-size: 18px;
    line-height: 1.3;
}

.service-copy {
    font-size: 14.5px;
}

.new-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--blue);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
}

/* SEO pro AI */

.geo {
    background: var(--night);
    color: #cfd8ef;
    scroll-margin-top: 80px;
}

.geo-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(50px, 6vw, 90px) var(--edge);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(34px, 5vw, 72px);
    align-items: center;
}

.pill-dark {
    background: rgba(47, 95, 232, .2);
    color: #9ab3ff;
}

.geo-title {
    font-size: clamp(28px, 3.6vw, 46px);
    color: #fff;
    margin: 20px 0 18px;
}

.geo-intro {
    color: #a8b4d4;
    max-width: 52ch;
    margin-bottom: 22px;
}

.geo-summary {
    color: #a8b4d4;
    max-width: 52ch;
    margin-bottom: 26px;
}

.geo-services {
    display: grid;
    gap: 14px;
    margin-bottom: 30px;
}

.geo-service {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 16px;
    padding: 20px;
}

.geo-service-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
}

.geo-service-copy {
    font-size: 14.5px;
    color: #a8b4d4;
}

.geo-diagram {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 24px;
    padding: clamp(20px, 2.6vw, 30px);
}

/* Vývoj aplikací */

.applications {
    background: linear-gradient(180deg, #fbfcff, #f4f7ff);
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 80px;
}

.applications-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(30px, 4vw, 64px);
    align-items: center;
    margin-bottom: clamp(30px, 4vw, 48px);
}

.applications-title {
    font-size: clamp(28px, 3.4vw, 44px);
    margin: 18px 0 16px;
}

.applications-copy {
    max-width: 54ch;
    margin-bottom: 16px;
}

.applications-summary {
    max-width: 54ch;
    margin-bottom: 26px;
}

.applications-diagram {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(14, 23, 52, .08);
    padding: clamp(20px, 2.6vw, 30px);
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.application-card {
    padding: 26px;
}

.application-title {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Moje cesta */

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(50px, 6vw, 84px) var(--edge);
    scroll-margin-top: 80px;
}

.journey-heading {
    max-width: 620px;
    margin-bottom: clamp(30px, 4vw, 48px);
}

.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    display: grid;
    gap: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: clamp(16px, 3vw, 40px);
    align-items: start;
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.timeline-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.timeline-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--blue);
    flex: none;
    box-shadow: 0 0 0 5px var(--blue-50);
}

.timeline-year {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 19px;
    color: var(--ink);
    font-weight: 600;
}

.timeline-title {
    font-size: 19px;
    margin-bottom: 8px;
}

.timeline-copy {
    font-size: 15px;
    max-width: 66ch;
}

/* Reference */

.references-heading {
    text-align: center;
    max-width: 620px;
    margin: 0 auto clamp(30px, 4vw, 44px);
}

.references-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.reference-card {
    padding: 28px;
}

.reference-diagram {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.reference-result {
    font-size: 30px;
}

.reference-title {
    font-size: 19px;
    margin: 14px 0 4px;
}

.reference-company {
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Kontakt */

.contact {
    scroll-margin-top: 80px;
}

.contact-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--edge) clamp(50px, 6vw, 80px);
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(30px, 4vw, 60px);
    background: linear-gradient(135deg, #2f5fe8, #5b7bff 55%, #8aa0ff);
    border-radius: 26px;
    padding: clamp(30px, 4vw, 56px);
    color: #fff;
    align-items: center;
}

.contact-title {
    color: #fff;
    font-size: clamp(28px, 3.4vw, 44px);
    margin-bottom: 16px;
}

.contact-intro {
    color: rgba(255, 255, 255, .88);
    max-width: 46ch;
    margin-bottom: 22px;
}

.contact-details {
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 22px;
}

.button-white {
    background: #fff;
    color: var(--blue);
    box-shadow: none;
}

.button-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .5);
}

/* Právní dokumenty */

.legal-hero {
    background: linear-gradient(135deg, #eaf0ff 0%, #f6f4ff 45%, #fdfbf3 100%);
    border-bottom: 1px solid var(--line);
}

.legal-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(40px, 5vw, 72px) var(--edge);
}

.legal-eyebrow {
    font-size: 13px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 700;
    margin-bottom: 14px;
}

.legal-title {
    font-size: clamp(32px, 4.2vw, 52px);
    margin-bottom: 14px;
}

.legal-intro {
    max-width: 60ch;
}

.legal-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(32px, 4vw, 56px) var(--edge) 72px;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 86px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    background: #fbfcff;
}

.toc-title {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}

.toc-list {
    list-style: none;
    padding: 0;
    font-size: 14.5px;
    display: grid;
    gap: 8px;
}

.toc-link {
    text-decoration: none;
}

.legal-article {
    max-width: 72ch;
}

.legal-section {
    scroll-margin-top: 90px;
}

.legal-first-title {
    margin-top: 0;
}

.legal-effective-date {
    margin-top: 20px;
    font-size: 14.5px;
    color: var(--body);
}

/* Delší texty a české názvy musí zůstat čitelné i na úzkém displeji. */
.hero-inner > *, .cooperation-intro > *, .geo-inner > *,
.applications-intro > *, .contact-panel > * { min-width: 0; }
.service-title { overflow-wrap: anywhere; }
.contact-details, .contact-intro { color: #fff; }
.contact-panel { background: linear-gradient(135deg, #2f5fe8, #405fc7 55%, #4b65bb); }
.button-white:hover { background: var(--blue-50); color: var(--blue-d); }
.button-outline:hover { background: rgb(255 255 255 / 12%); color: var(--white); border-color: var(--white); }
.legal-article { line-height: 1.7; }
.legal-article h2 { margin: 38px 0 12px; font-size: 22px; }
.legal-article .legal-first-title { margin-top: 0; }
.legal-article p + p { margin-top: 12px; }
.legal-article ul { margin-top: 10px; padding-left: 20px; }
.legal-article li { margin-bottom: 6px; }
.toc-list { margin: 0; }
.tbl { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14.5px; }
.tbl th { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 12px; letter-spacing: 0.08em; text-align: left; text-transform: uppercase; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

@media (max-width: 1250px) {
    .desktop-nav { gap: 15px; }
    .site-header { gap: 16px; }
    .header-cta { display: none; }
}

@media (max-width: 980px) {
    .desktop-nav { display: none; }
    .mobile-menu { display: block; }
    .header-cta { display: inline-flex; }
    .hero-inner, .cooperation-intro, .geo-inner,
    .applications-intro, .contact-panel { grid-template-columns: 1fr; }
    .steps, .services-grid, .applications-grid,
    .references-grid, .credentials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-visual { width: 100%; max-width: 520px; }
}

@media (max-width: 900px) {
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc { position: static; }
}

@media (max-width: 620px) {
    .header-cta { display: none; }
    .steps, .references-grid { grid-template-columns: 1fr; }
    .ai-mention { display: none; }
    .contact-panel { padding: 26px 18px; }
    .contact-form { padding: 20px; }
    .button-group { align-items: stretch; }
    .contact .button-group > a { max-width: 100%; padding-inline: 16px; }
    .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
    .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .tbl tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
    .tbl td { padding: 4px 0; border: 0; }
    .tbl td:first-child { color: var(--ink); font-weight: 700; }
}

@media (max-width: 560px) {
    .services-grid, .applications-grid { grid-template-columns: 1fr; }
    .timeline-item { grid-template-columns: 1fr; gap: 10px; }
    .hero-title { font-size: clamp(34px, 8vw, 44px); }
    .hero-title br { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .card:hover, .button:hover, .button-secondary:hover { transform: none; }
}

@media print {
    .site-header, .site-footer, .contact-form, .skip-link, .legal-toc { display: none; }
    body { color: #000; font-size: 11pt; }
    .legal-layout { display: block; padding: 0; }
    .legal-article { max-width: none; }
    .card, .timeline-item { break-inside: avoid; }
    a { color: inherit; }
}

/* Drobečková navigace právních stránek */
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumbs li + li::before {
    content: "/";
    margin-right: 12px;
    color: var(--body);
}

.breadcrumbs a {
    display: inline-block;
    padding-block: 6px;
}

.service-card[id] {
    scroll-margin-top: 90px;
}

/* Staré sdílené kotvy zůstávají funkční bez JavaScriptu. */
.legacy-anchor {
    display: block;
    height: 0;
    scroll-margin-top: 90px;
}

/* Lišta souhlasu s cookies a stránka nastavení */
.consent-banner {
    position: fixed;
    z-index: 40;
    inset: auto 0 0;
    border-top: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 -18px 44px rgb(14 23 52 / 14%);
}

.consent-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px 32px;
    align-items: center;
    max-width: 1280px;
    margin: auto;
    padding: 20px var(--edge);
}

.consent-lead h2 { font-size: 20px; }
.consent-lead p { margin-top: 8px; max-width: 78ch; font-size: 14.5px; }

.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-actions .button, .consent-actions .button-secondary { flex: 1 1 auto; padding-inline: 20px; }

.consent-choices { grid-column: 1 / -1; }
.consent-choices summary { width: fit-content; color: var(--blue); font-size: 14px; font-weight: 700; }
.consent-choices summary:hover { color: var(--blue-d); }
.consent-choices > .button-secondary { margin-top: 14px; }

.consent-list, .consent-choices ul {
    max-height: 40vh;
    margin: 14px 0 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.consent-list > li, .consent-choices li {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcff;
}

.consent-list > li + li, .consent-choices li + li { margin-top: 10px; }

.consent-list label, .consent-choices label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 700;
}

.consent-list label span, .consent-choices label span { color: var(--body); font-size: 13px; font-weight: 400; }
.consent-list input, .consent-choices input { width: 18px; height: 18px; accent-color: var(--blue); }
.consent-list p, .consent-choices p { margin-top: 6px; font-size: 14px; }

.consent-page { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.consent-form { margin-top: 18px; }
.consent-form .consent-actions { margin-top: 18px; }
.consent-status { color: var(--ink); font-weight: 700; }
.consent-flag { display: inline-block; margin-right: 10px; color: var(--body); font-weight: 400; }
.consent-flag::before { content: "✕"; margin-right: 6px; color: #b23a3a; }
.consent-flag.is-on::before { content: "✓"; color: #2f8f5b; }

/* Lišta leží přes obsah a nerezervuje si místo: po rozhodnutí se tak nezmění výška stránky
   a čtenáři nepodjede text pod rukama. Patičku odkryje kliknutí, které lištu odstraní. */

@media (max-width: 900px) {
    .consent-inner { grid-template-columns: minmax(0, 1fr); }
    .consent-lead h2 { font-size: 18px; }
    .consent-list, .consent-choices ul { max-height: 34vh; }
}
