/* Leading Services – nový vzhled (barvy z loga a původních bannerů) */

:root {
  --navy: #1b3363;
  --navy-deep: #1c2143;
  --teal: #45917b;
  --mint: #66c8ae;
  --green: #5bb780;
  --yellow: #ffd058;
  --ink: #1d2433;
  --muted: #5a6475;
  --line: #e2e8ee;
  --soft: #f3f7f8;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(27, 51, 99, .06), 0 10px 30px -12px rgba(27, 51, 99, .18);
  --wrap: 1200px;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
b, strong { font-weight: 700; color: var(--navy); }

.wrap { width: min(var(--wrap), 100% - 48px); margin: 0 auto; }
.wrap--narrow { max-width: 820px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.lead { font-size: 19px; line-height: 1.7; color: var(--ink); }

svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

/* položky mřížek se nesmí roztáhnout podle obsahu (tabulka, dlouhá slova) */
.hero__in > *, .about__in > *, .csr__in > *, .nahradni__in > *, .elearn__in > *, .contact-band__in > *, .svc-grid > *, .feat-grid > * { min-width: 0; }

/* ---------- tlačítka ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 14px 24px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--light { background: #fff; border-color: #fff; color: var(--navy); }
.btn--light:hover { background: var(--mint); border-color: var(--mint); color: var(--navy-deep); }
.btn--small { padding: 9px 16px; font-size: 15px; }

/* ---------- hlavička ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -14px rgba(27, 51, 99, .35); }
.site-header__in { display: flex; align-items: center; gap: 24px; height: 78px; }
.site-header__logo img { height: 42px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav ul a {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.site-nav ul a:hover { background: var(--soft); }
.site-nav ul a[aria-current="page"] { color: var(--teal); background: #e9f6f1; }

.nav-toggle { display: none; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 40px;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(102, 200, 174, .16), transparent 70%),
    linear-gradient(180deg, #f7fbfa 0%, #fff 100%);
}
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
.hero h1 { margin-bottom: .35em; }
.hero__lead { font-size: clamp(19px, 1.8vw, 23px); color: var(--teal); line-height: 1.45; margin-bottom: .6em; }
.hero__lead strong { color: var(--teal); }
.hero__list { color: var(--muted); font-weight: 600; font-size: 16px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-art { position: relative; aspect-ratio: 1 / .92; }
.hero-art__stripes { position: absolute; inset: -10% -14% -10% 30%; width: 84%; height: 120%; }
.hero-art__c { position: absolute; border-radius: 50%; border: 10px solid #fff; box-shadow: 0 20px 40px -18px rgba(28, 33, 67, .45); }
.hero-art__c--1 { width: 56%; left: 4%; top: 22%; }
.hero-art__c--2 { width: 40%; left: 46%; top: 2%; }
.hero-art__c--3 { width: 36%; left: 50%; top: 56%; }

.hero-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 44px; }
.hero-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .2s, border-color .2s;
}
.hero-tile img { width: 48px; height: 48px; border-radius: 50%; flex: none; }
.hero-tile:hover { transform: translateY(-3px); border-color: var(--mint); }

/* podstránky */
.hero--sub { padding: 48px 0 32px; }
.hero--sub .hero__lead { color: var(--ink); font-size: clamp(18px, 1.6vw, 21px); }
.hero__collage { width: 100%; max-width: 560px; justify-self: end; }
.hero--small { padding: 64px 0 24px; }

/* ---------- sekce ---------- */

.section { padding: 88px 0; }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy-deep); color: #dfe6f3; }
.section--navy h2 { color: #fff; }
.section--navy strong { color: var(--mint); }
.section__title { text-align: center; margin-bottom: 44px; }

.card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.checks { margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: 6px 0 6px 34px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2f4ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2345917b' d='m9.5 16.2-4.2-4.2-1.4 1.4 5.6 5.6 11-11-1.4-1.4z'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* o nás */
.about__in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.offer { border-top: 5px solid var(--mint); }

/* služby na úvodu */
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.svc-card {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 30px 70px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--muted);
  font-size: 16px;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.svc-card:nth-child(4), .svc-card:nth-child(5) { grid-column: span 3; }
.svc-card:hover { transform: translateY(-4px); border-color: var(--mint); box-shadow: 0 24px 40px -22px rgba(27, 51, 99, .4); }
.svc-card__img { width: 92px; height: 92px; border-radius: 50%; margin-bottom: 20px; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--mint); }
.svc-card__go {
  position: absolute;
  right: 26px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--navy);
  transition: background .2s, color .2s;
}
.svc-card:hover .svc-card__go { background: var(--navy); color: #fff; }

/* společenská odpovědnost */
.csr__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.csr .lead { color: #fff; }
.csr h2 { position: relative; padding-top: 18px; }
.csr h2::before { content: ""; position: absolute; top: 0; left: 0; width: 64px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--green), var(--yellow)); }

/* náhradní plnění */
.nahradni__in { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.card--accent { background: linear-gradient(160deg, #e8f6f1 0%, #fff 70%); border-top: 5px solid var(--yellow); position: sticky; top: 100px; }
.ways { padding-left: 1.3em; margin: 0 0 1em; }
.ways li { padding: 3px 0; }
.table-title { margin-top: 1.4em; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; border-radius: 12px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th { background: var(--navy); color: #fff; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; text-align: left; padding: 12px 16px; }
td { padding: 11px 16px; border-top: 1px solid var(--line); }
tbody tr:nth-child(even) td { background: var(--soft); }
td:last-child, th:last-child { text-align: right; font-weight: 700; color: var(--navy); }
.note { padding: 14px 18px; border-left: 4px solid var(--green); border-radius: 0 10px 10px 0; background: #eef8f3; }

/* reference */
.logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 0 0 48px; padding: 0; list-style: none; }
.logos > li { flex: 0 0 calc((100% - 5 * 16px) / 6); }
.logo {
  display: grid;
  place-items: center;
  height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: transform .2s, box-shadow .2s;
}
.logo:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.logo img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.logo--dark { background: var(--navy-deep); border-color: var(--navy-deep); }
.logo--text { color: var(--navy); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.refs__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; color: var(--muted); font-size: 16px; }
.refs__list p { margin: 0; padding-top: 14px; border-top: 3px solid var(--mint); }

/* kariéra */
.kariera__card { display: grid; grid-template-columns: auto 1fr; column-gap: 48px; align-items: start; border-left: 6px solid var(--yellow); }
.kariera__card h2 { grid-row: span 5; margin: 0; }
.kariera__pos { font-size: 19px; }
.kariera__card .hero__cta { margin-top: 12px; }

/* podstránky – úvod a karty */
.intro .lead { padding-left: 24px; border-left: 4px solid var(--mint); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 24px; }
.feat { position: relative; padding-top: 30px; font-size: 16px; color: var(--muted); }
.feat__no { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: #e9f6f1; color: var(--teal); font-weight: 800; font-size: 14px; letter-spacing: .05em; }
.feat .checks { margin-top: 10px; color: var(--ink); }

/* e-learning */
.elearn__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.elearn__text h3 { color: var(--teal); }
.elearn__text .btn { margin-top: 12px; }
.elearn__img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }

/* ---------- kontakt + patička ---------- */

.contact-band { padding: 72px 0; background: var(--navy); color: #c9d4e8; }
.contact-band__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.contact-band__links { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact-band__tel { display: inline-flex; align-items: center; gap: 14px; color: #fff; font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.02em; text-decoration: none; }
.contact-band__tel svg { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--mint); color: var(--navy-deep); }
.contact-band__tel:hover span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.contact-band .btn { margin-top: 8px; }
.contact-band__info { font-size: 15px; line-height: 1.7; }
.contact-band__info b { color: #fff; }

.site-footer { padding: 28px 0; background: var(--navy-deep); color: #8f9bb5; font-size: 14px; }
.site-footer__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .8; }

/* ---------- tablet ---------- */

@media (max-width: 1100px) {
  .site-nav ul a { padding: 8px 8px; font-size: 14px; }
  .site-nav .btn--small { display: none; }
  .hero-tiles { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: grid;
    gap: 5px;
    margin-left: auto;
    padding: 12px;
    border: 0;
    border-radius: 12px;
    background: var(--soft);
    cursor: pointer;
  }
  .nav-toggle span:not(.sr) { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(27, 51, 99, .35);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px; font-size: 17px; }
  .site-nav .btn--small { display: inline-flex; justify-content: center; padding: 14px; font-size: 16px; }

  .hero__in, .about__in, .csr__in, .nahradni__in, .elearn__in, .contact-band__in { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; margin: 0 auto; width: 100%; }
  .hero__collage { justify-self: center; max-width: 440px; }
  .card--accent { position: static; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-card, .svc-card:nth-child(4), .svc-card:nth-child(5) { grid-column: span 1; }
  .svc-card:nth-child(5) { grid-column: span 2; }
  .refs__list { grid-template-columns: 1fr 1fr; }
  .logos > li { flex-basis: calc((100% - 3 * 16px) / 4); }
  .kariera__card { grid-template-columns: 1fr; }
  .kariera__card h2 { grid-row: auto; margin-bottom: .5em; }
  .section { padding: 64px 0; }
}

/* ---------- mobil ---------- */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .site-header__in { height: 68px; }
  .site-header__logo img { height: 34px; }
  .site-nav { top: 68px; padding: 8px 16px 20px; }
  .hero { padding: 36px 0 28px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero-tiles { display: none; } /* na mobilu by se opakovaly karty služeb hned pod nimi */
  .svc-grid { grid-template-columns: 1fr; }
  .svc-card:nth-child(5) { grid-column: span 1; }
  .card { padding: 24px 20px; }
  .lead { font-size: 17px; }
  .feat-grid { grid-template-columns: 1fr; }
  .logos { gap: 10px; }
  .logos > li { flex-basis: calc((100% - 10px) / 2); }
  .logo { height: 84px; padding: 12px; }
  .logo img { max-height: 52px; }
  .refs__list { grid-template-columns: 1fr; }
  th, td { padding: 10px 10px; }
  th { font-size: 11px; }
  .contact-band { padding: 56px 0; }
  .site-footer__in { flex-direction: column; text-align: center; }
}

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