/* =========================================================
   AB STAV PLOTY — styl
   ========================================================= */

:root {
  --copper: #a66e4a;
  --copper-dark: #8e5c3e;
  --copper-light: #d6a27c;
  --ink: #26231f;
  --text: #5f5852;
  --muted: #8a8079;
  --line: #e6ddd4;
  --bg: #ffffff;
  --bg-alt: #f4f1ed;
  --bg-cool: #eef0f1;
  --dark: #171a18;

  --content: 1320px;
  --radius: 10px;
  --header-h: 88px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 10px 30px rgba(62, 44, 27, .08);
  --shadow-lg: 0 22px 50px rgba(62, 44, 27, .15);

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; margin: 0; color: var(--ink); }
svg { flex-shrink: 0; }

:focus-visible { outline: 3px solid var(--copper-light); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 500;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--copper);
}

.section { padding: 110px max(24px, calc((100% - var(--content)) / 2)); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(36px, 4.2vw, 56px); }
.section-head > p:not(.eyebrow) { margin: 14px 0 0; font-size: 18px; color: var(--text); }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s;
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--copper); color: #fff; box-shadow: 0 10px 24px rgba(166, 110, 74, .28); }
.btn-primary:hover { background: var(--copper-dark); box-shadow: 0 14px 28px rgba(166, 110, 74, .36); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .14); }

