/* ============================================================
   HD ELEKTRO CZ – profesionální průmyslový redesign
   ============================================================ */

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

:root {
  --yellow: #f5c542;
  --yellow-2: #ffdd69;
  --yellow-dark: #c99611;
  --ink: #08090b;
  --black: #0d0f12;
  --dark: #11151a;
  --panel: #171c22;
  --panel-2: #20262e;
  --line: rgba(255,255,255,0.10);
  --line-yellow: rgba(245,197,66,0.35);
  --text: #f5f5f1;
  --muted: rgba(245,245,241,0.66);
  --muted-2: rgba(245,245,241,0.48);
  --white: #ffffff;
  --container: 1180px;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0,0,0,0.34);
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 10%, rgba(245,197,66,0.09), transparent 32%),
    radial-gradient(circle at 86% 24%, rgba(245,197,66,0.06), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.025), transparent 34%);
  z-index: -2;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-160%);
  background: var(--yellow);
  color: #111;
  padding: .7rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* ============================================================
   Navigace
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem max(5%, calc((100vw - var(--container)) / 2));
  background: rgba(8,9,11,0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: padding .25s ease, background .25s ease, box-shadow .25s ease;
}

.site-nav.scrolled {
  padding-top: .72rem;
  padding-bottom: .72rem;
  background: rgba(8,9,11,0.94);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.logo,
.footer-logo {
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.05em;
  font-size: 1.18rem;
  display: inline-flex;
  align-items: center;
  gap: .34rem;
}
.logo span,
.footer-logo span {
  color: #111;
  background: var(--yellow);
  border-radius: 7px;
  padding: .08rem .3rem;
  letter-spacing: -0.06em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.72);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
  transition: color .2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: var(--yellow); }

.nav-cta {
  color: #111 !important;
  background: var(--yellow);
  padding: .62rem 1rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(245,197,66,0.18);
}
.nav-cta:hover { color: #111 !important; background: var(--yellow-2); }

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: transform .25s ease, opacity .25s ease;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 20px; right: 20px;
  z-index: 99;
  background: rgba(17,21,26,0.98);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: .6rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: .95rem 1rem;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-weight: 700;
  border-radius: 12px;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.06); }
.mobile-menu .mobile-cta { background: var(--yellow); color: #111; margin-top: .4rem; }

/* ============================================================
   Typografie a prvky
   ============================================================ */

section { padding: 6.2rem 0; }

.section-label,
.hero-badge,
.service-card__kicker {
  color: var(--yellow);
  font-size: .75rem;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
}

h1, h2, h3 {
  color: #fff;
  letter-spacing: -0.055em;
  line-height: .98;
}
h1 { font-size: clamp(2.7rem, 6vw, 5.9rem); font-weight: 900; max-width: 920px; }
h2 { font-size: clamp(2rem, 3.7vw, 3.65rem); font-weight: 900; }
h3 { font-size: 1.2rem; font-weight: 850; line-height: 1.15; }

h1 em, h2 em {
  font-style: normal;
  color: var(--yellow);
}

p { color: var(--muted); }

.hero-sub {
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  max-width: 700px;
  margin-top: 1.4rem;
  color: rgba(255,255,255,0.74);
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .85rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 850;
  font-size: .92rem;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn-primary {
  background: var(--yellow);
  color: #111;
  box-shadow: 0 16px 30px rgba(245,197,66,0.18);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--yellow-2); }
.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(245,197,66,0.55); background: rgba(245,197,66,0.08); }

.hero-actions,
.section-action { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 2rem; }
.section-action { justify-content: center; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 8.5rem;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 18%, rgba(245,197,66,.16), transparent 28%),
    linear-gradient(135deg, #07080a 0%, #10141a 58%, #18170e 100%);
}

.hero-media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(58%, 900px);
  z-index: 0;
  overflow: hidden;
  opacity: .96;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
  border-left: 1px solid rgba(245,197,66,.18);
}
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.98) contrast(1.08);
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #07080a 0%, rgba(7,8,10,.72) 18%, rgba(7,8,10,.12) 58%, rgba(7,8,10,.35) 100%),
    linear-gradient(180deg, rgba(7,8,10,.08), rgba(7,8,10,.68));
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8,9,11,0.08) 0%, rgba(8,9,11,0.80) 100%),
    linear-gradient(120deg, rgba(245,197,66,0.18), transparent 44%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero-content { max-width: 780px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem .82rem;
  border: 1px solid var(--line-yellow);
  border-radius: 999px;
  background: rgba(245,197,66,0.09);
  margin-bottom: 1.2rem;
}
.hero-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 6px rgba(245,197,66,0.12);
}
.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 950px;
  margin-top: 4rem;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-proof div { background: rgba(17,21,26,0.72); padding: 1.2rem; backdrop-filter: blur(10px); }
.hero-proof strong { display: block; color: #fff; font-weight: 900; }
.hero-proof span { display: block; color: var(--muted-2); font-size: .9rem; margin-top: .22rem; }

/* ============================================================
   Úvodní text společnosti
   ============================================================ */

.company-intro {
  background: linear-gradient(180deg, #0d0f12, #11151a);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
  gap: 2rem;
  align-items: stretch;
}
.company-copy,
.company-card {
  background: rgba(23,28,34,0.78);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.35rem, 3vw, 2.4rem);
  box-shadow: var(--shadow);
}
.company-copy p:not(.section-label) {
  margin-top: 1rem;
  color: rgba(255,255,255,0.72);
  font-size: 1.02rem;
}
.company-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.7rem; }
.service-points { list-style: none; display: grid; gap: .9rem; margin-top: 1.1rem; }
.service-points li {
  padding: 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.08);
}
.service-points strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: .25rem;
}
.service-points span { color: var(--muted); }
.company-note {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: rgba(255,255,255,0.62);
}

