/* =============================================================
   shared.css — K-Laser společné styly
   Používají: K-Laser.html, cube.html, cube-new.html, speciale.html
   ============================================================= */

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── PROMĚNNÉ ──────────────────────────────────────────────── */
:root {
  --red:        #c00000;
  --red-dark:   #8b0000;
  --red-soft:   rgba(192,0,0,.08);
  --black:      #000;
  --charcoal:   #111;
  --dark:       #1a1a1a;
  --mid:        #444;
  --muted:      #888;
  --border:     #e0e0e0;
  --light:      #f5f5f5;
  --white:      #fff;
  --font-head:  'Barlow Condensed', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --ease:       cubic-bezier(.25,.46,.45,.94);
  --ease-out:   cubic-bezier(.16,1,.3,1);
  --radius:     4px;
  --section-pad: clamp(80px, 10vw, 140px);
  --container:  1280px;
}

/* ─── ZÁKLADNÍ STYLY ────────────────────────────────────────── */
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ─── SCROLL ANIMATIONS ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ─── HEADER ────────────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
#header.scrolled {
  background: rgba(0,0,0,.96);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.logo {
  height: 36px;
  width: auto;
  display: flex;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--red);
  border-radius: 50% 50% 50% 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.logo span { color: var(--red); }

/* Navigace */
nav { display: flex; align-items: center; gap: 2px; }
nav a {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: color .2s, background .2s;
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 1px;
  background: var(--red);
  transition: left .25s var(--ease), right .25s var(--ease);
}
nav a:hover { color: var(--white); }
nav a:hover::after { left: 16px; right: 16px; }

.nav-cta {
  margin-left: 8px;
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--red-dark) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobilní menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.98);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: translateX(100%);
  transition: transform .4s var(--ease-out);
}
.mobile-nav.open { display: flex; transform: translateX(0); }
.mobile-nav a {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  padding: 12px 40px;
  transition: color .2s;
}
.mobile-nav a:hover { color: var(--red); }

/* ─── PAGE HERO (cube, cube-new, speciale) ──────────────────── */
.page-hero {
  background: var(--black);
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .15;
}
.page-hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(192,0,0,.12) 0%, transparent 60%);
}
.page-hero-content { position: relative; z-index: 2; }

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 28px;
}
.breadcrumb a { color: rgba(255,255,255,.4); transition: color .2s; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { color: rgba(255,255,255,.2); }
.breadcrumb strong { color: var(--red); }

.series-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); margin-bottom: 20px;
}
.series-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--red); }

.page-hero-title {
  font-family: var(--font-head);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 800; line-height: .9;
  letter-spacing: -.01em; text-transform: uppercase;
  color: var(--white); margin-bottom: 24px;
}
.page-hero-title span { color: var(--red); }

.page-hero-sub {
  font-size: clamp(.95rem, 1.3vw, 1.1rem);
  font-weight: 300; color: rgba(255,255,255,.6);
  max-width: 560px; line-height: 1.75; margin-bottom: 44px;
}

.hero-specs { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-spec-item { text-align: center; }
.hero-spec-num {
  font-family: var(--font-head); font-size: 2rem;
  font-weight: 800; color: var(--white); line-height: 1;
}
.hero-spec-num span { color: var(--red); }
.hero-spec-label {
  font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.4); margin-top: 4px;
}

/* ─── SEKCE — SPOLEČNÉ PRVKY ────────────────────────────────── */
.section-label {
  font-size: .75rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: ''; width: 24px; height: 1px;
  background: var(--red); flex-shrink: 0;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 800; line-height: .95;
  letter-spacing: -.01em; text-transform: uppercase;
  color: var(--black); margin-bottom: 18px;
}
.section-sub {
  font-size: 1rem; color: var(--muted);
  font-weight: 300; max-width: 560px; line-height: 1.75;
}

/* ─── TLAČÍTKA ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: .88rem;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 14px 30px; border-radius: var(--radius);
  cursor: pointer; border: none;
  transition: all .25s var(--ease);
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--red); color: var(--white);
  box-shadow: 0 8px 28px rgba(192,0,0,.3);
}
.btn-primary:hover {
  background: var(--red-dark); transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(192,0,0,.4);
}
.btn-ghost {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
}
.btn-ghost:hover { border-color: var(--white); transform: translateY(-2px); }

.btn-outline {
  background: transparent; color: var(--dark);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }

.btn-white { background: var(--white); color: var(--red); white-space: nowrap; }
.btn-white:hover {
  background: var(--light); transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,.18);
}

/* ─── LASER CARD (cube-new, speciale; + override v cube) ─────── */
.models-intro {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 40px;
  margin-bottom: 60px; flex-wrap: wrap;
}
.models-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 30px; }

