/* CZECH-FACE s.r.o. — hlavní styl webu */
:root {
  --brand: #00a99a;
  --brand-dark: #00877b;
  --brand-soft: #e6f6f4;
  --ink: #1d2327;
  --ink-2: #4a545b;
  --muted: #7b868d;
  --line: #e3e8ea;
  --bg: #ffffff;
  --bg-soft: #f4f7f8;
  --dark: #15201f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
  --shadow-hover: 0 2px 4px rgba(16,24,40,.06), 0 16px 40px rgba(16,24,40,.10);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--brand); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Hlavička ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--ink-2); font-weight: 500; font-size: 15px;
  padding: 10px 14px; border-radius: 8px; transition: background .2s, color .2s;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a.active { color: var(--brand-dark); }
.nav .btn { margin-left: 10px; }
.menu-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 8px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; transition: .25s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px; line-height: 1;
  transition: background .2s, transform .2s, box-shadow .2s, color .2s;
  border: 1.5px solid transparent;
}
.nav a.btn, .btn-primary { background: var(--brand); color: #fff; }
.nav a.btn:hover, .btn-primary:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-dark); }
.btn-white { background: #fff; color: var(--brand-dark); }
.btn-white:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Úvodní hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #f4fbfa 0%, #fff 100%);
  padding: 84px 0 72px;
}
.hero::before {
  content: ""; position: absolute; right: -180px; top: -180px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,169,154,.14), rgba(0,169,154,0) 70%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-dark); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.1; letter-spacing: -.025em; font-weight: 800; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lead { font-size: 19px; color: var(--ink-2); max-width: 540px; margin-bottom: 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.10)); }

/* ---------- Pruh s čísly ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 28px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.stat span { font-size: 14px; color: var(--muted); }

/* ---------- Sekce ---------- */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2, .page-title h1 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.section-head p { color: var(--ink-2); max-width: 560px; margin-top: 10px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 10px; display: block; }

/* ---------- Karty produktů ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  color: var(--ink);
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: transparent; color: var(--ink); }
.card-media { aspect-ratio: 4 / 3; background: var(--bg-soft); display: grid; place-items: center; padding: 28px; }
.card-media img { max-height: 100%; width: auto; object-fit: contain; transition: transform .35s; }
a.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.card-body p { font-size: 15px; color: var(--ink-2); }
.card-link { margin-top: auto; padding-top: 12px; font-weight: 600; font-size: 14px; color: var(--brand-dark); display: inline-flex; align-items: center; gap: 6px; }
a.card:hover .card-link { gap: 10px; }
.card-link, a.card .card-link { transition: gap .2s; }

/* ---------- Proč my ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.feature p { font-size: 15px; color: var(--ink-2); }

/* ---------- Výzva k akci ---------- */
.cta {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  color: #fff; border-radius: 20px; padding: 56px;
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%;
  border: 50px solid rgba(255,255,255,.08);
}
.cta h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; margin-bottom: 8px; }
.cta p { opacity: .9; max-width: 560px; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Podstránky ---------- */
.page-title { background: linear-gradient(180deg, #f4fbfa 0%, #fff 100%); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand-dark); }
.page-title p.lead { font-size: 18px; color: var(--ink-2); margin-top: 12px; max-width: 720px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }

section.page { padding: 56px 0 88px; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.figure .media { background: var(--bg-soft); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 28px; }
.figure .media img { max-height: 100%; width: auto; object-fit: contain; }
.figure figcaption { padding: 18px 22px; font-weight: 600; font-size: 16px; border-top: 1px solid var(--line); }
.figure figcaption small { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }

.prose p { color: var(--ink-2); font-size: 17px; margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }

.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; color: var(--ink-2); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300877b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.panel h2, .panel h3 { font-size: 20px; font-weight: 700; margin-bottom: 18px; letter-spacing: -.01em; }

.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }

/* Tabulka INKA */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
th, td { padding: 13px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg-soft); font-weight: 600; color: var(--ink-2); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfc; }
td:first-child { font-weight: 600; }

/* Kontakty */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-card .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-dark); display: grid; place-items: center; margin-bottom: 16px; }
.contact-card .icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.contact-card p { color: var(--ink); }
.contact-card a { font-weight: 600; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 380px; background: var(--bg-soft); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; font-size: 15px; }
.dl dt { color: var(--muted); }
.dl dd { color: var(--ink); font-weight: 500; }

