/* ---------- písmo leží na webu (fonts/), bez dotazů na Google ---------- */
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/open-sans-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/open-sans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --blue: #1e73be;        /* hlavička, štítek Galerie */
  --steel: #336699;       /* linky pod nadpisy, panel Další služby */
  --yellow: #f4c23d;      /* ikony, patička, tlačítka */
  --ink: #222;
  --text: #5f5f5f;
  --bg: #f1f1f1;
  --sans: Arial, Helvetica, "Liberation Sans", sans-serif;
  --hero: "Open Sans", Arial, Helvetica, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 400 16px/1.7 var(--sans); color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
h2, h3 { color: var(--ink); line-height: 1.2; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

.site { max-width: 1240px; margin: 0 auto; background: var(--bg); }

/* ---------- hlavička ---------- */
.header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 14px 24px; background: var(--blue); color: #fff; }
.logo img { width: 130px; height: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; font-weight: 700; }
.nav a, .header__tel { text-decoration: none; }
.nav a { padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--yellow); }
.header__tel { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 4px; background: var(--yellow); color: var(--ink); font-weight: 700; white-space: nowrap; }
.header__tel:hover { background: #ffd35c; }

/* ---------- úvodní snímky ---------- */
.hero { position: relative; height: clamp(440px, 62vw, 720px); overflow: hidden; background: #0d1016; color: #fff; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after { content: ""; position: absolute; inset: 0; background: rgba(8, 12, 20, .55); }
.hero__text { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px 24px 120px; text-align: center; font-family: var(--hero); }
.hero h1, .hero__small { font: 600 clamp(16px, 1.8vw, 21px)/1.3 var(--hero); color: #fff; }
.hero__big { font-weight: 700; font-size: clamp(26px, 4.2vw, 46px); line-height: 1.2; max-width: 20ch; text-wrap: balance; }
.hero__sub { font-size: clamp(16px, 1.7vw, 20px); }
.hero__cta { position: absolute; z-index: 2; left: 0; right: 0; bottom: 64px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 0 16px; }
.hero__dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; gap: 10px; }
.hero__dots button { width: 12px; height: 12px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: transparent; cursor: pointer; }
.hero__dots button.is-active { background: #fff; }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 4px; font: 700 16px/1.2 var(--sans); text-decoration: none; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #ffd35c; }
.btn--ghost { border: 2px solid #fff; color: #fff; padding: 11px 20px; }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }

/* ---------- nadpis s linkou ---------- */
.h-line { font-size: clamp(28px, 3.4vw, 40px); padding-bottom: 14px; margin-bottom: 22px; background: linear-gradient(var(--steel), var(--steel)) left bottom / 78px 2px no-repeat; }
.h-line--light { color: #fff; }
.h-line--white { color: #fff; background-image: linear-gradient(#fff, #fff); }

/* ---------- o nás ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; }
.about__text { padding: 60px 24px 40px; display: flex; flex-direction: column; gap: 16px; }
.about__text .h-line { margin-bottom: 6px; }
.about__sign { font-weight: 700; color: #444; margin-top: 12px; }
.about__media { position: relative; align-self: start; }
.about__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.about__note { position: absolute; left: 14px; right: 14px; bottom: 30px; padding: 18px; background: rgba(51, 102, 153, .93); color: #fff; font-weight: 700; line-height: 1.35; font-size: 17px; }

/* ---------- karty ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 16px 24px 70px; }
.card { position: relative; padding: 30px 28px 34px; background: #fff; border: 1px solid #e3e3e3; border-bottom: 3px solid var(--steel); border-radius: 4px 4px 8px 8px; text-align: center; font-size: 15px; }
.card h3 { font-size: 20px; font-weight: 400; margin-bottom: 12px; }
.card__num { position: absolute; left: 26px; top: 18px; font: 700 34px/1 var(--sans); color: #e8e8ee; }
.card__ico { width: 38px; height: 38px; margin: 0 auto 18px; display: block; color: var(--yellow); }
.card--left { text-align: left; }
.card--left h3 { font-weight: 700; }
.card--left a { color: var(--steel); font-weight: 700; }

/* ---------- služby ---------- */
.services { position: relative; display: grid; grid-template-columns: 2fr 1fr; background: #17150f url(../img/dilna-pozadi.webp) center / cover no-repeat; color: #fff; padding-bottom: 80px; }
.services__main { padding: 60px 24px 0; }
.services__img { width: 300px; margin-bottom: 36px; }
.checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 20px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.checks .ico { color: var(--yellow); margin-top: 2px; }
.checks a { text-decoration: none; }
.checks a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.more { align-self: start; margin-top: 84px; background: rgba(0, 0, 0, .55); }
.more .h-line { padding: 40px 16px 50px; margin: 0; background-color: var(--steel); background-position: 16px calc(100% - 32px); background-size: 36px 2px; }
.more ul { display: flex; flex-direction: column; gap: 15px; padding: 34px 16px 16px; }
.more li { display: flex; align-items: center; gap: 18px; padding: 15px 18px; border-radius: 8px; background: #000; }
.more .ico { width: 26px; height: 26px; }

/* ---------- podrobně ---------- */
.detail { padding: 70px 24px; }
.detail__lead { max-width: 70ch; margin-bottom: 30px; }
.detail__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.detail .card { scroll-margin-top: 90px; }
.detail .card:target { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.callbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: 32px; padding: 22px 26px; background: var(--steel); color: #fff; }
.callbar p { flex: 1 1 320px; }

/* ---------- galerie ---------- */
.gallery { padding: 0 24px 80px; }
.tag { width: max-content; margin: 0 auto 60px; padding: 16px 20px 26px; background: var(--blue); color: #fff; font-size: clamp(28px, 3.4vw, 40px); }
.gallery__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; }
.shot { padding: 0; border: 0; background: #ddd; cursor: zoom-in; overflow: hidden; }
.shot img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .35s ease; }
.shot:hover img { transform: scale(1.06); }

/* ---------- kontakty ---------- */
.contacts { padding: 50px 24px 40px; background: #0b0b0b url(../img/kontakty-pozadi.webp) center / cover no-repeat; color: var(--yellow); }
.contacts .h-line { margin-bottom: 18px; }
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.contacts__map iframe { display: block; width: 100%; aspect-ratio: 5 / 4; border: 0; background: #e8e8e8; }
.contacts__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 16px; }
.contacts__open { color: #fff; font-weight: 700; }
.contacts__list { font-style: normal; display: flex; flex-direction: column; gap: 14px; font-size: 18px; }
.contacts__list p { display: flex; align-items: center; gap: 14px; }
.contacts__list .ico { width: 26px; height: 26px; }
.contacts__list a { text-decoration: none; }
.contacts__list a:hover { text-decoration: underline; }

/* ---------- patička ---------- */
.footer { padding: 16px 30px; background: var(--yellow); color: #3a2f08; }

/* ---------- plovoucí tlačítko volání (jen telefon) ---------- */
.callfab { display: none; position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); color: var(--ink); align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.callfab .ico { width: 26px; height: 26px; }

/* ---------- zvětšení fotografie ---------- */
.lb { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(0, 0, 0, .92); color: #fff; }
.lb::backdrop { background: rgba(0, 0, 0, .8); }
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb img { max-width: 92vw; max-height: 84dvh; object-fit: contain; }
.lb p { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 14px; padding: 0 16px; }
.lb__btn { position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font: 400 34px/1 var(--sans); cursor: pointer; }
.lb__btn:hover { background: rgba(255, 255, 255, .28); }
.lb__close { top: 14px; right: 14px; }
.lb__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- užší obrazovky ---------- */
@media (max-width: 980px) {
  .services { grid-template-columns: 1fr; padding-bottom: 50px; }
  .more { margin: 0 24px; }
  .services__main { padding-bottom: 40px; }
  .detail__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  .header { padding: 10px 16px; gap: 12px; }
  .logo img { width: 104px; }
  .nav { display: none; }
  .header__tel { margin-left: auto; padding: 9px 13px; }
  .about, .contacts__grid { grid-template-columns: 1fr; }
  .about__text { padding: 40px 16px 30px; }
  .values { grid-template-columns: 1fr; gap: 18px; padding: 24px 16px 50px; }
  .services__main { padding: 44px 16px 34px; }
  .more { margin: 0 16px; }
  .checks { grid-template-columns: 1fr 1fr; }
  .detail { padding: 50px 16px; }
  .detail__grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery { padding: 0 16px 56px; }
  .tag { margin-bottom: 36px; }
  .contacts { padding: 40px 16px 32px; }
  .contacts__list { font-size: 17px; }
  .footer { padding: 16px 16px 84px; }
  .hero__text { padding-bottom: 150px; }
  .hero__cta { bottom: 56px; }
  .callfab { display: flex; }
}
@media (max-width: 420px) {
  .checks { grid-template-columns: 1fr; gap: 16px; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .hero__text { padding-bottom: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide, .shot img { transition: none; }
}