/* ============================================================
   Strip a homepage
   ============================================================ */

.trust-strip { padding: 0 0 6rem; background: var(--ink); }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
}
.trust-grid div { padding: 1.4rem; border-right: 1px solid var(--line); }
.trust-grid div:last-child { border-right: 0; }
.trust-grid span { color: var(--yellow); font-weight: 900; font-size: .82rem; }
.trust-grid strong { display: block; margin-top: .7rem; color: #fff; font-size: 1.05rem; }
.trust-grid p { font-size: .92rem; margin-top: .3rem; }

.section-dark { background: linear-gradient(180deg, #11151a, #0d0f12); }

.section-head,
.services-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .58fr);
  gap: 2.4rem;
  align-items: end;
  margin-bottom: 2.3rem;
}
.section-head .section-label,
.services-toolbar .section-label { margin-bottom: .85rem; }
.section-head p:last-child,
.services-toolbar p:last-child { color: var(--muted); }

.industrial-panel {
  background:
    linear-gradient(rgba(8,9,11,0.78), rgba(8,9,11,0.88)),
    url('../gallery/hlavni-stranka.webp') center / cover fixed;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.industrial-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
}
.industrial-copy p:not(.section-label) { max-width: 660px; margin-top: 1.1rem; }
.industrial-card,
.about-card,
.sidebar-card,
.contact-panel,
.reference-card {
  background: rgba(23,28,34,0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.industrial-card strong { color: #fff; font-size: 1.2rem; }

.checklist { list-style: none; display: grid; gap: .75rem; margin-top: 1.1rem; }
.checklist li { position: relative; padding-left: 1.55rem; color: var(--muted); }
.checklist li::before {
  content: '';
  position: absolute;
  left: 0; top: .45rem;
  width: 9px; height: 9px;
  border-radius: 2px;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(245,197,66,0.12);
}

/* ============================================================
   Služby
   ============================================================ */

.page-hero {
  padding: 10rem 0 5rem;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8,9,11,.92), rgba(8,9,11,.74)),
    url('../gallery/hlavni-stranka.webp') center / cover;
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -12vw;
  top: -20vh;
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,197,66,0.12), transparent 68%);
  pointer-events: none;
}
.page-hero__inner { position: relative; z-index: 1; }

.services-grid {
  display: grid;
  gap: 1.2rem;
  align-items: stretch;
}
.services-grid--preview,
.services-grid--full { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.service-card {
  position: relative;
  min-width: 0;
}
.service-card,
.service-card__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.service-card__inner,
a.service-card {
  background: linear-gradient(180deg, rgba(32,38,46,0.95), rgba(17,21,26,0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.service-card__inner:hover,
a.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-yellow);
  box-shadow: 0 28px 65px rgba(0,0,0,0.34);
}
.service-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(245,197,66,.14), rgba(255,255,255,.035));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.service-card__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(8,9,11,0.72), transparent);
}
.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__media img + .media-placeholder,
.detail-image img + .detail-placeholder { display: none; }
.media-placeholder,
.detail-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background:
    linear-gradient(135deg, rgba(245,197,66,0.18), rgba(255,255,255,0.035)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.045) 0 1px, transparent 1px 14px);
}
.media-placeholder span,
.detail-placeholder span {
  color: rgba(255,255,255,0.76);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .14em;
  text-align: center;
}
.service-card__body {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: 1.25rem 1.25rem .5rem;
  flex: 1;
}
.service-card__body strong {
  display: block;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.14;
  letter-spacing: -0.035em;
}
.service-card__body span:not(.service-card__kicker) {
  color: var(--muted);
  font-size: .94rem;
}
.media-disclaimer {
  max-width: 900px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.45);
  font-size: .82rem;
  line-height: 1.5;
}
.media-disclaimer--detail {
  margin-top: 14px;
}
.card-link {
  color: var(--yellow);
  padding: .2rem 1.25rem 1.25rem;
  font-weight: 900;
  font-size: .88rem;
}
.card-link::after { content: ' →'; }

.references-section { background: var(--ink); }
.references-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.reference-card h3 { margin-bottom: .7rem; }
.reference-card p { font-size: .92rem; }

/* ============================================================
   Detail služby
   ============================================================ */

.detail-section { background: linear-gradient(180deg, var(--ink), #11151a); }
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
  align-items: start;
}
.detail-content {
  min-width: 0;
}
.detail-media {
  background: linear-gradient(180deg, rgba(245,197,66,0.12), rgba(255,255,255,0.035));
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow);
}
.detail-media img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.detail-placeholder {
  position: relative;
  min-height: 320px;
  aspect-ratio: 21 / 9;
}
.content-block {
  background: rgba(23,28,34,0.78);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(1.35rem, 3vw, 2.5rem);
}
.content-block p:not(.section-label) {
  color: rgba(255,255,255,0.72);
  font-size: 1.02rem;
  margin-top: 1rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1rem;
}
.feature-item {
  background: rgba(245,197,66,0.08);
  border: 1px solid rgba(245,197,66,0.22);
  color: #fff;
  border-radius: 16px;
  padding: 1rem;
  font-weight: 800;
}
.detail-sidebar { position: sticky; top: 96px; display: grid; gap: 1rem; }
.sidebar-card h2 { font-size: 1.55rem; margin: .5rem 0 .75rem; }
.sidebar-card p { margin-bottom: 1.1rem; }
.sidebar-card--nav ul { list-style: none; display: grid; gap: .35rem; margin-top: .85rem; }
.sidebar-card--nav a {
  display: block;
  color: rgba(255,255,255,.76);
  text-decoration: none;
  padding: .65rem .7rem;
  border-radius: 10px;
  border: 1px solid transparent;
}
.sidebar-card--nav a:hover { color: var(--yellow); border-color: rgba(245,197,66,.22); background: rgba(245,197,66,.06); }