/* ---------- Hlavička ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 max(24px, calc((100% - var(--content)) / 2));
  color: #fff;
  transition: background .35s, box-shadow .35s, color .35s, height .35s;
}
.header.scrolled {
  --header-h: 74px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(36, 23, 13, .08);
  color: var(--ink);
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand svg { width: 64px; height: 50px; color: var(--copper-light); transition: color .35s; }
.brand span { font-family: var(--font-head); font-size: 24px; font-weight: 800; line-height: .92; letter-spacing: .02em; }
.brand strong { display: block; font-size: 28px; color: var(--copper-light); transition: color .35s; }
.header.scrolled .brand svg, .header.scrolled .brand strong { color: var(--copper); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 14px; border-radius: 8px;
  font-size: 15px; font-weight: 500;
  transition: color .25s, background .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--copper-light); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header.scrolled .nav a::after { background: var(--copper); }
.nav .nav-phone { display: none; }

.phone {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border: 2px solid var(--copper-light); border-radius: var(--radius);
  font-weight: 600; white-space: nowrap;
  transition: background .3s, border-color .3s, color .3s;
}
.phone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.phone:hover { background: var(--copper); border-color: var(--copper); color: #fff; }
.header.scrolled .phone { border-color: var(--copper); }

.menu-toggle, .nav-overlay { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 720px; height: min(880px, 100svh);
  display: flex; align-items: center;
  background: var(--dark); color: #fff;
}
.slides, .slide, .hero-shade { position: absolute; inset: 0; }
.slide {
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.5s ease, transform 8s linear;
}
.slide.active { opacity: 1; transform: scale(1); }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 22, 18, .92) 0%, rgba(17, 22, 18, .74) 35%, rgba(17, 22, 18, .25) 70%, rgba(17, 22, 18, .1) 100%),
    linear-gradient(0deg, rgba(17, 22, 18, .5), transparent 40%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: calc(var(--content) + 48px);
  margin: 0 auto; padding: calc(var(--header-h) + 40px) 24px 90px;
}
.hero h1 { color: #fff; font-size: clamp(52px, 7vw, 104px); line-height: .95; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.hero-sub { margin: 14px 0 22px; font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 3.2vw, 46px); line-height: 1.1; color: var(--copper-light); }
.hero-desc { margin: 0 0 36px; font-size: clamp(17px, 1.6vw, 21px); color: rgba(255, 255, 255, .88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-benefits {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px 32px;
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  max-width: 900px;
}
.hero-benefits li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .92); }
.hero-benefits svg { width: 26px; height: 26px; fill: none; stroke: var(--copper-light); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.hero-content > * { animation: rise .9s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: .1s; }
.hero-content > :nth-child(3) { animation-delay: .2s; }
.hero-content > :nth-child(4) { animation-delay: .3s; }
.hero-content > :nth-child(5) { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.slider-controls {
  position: absolute; z-index: 5; bottom: 28px; right: max(24px, calc((100% - var(--content)) / 2));
  display: flex; align-items: center; gap: 14px;
}
.dots { display: flex; gap: 8px; }
.dot {
  width: 28px; height: 4px; padding: 0; border: 0; border-radius: 2px; cursor: pointer;
  background: rgba(255, 255, 255, .4); transition: background .3s, width .3s;
}
.dot.active { width: 44px; background: var(--copper-light); }
.slide-arrow {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0 0 3px;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 50%;
  background: rgba(0, 0, 0, .25); color: #fff; font-size: 24px; cursor: pointer;
  transition: background .3s, border-color .3s;
}
.slide-arrow:hover { background: var(--copper); border-color: var(--copper); }

/* ---------- Typy oplocení ---------- */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.type-card {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center;
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.type-card img { grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .8s var(--ease); }
.type-card > span:not(.type-img) { display: flex; flex-direction: column; gap: 2px; padding: 18px 0 20px 22px; }
.type-card strong { font-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 1.15; }
.type-card small { font-size: 13px; color: var(--muted); }
.type-card b {
  display: grid; place-items: center; width: 40px; height: 40px; margin-right: 20px;
  border-radius: 50%; background: var(--bg-alt); color: var(--copper); font-size: 18px;
  transition: background .3s, color .3s, transform .3s var(--ease);
}
.type-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #d8c6b6; }
.type-card:hover img { transform: scale(1.06); }
.type-card:hover b { background: var(--copper); color: #fff; transform: translateX(3px); }
.type-img { grid-column: 1 / -1; overflow: hidden; }

/* ---------- Realizace ---------- */
.projects { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 56px; align-items: start; background: var(--bg-cool); }
.projects-intro { position: sticky; top: 110px; }
.projects-intro h2, .contact-intro h2 { font-size: clamp(42px, 4.2vw, 60px); margin-bottom: 22px; }
.projects-intro h2 em, .contact-intro h2 em { font-style: normal; color: var(--copper); }
.projects-intro > p:not(.eyebrow) { color: var(--text); margin: 0 0 32px; }
.projects-intro .disclosure-note { margin: 22px 0 0; font-size: 12px; color: var(--muted); }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0;
  overflow: hidden; border: 0; border-radius: var(--radius); background: #2a2a2a;
  cursor: zoom-in; text-align: left; box-shadow: var(--shadow);
}
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project::after {
  content: ""; position: absolute; inset: 35% 0 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(7, 10, 12, .85));
}
.project:hover img { transform: scale(1.07); }
.project-overlay { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 18px; display: flex; flex-direction: column; gap: 4px; color: #fff; }
.project-title { font-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 1.1; }
.project-tag { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #f0d4bd; }
.zoom-mark {
  position: absolute; z-index: 3; top: 12px; right: 12px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255, 255, 255, .92); color: var(--copper-dark);
  opacity: 0; transform: scale(.85); transition: opacity .3s, transform .3s var(--ease);
}
.zoom-mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.project:hover .zoom-mark, .project:focus-visible .zoom-mark { opacity: 1; transform: none; }

/* ---------- Postup ---------- */
.process { background: var(--bg); }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: none; }
.steps::before { content: ""; position: absolute; top: 32px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--line), var(--copper-light), var(--line)); }
.steps li { position: relative; min-width: 0; }
.step-number {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 24px;
  border: 2px solid var(--copper); border-radius: 50%; background: #fff;
  font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--copper);
  transition: background .3s, color .3s;
}
.steps li:hover .step-number { background: var(--copper); color: #fff; }
.step-box {
  height: calc(100% - 88px); padding: 26px 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt);
  transition: transform .4s var(--ease), box-shadow .4s, background .4s;
}
.steps li:hover .step-box { transform: translateY(-5px); background: #fff; box-shadow: var(--shadow); }
.step-box h3 { font-size: 22px; margin-bottom: 12px; }
.step-box p { margin: 0; font-size: 15px; color: var(--text); }

/* ---------- O nás ---------- */
.about { display: grid; grid-template-columns: 45% 1fr; gap: 64px; align-items: center; background: var(--bg-alt); }
.about > img { width: 100%; max-height: 680px; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.about h2 { font-size: clamp(34px, 3.6vw, 50px); margin-bottom: 22px; }
.about h3 { font-size: 26px; margin: 32px 0 16px; }
.about p { color: var(--text); margin: 0 0 14px; }
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.service-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: 14px; font-weight: 500;
  transition: transform .3s var(--ease), border-color .3s;
}
.service-list li::before {
  content: ""; width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%;
  background: var(--copper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.service-list li:hover { transform: translateX(4px); border-color: var(--copper-light); }

/* ---------- Proč my ---------- */
.why { background: var(--bg); }
.why .section-head { margin-bottom: 44px; }
.why-icons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; max-width: 1100px; margin: 0 auto; }
.why-icons li { text-align: center; font-size: 14px; font-weight: 600; line-height: 1.35; color: #4a4038; }
.why-icons span {
  display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 14px;
  border: 1px solid #e0cdbd; border-radius: 50%; background: var(--bg-alt); color: var(--copper);
  transition: transform .45s var(--ease), background .3s, color .3s;
}
.why-icons svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.why-icons li:hover span { transform: translateY(-4px) rotate(-5deg); background: var(--copper); color: #fff; }

/* ---------- Kontakt ---------- */
.contact {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start;
  background: var(--bg-cool);
}
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07;
  background: url('../img/ai-3.webp') center / cover no-repeat;
}
.contact-intro { position: sticky; top: 110px; }
.contact-intro > p:not(.eyebrow) { color: var(--text); font-size: 18px; margin: 0 0 36px; }
.contact-call {
  display: inline-flex; align-items: center; gap: 18px;
  padding: 18px 26px 18px 18px; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
  font-family: var(--font-head); font-size: 32px; font-weight: 700; line-height: 1.1;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.contact-call small { display: block; font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-call-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--copper); color: #fff; }
.contact-call-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; }
.contact-call:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 36px 0 0; }
.contact-details div { border-top: 1px solid var(--line); padding-top: 10px; }
.contact-details dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-details dd { margin: 4px 0 0; font-weight: 600; }

.form { padding: 40px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 24px 60px rgba(60, 40, 21, .1); }
.form h2 { font-size: 32px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form label { display: block; margin-bottom: 16px; font-size: 13px; font-weight: 600; color: #4d433c; }
.form label > span { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 13px 14px;
  border: 1px solid #d9cec4; border-radius: 8px; background: #fcfbfa;
  font-size: 15px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input::placeholder, .form textarea::placeholder { color: #a59b93; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--copper); background: #fff; box-shadow: 0 0 0 4px rgba(166, 110, 74, .14); }
.form .invalid { border-color: #c0483b; background: #fff7f6; }
.file-field input { border-style: dashed; border-color: #c4a68e; cursor: pointer; }
.file-field input::file-selector-button {
  margin-right: 12px; padding: 7px 14px; border: 0; border-radius: 6px;
  background: var(--bg-alt); color: var(--ink); font-weight: 600; cursor: pointer;
}
.submit { width: 100%; margin-top: 6px; }
.form-note { margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.form-feedback:empty { display: none; }
.form-feedback { margin: 16px 0 0; padding: 14px 16px; border-radius: 8px; font-size: 14px; background: #fbf3ea; color: #6b4a33; }
.form-feedback.error { background: #fdeeec; color: #8f2f25; }
.form-feedback a { font-weight: 700; text-decoration: underline; }

/* ---------- Patička ---------- */
footer { padding: 48px max(24px, calc((100% - var(--content)) / 2)) 28px; background: var(--dark); color: rgba(255, 255, 255, .7); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.brand-small { color: #fff; }
.brand-small svg { width: 48px; height: 38px; color: var(--copper-light); }
.brand-small span { font-size: 19px; }
.brand-small strong { font-size: 22px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a:hover, .footer-phone:hover { color: var(--copper-light); }
.footer-phone { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--copper-light); }

/* ---------- Mobilní lišta ---------- */
.mobile-cta { display: none; }

/* ---------- Lightbox ---------- */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 60px 16px 24px; background: rgba(12, 11, 11, .92);
  animation: fade .25s ease;
}
@keyframes fade { from { opacity: 0; } }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: min(1200px, 84vw); max-height: 78vh; object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { margin-top: 14px; color: #fff; font-size: 15px; }
.lightbox-close, .lightbox-nav { border: 0; background: transparent; color: #fff; cursor: pointer; }
.lightbox-close { position: absolute; top: 10px; right: 20px; font-size: 44px; line-height: 1; }
.lightbox-nav { width: 52px; height: 52px; border-radius: 50%; font-size: 34px; background: rgba(255, 255, 255, .1); transition: background .2s; }
.lightbox-nav:hover { background: var(--copper); }

/* ---------- Scroll animace ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responzivita
   ========================================================= */
@media (max-width: 1200px) {
  .nav a { padding: 10px 10px; font-size: 14px; }
  .nav a::after { left: 10px; right: 10px; }
  .projects { grid-template-columns: 1fr; gap: 40px; }
  .projects-intro { position: static; max-width: 640px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .steps::before { display: none; }
  .why-icons { grid-template-columns: repeat(3, 1fr); row-gap: 32px; max-width: 700px; }
  .contact { gap: 48px; }
  .hero-benefits { grid-template-columns: repeat(2, auto); }
}

@media (max-width: 960px) {
  :root { --header-h: 74px; }
  body { padding-bottom: 64px; }
  .header.scrolled { --header-h: 66px; }
  .brand svg { width: 52px; height: 40px; }
  .brand span { font-size: 19px; }
  .brand strong { font-size: 23px; }
  .phone { display: none; }

  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto; padding: 0;
    border: 0; background: none; cursor: pointer; color: inherit; z-index: 105;
  }
  .menu-toggle span { width: 24px; height: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
  .menu-toggle[aria-expanded="true"] { color: var(--ink); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; top: 0; right: 0; z-index: 103;
    width: min(340px, 86vw); height: 100dvh;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 96px 20px 32px; background: #fff; color: var(--ink);
    box-shadow: -15px 0 45px rgba(0, 0, 0, .15);
    transform: translateX(105%); visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a { padding: 14px 16px; font-size: 17px; }
  .nav a::after { display: none; }
  .nav a.active, .nav a:hover { background: var(--bg-alt); color: var(--copper-dark); }
  .nav .nav-phone { display: block; margin-top: auto; text-align: center; background: var(--copper); color: #fff !important; font-weight: 600; }
  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 101;
    background: rgba(0, 0, 0, .45); opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .nav-overlay.open { opacity: 1; visibility: visible; }

  .section { padding-top: 76px; padding-bottom: 76px; }
  .type-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about, .contact { grid-template-columns: 1fr; }
  .about > img { aspect-ratio: 16 / 10; }
  .contact-intro { position: static; }

  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: 22px; padding-bottom: 22px; }
  .steps li:not(:last-child)::before { content: ""; position: absolute; left: 31px; top: 72px; bottom: 6px; width: 2px; background: var(--line); }
  .step-number { margin: 0; }
  .step-box { height: auto; }

  .mobile-cta {
    position: fixed; inset: auto 0 0; z-index: 90;
    display: grid; grid-template-columns: 1fr 1.3fr; height: 64px;
    box-shadow: 0 -5px 22px rgba(0, 0, 0, .12);
  }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; font-weight: 600; color: #fff; background: var(--ink); }
  .mobile-cta a:last-child { background: var(--copper); }
  .mobile-cta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  .lightbox-nav { position: absolute; bottom: 20px; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .lightbox img { max-width: 94vw; max-height: 68vh; }
}

@media (max-width: 560px) {
  .hero { min-height: 700px; height: auto; }
  .hero-content { padding-bottom: 80px; }
  .hero h1 { font-size: clamp(44px, 13vw, 58px); }
  .hero-desc br { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-benefits { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
  .hero-benefits li { font-size: 13px; }
  .slider-controls { right: auto; left: 24px; }
  .slide-arrow { display: none; }

  .type-grid, .projects-grid, .service-list, .form-grid { grid-template-columns: 1fr; }
  .why-icons { grid-template-columns: repeat(2, 1fr); }
  .form { padding: 24px 20px; }
  .contact-call { font-size: 26px; }
  .steps li { grid-template-columns: 52px 1fr; column-gap: 16px; }
  .step-number { width: 52px; height: 52px; font-size: 18px; }
  .steps li:not(:last-child)::before { left: 25px; top: 60px; }
  .step-box { padding: 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

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

/* =========================================================
   Podstránky (Ceník, Články, Kontakt)
   ========================================================= */
.text-link { display: inline-flex; gap: 8px; margin: 18px 0 0 4px; font-weight: 600; color: var(--copper-dark); }
.text-link:hover { color: var(--copper); }
.btn-ghost-dark { color: var(--ink); border-color: var(--line); background: #fff; }

/* Úvodní pás podstránky */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + 90px) max(24px, calc((100% - var(--content)) / 2)) 90px;
  background: var(--dark); color: #fff;
}
.page-hero::before, .page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.page-hero::before { background: var(--page-hero-img) center / cover no-repeat; transform: scale(1.04); }
.page-hero::after { background: linear-gradient(90deg, rgba(17, 22, 18, .94) 0%, rgba(17, 22, 18, .8) 45%, rgba(17, 22, 18, .45) 100%); }
.page-hero-inner { max-width: 780px; animation: rise .9s var(--ease) both; }
.page-hero h1 { color: #fff; font-size: clamp(44px, 5.6vw, 80px); line-height: .98; margin-bottom: 20px; }
.page-hero h1 em { font-style: normal; color: var(--copper-light); }
.page-hero .eyebrow { color: var(--copper-light); }
.page-lead { margin: 0; font-size: clamp(17px, 1.5vw, 20px); color: rgba(255, 255, 255, .86); }
.page-hero--small { padding-bottom: 64px; }
.page-hero--small h1 { font-size: clamp(36px, 4.4vw, 60px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.breadcrumbs a { color: rgba(255, 255, 255, .85); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.breadcrumbs a:hover { color: var(--copper-light); }

/* Výzva k poptávce */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  margin: 0 max(24px, calc((100% - var(--content)) / 2)) 110px; padding: 44px 48px;
  border-radius: 14px; background: var(--dark) url('../img/ai-1.webp') center / cover; background-blend-mode: soft-light;
  color: #fff; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; font-size: clamp(30px, 3vw, 42px); margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 620px; color: rgba(255, 255, 255, .8); }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Ceník ---------- */
.price-intro { padding-top: 70px; }
.price-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 56px; }
.price-badges li { padding: 20px 22px; border: 1px solid var(--line); border-left: 4px solid var(--copper); border-radius: var(--radius); background: var(--bg-alt); }
.price-badges strong { display: block; font-family: var(--font-head); font-size: 22px; line-height: 1.1; }
.price-badges span { font-size: 13px; color: var(--text); }

.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.price-card { display: grid; grid-template-columns: 200px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transition: box-shadow .4s, transform .4s var(--ease); }
.price-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.price-card img { width: 100%; height: 100%; object-fit: cover; }
.price-card-body { padding: 24px 26px 18px; }
.price-card h3 { font-size: 26px; margin-bottom: 6px; }
.price-card-body > p { margin: 0 0 12px; font-size: 13px; color: var(--muted); }

.price-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.price-table th, .price-table td { padding: 10px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table th { text-align: left; font-weight: 400; color: var(--text); padding-right: 16px; }
.price-table td { text-align: right; font-weight: 600; white-space: nowrap; color: var(--ink); }
.price-note { max-width: 860px; margin: 32px auto 0; text-align: center; font-size: 13px; color: var(--muted); }

.price-extra { background: var(--bg-alt); }
.price-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.price-mini { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.price-mini h3 { font-size: 22px; margin-bottom: 8px; }
.price-mini .price-table td { white-space: normal; min-width: 90px; }

.example { padding-bottom: 40px; }
.example-box {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center;
  padding: 48px; border-radius: 14px; background: var(--bg-cool);
}
.example-box h2 { font-size: clamp(34px, 3.4vw, 48px); margin-bottom: 16px; }
.example-box p:not(.eyebrow) { margin: 0; color: var(--text); }
.price-table--sum { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.price-table--sum th, .price-table--sum td { padding: 14px 22px; }
.price-table--sum .total th, .price-table--sum .total td { border-top: 2px solid var(--copper); font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--ink); }
.price-table--sum .total td { color: var(--copper); }

.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative; padding: 22px 48px 22px 0; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 1.2;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-alt); color: var(--copper); font-family: var(--font); font-size: 20px; font-weight: 500;
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--copper); color: #fff; }
.faq-item summary:hover { color: var(--copper-dark); }
.faq-item p { margin: 0 0 22px; color: var(--text); }

/* ---------- Články ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-grid--two { grid-template-columns: repeat(2, 1fr); max-width: 980px; margin: 0 auto; }
.article-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.article-card-img { position: relative; display: block; overflow: hidden; }
.article-card-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ease); }
.article-card:hover .article-card-img img { transform: scale(1.06); }
.article-tag { position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 6px; background: var(--copper); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.article-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.article-meta { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.article-card h2, .article-card h3 { font-size: 26px; line-height: 1.1; margin-bottom: 12px; }
.article-card h2 a:hover, .article-card h3 a:hover { color: var(--copper); }
.article-card-body > p:not(.article-meta) { margin: 0 0 20px; font-size: 15px; color: var(--text); }
.article-more { margin-top: auto; font-weight: 600; color: var(--copper-dark); }
.article-more span { display: inline-block; transition: transform .3s var(--ease); }
.article-more:hover span { transform: translateX(4px); }
.articles--more { background: var(--bg-alt); }

.article-section { padding-top: 64px; }
.prose { max-width: 760px; margin: 0 auto; font-size: 17px; line-height: 1.75; color: var(--text); }
.prose .article-hero-img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; margin: 0 0 36px; border-radius: var(--radius); box-shadow: var(--shadow); }
.prose h2 { font-size: clamp(28px, 3vw, 36px); margin: 44px 0 14px; }
.prose p { margin: 0 0 18px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { margin: 0 0 22px; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }
.prose a:not(.btn) { color: var(--copper-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose a:not(.btn):hover { color: var(--copper); }
.table-wrap { overflow-x: auto; margin: 0 0 22px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.prose thead th { background: var(--bg-alt); color: var(--ink); font-weight: 600; }
.article-cta {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 24px;
  margin-top: 48px; padding: 28px 30px; border-radius: 14px; background: var(--bg-alt); border-left: 4px solid var(--copper);
}
.article-cta strong { font-family: var(--font-head); font-size: 26px; line-height: 1.1; }
.article-cta span { grid-row: 2; font-size: 15px; }
.article-cta .btn { grid-row: 1 / 3; grid-column: 2; }

/* ---------- Kontakt ---------- */
.contact-page { padding-top: 70px; }
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.contact-card {
  display: flex; align-items: center; gap: 16px; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--copper-light); }
.contact-card-icon { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--copper); color: #fff; }
.contact-card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-card small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-card strong { display: block; font-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 1.15; word-break: break-word; }

.contact-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-box { padding: 34px 36px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-alt); }
.info-box h2 { display: flex; align-items: center; gap: 14px; font-size: 32px; margin-bottom: 14px; }
.info-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--copper); border: 1px solid #e0cdbd; }
.info-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-box > p { margin: 0 0 18px; color: var(--text); }
.area-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.area-list li { padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.area-list li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--copper); vertical-align: 1px; }
.info-box .info-note { margin: 0; font-size: 13px; color: var(--muted); }
.billing { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 0 0 22px; }
.billing div { border-top: 1px solid var(--line); padding-top: 10px; }
.billing dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.billing dd { margin: 4px 0 0; font-weight: 600; }
.billing a:hover, .contact-details a:hover { color: var(--copper); }
.contact-details small { font-weight: 400; color: var(--muted); }
.map-link { font-weight: 600; color: var(--copper-dark); }
.map-link:hover { color: var(--copper); }

/* ---------- Podstránky – responzivita ---------- */
@media (max-width: 1100px) and (min-width: 961px) {
  .phone { display: none; }
}
@media (max-width: 1200px) {
  .price-badges, .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
  .price-mini-grid { grid-template-columns: repeat(2, 1fr); }
  .example-box { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 960px) {
  .page-hero { padding-top: calc(var(--header-h) + 56px); padding-bottom: 64px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info-grid { grid-template-columns: 1fr; }
  .cta-band { margin-bottom: 76px; padding: 34px 28px; }
}
@media (max-width: 560px) {
  .price-badges, .contact-cards, .price-mini-grid, .article-grid, .article-grid--two, .billing { grid-template-columns: 1fr; }
  .price-card { grid-template-columns: 1fr; }
  .price-card img { aspect-ratio: 16 / 8; height: auto; }
  .price-card-body { padding: 20px; }
  .price-table td { white-space: normal; }
  .example-box { padding: 26px 20px; }
  .price-table--sum th, .price-table--sum td { padding: 12px 14px; }
  .info-box { padding: 26px 22px; }
  .info-box h2 { font-size: 26px; }
  .article-cta { grid-template-columns: 1fr; }
  .article-cta .btn { grid-row: auto; grid-column: auto; margin-top: 12px; }
  .cta-band-actions, .cta-band-actions .btn { width: 100%; }
}

/* =========================================================
   Struktura webu v2 – menu, zápatí, produktové stránky
   ========================================================= */

/* Menu s podnabídkou */
.nav { gap: 2px; }
.nav-item { position: relative; }
.nav .caret { width: 14px; height: 14px; margin-left: 3px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); }
.sub-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 120;
  display: grid; min-width: 230px; padding: 8px;
  border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-item:hover > .sub-menu, .nav-item:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { padding: 10px 14px; font-size: 14px; border-radius: 6px; }
.nav .sub-menu a::after { display: none; }
.nav .sub-menu a:hover, .nav .sub-menu a[aria-current="page"] { background: var(--bg-alt); color: var(--copper-dark); }
.nav a[aria-current="page"]::after, .nav > a.active::after, .nav-item > a.active::after { transform: scaleX(1); }

@media (max-width: 1240px) and (min-width: 1181px) {
  .phone { padding: 11px 14px; }
  .nav a { padding: 10px 9px; font-size: 14px; }
}
@media (max-width: 1180px) {
  .phone { display: none; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; margin-left: auto; padding: 0;
    border: 0; background: none; cursor: pointer; color: inherit; z-index: 105;
  }
  .menu-toggle span { width: 24px; height: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
  .menu-toggle[aria-expanded="true"] { color: var(--ink); }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    position: fixed; top: 0; right: 0; z-index: 103;
    width: min(360px, 88vw); height: 100dvh; overflow-y: auto;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 88px 20px 28px; background: #fff; color: var(--ink);
    box-shadow: -15px 0 45px rgba(0, 0, 0, .15);
    transform: translateX(105%); visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a { padding: 12px 16px; font-size: 17px; }
  .nav a::after { display: none; }
  .nav a.active, .nav a:hover, .nav a[aria-current="page"] { background: var(--bg-alt); color: var(--copper-dark); }
  .nav .caret { display: none; }
  .sub-menu { position: static; min-width: 0; padding: 0 0 6px 14px; margin-left: 16px; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: none; }
  .sub-menu::before { display: none; }
  .nav .sub-menu a { padding: 8px 12px; font-size: 15px; color: var(--text); }
  .nav .nav-phone { display: block; margin-top: auto; text-align: center; background: var(--copper); color: #fff !important; font-weight: 600; }
  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 101;
    background: rgba(0, 0, 0, .45); opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s;
  }
  .nav-overlay.open { opacity: 1; visibility: visible; }
}

/* Zápatí ve sloupcích */
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-col h2 { margin-bottom: 14px; color: #fff; font-size: 20px; }
.footer-col ul { display: grid; gap: 8px; }
.footer-col a:hover { color: var(--copper-light); }
.footer-col--brand p { margin: 18px 0 14px; max-width: 320px; }
.footer-contact small { display: block; font-size: 12px; color: rgba(255, 255, 255, .45); }
.footer-cta { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--copper-light); }

/* Úvod podstránky – tlačítka */
.page-hero .hero-actions { margin-top: 30px; }
.intro-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 18px 0 0; }
.intro-links .text-link { margin: 0; }
.section-head a, .split-text a { color: var(--copper-dark); text-decoration: underline; text-underline-offset: 3px; }
.service-list a:hover { color: var(--copper); }

/* Text + obrázek */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split--reverse > img { order: 2; }
.split-text h2 { font-size: clamp(34px, 3.6vw, 50px); margin-bottom: 20px; }
.split-text > p:not(.eyebrow) { margin: 0 0 14px; color: var(--text); }
.check-list { display: grid; gap: 10px; margin-top: 24px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.check-list li::before {
  content: ""; width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; border-radius: 50%;
  background: var(--copper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Varianty */
.variants { background: var(--bg-alt); }
.variant-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.variant-card { position: relative; padding: 28px 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.variant-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--copper-light); }
.variant-num { display: block; margin-bottom: 14px; font-family: var(--font-head); font-size: 34px; font-weight: 800; line-height: 1; color: var(--copper-light); }
.variant-card h3 { font-size: 24px; margin-bottom: 8px; }
.variant-card p { margin: 0; font-size: 15px; color: var(--text); }
.variant-card a { color: var(--copper-dark); text-decoration: underline; }

/* Cena na produktové stránce */
.price-snippet { display: grid; grid-template-columns: 380px 1fr; gap: 48px; padding: 48px; border-radius: 14px; background: var(--bg-cool); }
.price-snippet-head h2 { font-size: clamp(34px, 3.4vw, 48px); margin-bottom: 16px; }
.price-snippet-head > p:not(.eyebrow) { margin: 0 0 26px; color: var(--text); }
.price-snippet-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.price-snippet-links .text-link { margin: 0; }
.price-snippet-body { display: grid; gap: 20px; }
.price-snippet-col { padding: 24px 28px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.price-snippet-col h3 { font-size: 24px; margin-bottom: 4px; }
.price-snippet-col > p { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.price-card h3 a:hover { color: var(--copper); }
.price-card-more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--copper-dark); }
.price-card[id], .price-mini[id] { scroll-margin-top: 110px; }

/* Mini postup */
.process-mini { padding-top: 0; }
.mini-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: none; }
.mini-steps li { padding: 26px 24px; border-top: 3px solid var(--copper); border-radius: 0 0 var(--radius) var(--radius); background: var(--bg-alt); }
.mini-steps span { display: block; margin-bottom: 8px; font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--copper); }
.mini-steps strong { display: block; margin-bottom: 6px; font-family: var(--font-head); font-size: 22px; line-height: 1.15; }
.mini-steps p { margin: 0; font-size: 14px; color: var(--text); }
.related { background: var(--bg-alt); }
.faq + .related { padding-top: 110px; }

/* Reference */
.ref-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.ref-filter { padding: 11px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.ref-filter:hover { border-color: var(--copper); color: var(--copper-dark); }
.ref-filter.active { background: var(--copper); border-color: var(--copper); color: #fff; }
.ref-grid .project[hidden] { display: none; }
.references .disclosure-note { margin: 22px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

@media (max-width: 1200px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .variant-grid, .mini-steps { grid-template-columns: repeat(2, 1fr); }
  .price-snippet { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse > img { order: 0; }
  .price-snippet { padding: 32px 24px; }
}
@media (max-width: 560px) {
  .footer-cols, .variant-grid, .mini-steps { grid-template-columns: 1fr; }
  .price-snippet-col { padding: 20px; }
  .page-hero .hero-actions { flex-direction: column; }
  .page-hero .hero-actions .btn { width: 100%; }
}


/* =========================================================
   Světlý vzhled – pozadí jen bílá a světle hnědá
   ========================================================= */
:root { --bg-cool: var(--bg-alt); --sand: #f4f1ed; }

/* Hlavička vždy plná */
.header { color: var(--ink); }
.brand svg, .brand strong { color: var(--copper); }

/* Úvodní slider – světlý přechod přes fotku */
.hero { background: var(--bg-alt); color: var(--ink); }
.hero-shade {
  background: linear-gradient(90deg, rgba(244, 241, 237, .98) 0%, rgba(244, 241, 237, .92) 36%, rgba(244, 241, 237, .45) 62%, rgba(244, 241, 237, 0) 82%);
}
.hero h1 { color: var(--ink); text-shadow: none; }
.hero-sub { color: var(--copper); }
.hero-desc { color: var(--text); }
.hero-benefits { border-top-color: var(--line); }
.hero-benefits li { color: var(--ink); }
.hero-benefits svg { stroke: var(--copper); }
.dot { background: rgba(38, 35, 31, .22); }
.dot.active { background: var(--copper); }
.slide-arrow { background: #fff; border-color: var(--line); color: var(--ink); }
.slide-arrow:hover { color: #fff; }

/* Průhledné tlačítko na světlém pozadí */
.btn-ghost { color: var(--ink); border-color: var(--copper); background: transparent; backdrop-filter: none; }
.btn-ghost:hover { color: #fff; border-color: var(--copper); background: var(--copper); }

/* Sekce */
.projects, .contact, .example-box, .price-snippet { background: var(--bg-alt); }
.contact::before { display: none; }

/* Úvod podstránek – světle hnědý pás, fotka vpravo */
.page-hero { background: var(--bg-alt); color: var(--ink); }
.page-hero::before {
  left: auto; width: 52%; transform: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
.page-hero::after { display: none; }
.page-hero-inner { max-width: 640px; }
.page-hero h1 { color: var(--ink); }
.page-hero h1 em { color: var(--copper); }
.page-hero .eyebrow { color: var(--copper); }
.page-lead { color: var(--copper-dark); }
.breadcrumbs { color: var(--muted); }
.breadcrumbs a { color: var(--text); text-decoration-color: var(--line); }
.breadcrumbs a:hover { color: var(--copper); }

/* Výzva k poptávce */
.cta-band { background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink); box-shadow: none; }
.cta-band h2 { color: var(--ink); }
.cta-band p { color: var(--text); }

/* Zápatí */
footer { background: var(--bg-alt); color: var(--text); border-top: 1px solid var(--line); }
.footer-cols, .footer-inner { border-bottom-color: var(--line); }
.footer-col h2 { color: var(--ink); }
.footer-col a:hover, .footer-bottom a:hover, .footer-nav a:hover { color: var(--copper); }
.footer-contact small { color: var(--muted); }
.footer-cta { color: var(--copper-dark); }
.brand-small { color: var(--ink); }
.brand-small svg, .brand-small strong { color: var(--copper); }

/* Mobilní lišta */
.mobile-cta a:first-child:not(:only-child) { background: var(--bg-alt); color: var(--ink); }

@media (max-width: 960px) {
  .hero-shade { background: rgba(244, 241, 237, .88); }
  .page-hero::before { display: none; }
  .page-hero-inner { max-width: none; }
}

/* Benefity v úvodu bez dělicí čáry */
.hero-benefits { border-top: 0; padding-top: 0; margin-top: 44px; }

/* Facebook v zápatí */
.footer-fb { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.footer-fb svg { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: #1877f2; fill: #fff; transition: transform .3s var(--ease); }
.footer-fb:hover { color: var(--copper); }
.footer-fb:hover svg { transform: translateY(-2px); }
.footer-fb-widget { margin-top: 14px; max-width: 320px; overflow: hidden; border-radius: var(--radius); }
.footer-fb-widget iframe { display: block; width: 100%; max-width: 320px; height: 130px; border: 0; background: #fff; }

/* =========================================================
   Hlavička: tmavý overlay se světlým obsahem, po scrollu světlá lišta
   Zápatí: tmavé se světlým obsahem
   ========================================================= */
.header:not(.scrolled) {
  color: #fff;
  background: rgba(23, 26, 24, .9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: none;
}
.header:not(.scrolled) .brand svg, .header:not(.scrolled) .brand strong { color: var(--copper-light); }
.header:not(.scrolled) .phone { border-color: var(--copper-light); }
.header:not(.scrolled) .nav > a::after, .header:not(.scrolled) .nav-item > a::after { background: var(--copper-light); }
.header.scrolled { color: var(--ink); }
.header.scrolled .brand svg, .header.scrolled .brand strong { color: var(--copper); }
@media (max-width: 1180px) {
  .header:not(.scrolled) .nav { color: var(--ink); }
}

footer { background: var(--dark); color: rgba(255, 255, 255, .72); border-top: 0; }
.footer-cols, .footer-inner { border-bottom-color: rgba(255, 255, 255, .12); }
.footer-col h2 { color: #fff; }
.footer-col a:hover, .footer-bottom a:hover, .footer-nav a:hover { color: var(--copper-light); }
.footer-contact small { color: rgba(255, 255, 255, .45); }
.footer-cta { color: var(--copper-light); }
.brand-small { color: #fff; }
.brand-small svg, .brand-small strong { color: var(--copper-light); }
.footer-fb { color: #fff; margin-top: 4px; }
.footer-fb svg { background: var(--copper); }
.footer-fb:hover { color: var(--copper-light); }
.footer-fb:hover svg { background: var(--copper-dark); }

/* Kontaktujte nás – pozemek s kolíky v pozadí (průhlednost 15 %) */
.contact::before {
  display: block; content: ""; position: absolute; inset: 0; z-index: -1;
  background: url('../img/pozemek-koliky.svg') center bottom / cover no-repeat;
  opacity: .15;
}

/* Spodní mobilní lišta – tmavé provedení se světlým obsahem */
.mobile-cta a:first-child:not(:only-child) { background: var(--dark); color: #fff; }
.mobile-cta { border-top: 1px solid rgba(255, 255, 255, .08); }

/* =========================================================
   Hero (úvod i podstránky) – overlay #222222, světlý text
   ========================================================= */
.hero, .page-hero { background: #222222; color: #fff; }
.hero-shade { background: linear-gradient(90deg, rgba(34, 34, 34, .9) 0%, rgba(34, 34, 34, .78) 40%, rgba(34, 34, 34, .5) 75%, rgba(34, 34, 34, .38) 100%); }
.hero h1, .page-hero h1 { color: #fff; }
.hero-sub, .page-hero h1 em { color: var(--copper-light); }
.hero-desc, .page-lead { color: rgba(255, 255, 255, .86); }
.hero-benefits li { color: rgba(255, 255, 255, .92); }
.hero-benefits svg { stroke: var(--copper-light); }
.page-hero .eyebrow { color: var(--copper-light); }
.breadcrumbs { color: rgba(255, 255, 255, .55); }
.breadcrumbs a { color: rgba(255, 255, 255, .85); text-decoration-color: rgba(255, 255, 255, .3); }
.breadcrumbs a:hover { color: var(--copper-light); }
.dot { background: rgba(255, 255, 255, .4); }
.dot.active { background: var(--copper-light); }
.slide-arrow { background: rgba(0, 0, 0, .25); border-color: rgba(255, 255, 255, .4); color: #fff; }
.slide-arrow:hover { background: var(--copper); border-color: var(--copper); }
.hero .btn-ghost, .page-hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); }
.hero .btn-ghost:hover, .page-hero .btn-ghost:hover { border-color: var(--copper); background: var(--copper); }

/* Podstránky: fotka přes celou šířku pod overlay */
.page-hero::before { display: block; left: 0; width: 100%; -webkit-mask-image: none; mask-image: none; transform: scale(1.04); }
.page-hero::after { display: block; background: linear-gradient(90deg, rgba(34, 34, 34, .9) 0%, rgba(34, 34, 34, .78) 45%, rgba(34, 34, 34, .5) 100%); }
.page-hero-inner { max-width: 780px; }
@media (max-width: 960px) {
  .hero-shade { background: rgba(34, 34, 34, .78); }
  .page-hero::before { display: block; opacity: 1; }
  .page-hero::after { background: rgba(34, 34, 34, .8); }
}

/* =========================================================
   CTA na ceník (podstránky)
   ========================================================= */
.price-cta-section { padding-top: 0; }
.price-cta {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px 36px;
  padding: 40px 44px; border: 1px solid var(--line); border-left: 5px solid var(--copper);
  border-radius: 14px; background: var(--bg-alt);
}
.price-cta-icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--copper); box-shadow: var(--shadow); }
.price-cta-icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.price-cta-text .eyebrow { margin-bottom: 6px; }
.price-cta-text h2 { font-size: clamp(28px, 2.8vw, 40px); margin-bottom: 8px; }
.price-cta-text p:not(.eyebrow) { margin: 0; max-width: 560px; color: var(--text); }
.price-cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 18px; }
.price-cta-actions .text-link { margin: 0; flex-basis: 100%; justify-content: flex-end; }
.btn-ghost-dark { color: var(--ink); border-color: var(--copper); background: #fff; box-shadow: none; }
.btn-ghost-dark:hover { color: #fff; background: var(--copper); border-color: var(--copper); }

/* =========================================================
   CTA sekce nad zápatím – tmavě hnědá, přes celou šířku
   ========================================================= */
.cta-band {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px 56px;
  margin: 0; padding: 80px var(--gutter, max(24px, calc((100% - var(--content)) / 2)));
  border: 0; border-radius: 0; box-shadow: none;
  background: #4a3122; color: #fff; position: relative; overflow: hidden; isolation: isolate;
}
.cta-band::before {
  content: ""; position: absolute; right: -60px; bottom: -40px; z-index: -1; width: 420px; height: 320px; opacity: .07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 105 80' fill='none' stroke='white' stroke-width='4' stroke-linejoin='round'%3E%3Cpath d='M5 75V28L78 5l22 17v53M17 75V23M34 75V19M51 75V14M68 75V10M85 75V15M5 75h95M5 35h80'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cta-band h2 { color: #fff; font-size: clamp(32px, 3.4vw, 48px); margin-bottom: 12px; }
.cta-band p { margin: 0; max-width: 640px; color: rgba(255, 255, 255, .78); font-size: 17px; }
.cta-band-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px; }
.cta-band .btn-primary { background: var(--copper-light); color: #2b1c12; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.cta-band .btn-primary:hover { background: #fff; color: #4a3122; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); background: transparent; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.cta-band + * { margin-top: 0; }

@media (max-width: 960px) {
  .price-cta { grid-template-columns: auto 1fr; padding: 32px 28px; }
  .price-cta-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .price-cta-actions .text-link { justify-content: flex-start; }
  .cta-band { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 64px; }
  .cta-band-actions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .price-cta { grid-template-columns: 1fr; padding: 26px 22px; }
  .price-cta-icon { width: 60px; height: 60px; }
  .price-cta-actions .btn, .cta-band-actions .btn { width: 100%; }
}

/* =========================================================
   Naše technika (úvodní stránka)
   ========================================================= */
.home .machines { background: var(--bg-alt); }
.home .about { background: var(--bg-alt); }
.home .why { background: #fff; }
.home .contact { background: var(--bg-alt); }
.machines .section-head h2 { color: #fff; }
.machines .section-head h2 em { font-style: normal; color: var(--copper-light); }
.machines .eyebrow { color: var(--copper-light); }
.machines .section-head > p:not(.eyebrow) { color: rgba(255, 255, 255, .78); }
.machine-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.machine-card {
  position: relative; padding: 34px 34px 30px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s;
}
.machine-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.machine-icon { display: grid; place-items: center; width: 96px; height: 72px; margin-bottom: 18px; border-radius: 12px; background: var(--bg-alt); color: var(--copper); }
.machine-icon svg { width: 76px; height: 52px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.machine-type { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); }
.machine-card h3 { font-size: 32px; margin-bottom: 12px; }
.machine-card > p:not(.machine-type) { margin: 0 0 18px; color: var(--text); }
.machine-features { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.machine-features li { position: relative; padding-left: 24px; font-size: 14px; font-weight: 500; }
.machine-features li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--copper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.machine-uses-head { margin: 64px 0 24px; text-align: center; }
.machine-uses-head h3 { font-size: clamp(28px, 2.8vw, 38px); }
.machine-uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.machine-use { padding: 24px 24px 22px; border-top: 3px solid var(--copper); border-radius: 0 0 var(--radius) var(--radius); background: #fff; }
.machine-use h3 { font-size: 22px; margin-bottom: 8px; }
.machine-use p { margin: 0; font-size: 15px; color: var(--text); }
.machine-note { max-width: 760px; margin: 36px auto 0; text-align: center; color: var(--text); }
.machine-note a { color: var(--copper-dark); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1200px) { .machine-uses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .machine-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .machine-card { padding: 26px 22px; }
  .machine-features, .machine-uses { grid-template-columns: 1fr; }
}
.machines { padding-top: 80px; padding-bottom: 80px; }
.machines .section-head { margin-bottom: 0; max-width: 820px; }

/* ---------- Naše technika – fotky strojů (úvodní stránka) ---------- */
.fleet {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px; align-items: center; background: var(--bg);
  padding-top: 0; border-top: 0;
}
.fleet-photo { margin: 0; text-align: center; }
.fleet-photo img { width: 100%; height: auto; aspect-ratio: 10 / 7; object-fit: contain; display: block; color: transparent; font-size: 0; transition: transform .8s var(--ease); }
.fleet-photo:hover img { transform: scale(1.03); }
.fleet-photo figcaption { margin-top: 14px; font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--ink); }
.fleet-body { text-align: center; }
.fleet .section-head { margin-bottom: 30px; }
.fleet .section-head h2 em { font-style: normal; color: var(--copper); }

@media (max-width: 1200px) {
  .fleet { gap: 24px; }
}
@media (max-width: 960px) {
  .fleet { grid-template-columns: 1fr 1fr; }
  .fleet-body { grid-column: 1 / -1; grid-row: 1; margin-bottom: 12px; }
}
@media (max-width: 560px) {
  .fleet { grid-template-columns: 1fr; }
  .fleet-body .btn { width: 100%; }
}

/* ---------- Úpravy 27. 11. ---------- */
.about .eyebrow { color: var(--copper); }
/* Bílý prostor nad CTA na ceník, když předchozí sekce má barevné pozadí */
.variants + .price-cta-section, .related + .price-cta-section { padding-top: 110px; }
@media (max-width: 960px) { .variants + .price-cta-section, .related + .price-cta-section { padding-top: 76px; } }
/* Obrysová tlačítka – hnědý text */
.btn-ghost, .btn-ghost-dark { color: var(--copper); }
.hero .btn-ghost, .page-hero .btn-ghost, .cta-band .btn-ghost { color: #fff; }
.btn-ghost:hover, .btn-ghost-dark:hover { color: #fff; }

/* ---------- Logo (obrázek) – světlá / tmavá varianta ---------- */
.brand { gap: 0; flex-shrink: 0; }
.brand-logo { display: block; width: auto; height: 62px; }
.header.scrolled .brand-logo { height: 50px; }
.brand-logo--on-light { display: none; }
.header.scrolled .brand-logo--on-dark { display: none; }
.header.scrolled .brand-logo--on-light { display: block; }
.brand-small .brand-logo { height: 52px; }
@media (max-width: 960px) {
  .brand-logo { height: 42px; }
  .header.scrolled .brand-logo { height: 38px; }
}
@media (max-width: 400px) {
  .brand-logo, .header.scrolled .brand-logo { height: 34px; }
}

/* Hlavní menu v tmavém režimu (nahoře na stránce) – průhledné pozadí */
.header:not(.scrolled) {
  background: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
.header:not(.scrolled) .nav .sub-menu, .header:not(.scrolled) .nav.open { text-shadow: none; }
@media (max-width: 1180px) { .header:not(.scrolled) .nav { text-shadow: none; } }

/* =========================================================
   Plynulejší animace hlavičky + světle hnědé mobilní menu
   ========================================================= */
.header {
  transition: background-color .6s var(--ease), box-shadow .6s var(--ease), color .5s var(--ease),
              height .5s var(--ease), backdrop-filter .6s var(--ease), -webkit-backdrop-filter .6s var(--ease);
}
.header:not(.scrolled) { background-color: transparent; }
.header.scrolled { background-color: rgba(255, 255, 255, .92); }
.header .nav > a, .header .nav-item > a, .header .phone { transition: color .5s var(--ease), border-color .5s var(--ease), background-color .3s, text-shadow .5s; }
.nav a::after { transition: transform .4s var(--ease), background-color .5s; }

/* Logo – prolnutí světlé a hnědé varianty */
.brand { position: relative; }
.brand-logo { transition: height .5s var(--ease), opacity .5s var(--ease); }
.brand-logo--on-light { display: block; position: absolute; left: 0; top: 50%; translate: 0 -50%; opacity: 0; }
.header.scrolled .brand-logo--on-dark { display: block; opacity: 0; }
.header.scrolled .brand-logo--on-light { opacity: 1; }

/* Podnabídka na desktopu */
.sub-menu { transition: opacity .3s var(--ease), transform .4s var(--ease), visibility .3s; }

@media (max-width: 1180px) {
  .nav {
    background: linear-gradient(165deg, #faf3ec 0%, #f1e2d4 100%);
    color: #4a3122;
    border-left: 1px solid rgba(166, 110, 74, .18);
    box-shadow: -20px 0 50px rgba(74, 49, 34, .22);
    transition: transform .55s var(--ease), visibility .55s;
  }
  .header .nav > a, .header .nav-item > a { color: #4a3122; text-shadow: none; }
  .nav a { border-radius: 8px; transition: background-color .25s, color .25s, padding-left .3s var(--ease); }
  .nav a.active, .nav a:hover, .nav a[aria-current="page"] { background: rgba(166, 110, 74, .14); color: var(--copper-dark); }
  .nav > a:hover, .nav-item > a:hover { padding-left: 22px; }
  .sub-menu { border-left-color: rgba(166, 110, 74, .35); }
  .nav .sub-menu a { color: #6b4a36; }
  .nav .sub-menu a:hover, .nav .sub-menu a[aria-current="page"] { background: rgba(166, 110, 74, .1); color: var(--copper-dark); }
  .nav .nav-phone { box-shadow: 0 10px 24px rgba(166, 110, 74, .3); }
  .menu-toggle span { transition: transform .4s var(--ease), opacity .3s; }
  .menu-toggle[aria-expanded="true"] { color: #4a3122; }
  .nav-overlay { background: rgba(43, 28, 18, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); transition: opacity .45s var(--ease), visibility .45s; }

  /* Postupné najetí položek */
  .nav > * { opacity: 0; transform: translateX(28px); transition: opacity .25s, transform .3s var(--ease); }
  .nav.open > * { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(140ms + var(--i, 0) * 55ms); }
  .nav > *:nth-child(1) { --i: 0; } .nav > *:nth-child(2) { --i: 1; } .nav > *:nth-child(3) { --i: 2; }
  .nav > *:nth-child(4) { --i: 3; } .nav > *:nth-child(5) { --i: 4; } .nav > *:nth-child(6) { --i: 5; }
  .nav > *:nth-child(7) { --i: 6; } .nav > *:nth-child(8) { --i: 7; } .nav > *:nth-child(9) { --i: 8; }
  .nav > *:nth-child(10) { --i: 9; }
}

@media (prefers-reduced-motion: reduce) {
  .header, .brand-logo, .nav, .nav > *, .nav-overlay, .sub-menu { transition: none !important; }
  .nav > * { opacity: 1; transform: none; }
}
