:root {
  --navy: #0a2540;
  --navy-2: #123a63;
  --blue: #3fa0e0;
  --blue-dark: #247fbd;
  --steel: #edf3f8;
  --light: #f4f8fc;
  --white: #ffffff;
  --text: #0f2a44;
  --muted: #5f7f9b;
  --line: rgba(18, 58, 99, 0.12);
  --shadow: 0 18px 45px rgba(10, 37, 64, 0.18);
  --soft-shadow: 0 8px 26px rgba(9,22,36,.06);
  --radius: 22px;
  --radius-sm: 16px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 58, 99, .98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 22px;
}

.logo {
  display: flex;
  flex-direction: column;
  letter-spacing: -0.035em;
  line-height: 1;
  font-weight: 900;
  font-size: 25px;
  color: white;
  white-space: nowrap;
}

.logo small {
  letter-spacing: .18em;
  font-size: 10px;
  font-weight: 800;
  color: rgba(255,255,255,.62);
  margin-top: 6px;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: white;
  font-weight: 700;
  font-size: 15px;
}

nav a {
  opacity: .92;
  transition: .2s ease;
}

nav a:hover,
nav a.active { opacity: 1; color: #dff2ff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: .02em;
  cursor: pointer;
  transition: .2s ease;
  min-height: 48px;
  padding: 0 24px;
  font-size: 15px;
  text-align: center;
  line-height: 1.2;
}

.btn-primary {
  background: var(--blue);
  color: white;
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  color: white;
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.08);
}

.btn-secondary:hover { background: rgba(255,255,255,.14); }

.btn-light {
  color: var(--navy);
  border: 1px solid var(--line);
  background: white;
}

.btn-light:hover { background: var(--steel); }

.menu-toggle { display: none; }

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08);
  cursor: pointer;
}

.menu-button span,
.menu-button span:before,
.menu-button span:after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: white;
  position: relative;
  transition: .2s ease;
}

.menu-button span:before,
.menu-button span:after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-button span:before { top: -7px; }
.menu-button span:after { top: 7px; }

.mobile-panel {
  display: none;
  position: absolute;
  left: 12px;
  right: 12px;
  top: 76px;
  background: white;
  color: var(--navy);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(7,27,51,.28);
  border: 1px solid rgba(18,58,99,.12);
}

.mobile-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  font-weight: 900;
  color: var(--navy);
}

.mobile-panel a:hover { background: var(--light); }

.mobile-panel .mobile-cta {
  margin-top: 10px;
  background: var(--blue);
  color: white;
  justify-content: center;
}

.menu-toggle:checked ~ .mobile-panel { display: block; }

.menu-toggle:checked + .menu-button span { background: transparent; }
.menu-toggle:checked + .menu-button span:before { top: 0; transform: rotate(45deg); }
.menu-toggle:checked + .menu-button span:after { top: 0; transform: rotate(-45deg); }

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(7,27,51,.97), rgba(13,43,77,.94)),
    url('../images/www.lumixmetal hero.jpg') center/cover no-repeat;
  color: white;
}

.hero:before {
  content: "LUMIXMETAL s.r.o.";
  position: absolute;
  right: -30px;
  bottom: -55px;
  font-size: clamp(58px, 11vw, 150px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.08em;
  color: rgba(255,255,255,.045);
  pointer-events: none;
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 62%, rgba(47,143,211,.18) 62% 68%, transparent 68%),
    linear-gradient(135deg, transparent 0 72%, rgba(255,255,255,.10) 72% 75%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: 46px;
  padding: 34px 0 72px;
}

.hero h1 {
  font-size: clamp(40px, 5.5vw, 70px);
  line-height: .98;
  letter-spacing: -.07em;
  margin: 0 0 22px;
  max-width: 780px;
}

.hero p {
  color: rgba(255,255,255,.88);
  font-size: clamp(18px, 2vw, 22px);
  max-width: 690px;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.proofs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.proof {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  color: rgba(255,255,255,.92);
  font-weight: 800;
  font-size: 14px;
}

.hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-image {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 18px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--light);
  color: var(--navy);
  padding: 62px 0 34px;
}

.page-hero:before {
  content: "LUMIXMETAL s.r.o.";
  position: absolute;
  right: -30px;
  bottom: -34px;
  font-size: clamp(54px, 10vw, 138px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.08em;
  color: rgba(16,32,48,.045);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -.055em;
}

.page-hero p {
  margin: 0;
  max-width: 760px;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--muted);
}

section {
  padding: 76px 0;
  scroll-margin-top: 70px;
}

#sortiment, .sortiment-section {
  padding: 82px 0;
  background:
    radial-gradient(circle at top right, rgba(63,160,224,.12), transparent 34%),
    var(--light);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 30px;
}