/* ============================================================
   O nás + Kontakt
   ============================================================ */

.about-section,
.contact-section { background: linear-gradient(180deg, var(--ink), var(--dark)); }
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .65fr);
  gap: 2rem;
  align-items: center;
}
.about-copy p:not(.section-label) { margin-top: 1rem; font-size: 1rem; }
.about-card { padding: 2rem; }
.about-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: var(--yellow);
  color: #111;
  border-radius: 18px;
  font-weight: 950;
  font-size: 1.7rem;
  letter-spacing: -.08em;
  margin-bottom: 1.2rem;
}
.about-card h3 { font-size: 1.55rem; margin-bottom: .8rem; }
.about-card dl { display: grid; gap: .7rem; margin-top: 1.3rem; }
.about-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .7rem;
  border-top: 1px solid var(--line);
}
.about-card dt { color: var(--muted-2); font-weight: 800; }
.about-card dd { color: #fff; font-weight: 800; }
.about-card a { color: var(--yellow); text-decoration: none; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(320px, .72fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}
.contact-panel h2 { font-size: 2rem; margin-bottom: .5rem; }
.addr { margin-bottom: 1.4rem; }
.contact-items { display: grid; gap: .75rem; }
.contact-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: #fff;
  text-decoration: none;
  padding: .95rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.contact-item:hover { border-color: var(--line-yellow); background: rgba(245,197,66,0.06); }
.contact-item span { color: var(--muted-2); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.contact-item strong { color: #fff; }
.invoice-card {
  margin-top: 1rem;
  background: rgba(245,197,66,0.09);
  border: 1px solid rgba(245,197,66,0.22);
  border-radius: 16px;
  padding: 1rem;
}
.invoice-card p { color: var(--yellow); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; margin-bottom: .4rem; }
.invoice-card strong { display: block; color: #fff; }
.map-wrapper {
  min-height: 440px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.map-wrapper iframe { width: 100%; height: 100%; min-height: 440px; border: 0; filter: grayscale(18%) contrast(1.05) brightness(.92); }

/* ============================================================
   Footer
   ============================================================ */

.footer-cta {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, rgba(245,197,66,0.16), rgba(255,255,255,0.035));
  border-top: 1px solid rgba(245,197,66,0.14);
  border-bottom: 1px solid var(--line);
}
.footer-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
}
.footer-cta h2 { font-size: clamp(1.65rem, 3vw, 3rem); max-width: 800px; }
.footer-cta__actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: flex-end; }
.site-footer { background: #07080a; padding: 3.2rem 0 1.2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .6fr;
  gap: 2rem;
}
.site-footer p,
.site-footer a { color: rgba(255,255,255,0.58); font-size: .92rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer strong { display: block; color: #fff; margin-bottom: .7rem; }
.footer-logo { margin-bottom: .9rem; }
.footer-links { list-style: none; display: grid; gap: .35rem; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: rgba(255,255,255,.38);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .82rem;
}

/* ============================================================
   Responsivita
   ============================================================ */

@media (max-width: 1100px) {
  .services-grid--preview,
  .services-grid--full { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .hero-media { width: 68%; opacity: .72; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-proof,
  .trust-grid,
  .section-head,
  .services-toolbar,
  .industrial-grid,
  .company-grid,
  .about-inner,
  .contact-grid,
  .footer-cta__inner,
  .footer-grid { grid-template-columns: 1fr; }
  .trust-grid div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-grid div:last-child { border-bottom: 0; }
  .footer-cta__actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--container)); }
  section { padding: 4.4rem 0; }
  .hero { min-height: auto; padding-top: 7.4rem; }
  .hero-media { width: 100%; opacity: .38; }
  .hero-proof { grid-template-columns: 1fr; margin-top: 2.4rem; }
  .services-grid--preview,
  .services-grid--full,
  .references-grid,
  .feature-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 8.3rem 0 4rem; }
  .mobile-menu { top: 64px; left: 14px; right: 14px; }
  .contact-item { align-items: flex-start; flex-direction: column; }
  .map-wrapper,
  .map-wrapper iframe { min-height: 340px; }
}

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

/* ============================================================
   Online služby + klientská zóna
   ============================================================ */

.online-services {
  background: #0b0d10;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.online-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .55fr);
  gap: 1rem;
  align-items: stretch;
}
.online-copy,
.online-card,
.client-panel {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.028));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.online-copy { padding: 2.2rem; }
.online-copy h2 { max-width: 720px; }
.online-copy p:last-child { color: var(--muted); max-width: 740px; }
.online-card {
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
  min-height: 230px;
}
.online-card strong {
  font-size: 1.2rem;
  letter-spacing: -.01em;
}
.online-card span { color: var(--muted); }
.online-card .btn-primary,
.online-card .btn-ghost { text-align: center; }

.page-hero--compact { padding-bottom: 3.2rem; }
.auth-hero--staff { padding-bottom: 2rem; }
.client-zone { padding-top: 4rem; }
.client-zone--staff { padding-top: 1.6rem; }
.client-status-area { max-width: 980px; margin-bottom: 1rem; }
.client-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, .62fr);
  gap: 1.2rem;
  align-items: stretch;
}
.client-dashboard { max-width: 900px; }
.client-zone--staff .client-dashboard { margin-top: 0; }
.client-panel {
  padding: clamp(1.35rem, 2.4vw, 2.25rem);
  position: relative;
  overflow: hidden;
}
.client-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), transparent 70%);
  opacity: .75;
}
.client-panel--wide { margin-top: 1.2rem; }
.client-zone--staff .client-panel--wide { margin-top: .85rem; }
.client-zone--staff .account-card.client-panel--wide { margin-top: 0; }
.client-panel--hero { padding: clamp(1.7rem, 3vw, 2.7rem); }
.client-panel h2 { margin-bottom: .75rem; }
.client-panel p { color: var(--muted); }
.panel-head { margin-bottom: 1.25rem; }
.panel-head p:last-child { margin-top: .75rem; max-width: 720px; }
.panel-head--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.btn-small { padding: .68rem 1rem; font-size: .82rem; white-space: nowrap; }
.client-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.client-checklist {
  list-style: none;
  display: grid;
  gap: .65rem;
  margin: 1.2rem 0 1.4rem;
}
.client-checklist li {
  color: var(--muted);
  padding-left: 1.65rem;
  position: relative;
}
.client-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--yellow);
  font-weight: 900;
}
.client-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
.client-form--login { max-width: 520px; }
.form-field {
  display: grid;
  gap: .42rem;
  min-width: 0;
}
.client-form label {
  color: rgba(255,255,255,.84);
  font-size: .84rem;
  font-weight: 850;
  letter-spacing: .02em;
}
.required-mark { color: var(--yellow); font-weight: 900; }
.client-form input,
.client-form textarea,
.client-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(0,0,0,.30);
  color: var(--text);
  border-radius: 13px;
  padding: .88rem .98rem;
  font: inherit;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.client-form input:hover,
