/* =========================================================================
   MIMA SERVIS – styly webu
   Barvy: firemní modrá #1A4A80 · světle šedá #E9ECEF · bílá #FFFFFF
   ========================================================================= */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.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: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.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: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-tight-latin-ext-wght-normal.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: "Inter Tight"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/inter-tight-latin-wght-normal.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: #1A4A80;
  --blue-700: #153C69;          /* tmavší odstín firemní modré – hover */
  --blue-050: #EEF2F7;          /* velmi jemný odstín – podklady */
  --gray: #E9ECEF;
  --gray-200: #DDE2E7;          /* linky */
  --white: #FFFFFF;
  --ink: #18212B;               /* hlavní text */
  --ink-2: #4A5562;             /* doplňkový text */
  --ink-3: #56616E;             /* popisky (kontrast ≥ 4.5:1 i na šedé) */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Inter Tight", "Inter", system-ui, sans-serif;
  --wrap: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --radius: 6px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; line-height: 1.12; letter-spacing: -.02em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: var(--white); padding: 10px 16px; border-radius: var(--radius); text-decoration: none; }
.skip:focus { top: 12px; color: var(--white); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--gray { background: var(--gray); }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.eyebrow { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.lead { font-size: clamp(1.06rem, 1.4vw, 1.2rem); color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--ink-3); }
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head h2 + .lead { margin-top: 18px; }
.sec-head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.sec-head--split .lead { margin: 0; }
@media (max-width: 860px) { .sec-head--split { grid-template-columns: 1fr; } }

/* ---------- Tlačítka ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 24px; border-radius: var(--radius);
  font: 600 .98rem/1.2 var(--font); letter-spacing: .005em; text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-700); color: var(--white); }
.btn--ghost { background: transparent; color: var(--blue); border-color: rgba(26, 74, 128, .35); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-050); }
.btn--light { background: var(--white); color: var(--blue); }
.btn--light:hover { background: var(--gray); color: var(--blue-700); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .1); border-color: var(--white); color: var(--white); }
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: .92rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Záhlaví a navigace ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.is-scrolled { border-bottom-color: var(--gray-200); box-shadow: 0 6px 24px -18px rgba(24, 33, 43, .35); }
.header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 54px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border: 0; background: none; cursor: pointer;
  font: 500 .96rem/1 var(--font); color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__link:hover { color: var(--blue); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after, .nav__link.is-current::after { transform: scaleX(1); }
.nav__link[aria-current="page"], .nav__link.is-current { color: var(--blue); }
.nav__link svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav__item--drop { position: relative; }
.nav__item--drop.is-open .nav__link svg { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px; padding: 8px; list-style: none; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: 8px; box-shadow: 0 18px 40px -20px rgba(24, 33, 43, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s; }
.nav__item--drop.is-open .dropdown { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.dropdown a { display: block; padding: 10px 12px; border-radius: 4px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--blue-050); color: var(--blue); }
.nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; border-radius: var(--radius); position: relative; }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 17px; } .nav-toggle span:nth-child(2) { top: 23px; } .nav-toggle span:nth-child(3) { top: 29px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1060px) {
  :root { --header-h: 68px; }
  .brand img { height: 44px; }
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; margin: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--pad) 32px;
    background: var(--white); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--gray); }
  .nav__link { width: 100%; justify-content: space-between; padding: 18px 2px; font-size: 1.12rem; }
  .nav__link::after { display: none; }
  .dropdown { position: static; min-width: 0; padding: 0 0 12px 12px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav__item--drop.is-open .dropdown { display: block; }
  .dropdown a { padding: 12px; font-size: 1.02rem; }
  .nav .btn { margin-top: 28px; width: 100%; }
  html.nav-open, html.nav-open body { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--blue); color: var(--white); overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0 0 0 38%; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 40%; }
.hero__media::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--blue) 0%, rgba(26, 74, 128, .82) 14%, rgba(26, 74, 128, .32) 34%, rgba(26, 74, 128, .06) 60%, rgba(26, 74, 128, 0) 100%); }
.hero__inner { display: flex; align-items: center; min-height: clamp(560px, calc(100vh - var(--header-h)), 760px); padding-top: 72px; padding-bottom: 88px; }
.hero__copy { max-width: 560px; }
.hero .eyebrow { color: rgba(255, 255, 255, .78); }
.hero h1 { color: var(--white); }
.hero__lead { margin: 24px 0 36px; font-size: clamp(1.06rem, 1.4vw, 1.2rem); line-height: 1.6; color: rgba(255, 255, 255, .86); max-width: 470px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .94rem; color: rgba(255, 255, 255, .8); list-style: none; }
.hero__meta a { color: var(--white); text-decoration: none; }
.hero__meta a:hover { text-decoration: underline; color: var(--white); }

@media (max-width: 860px) {
  .hero__media { position: relative; inset: auto; aspect-ratio: 1344 / 895; max-height: 520px; width: 100%; }
  .hero__media img { object-position: 40% 45%; }
  .hero__media::before { background: linear-gradient(180deg, rgba(26, 74, 128, 0) 55%, rgba(26, 74, 128, .55) 85%, var(--blue) 100%); }
  .hero__inner { min-height: 0; padding-top: 36px; padding-bottom: 56px; }
  .hero__copy { max-width: none; }
  .hero__lead { margin: 18px 0 28px; }
  .hero__ctas .btn { flex: 1 1 200px; }
  .hero__meta { margin-top: 36px; }
}

/* ---------- Úvod: o společnosti ---------- */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px clamp(48px, 7vw, 112px); align-items: start; }
.about__text .lead { margin-bottom: 1.1em; color: var(--ink); }
.about__text p { color: var(--ink-2); }
.about__text .link-arrow { margin-top: 12px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--gray-200); }
.fact { padding: 28px 28px 0 0; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--gray-200); }
.fact__value { display: block; font-variant-numeric: tabular-nums; font-family: var(--font-head); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 600; color: var(--blue); letter-spacing: -.02em; line-height: 1.1; }
.fact__label { display: block; margin-top: 8px; color: var(--ink-2); font-size: .96rem; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--gray-200); }
}

