@import url("https://kovovyroba-chlad.cz/wp-content/uploads/elementor/google-fonts/css/roboto.css");

/* Design ploty a brány — samostatná stránka k nahrání na kovovyroba-chlad.cz */

:root {
  --gold: #f2af02;
  --ink: #ffffff;
  --muted: #c8c8c8;
  --line: #4b4b4b;
  --card: #111111;
  --header: 72px;
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #000;
  color: var(--ink);
  font-family: "Roboto", "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }

a { color: var(--gold); }

h1, h2, h3 {
  font-family: "Roboto", "Segoe UI", sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.98;
  text-transform: uppercase;
}

p { color: var(--muted); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 80;
  background: #fff;
  color: #000;
  padding: 8px 12px;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #000;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header);
}

.brand img {
  display: block;
  height: 52px;
  width: auto;
}

.nav { margin-left: auto; }

.nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 14px;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current="page"] { border-bottom-color: #fff; }

.header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 8px;
  padding: 8px 22px;
  border-radius: 78px;
  background: var(--gold);
  color: #000;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 4px;
  background: var(--gold);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 11px;
  background: #000;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 78px;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.btn-primary {
  flex-direction: row-reverse;
  padding: 6px 8px 6px 26px;
  background: var(--gold);
  color: #000;
}

.btn-primary::before {
  content: "";
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2af02' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.btn-ghost {
  padding: 6px 22px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(820px, calc(100svh - var(--header)));
  overflow: hidden;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 52%, rgba(0, 0, 0, 0.25) 100%),
    rgba(0, 0, 0, 0.28);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 72px 0 64px;
  max-width: 760px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  max-width: 11ch;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  color: #fff;
}

.hero h1 span { color: var(--gold); }

.hero .lead {
  max-width: 38ch;
  margin: 0 0 28px;
  color: #fff;
  font-size: 1.05rem;
}

.slats {
  position: absolute;
  z-index: 1;
  right: 7vw;
  bottom: 64px;
  display: grid;
  gap: 10px;
  width: min(220px, 28vw);
}