.client-form textarea:hover,
.client-form select:hover { border-color: rgba(255,255,255,.24); background: rgba(0,0,0,.36); }
.client-form input:focus,
.client-form textarea:focus,
.client-form select:focus {
  border-color: var(--line-yellow);
  box-shadow: 0 0 0 3px rgba(245,197,66,.13), inset 0 1px 0 rgba(255,255,255,.05);
  background: rgba(0,0,0,.42);
}
.client-form input:required:invalid { box-shadow: none; }
.client-form input:required:focus:invalid { border-color: rgba(255, 120, 120, .55); }
.client-form input:required:valid { border-color: rgba(71, 190, 125, .32); }
.form-main-submit { min-height: 48px; justify-self: start; border: 0; cursor: pointer; }
.register-panel { scroll-margin-top: 96px; }
.password-panel { scroll-margin-top: 96px; }
.admin-users-dashboard { max-width: 1120px; }
.admin-user-detail-panel { scroll-margin-top: 96px; }
.admin-search-form { margin-bottom: 1.2rem; }
.admin-search-fields {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}
.admin-users-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(0,0,0,.18);
}
.admin-users-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
}
.admin-users-table th,
.admin-users-table td {
  padding: .9rem .95rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
  vertical-align: middle;
  color: rgba(255,255,255,.86);
}
.admin-users-table th {
  color: var(--yellow);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: rgba(255,255,255,.035);
}
.admin-users-table tr:last-child td { border-bottom: 0; }
.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .28rem .62rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.065);
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  font-weight: 900;
}
.role-klient { border-color: rgba(120, 180, 255, .32); color: #b8d5ff; }
.role-moderator { border-color: rgba(72, 255, 155, .38); color: #87ffc1; }
.role-admin { border-color: rgba(245,197,66,.44); color: var(--yellow); }
.admin-user-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin: 0 0 1.25rem;
}
.admin-user-detail div {
  padding: .9rem 1rem;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  background: rgba(0,0,0,.2);
}
.admin-user-detail dt {
  margin-bottom: .28rem;
  color: var(--muted-2);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.admin-user-detail dd {
  margin: 0;
  color: var(--text);
  font-weight: 850;
}
.admin-role-action {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(245,197,66,.22);
  border-radius: 18px;
  background: rgba(245,197,66,.055);
}
.admin-role-action h3 {
  margin-bottom: .4rem;
  color: #fff;
}
.client-form--register {
  gap: 1.15rem;
  margin-top: 1.4rem;
}
.form-section {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(1rem, 2vw, 1.35rem);
  background: rgba(255,255,255,.027);
}
.form-section legend {
  padding: 0 .45rem;
  color: var(--yellow);
  font-weight: 900;
  letter-spacing: .02em;
}
.form-section-note {
  margin: .2rem 0 1rem;
  font-size: .92rem;
  color: var(--muted-2) !important;
}
.form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .95rem 1rem;
}
.form-fields--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-field--wide { grid-column: 1 / -1; }
.form-field--small { max-width: 100%; }
.password-rules {
  display: grid;
  gap: .48rem;
  margin-top: .2rem;
  padding: .72rem .78rem;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 13px;
  background: rgba(0,0,0,.22);
}
.password-rule,
.password-match {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .86rem;
  font-weight: 750;
}
.password-rule {
  color: #ff5a5a;
  text-shadow: 0 0 8px rgba(255, 90, 90, .35);
  transition: color .18s ease, text-shadow .18s ease;
}
.password-rule__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  color: currentColor;
  font-weight: 900;
}
.password-rule.is-valid,
.password-match.is-valid {
  color: #48ff9b;
  text-shadow: 0 0 8px rgba(72, 255, 155, .35);
}
.password-rule.is-invalid,
.password-match.is-invalid {
  color: #ff5a5a;
  text-shadow: 0 0 8px rgba(255, 90, 90, .35);
}
.password-rule.is-valid {
  color: #48ff9b;
  text-shadow: 0 0 8px rgba(72, 255, 155, .35);
}
.password-rule.is-invalid {
  color: #ff5a5a;
  text-shadow: 0 0 8px rgba(255, 90, 90, .35);
}
.password-match {
  min-height: 1.25rem;
  margin-top: .22rem;
  color: var(--muted-2);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity .18s ease, transform .18s ease, color .18s ease;
}
.password-match.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.inline-form-message {
  margin: 0 0 1.05rem;
  padding: .95rem 1rem;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.inline-form-message strong {
  display: block;
  margin-bottom: .35rem;
  color: #fff;
  font-weight: 900;
}
.inline-form-message p {
  margin: 0 0 .25rem;
  color: rgba(255,255,255,.9) !important;
  font-weight: 750;
}
.inline-form-message p:last-child { margin-bottom: 0; }
.inline-form-message.is-success {
  border-color: rgba(72, 255, 155, .45);
  background: rgba(72, 255, 155, .095);
  box-shadow: 0 0 24px rgba(72, 255, 155, .13), inset 0 1px 0 rgba(255,255,255,.05);
}
.inline-form-message.is-error {
  border-color: rgba(255, 90, 90, .5);
  background: rgba(255, 90, 90, .11);
  box-shadow: 0 0 24px rgba(255, 90, 90, .16), inset 0 1px 0 rgba(255,255,255,.05);
}
.form-inline-error {
  display: none;
  grid-column: 1 / -1;
  margin-top: .25rem;
  padding: .82rem .92rem;
  border: 1px solid rgba(255, 97, 97, .32);
  border-radius: 13px;
  background: rgba(255, 97, 97, .11);
  color: #ffb0b0;
  font-size: .92rem;
  font-weight: 800;
}
.form-inline-error.is-visible { display: block; }
.form-alert-overlay {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 3000;
  width: min(440px, calc(100vw - 2rem));
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(.98);
  transition: opacity .2s ease, transform .2s ease;
}
.form-alert-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.form-alert {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .9rem;
  padding: 1.05rem 1.1rem;
  border-radius: 18px;
  background: rgba(9, 11, 15, .96);
  border: 1px solid rgba(255, 90, 90, .55);
  box-shadow: 0 0 0 1px rgba(255, 90, 90, .12), 0 18px 45px rgba(0,0,0,.45), 0 0 28px rgba(255, 90, 90, .2);
  color: var(--text);
  backdrop-filter: blur(14px);
}
.form-alert-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 50%;
  background: rgba(255, 90, 90, .13);
  color: #ff5a5a;
  text-shadow: 0 0 10px rgba(255, 90, 90, .55);
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(255, 90, 90, .35);
}
.form-alert-title {
  display: block;
  margin: .12rem 2rem .45rem 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}
