/* ==========================================================================
   RAMrolets — Stínící technika na míru
   Modern dark/light theme. Pure CSS, no build step.
   Display: Fraunces (serif) · Body: Inter
   ========================================================================== */

:root {
  /* Brand — warm amber/bronze (sun-control identity, ties to RAM Solar) */
  --color-primary: #e0913c;
  --color-primary-dark: #c2762a;
  --color-primary-light: #f2b66a;
  --color-primary-rgb: 224, 145, 60;

  /* Dark theme (default) — warm graphite */
  --color-bg: #0d0e0f;
  --color-bg-secondary: #141517;
  --color-bg-tertiary: #1c1d20;
  --color-card: #17181a;
  --color-text: #f6f4f0;
  --color-text-muted: #a9a59d;
  --color-text-subtle: #7a766e;
  --color-border: #2a2b2e;
  --color-border-strong: #3a3b3f;
  --header-bg: rgba(13, 14, 15, 0.72);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --overlay: linear-gradient(180deg, rgba(13,14,15,.45) 0%, rgba(13,14,15,.55) 40%, rgba(13,14,15,.9) 100%);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-sm: .5rem;
  --radius-md: .75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 8px 24px -8px rgba(0,0,0,.5);
  --shadow-lg: 0 24px 50px -16px rgba(0,0,0,.6);
  --shadow-primary: 0 12px 30px -10px rgba(var(--color-primary-rgb), .5);

  --transition-fast: 150ms ease;
  --transition: 250ms cubic-bezier(.4, 0, .2, 1);
  --transition-slow: 450ms cubic-bezier(.4, 0, .2, 1);

  --container: 1200px;
  --header-h: 76px;
}

