/* WINE4YOU 404 ?v=1 — varianta A (schváleno 22. 11. 2026 20:10).
   Platí jen na chybové stránce (body.w4y-is-404 přidává w4y-404.js).
   Na ostatních stránkách se neprojeví. w4y-vzhled.css/js nemění. */

body.w4y-is-404 {
  --w4y-404-red: var(--w4y-red, #6a1315);
  --w4y-404-red-h: var(--w4y-red-h, #883c3c);
  --w4y-404-ink: var(--w4y-ink, #3a2a26);
  --w4y-404-soft: var(--w4y-soft, #5a4540);
  --w4y-404-muted: var(--w4y-muted, #8a7772);
  --w4y-404-line: var(--w4y-line, #eee4df);
  --w4y-404-cream: var(--w4y-cream, #fffaf6);
  --w4y-404-panel: var(--w4y-panel, #f6eee8);
  --w4y-404-font: var(--w4y-font, "PT Sans", sans-serif);
  --w4y-404-head: var(--w4y-font-head, "PT Serif", serif);
  --w4y-404-r: var(--w4y-r, 8px);
  --w4y-404-r-lg: var(--w4y-r-lg, 16px);
  --w4y-404-pill: var(--w4y-r-pill, 999px);
  --w4y-404-shadow: var(--w4y-shadow, 0 2px 6px rgba(58, 42, 38, .06), 0 10px 28px rgba(58, 42, 38, .10));
  --w4y-404-shadow-card: var(--w4y-shadow-card, 0 2px 6px rgba(60, 30, 30, .06), 0 8px 24px rgba(60, 30, 30, .08));
  --w4y-404-shadow-card-h: var(--w4y-shadow-card-h, 0 4px 12px rgba(60, 30, 30, .10), 0 16px 36px rgba(60, 30, 30, .16));
  --w4y-404-shadow-cta: var(--w4y-shadow-cta, 0 4px 12px rgba(106, 19, 21, .22));
  --w4y-404-shadow-focus: var(--w4y-shadow-focus, 0 0 0 3px rgba(106, 19, 21, .2));
}

/* Plná šířka: levý sloupec kategorií na 404 schovat (na Kontakt / Službách
   zůstává otevřený — toto pravidlo platí jen s třídou w4y-is-404). */
html body.w4y-is-404.type-page #content #column-l,
body.w4y-is-404 aside#column-l,
body.w4y-is-404 #column-l {
  display: none !important;
}
body.w4y-is-404 main#content-in,
body.w4y-is-404 #content-in {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  left: auto !important;
  right: auto !important;
}
body.w4y-is-404 #content > #navigation,
body.w4y-is-404 #content > .bread-navigation {
  display: none !important;
}
body.w4y-is-404 [data-w4y-404-hidden] {
  display: none !important;
}

.w4y-404 {
  font-family: var(--w4y-404-font);
  color: var(--w4y-404-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  margin: 0 0 1.5rem;
}
.w4y-404 a {
  color: var(--w4y-404-red);
  text-decoration: none;
}
.w4y-404 img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

.w4y-404-hero {
  background: var(--w4y-404-cream);
  border-radius: 18px;
  box-shadow: var(--w4y-404-shadow);
  padding: 2.4rem 2.4rem 2.2rem;
  text-align: center;
}
.w4y-404-eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--w4y-404-red);
  font-weight: 700;
  margin: 0 0 .7rem;
}
.w4y-404-hero h1 {
  font-family: var(--w4y-404-head);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  line-height: 1.22;
  color: var(--w4y-404-ink);
  margin: 0 auto .8rem;
  max-width: 18em;
  text-transform: none;
}
.w4y-404-lead {
  margin: 0 auto 1.5rem;
  max-width: 34em;
  color: var(--w4y-404-soft);
  font-size: 1.05rem;
}

.w4y-404-search {
  display: flex;
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--w4y-404-pill);
  box-shadow: var(--w4y-404-shadow-card);
  border: 1px solid var(--w4y-404-line);
  overflow: hidden;
}
.w4y-404-search input[type="search"] {
  flex: 1;
  border: 0;
  padding: .95rem 1.3rem;
  font-size: 1.05rem;
  outline: none;
  background: transparent;
  color: var(--w4y-404-ink);
  min-width: 0;
  font-family: inherit;
  border-radius: 0;
  box-shadow: none;
}
.w4y-404-search input[type="search"]::placeholder {
  color: var(--w4y-404-muted);
}
.w4y-404-search input[type="search"]:focus {
  box-shadow: none;
}
.w4y-404-search:focus-within {
  box-shadow: var(--w4y-404-shadow-focus), var(--w4y-404-shadow-card);
}
.w4y-404-search button {
  background: var(--w4y-404-red);
  color: #fff;
  border: 0;
  padding: .95rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: inherit;
  border-radius: 0 var(--w4y-404-pill) var(--w4y-404-pill) 0;
}
.w4y-404-search button:hover {
  background: var(--w4y-404-red-h);
}

.w4y-404-actions {
  margin-top: 1.15rem;
  display: flex;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
}
.w4y-404-btn-ghost {
  display: inline-block;
  border: 1px solid var(--w4y-404-red);
  color: var(--w4y-404-red) !important;
  background: #fff;
  border-radius: var(--w4y-404-pill);
  padding: .55rem 1.2rem;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.3;
}
.w4y-404-btn-ghost:hover {
  background: var(--w4y-hover-bg, #faf3ef);
}

.w4y-404-section {
  margin-top: 2rem;
}
.w4y-404-section h2 {
  font-family: var(--w4y-404-head);
  font-size: 1.65rem;
  font-weight: 400;
  margin: 0;
  color: var(--w4y-404-ink);
  text-transform: none;
}
.w4y-404-sub {
  margin: .25rem 0 0;
  color: var(--w4y-404-soft);
  font-size: .98rem;
}
.w4y-404-section-head {
  margin: 0 0 1rem;
}

.w4y-404-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.w4y-404-tile {
  background: #fff;
  border-radius: var(--w4y-404-r-lg);
  box-shadow: var(--w4y-404-shadow-card);
  padding: 1.15rem 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .7rem;
  color: var(--w4y-404-ink) !important;
  min-height: 100%;
  transition: box-shadow .2s, transform .2s;
}
.w4y-404-tile:hover {
  box-shadow: var(--w4y-404-shadow-card-h);
  transform: translateY(-2px);
  color: var(--w4y-404-ink) !important;
}
.w4y-404-ico {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(58, 42, 38, .12), 0 2px 8px rgba(58, 42, 38, .08);
  background: var(--w4y-404-panel);
  flex: 0 0 auto;
}
.w4y-404-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.w4y-404-photo {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--w4y-404-panel);
}
.w4y-404-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.w4y-404-tile strong {
  font-family: var(--w4y-404-head);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.3;
}

.w4y-404-contact {
  margin-top: 2rem;
  background: #fff;
  border-radius: var(--w4y-404-r-lg);
  box-shadow: var(--w4y-404-shadow-card);
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.w4y-404-contact img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(58, 42, 38, .12);
}
.w4y-404-contact h2 {
  font-family: var(--w4y-404-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 .15rem;
}
.w4y-404-contact p {
  margin: 0;
  color: var(--w4y-404-soft);
  font-size: .98rem;
}
.w4y-404-phone {
  margin-left: auto;
  background: var(--w4y-404-red);
  color: #fff !important;
  border-radius: var(--w4y-404-pill);
  padding: .7rem 1.25rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--w4y-404-shadow-cta);
}
.w4y-404-phone:hover {
  background: var(--w4y-404-red-h);
  color: #fff !important;
}

@media (prefers-reduced-motion: reduce) {
  .w4y-404-tile {
    transition: none;
  }
  .w4y-404-tile:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .w4y-404-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .w4y-404-hero {
    padding: 1.5rem 1.15rem 1.35rem;
    border-radius: 14px;
  }
  .w4y-404-hero h1 {
    font-size: 1.55rem;
  }
  .w4y-404-search {
    flex-direction: column;
    border-radius: 12px;
  }
  .w4y-404-search button {
    border-radius: 0 0 12px 12px;
    padding: .85rem;
    width: 100%;
  }
  .w4y-404-actions .w4y-404-btn-ghost {
    width: 100%;
    text-align: center;
  }
  .w4y-404-tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: .7rem;
  }
  .w4y-404-ico {
    width: 72px;
    height: 72px;
  }
  .w4y-404-contact {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem 1rem;
  }
  .w4y-404-phone {
    margin: .4rem 0 0;
  }
}