.form-alert-list {
  margin: 0;
  padding-left: 1.05rem;
  color: #ffd2d2;
  font-size: .92rem;
  line-height: 1.45;
}
.form-alert-list li { margin: .12rem 0; }
.form-alert-close {
  position: absolute;
  top: .65rem;
  right: .65rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.075);
  color: rgba(255,255,255,.84);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}
.form-alert-close:hover {
  background: rgba(255, 90, 90, .18);
  color: #fff;
}
.site-toast-wrap {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 3200;
  width: min(430px, calc(100vw - 2rem));
  pointer-events: none;
}
.site-toast {
  position: relative;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(9, 11, 15, .96);
  border: 1px solid rgba(255,255,255,.18);
  color: var(--text);
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
  backdrop-filter: blur(14px);
  pointer-events: auto;
  animation: siteToastIn .22s ease both;
  transition: opacity .2s ease, transform .2s ease;
}
.site-toast.is-hiding {
  opacity: 0;
  transform: translateY(14px) scale(.98);
  pointer-events: none;
}
.site-toast.is-success {
  border-color: rgba(72, 255, 155, .5);
  box-shadow: 0 18px 45px rgba(0,0,0,.45), 0 0 30px rgba(72, 255, 155, .18);
}
.site-toast.is-error {
  border-color: rgba(255, 90, 90, .58);
  box-shadow: 0 18px 45px rgba(0,0,0,.45), 0 0 30px rgba(255, 90, 90, .2);
}
.site-toast-title {
  display: block;
  margin: 0 2rem .35rem 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
}
.site-toast-message p {
  margin: 0 0 .24rem;
  color: rgba(255,255,255,.9);
  font-size: .92rem;
  line-height: 1.45;
}
.site-toast-message p:last-child { margin-bottom: 0; }
.site-toast-close {
  position: absolute;
  top: .65rem;
  right: .65rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.075);
  color: rgba(255,255,255,.84);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}
.site-toast-close:hover {
  background: rgba(255,255,255,.13);
  color: #fff;
}
@keyframes siteToastIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.form-submit-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: .3rem;
}
.form-submit-row p {
  color: var(--muted-2);
  font-size: .9rem;
  max-width: 520px;
}
.notice {
  border-radius: 16px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.04);
}
.notice strong {
  display: block;
  color: #fff;
  margin-bottom: .25rem;
  font-size: .98rem;
}
.notice p { margin: 0 0 .35rem; color: inherit; }
.notice p:last-child { margin-bottom: 0; }
.notice ul { margin: .65rem 0 0 1.1rem; color: inherit; }
.notice li { margin-bottom: .28rem; }
.notice-success {
  background: rgba(71, 190, 125, .12);
  border-color: rgba(71, 190, 125, .32);
}
.notice-error {
  background: rgba(255, 97, 97, .12);
  border-color: rgba(255, 97, 97, .32);
}