[data-theme="light"] {
  --color-bg: #faf8f4;
  --color-bg-secondary: #f2eee7;
  --color-bg-tertiary: #ebe6dd;
  --color-card: #ffffff;
  --color-text: #1c1a16;
  --color-text-muted: #5a554c;
  --color-text-subtle: #8a8479;
  --color-border: #e7e1d6;
  --color-border-strong: #d6cfc1;
  --header-bg: rgba(250, 248, 244, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(28, 26, 22, 0.08);
  --overlay: linear-gradient(180deg, rgba(20,18,15,.3) 0%, rgba(20,18,15,.4) 45%, rgba(20,18,15,.72) 100%);

  --shadow-sm: 0 1px 2px rgba(28,26,22,.06);
  --shadow-md: 0 10px 30px -12px rgba(28,26,22,.18);
  --shadow-lg: 0 28px 60px -18px rgba(28,26,22,.22);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }

::selection { background: rgba(var(--color-primary-rgb), .85); color: #0d0e0f; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--color-primary); color: #0d0e0f; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-md) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.4rem; border-radius: var(--radius-full);
  font-weight: 600; font-size: .95rem; line-height: 1; cursor: pointer;
  white-space: nowrap; transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--color-primary); color: #0d0e0f; box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: var(--color-primary-light); box-shadow: 0 16px 36px -10px rgba(var(--color-primary-rgb), .6); }

.btn-glass { background: var(--glass-bg); color: #fff; border: 1px solid var(--glass-border); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.16); }

.btn-dark { background: #0d0e0f; color: #f6f4f0; border: 1px solid rgba(255,255,255,.15); }
.btn-dark:hover { background: #000; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 1rem; }

.logo { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-body); }
.logo-mark { display: inline-flex; line-height: 0; }
.logo-text { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; color: var(--color-text); }
.logo-text strong { color: var(--color-primary); font-weight: 700; }
/* Hero overlays a dark image — keep header logo light until scrolled */
.header:not(.scrolled) .logo-text { color: #fff; }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav-link {
  position: relative; padding: .55rem .8rem; border-radius: var(--radius-full);
  font-size: .94rem; font-weight: 500; color: var(--color-text-muted);
  transition: color var(--transition-fast), background var(--transition-fast);
}
.header:not(.scrolled) .nav-link { color: rgba(255,255,255,.82); }
.nav-link:hover { color: var(--color-text); background: var(--color-bg-tertiary); }
.header:not(.scrolled) .nav-link:hover { color: #fff; background: rgba(255,255,255,.12); }

.nav-phone {
  display: inline-flex; align-items: center; gap: .4rem; margin-left: .4rem;
  font-weight: 600; font-size: .92rem; color: var(--color-text);
}
.header:not(.scrolled) .nav-phone { color: #fff; }
.nav-phone svg { color: var(--color-primary); }
.nav-cta { margin-left: .4rem; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-full);
  color: var(--color-text-muted); border: 1px solid var(--color-border);
  background: var(--color-bg-tertiary); transition: var(--transition-fast);
}
.header:not(.scrolled) .theme-toggle { color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); }
.theme-toggle:hover { color: var(--color-primary); border-color: var(--color-primary); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

.header-controls { display: none; align-items: center; gap: .5rem; }

.menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; margin: 0 auto; transition: var(--transition); }
.header:not(.scrolled) .menu-toggle span { background: #fff; }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 4rem; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: var(--overlay); }
.hero-content { position: relative; z-index: 1; max-width: 760px; color: #fff; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem 1rem; border-radius: var(--radius-full);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px); font-size: .86rem; font-weight: 500; margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), .3); }

.hero-title { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 600; margin-bottom: 1.25rem; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero-subtitle { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.9); max-width: 600px; margin-bottom: 2rem; }

.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem 1.75rem; margin-bottom: 2.5rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.92); }
.hero-trust svg { color: var(--color-primary); }

.hero-stats { display: flex; flex-wrap: wrap; gap: 2.5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.18); }
.stat { display: flex; flex-direction: column; }
.stat-value { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; color: #fff; }
.stat-label { font-size: .85rem; color: rgba(255,255,255,.72); }

.hero-scroll {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 1;
  color: rgba(255,255,255,.7); animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0); } 50%{ transform: translate(-50%,8px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--color-bg-secondary); }

.section-header { max-width: 680px; margin: 0 auto 3.5rem; text-align: center; }
.section-badge {
  display: inline-block; padding: .4rem .9rem; margin-bottom: 1rem;
  border-radius: var(--radius-full); font-size: .8rem; font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase;
  color: var(--color-primary); background: rgba(var(--color-primary-rgb), .12);
  border: 1px solid rgba(var(--color-primary-rgb), .25);
}
.section-title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1rem; }
.section-subtitle { font-size: 1.12rem; color: var(--color-text-muted); }

/* ---------- USP strip ---------- */
.usp { margin-top: -4.5rem; position: relative; z-index: 2; padding: 0 0 1rem; }
.usp-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl); padding: 1.75rem; box-shadow: var(--shadow-lg);
}
.usp-item { display: flex; gap: 1rem; align-items: flex-start; padding: .5rem; }
.usp-icon {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: rgba(var(--color-primary-rgb), .12); color: var(--color-primary);
}
.usp-icon svg { width: 24px; height: 24px; }
.usp-item h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.usp-item p { font-size: .88rem; color: var(--color-text-muted); line-height: 1.5; }

/* ---------- Categories ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cat-card {
  display: block; border-radius: var(--radius-xl); overflow: hidden;
  background: var(--color-card); border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--color-border-strong); }
.cat-image { aspect-ratio: 4 / 3; overflow: hidden; }
.cat-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.cat-card:hover .cat-image img { transform: scale(1.06); }
.cat-body { padding: 1.5rem; }
.cat-body h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.cat-body p { color: var(--color-text-muted); font-size: .96rem; margin-bottom: 1rem; }
.cat-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .92rem; color: var(--color-primary); }
.cat-card:hover .cat-link svg { transform: translateX(4px); }
.cat-link svg { transition: transform var(--transition-fast); }

/* ---------- Products ---------- */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.product-card {
  display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--color-card); border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }
