/* ==========================================================
   MAX KONSTRUKT — hlavní styly
   Barvy: #133947 (navy), #c14f19 (oranžová), #d9d9d9 (šedá), #dbe5eb (světlá)
   ========================================================== */

:root {
  --navy: #133947;
  --navy-dark: #0d2a35;
  --navy-deep: #0a2029;
  --orange: #c14f19;
  --orange-hover: #d85d22;
  --grey: #d9d9d9;
  --light: #dbe5eb;
  --card: #c9d6de;
  --text: #1d2b33;
  --text-muted: #4f6470;
  --white: #ffffff;

  --font-head: "Roboto", "Segoe UI", Arial, sans-serif;
  --font-body: "Open Sans", "Segoe UI", Arial, sans-serif;

  --container: 1200px;
  --header-h: 76px;
  --shadow-card: 0 18px 40px -12px rgba(19, 57, 71, 0.35);
  --shadow-soft: 0 10px 30px -10px rgba(19, 57, 71, 0.25);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--orange); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(19, 57, 71, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(19, 57, 71, 0.98);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 0 86px;
}

.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.2px;
  color: var(--white);
  white-space: nowrap;
}
.brand .max { color: var(--orange); }

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}
.main-nav li + li { border-left: 1px solid rgba(255, 255, 255, 0.85); }
.main-nav a {
  display: block;
  padding: 2px 26px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--white);
  line-height: 22px;
  position: relative;
  transition: color 0.2s;
}
.main-nav li:last-child a { padding-right: 0; }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 26px; right: 26px; bottom: -8px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease);
}
.main-nav li:last-child a::after { right: 0; }
.main-nav a:hover { color: var(--grey); }
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  padding: 10px;
  color: var(--white);
}
.nav-toggle span {
  display: block; height: 2px; background: currentColor; margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border: 2px solid var(--orange);
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}
.btn:hover { background: var(--orange-hover); border-color: var(--orange-hover); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }
.btn-navy { background: var(--navy); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--orange); font-weight: 700; font-size: 14px;
}
.link-arrow span { transition: transform 0.25s; }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 620px;
  height: 78vh;
  max-height: 820px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--navy) url("../images/hero-bg.jpg") center / cover no-repeat;
  color: var(--white);
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19, 57, 71, 0.1) 0%, rgba(19, 57, 71, 0.15) 70%, rgba(19, 57, 71, 0.45) 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; padding: 0 24px; }

.hero-logo {
  width: 150px;
  margin: 0 auto 6px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.35));
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(38px, 7vw, 80px);
  letter-spacing: 0.5px;
  color: var(--grey);
  text-transform: uppercase;
  margin: 0 0 18px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.45), 0 2px 2px rgba(0, 0, 0, 0.3);
}
.hero-title .accent { color: var(--orange); }

.hero-sub {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Page hero (podstránky) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 80px) 0 80px;
  background: var(--navy) url("../images/hero-bg.jpg") center 35% / cover no-repeat;
  color: var(--white);
  text-align: center;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(19, 57, 71, 0.35);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(36px, 5.5vw, 62px);
  color: var(--grey);
  text-transform: uppercase;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  margin-bottom: 12px;
}
.page-hero p {
  max-width: 640px; margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
}
.breadcrumb {
  display: inline-flex; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.7);
  margin-bottom: 14px;
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .current { color: var(--orange); }

/* ---------- Sections ---------- */

.section { padding: 100px 0; position: relative; }
.section-light {
  background: radial-gradient(ellipse at 50% 40%, #e6eef2 0%, var(--light) 60%, #d0dce3 100%);
}
.section-white { background: #f3f7f9; }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head);
  font-size: 13px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--orange);
  margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--orange); }

.section-head { margin-bottom: 56px; max-width: 680px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow::after { content: ""; width: 32px; height: 2px; background: var(--orange); }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); text-transform: uppercase; }
.section-head p { color: var(--text-muted); margin: 0; }
.section-navy .section-head p { color: rgba(255, 255, 255, 0.75); }

/* ---------- Category cards (dle návrhu) ---------- */