#sortiment .section-head,
.sortiment-section .section-head {
  align-items: center;
  margin-bottom: 34px;
}

#sortiment .section-head h2,
.sortiment-section .section-head h2 {
  font-size: clamp(32px, 4vw, 50px);
  max-width: 620px;
}

.section-head h2 {
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--navy);
  font-weight: 800;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 570px;
  font-size: 17px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  position: relative;
  overflow: hidden;
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
  transition: .2s ease;
  min-height: 230px;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card:after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -55px;
  top: -55px;
  background: rgba(47,143,211,.10);
  border-radius: 50%;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--navy);
}

.card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.card a {
  color: var(--blue-dark);
  font-weight: 900;
}

.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 42px;
  align-items: center;
}

.about-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 420px;
  background: linear-gradient(135deg, #0a2540, #1f5f9c);
  box-shadow: var(--shadow);
}

.about-visual img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  opacity: .9;
}

.about-visual:after {
  content: "STEEL";
  position: absolute;
  left: 24px;
  bottom: 10px;
  font-size: 86px;
  font-weight: 900;
  letter-spacing: -.08em;
  color: rgba(255,255,255,.14);
}

.about h2 {
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -.05em;
  margin: 0 0 18px;
  color: var(--navy);
}

.about p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 22px;
}

.benefits {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}

.benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--light);
  border: 1px solid var(--line);
  font-weight: 800;
  color: var(--navy);
}

.check { color: var(--blue); font-weight: 900; }

.quote-section {
  background: var(--steel);
  position: relative;
  overflow: hidden;
}

.quote-section:before {
  content: "VÝKRES / SEZNAM / DOPRAVA";
  position: absolute;
  left: -20px;
  bottom: 0;
  font-size: clamp(42px, 8vw, 110px);
  font-weight: 900;
  letter-spacing: -.08em;
  color: rgba(16,32,48,.055);
  pointer-events: none;
}

.quote-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: start;
}

form, .admin-card {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: var(--navy);
  font-size: 14px;
}

input, textarea {
  width: 100%;
  border: 1px solid rgba(15,32,48,.18);
  background: #fbfdff;
  color: var(--text);
  border-radius: 14px;
  min-height: 50px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
  transition: .2s ease;
}

input:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(47,143,211,.13);
  background: white;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.full { grid-column: 1 / -1; }

.file-box {
  border: 1px dashed rgba(15,32,48,.28);
  background: #f8fafc;
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--muted);
  font-weight: 600;
}

.file-box strong { color: var(--navy); }

.file-box input {
  background: transparent;
  border: 0;
  padding: 10px 0 0;
  min-height: auto;
}

.submit-row {
  margin-top: 18px;
  display: grid;
  gap: 11px;
}

.submit-row .btn {
  width: 100%;
  border-radius: var(--radius-sm);
  min-height: 56px;
}

.legal {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.side-contact {
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
  overflow: hidden;
}

.side-contact:after {
  content: "CALL";
  position: absolute;
  right: -12px;
  bottom: -20px;
  font-size: 96px;
  font-weight: 900;
  letter-spacing: -.08em;
  color: rgba(255,255,255,.055);
}

.side-contact h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -.04em;
}

