/* ==========================================================================
   NORTHEX — montáže skladových regálových systémů
   Hlavní stylopis (sdílený pro všechny stránky)
   ========================================================================== */

/* ---- Design tokeny -------------------------------------------------------- */
:root {
  --navy:        #001229;
  --navy-soft:   #001f3d;
  --blue:        #0057B6;
  --blue-light:  #6a8fd9;
  --bg:          #F4F6FA;
  --card:        #ffffff;
  --panel:       #F4F4F1;
  --border:      #C9C9C4;
  --border-soft: #E4E4DF;
  --text:        #001229;
  --muted:       #555555;
  --muted-2:     #666666;
  --muted-3:     #777777;
  --light:       #C8C8C5;

  --radius:      16px;
  --radius-sm:   8px;
  --radius-pill: 999px;
  --gap:         24px;
  --maxw:        1240px;

  --font:  'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow:    0 1px 2px rgba(0,18,41,.04), 0 12px 30px -18px rgba(0,18,41,.18);
  --shadow-lg: 0 24px 60px -24px rgba(0,18,41,.35);
}

/* ---- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }

/* ---- Layoutové pomocníky -------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Full-width sekce, které na sebe přímo navazují (bez mezer) */
.section {
  width: 100%;
  background: var(--card);
  padding: clamp(44px, 5.5vw, 84px) 0;
  border-top: 1px solid var(--border-soft);
}
.section--hero { border-top: none; padding-top: clamp(32px, 4vw, 56px); }
.section--dark { background: var(--navy); color: #fff; border-top: none; }
.section--footer { padding-bottom: clamp(36px, 4vw, 56px); }

/* Vnitřní bílý panel (např. formulář) */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4.5vw, 56px) clamp(20px, 4vw, 48px);
}
.card--dark { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---- Typografie ----------------------------------------------------------- */
.tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-3);
}
.tag--blue { color: var(--blue-light); }

.h1 {
  font-size: clamp(30px, 5.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.h2 {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.h2--lg { font-size: clamp(28px, 4.6vw, 44px); line-height: 1.05; }
.lead { font-size: clamp(14px, 1.4vw, 17px); line-height: 1.6; color: var(--muted); }
.lead--dark { color: var(--light); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 40px;
}
.section-head__intro { font-size: 15px; color: var(--muted-2); max-width: 560px; text-align: left; }

/* ---- Tlačítka ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .ico { width: 18px; height: 18px; flex-shrink: 0; }
.ico { flex-shrink: 0; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #0049a0; box-shadow: 0 10px 24px -10px rgba(0,87,182,.7); }
.btn--outline { border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--ghost-light { border-color: #fff; color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }
.btn--outline-dark { border-color: #3a4a63; color: var(--light); }
.btn--outline-dark:hover { border-color: #fff; color: #fff; }
.btn--sm { padding: 11px 18px; font-size: 13px; }
.btn--block { width: 100%; }

/* ==========================================================================
   HLAVIČKA / NAVIGACE
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 20px -14px rgba(0,18,41,.4); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 16px 0;
}
.nav__logo img { height: 52px; width: auto; display: block; }
.nav__links { display: flex; gap: 30px; font-size: 14px; color: var(--muted); }
.nav__links a { position: relative; padding: 4px 0; transition: color .15s ease; }
.nav__links a:hover { color: var(--text); }
.nav__links a.is-active { color: var(--blue); font-weight: 600; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--blue); transition: width .2s ease;
}
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }

.nav__right { display: flex; align-items: center; gap: 16px; }

.lang {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
}
.lang__opt { color: #999; padding: 4px 6px; transition: color .15s ease; }
.lang__opt:hover { color: var(--text); }
.lang__opt.is-active { color: var(--text); border-bottom: 2px solid var(--blue); }
.lang__sep { color: #cfcfcf; }

/* hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px; height: 30px;
  align-items: center; justify-content: center;
  background: none; border: 0; padding: 0;
}
.nav__burger span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }

/* ==========================================================================
   MOBILNÍ MENU (overlay)
   ========================================================================== */
.menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--navy); color: #fff;
  padding: 18px 0 32px;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .35s cubic-bezier(.4,0,.2,1), visibility .35s;
  overflow-y: auto;
}
.menu.is-open { transform: translateY(0); visibility: visible; }
.menu__inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; flex: 1; }