.slats i {
  display: block;
  height: 8px;
  border-radius: 8px;
  background: var(--gold);
  transform-origin: left center;
  animation: slat 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.slats i:nth-child(2) { animation-delay: 0.12s; width: 86%; background: #fff; }
.slats i:nth-child(3) { animation-delay: 0.22s; width: 70%; }
.slats i:nth-child(4) { animation-delay: 0.32s; width: 92%; background: #fff; }
.slats i:nth-child(5) { animation-delay: 0.42s; width: 58%; }

.hero-copy > * { animation: rise 0.8s ease both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }

.ticker {
  overflow: hidden;
  border-block: 1px solid #222;
  background: #000;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
}

.ticker p {
  margin: 0;
  padding: 14px 0;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker b { color: var(--gold); font-weight: 500; }

.pattern-nav {
  padding: 28px 0 8px;
}

.pattern-nav ul {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pattern-nav a {
  display: grid;
  gap: 10px;
  min-height: 112px;
  padding: 16px 14px;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  background: #0d0d0d;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pattern-nav a:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.pattern-nav svg {
  width: 36px;
  height: 36px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.6;
}

.pattern-nav span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro { padding: 72px 0 24px; }

.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: end;
}

.intro h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.intro h2 span { color: var(--gold); }

.dim-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 0;
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dim-rule::before,
.dim-rule::after {
  content: "";
  height: 1px;
  background: var(--gold);
}

.dim-rule::before { width: 18px; }
.dim-rule::after { flex: 1; transform-origin: left center; }

.reveal.is-in .dim-rule::after { animation: slat 0.8s ease both; }

.chapter {
  position: relative;
  padding: 36px 0 12px;
}

.chapter-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
}

.chapter.is-flip .chapter-grid { grid-template-columns: 0.88fr 1.12fr; }
.chapter.is-flip .plate { order: 2; }

.idx {
  margin: 0 0 8px;
  color: transparent;
  font-size: clamp(3.2rem, 6vw, 5.2rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.8;
  -webkit-text-stroke: 1px rgba(242, 175, 2, 0.85);
}

.chapter h2 {
  margin: 0 0 16px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.chapter p { max-width: var(--measure); }

.plate {
  position: relative;
  z-index: 0;
  display: grid;
  margin: 0;
}

.plate-media {
  grid-area: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
}

.plate img {
  display: block;
  width: 100%;
  transition: transform 0.7s ease;
}

.plate:hover img { transform: scale(1.045); }

.plate::after {
  content: "";
  grid-area: 1 / 1;
  z-index: -1;
  align-self: stretch;
  justify-self: stretch;
  margin: 16px -12px -12px 16px;
  border: 1px solid var(--gold);
  border-radius: 18px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.reveal.is-in .plate::after { opacity: 1; }

.plate figcaption {
  grid-area: 2 / 1;
  position: relative;
  z-index: 1;
  margin: 28px 0 0;
  color: #9a9a9a;
  font-size: 14px;
  line-height: 1.45;
}

.sheet {
  margin-top: 28px;
  padding: 64px 0;
  background-color: #070707;
  background-image:
    linear-gradient(rgba(242, 175, 2, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 175, 2, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}

.sheet h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.drawings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 28px;
}

.sheet-card {
  margin: 0;
  padding: 22px 18px 26px;
  background:
    linear-gradient(#f2af02, #f2af02) 0 0 / 18px 1px no-repeat,
    linear-gradient(#f2af02, #f2af02) 0 0 / 1px 18px no-repeat,
    linear-gradient(#f2af02, #f2af02) 100% 0 / 18px 1px no-repeat,
    linear-gradient(#f2af02, #f2af02) 100% 0 / 1px 18px no-repeat,
    linear-gradient(#f2af02, #f2af02) 0 100% / 18px 1px no-repeat,
    linear-gradient(#f2af02, #f2af02) 0 100% / 1px 18px no-repeat,
    linear-gradient(#f2af02, #f2af02) 100% 100% / 18px 1px no-repeat,
    linear-gradient(#f2af02, #f2af02) 100% 100% / 1px 18px no-repeat,
    #0c0c0c;
}

.sheet-card img {
  display: block;
  width: 100%;
  max-height: 640px;
  object-fit: contain;
  background: #f4f1ea;
}

.sheet-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: #ddd;
  font-size: 14px;
}

.dim {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.order { padding: 72px 0; }

.order h2 {
  margin: 0 0 28px;
  max-width: 16ch;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 180px;
  padding: 22px 22px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.steps strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 22px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.steps li { color: var(--muted); }

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.closing {
  padding: 0 0 72px;
}

.closing-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 36px 40px;
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(242, 175, 2, 0.14), transparent 42%),
    #111;
  border: 1px solid #2a2a2a;
}

.closing h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.site-footer {
  padding: 36px 0 28px;
  border-top: 1px solid #222;
  color: #aaa;
  font-size: 14px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

.site-footer p { margin: 0 0 6px; color: #aaa; }

.js .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(28px);
}

.reveal {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in { opacity: 1; transform: none; }

.reveal:nth-child(2) { transition-delay: 0.08s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes slat {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 1024px) {
  .header-phone { display: none; }
  .header-inner { position: relative; }
  .nav-toggle {
    display: block;
    position: absolute;
    right: 0;
    top: 13px;
    z-index: 5;
  }
  .nav {
    display: none;
    position: absolute;
    z-index: 6;
    inset: var(--header) 0 auto 0;
    margin: 0;
    padding: 8px 12px 16px;
    background: #000;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
  .nav a[aria-current="page"],
  .nav a:hover { background: var(--gold); color: #000; border-bottom-color: transparent; }
  .pattern-nav ul { grid-template-columns: repeat(3, 1fr); }
  .intro-grid,
  .chapter-grid,
  .chapter.is-flip .chapter-grid,
  .drawings,
  .steps { grid-template-columns: 1fr; }
  .chapter.is-flip .plate { order: -1; }
  .slats { display: none; }
  .closing-band { flex-direction: column; align-items: flex-start; padding: 28px 22px; }
}

@media (max-width: 640px) {
  .pattern-nav ul { grid-template-columns: repeat(2, 1fr); }
  .hero-copy { padding: 48px 0 40px; }
  .hero h1 { font-size: 2.5rem; }
  .sheet-card figcaption { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal:not(.is-in),
  .hero-copy > *,
  .slats i { animation: none; opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .plate img,
  .pattern-nav a,
  .plate::after,
  .dim-rule::after { transition: none; animation: none; }
  .plate:hover img,
  .pattern-nav a:hover { transform: none; }
}