@media (max-width: 980px) {
  .online-grid,
  .client-layout,
  .form-fields,
  .form-fields--thirds { grid-template-columns: 1fr; }
  .client-panel { padding: 1.45rem; }
  .panel-head--split { display: block; }
  .panel-head--split .btn-small { margin-top: 1rem; }
}

@media (max-width: 640px) {
  .client-status-area { margin-bottom: .75rem; }
  .client-form--login { max-width: none; }
  .form-submit-row { align-items: stretch; }
  .form-submit-row .btn-primary { width: 100%; text-align: center; }
}


/* ============================================================
   Klientské přihlášení / registrace – verze 12
   ============================================================ */

.nav-login {
  border: 1px solid rgba(245,197,66,.26);
  background: rgba(245,197,66,.075);
  color: var(--yellow) !important;
  padding: .55rem .86rem;
  border-radius: 999px;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-login:hover,
.nav-login.active {
  background: rgba(245,197,66,.16);
  border-color: rgba(245,197,66,.46);
  color: var(--yellow-2) !important;
}

.auth-hero .hero-sub { max-width: 730px; }
.auth-page { padding-top: 3.4rem; }
.auth-grid {
  grid-template-columns: minmax(0, .92fr) minmax(330px, .58fr);
  gap: 1.4rem;
}
.auth-card {
  border: 1px solid rgba(255,255,255,.105);
  background:
    linear-gradient(145deg, rgba(255,255,255,.072), rgba(255,255,255,.028)),
    rgba(15,18,22,.92);
  box-shadow: 0 22px 70px rgba(0,0,0,.30);
}
.auth-card--side {
  background:
    radial-gradient(circle at 100% 0%, rgba(245,197,66,.13), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.03)),
    rgba(17,21,26,.94);
}
.account-card h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }

.auth-page .client-form,
.auth-page .client-form * { box-sizing: border-box; }
.auth-page .client-form {
  display: block;
  margin-top: 1.2rem;
}
.auth-page .form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 1rem 1.05rem;
}
.auth-page .form-fields--thirds {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}
.auth-page .admin-search-fields {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}
.auth-page .form-field {
  display: flex;
  flex-direction: column;
  gap: .44rem;
  min-width: 0;
  margin: 0;
}
.auth-page .form-field--wide { grid-column: 1 / -1; }
.auth-page .client-form--login .form-field { margin-bottom: .92rem; }
.auth-page .client-form label {
  display: block;
  color: rgba(255,255,255,.86);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
  line-height: 1.25;
}
.auth-page .client-form input,
.auth-page .client-form textarea,
.auth-page .client-form select,
.client-zone input[type="text"],
.client-zone input[type="password"],
.client-zone input[type="email"],
.client-zone textarea,
.client-zone select {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(5,7,10,.52);
  color: var(--text);
  border-radius: 14px;
  padding: .92rem 1rem;
  font-family: var(--font);
  font-size: .98rem;
  line-height: 1.2;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 10px 26px rgba(0,0,0,.12);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}
.auth-page .client-form input:hover,
.auth-page .client-form textarea:hover,
.auth-page .client-form select:hover,
.client-zone input[type="text"]:hover,
.client-zone input[type="password"]:hover,
.client-zone input[type="email"]:hover,
.client-zone textarea:hover,
.client-zone select:hover {
  border-color: rgba(255,255,255,.28);
  background: rgba(5,7,10,.66);
}
.auth-page .client-form input:focus,
.auth-page .client-form textarea:focus,
.auth-page .client-form select:focus,
.client-zone input[type="text"]:focus,
.client-zone input[type="password"]:focus,
.client-zone input[type="email"]:focus,
.client-zone textarea:focus,
.client-zone select:focus {
  border-color: rgba(245,197,66,.72);
  background: rgba(5,7,10,.78);
  box-shadow: 0 0 0 4px rgba(245,197,66,.15), inset 0 1px 0 rgba(255,255,255,.07);
}
.auth-page .client-form input::placeholder { color: rgba(255,255,255,.34); }
.auth-page .remember-option {
  margin: .2rem 0 1rem;
  padding: .85rem .95rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.auth-page .remember-option label {
  display: flex;
  align-items: flex-start;
  gap: .62rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: .92rem;
  line-height: 1.35;
  cursor: pointer;
}
.auth-page .remember-option input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 18px;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: .16rem 0 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 4px;
  background: rgba(5,7,10,.65);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  cursor: pointer;
}
.auth-page .remember-option input[type="checkbox"]:checked {
  border-color: rgba(245,197,66,.9);
  background: var(--yellow);
}
.auth-page .remember-option input[type="checkbox"]:checked::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #111;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-1px);
}
.auth-page .remember-option input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(245,197,66,.16), inset 0 1px 0 rgba(255,255,255,.08);
}
.auth-page .remember-option p {
  margin: .45rem 0 0 1.55rem;
  color: rgba(255,255,255,.58);
  font-size: .82rem;
  line-height: 1.45;
}
.auth-page .required-mark { color: var(--yellow-2); }
.auth-page .form-section {
  margin: 0 0 1rem;
  border: 1px solid rgba(255,255,255,.105);
  border-radius: 20px;
  padding: clamp(1rem, 2vw, 1.45rem);
  background: rgba(255,255,255,.035);
}
.auth-page .form-section legend {
  padding: 0 .55rem;
  color: var(--yellow);
  font-size: .95rem;
  font-weight: 900;
  letter-spacing: .035em;
}
.auth-page .form-section-note {
  margin: .15rem 0 1.1rem;
  color: var(--muted-2) !important;
  font-size: .92rem;
}
.auth-page .form-submit-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: .35rem;
}
.auth-page .form-main-submit {
  border: 0;
  cursor: pointer;
  min-height: 52px;
  padding-left: 1.55rem;
  padding-right: 1.55rem;
}
.auth-page .notice {
  border-radius: 18px;
  padding: 1.08rem 1.2rem;
  margin-bottom: 1.1rem;
  border-width: 1px;
  box-shadow: 0 16px 44px rgba(0,0,0,.22);
  position: relative;
  overflow: hidden;
}
.auth-page .notice::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: currentColor;
  opacity: .85;
}
.auth-page .notice strong {
  font-size: 1.02rem;
  color: #fff;
}
.auth-page .notice-success {
  color: #8dffc2;
  background: linear-gradient(135deg, rgba(28, 175, 98, .22), rgba(28, 175, 98, .08));
  border-color: rgba(76, 230, 145, .52);
}
.auth-page .notice-error {
  color: #ff9d9d;
  background: linear-gradient(135deg, rgba(221, 57, 57, .24), rgba(221, 57, 57, .08));
  border-color: rgba(255, 115, 115, .55);
}
.auth-page .notice p,
.auth-page .notice li { color: rgba(255,255,255,.88); }

