/* =====================================================================
   A2COM — nová úvodná stránka (návrh 23. 10. 2026)
   Stavia na a2-base.css (sekcie a2-s-*), tu sú len doplnky úvodnej stránky.
   ===================================================================== */

/* ---- úvod s videom ---- */
.a2h-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #1c2a4f 0%, #374976 60%, #1c3a86 100%);
}
.a2h-hero-video { position: absolute; inset: 0; z-index: 0; }
.a2h-hero-video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.a2h-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(16, 24, 46, .82) 0%, rgba(16, 24, 46, .62) 55%, rgba(16, 24, 46, .35) 100%);
}
.a2h-hero .u-sheet-1 { position: relative; z-index: 2; min-height: 0; padding: 150px 0 64px; }
.a2h-eyebrow {
  margin: 0 0 16px; font-size: 0.8125rem; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 600; color: #9db8f5;
}
.a2h-eyebrow b { color: #fff; font-weight: 700; }
.a2h-hero h1.a2h-h1 { font-size: 3.25rem; line-height: 1.1; margin: 0 0 20px; max-width: 46rem; color: #fff; }
.a2h-lead { font-size: 1.1875rem; line-height: 1.6; max-width: 40rem; margin: 0; color: #e6ecfa; }
.a2h-hero .a2-s-act { margin-top: 30px; }
.a2h-hero .a2-s-btn.ghost { color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.a2h-hero .a2-s-btn.ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 2px #fff; }

/* pás dôveryhodnosti */
.a2h-trust {
  list-style: none; margin: 34px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 0.9375rem; color: #c3d0ee;
}
.a2h-trust li { position: relative; padding-left: 22px; }
.a2h-trust li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 11px; height: 6px;
  border-left: 2px solid #9db8f5; border-bottom: 2px solid #9db8f5; transform: rotate(-45deg);
}

/* dlaždice = rebríček služieb */
.a2h-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
.a2h-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 24px 14px 22px; background: #fff; border-radius: 20px; text-align: center;
  color: #14181f; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease;
}
.a2h-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, .28); color: #1847b8; }
.a2h-tile img { width: 56px; height: 56px; object-fit: contain; }
.a2h-tile b { font-size: 0.9375rem; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1.3; }
.a2h-tile small { font-size: 0.8125rem; color: #56607a; line-height: 1.35; }
.a2h-tile .n {
  position: absolute; top: 12px; left: 14px; width: 24px; height: 24px; border-radius: 50%;
  background: #1847b8; color: #fff; font-size: 0.75rem; font-weight: 700; display: grid; place-items: center;
}

/* ---- karty služieb ---- */
.a2h-services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.a2h-svc { grid-column: span 2; display: flex; flex-direction: column; background: #f2f2f2; border-radius: 20px; padding: 30px 28px 28px; }
.a2h-svc:nth-child(4), .a2h-svc:nth-child(5) { grid-column: span 3; }
.u-grey-5 .a2h-svc { background: #fff; }
.a2h-svc .a2-s-tag { margin-bottom: 8px; }
.a2h-svc h2.a2h-svc-h { font-size: 1.3125rem; line-height: 1.25; margin: 0 0 10px; }
.a2h-svc p { font-size: 0.9375rem; color: #56607a; margin: 0 0 14px; }
.a2h-svc ul { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.a2h-svc li { position: relative; padding-left: 18px; font-size: 0.9375rem; line-height: 1.5; }
.a2h-svc li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: #1847b8;
}
.a2h-more { margin-top: auto; font-weight: 700; font-size: 0.875rem; letter-spacing: .5px; color: #1847b8; text-decoration: none; }
.a2h-more:hover { text-decoration: underline; }

/* ---- pre koho ---- */
.a2h-seg h3 { font-size: 1.125rem; }

/* ---- prečo A2COM (tmavá sekcia) ---- */
.a2h-why .a2-s-refs { grid-template-columns: repeat(2, 1fr); }
.a2h-why .a2-s-ref { border-top: 1px solid rgba(157, 184, 245, .35); padding-top: 18px; }

/* ---- projekty ---- */
.a2h-proj { display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; }
.a2h-proj img { display: block; width: 100%; height: 190px; object-fit: cover; }
.a2h-proj .in { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.a2h-proj .st { font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; color: #3A5A9B; margin: 0 0 8px; }
.a2h-proj h3 { font-size: 1.1875rem; margin: 0 0 8px; line-height: 1.3; }
.a2h-proj p { font-size: 0.9375rem; color: #56607a; margin: 0 0 16px; }
.a2h-proj .note { font-size: 0.8125rem; font-style: italic; }

/* ---- cenník ---- */
.a2h-price-note { margin: 18px 0 0; font-size: 0.9375rem; color: #56607a; max-width: 50rem; }
.a2h-badge {
  display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 20px; vertical-align: 2px;
  background: #fdf3ea; color: #b4530a; font-size: 0.6875rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 700;
}

/* ---- responzívne ---- */
@media (max-width: 1199px) {
  .a2h-hero h1.a2h-h1 { font-size: 2.875rem; }
  .a2h-services { grid-template-columns: repeat(2, 1fr); }
  .a2h-svc, .a2h-svc:nth-child(4), .a2h-svc:nth-child(5) { grid-column: auto; }
  .a2h-svc:nth-child(5) { grid-column: 1 / -1; }
}
@media (max-width: 991px) {
  .a2h-hero .u-sheet-1 { padding: 124px 0 52px; }
  .a2h-hero h1.a2h-h1 { font-size: 2.375rem; }
  .a2h-tiles { grid-template-columns: repeat(2, 1fr); }
  .a2h-why .a2-s-refs { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  /* na mobile namiesto 4,5 MB videa len tmavé pozadie */
  .a2h-hero-video { display: none; }
  .a2h-hero::after { background: none; }
  .a2h-hero .u-sheet-1 { padding: 104px 18px 44px; }
  .a2h-services { grid-template-columns: 1fr; }
  .a2h-svc:nth-child(5) { grid-column: auto; }
}
@media (max-width: 575px) {
  .a2h-hero h1.a2h-h1 { font-size: 1.9375rem; }
  .a2h-lead { font-size: 1.0625rem; }
  .a2h-tiles { gap: 12px; margin-top: 34px; }
  .a2h-tile { padding: 20px 10px 18px; }
  .a2h-tile img { width: 44px; height: 44px; }
  .a2h-tile b { font-size: 0.8125rem; letter-spacing: 1px; }
  .a2h-tile small { display: none; }
  .a2h-trust { font-size: 0.875rem; gap: 8px 18px; }
  .a2h-svc { padding: 26px 22px 24px; }
}

/* menu nad tmavým úvodom musí byť biele */
body.u-overlap .u-header .u-nav-1 .u-nav-link { color: rgba(255, 255, 255, .92) !important; }
body.u-overlap .u-header .u-nav-1 .u-nav-link:hover { color: #9db8f5 !important; }
.u-header { position: relative; z-index: 60; }

/* ---- 5 dlaždíc (rebríček služieb) ---- */
.a2h-tiles { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.a2h-tile .a2h-ico, .a2h-tile img { width: 56px; height: 56px; }
@media (max-width: 1199px) { .a2h-tile b { font-size: 0.8125rem; letter-spacing: 1px; } }
@media (max-width: 991px) {
  .a2h-tiles { grid-template-columns: repeat(6, 1fr); }
  .a2h-tile { grid-column: span 2; }
  .a2h-tile:nth-child(4), .a2h-tile:nth-child(5) { grid-column: span 3; }
}
@media (max-width: 575px) {
  .a2h-tiles { grid-template-columns: repeat(2, 1fr); }
  .a2h-tile, .a2h-tile:nth-child(4) { grid-column: auto; }
  .a2h-tile:nth-child(5) { grid-column: 1 / -1; }
  .a2h-tile .a2h-ico { width: 44px; height: 44px; }
}

/* ---- tri predpoklady ---- */
.a2h-pillars .a2-s-head { max-width: 52rem; }
.a2h-pillars .a2-s-head p { font-size: 1.125rem; line-height: 1.65; color: #3d465c; }
.a2h-pillar { position: relative; display: block; text-decoration: none; color: inherit; padding-top: 62px;
  transition: transform .18s ease, box-shadow .18s ease; }
.a2h-pillar:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(24, 71, 184, .14); color: inherit; }
.a2h-pillar .n {
  position: absolute; top: 24px; left: 26px; width: 30px; height: 30px; border-radius: 50%;
  background: #1847b8; color: #fff; font-weight: 700; font-size: 0.875rem; display: grid; place-items: center;
}
.a2h-pillar:hover h3 { color: #1847b8; }

/* ---- citát v karte analýzy ---- */
.a2h-svc .a2h-quote {
  border-left: 3px solid #1847b8; padding: 2px 0 2px 12px; font-style: italic; color: #2b3550; font-size: 0.9375rem;
}

/* tri predpoklady zostávajú vedľa seba aj na tablete */
@media (min-width: 768px) { .a2h-pillars .a2-s-cards.three { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .a2h-pillars .a2-s-cards.three { grid-template-columns: 1fr; } }

/* ---- cena „od" v karte školení ---- */
.a2h-svc .a2h-from { margin: 0 0 16px; padding: 12px 14px; background: #fdf3ea; border-radius: 12px; color: #56607a; font-size: 0.875rem; line-height: 1.45; }
.a2h-svc .a2h-from b { display: block; color: #b4530a; font-size: 1.125rem; }
.u-grey-5 .a2h-svc .a2h-from { background: #fdf3ea; }
#nastroje .a2-s-note .a2h-more { margin-left: 6px; white-space: nowrap; }

/* ---- 6 kariet služieb: 3 + 3 ---- */
.a2h-svc:nth-child(4), .a2h-svc:nth-child(5) { grid-column: span 2; }
@media (max-width: 1199px) {
  .a2h-svc, .a2h-svc:nth-child(4), .a2h-svc:nth-child(5) { grid-column: auto; }
}

/* ---- 4 dlaždice a 4 karty služieb (2 × 2) ---- */
.a2h-tiles.a2h-tiles-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) {
  .a2h-tiles.a2h-tiles-4 { grid-template-columns: repeat(2, 1fr); }
  .a2h-tiles.a2h-tiles-4 .a2h-tile, .a2h-tiles.a2h-tiles-4 .a2h-tile:nth-child(4), .a2h-tiles.a2h-tiles-4 .a2h-tile:nth-child(5) { grid-column: auto; }
}
.a2h-services { grid-template-columns: repeat(2, 1fr); }
.a2h-svc, .a2h-svc:nth-child(4), .a2h-svc:nth-child(5) { grid-column: auto; }
@media (max-width: 767px) { .a2h-services { grid-template-columns: 1fr; } }
@media (max-width: 575px) { .a2h-tiles.a2h-tiles-4 .a2h-tile small { display: block; } }

/* ---- krok 2 (28. 10.): kompaktné predpoklady — číslo a názov v jednom riadku ---- */
.a2h-pillars .a2-s-head { margin-bottom: 28px; }
.a2h-pillar { display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.a2h-pillar .n { position: static; flex: 0 0 30px; }
.a2h-pillar h3 { margin: 0; font-size: 1.0625rem; }
@media (max-width: 767px) { .a2h-pillars .a2-s-cards.three { gap: 10px; } .a2h-pillar { padding: 14px 18px; } }

/* ---- projekty na úvodnej stránke: pás s malým obrázkom a názvom (detail je na O nás) ---- */
.a2h-pillars .a2-s-head { margin-bottom: 0; }
.a2h-strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.a2h-chip { flex: 0 0 206px; scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; border-radius: 16px;
  overflow: hidden; text-decoration: none; color: #14181f; transition: transform .18s ease, box-shadow .18s ease; }
.a2h-chip:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(24, 71, 184, .14); color: #1847b8; }
.a2h-chip img { display: block; width: 100%; height: 116px; object-fit: cover; }
.a2h-chip b { display: block; padding: 12px 14px 14px; font-size: 0.9375rem; line-height: 1.3; }
.a2h-strip-more { margin: 14px 0 0; }
#projekty .a2-s-head { margin-bottom: 24px; }
@media (max-width: 767px) {
  .a2h-strip { margin: 0 -18px; padding: 4px 18px 12px; gap: 12px; }
  .a2h-chip { flex-basis: 58%; }
  .a2h-chip img { height: 104px; }
  #projekty .a2-s-head::after { content: "Potiahnite prstom do strany →"; display: block; margin-top: 6px; font-size: 0.8125rem; color: #56607a; }
}