.menu__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 4px 18px; border-bottom: 1px solid #2a3a52;
}
.menu__top > a { background: #fff; padding: 8px 12px; border-radius: 8px; display: inline-flex; align-items: center; }
.menu__top img { height: 34px; width: auto; display: block; }
.menu__top-right { display: flex; align-items: center; gap: 16px; }
.menu .lang__opt { color: #8a93a3; }
.menu .lang__opt.is-active { color: #fff; }
.menu .lang__sep { color: #44546e; }

.menu__close {
  position: relative; width: 24px; height: 24px; background: none; border: 0;
}
.menu__close::before, .menu__close::after {
  content: ""; position: absolute; top: 11px; left: 0; width: 24px; height: 2px; background: #fff;
}
.menu__close::before { transform: rotate(45deg); }
.menu__close::after { transform: rotate(-45deg); }

.menu__items { display: flex; flex-direction: column; }
.menu__item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4px; border-bottom: 1px solid #2a3a52;
  color: #fff;
}
.menu__item-num { display: none; }
.menu__item-label { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.015em; }
.menu__item-arrow { color: #8a93a3; font-size: 22px; transition: transform .2s ease; }
.menu__item:hover .menu__item-arrow { transform: translateX(4px); color: #fff; }

.menu__foot { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.menu__foot-meta { display: flex; justify-content: space-between; }
.menu__foot-meta .tag { color: #6f7d92; }

.menu-open { overflow: hidden; }

/* ==========================================================================
   PLACEHOLDERY PRO FOTO  (snadno nahraditelné skutečnými obrázky)
   ========================================================================== */
.ph {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center;
  text-align: center; padding: 18px;
  min-height: 120px;
  border-radius: 10px;
  border: 1px solid #D8DDE6;
  color: #8b93a3;
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em;
  background:
    radial-gradient(circle at 1px 1px, rgba(0,18,41,.05) 1px, transparent 0) 0 0/18px 18px,
    linear-gradient(135deg, #EEF1F6, #E1E7F1);
  overflow: hidden;
}
.ph::before {
  content: "";
  width: 32px; height: 32px;
  background: currentColor;
  -webkit-mask: var(--ph-icon) center / contain no-repeat;
  mask: var(--ph-icon) center / contain no-repeat;
  opacity: .85;
}
:root { --ph-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.6'/%3E%3Cpath d='M21 16l-5-5L7 19'/%3E%3C/svg%3E"); }
.ph span { display: block; max-width: 80%; line-height: 1.45; }
.ph--dark {
  color: #7f8ca3;
  border-color: #1a2c47;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0) 0 0/18px 18px,
    linear-gradient(135deg, #04162f, var(--navy-soft));
}

/* ==========================================================================
   HERO (úvod)
   ========================================================================== */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; }
.hero__col { display: flex; flex-direction: column; gap: 26px; padding-right: 12px; }
.hero__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 40px; padding-top: 24px; border-top: 1px solid var(--border-soft); flex-wrap: wrap; }
.hero__media { min-height: 480px; height: 100%; }
img.hero__media { width: 100%; object-fit: cover; border-radius: 10px; }

/* HERO s fotkou na pozadí (full-bleed) */
.section--hero.hero-bg { padding: 0; border-top: none; }
.hero-bg { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-bg__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0,18,41,0.42) 0%, rgba(0,18,41,0.60) 52%, rgba(0,18,41,0.90) 100%);
}
.hero-bg .container { position: relative; z-index: 2; }
.hero-bg__inner {
  max-width: 820px;
  min-height: min(80vh, 620px);
  display: flex; flex-direction: column; gap: 26px;
  padding: clamp(52px, 8vw, 96px) 0 clamp(36px, 4vw, 56px);
}
.hero-bg__title { font-size: clamp(32px, 5.6vw, 60px); color: #fff; }
.hero-bg__lead { color: #d8dee8; max-width: 560px; }
.hero-bg__stats { margin-top: auto; border-top-color: rgba(255,255,255,0.16); }
.hero-bg .stat__num { color: #fff; font-size: clamp(24px, 3.2vw, 32px); }
.hero-bg__stats .stat__label { color: var(--blue-light); }

.stat__num { font-size: clamp(24px, 3vw, 28px); font-weight: 700; }
.stat__label { margin-top: 4px; }

/* ==========================================================================
   MŘÍŽKY KARET (specializace / služby)
   ========================================================================== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.tile {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #b6bcc4; }
.tile__media { height: 160px; border-radius: 6px; overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile__body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile__title {
  font-size: 16px; font-weight: 600; line-height: 1.35;
  letter-spacing: -0.01em; color: var(--text);
}

/* službová karta */
.service {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 220px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #b6bcc4; }
.service__num {
  width: 44px; height: 44px; flex-shrink: 0;
  border: 2px solid var(--blue); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-family: var(--mono); font-weight: 700;
}
.service__title { font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.service__desc { font-size: 13px; color: var(--muted-2); margin-top: auto; }

/* ==========================================================================
   GALERIE
   ========================================================================== */
.gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  border: 1px solid var(--border); background: transparent;
  padding: 8px 16px; border-radius: var(--radius-pill);
  font-size: 12px; color: var(--muted); transition: all .15s ease;
}
.filter:hover { border-color: var(--blue); color: var(--blue); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 12px; }
.gallery__item { border-radius: 8px; min-height: 0; }
img.gallery__item { width: 100%; height: 100%; object-fit: cover; }
.gallery__item--lg { grid-column: span 2; grid-row: span 2; }
.gallery__item.is-hidden { display: none; }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.strip .ph { min-height: 160px; height: 160px; }
.strip img { width: 100%; height: 160px; object-fit: cover; border-radius: 6px; display: block; }

/* ==========================================================================
   HODNOTY (split sekce)
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.split--rev { grid-template-columns: 1.1fr 1fr; }
.split__col { display: flex; flex-direction: column; gap: 22px; }
.split__media { min-height: 380px; height: 100%; }
.split__media--tall { min-height: 440px; }
img.split__media { width: 100%; object-fit: cover; border-radius: 10px; }

/* Checklist (bez boxů) */
.checklist { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; color: var(--text); }
.checklist li::before {
  content: "✓"; flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0,87,182,.12); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.checklist--light li { color: #fff; }
.checklist--light li::before { background: rgba(255,255,255,.14); color: #fff; }

/* Kariéra / Spolupráce */
.career { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: stretch; }
.career__media { width: 100%; height: 100%; min-height: 460px; object-fit: cover; border-radius: 12px; display: block; }
.career__content { display: flex; flex-direction: column; gap: 18px; }
.career__lead { font-size: clamp(19px, 2.1vw, 23px); font-weight: 600; line-height: 1.4; color: var(--text); margin: 0; }
.career__content .lead { margin: 0; }
.career .hl { color: var(--text); font-weight: 600; }
.career__pills { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.career__pills li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--blue);
  background: rgba(0,87,182,.08); border: 1px solid rgba(0,87,182,.16);
  padding: 8px 14px; border-radius: var(--radius-pill);
}
.career__pills li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.career__form { margin-top: 10px; }
.field--full { grid-column: 1 / -1; }

/* zkušenosti / stat bloky */
.exp-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.exp-head .lead { max-width: 640px; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.stat-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; padding: 28px;
  display: flex; flex-direction: column; gap: 8px;
}
.stat-card__num { font-size: clamp(38px, 5vw, 56px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.stat-card__label { font-size: 14px; color: var(--muted); }

/* ==========================================================================
   CTA blok
   ========================================================================== */
.cta { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.cta__actions { display: flex; flex-direction: column; gap: 12px; }

/* ==========================================================================
   KONTAKT — hero, tým, formulář
   ========================================================================== */
.contact-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.contact-hero__col { display: flex; flex-direction: column; gap: 20px; }
.contact-hero__cards { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 20px;
}
.info-card__value { font-size: 18px; font-weight: 600; margin-top: 6px; }
.info-card__value a:hover { color: var(--blue-light); }

.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.member {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; padding: 24px;
  display: flex; gap: 20px; align-items: flex-start;
  transition: transform .18s ease, box-shadow .18s ease;
}
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.member__photo { width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0; min-height: 0; object-fit: cover; background: var(--border-soft); }
.member__photo::before { width: 24px; height: 24px; }
.member__body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.member__name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.member__contact {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 10px; border-top: 1px solid var(--border-soft);
  font-size: 13px; color: var(--muted);
}
.member__row { display: flex; gap: 8px; }
.member__row span:first-child { color: #999; width: 50px; flex-shrink: 0; }
.member__row a:hover { color: var(--blue); }

/* formulář */
.contact-block { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.form { display: flex; flex-direction: column; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--border); border-radius: 6px;
  padding: 14px; font-size: 14px; font-family: inherit; color: var(--text);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; margin-top: 12px; }
.field input::placeholder, .field textarea::placeholder { color: #9aa0a8; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,87,182,.12);
}
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.form__note { font-size: 12px; color: var(--muted-3); }
.form__status { font-size: 13px; color: var(--blue); display: none; margin-top: 12px; font-weight: 600; }
.form__status.is-visible { display: block; }
.form__status.is-error { color: #c0392b; }
.map { min-height: 380px; }
iframe.map { width: 100%; height: 100%; min-height: 380px; border: 0; border-radius: var(--radius); display: block; }

/* ==========================================================================
   PATIČKA
   ========================================================================== */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { height: 50px; width: auto; align-self: flex-start; }
.footer-brand p { font-size: 14px; color: var(--muted); max-width: 280px; line-height: 1.5; }
.footer-legal { font-family: var(--mono); font-size: 12px; line-height: 1.7; color: var(--muted-3); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span.line { font-size: 14px; color: var(--muted); transition: color .15s ease; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border-soft);
}
.footer-bottom .tag { color: #9a9a95; }

/* ==========================================================================
   RESPONZIVNÍ ZLOMY
   ========================================================================== */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta, .nav__right .lang { display: none; }
  .nav__burger { display: flex; }
  .nav { padding: 14px 0; }

  .hero,
  .split, .split--rev,
  .exp-head,
  .cta,
  .career,
  .contact-hero,
  .contact-block { grid-template-columns: 1fr; }
  .career__media { min-height: 280px; }

  .hero { gap: 28px; }
  .hero__col { padding-right: 0; }
  .hero__media { min-height: 300px; order: -1; }

  .split { gap: 28px; }
  .split__media, .split__media--tall { min-height: 280px; }
  .split--dark .split__media { order: -1; }

  .grid-3 { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .map { min-height: 280px; }

  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-head__intro { text-align: left; }
  .gallery-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .container { padding: 0 16px; }
  .stack { gap: 16px; padding-bottom: 56px; }
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery__item--lg { grid-column: span 2; grid-row: span 1; }
  .strip { grid-template-columns: 1fr 1fr; }
  .hero__stats { gap: 24px; }
  .form__grid { grid-template-columns: 1fr; }
  .member { gap: 14px; }
  .member__photo { width: 64px; height: 64px; }

  /* Patička na mobilu: přehledný jednosloupcový stack */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

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

/* ---- Reference (podstránka) ------------------------------------------------ */
.ref {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 44px);
}
.ref + .ref { margin-top: clamp(28px, 4vw, 48px); }
.ref__head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.ref__h {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
}
.ref__desc { margin-top: 10px; }
.ref__note { margin-top: 14px; font-size: 13px; color: var(--muted-2); font-style: italic; }
.ref__facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 1px solid var(--border-soft);
  padding-left: clamp(16px, 2vw, 28px);
}
.ref__fact .tag { display: block; margin-bottom: 3px; }
.ref__fact-value { font-size: 15px; font-weight: 600; line-height: 1.45; }

/* Galerie: všechny fotky vcelku (bez ořezu), masonry přes CSS sloupce */
.ref__gallery { columns: 3; column-gap: 12px; }
.ref__gallery img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 12px; break-inside: avoid; }

@media (max-width: 860px) {
  .ref__head { grid-template-columns: 1fr; gap: 18px; }
  .ref__facts { border-left: 0; padding-left: 0; border-top: 1px solid var(--border-soft); padding-top: 18px; }
  .ref__gallery { columns: 2; column-gap: 10px; }
  .ref__gallery img { margin-bottom: 10px; }
}

/* Galerie reference se dvěma fotkami na šířku */
.ref__gallery--two { columns: 2; }
@media (max-width: 860px) {
  .ref__gallery--two { columns: 1; }
}