@media (max-width: 1120px) {
  .nav-links { gap: .9rem; }
  .nav-links a { font-size: .76rem; }
  .nav-login { max-width: 170px; }
}
@media (max-width: 980px) {
  .auth-grid,
  .auth-page .form-fields,
  .auth-page .form-fields--thirds { grid-template-columns: 1fr; }
  .nav-login { max-width: none; }
}
@media (max-width: 640px) {
  .auth-page .client-form input,
  .auth-page .client-form textarea,
  .auth-page .client-form select,
  .client-zone input[type="text"],
  .client-zone input[type="password"],
  .client-zone input[type="email"] { min-height: 50px; }
  .auth-page .form-submit-row { align-items: stretch; }
  .auth-page .form-submit-row .btn-primary,
  .auth-page .client-form--login .btn-primary { width: 100%; text-align: center; }
}


/* ============================================================
   Klientská komunikace / moderátor – verze 13
   ============================================================ */
.client-two-col {
  display: grid;
  grid-template-columns: minmax(310px, .8fr) minmax(0, 1.2fr);
  gap: 1.35rem;
  margin-top: 1.35rem;
  align-items: start;
}
.communication-panel { margin-top: 1.35rem; }
.client-two-col .communication-panel { margin-top: 0; }
.message-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: .45rem .8rem;
  border: 1px solid rgba(245,197,66,.28);
  background: rgba(245,197,66,.09);
  color: var(--yellow);
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}
.empty-state {
  padding: 1.2rem;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: 18px;
  color: var(--muted-2);
  background: rgba(255,255,255,.035);
}
.message-list {
  display: grid;
  gap: 1rem;
}
.message-list--compact { gap: .85rem; }
.message-card {
  border: 1px solid rgba(255,255,255,.105);
  background: rgba(3,5,8,.34);
  border-radius: 20px;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.message-card::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 4px;
  background: rgba(255,255,255,.24);
}
.message-card.status-is-waiting::before { background: #f5c542; }
.message-card.status-is-new::before { background: #62e89a; }
.message-card.status-is-read::before { background: rgba(255,255,255,.32); }
.message-card.status-is-info::before { background: #7eb6ff; }
.message-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: .8rem;
}
.message-head h3 {
  margin: .1rem 0 0;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.25;
}
.message-date,
.message-meta {
  display: block;
  color: var(--muted-2);
  font-size: .82rem;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.055);
  font-size: .76rem;
  font-weight: 850;
  white-space: nowrap;
}
.status-is-waiting .status-badge {
  background: rgba(245,197,66,.13);
  border-color: rgba(245,197,66,.36);
  color: var(--yellow);
}
.status-is-new .status-badge {
  background: rgba(76,230,145,.14);
  border-color: rgba(76,230,145,.40);
  color: #8dffc2;
}
.message-body,
.message-answer {
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.message-answer {
  margin-top: .9rem;
  padding: .95rem 1rem;
  border: 1px solid rgba(245,197,66,.18);
  background: rgba(245,197,66,.07);
  border-radius: 16px;
}
.answer-form {
  margin-top: 1rem !important;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.085);
}
.answer-form textarea,
.communication-panel textarea {
  min-height: 150px !important;
  resize: vertical;
}

@media (max-width: 980px) {
  .client-two-col { grid-template-columns: 1fr; }
  .message-head { display: block; }
  .status-badge { margin-top: .65rem; }
}

/* ============================================================
   Cookies a externí mapa
   ============================================================ */
.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 220;
  width: min(920px, calc(100% - 32px));
  max-width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(245,197,66,.28);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(13,15,18,.98), rgba(24,28,34,.96));
  box-shadow: 0 24px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.035) inset;
  transform: translateX(-50%);
}
.cookie-consent::before {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245,197,66,.8), transparent);
}
.cookie-consent.is-hidden { display: none; }
.cookie-consent__media {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(245,197,66,.08);
  border: 1px solid rgba(245,197,66,.18);
  flex: 0 0 auto;
}
.cookie-consent__content,
.cookie-consent__actions { min-width: 0; }
.cookie-consent__media img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}
.cookie-consent__label {
  margin: 0 0 .18rem;
  color: var(--yellow);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.cookie-consent__content p:last-child {
  margin: 0;
  color: rgba(255,255,255,.76);
  font-size: .94rem;
  line-height: 1.55;
}
.cookie-consent__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .65rem;
  flex-wrap: wrap;
}
.cookie-btn {
  max-width: 100%;
  min-height: 42px;
  border-radius: 999px;
  padding: .65rem 1rem;
  border: 1px solid transparent;
  font: inherit;
  font-size: .84rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-btn--primary {
  background: var(--yellow);
  color: #111;
  box-shadow: 0 12px 28px rgba(245,197,66,.18);
}
.cookie-btn--secondary {
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.16);
}
.cookie-consent__more {
  color: var(--yellow);
  font-size: .86rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}