.cards-section { padding: 34px 0 90px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 912px;
  margin: 0 auto;
}
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  min-height: 350px;
  aspect-ratio: 287 / 350;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.cat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 50px -14px rgba(19, 57, 71, 0.45);
}
.cat-card-text { padding: 22px 16px 0; position: relative; z-index: 1; }
.cat-card h3 {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
  text-shadow: 0 2px 6px rgba(19, 57, 71, 0.55), 0 1px 1px rgba(19, 57, 71, 0.4);
}
.cat-card .cat-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 700;
  color: var(--orange);
  margin-top: 4px;
}
.cat-card-img {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 8px 10px 12px;
}
.cat-card-img img {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.6s var(--ease);
}
.cat-card:hover .cat-card-img img { transform: scale(1.04); }
.cat-card-img.blueprint { padding: 10px 10px 8px; }
.cat-card-img.blueprint img { mix-blend-mode: multiply; opacity: 0.85; }
.cat-card-more {
  position: absolute; right: 14px; bottom: 12px; z-index: 2;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: var(--orange); color: var(--white);
  font-size: 18px; font-weight: 700;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.cat-card:hover .cat-card-more { opacity: 1; transform: none; }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  color: var(--white);
}
.stat-num .accent { color: var(--orange); }
.stat-label {
  margin-top: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.7);
}
.stats-band {
  padding: 64px 0;
  background: var(--navy) url("../images/blueprint-dark.png") right bottom / cover no-repeat;
  position: relative;
}
.stats-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(19, 57, 71, 0.97) 40%, rgba(19, 57, 71, 0.8));
}
.stats-band .container { position: relative; }

/* ---------- Split / About ---------- */

.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split-media {
  position: relative;
  background: var(--card);
  box-shadow: var(--shadow-card);
  padding: 28px;
}
.split-media::before {
  content: ""; position: absolute;
  left: -14px; top: -14px; width: 90px; height: 90px;
  border-left: 4px solid var(--orange); border-top: 4px solid var(--orange);
}
.split-media img { width: 100%; }
.split-media.bp img { mix-blend-mode: multiply; }
.split-text h2 { font-size: clamp(28px, 3.6vw, 40px); text-transform: uppercase; }
.split-text p { color: var(--text-muted); }

.checklist { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checklist li {
  position: relative; padding-left: 34px;
  font-weight: 600; color: var(--navy);
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 20px; height: 20px; background: var(--orange);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.checklist.two-col { grid-template-columns: 1fr 1fr; gap: 14px 28px; }

/* ---------- Values / feature tiles ---------- */

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile {
  background: #f3f7f9;
  padding: 34px 30px;
  border-top: 4px solid var(--orange);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease);
}
.tile:hover { transform: translateY(-5px); }
.tile-icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  background: var(--navy); color: var(--white); margin-bottom: 20px;
}
.tile-icon svg { width: 28px; height: 28px; }
.tile h3 { font-size: 20px; text-transform: uppercase; }
.tile p { color: var(--text-muted); margin: 0; font-size: 15px; }

/* ---------- Service features (Služby) ---------- */

.service-feature { padding: 90px 0; scroll-margin-top: var(--header-h); }
.service-feature:nth-of-type(even) { background: #f3f7f9; }
.service-feature .split-text .lead { font-size: 17px; color: var(--text); }
.steps { counter-reset: step; list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 10px; }
.steps li {
  counter-increment: step;
  display: flex; gap: 14px; align-items: center;
  padding: 12px 16px; background: rgba(255, 255, 255, 0.65);
  border-left: 3px solid var(--navy);
  font-weight: 600; font-size: 15px; color: var(--navy);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 700; color: var(--orange);
  min-width: 26px;
}
.tip {
  padding: 16px 18px;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
  border-left: 4px solid var(--orange);
  font-size: 14.5px;
  margin-bottom: 26px;
}
.tip strong { color: var(--white); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  text-align: left;
  border: 0;
  background: #f3f7f9;
  padding: 34px 30px;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  color: var(--text);
}
.service-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%;
  background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.service-card:hover::after { transform: scaleX(1); }
.service-card h3 { font-size: 21px; text-transform: uppercase; margin-top: 4px; }
.service-card p { color: var(--text-muted); font-size: 15px; flex: 1; margin: 0 0 22px; }

/* ---------- Reference + galerie ---------- */

.ref-section {
  padding: 64px 0 72px;
  background: var(--navy) url("../images/blueprint-dark.png") right bottom / cover no-repeat;
  position: relative;
}
.ref-section::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(19, 57, 71, 0.97) 40%, rgba(19, 57, 71, 0.8));
}
.ref-section .container { position: relative; }
.ref-title {
  color: var(--white);
  font-size: clamp(26px, 3vw, 32px);
  margin-bottom: 44px;
}
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 824px;
  margin: 0 auto;
}
.ref-tile {
  aspect-ratio: 268 / 265;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.ref-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.ref-tile:hover img { transform: scale(1.04); }
.ref-more {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: max-content;
  margin: 30px auto 0;
  padding: 6px 4px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--white);
  transition: color 0.2s;
}
.ref-more svg { width: 24px; height: 24px; transition: transform 0.25s var(--ease); }
.ref-more:hover { color: var(--orange); }
.ref-more:hover svg { transform: translateY(4px); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-grid .ref-tile { background: var(--card); border-color: rgba(19, 57, 71, 0.12); box-shadow: var(--shadow-soft); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--orange);
  color: var(--white);
  padding: 56px 0;
}
.cta-band .container {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, 0.9); }
.cta-band .btn { background: var(--navy); border-color: var(--navy); }
.cta-band .btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.contact-cards { display: grid; gap: 18px; margin-top: 30px; }
.contact-card {
  display: flex; gap: 18px; align-items: center;
  padding: 22px 24px;
  background: #f3f7f9;
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--orange);
  transition: transform 0.25s var(--ease);
}
a.contact-card:hover { transform: translateX(6px); }
.contact-card .ico {
  flex: 0 0 auto; width: 50px; height: 50px; display: grid; place-items: center;
  background: var(--navy); color: var(--white);
}
.contact-card .ico svg { width: 24px; height: 24px; }
.contact-card small {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted);
}
.contact-card strong { font-family: var(--font-head); font-size: 20px; color: var(--navy); }

