/* AZizostav – redesign 2026. Barvy z loga: červená #c6181a, černá #0d0d0d, bílá. */
:root {
  --red: #c6181a;
  --red-dark: #9e1214;
  --red-soft: #fbe9e9;
  --black: #0d0d0d;
  --ink: #1d1d1f;
  --muted: #5f6368;
  --line: #e4e4e7;
  --bg: #ffffff;
  --bg-alt: #f5f5f6;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 13, 13, .08);
  --max: 1180px;
  --header-h: 72px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--black); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--black); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- hlavička ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand img { width: 180px; height: 36px; }
.brand-tagline { font-size: .78rem; color: var(--muted); font-style: italic; line-height: 1.2; max-width: 190px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 10px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--bg-alt); color: var(--black); }
.nav:not(.spy) a[aria-current="page"], .nav a.is-active { color: var(--red); }
.nav .nav-cta.is-active { background: var(--red-dark); color: #fff; }
.nav .nav-cta { background: var(--red); color: #fff; margin-left: 6px; }
.nav .nav-cta:hover { background: var(--red-dark); color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--black); margin: auto; position: relative; transition: transform .2s, background .2s; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .brand-tagline { display: none; }
  .nav-toggle { display: block; }
  .nav { position: absolute; inset: var(--header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .nav a { padding: 14px 12px; border-radius: 10px; font-size: 1.05rem; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 380px) { .brand img { width: 150px; height: 30px; } }

/* ---------- tlačítka ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--black); }
.btn-dark { border-color: var(--black); color: var(--black); }
.btn-dark:hover { background: var(--black); color: #fff; }

/* ---------- úvod ---------- */
.hero { position: relative; color: #fff; background: var(--black); overflow: hidden; }
.hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(13, 13, 13, .92) 0%, rgba(13, 13, 13, .72) 45%, rgba(13, 13, 13, .2) 100%); }
.hero .container { position: relative; z-index: 2; padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 10vw, 120px); }
.hero-motto { display: inline-flex; align-items: center; gap: 10px; font-style: italic; font-size: .95rem; letter-spacing: .02em;
  color: #fff; background: rgba(198, 24, 26, .9); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.6vw, 4rem); max-width: 14ch; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--red); background: #fff; padding: 0 .18em; border-radius: 6px; }
.hero p.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 46ch; color: rgba(255, 255, 255, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .2); }
.hero-facts div { min-width: 120px; }
.hero-facts strong { display: block; font-size: 1.8rem; color: #fff; line-height: 1.1; }
.hero-facts span { font-size: .9rem; color: rgba(255, 255, 255, .75); }

/* menší úvod na podstránkách */
.page-hero { background: var(--black); color: #fff; padding: clamp(48px, 8vw, 90px) 0 clamp(40px, 6vw, 70px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  border: 40px solid var(--red); opacity: .9; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); position: relative; z-index: 1; }
.page-hero p { color: rgba(255, 255, 255, .82); max-width: 60ch; position: relative; z-index: 1; }
.crumbs { font-size: .9rem; margin-bottom: 14px; position: relative; z-index: 1; }
.crumbs a { color: rgba(255, 255, 255, .75); }

/* ---------- sekce ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 3px; background: var(--red); vertical-align: middle; margin-right: 10px; border-radius: 2px; }

.services { display: grid; grid-template-columns: 1fr; gap: 20px; }
/* 5 karet: tablet 3 + 2 uprostred, velka obrazovka 5 vedle sebe */
@media (min-width: 760px) {
  .services { grid-template-columns: repeat(6, 1fr); }
  .services > .service { grid-column: span 2; }
  .services > .service:nth-child(4) { grid-column: 2 / span 2; }
}
@media (min-width: 1200px) {
  .services { grid-template-columns: repeat(5, 1fr); }
  .services > .service, .services > .service:nth-child(4) { grid-column: auto; }
}
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: transform .2s, box-shadow .2s, border-color .2s; }
a.service, a.service:hover { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.service:hover, a.service:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: inherit; }
.service-more { align-self: flex-start; margin-top: auto; padding-top: 16px; color: var(--red); font-weight: 600; font-size: .95rem;
  text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
a.service:hover .service-more { color: var(--red-dark); }
.service .icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); margin-bottom: 18px; }
.service .icon svg { width: 28px; height: 28px; }
.service p { color: var(--muted); margin: 0; font-size: .97rem; }

.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-media .badge { position: absolute; left: -16px; bottom: -16px; background: var(--red); color: #fff; border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow); }
.about-media .badge strong { display: block; font-size: 2rem; line-height: 1; }
.about-media .badge span { font-size: .85rem; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checklist li { padding-left: 32px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .25em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } .about-media { order: -1; max-width: 520px; } .about-media .badge { left: 12px; bottom: 12px; } }

/* loga partnerů a materiálů */
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.logos a, .logos span { display: inline-flex; align-items: center; justify-content: center; height: 64px; min-width: 120px; padding: 10px 18px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; }
.logos img { max-height: 40px; width: auto; }
.logos a { transition: border-color .2s, box-shadow .2s; }
.logos a:hover { border-color: var(--red); box-shadow: var(--shadow); }

/* kategorie projektů (úvodní stránka) */
.categories { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.category-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; color: #fff; text-decoration: none; background: var(--black); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; opacity: .85; }
.category-card:hover img { transform: scale(1.06); opacity: .65; }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(13, 13, 13, .85)); }
.category-body { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; }
.category-body strong { display: block; font-size: 1.2rem; }
.category-body strong::after { content: "\00a0→"; color: var(--red); }
.category-body span { font-size: .9rem; color: rgba(255, 255, 255, .8); }
.center-cta { text-align: center; margin-top: 36px; }
@media (max-width: 560px) {
  .categories { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .category-body { left: 12px; right: 12px; bottom: 10px; }
  .category-body strong { font-size: .98rem; line-height: 1.25; }
  .category-body span { font-size: .8rem; }
}

/* galerie (projekty.html) */
.gallery-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.gallery-nav a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.gallery-nav a:hover { border-color: var(--red); color: var(--red); }
.gallery-block { margin-bottom: 56px; }
.gallery-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.gallery-head h3 { margin: 0; font-size: 1.5rem; }
.gallery-head p { margin: 0; color: var(--muted); flex: 1 1 320px; }
.gallery-head .count { font-size: .85rem; font-weight: 700; color: var(--red); }
.gallery-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gallery-grid a { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); position: relative; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid a::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px transparent; border-radius: 10px; transition: box-shadow .2s; }
.gallery-grid a:hover::after { box-shadow: inset 0 0 0 3px var(--red); }
@media (max-width: 520px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; } }

/* vybrané projekty */
.projects-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.projects-list li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 12px; padding: 18px 20px; }
.projects-list .when { font-size: .85rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .04em; }
.projects-list h4 { margin: 4px 0 6px; font-size: 1.08rem; color: var(--black); }
.projects-list p { margin: 0; color: var(--muted); font-size: .95rem; }
.projects-list .partner { display: inline-block; margin-top: 10px; font-size: .82rem; font-weight: 700; background: var(--bg-alt); border-radius: 999px; padding: 3px 10px; color: var(--ink); }