.laser-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  position: relative;
}
.laser-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--red); transform: scaleX(0);
  transform-origin: left; transition: transform .4s var(--ease-out);
}
.laser-card:hover::after { transform: scaleX(1); }
.laser-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0,0,0,.1);
  border-color: rgba(192,0,0,.18);
}

.laser-img {
  height: 280px; background: var(--light);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 6rem;
  font-weight: 800; color: rgba(0,0,0,.04); letter-spacing: -.04em;
}
.laser-img-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .3; transition: opacity .4s, transform .5s var(--ease);
}
.laser-card:hover .laser-img-bg { opacity: .45; transform: scale(1.05); }

.laser-watt {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--font-head); font-size: 1rem; font-weight: 800;
  color: var(--white); background: var(--red);
  padding: 6px 14px; border-radius: 2px; letter-spacing: .04em;
}
.laser-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: .65rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  background: rgba(0,0,0,.75); color: var(--white);
  padding: 5px 12px; border-radius: 2px; backdrop-filter: blur(4px);
}

.laser-body { padding: 32px; }
.laser-series-tag {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--red); margin-bottom: 6px;
}
.laser-name {
  font-family: var(--font-head); font-size: 2rem;
  font-weight: 800; text-transform: uppercase;
  color: var(--black); letter-spacing: .02em; margin-bottom: 12px;
}
.laser-desc { font-size: .9rem; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }

.laser-specs { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.spec-item { background: var(--light); padding: 14px; border-radius: var(--radius); }
.spec-val { font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; color: var(--black); line-height: 1; }
.spec-key { font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.laser-features { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lf-item { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--mid); }
.lf-item::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--red); flex-shrink: 0;
}

/* ─── SROVNÁVACÍ TABULKA (cube, cube-new) ───────────────────── */
.table-wrap { overflow-x: auto; margin-top: 50px; }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
thead tr { background: var(--black); }
thead th {
  color: var(--white); font-family: var(--font-head);
  font-size: .9rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 16px 20px; text-align: left; white-space: nowrap;
}
thead th:first-child { color: rgba(255,255,255,.5); }
tbody tr { border-bottom: 1px solid var(--border); transition: background .2s; }
tbody tr:hover { background: var(--light); }
tbody td { padding: 14px 20px; color: var(--mid); vertical-align: middle; }
tbody td:first-child {
  font-family: var(--font-head); font-size: 1.05rem;
  font-weight: 700; color: var(--black);
  text-transform: uppercase; white-space: nowrap;
}
.td-red { color: var(--red); font-weight: 600; }
.check { color: var(--red); font-size: 1.1rem; }
.dash { color: var(--border); }

/* ─── CTA SEKCE ─────────────────────────────────────────────── */
#cta {
  padding: var(--section-pad) 0;
  background: var(--red);
  position: relative; overflow: hidden;
}
.cta-pattern {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 1px,
    transparent 1px, transparent 40px
  );
}
.cta-content {
  position: relative;
  display: grid; grid-template-columns: 1fr auto;
  gap: 60px; align-items: center;
}
.cta-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800; line-height: .95;
  letter-spacing: -.01em; text-transform: uppercase;
  color: var(--white);
}
.cta-sub { margin-top: 14px; font-size: 1rem; color: rgba(255,255,255,.7); font-weight: 300; }

/* ─── FOOTER ────────────────────────────────────────────────── */
#footer { background: var(--black); border-top: 1px solid rgba(255,255,255,.06); }
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px; padding: 72px 0 52px;
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { font-size: .84rem; color: rgba(255,255,255,.4); line-height: 1.7; max-width: 260px; }
.footer-socials { display: flex; gap: 10px; margin-top: 24px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4);
  transition: border-color .2s, color .2s, background .2s;
}
.social-btn:hover { border-color: var(--red); color: var(--white); background: var(--red); }

.footer-col-title {
  font-family: var(--font-head); font-size: .9rem;
  font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--white); margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: .83rem; color: rgba(255,255,255,.4); transition: color .2s; }
.footer-col ul li a:hover { color: rgba(255,255,255,.85); }

.footer-contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.footer-contact-item svg { color: var(--red); margin-top: 2px; flex-shrink: 0; }
.footer-contact-item span { font-size: .82rem; color: rgba(255,255,255,.4); line-height: 1.5; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 22px 0; display: flex;
  align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.footer-bottom p { font-size: .75rem; color: rgba(255,255,255,.28); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: .75rem; color: rgba(255,255,255,.28); transition: color .2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }

/* ─── RESPONZIVNÍ ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cta-content { grid-template-columns: 1fr; }
  .laser-specs { grid-template-columns: repeat(2,1fr); }
  .models-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 48px 0 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .laser-features { grid-template-columns: 1fr; }
  .hero-specs { gap: 24px; }
}