.product-image { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.product-card:hover .product-image img { transform: scale(1.07); }
.product-badge {
  position: absolute; top: .75rem; left: .75rem;
  padding: .35rem .7rem; border-radius: var(--radius-full);
  font-size: .72rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  background: var(--color-primary); color: #0d0e0f; box-shadow: var(--shadow-sm);
}
.product-content { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.product-content h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.product-content p { font-size: .9rem; color: var(--color-text-muted); margin-bottom: 1rem; flex: 1; }
.product-cta {
  display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start;
  font-weight: 600; font-size: .9rem; color: var(--color-primary);
}
.product-cta svg { transition: transform var(--transition-fast); }
.product-card:hover .product-cta svg { transform: translateX(4px); }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.process-step {
  position: relative; padding: 2.25rem 1.5rem 1.75rem; border-radius: var(--radius-lg);
  background: var(--color-card); border: 1px solid var(--color-border);
}
.process-step::after {
  content: ""; position: absolute; top: 3.1rem; right: -.85rem; width: 1.5rem; height: 2px;
  background: var(--color-border-strong); z-index: 1;
}
.process-grid .process-step:last-child::after { display: none; }
.process-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius-full);
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
  background: rgba(var(--color-primary-rgb), .14); color: var(--color-primary);
  border: 1px solid rgba(var(--color-primary-rgb), .3); margin-bottom: 1rem;
}
.process-step h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.process-step p { font-size: .92rem; color: var(--color-text-muted); }

/* ---------- Why split ---------- */
.why-split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.why-media { position: relative; }
.why-media img { width: 100%; border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; }
.why-float {
  position: absolute; bottom: 1.5rem; left: -1.5rem;
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 1.1rem 1.4rem; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: .15rem;
}
.why-float strong { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.why-float span { font-size: .8rem; color: var(--color-text-muted); }
.stars { color: var(--color-primary); letter-spacing: 2px; font-size: 1rem; }

.why-content .section-title { text-align: left; }
.why-content .section-badge { margin-bottom: 1rem; }
.why-list { display: flex; flex-direction: column; gap: 1.1rem; margin: 1.75rem 0 2rem; }
.why-list li { display: flex; gap: .85rem; align-items: flex-start; font-size: 1.02rem; color: var(--color-text-muted); }
.why-list li strong { color: var(--color-text); }
.why-list svg { flex-shrink: 0; width: 24px; height: 24px; color: var(--color-primary); margin-top: 1px; }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.review-card {
  padding: 1.75rem; border-radius: var(--radius-lg);
  background: var(--color-card); border: 1px solid var(--color-border);
}
.review-card .stars { margin-bottom: 1rem; }
.review-card blockquote { font-size: 1.02rem; line-height: 1.6; margin-bottom: 1.25rem; }
.review-card figcaption { display: flex; flex-direction: column; }
.review-card figcaption strong { font-weight: 600; }
.review-card figcaption span { font-size: .85rem; color: var(--color-text-subtle); }

.logos-row { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem; text-align: center; }
.logos-row > span { font-size: .9rem; color: var(--color-text-subtle); }
.logos { display: flex; flex-wrap: wrap; gap: 1.5rem 2.25rem; align-items: center; justify-content: center; }
.logos span { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: .05em; color: var(--color-text-subtle); opacity: .8; }

/* ---------- CTA banner ---------- */
.cta-banner { background: linear-gradient(120deg, var(--color-primary-dark), var(--color-primary)); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;
  padding: clamp(2.5rem, 5vw, 3.5rem) 1.5rem; color: #1c1a16;
}
.cta-inner h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: #1c1a16; margin-bottom: .35rem; }
.cta-inner p { max-width: 560px; color: rgba(28,26,22,.85); font-size: 1.05rem; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 800px; }
.faq-list { display: flex; flex-direction: column; gap: .85rem; }
.faq-item {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); overflow: hidden; transition: border-color var(--transition-fast);
}
.faq-item[open] { border-color: var(--color-border-strong); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.4rem; font-weight: 600; font-size: 1.05rem; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { flex-shrink: 0; color: var(--color-primary); transition: transform var(--transition); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-answer { padding: 0 1.4rem 1.25rem; }
.faq-answer p { color: var(--color-text-muted); }
.faq-answer strong { color: var(--color-text); }

/* ---------- Poptávka / contact ---------- */
.poptavka-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: start; }
.poptavka-info .section-title { text-align: left; }
.poptavka-info .section-badge { margin-bottom: 1rem; }
.poptavka-lead { font-size: 1.1rem; color: var(--color-text-muted); margin-bottom: 2rem; }

.contact-list { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-list li { display: flex; gap: 1rem; align-items: center; }
.ci {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: rgba(var(--color-primary-rgb), .12); color: var(--color-primary);
}
.ci svg { width: 22px; height: 22px; }
.ci-label { display: block; font-size: .82rem; color: var(--color-text-subtle); }
.contact-list a, .ci-static { font-weight: 600; font-size: 1.08rem; color: var(--color-text); }
.contact-list a:hover { color: var(--color-primary); }

.poptavka-form-wrap {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-md);
}
.poptavka-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: .4rem; }
.form-field label { font-size: .88rem; font-weight: 600; color: var(--color-text); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: var(--radius-md);
  background: var(--color-bg-secondary); border: 1px solid var(--color-border);
  color: var(--color-text); transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-field textarea { resize: vertical; min-height: 90px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), .2);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--color-text-subtle); }