/* ---------- Služby ---------- */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--gray-200); }
.service { position: relative; display: flex; flex-direction: column; padding: 32px 28px 8px 0; }
.service + .service { padding-left: 28px; border-left: 1px solid var(--gray-200); }
.service::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--blue); transition: width .45s var(--ease); }
.service + .service::before { left: 28px; }
.service:hover::before { width: 56px; }
.service__num { font-family: var(--font-head); font-size: .92rem; font-weight: 600; color: var(--blue); letter-spacing: .04em; }
.service__label { display: block; margin: 22px 0 8px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.service h3 { margin-bottom: 12px; }
.service p { color: var(--ink-2); font-size: .98rem; }
.service .link-arrow { margin-top: auto; padding-top: 20px; font-size: .95rem; }
.section--gray .services { border-top-color: #CDD3DA; }
.section--gray .service + .service { border-left-color: #CDD3DA; }
@media (max-width: 1060px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:nth-child(3) { padding-left: 0; border-left: 0; }
  .service:nth-child(3)::before { left: 0; }
  .service:nth-child(n+3) { border-top: 1px solid var(--gray-200); margin-top: 24px; }
}
@media (max-width: 620px) {
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 28px 0 8px; border-left: 0; }
  .service + .service { border-top: 1px solid var(--gray-200); margin-top: 20px; }
  .service + .service::before { left: 0; }
}

/* ---------- Proč MIMA SERVIS ---------- */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 56px; list-style: none; counter-reset: why; }
.why li { padding-top: 24px; border-top: 2px solid var(--blue); }
.why h3 { font-size: 1.18rem; margin-bottom: 12px; }
.why p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Pobočky ---------- */
.branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.branch { display: flex; flex-direction: column; padding: clamp(28px, 3.5vw, 44px); background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; }
.section--gray .branch { border-color: transparent; }
.branch__role { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.branch h3 { font-size: 1.6rem; margin: 10px 0 6px; }
.branch__addr { font-style: normal; color: var(--ink-2); margin-bottom: 24px; }
.hours { width: 100%; border-collapse: collapse; font-size: .96rem; margin-bottom: 24px; }
.hours th { text-align: left; font-weight: 500; color: var(--ink-2); padding: 9px 0; border-bottom: 1px solid var(--gray); }
.hours td { text-align: right; padding: 9px 0; border-bottom: 1px solid var(--gray); font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { color: var(--ink-3); }
.branch__note { padding: 14px 16px; background: var(--blue-050); border-radius: var(--radius); color: var(--ink); font-size: .96rem; margin-bottom: 24px; }
.branch__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.branch__actions .btn { max-width: 100%; }
.branch__actions .btn span { overflow-wrap: anywhere; }
@media (max-width: 860px) { .branches { grid-template-columns: 1fr; } }

/* ---------- Kontakt + formulář ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(48px, 7vw, 104px); align-items: start; }
.contact__list { list-style: none; margin-top: 36px; border-top: 1px solid var(--gray-200); }
.contact__list li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--gray-200); }
.contact__list .k { color: var(--ink-3); font-size: .92rem; padding-top: 2px; }
.contact__list .v { font-weight: 500; overflow-wrap: anywhere; }
.contact__list .v a { text-decoration: none; }
.contact__list .v a:hover { text-decoration: underline; }
.contact__list .v small { display: block; font-weight: 400; color: var(--ink-3); font-size: .9rem; margin-top: 2px; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact__list li { grid-template-columns: 1fr; gap: 2px; } }

.form { padding: clamp(28px, 4vw, 48px); background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; }
.section--gray .form { border-color: transparent; }
.form h3 { font-size: 1.45rem; margin-bottom: 6px; }
.form__intro { color: var(--ink-2); font-size: .96rem; margin-bottom: 28px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--blue); }
.field label .opt { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: var(--white); border: 1px solid #C9D0D7; border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 132px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234A5562' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9FAAB6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 74, 128, .15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #B42318; }
.field__error { display: none; font-size: .86rem; color: #B42318; }
.field.has-error .field__error { display: block; }
.check { grid-column: 1 / -1; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: .92rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.check.has-error { color: #B42318; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 4px; }
.form__foot .muted { font-size: .88rem; }
.form__status { grid-column: 1 / -1; display: none; padding: 16px 18px; border-radius: var(--radius); font-size: .96rem; }
.form__status.is-ok { display: block; background: #EAF3EC; color: #1E5B2E; }
.form__status.is-error { display: block; background: #FBECEA; color: #8A1C12; }
.form__status a { color: inherit; font-weight: 600; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button[disabled] { opacity: .65; cursor: progress; }
@media (max-width: 620px) { .form__grid { grid-template-columns: 1fr; } .form__foot .btn { width: 100%; } }

/* ---------- Pruh s výzvou ---------- */
.cta-band { background: var(--blue); color: var(--white); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; padding: clamp(48px, 6vw, 72px) 0; }
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 2.8vw, 2.2rem); max-width: 640px; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 12px 0 0; max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Podstránky ---------- */
.page-head { background: var(--gray); padding: clamp(48px, 7vw, 88px) 0 clamp(44px, 6vw, 72px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-bottom: 22px; font-size: .9rem; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #A3ADB8; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.page-head h1 { max-width: 820px; font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.page-head .lead { margin-top: 20px; max-width: 680px; }

.prose { max-width: 720px; }
.prose p { color: var(--ink-2); }
.prose p.lead { color: var(--ink); }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 0 0 18px; }
.prose * + h2 { margin-top: 56px; }
.prose ul { list-style: none; margin: 0 0 1em; }
.prose ul li { position: relative; padding-left: 22px; margin-bottom: 8px; color: var(--ink-2); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--blue); }

.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(48px, 7vw, 112px); }
.split > h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.split + .split { margin-top: clamp(56px, 7vw, 88px); padding-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--gray-200); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.timeline { list-style: none; border-left: 2px solid var(--gray-200); }
.timeline li { position: relative; padding: 0 0 36px 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); }
.timeline .year { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; color: var(--blue); line-height: 1.1; margin-bottom: 8px; }
.timeline p { color: var(--ink-2); }

