/* ---------- gateway: three categories ---------- */
.gate { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 100svh; min-height: 680px; max-height: 1100px; background: var(--ink); overflow: hidden; }
.gate-top { position: absolute; z-index: 5; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: var(--s5); padding: 22px var(--gutter); pointer-events: none; }
.gate-top > * { pointer-events: auto; }
.gate-top .logo img { width: clamp(132px, 12vw, 180px); }
.gate-top .top-links { margin-left: auto; display: flex; align-items: center; gap: var(--s5); }
.gate-top a { color: #fff; text-decoration: none; font-family: var(--display); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.gate-top a:hover { text-decoration: underline; text-decoration-color: #fff; }
.gate-top .tel { font-size: 1.25rem; display: inline-flex; gap: 8px; align-items: center; }
.gate-top .tel svg { width: 18px; height: 18px; color: #fff; }

.door { padding-top: 96px; --door-bg: var(--ink); --door-fg: #fff; --art: rgba(255,255,255,.28);
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; color: var(--door-fg); background: var(--door-bg);
  text-decoration: none; overflow: hidden; isolation: isolate; transition: filter .6s var(--ease-out); }
.door:hover { text-decoration: none; }
.door--pisek { --door-bg: var(--paper-2); --door-fg: var(--ink); --art: rgba(20,20,20,.3); }
.door--kontejnery { --door-bg: var(--red); --door-fg: #fff; --art: rgba(255,255,255,.55); }
.door + .door { border-left: 1px solid rgba(20,20,20,.9); }
.door > img { display: none; }

.door-art { display: block; flex: none; margin: auto; width: min(78%, 400px); height: auto; max-height: 34vh; overflow: visible; transition: transform 1.2s var(--ease-out); }
.door:hover .door-art { transform: translateY(-6px); }
.art-routes .r-lines line { stroke: var(--red); stroke-width: 1.6; stroke-dasharray: 2 5; stroke-linecap: round; }
.art-routes .r-ovals ellipse { fill: var(--ink); stroke: var(--art); stroke-width: 1.6; }
.art-routes .r-ovals g:last-child ellipse, .art-routes .r-ovals g:first-child ellipse { stroke: #fff; }
.art-routes text { fill: rgba(255,255,255,.75); font: 800 15px var(--display); text-anchor: middle; dominant-baseline: central; letter-spacing: .04em; }
.art-grain circle { fill: var(--art); }
.art-grain text { fill: rgba(20,20,20,.6); font: 700 13px var(--display); letter-spacing: .05em; dominant-baseline: middle; }
.art-bins path { fill: none; stroke: var(--art); stroke-width: 2; }
.art-bins text { fill: rgba(255,255,255,.9); font: 800 22px var(--display); text-anchor: middle; letter-spacing: .04em; }
/* the middle panel carries the disc; its grain sits lower */
.door--pisek .door-art { margin: auto auto var(--s6); width: min(80%, 400px); max-height: 18vh; }
.door--kontejnery .door-art { width: min(86%, 460px); }

.door-copy { padding: 0 var(--gutter) clamp(28px, 6vh, 64px); transition: opacity .6s var(--ease-out); position: relative; }
.door h2 { font-size: clamp(2.4rem, 4.2vw, 4.5rem); color: var(--door-fg); margin-bottom: var(--s4); }
.door .scale { margin-bottom: var(--s5); max-width: 360px; border-color: currentColor;
  background: linear-gradient(to right, currentColor 1px, transparent 1px) 0 100% / 60px 14px repeat-x, linear-gradient(to right, currentColor 1px, transparent 1px) 0 100% / 12px 6px repeat-x; opacity: .8; }
.door .btn { pointer-events: none; --bg: var(--door-fg); --fg: var(--door-bg); border-color: var(--door-fg); }
.door--kontejnery .btn { --fg: var(--red-ink); }
.door:hover .btn, .door:focus-visible .btn { --bg: var(--door-bg); --fg: var(--door-fg); border-color: var(--door-fg); }
.door:hover .btn svg.arrow { transform: translateX(4px); }
.door:focus-visible { outline: 3px solid var(--door-fg); outline-offset: -8px; }

/* only the focused category keeps its light */
.gate[data-focus] .door:not(:hover):not(:focus-within) { filter: saturate(.25) brightness(.62); }
.gate[data-focus] .door--pisek:not(:hover):not(:focus-within) { filter: brightness(.82); }

.gate .disc { position: absolute; z-index: 4; left: 50%; top: 27%; width: min(26vmin, 280px); transform: translate(-50%, -50%); filter: drop-shadow(0 14px 24px rgba(0,0,0,.28)); pointer-events: none; }

@media (max-width: 860px) {
  .gate { grid-template-columns: 1fr; height: auto; min-height: 0; max-height: none; }
  .door { padding-top: 0; min-height: calc(33.4svh - 4px); background: var(--ink); color: #fff; justify-content: flex-end; }
  .door > img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
  .door::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,10,10,.85) 0%, rgba(10,10,10,.45) 45%, rgba(10,10,10,.1) 100%); }
  .door-art { display: none; }
  .door h2 { font-size: clamp(2rem, 9vw, 2.75rem); margin-bottom: var(--s3); color: #fff; }
  .door .scale { display: none; }
  .door .btn { --bg: var(--paper); --fg: var(--ink); border-color: var(--paper); min-height: 46px; }
  .door--kontejnery .btn { --fg: var(--ink); }
  .door + .door { border-left: 0; border-top: 1px solid rgba(255,255,255,.55); }
  .door--doprava { padding-top: 64px; }
  .door-copy { padding: 0 var(--gutter) 22px; }
  .gate[data-focus] .door:not(:hover):not(:focus-within) { filter: none; }
  .gate .disc { top: calc((33.4svh - 4px) * 1); left: auto; right: 12px; transform: translate(0, -50%); width: min(34vw, 140px); }
  .gate .disc-readout { width: 60%; top: 58%; }
  .gate .disc-readout .r-state { display: none; }
}

/* ---------- company ---------- */
.firm { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s8); align-items: start; }
.firm-photos { align-self: stretch; display: grid; grid-template-columns: 1fr 1.35fr; gap: 2px; background: var(--ink); border: var(--rule); }
.firm-photos img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.firm-photos img { aspect-ratio: auto; min-height: 100%; }
@media (max-width: 960px) { .firm-photos img { aspect-ratio: 3 / 4; min-height: 0; } }
.firm .facts { margin-top: var(--s6); }
@media (max-width: 960px) { .firm { grid-template-columns: 1fr; gap: var(--s7); } }

/* ---------- social feed ---------- */
.social-intro { display: grid; gap: var(--s5); }
.social-intro .btn svg { width: 20px; height: 20px; }
.feed { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px; background: var(--ink); border: var(--rule); }
.post { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper-3); }
.post img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .4s; }
.post:hover img { transform: scale(1.05); filter: brightness(.8); }
.post-net { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; display: grid; place-items: center; background: var(--paper); color: var(--ink); border: var(--rule); }
.post-net svg { width: 18px; height: 18px; }
.feed-note { margin-top: var(--s3); font-size: .875rem; color: var(--ink-3); max-width: none; }
.hiring { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; padding: 18px 22px; border: var(--rule); background: var(--white); text-decoration: none; }
.hiring b { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: 1; }
.hiring span { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.hiring:hover b { color: var(--red-ink); }
@media (max-width: 960px) { .feed { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 861px) {
  .gate-top .top-links a:not(.tel) { display: none; }
}
@media (max-width: 640px) {
  .gate-top .top-links a:not(.tel) { display: none; }
  .gate-top { padding-top: 16px; }
}


.gate-top .langs { border-color: rgba(255,255,255,.75); }
.gate-top .langs a { color: #fff; }
.gate-top .langs a + a { border-left-color: rgba(255,255,255,.75); }
.gate-top .langs a[aria-current="true"] { background: #fff; color: var(--ink); }
.gate-top .langs a:hover:not([aria-current="true"]) { background: rgba(255,255,255,.15); text-decoration: none; }
.gate-top .logo { flex: none; }
@media (max-width: 640px) {
  .gate-top { gap: 10px; padding-left: 16px; padding-right: 16px; }
  .gate-top .logo img { width: 112px; }
  .gate-top .top-links { gap: 10px; }
  .gate-top .tel { font-size: 0; width: 36px; height: 30px; justify-content: center; border: 1px solid rgba(255,255,255,.75); }
  .gate-top .tel svg { width: 16px; height: 16px; }
  .gate-top .langs a { padding: 6px 6px; }
}

/* ---------- homepage notice (edited in the admin) ---------- */
.notice { display: flex; align-items: center; gap: 14px; padding: 16px var(--gutter); background: var(--ink); color: #fff; text-decoration: none; border-top: 1px solid rgba(255,255,255,.2); font-family: var(--display); font-weight: 700; font-size: clamp(1.125rem, 2vw, 1.5rem); letter-spacing: .02em; text-transform: uppercase; }
.notice:hover { background: var(--red); text-decoration: none; }
.notice-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none; box-shadow: 0 0 0 4px rgba(237,28,36,.25); }
.notice:hover .notice-dot { background: #fff; }
.notice svg { width: 22px; height: 22px; margin-left: auto; flex: none; }

/* brand icons inside the social section */
.social-intro .btn .ico { width: 22px; height: 22px; }
.post-net { background: transparent; border: 0; width: 30px; height: 30px; }
.post-net .ico { width: 30px; height: 30px; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.post-net .ico-ig { border-radius: 8px; }
.firm-photos.one { grid-template-columns: 1fr; }
.firm-photos.one img { aspect-ratio: auto; min-height: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) { .firm-photos.one img { aspect-ratio: 800 / 540; } }