.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours td { padding: 8px 0; border-bottom: 1px solid rgba(19, 57, 71, 0.12); }
.hours td:last-child { text-align: right; font-weight: 700; color: var(--navy); }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  background: rgba(19, 57, 71, 0.08); color: var(--navy);
}
.status-pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9aa7ae;
}
.status-pill.open { background: rgba(22, 163, 74, 0.12); color: #127a3a; }
.status-pill.open::before { background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6); animation: pulse 1.8s infinite; }
.status-pill.closed { background: rgba(193, 79, 25, 0.12); color: var(--orange); }
.status-pill.closed::before { background: var(--orange); }
.site-footer .status-pill { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.site-footer .status-pill.open { color: #4ade80; }
.site-footer .status-pill.closed { color: #f08a5d; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

/* ---------- Forms ---------- */

.form-panel {
  background: #f3f7f9;
  padding: 40px;
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--navy);
}
.form-panel h3 { font-size: 26px; text-transform: uppercase; }
.form-panel > p { color: var(--text-muted); margin-top: 0; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--navy); margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #b9c8d1;
  background: var(--white);
  color: var(--text);
  font: inherit; font-size: 15px;
  border-radius: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(193, 79, 25, 0.15);
}
.file-drop {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 18px;
  border: 2px dashed #9fb3bf;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.file-drop:hover, .file-drop.drag { border-color: var(--orange); background: rgba(193, 79, 25, 0.05); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-drop svg { width: 30px; height: 30px; color: var(--orange); flex: 0 0 auto; }
.file-drop .file-text { font-size: 14px; color: var(--text-muted); }
.file-drop .file-text strong { color: var(--navy); display: block; }
.consent { font-size: 13px; color: var(--text-muted); display: flex; gap: 10px; align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--orange); }
.consent a { color: var(--orange); text-decoration: underline; }

.form-msg { padding: 14px 16px; font-size: 14.5px; display: none; }
.form-msg.show { display: block; }
.form-msg.error { background: rgba(220, 38, 38, 0.1); border-left: 4px solid #dc2626; color: #991b1b; }
.form-success {
  text-align: center; padding: 40px 20px;
  background: #127a3a; color: var(--white);
}
.form-success .check { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.form-success h3 { color: var(--white); }

/* ---------- Modal ---------- */

.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  visibility: hidden; opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal.open { visibility: visible; opacity: 1; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 32, 41, 0.7);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-box {
  position: relative;
  width: 100%; max-width: 780px; max-height: 90vh; overflow-y: auto;
  background: var(--light);
  border-top: 5px solid var(--orange);
  padding: 44px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s var(--ease);
}
.modal.open .modal-box { transform: none; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 42px; height: 42px; border: 0; background: transparent;
  color: var(--navy); font-size: 30px; line-height: 1;
  transition: color 0.2s, transform 0.2s;
}
.modal-close:hover { color: var(--orange); transform: rotate(90deg); }
.modal-box h2 { font-size: 32px; text-transform: uppercase; padding-right: 30px; }
.modal-box h4 {
  font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--orange); margin: 26px 0 10px;
}
.modal-box p { color: var(--text-muted); }
body.modal-lock { overflow: hidden; }

/* ---------- Careers ---------- */

.jobs { display: grid; gap: 16px; }
.job {
  background: #f3f7f9; box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--navy);
  transition: border-color 0.25s;
}
.job[open] { border-left-color: var(--orange); }
.job summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 28px;
}
.job summary::-webkit-details-marker { display: none; }
.job summary h3 { margin: 0; font-size: 21px; text-transform: uppercase; }
.job-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.tag {
  font-size: 12px; font-weight: 700; padding: 3px 10px;
  background: rgba(19, 57, 71, 0.08); color: var(--navy);
}
.job-toggle {
  flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--navy); color: var(--white); font-size: 22px; font-weight: 700;
  transition: transform 0.3s, background 0.3s;
}
.job[open] .job-toggle { transform: rotate(45deg); background: var(--orange); }
.job-body { padding: 0 28px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.job-body h4 { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.job-body ul { margin: 0; padding-left: 18px; color: var(--text-muted); font-size: 15px; }
.job-body ul li { margin-bottom: 4px; }
.job-body .btn { grid-column: 1 / -1; justify-self: start; }

/* ---------- Documents ---------- */

.doc-list { display: grid; gap: 14px; }
.doc {
  display: flex; align-items: center; gap: 20px;
  padding: 22px 26px;
  background: #f3f7f9; box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
a.doc:hover { transform: translateX(6px); box-shadow: var(--shadow-card); }
.doc-ico {
  flex: 0 0 auto; width: 52px; height: 60px; position: relative;
  background: var(--navy); color: var(--white);
  display: grid; place-items: end center; padding-bottom: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%);
}
.doc-ico::after {
  content: ""; position: absolute; top: 0; right: 0; width: 28%; height: 22%;
  background: var(--orange);
}
.doc-info { flex: 1; min-width: 0; }
.doc-info strong { display: block; font-family: var(--font-head); font-size: 18px; color: var(--navy); }
.doc-info span { font-size: 14px; color: var(--text-muted); }
.doc-action { font-weight: 700; font-size: 14px; color: var(--orange); white-space: nowrap; }
.doc.disabled { opacity: 0.6; }
.doc.disabled .doc-action { color: var(--text-muted); }
.doc-cat { margin: 50px 0 18px; font-size: 22px; text-transform: uppercase; }
.doc-cat:first-child { margin-top: 0; }

.legal { max-width: 820px; }
.legal h2 { font-size: 28px; text-transform: uppercase; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal h3 { font-size: 18px; margin-top: 26px; }
.legal p, .legal li { color: var(--text-muted); font-size: 15.5px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 0;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand img { width: 56px; }
.footer-brand .brand { font-size: 22px; }
.site-footer h4 {
  color: var(--white); font-size: 14px; letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 18px;
  padding-bottom: 10px; border-bottom: 2px solid var(--orange); display: inline-block;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { transition: color 0.2s; }
.site-footer a:hover { color: var(--orange); }
.footer-hours li { display: flex; justify-content: space-between; gap: 12px; }
.footer-hours li span:last-child { color: var(--white); font-weight: 600; }
.footer-contact a { display: block; color: var(--white); font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  font-size: 13px;
}
.footer-bottom .container {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center;
}
.footer-bottom nav { display: flex; gap: 20px; }
.credit { color: rgba(255, 255, 255, 0.5); }
.credit a { color: rgba(255, 255, 255, 0.75); }

/* ---------- Reveal animations ---------- */

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

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

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .header-inner { padding: 0 24px; }
  .main-nav a { padding: 2px 18px; }
  .main-nav a::after { left: 18px; right: 18px; }
}

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .split.reverse > :first-child { order: 0; }
  .tiles, .service-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--navy);
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s var(--ease);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.3);
  }
  .nav-open .main-nav { max-height: 420px; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 8px 0 16px; }
  .main-nav li + li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .main-nav a, .main-nav li:last-child a { padding: 14px 24px; font-size: 16px; }
  .main-nav a::after { display: none; }
  .main-nav a[aria-current="page"] { color: var(--orange); }

  .cards { grid-template-columns: 1fr; max-width: 400px; }
  .cat-card { aspect-ratio: auto; min-height: 380px; }
  .hero { height: auto; min-height: 560px; padding-bottom: 60px; }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .container { padding: 0 16px; }
  .header-inner { padding: 0 16px; }
  .tiles, .service-grid, .form-row, .checklist.two-col, .job-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-panel, .modal-box { padding: 28px 20px; }
  .ref-grid, .gallery-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; }
  .hero-logo { width: 110px; }
  .hero-actions .btn { width: 100%; }
  .doc { flex-wrap: wrap; }
  .job summary { padding: 20px; }
  .job-body { padding: 0 20px 22px; }
}

/* ---------- Adresa ---------- */
.footer-address { font-style: normal; margin-top: 14px; line-height: 1.5; }
.footer-address a { color: var(--white); font-weight: 600; }
.footer-address small { display: block; color: rgba(255, 255, 255, 0.6); font-size: 13px; margin-top: 2px; }
.contact-note { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; }
a.contact-card:hover .contact-note { color: var(--orange); }