.dl { display: grid; grid-template-columns: 200px minmax(0, 1fr); border-top: 1px solid var(--gray-200); }
.dl dt, .dl dd { margin: 0; padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
.dl dt { color: var(--ink-3); font-size: .95rem; }
.dl dd { font-weight: 500; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; } .dl dt { border-bottom: 0; padding-bottom: 0; } }

/* Služby – detail */
.svc-detail { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) auto; gap: 24px 56px; align-items: start; padding: 44px 0; border-top: 1px solid var(--gray-200); scroll-margin-top: calc(var(--header-h) + 24px); }
.svc-detail:last-of-type { border-bottom: 1px solid var(--gray-200); }
.svc-detail__head .service__num { display: block; margin-bottom: 14px; }
.svc-detail__head h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.svc-detail__head .service__label { margin: 10px 0 0; }
.svc-detail p { color: var(--ink-2); font-size: 1.04rem; max-width: 560px; }
@media (max-width: 960px) { .svc-detail { grid-template-columns: 1fr; gap: 16px; } }

/* Reality */
.listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; list-style: none; }
.listing { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--gray-200); border-radius: 8px; overflow: hidden; }
.listing__media { position: relative; aspect-ratio: 4 / 3; background: var(--blue-050); overflow: hidden; }
.listing__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.listing:hover .listing__media img { transform: scale(1.03); }
.listing__ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
  background: linear-gradient(135deg, var(--blue-050), var(--gray)); color: var(--blue); }
