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

:root {
  --navy: #1a2744;
  --navy-dark: #152035;
  --navy-border: #243352;
  --accent: oklch(52% 0.18 255);
  --accent-light: oklch(96% 0.04 255);
  --accent-hover: color-mix(in oklch, var(--accent) 85%, white);
  --text: #1a1a2e;
  --text-muted: #5a6a8a;
  --bg: oklch(97% 0.01 255);
  --white: #ffffff;
  --border: oklch(90% 0.03 255);
  --radius: 10px;
  --radius-sm: 6px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.6;
}

.wrapper {
  max-width: 960px;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 2px 24px oklch(30% 0.1 255 / 0.12);
}

/* HEADER */
header {
  background: var(--navy);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.25rem);
}

.header-label {
  font-size: clamp(9px, 1.1vw, 11px);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #7a9fd4;
  margin-bottom: 0.6rem;
}

header h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

header p {
  font-size: clamp(13px, 1.5vw, 15px);
  color: #a0b8d8;
  max-width: 520px;
  line-height: 1.65;
}

/* NAV */
nav {
  background: var(--navy-dark);
  border-bottom: 1px solid var(--navy-border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s;

  & ul {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0 clamp(0.75rem, 3vw, 2rem);

    & li a {
      display: block;
      color: #a0b8d8;
      text-decoration: none;
      padding: 0.95rem clamp(0.5rem, 1.5vw, 1.1rem);
      font-size: clamp(11px, 1.3vw, 13px);
      transition: color 0.2s;

      &:hover { color: #fff; }
    }

    & li.lang-switch {
      margin-left: auto;

      & a {
        background: rgba(255,255,255,0.07);
        border-radius: var(--radius-sm);
        padding: 0.35rem 0.9rem;
        font-size: 12px;
        color: #7a9fd4;

        &:hover { color: #fff; background: rgba(255,255,255,0.13); }
      }
    }
  }
}

nav.scrolled { box-shadow: 0 4px 20px oklch(10% 0.1 255 / 0.4); }

/* FADE-IN pro sekce */
section {
  padding: clamp(1.75rem, 3.5vw, 2.5rem) clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  background: var(--white);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;

  &.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  font-size: 11px !important;
  margin-top: 0;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;

  &::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
  }
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 13px;
  line-height: 1.4;
  transition: border-color 0.2s, background 0.2s;

  &:hover {
    border-color: color-mix(in oklch, var(--accent) 40%, var(--border));
    background: var(--accent-light);
  }

  & .icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
  }
}

/* EXPERIENCE */
.exp-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.exp-photo {
  width: 130px;
  flex-shrink: 0;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  display: block;
}

.tech-group { margin-bottom: 1rem; }

.tech-group-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.tech-tags { display: flex; flex-wrap: wrap; gap: 5px; }

.tech-tag {
  font-size: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 9px;
  color: var(--text);
  transition: border-color 0.15s, color 0.15s;

  &:hover {
    border-color: color-mix(in oklch, var(--accent) 50%, var(--border));
    color: var(--accent);
  }
}

.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 1.25rem;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid;

  &.ms {
    background: var(--accent-light);
    border-color: color-mix(in oklch, var(--accent) 30%, white);
    color: oklch(40% 0.18 255);
  }

  &.security {
    background: oklch(98% 0.05 85);
    border-color: oklch(82% 0.1 85);
    color: oklch(40% 0.12 85);
  }

  &.citrix {
    background: oklch(97% 0.05 165);
    border-color: oklch(78% 0.1 165);
    color: oklch(35% 0.12 165);
  }

  &.hp {
    background: oklch(97% 0.005 255);
    border-color: oklch(82% 0.01 255);
    color: oklch(45% 0.01 255);
  }
}

/* CLIENTS */
.clients-layout { display: flex; flex-direction: column; gap: 1.5rem; }

.client-group-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.client-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.client-tag {
  font-size: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  color: var(--text-muted);
  transition: border-color 0.15s, color 0.15s;

  &:hover {
    border-color: color-mix(in oklch, var(--accent) 40%, var(--border));
    color: var(--text);
  }
}

/* CONTACT */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.1rem;

  & .clabel {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
    font-weight: 500;
  }

  & .cvalue {
    font-size: 14px;
    color: var(--text);
  }

  & a {
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;

    &:hover { text-decoration: underline; }
  }
}

.contact-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.map-link { text-decoration: none; display: block; }

.map-static {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
  height: 220px;
  justify-content: center;
  flex-direction: column;

  &:hover {
    background: var(--accent-light);
    border-color: color-mix(in oklch, var(--accent) 30%, var(--border));
  }
}

.map-pin { font-size: 2rem; }
.map-arrow { font-size: 18px; }

/* FOOTER */
footer {
  background: var(--navy-dark);
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;

  & span {
    font-size: 12px;
    color: #7a9fd4;
  }
}

/* RESPONSIVE */
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .exp-layout { flex-direction: column; }
  .exp-photo { width: 100px; }
  .contact-layout { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 4px; text-align: center; }
}