/* ---------- Patička ---------- */
.footer { background: var(--dark); color: #b8c4c3; padding: 64px 0 28px; font-size: 15px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer img { height: 40px; width: auto; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a { color: #b8c4c3; }
.footer a:hover { color: #fff; }
.footer .bottom { padding-top: 24px; font-size: 14px; color: #7f8c8b; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Animace při scrollu ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responzivita ---------- */
@media (max-width: 980px) {
  .hero .container, .split { grid-template-columns: 1fr; }
  .hero { padding: 56px 0; }
  .hero-visual { max-width: 560px; }
  .grid-3, .features, .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .header .container { height: 64px; }
  .logo img { height: 36px; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    display: none;
  }
  .menu-open .nav { display: flex; }
  .nav a { padding: 14px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin: 12px 0 0; justify-content: center; border-bottom: 0; border-radius: 10px; }
  section { padding: 64px 0; }
  .grid-3, .grid-2, .features, .gallery, .contact-cards { grid-template-columns: 1fr; }
  .stat { padding: 20px 0; }
  .stat:nth-child(even) { padding-left: 16px; }
  .cta { padding: 36px 24px; }
  .footer .cols { grid-template-columns: 1fr; gap: 28px; }
  .panel { padding: 24px; }
}

/* Opravy: ikonky v odkazech, bílé pozadí fotek splyne s podkladem */
.card-link svg { width: 16px; height: 16px; flex: none; }
.hero-visual img, .card-media img, .figure .media img, .panel img { mix-blend-mode: multiply; }
.hero-visual img { filter: none; }

/* Certifikát */
#certifikace { scroll-margin-top: 90px; }
.cert { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.cert-thumb { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.cert-thumb:hover { transform: translateY(-4px) rotate(-.5deg); box-shadow: var(--shadow-hover); }
.cert-thumb img { border-radius: 4px; }
.cert h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 12px; }
.cert-lead { color: var(--ink-2); font-size: 17px; margin-bottom: 22px; max-width: 620px; }
.cert .dl { margin-bottom: 26px; }
.cert .actions { display: flex; gap: 12px; flex-wrap: wrap; }
a.stat { color: inherit; transition: background .2s; }
a.stat:hover { background: var(--bg-soft); color: inherit; }
a.stat span { color: var(--brand-dark); }
.feature p a { font-weight: 600; white-space: nowrap; }

/* Dvě mapy */
.maps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.map-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.map-card .map { border: 0; border-radius: 0; min-height: 320px; }
.map-card .map iframe { min-height: 320px; }
.map-info { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.map-info h3 { font-size: 17px; font-weight: 700; }
.map-info p { color: var(--ink-2); font-size: 15px; }

@media (max-width: 860px) {
  .cert { grid-template-columns: 1fr; gap: 28px; }
  .cert-thumb { max-width: 280px; }
  .maps { grid-template-columns: 1fr; }
}

/* Politika kvality */
.policy { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.policy-main { min-width: 0; }
.policy-side { display: grid; gap: 20px; position: sticky; top: 100px; }
.policy-side .panel { padding: 26px; }
.policy-side h3 { margin-bottom: 8px; font-size: 18px; }
.side-text { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; }
.goal { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: 10px; padding: 22px 26px; margin: 32px 0; }
.goal p { font-size: 18px; font-weight: 600; color: var(--ink); }
.policy-h { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; margin: 8px 0 22px; }
.policy-list { list-style: none; display: grid; gap: 14px; margin-bottom: 32px; }
.policy-list li { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.policy-list .num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.policy-list p { color: var(--ink-2); }
.signature { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--ink-2); }
.signature p:last-child { text-align: right; }
@media (max-width: 980px) {
  .policy { grid-template-columns: 1fr; }
  .policy-side { position: static; }
}
@media (max-width: 760px) {
  .nav a { font-size: 16px; }
}