.form-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--color-text-muted); cursor: pointer; }
.form-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--color-primary); flex-shrink: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status { font-size: .92rem; font-weight: 500; min-height: 1.2em; }
.form-status.success { color: var(--color-primary); }
.form-status.error { color: #ef4444; }

.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- Footer ---------- */
.footer { background: var(--color-bg-secondary); border-top: 1px solid var(--color-border); padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand p { color: var(--color-text-muted); font-size: .94rem; margin-top: 1rem; max-width: 320px; }
.footer-col h4 { font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-subtle); margin-bottom: 1rem; }
.footer-col a, .footer-static { display: block; color: var(--color-text-muted); font-size: .95rem; padding: .3rem 0; transition: color var(--transition-fast); }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 1.5rem 1.5rem 2rem; border-top: 1px solid var(--color-border);
  font-size: .88rem; color: var(--color-text-subtle);
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a:hover { color: var(--color-primary); }

/* ---------- Floating phone ---------- */
.float-phone {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 90; display: none;
  width: 56px; height: 56px; border-radius: var(--radius-full);
  align-items: center; justify-content: center;
  background: var(--color-primary); color: #0d0e0f; box-shadow: var(--shadow-primary);
}

/* ---------- Scroll reveal (gated behind .js so no-JS users still see content) ---------- */
.reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.4,0,.2,1); }
.js .reveal { opacity: 0; transform: translateY(24px); }
.reveal.visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step::after { display: none; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .header-controls { display: flex; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: .25rem;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--header-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--color-border); padding: 1rem 1.5rem 1.5rem;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto; box-shadow: var(--shadow-lg);
  }
  .nav.open .nav-link { color: var(--color-text); padding: .85rem 1rem; font-size: 1.05rem; }
  .nav.open .nav-phone { color: var(--color-text); padding: .85rem 1rem; }
  .nav.open .nav-cta { margin: .5rem 0 0; }
  .nav.open .theme-toggle { display: none; }

  .why-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-media { max-width: 460px; margin: 0 auto; }
  .why-content .section-title, .poptavka-info .section-title { text-align: center; }
  .why-content, .poptavka-info { text-align: center; }
  .why-content .why-list { text-align: left; }
  .poptavka-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-list { max-width: 360px; margin: 0 auto; }
  .reviews-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .float-phone { display: flex; }
}

