/* =========================================================
   TAPE s.r.o. – spoločné štýly pre všetky jazykové verzie
   Farby a písmo meníte tu, v časti :root
   ========================================================= */
:root {
  --brand: #1e4487;        /* firemná modrá */
  --brand-light: #2d64bc;
  --accent: #3b82f6;       /* modrý kruh za fotkami tímu */
  --ink: #334155;          /* hlavné nadpisy */
  --text: #475569;         /* bežný text */
  --muted: #6b7280;
  --grey-1: #f3f4f6;
  --grey-2: #d1d5db;
  --grey-3: #cfd4dc;
  --white: #ffffff;
  --header-h: 64px;
  /* Rýchlosť úvodnej animácie loga: 1 = pôvodná, menšie číslo = rýchlejšie (napr. 0.5 = dvakrát rýchlejšie) */
  --intro: 0.5;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: "Raleway", system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; }

/* ---------- Hlavička ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  background: rgba(0, 0, 0, .32);
  backdrop-filter: blur(6px);
}
.site-header .logo img { height: 48px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a {
  color: var(--white); text-decoration: none; font-weight: 600;
  text-transform: uppercase; font-size: 1.25rem;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
  transition: border-color .25s;
}
.main-nav a:hover, .main-nav a.active { border-bottom-color: var(--white); }

.lang-switch { display: flex; gap: 4px; margin-left: 12px; }
.lang-switch a {
  font-size: .8rem; padding: 3px 7px; border: 1px solid rgba(255,255,255,.6);
  border-radius: 4px; border-bottom-width: 1px;
}
.lang-switch a.current { background: var(--white); color: var(--brand); border-color: var(--white); }

.menu-toggle {
  display: none; background: var(--white); border: 0; border-radius: 8px;
  width: 68px; height: 48px; cursor: pointer;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--ink); margin: 0 auto; position: relative;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

/* ---------- Bočná navigácia bodkami ---------- */
.dots {
  position: fixed; right: 28px; top: 50%; transform: translateY(-50%);
  z-index: 50; display: flex; flex-direction: column; gap: 10px; list-style: none;
}
.dots a {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  text-decoration: none; height: 8px;
}
.dots a span {
  font-size: .62rem; font-weight: 700; text-transform: uppercase; color: var(--ink);
  opacity: 0; transition: opacity .25s;
}
.dots a i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); transition: transform .25s; }
.dots a.active span, .dots a:hover span { opacity: 1; }
.dots a.active i { transform: scale(1.4); }

/* ---------- Úvod: animácia loga ako na pôvodnom webe ----------
   Modrý štvorec najprv vyplní obrazovku, otočí sa a zmenší do stredu,
   nápis TAPE sa objaví, bodky vpravo pribehnú a nakoniec sa zjaví nadpis. */