.listing__ph { align-items: center; justify-content: center; }
.listing__ph svg { width: 56px; height: 56px; opacity: .45; }
.listing__ph span { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.listing__ph small { margin-top: 4px; font-size: .82rem; color: var(--ink-3); }
.status { position: absolute; top: 16px; left: 16px; padding: 6px 10px; border-radius: 4px; font-size: .8rem; font-weight: 600; background: var(--white); color: var(--blue); }
.status--done { background: var(--ink-2); color: var(--white); }
.listing__body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.listing__type { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.listing h2 { font-size: 1.3rem; margin: 8px 0 6px; }
.listing__loc { color: var(--ink-2); font-size: .96rem; margin-bottom: 16px; }
.params { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 14px 0; margin-bottom: 16px; border-top: 1px solid var(--gray); border-bottom: 1px solid var(--gray); font-size: .92rem; }
.params dt { color: var(--ink-3); } .params dd { margin: 0; font-weight: 600; }
.params div { display: flex; gap: 6px; }
.listing__text { color: var(--ink-2); font-size: .96rem; }
.listing__foot { margin-top: auto; padding-top: 18px; }
.listing.is-done .listing__ph, .listing.is-done .listing__media img { filter: grayscale(.6); opacity: .8; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: var(--blue-050); border-radius: var(--radius); color: var(--ink); font-size: .96rem; margin-bottom: 40px; }
.notice svg { width: 20px; height: 20px; flex: none; color: var(--blue); margin-top: 2px; }

/* Dokumenty, odkazy */
.docs { list-style: none; border-top: 1px solid var(--gray-200); }
.doc { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 28px 0; border-bottom: 1px solid var(--gray-200); scroll-margin-top: calc(var(--header-h) + 24px); }
.doc__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius); background: var(--blue-050); color: var(--blue); }
.doc__icon svg { width: 22px; height: 22px; }
.doc h2 { font-size: 1.2rem; margin-bottom: 4px; }
.doc p { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 640px) { .doc { grid-template-columns: 44px minmax(0, 1fr); } .doc .btn { grid-column: 1 / -1; width: 100%; } }