.side-contact p {
  color: rgba(255,255,255,.76);
  margin: 0 0 22px;
}

.contact-line {
  display: block;
  padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  font-weight: 900;
  color: white;
  position: relative;
  z-index: 2;
  overflow-wrap: anywhere;
}

.order-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
  position: relative;
  z-index: 2;
}


.side-contact .btn-outline {
  margin-top: 12px;
  width: 100%;
  position: relative;
  z-index: 2;
  background: transparent;
  border: 1px solid rgba(255,255,255,.45);
  color: white;
}

.side-contact .btn-outline:hover {
  background: rgba(255,255,255,.10);
}

.order-list div {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  font-weight: 800;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e0e8f0;
  box-shadow: var(--soft-shadow);
}

.news-img {
  height: 170px;
  background: url('../images/sklad_01.jpg') center/cover no-repeat;
}

.news-body { padding: 22px; }

.news-body time {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.news-body h3 {
  margin: 8px 0;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: -.03em;
}

.news-body p {
  margin: 0;
  color: var(--muted);
}

.contact { background: white; }

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 24px;
}

.contact-card, .map {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--light);
}

.contact-card { padding: 26px; }

.contact-card h3 {
  margin-top: 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.04em;
  color: var(--navy);
}

.contact-card a {
  color: var(--navy);
  font-weight: 900;
  display: block;
  margin: 10px 0;
  overflow-wrap: anywhere;
}

.map {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  box-shadow: 0 8px 26px rgba(9,22,36,.08);
  background: white;
  padding: 0;
}

.map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

.map-info {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 2;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(18,58,99,.12);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: 0 10px 28px rgba(10,37,64,.16);
  max-width: 320px;
}

.map-info strong {
  display: block;
  color: var(--navy);
  font-size: 17px;
  margin-bottom: 4px;
}

.map-info span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 22px;
  align-items: start;
}

.admin-note {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 0;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  padding: 16px;
}

.admin-item strong { color: var(--navy); display: block; }
.admin-item span { color: var(--muted); font-size: 14px; }

footer {
  background: var(--navy);
  color: rgba(255,255,255,.72);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

footer strong { color: white; }

@media (max-width: 1100px) {
  nav ul { gap: 17px; font-size: 14px; }
  .nav > .btn-primary { padding: 0 18px; }
}

@media (max-width: 980px) {
  nav ul { display: none; }
  .nav > .btn-primary { display: none; }
  .menu-button { display: inline-flex; }

  .hero-inner, .about-grid, .quote-grid, .contact-grid, .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding: 30px 0 62px;
  }

  .hero-card { order: -1; }
  .hero-image { height: 330px; }

  .cards, .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .side-contact { position: static; }
}