.cookie-consent__more:hover { color: var(--yellow-2); }

.map-placeholder {
  max-width: 100%;
  min-width: 0;
  min-height: 440px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background:
    linear-gradient(135deg, rgba(245,197,66,.12), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)),
    #101318;
}
.map-placeholder__inner {
  max-width: 560px;
  min-width: 0;
  text-align: center;
  overflow-wrap: anywhere;
}
.map-placeholder h2 {
  margin: .2rem 0 .55rem;
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}
.map-placeholder p {
  color: rgba(255,255,255,.72);
}
.map-placeholder__actions {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
}

.cookies-page {
  padding: 4.5rem 0;
  max-width: 100%;
  overflow-x: hidden;
}
.cookies-page__inner {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: 980px;
  min-width: 0;
}
.cookies-panel {
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
  box-shadow: 0 20px 70px rgba(0,0,0,.24);
  padding: clamp(1.15rem, 3vw, 1.8rem);
}
.cookies-panel h2 {
  margin-bottom: .55rem;
  color: #fff;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}
.cookies-panel p {
  color: rgba(255,255,255,.72);
  overflow-wrap: anywhere;
}
.cookies-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
}
.cookies-table {
  width: 100%;
  max-width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: rgba(0,0,0,.18);
}
.cookies-table th,
.cookies-table td {
  padding: .9rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.76);
  overflow-wrap: anywhere;
}
.cookies-table th {
  color: var(--yellow);
  background: rgba(245,197,66,.07);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cookies-table tr:last-child td { border-bottom: 0; }
.cookies-table strong { color: #fff; }
.cookies-note {
  max-width: 100%;
  padding: .85rem 1rem;
  border: 1px solid rgba(245,197,66,.22);
  border-radius: 16px;
  background: rgba(245,197,66,.07);
}
.cookies-reset-button {
  max-width: 100%;
  margin-top: 1rem;
  border: 0;
  cursor: pointer;
}

@media (max-width: 820px) {
  .cookie-consent {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }
  .cookie-consent__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }
  .cookie-btn,
  .cookie-consent__more {
    flex: 1 1 auto;
    text-align: center;
  }
}
@media (max-width: 768px) {
  .cookies-page {
    padding: 3rem 0;
  }
  .cookies-page .container,
  .cookies-page__inner,
  .cookies-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .cookies-panel {
    border-radius: 18px;
    padding: 1rem;
    overflow: hidden;
  }
  .cookies-panel h2 {
    font-size: 1.32rem;
    line-height: 1.25;
  }
  .cookies-table-wrap {
    overflow-x: visible;
    border: 0;
    border-radius: 0;
    margin: 1rem 0;
    background: transparent;
  }
  .cookies-table,
  .cookies-table thead,
  .cookies-table tbody,
  .cookies-table tr,
  .cookies-table th,
  .cookies-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .cookies-table {
    background: transparent;
    border-collapse: separate;
    border-spacing: 0;
  }
  .cookies-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .cookies-table tr {
    margin-bottom: .85rem;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px;
    background: rgba(0,0,0,.18);
    overflow: hidden;
  }
  .cookies-table td {
    position: relative;
    padding: .78rem .9rem .78rem 7.4rem;
    min-height: 48px;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .cookies-table td:last-child {
    border-bottom: 0;
  }
  .cookies-table td::before {
    content: '';
    position: absolute;
    left: .9rem;
    top: .82rem;
    width: 5.7rem;
    color: var(--yellow);
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  .cookies-table td:nth-child(1)::before { content: 'Název'; }
  .cookies-table td:nth-child(2)::before { content: 'Účel'; }
  .cookies-table td:nth-child(3)::before { content: 'Platnost'; }
  .cookies-table td:nth-child(4)::before { content: 'Typ'; }
  .cookies-note {
    padding: .82rem .9rem;
  }
  .cookies-reset-button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }
  .map-placeholder__actions .btn-primary,
  .map-placeholder__actions .btn-ghost {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 560px) {
  .cookie-consent {
    bottom: 12px;
    width: calc(100% - 20px);
    grid-template-columns: 1fr;
    padding: .9rem;
    border-radius: 20px;
  }
  .cookie-consent__media {
    width: 64px;
    height: 64px;
  }
  .cookie-consent__media img {
    width: 58px;
    height: 58px;
  }
  .cookie-consent__content p:last-child { font-size: .88rem; }
  .cookie-consent__actions { display: grid; grid-template-columns: 1fr; }
  .cookie-btn,
  .cookie-consent__more {
    width: 100%;
    white-space: normal;
  }
  .cookies-panel {
    padding: .9rem;
  }
  .cookies-table td {
    padding: 2.05rem .85rem .82rem;
  }
  .cookies-table td::before {
    left: .85rem;
    top: .72rem;
    width: auto;
  }
  .map-placeholder { min-height: 340px; }
}