.steps { list-style: none; counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--gray-200); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--gray-200); color: var(--ink-2); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-head); font-weight: 600; color: var(--blue); }

.linkgroup + .linkgroup { margin-top: 56px; }
.linkgroup h2 { font-size: 1.15rem; margin-bottom: 8px; color: var(--ink-3); font-family: var(--font); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; }
.linklist { list-style: none; border-top: 1px solid var(--gray-200); }
.linklist a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--gray-200); text-decoration: none; color: var(--ink); }
.linklist strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; transition: color .2s; }
.linklist span { grid-column: 1; color: var(--ink-2); font-size: .95rem; }
.linklist svg { grid-row: 1 / span 2; grid-column: 2; width: 20px; height: 20px; color: var(--blue); transition: transform .25s var(--ease); }
.linklist a:hover strong { color: var(--blue); }
.linklist a:hover svg { transform: translate(3px, -3px); }
.linklist small { grid-column: 1; color: var(--ink-3); font-size: .82rem; }

/* FAQ */
.faq { border-top: 1px solid var(--gray-200); max-width: 860px; }
.faq__item { border-bottom: 1px solid var(--gray-200); }
.faq__q { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 24px; align-items: center; padding: 26px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font: 600 1.15rem/1.4 var(--font-head); letter-spacing: -.01em; color: var(--ink); }
.faq__q:hover { color: var(--blue); }
.faq__icon { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--gray-200); transition: border-color .2s, background-color .2s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--blue); transform: translate(-50%, -50%); transition: transform .3s var(--ease); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q[aria-expanded="true"] .faq__icon { background: var(--blue); border-color: var(--blue); }
.faq__q[aria-expanded="true"] .faq__icon::before, .faq__q[aria-expanded="true"] .faq__icon::after { background: var(--white); }
.faq__q[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a[data-open] { grid-template-rows: 1fr; }
.faq__a p { color: var(--ink-2); max-width: 720px; }
.faq__a .inner { padding: 0 52px 28px 0; }

/* Kariéra */
.career { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(48px, 7vw, 104px); align-items: start; }
.panel { padding: clamp(28px, 4vw, 40px); background: var(--gray); border-radius: 8px; }
.panel h2 { font-size: 1.3rem; margin-bottom: 10px; }
.panel a { overflow-wrap: anywhere; }
@media (max-width: 860px) { .career { grid-template-columns: 1fr; } }

/* Rozcestník Pro vlastníky */
.hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; }
.hub a { display: flex; flex-direction: column; height: 100%; padding: 32px; border: 1px solid var(--gray-200); border-radius: 8px; text-decoration: none; color: var(--ink); transition: border-color .25s, transform .25s var(--ease); }
.hub a:hover { border-color: var(--blue); transform: translateY(-2px); }
.hub h2 { font-size: 1.35rem; margin-bottom: 10px; }
.hub p { color: var(--ink-2); font-size: .98rem; }
.hub .link-arrow { margin-top: auto; padding-top: 20px; color: var(--blue); }
@media (max-width: 860px) { .hub { grid-template-columns: 1fr; } }

/* ---------- Patička ---------- */
.footer { background: var(--gray); color: var(--ink-2); font-size: .95rem; }
.footer__top { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 40px clamp(64px, 11vw, 168px); padding: clamp(56px, 7vw, 80px) 0 48px; }
.footer h2 { font-family: var(--font); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer li + li { margin-top: 10px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--blue); text-decoration: underline; }
.footer address { font-style: normal; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: 8px 24px; padding: 22px 0 28px; border-top: 1px solid #CDD3DA; font-size: .86rem; color: var(--ink-3); }
@media (max-width: 860px) { .footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; gap: 32px; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- 404 ---------- */
.notfound { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; }

/* ---------- Animace při posouvání (prvky po zobrazení zůstávají) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print { .header, .nav-toggle, .cta-band, .form, .footer__top nav { display: none; } }