.hero {
  position: relative; height: 100vh; min-height: 520px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.intro-logo {
  width: min(400px, 85vw); height: auto; overflow: visible;
  transform-origin: center; animation: introScale calc(1.1s * var(--intro)) cubic-bezier(.33,1,.68,1) both;
}
.intro-logo .lg-bg {
  transform-box: fill-box; transform-origin: center;
  animation: introBg calc(1.3s * var(--intro)) both;
}
.intro-logo .lg-tx { animation: fadeIn calc(.5s * var(--intro)) calc(.3s * var(--intro)) both; }
.hero h1 {
  position: absolute; left: 0; right: 0; bottom: 5rem; padding: 0 20px; text-align: center;
  font-size: clamp(1.25rem, 3vw, 1.875rem); font-weight: 700;
  animation: fadeIn .8s calc(1s * var(--intro)) both;
}
.hero .scroll-down {
  position: absolute; left: 50%; bottom: 1.4rem; width: 26px; height: 26px; margin-left: -13px;
  color: var(--ink); animation: fadeIn .8s calc(1.2s * var(--intro)) both;
}
.hero .scroll-down svg { width: 100%; height: 100%; }
@keyframes introScale { 0%, 27% { transform: scale(3); } 100% { transform: scale(1); } }
@keyframes introBg {
  0%   { opacity: 0; transform: scale(3) rotate(0deg); }
  23%  { opacity: 1; transform: scale(3) rotate(0deg); animation-timing-function: cubic-bezier(.65,0,.35,1); }
  100% { opacity: 1; transform: scale(1) rotate(90deg); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.dots li { animation: dotIn .5s cubic-bezier(.33,1,.68,1) both; }
.dots li:nth-child(1) { animation-delay: calc(.6s * var(--intro)); }
.dots li:nth-child(2) { animation-delay: calc(.65s * var(--intro)); }
.dots li:nth-child(3) { animation-delay: calc(.7s * var(--intro)); }
.dots li:nth-child(4) { animation-delay: calc(.75s * var(--intro)); }
.dots li:nth-child(5) { animation-delay: calc(.8s * var(--intro)); }
.dots li:nth-child(6) { animation-delay: calc(.85s * var(--intro)); }
@keyframes dotIn { from { opacity: 0; transform: translateX(-30vw); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Tri oblasti (dlaždice) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 100vh; }
.tile {
  position: relative; display: flex; align-items: center; justify-content: center;
  text-decoration: none; overflow: hidden; min-height: 260px;
}
.tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(.45); transition: filter .5s, transform .8s;
}
.tile:hover img { filter: grayscale(0) brightness(.55); transform: scale(1.04); }
.tile h2 {
  position: relative; color: var(--white); text-transform: uppercase;
  font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 600; text-align: center; padding: 0 20px;
}

/* ---------- O nás ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.big-title {
  font-size: clamp(3rem, 7vw, 6rem); font-weight: 600; text-transform: uppercase;
  color: var(--ink); line-height: 1;
}
.about-title { display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.about-text {
  background: var(--grey-3); padding: calc(var(--header-h) + 40px) 80px 50px 40px;
  font-size: .92rem; text-align: justify; display: flex; flex-direction: column;
}
.about-text p { margin-bottom: 14px; }
.about-text .tape-word { color: var(--brand); font-weight: 700; }
.about-text a.pdc { color: var(--brand); font-weight: 700; text-decoration: none; text-transform: uppercase; }
.about-text a.pdc:hover { text-decoration: underline; }
.why { margin-top: 18px; display: grid; gap: 14px; }
.why h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 2px; }
.why p { margin: 0; }
.pdc-logo { height: 80px; width: auto; margin: 40px 0 0 auto; opacity: .8; }

/* ---------- Oblasti pôsobenia ---------- */
.areas { padding: 100px 20px; }
.container { max-width: 1000px; margin: 0 auto; }
.areas h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; margin-bottom: 18px; }
.areas .lead { font-size: 1.25rem; margin-bottom: 40px; }
.areas h3.label { font-size: 1.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .025em; margin-bottom: 22px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 24px 22px; box-shadow: 0 2px 10px rgba(0,0,0,.05);
  display: flex; flex-direction: column; gap: 14px;
}
.card h4 { color: var(--ink); font-size: 1.25rem; font-weight: 600; }
.card p { font-size: 1rem; flex: 1; }
.btn {
  align-self: flex-start; background: var(--brand); color: var(--white); text-decoration: none;
  font-weight: 600; font-size: 1rem; padding: 9px 20px; border-radius: 999px; border: 0;
  cursor: pointer; font-family: inherit; transition: background .2s;
}
.btn:hover { background: var(--brand-light); }

/* ---------- Tím ---------- */
.team {
  position: relative; background: var(--grey-1); padding: 90px 20px 80px; overflow: hidden; text-align: center;
}
.team::before {
  content: ""; position: absolute; inset: 0; background: url(../img/logo-pattern.svg) center / cover no-repeat;
}
.team > * { position: relative; }
.team .subtitle { font-weight: 600; font-size: 1.25rem; color: var(--ink); margin: 18px 0 56px; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1100px; margin: 0 auto; }
.person {
  background: rgba(255,255,255,.88); box-shadow: 0 10px 25px rgba(0,0,0,.12);
  padding: 20px 20px 18px;
}
.person .photo {
  width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--accent); overflow: hidden;
}
.person .photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person h3 { font-size: 1.25rem; font-weight: 600; }
.person p { font-size: 1.125rem; }
.quote {
  max-width: 900px; margin: 64px auto 0; font-size: clamp(1.4rem, 2.6vw, 1.875rem);
  font-weight: 400; color: var(--ink);
}

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; }
.contact-info { background: var(--grey-1); padding: 100px 40px 80px 12%; }
.contact-info .big-title { margin-bottom: 28px; }
.contact-info address { font-style: normal; font-size: .95rem; }
.contact-links { margin: 22px 0; display: grid; gap: 2px; }
.contact-links a {
  font-weight: 600; font-size: 1.25rem; color: #64748b; text-decoration: none; transition: color .2s;
}
.contact-links a:hover { color: var(--ink); }
.contact-links .li { display: inline-flex; align-items: center; gap: 6px; }
.contact-links .li svg { width: 18px; height: 18px; fill: var(--brand-light); }
.building { width: min(100%, 360px); margin-top: 10px; }