@media (max-width: 650px) {
  html { scroll-padding-top: 66px; }
  section { scroll-margin-top: 66px; }

  .container { width: min(100% - 24px, 1160px); }

  body {
    line-height: 1.65;
    font-size: 16px;
  }

  .nav {
    min-height: 64px;
    gap: 12px;
  }

  .logo {
    font-size: 19px;
    max-width: 62vw;
    white-space: normal;
  }

  .logo small {
    font-size: 8px;
    letter-spacing: .12em;
    line-height: 1.25;
  }

  .mobile-panel { top: 72px; }

  .hero { background-position: center; }

  .hero:before {
    right: -12px;
    bottom: -22px;
    font-size: 58px;
  }

  .hero:after { opacity: .45; }

  .hero-inner {
    gap: 18px;
    padding: 14px 0 38px;
  }

  .hero-card {
    padding: 8px;
    border-radius: 18px;
    box-shadow: 0 14px 32px rgba(10,37,64,.2);
  }

  .hero-image {
    height: 185px;
    border-radius: 14px;
  }

  .hero h1 {
    font-size: clamp(31px, 10vw, 39px);
    line-height: 1.04;
    letter-spacing: -.052em;
    margin-bottom: 14px;
  }

  .hero p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .hero-actions {
    gap: 10px;
    margin-bottom: 18px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 49px;
  }

  .proofs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .proof {
    width: 100%;
    border-radius: 14px;
    font-size: 14px;
    padding: 9px 13px;
  }

  section, .page-hero { padding: 52px 0; }

  #sortiment, .sortiment-section { padding: 62px 0; }

  .section-head { margin-bottom: 22px; }

  .section-head h2,
  #sortiment .section-head h2,
  .sortiment-section .section-head h2 {
    font-size: 30px;
    line-height: 1.12;
  }

  .section-head p { font-size: 16px; }

  .cards, .news-grid, .form-grid {
    grid-template-columns: 1fr;
  }

  .cards { gap: 14px; }

  .card {
    padding: 22px;
    min-height: auto;
    border-radius: 18px;
  }

  .card h3 { font-size: 20px; }

  .about-grid { gap: 28px; }

  .about-visual {
    min-height: 240px;
    border-radius: 18px;
  }

  .about-visual img { height: 260px; }

  .about-visual:after {
    font-size: 54px;
    left: 16px;
  }

  .about h2 {
    font-size: 31px;
    line-height: 1.12;
  }

  .about p { font-size: 16.5px; }

  .benefit {
    padding: 13px;
    font-size: 15px;
  }

  form, .admin-card {
    padding: 18px;
    border-radius: 18px;
  }

  input, textarea {
    min-height: 52px;
    font-size: 16px;
  }

  .file-box { padding: 14px; }

  .side-contact {
    padding: 22px;
    border-radius: 18px;
  }

  .side-contact h3 { font-size: 24px; }

  .news-card { margin-bottom: 14px; }

  .contact-grid { gap: 14px; }

  .contact-card {
    padding: 21px;
    border-radius: 18px;
  }

  .map { border-radius: 18px; }

  .map-info {
    position: static;
    border-radius: 0;
    box-shadow: none;
    max-width: none;
  }

  .map iframe { height: 320px; }

  .footer-inner {
    display: grid;
    gap: 12px;
  }
}

@media (max-width: 380px) {
  .container { width: min(100% - 18px, 1160px); }
  .logo { font-size: 17px; }
  .menu-button { width: 42px; height: 40px; }
  .hero h1 { font-size: 30px; }
  .section-head h2,
  #sortiment .section-head h2,
  .sortiment-section .section-head h2 { font-size: 27px; }
}


/* --- LUMIXMETAL: sjednocená sekce Poptávka / Objednávka --- */
.quote-grid-dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.quote-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
}

.quote-card h3 {
  margin: 0 0 20px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.04em;
  color: var(--navy);
}

.inquiry-card {
  background: white;
}

.order-card {
  background: var(--navy);
  color: white;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
}

.order-card:after {
  content: "CALL";
  position: absolute;
  right: -12px;
  bottom: -22px;
  font-size: 96px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.08em;
  color: rgba(255,255,255,.055);
  pointer-events: none;
}

.order-card h3,
.order-card label,
.order-card .file-box strong {
  color: white;
}

.order-card .file-box {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.26);
  color: rgba(255,255,255,.82);
}

.order-card input,
.order-card textarea {
  background: rgba(255,255,255,.96);
  color: var(--text);
}

.order-card .legal {
  color: rgba(255,255,255,.68);
}

.order-card .btn-outline {
  width: 100%;
  border-radius: var(--radius-sm);
  min-height: 56px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.45);
  color: white;
}

.order-card .btn-outline:hover {
  background: rgba(255,255,255,.10);
}

.camera-box {
  border-style: dashed;
}

@media (max-width: 980px) {
  .quote-grid-dual {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .quote-card h3 {
    font-size: 26px;
  }
}

/* ── Aktuality: odstavce ── */
.news-text {
  color: var(--muted);
}
.news-text p {
  margin: 0 0 0.6em;
}
.news-text p:last-child {
  margin-bottom: 0;
}
