/* ==========================================================================
   SKATYL, spol. s r.o. — barevná a typografická vrstva nad Bootstrapem 5.3.
   Rozvržení, navbar i modální okno řeší Bootstrap; tento soubor jen určuje,
   jak to má vypadat. Barvy vycházejí z firemního loga.
   ========================================================================== */

:root {
  --ink: #1c1e22;
  --ink-2: #2a2e34;
  --ink-3: #3d434b;
  --yellow: #f5b300;
  --yellow-l: #ffc319;
  --yellow-d: #a97c00;
  --muted: #667080;
  --line: #e3e5e8;
  --soft: #f6f6f4;

  --bs-body-font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --bs-body-color: #1c1e22;
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.65;
  --bs-link-color-rgb: 28, 30, 34;
  --bs-link-hover-color-rgb: 169, 124, 0;
  --bs-border-color: #e3e5e8;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;   /* výška lepivé hlavičky */
}

.container { max-width: 1180px; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }

body { -webkit-font-smoothing: antialiased; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1200;
  background: var(--yellow);
  color: var(--ink);
  padding: .75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

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

.site-head {
  background: var(--ink);
  border-bottom: 3px solid var(--yellow);
}
.site-head .navbar { padding-block: .9rem; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.brand small {
  color: rgba(255, 255, 255, .62);
  font-size: .78rem;
  letter-spacing: .06em;
  white-space: nowrap;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  padding: .4rem .65rem;
}
.navbar-toggler:focus { box-shadow: none; }

.nav-main .nav-link {
  color: rgba(255, 255, 255, .82);
  font-weight: 500;
  padding: .5rem .85rem;
  border-radius: 4px;
}
.nav-main .nav-link:hover,
.nav-main .nav-link:focus { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-main .nav-link.is-active { color: var(--yellow); }

.btn-call {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  border-radius: 4px;
  padding: .55rem 1.1rem;
  text-decoration: none;
  white-space: nowrap;
}
.btn-call:hover, .btn-call:focus { background: var(--yellow-l); color: var(--ink); }

@media (max-width: 991.98px) {
  .nav-main { padding-top: .75rem; }
  .nav-main .nav-link {
    padding: .75rem .4rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    border-radius: 0;
  }
  .btn-call { display: inline-block; margin-top: .9rem; text-align: center; }
}

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

.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg,
    rgba(255, 255, 255, .028) 0 2px, transparent 2px 11px);
}
.hero::after {
  content: '';
  position: absolute;
  top: -32%;
  right: -12%;
  width: 44rem;
  height: 44rem;
  background: radial-gradient(circle, rgba(245, 179, 0, .17) 0%, transparent 62%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); max-width: 18ch; }
.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, .82);
  max-width: 62ch;
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yellow);
}
.eyebrow::before { content: ''; width: 2rem; height: 3px; background: var(--yellow); }

.btn-y, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  font-size: 1.05rem;
  padding: .8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn-y { background: var(--yellow); color: var(--ink); }
.btn-y:hover, .btn-y:focus { background: var(--yellow-l); color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .32); color: #fff; }
.btn-ghost:hover, .btn-ghost:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

/* ------------------------------------------------------------------- fakta */