.write { display: flex; align-items: center; padding: 100px 8% 80px; }
.write .big-title { margin-bottom: 30px; }
form.contact-form { display: grid; gap: 14px; width: 100%; max-width: 520px; }
.contact-form label { font-size: .82rem; font-weight: 600; color: var(--ink); display: grid; gap: 4px; }
.contact-form .req { color: #dc2626; }
.contact-form input[type=email], .contact-form input[type=tel],
.contact-form select, .contact-form textarea {
  font: inherit; font-size: .9rem; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 6px;
  background: var(--white); color: var(--ink); width: 100%;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--brand-light); outline-offset: 0; border-color: transparent;
}
.contact-form .consent { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.contact-form .consent input { margin-top: 4px; }
.link-btn {
  background: none; border: 0; font: inherit; font-size: .8rem; color: var(--brand-light);
  cursor: pointer; text-align: left; padding: 0; text-decoration: underline;
}
.contact-form .btn { justify-self: start; padding: 11px 28px; font-size: .95rem; }
.form-status { font-size: .9rem; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }

/* ---------- Pätička ---------- */
.site-footer {
  background: var(--ink); color: #cbd5e1; text-align: center; padding: 22px 20px; font-size: .85rem;
}

/* ---------- Okno so zásadami ---------- */
dialog.privacy {
  border: 0; border-radius: 10px; padding: 0; max-width: 680px; width: calc(100% - 32px);
  max-height: 85vh; margin: auto;
}
dialog.privacy::backdrop { background: rgba(0,0,0,.55); }
.privacy-body { padding: 28px 30px; overflow-y: auto; font-size: .9rem; }
.privacy-body h2 { font-size: 1.4rem; margin-bottom: 14px; }
.privacy-body h3 { font-size: 1rem; margin: 18px 0 6px; }
.privacy-body ul { padding-left: 20px; }
.privacy-body p { margin-bottom: 8px; }
.privacy-foot { padding: 14px 30px 22px; text-align: right; }

/* ---------- Cookies lišta ---------- */
.cookie-bar {
  position: fixed; inset: auto 0 0 0; z-index: 9999; background: rgba(31,41,55,.96); color: #fff;
  padding: 22px 20px; display: none; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap;
}
.cookie-bar.show { display: flex; }
.cookie-bar p { font-size: 1rem; text-align: center; }
.cookie-bar .actions { display: flex; gap: 8px; }
.cookie-bar button { font: inherit; font-size: .9rem; padding: 8px 16px; border-radius: 4px; cursor: pointer; }
.cookie-bar .yes { background: #3b82f6; color: #fff; border: 0; }
.cookie-bar .no { background: transparent; color: #fff; border: 1px solid #6b7280; }

/* ---------- Animácia pri rolovaní ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .intro-logo, .intro-logo .lg-bg, .intro-logo .lg-tx, .hero h1, .hero .scroll-down, .dots li { animation: none; }
  .intro-logo .lg-bg { transform: rotate(90deg); }
  html { scroll-behavior: auto; }
}

/* ---------- Mobil a tablet ---------- */
@media (max-width: 1100px) {
  .dots { display: none; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: rgba(30, 41, 59, .97); padding: 8px 0 18px; display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 12px 24px; border-bottom: 0; }
  .lang-switch { margin: 10px 24px 0; }
  .tiles, .about, .contact { grid-template-columns: 1fr; }
  .tiles { min-height: 0; }
  .tile { min-height: 34vh; }
  .about-title { padding: calc(var(--header-h) + 30px) 20px 20px; }
  .about-text { padding: 40px 20px; }
  .cards, .people { grid-template-columns: 1fr; }
  .people { max-width: 380px; }
  .areas { padding: 70px 16px; }
  .contact-info { padding: 70px 20px 50px; }
  .write { padding: 60px 20px; flex-direction: column; align-items: stretch; }
}

/* =========================================================
   PODSTRÁNKY
   ========================================================= */
.page-header { position: relative; height: 80vh; min-height: 320px; overflow: hidden; background: #fff; }
.page-header img { width: 100%; height: 100%; object-fit: cover; }
.page-header .shade {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(41, 37, 36, .8); transition: background .3s; padding: 0 20px;
}
.page-header:hover .shade { background: rgba(41, 37, 36, .5); }
.page-header h1 {
  color: #e2e8f0; text-transform: uppercase; font-weight: 600; text-align: center;
  font-size: clamp(1.6rem, 3vw, 1.875rem);
}

.breadcrumb { padding: 16px; font-size: .875rem; color: #374151; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin: 0 8px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--muted); }

.intro-text { padding: 80px 15vw; display: grid; gap: 20px; font-size: 1.25rem; text-align: justify; }
.intro-text a.pdc { color: var(--brand); font-weight: 700; font-size: 1rem; text-transform: uppercase; text-decoration: none; }
.intro-text a.strong { color: var(--brand); font-weight: 600; text-decoration: none; }
.intro-text a:hover { text-decoration: underline; }

/* Produkty: text vľavo, karty vpravo */
.products { display: grid; grid-template-columns: 3fr 7fr; gap: 20px; padding: 40px 0; align-items: center; }
.products-text { padding: 40px; color: var(--ink); }
.products-text h2 { font-size: 1.5rem; font-weight: 600; }
.products-text > p { margin-top: 16px; }
.products-text h3 { font-size: 1.25rem; font-weight: 600; margin: 16px 0 4px; }
.products-text .btn { display: inline-block; margin-top: 24px; }
.products-text .note { margin-top: 24px; font-style: italic; color: #475569; }
.pcards { display: grid; grid-template-columns: repeat(3, 320px); justify-content: center; gap: 40px 24px; padding: 20px; }
.pcard {
  position: relative; width: 320px; height: 400px; border-radius: 6px; overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.15); cursor: default; outline: none;
}
.pcard img { width: 100%; height: 100%; object-fit: cover; }
.pcard-label {
  position: absolute; left: 0; right: 0; bottom: 0; background: var(--brand); color: #fff;
  text-align: center; padding: 8px 10px; font-size: 1.125rem; font-weight: 600;
}
.pcard-more {
  position: absolute; inset: 0; background: var(--brand); color: #fff; display: flex; align-items: center;
  padding: 16px; opacity: 0; transition: opacity .3s; text-align: justify; font-weight: 600; font-size: .95rem;
  overflow-y: auto;
}
.pcard:hover .pcard-more, .pcard:focus .pcard-more, .pcard:focus-within .pcard-more { opacity: 1; }
.pcard:focus-visible { box-shadow: 0 0 0 3px var(--brand-light); }

/* Pásy s dvoma stĺpcami */
.band { display: grid; grid-template-columns: 1fr 1fr; padding: 80px 0; min-height: 100vh; }
.band-grey { background: var(--grey-2); }
.band-cream { background: #f8f0e7; }
.band-text { padding: 0 40px; display: flex; flex-direction: column; justify-content: center; color: var(--ink); }
.band-text h2 { font-size: 1.5rem; font-weight: 600; }
.band-text h2 + p { margin-top: 16px; }
.band-text h3 { font-size: 1.25rem; font-weight: 600; margin: 20px 0 8px; }
.band-text p { margin-bottom: 12px; }
.band-text .sub { font-size: 1.125rem; margin-bottom: 4px; }
.band-text ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.band-side { display: flex; flex-direction: column; justify-content: center; }
.title-banner { background: var(--brand); padding: 40px 0; box-shadow: 0 20px 25px -5px rgba(0,0,0,.2); }
.title-banner h2 {
  color: #e2e8f0; text-transform: uppercase; font-weight: 600; font-size: clamp(1.5rem, 3vw, 3rem); line-height: 1.15;
}
.title-banner.right { margin-left: 80px; text-align: right; }
.title-banner.right h2 { border-right: 8px solid #e2e8f0; padding-right: 24px; margin-right: 40px; }
.title-banner.left { margin-right: 80px; }
.title-banner.left h2 { border-left: 8px solid #e2e8f0; padding-left: 24px; margin-left: 40px; }
.cta-box { margin-top: 80px; text-align: center; font-size: 1.25rem; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 20px; color: var(--ink); }
.cta-box strong { font-weight: 700; }
.cta-box span { font-weight: 700; }
.cta-box .btn { margin-top: 20px; align-self: center; }

.framed { margin-top: 56px; height: 320px; max-width: 100%; width: fit-content; background: var(--brand); box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); }
.framed-inner { position: relative; top: -12px; left: 12px; height: 100%; background: #fff; box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); text-align: center; }
.framed-inner img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: inline-block; }

.thumbs { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.thumb { height: 112px; border: 0; padding: 0; border-radius: 6px; overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.thumb:hover img { transform: scale(1.05); }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
dialog.lightbox::backdrop { background: rgba(0,0,0,.85); }
dialog.lightbox[open] { display: flex; align-items: center; justify-content: center; }
dialog.lightbox img { max-width: 86vw; max-height: 86vh; object-fit: contain; border-radius: 4px; }
dialog.lightbox button { position: absolute; background: none; border: 0; color: #cbd5e1; font-size: 3.5rem; line-height: 1; cursor: pointer; padding: 10px 18px; }
dialog.lightbox button:hover { color: #fff; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-close { top: 10px; right: 10px; font-size: 2.6rem !important; }

/* Napíšte nám na podstránkach */
.write-section { display: grid; grid-template-columns: 2fr 3fr; min-height: 100vh; }
.write-title { background: var(--grey-2); display: flex; align-items: center; justify-content: center; padding: 80px 40px; }
.write-form { display: flex; align-items: center; justify-content: center; padding: 80px 40px; }
.write-form .contact-form { max-width: 520px; }

.site-footer.full { background: #1f2937; color: #d1d5db; padding: 32px 24px; display: grid; gap: 8px; justify-items: center; font-size: .875rem; text-align: center; }
.site-footer.full .f-name { color: #fff; font-weight: 600; font-size: 1rem; }
.site-footer.full .f-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.site-footer.full a { text-decoration: none; }
.site-footer.full a:hover { color: #fff; }
.site-footer.full .f-copy { color: #9ca3af; margin-top: 8px; }

@media (max-width: 1535px) {
  .products { grid-template-columns: 1fr; }
  .products-text { max-width: none; }
}
@media (max-width: 1280px) {
  .band { grid-template-columns: 1fr; }
  .band-side { order: -1; margin-bottom: 60px; }
  .pcards { grid-template-columns: repeat(auto-fit, 320px); }
}
@media (max-width: 900px) {
  .page-header { height: 40vh; min-height: 240px; }
  .intro-text { padding: 50px 20px; font-size: 1.1rem; text-align: left; }
  .products-text { padding: 20px; }
  .band { padding: 50px 0; min-height: 0; }
  .band-text { padding: 0 20px; }
  .title-banner.right { margin-left: 20px; }
  .title-banner.right h2 { margin-right: 20px; }
  .title-banner.left { margin-right: 20px; }
  .title-banner.left h2 { margin-left: 20px; }
  .cta-box { margin-top: 40px; }
  .framed { height: auto; }
  .framed-inner img { height: auto; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .write-section { grid-template-columns: 1fr; min-height: 0; }
  .write-title { background: none; padding: 60px 20px 10px; justify-content: flex-start; }
  .write-form { padding: 10px 20px 60px; }
}
@media (max-width: 380px) {
  .pcards { grid-template-columns: 1fr; padding: 16px; }
  .pcard { width: 100%; }
}

/* Riadkové karty (Biznis) */
.rows { padding: 80px 10vw; display: grid; gap: 48px; }
.row-card {
  display: grid; grid-template-columns: 3fr 7fr; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25); text-decoration: none; color: inherit; transition: transform .25s;
}
.row-card:hover { transform: translateX(-8px); }
.row-card:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 3px; }
.row-card.flip { grid-template-columns: 7fr 3fr; }
.row-card.flip .row-img { order: 2; }
.row-img { min-height: 200px; }
.row-img img { width: 100%; height: 100%; object-fit: cover; }
.row-img.contain img { object-fit: contain; }
.row-text { padding: 12px 40px; display: flex; flex-direction: column; justify-content: center; }
.row-text h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; color: #1e293b; }
.row-text p { color: #4b5563; margin-bottom: 8px; text-align: justify; }
@media (max-width: 900px) {
  .rows { padding: 40px 20px; gap: 28px; }
  .row-card, .row-card.flip { grid-template-columns: 1fr; }
  .row-card.flip .row-img { order: 0; }
  .row-img { height: 220px; }
  .row-text { padding: 16px 20px; }
  .row-text p { text-align: left; }
}

/* Zábava: text vľavo, dlaždice vpravo */
.page-header .ph-title {
  color: #e2e8f0; text-transform: uppercase; font-weight: 600; text-align: center;
  font-size: clamp(1.6rem, 3vw, 1.875rem); line-height: 1.15;
}
.fun { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; padding: 100px 80px 80px; }
.fun-text { color: var(--ink); }
.fun-text h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; line-height: 1.15; }
.fun-text .lead { margin-top: 16px; font-size: 1.125rem; color: #475569; text-align: justify; }
.fun-text h2 { margin-top: 32px; font-size: 1.5rem; font-weight: 600; }
.fun-text h3 { margin-top: 32px; font-size: 1.25rem; font-weight: 600; }
.fun-text p { margin-top: 12px; color: #475569; }
.fun-text ul { margin-top: 12px; padding-left: 20px; display: grid; gap: 4px; color: #475569; }
.cta-row { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline { background: transparent; color: var(--brand); border: 1px solid var(--brand); }
.btn-outline:hover { background: rgba(30, 68, 135, .08); }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; margin-top: 24px; }
.tile-card {
  position: relative; display: block; height: max(35vh, 260px); overflow: hidden; text-decoration: none; background: #fff;
}
.tile-card img { width: 100%; height: calc(100% - 3rem); object-fit: cover; transition: transform .9s; }
.tile-card:hover img, .tile-card:focus-visible img { transform: scale(1.2); }
.tile-card::before {
  content: ""; position: absolute; inset: 0; background: rgba(41,37,36,.9); opacity: 0; transition: opacity .3s; z-index: 1;
}
.tile-card:hover::before, .tile-card:focus-visible::before { opacity: 1; }
.tile-panel {
  position: absolute; left: 4px; right: 4px; bottom: 4px; z-index: 2; background: var(--brand); color: #fff;
  padding: 12px 16px; box-shadow: 0 4px 6px rgba(0,0,0,.15);
}
.tile-panel h3 { font-size: 1.25rem; font-weight: 600; text-align: center; color: #fff; }
.tile-panel p {
  max-height: 0; overflow: hidden; font-size: .85rem; text-align: justify; transition: max-height .7s, margin .7s;
}
.tile-card:hover .tile-panel p, .tile-card:focus-visible .tile-panel p { max-height: 14rem; margin-top: 16px; }
.tile-card:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 2px; }
@media (max-width: 1280px) {
  .fun { grid-template-columns: 1fr; padding: 70px 40px; }
}
@media (max-width: 700px) {
  .fun { padding: 50px 20px; }
  .tile-grid { grid-template-columns: 1fr; }
  .fun-text .lead { text-align: left; }
}

/* =========================================================
   PODSTRÁNKY PRODUKTOV (Zábava)
   ========================================================= */
.page-header.plain { height: 55vh; min-height: 260px; background: #54504f; }
.page-header.plain .shade { background: transparent; }

.strip-wrap { position: relative; background: #fff; box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); }
.strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 44px; scroll-padding: 0 44px; }
.strip::-webkit-scrollbar { display: none; }
.strip a {
  flex: 0 0 20vw; min-width: 200px; height: 160px; scroll-snap-align: start; padding: 12px 20px 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px;
  text-decoration: none; color: var(--ink); font-weight: 600; text-align: center; font-size: .95rem;
}
.strip a img { height: 96px; width: 100%; object-fit: contain; transition: transform .3s; }
.strip a:hover img { transform: scale(1.08); }
.strip a span { border-bottom: 2px solid transparent; padding-bottom: 2px; min-height: 2.6em; display: flex; align-items: flex-end; }
.strip a.current span { border-bottom-color: var(--brand); }
.strip-btn {
  position: absolute; top: 0; bottom: 0; z-index: 2; width: 44px; border: 0; cursor: pointer;
  background: rgba(229,231,235,.85);
}
.strip-btn:hover { background: rgba(209,213,219,.95); }
.strip-btn::before {
  content: ""; display: block; width: 16px; height: 16px; margin: auto; border: solid #111; border-width: 4px 0 0 4px;
}
.strip-btn.prev { left: 0; } .strip-btn.prev::before { transform: translateX(3px) rotate(-45deg); }
.strip-btn.next { right: 0; } .strip-btn.next::before { transform: translateX(-3px) rotate(135deg); }

.sub-content { width: min(80%, 1400px); margin: 0 auto; padding: 60px 0 40px; }
.sub-intro { font-size: 1.25rem; font-weight: 600; text-align: center; padding: 20px 40px 60px; color: var(--ink); }
.sub-banner { width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: 8px; margin-bottom: 50px; }
.group-title { text-align: center; font-size: 1.5rem; font-weight: 600; margin: 60px 0 30px; }
.group-title:first-of-type { margin-top: 0; }
.pc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 0 24px; }
.pc { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 15px -3px rgba(0,0,0,.12); transition: transform .3s; display: flex; flex-direction: column; }
.pc:hover { transform: scale(1.03); }
.slider { position: relative; height: 256px; display: flex; align-items: center; justify-content: center; background: #fff; }
.slider img { max-width: 100%; max-height: 100%; margin: auto; cursor: zoom-in; object-fit: contain; }
.sl-prev, .sl-next {
  position: absolute; top: 50%; width: 16px; height: 16px; padding: 0; border: solid #9ca3af; background: none; cursor: pointer; z-index: 2;
}
.sl-prev { left: 16px; border-width: 2px 0 0 2px; transform: translateY(-50%) rotate(-45deg); }
.sl-next { right: 16px; border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); }
.sl-prev:hover, .sl-next:hover { border-color: #374151; }
.dots-bar { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; background: rgba(0,0,0,.4); padding: 8px 12px; border-radius: 999px; z-index: 2; }
.dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: #e5e7eb; cursor: pointer; transition: transform .3s, background .3s; }
.dot.on { background: #6b7280; transform: scale(1.25); }
.pc-body { padding: 20px; }
.pc-body h3, .pc.only-img h3 { font-size: 1.25rem; font-weight: 700; color: #111827; text-align: center; }
.pc.only-img h3 { padding: 20px 20px 0; }
.pc.only-img .slider { flex: 1; min-height: 256px; }
.pc-body ul { margin-top: 8px; padding-left: 18px; display: grid; gap: 4px; color: #4b5563; font-size: .875rem; }
.pc-body ul ul { margin-top: 4px; }
.pc-body p { margin-top: 12px; color: #4b5563; font-size: .875rem; }
.pc-body a { color: var(--brand); text-decoration: none; }
.pc-body a:hover { text-decoration: underline; }

@media (max-width: 1280px) { .pc-grid { grid-template-columns: repeat(2, 1fr); } .strip a { flex-basis: 25vw; } }
@media (max-width: 900px) { .strip a { flex-basis: 33.33vw; } .sub-content { width: 100%; padding: 40px 0; } .sub-intro { padding: 10px 20px 40px; font-size: 1.1rem; } }
@media (max-width: 700px) {
  .pc-grid { grid-template-columns: 1fr; padding: 0 16px; gap: 28px; }
  .strip a { flex-basis: 50vw; min-width: 0; height: 140px; padding: 10px; font-size: .85rem; }
  .strip a img { height: 80px; }
  .strip-btn { width: 32px; }
  .strip { padding: 0 32px; scroll-padding: 0 32px; }
  .sub-banner { border-radius: 0; }
}

/* Banner s letákom (EKO produkty) */
.banner-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 8px; overflow: hidden; }
.banner-btn .sub-banner { margin-bottom: 0; transition: transform .4s; }
.banner-btn:hover .sub-banner { transform: scale(1.02); }
.banner-btn:focus-visible { outline: 3px solid var(--brand-light); outline-offset: 3px; }
.leaflet-link { text-align: right; margin: 10px 4px 50px; font-size: .9rem; }
.leaflet-link a { color: var(--brand); font-weight: 600; text-decoration: none; }
.leaflet-link a:hover { text-decoration: underline; }
