/* ------------------------------------------------------------------
   CHHL — base styles
   ------------------------------------------------------------------ */

:root {
  --bg: #070d15;
  --bg-soft: #0a111a;
  --surface: #0d1622;
  --surface-2: #111c2a;
  --line: rgba(163, 190, 214, .14);
  --line-strong: rgba(163, 190, 214, .26);
  --text: #eef5fb;
  --text-soft: #c8d5e2;
  --muted: #8a9bae;
  --ice: #63d8ff;
  --ice-deep: #2aa8e0;
  --red: #ff5a67;
  --red-soft: #ff9aa3;
  --container: 1200px;
  --radius: 16px;
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4, p, dl, dd, figure {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

svg {
  display: block;
}

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

::selection {
  background: rgba(99, 216, 255, .28);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(calc(100% - clamp(28px, 5vw, 48px)), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ice);
  color: #04121c;
  font-weight: 700;
  font-size: .85rem;
}

.skip-link:focus {
  transform: none;
}

main section[id] {
  scroll-margin-top: 96px;
}

/* ---------------- header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 13, 21, .78);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(7, 13, 21, .96);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  border-radius: 12px;
}

.brand__mark {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--ice);
  color: #04131e;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .93rem;
  letter-spacing: -.01em;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.brand__text > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: .57rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.nav {
  margin-left: auto;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  position: relative;
  display: inline-block;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}

.nav a.is-active {
  color: #fff;
}

.nav a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--ice);
}

/* ---------------- navigace: podmenu Organizace ---------------- */

.nav__has-submenu {
  position: relative;
}

.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.nav__dropdown-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}

.nav__dropdown-toggle.is-active {
  color: #fff;
}

.nav__caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.nav .nav__submenu {
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

@media (min-width: 901px) {
  .nav .nav__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 70;
    min-width: 190px;
    margin-top: 4px;
    padding: 6px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #0b1622;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  }

  .nav__has-submenu:hover > .nav__submenu,
  .nav__has-submenu.is-open > .nav__submenu {
    display: flex;
  }

  .nav .nav__submenu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
  }
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .04);
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 1.6px;
  border-radius: 2px;
  background: var(--text);
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6.6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.6px) rotate(-45deg);
}

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  padding: clamp(48px, 6vw, 84px) 0 clamp(56px, 7vw, 92px);
  border-bottom: 1px solid var(--line);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__content {
  max-width: 540px;
}

.hero__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 480px;
  justify-self: end;
}

.hero__kicker {
  color: var(--ice);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero__title {
  margin-top: 8px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(5.4rem, 11vw, 8.6rem);
  font-weight: 800;
  line-height: .82;
  letter-spacing: .01em;
}

.hero__subtitle {
  margin-top: 14px;
  color: var(--text-soft);
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.6vw, 1.3rem);
  font-weight: 600;
  letter-spacing: .3em;
  text-indent: .3em;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 460px;
  color: var(--muted);
  font-size: clamp(.95rem, 1.1vw, 1rem);
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn--primary {
  background: var(--ice);
  color: #04121c;
}

.btn--primary:hover {
  background: #93e6ff;
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text-soft);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .05);
}

.btn--small {
  padding: 11px 17px;
  font-size: .8rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 600;
  white-space: nowrap;
}

.text-link svg {
  width: 15px;
  height: 15px;
}

.text-link:hover {
  color: #fff;
  border-bottom-color: var(--ice);
}

/* ---------------- sections ---------------- */

.section {
  padding: clamp(56px, 7vw, 88px) 0;
}

.section--alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--ice);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: .01em;
}

.notice {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: .9rem;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

/* ---------------- footer ---------------- */

.site-footer {
  padding-top: clamp(48px, 6vw, 68px);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr .9fr 1fr;
  gap: 40px;
  padding-bottom: clamp(36px, 5vw, 52px);
}

.brand--footer {
  margin-bottom: 18px;
}

.footer__brand p {
  max-width: 340px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.7;
}

.footer__col h3 {
  margin-bottom: 16px;
  color: #b9c7d8;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.footer__col ul {
  display: grid;
  gap: 10px;
}

.footer__col ul a {
  color: var(--muted);
  font-size: .88rem;
}

.footer__col ul a:hover {
  color: #fff;
}

.footer__contact address {
  color: var(--muted);
  font-size: .88rem;
  font-style: normal;
  line-height: 1.75;
}

.footer__mail {
  display: inline-block;
  margin-top: 12px;
  color: var(--ice) !important;
  font-size: .88rem;
}

.footer__mail:hover {
  text-decoration: underline;
}

.footer__note {
  margin-top: 10px;
  color: #6f8095;
  font-size: .76rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: #6f8095;
  font-size: .77rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer__legal a {
  color: #6f8095;
}

.footer__legal a:hover {
  color: var(--text-soft);
}