/* hutné materiály */
.materials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.materials-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.materials-grid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.callout { background: var(--black); color: #fff; border-radius: var(--radius); padding: 28px; }
.callout h3 { color: #fff; }
.callout p { color: rgba(255, 255, 255, .8); }

/* ---------- kontakt ---------- */
.contact { background: var(--black); color: #fff; }
.contact h2, .contact h3 { color: #fff; }
.contact .eyebrow { color: #ff6b6d; }
.contact .eyebrow::before { background: #ff6b6d; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 8px; }
.contact-card { background: #1a1a1b; border: 1px solid #2a2a2c; border-radius: var(--radius); padding: 24px; }
.contact-card .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .55); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.contact-card .label svg { width: 18px; height: 18px; color: #ff6b6d; }
.contact-card .value { font-size: 1.15rem; font-weight: 700; color: #fff; text-decoration: none; word-break: break-word; }
.contact-card a.value:hover { color: #ff8a8c; }
.contact-card small { display: block; color: rgba(255, 255, 255, .65); margin-top: 6px; font-size: .9rem; line-height: 1.5; }
.contact-card .btn { margin-top: 14px; }
.contact .btn-ghost { border-color: rgba(255, 255, 255, .35); }

/* ---------- patička ---------- */
.site-footer { background: #070707; color: rgba(255, 255, 255, .65); font-size: .9rem; padding: 28px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 130px; height: 26px; background: #fff; border-radius: 6px; padding: 4px 6px; box-sizing: content-box; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #1a1a1b; color: #fff; }
.social a:hover { background: var(--red); color: #fff; }
.social svg { width: 18px; height: 18px; }

/* ---------- prohlížeč fotek ---------- */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(8, 8, 8, .96); color: #fff; }
.lightbox::backdrop { background: rgba(8, 8, 8, .96); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: .95rem; color: rgba(255, 255, 255, .8); }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 64px; position: relative; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-btn { background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--red); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-caption { text-align: center; padding: 10px 16px 18px; color: rgba(255, 255, 255, .75); font-size: .95rem; }
@media (max-width: 640px) { .lb-stage { padding: 0 6px; } .lb-prev, .lb-next { background: rgba(13, 13, 13, .55); width: 42px; height: 42px; } .lb-prev { left: 10px; } .lb-next { right: 10px; } }

/* chybové stránky */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.error-page .code { font-size: clamp(5rem, 18vw, 9rem); font-weight: 900; line-height: 1; color: var(--red); letter-spacing: -.04em; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* lišta se souhlasem s cookies – obě volby stejně výrazné (ÚOOÚ / EDPB), obsah webu neblokuje */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 3px solid var(--red);
  box-shadow: 0 -10px 30px rgba(13, 13, 13, .12); padding: 18px 0; }
.consent[hidden] { display: none; }
.consent-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.consent-text { flex: 1 1 520px; }
.consent-text h2 { font-size: 1.1rem; margin: 0 0 4px; }
.consent-text p { margin: 0; font-size: .93rem; color: var(--ink); }
.consent-text .consent-state:empty { display: none; }
.consent-text .consent-state { margin-top: 6px; font-weight: 600; }
.consent-actions { display: flex; gap: 12px; flex: 0 0 auto; }
.consent-btn { background: var(--black); color: #fff; border: 0; cursor: pointer; font: inherit; font-weight: 700; min-width: 140px; justify-content: center; }
.consent-btn:hover { background: var(--red); color: #fff; }
html.consent-open body { padding-bottom: 220px; }
@media (max-width: 560px) {
  .consent-actions { width: 100%; }
  .consent-btn { flex: 1; min-width: 0; }
  html.consent-open body { padding-bottom: 300px; }
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: rgba(255, 255, 255, .85); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: #fff; }
.prose { max-width: 75ch; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); }
.table-wrap { overflow-x: auto; }
.prose .muted { color: var(--muted); font-size: .9rem; margin-top: 2em; }