.facts { border-bottom: 1px solid var(--line); }
.fact { padding: 1.9rem 1.5rem; border-left: 1px solid var(--line); height: 100%; }
/* dělicí čáry patří jen mezi buňky, ne před první v řádku */
.facts .col:nth-child(2n+1) .fact { border-left: 0; }
.facts .col:nth-child(n+3) .fact { border-top: 1px solid var(--line); }
@media (min-width: 768px) {
  .facts .col:nth-child(n+3) .fact { border-top: 0; }
  .facts .col:nth-child(2n+1) .fact { border-left: 1px solid var(--line); }
  .facts .col:nth-child(4n+1) .fact { border-left: 0; }
}
.fact b {
  display: block;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.fact i { display: block; width: 2.2rem; height: 3px; background: var(--yellow); margin: .7rem 0 .65rem; }
.fact span { color: var(--muted); font-size: .95rem; }

@media (max-width: 767.98px) {
  .fact { padding: 1.4rem 1.15rem; }
  .fact b { font-size: 1.75rem; }
}

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

.section { padding: clamp(3.25rem, 7vw, 5.5rem) 0; }
.section--soft { background: var(--soft); border-block: 1px solid var(--line); }

.section-head { max-width: 62ch; }
.section-head .eyebrow { color: var(--ink-3); }
.section-head h2 { font-size: clamp(1.65rem, 3.6vw, 2.35rem); }
.section-head p { color: var(--muted); font-size: 1.075rem; }

/* ------------------------------------------------------------------ služby */

.svc {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  border-radius: 4px;
  padding: 1.4rem 1.4rem 1.5rem;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.svc:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(28, 30, 34, .09);
  border-color: #cfd3d8;
  border-left-color: var(--yellow);
}
.svc h3 { font-size: 1.135rem; margin-bottom: .5rem; }
.svc p { color: var(--muted); font-size: .975rem; margin: 0; line-height: 1.55; }

/* ----------------------------------------------------------------- o firmě */

.spec { background: var(--ink); color: #fff; border-radius: 4px; padding: 1.75rem; }
.spec h3 {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.25rem;
}
.spec dl { margin: 0; }
.spec dt {
  font-size: .8rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  font-weight: 600;
}
.spec dd { margin: .15rem 0 1.05rem; color: rgba(255, 255, 255, .92); font-size: .98rem; line-height: 1.5; }
.spec dd:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------- certifikáty */

.cert {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cert-thumb {
  display: block;
  position: relative;
  width: 100%;
  border: 0;
  padding: 0;
  background: #eceae5;
  cursor: zoom-in;
  aspect-ratio: 1 / 1.15;
  overflow: hidden;
}
.cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .35s ease;
}
.cert-thumb:hover img { transform: scale(1.035); }
.cert-thumb::after {
  content: 'Zvětšit';
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  background: rgba(28, 30, 34, .88);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .3rem .6rem;
  border-radius: 2px;
}

.cert-body { padding: 1.15rem 1.25rem 1.35rem; flex: 1; display: flex; flex-direction: column; }
.cert-body h3 { font-size: 1.06rem; margin-bottom: .3rem; }
.cert-sub { color: var(--ink-3); font-size: .95rem; margin-bottom: .8rem; }
.cert-meta {
  color: var(--muted);
  font-size: .855rem;
  line-height: 1.5;
  margin: 0 0 1rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
}
.cert-meta strong { color: var(--ink); font-weight: 600; }
.cert-links { margin-top: auto; display: flex; gap: 1rem; font-size: .92rem; font-weight: 600; }
.cert-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 1px;
}

/* ---------------------------------------------------- modal s certifikátem */

#certModal .modal-content { background: transparent; border: 0; }
#certModal .modal-body { padding: 0; text-align: center; }
#certModal img {
  max-width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
#certModal .modal-header { border: 0; padding: 0 0 .75rem; }
#certModal .modal-title { color: #fff; font-size: 1.05rem; }
#certModal .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
  opacity: .9;
}
#certModal .modal-footer { border: 0; justify-content: center; padding-top: .75rem; }
#certModal .modal-footer a { color: var(--yellow); font-weight: 600; }

/* ----------------------------------------------------------------- kontakt */

.person { height: 100%; border: 1px solid var(--line); border-radius: 4px; padding: 1.25rem 1.3rem; background: #fff; }
.person h3 { font-size: 1.06rem; margin-bottom: .15rem; }
.person .role { color: var(--muted); font-size: .9rem; margin-bottom: .85rem; }
.person a { display: block; text-decoration: none; font-weight: 600; }
.person a + a { margin-top: .3rem; font-weight: 500; font-size: .95rem; word-break: break-all; }
.person a:hover { text-decoration: underline; }

.company { background: var(--ink); color: #fff; border-radius: 4px; padding: clamp(1.75rem, 4vw, 2.5rem); }
.company h3 {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 1.1rem;
}
.company address { font-style: normal; line-height: 1.6; }
.company a { color: #fff; }
.company .maplink {
  display: inline-block;
  color: var(--yellow);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid rgba(245, 179, 0, .45);
}
.company dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.25rem; }
.company dt { color: rgba(255, 255, 255, .55); font-size: .93rem; font-weight: 400; }
.company dd { margin: 0; font-size: .96rem; }
.company .note { color: rgba(255, 255, 255, .5); font-size: .86rem; line-height: 1.5; }

/* ----------------------------------------------------------------- patička */

.site-foot { background: var(--ink-2); color: rgba(255, 255, 255, .62); padding: 2rem 0; font-size: .92rem; }
.site-foot img { height: 26px; width: auto; opacity: .85; }
.site-foot a { color: rgba(255, 255, 255, .78); }

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