@media (max-width: 640px) {
  .cat-grid { grid-template-columns: 1fr; }
  .usp { margin-top: -2rem; }
  .usp-grid { grid-template-columns: 1fr; padding: 1.25rem; gap: .5rem; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-stats { gap: 1.5rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .poptavka-form-wrap { padding: 1.5rem; }
}

@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Karta produktu se dvěma odkazy (cena + 3D náhled) ---------- */
.product-cta + .product-cta { margin-top: .45rem; }

/* ---------- Hover demo: roleta den a noc na kartě produktu ----------
   Výchozí stav = noc (pásy přes sebe, fotka zakrytá). Najetí: 1) posun
   předních pásů → den (fotka prosvítá tylem), 2) vytažení rolety nahoru.
   Při odjetí v obráceném pořadí (sjede dolů, pak do noci). */
.product-blind {
  position: absolute; left: 0; right: 0; top: 0; height: 100%;
  overflow: hidden; z-index: 1; pointer-events: none;
  transition: height .85s cubic-bezier(.65, 0, .35, 1) 0s;
}
.pb-back, .pb-front {
  position: absolute; left: 0; right: 0; top: -28px; bottom: 0;
  background: repeating-linear-gradient(180deg,
    #f3f1ec 0 13px, #e3dfd4 13px 14px,
    rgba(243, 241, 236, .30) 14px 27px, rgba(208, 202, 188, .42) 27px 28px);
}
.pb-front { transform: translateY(14px); transition: transform .5s ease .85s; }
.pb-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
  background: linear-gradient(180deg, #e8e5de, #c4c0b6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.product-card:hover .product-blind,
.product-card:focus-within .product-blind { height: 9%; transition-delay: .5s; }
.product-card:hover .pb-front,
.product-card:focus-within .pb-front { transform: translateY(0); transition-delay: 0s; }
.product-badge { z-index: 2; }   /* štítek vždy nad roletou */

/* ---------- Hover demo: plisé na kartě produktu ----------
   Sklady přes celou fotku; najetí stáhne paklík nahoru a sklady
   se přitom stlačí (zmenšení background-size = hustší vzor). */
.product-plise {
  position: absolute; left: 0; right: 0; top: 0; height: 100%;
  overflow: hidden; z-index: 1; pointer-events: none;
  background-image: linear-gradient(180deg,
    #f7f5f0 0 45%, #e0dbce 45% 55%, #eeebe1 55% 90%, #c9c3b4 90% 100%);
  background-size: 100% 16px;
  transition: height .95s cubic-bezier(.65, 0, .35, 1),
              background-size .95s cubic-bezier(.65, 0, .35, 1);
}
.product-card:hover .product-plise,
.product-card:focus-within .product-plise { height: 11%; background-size: 100% 5px; }

/* ---------- Hover demo: vertikální žaluzie na kartě produktu ----------
   Lamely zakrývají fotku; najetí 1) otočí každou lamelu hranou (3D rotace,
   fotka prosvitne mezi nimi), 2) stáhne svazek ke krajnímu okraji. */
.product-vert {
  position: absolute; left: 0; right: 0; top: 0; height: 100%;
  overflow: hidden; z-index: 1; pointer-events: none; perspective: 900px;
}
.pv-track {
  position: absolute; inset: 0; display: flex; transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.65, 0, .35, 1);   /* odjezd: nejdřív roztáhnout */
}
.pv-track i {
  flex: 1 0 auto; height: 100%;
  background: linear-gradient(90deg, #efece6, #e2ddd0 60%, #d7d1c2);
  border-right: 1px solid rgba(120, 114, 104, .35);
  transform-origin: center center;
  transition: transform .5s ease .55s;                      /* odjezd: zavřít až po roztažení */
}
.pv-head {
  position: absolute; left: 0; right: 0; top: 0; height: 7px; z-index: 2;
  background: linear-gradient(180deg, #e8e5de, #c4c0b6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.product-card:hover .pv-track i,
.product-card:focus-within .pv-track i { transform: rotateY(72deg); transition-delay: 0s; }
.product-card:hover .pv-track,
.product-card:focus-within .pv-track { transform: scaleX(.12); transition-delay: .5s; }

/* ---------- Hover demo: římská roleta na kartě produktu ----------
   Měkké vodorovné záhyby; najetí vytáhne látku nahoru a záhyby se sbalí
   (zmenšení výšky + komprese vzoru = stohování řasení). */
.product-roman {
  position: absolute; left: 0; right: 0; top: 0; height: 100%;
  overflow: hidden; z-index: 1; pointer-events: none;
  background-image: repeating-linear-gradient(180deg,
    #ccc3b1 0, #ebe5d8 7px, #f5f0e6 14px, #e7e0d0 21px, #ccc3b1 28px);
  background-size: 100% 28px;
  transition: height .95s cubic-bezier(.65, 0, .35, 1),
              background-size .95s cubic-bezier(.65, 0, .35, 1);
}
.pr-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 9px;
  background: linear-gradient(180deg, #b9a07a, #8c7350);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.product-card:hover .product-roman,
.product-card:focus-within .product-roman { height: 17%; background-size: 100% 9px; }

/* ---------- Hover demo: dřevěné žaluzie na kartě produktu ----------
   Vodorovné dřevěné lamely; najetí 1) naklopí lamely (3D rotateX, fotka
   prosvitne mezerami), 2) vytáhne celý štos nahoru. */
.product-wood {
  position: absolute; left: 0; right: 0; top: 0; height: 100%;
  overflow: hidden; z-index: 1; pointer-events: none; perspective: 900px;
}
.pw-track {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  transform-origin: top center; transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.65, 0, .35, 1);   /* odjezd: nejdřív sjet dolů */
}
.pw-track i {
  flex: 1 0 auto; width: 100%;
  background: linear-gradient(180deg, #d2ab74, #e0bb84 55%, #c39a64);
  border-bottom: 1px solid rgba(90, 60, 30, .4);
  transform-origin: center center;
  transition: transform .5s ease .55s;                      /* odjezd: zavřít až po sjetí */
}
.pw-head {
  position: absolute; left: 0; right: 0; top: 0; height: 9px; z-index: 2;
  background: linear-gradient(180deg, #b58e58, #8c6a3c);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .3);
}
.product-card:hover .pw-track i,
.product-card:focus-within .pw-track i { transform: rotateX(66deg); transition-delay: 0s; }
.product-card:hover .pw-track,
.product-card:focus-within .pw-track { transform: scaleY(.14); transition-delay: .5s; }

/* ---------- Hover demo: látková roleta na kartě produktu ----------
   Plochý látkový panel; najetí navine látku na roli nahoře (panel sjede vzhůru),
   role nahoře zůstává, spodní lišta jede s panelem. */
.product-roller {
  position: absolute; left: 0; right: 0; top: 0; height: 100%;
  overflow: hidden; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, #efece6, #e3ddd0);
  transition: height .9s cubic-bezier(.65, 0, .35, 1);
}
.prl-tube {
  position: absolute; left: -2%; right: -2%; top: 0; height: 13px; z-index: 2;
  border-radius: 7px;
  background: linear-gradient(180deg, #f3f0ea, #cfc8b9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .28);
}
.prl-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
  background: linear-gradient(180deg, #cfc8b9, #a89f8c);
}
.product-card:hover .product-roller,
.product-card:focus-within .product-roller { height: 13px; }

/* ---------- Hover demo: síť proti hmyzu na kartě produktu ----------
   Polopropustná jemná síťka (přes fotku je vidět ztmavená mřížka);
   najetí síťku navine do kazety nahoře a odhalí fotku. */
.product-mesh {
  position: absolute; left: 0; right: 0; top: 0; height: 100%;
  overflow: hidden; z-index: 1; pointer-events: none;
  background-color: rgba(40, 43, 48, .22);
  background-image: repeating-linear-gradient(0deg, rgba(28, 30, 34, .55) 0 1px, transparent 1px 4px),
                    repeating-linear-gradient(90deg, rgba(28, 30, 34, .55) 0 1px, transparent 1px 4px);
  transition: height .9s cubic-bezier(.65, 0, .35, 1);
}
.pm-tube {
  position: absolute; left: -2%; right: -2%; top: 0; height: 12px; z-index: 2;
  border-radius: 6px;
  background: linear-gradient(180deg, #cfd2d6, #9aa0a6);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .28);
}
.pm-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 7px;
  background: linear-gradient(180deg, #b3b7bc, #868c92);
}
.product-card:hover .product-mesh,
.product-card:focus-within .product-mesh { height: 12px; }

/* ---------- Hover demo: venkovní screen na kartě produktu ----------
   Hustší technická síťovina (tmavší tónovaná mřížka přes fotku, externí
   robustní headbox); najetí screen navine do headboxu a odhalí fotku. */
.product-screen {
  position: absolute; left: 0; right: 0; top: 0; height: 100%;
  overflow: hidden; z-index: 1; pointer-events: none;
  background-color: rgba(28, 30, 34, .42);
  background-image: repeating-linear-gradient(0deg, rgba(18, 20, 23, .6) 0 1px, transparent 1px 3px),
                    repeating-linear-gradient(90deg, rgba(18, 20, 23, .6) 0 1px, transparent 1px 3px);
  transition: height .9s cubic-bezier(.65, 0, .35, 1);
}
.ps-box {
  position: absolute; left: -3%; right: -3%; top: 0; height: 15px; z-index: 2;
  border-radius: 4px;
  background: linear-gradient(180deg, #8a8f95, #5d6268);
  box-shadow: 0 3px 5px rgba(0, 0, 0, .35);
}
.ps-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: linear-gradient(180deg, #6e7378, #4a4e53);
}
.product-card:hover .product-screen,
.product-card:focus-within .product-screen { height: 15px; }

@media (prefers-reduced-motion: reduce) {
  .product-blind, .product-plise, .product-vert, .product-roman, .product-wood, .product-roller, .product-mesh, .product-screen { display: none; }
}

/* ---------- Rotující 3D kostka u odkazu na konfigurátor ---------- */
.cube3d { width: 15px; height: 15px; display: inline-block; perspective: 70px; flex-shrink: 0; }
.cube3d-inner {
  position: relative; width: 100%; height: 100%; display: block;
  transform-style: preserve-3d; animation: cube3dSpin 6s linear infinite;
}
.cube3d-inner i {
  position: absolute; inset: 0; border-radius: 2px;
  border: 1.2px solid currentColor;
  background: rgba(var(--color-primary-rgb), .16);
}
.cube3d .cf { transform: translateZ(7.5px); }
.cube3d .cb { transform: rotateY(180deg) translateZ(7.5px); }
.cube3d .cl { transform: rotateY(-90deg) translateZ(7.5px); }
.cube3d .cr { transform: rotateY(90deg) translateZ(7.5px); }
.cube3d .ct { transform: rotateX(90deg) translateZ(7.5px); }
.cube3d .cd { transform: rotateX(-90deg) translateZ(7.5px); }
@keyframes cube3dSpin {
  from { transform: rotateX(-22deg) rotateY(0deg); }
  to   { transform: rotateX(-22deg) rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cube3d-inner { animation: none; transform: rotateX(-22deg) rotateY(35deg); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal, .reveal { opacity: 1 !important; transform: none !important; }
}
