/* kubu.cz – styl webu
   Barvy vychází z tiskové kontrolní škály: CMYK + registrační černá. */

@font-face {
  font-family: "Instrument";
  src: url("../fonts/instrument-sans-latin-ext-standard-normal.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  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: "Instrument";
  src: url("../fonts/instrument-sans-latin-standard-normal.woff2") format("woff2");
  font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  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: "Instrument";
  src: url("../fonts/instrument-sans-latin-ext-standard-italic.woff2") format("woff2");
  font-weight: 400 700; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument";
  src: url("../fonts/instrument-sans-latin-standard-italic.woff2") format("woff2");
  font-weight: 400 700; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC;
}

:root {
  --paper: #f6f7f5;
  --sheet: #ffffff;
  --ink: #231f20;          /* registrační černá */
  --ink-soft: #5b5859;
  --line: #d6d8d4;
  --cyan: #009fe3;
  --magenta: #e5007d;
  --yellow: #ffed00;
  --brand: #312783;       /* modrá z loga Kubů */
  --focus: #312783;

  --display: "Instrument", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Instrument", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --max: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-0);
  line-height: 1.55;
  }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
p { margin: 0 0 1em; max-width: 68ch; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.15; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Kontrolní škála – podpis webu */
.strip { display: grid; grid-template-columns: repeat(4, 3fr) repeat(6, 1fr); height: 10px; }
.strip span:nth-child(1) { background: var(--cyan); }
.strip span:nth-child(2) { background: var(--magenta); }
.strip span:nth-child(3) { background: var(--yellow); }
.strip span:nth-child(4) { background: var(--ink); }
.strip span:nth-child(5) { background: color-mix(in srgb, var(--ink) 80%, var(--paper)); }
.strip span:nth-child(6) { background: color-mix(in srgb, var(--ink) 60%, var(--paper)); }
.strip span:nth-child(7) { background: color-mix(in srgb, var(--ink) 40%, var(--paper)); }
.strip span:nth-child(8) { background: color-mix(in srgb, var(--ink) 20%, var(--paper)); }
.strip span:nth-child(9) { background: color-mix(in srgb, var(--ink) 10%, var(--paper)); }
.strip span:nth-child(10) { background: var(--sheet); }

/* Hlavička */
.site-head { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand img { height: 50px; width: auto; }
@media (max-width: 480px) { .brand img { height: 42px; } }
.brand b { color: var(--brand); font-family: var(--display); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; }
.brand small { font-size: .85rem; color: var(--ink-soft); }
.nav ul { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; }
.nav a { text-decoration: none; font-weight: 500; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brand); }
.head-phone { font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .brand small { display: none; }
  .head-phone { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid var(--ink); border-radius: 2px; font: inherit; font-weight: 600; padding: .45rem .8rem; color: var(--ink); cursor: pointer; }
  .nav { position: absolute; inset: 100% 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1rem; }
  .nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { border-bottom: 0; }
}
@media (min-width: 961px) { .nav-phone { display: none; } }

/* Tlačítka */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.3rem; font-weight: 600; text-decoration: none; border: 2px solid var(--ink); border-radius: 2px; background: var(--ink); color: #fff; }
.btn:hover { background: var(--brand); border-color: var(--brand); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lead { font-size: var(--step-1); line-height: 1.45; color: var(--ink-soft); max-width: 34ch; }
.hero-meta { margin-top: 2rem; font-size: .95rem; color: var(--ink-soft); }
.hero-meta strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Rámeček fotek (dříve ořezové značky) */
.cropped { position: relative; }
.cropped img { border-radius: 4px; }
.cropped video, .cropped img { width: 100%; background: var(--line); }
.cropped .machine-photo { background: #fff; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; padding: 4%; }
.caption { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; }
.video-toggle { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* Sekce */
.section { padding: clamp(3rem, 7vw, 6rem) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem clamp(2rem, 4vw, 4rem); margin-bottom: clamp(2rem, 4vw, 3rem); align-items: end; }
.section-head p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Seznam služeb – řádky jako technický list */
.services { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.services li { border-bottom: 1px solid var(--line); }
.services a { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 2fr); gap: 1rem clamp(2rem, 4vw, 4rem); padding: 1.6rem 0; text-decoration: none; align-items: baseline; }
.services h3 { font-size: var(--step-2); font-weight: 700; }
.services p { margin: 0; color: var(--ink-soft); }
.services .more { justify-self: end; font-weight: 600; white-space: nowrap; border-bottom: 2px solid var(--ink); }
.services a:hover h3 { color: var(--brand); }
.services a:hover .more { border-color: var(--brand); }
@media (max-width: 760px) {
  .services a { grid-template-columns: 1fr; gap: .4rem; }
  .services .more { justify-self: start; }
}

/* Technika */
.tech { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.specs { margin: 0; display: grid; grid-template-columns: max-content 1fr; border-top: 2px solid var(--ink); }
.specs dt, .specs dd { margin: 0; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 600; padding-right: 1.5rem; }
.specs dd { color: var(--ink-soft); }

.machine h3 { margin-bottom: .75rem; font-size: var(--step-2); }
@media (max-width: 860px) { .tech { grid-template-columns: 1fr; } }

/* Postup – skutečná sekvence, proto čísla */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); counter-reset: krok; }
.steps li { padding: 1.25rem 1.25rem 1.5rem 0; counter-increment: krok; }
.steps li + li { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.steps li::before { content: counter(krok); display: block; font-family: var(--display); font-size: 2.6rem; font-weight: 700; line-height: 1; margin-bottom: .75rem; color: var(--ink); }
.steps li:nth-child(1)::before { color: var(--cyan); }
.steps li:nth-child(2)::before { color: var(--magenta); }
.steps li:nth-child(3)::before { color: #c9b800; }
.steps h3 { margin-bottom: .4rem; }
.steps p { margin: 0; font-size: .97rem; color: var(--ink-soft); }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 1.25rem 0; border-left: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 3rem 1fr; column-gap: 1rem; }
  .steps li::before { grid-row: span 2; margin: 0; }
}

/* Reference */
.clients { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.clients li { padding: 1.4rem 1rem 1.4rem 0; border-bottom: 1px solid var(--line); }
.clients strong { display: block; font-family: var(--display); font-size: var(--step-1); font-weight: 700; }
.clients span { color: var(--ink-soft); font-size: .95rem; }
@media (max-width: 760px) { .clients { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .clients { grid-template-columns: 1fr; } }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 4rem); }
.contact-big a { display: block; font-family: var(--display); font-size: var(--step-3); font-weight: 700; line-height: 1.1; text-decoration: none; word-break: break-word; }
.contact-big a:hover { color: var(--brand); }
.contact-big > p { margin-top: 1.5rem; color: var(--ink-soft); }
.contact .address { margin-top: 2rem; }
.contact .route { margin-top: 1.5rem; }
.address { font-style: normal; border-top: 2px solid var(--ink); padding-top: 1rem; }
.address h3 { margin-bottom: .5rem; }
.address p { margin-bottom: 1.25rem; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Podstránky */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { max-width: 16ch; margin-bottom: 1.25rem; }
.page-head .lead { font-size: var(--step-1); color: var(--ink-soft); max-width: 46ch; line-height: 1.45; }
.crumbs { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.crumbs a { color: inherit; }

.prose h2 { margin: 0 0 1rem; }
.prose h3 { margin: 2rem 0 .5rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1rem clamp(2rem, 4vw, 4rem); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.materials { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.materials li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: .25rem 2rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.materials b { font-weight: 650; }
.materials span { color: var(--ink-soft); }
.materials em { font-style: normal; display: inline-block; margin-left: .35rem; padding: 0 .4rem; font-size: .82rem; font-weight: 600; border: 1px solid var(--ink); border-radius: 2px; color: var(--ink); white-space: nowrap; }
@media (max-width: 640px) { .materials li { grid-template-columns: 1fr; } }

.note { border-left: 4px solid var(--yellow); background: var(--sheet); padding: 1rem 1.25rem; margin: 2rem 0 0; max-width: 68ch; }
.note p:last-child { margin: 0; }

/* Roll-upy */
.models { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.model { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.25rem clamp(1.5rem, 3vw, 3rem); padding: 2rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.model figure { margin: 0; background: var(--sheet); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.model figure img { width: 100%; height: 100%; object-fit: contain; }
.model .noimg { color: var(--ink-soft); font-size: .9rem; padding: 1rem; text-align: center; }
.model h3 { font-size: var(--step-2); margin-bottom: .6rem; }
.model p { color: var(--ink-soft); }
.model .tag { display: inline-block; font-size: .85rem; font-weight: 600; padding: .1rem .5rem; margin-bottom: .6rem; background: var(--yellow); }
.sizes { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sizes th, .sizes td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.sizes th { font-weight: 600; }
.sizes td:last-child, .sizes th:last-child { text-align: right; }
@media (max-width: 760px) { .model { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.gallery figure { margin: 0; background: var(--sheet); aspect-ratio: 3 / 4; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.checklist { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.checklist li { padding: .8rem 0 .8rem 2rem; border-bottom: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: .8rem; height: .8rem; background: var(--cyan); }
.checklist li:nth-child(4n+2)::before { background: var(--magenta); }
.checklist li:nth-child(4n+3)::before { background: var(--yellow); }
.checklist li:nth-child(4n+4)::before { background: var(--ink); }

.cta-band { background: var(--brand); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta-band h2 { max-width: 20ch; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.cta-band .btn.ghost { background: transparent; color: #fff; }
.cta-band :focus-visible { outline-color: var(--yellow); }

/* Patička */
.site-foot { padding: 3rem 0 2rem; font-size: .92rem; color: var(--ink-soft); }
.site-foot .cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.site-foot h2 { font-size: 1.05rem; font-family: var(--text); font-weight: 600; color: var(--ink); margin-bottom: .6rem; letter-spacing: 0; }
.site-foot p { margin: 0 0 .4rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .35rem; }
.legal { padding-top: 1.25rem; font-size: .85rem; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .site-head, .strip, .cta-band, .hero video { display: none; }
  body { background: #fff; }
}

.mb { margin-bottom: 1.5rem; }
.actions.flush { margin-top: 0; }

.machine + .machine { margin-top: 2.5rem; }
.side-photo { margin: 1.5rem 0 0; max-width: 26rem; }
.side-photo img { width: 100%; }

/* Mapa – Google se načte až po kliknutí (bez cookies předem) */
.map { position: relative; aspect-ratio: 4 / 3; background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .75rem; text-align: center; padding: 1.5rem;
  background:
    linear-gradient(90deg, transparent 49.5%, var(--line) 49.5%, var(--line) 50.5%, transparent 50.5%) 0 0 / 48px 48px,
    linear-gradient(0deg, transparent 49.5%, var(--line) 49.5%, var(--line) 50.5%, transparent 50.5%) 0 0 / 48px 48px,
    var(--sheet); }
.map-placeholder p { margin: 0; background: var(--sheet); padding: .25rem .5rem; }
.map-note { font-size: .85rem; color: var(--ink-soft); }
.map-links { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: .75rem; font-weight: 600; }
.route strong { color: var(--ink); font-weight: 600; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1.5rem; font-weight: 600; }


/* === Osvěžení barev (v10) === */
:root {
  --tint-c: #e6f5fc;
  --tint-m: #fdebf4;
  --tint-y: #fffbdb;
  --tint-b: #eceefa;
}
.btn { background: var(--brand); border-color: var(--brand); }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn.ghost { color: var(--brand); border-color: var(--brand); }
.btn.ghost:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

.hero { background: linear-gradient(135deg, var(--tint-b) 0%, var(--paper) 55%, var(--tint-c) 100%); }
.hero h1 { color: var(--brand); }
.page-head { background: linear-gradient(135deg, var(--tint-b) 0%, var(--paper) 70%); }
.page-head h1 { color: var(--brand); }

.section.tint-c { background: var(--tint-c); border-top-color: transparent; }
.section.tint-y { background: var(--tint-y); border-top-color: transparent; }
.section.tint-b { background: var(--tint-b); border-top-color: transparent; }
.tint-c + .section, .tint-y + .section, .tint-b + .section { border-top-color: transparent; }

/* barevné značky u služeb – CMYK dokola */
.services h3 { display: flex; align-items: center; gap: .75rem; }
.services h3::before { content: ""; flex: none; width: .7rem; height: .7rem; border-radius: 2px; background: var(--cyan); }
.services li:nth-child(4n+2) h3::before { background: var(--magenta); }
.services li:nth-child(4n+3) h3::before { background: var(--yellow); }
.services li:nth-child(4n+4) h3::before { background: var(--ink); }
.services a { transition: background-color .15s; padding-inline: .75rem; margin-inline: -.75rem; }
.services a:hover { background: var(--sheet); }

.services, .specs, .materials, .clients, .checklist, .steps { border-top-color: var(--brand); }
.model .tag { background: var(--yellow); }
.clients strong { color: var(--brand); }
.contact-big a { color: var(--brand); }
.contact-big a:hover { color: var(--magenta); }

.site-foot { background: var(--brand); color: #d9dbf3; }
.site-foot h2 { color: #fff; }
.site-foot a { color: #fff; }
.site-foot a:hover { text-decoration-color: var(--yellow); }
.site-foot .cols { border-bottom-color: rgba(255,255,255,.2); }
.site-foot :focus-visible { outline-color: var(--yellow); }
@media (prefers-reduced-motion: reduce) { .services a { transition: none; } }

/* Větší logo s nápisem pod znakem */
.site-head .wrap { min-height: 6.75rem; }
.brand img { height: 82px; width: auto; }
@media (max-width: 960px) { .site-head .wrap { min-height: 5rem; } .brand img { height: 56px; } }
@media (max-width: 400px) { .brand img { height: 48px; } }
html { scroll-padding-top: 7.5rem; }

/* Mozaika obrázků */
.mosaic { padding: 0 0 clamp(3rem, 6vw, 5rem); }
.mosaic-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 220px 220px; gap: .75rem; }
.mosaic figure { margin: 0; position: relative; overflow: hidden; border-radius: 4px; background: var(--line); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption { position: absolute; left: .75rem; bottom: .75rem; background: var(--sheet); color: var(--ink); font-size: .85rem; font-weight: 600; padding: .25rem .6rem; border-radius: 2px; }
.m-a { grid-row: span 2; }
.m-b { grid-column: span 2; }
.m-c { grid-row: span 2; }
.m-d { grid-column: span 2; }
@media (max-width: 760px) {
  .mosaic-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 160px 160px; }
  .m-a { grid-row: span 2; } .m-b { grid-column: 1 / -1; grid-row: 3; } .m-c, .m-d { grid-row: auto; grid-column: auto; }
}

.hero .cropped { margin-top: .5rem; }
.hero .cropped img { box-shadow: 0 1px 0 var(--line); }

/* Kontakt: mapa vedle údajů na stejnou výšku, cesta pod tím */
.contact { align-items: stretch; }
.contact > div:last-child { display: flex; }
.map.map-fill { aspect-ratio: auto; min-height: 22rem; flex: 1; border-color: var(--brand); }
.route-row { margin-top: 2.5rem; }
.route-row .map-links { margin: 0 0 1rem; }
.route-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem); border-top: 2px solid var(--brand); }
.route-grid li { padding: 1rem 0; display: flex; flex-direction: column; gap: .3rem; }
.route-grid b { font-weight: 600; }
.route-grid span { color: var(--ink-soft); }
.route-grid strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .route-grid { grid-template-columns: 1fr; } .route-grid li { border-bottom: 1px solid var(--line); } }

/* Velké monitory: širší obsah a o něco větší písmo */
@media (min-width: 1600px) {
  :root { --max: 90rem; }
  body { font-size: 1.125rem; }
}

.picto { display: block; width: 64px; height: 64px; margin-bottom: 1rem; }
.head-ico { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1rem; }
.head-ico .picto { width: auto; height: 2.2em; font-size: var(--step-3); margin: 0; flex: none; }
.head-ico h2 { margin: 0; }
.section-head .head-ico { margin: 0; }

.services h3::before { display: none; }
.svc-ico { width: 48px; height: 48px; flex: none; }
.services h3 { align-items: center; }

/* Opravy po testu */
.cta-band .btn.ghost { color: #fff; border-color: #fff; background: transparent; }
.cta-band .btn.ghost:hover { background: #fff; color: var(--brand); border-color: #fff; }
.site-foot li a, .site-foot p a { display: inline-block; padding: .55rem 0; }
.site-foot li { margin-bottom: 0; }
