 *{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Inter',sans-serif;
  background:#f3f4f6;
  color:#111827;
  line-height:1.6;
}

img{
  max-width:100%;
  display:block;
}

.container{
  max-width:1200px;
  margin:auto;
  padding:0 20px;
}

/* HEADER */
.header{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  z-index:100;
  padding:20px 0;
}

.header-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
}

.logo{
  font-size:34px;
  font-weight:800;
  color:#fff;
  letter-spacing:1px;
  line-height:1;
  text-decoration:none;
  flex-shrink:0;
}

.logo span{
  display:block;
  font-size:11px;
  font-weight:500;
  letter-spacing:2px;
}

.nav{
  display:flex;
  align-items:center;
  gap:clamp(16px,2vw,30px);
  flex-wrap:nowrap;
  min-width:0;
}

.nav a{
  color:#fff;
  text-decoration:none;
  font-weight:500;
  transition:0.3s;
  white-space:nowrap;
  font-size:clamp(13px,1vw,15px);
}

.nav a:hover,
.nav a.active{
  color:#60a5fa;
}

.header-btn{
  background:#2563eb;
  color:#fff;
  padding:12px 20px;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  transition:0.3s;
}

.header-btn:hover{
  background:#1d4ed8;
}

/* HERO */
.hero{
    min-height:720px;
    display:flex;
    align-items:center;

    background:
    linear-gradient(rgba(0,0,0,0.72),rgba(0,0,0,0.72)),
    url('../img/cnc.png');

    background-size:cover;
    background-position:center;
}

 .hero .container{
    width:100%;
    display:flex;
    justify-content:flex-start;
    align-items:center;
}

.hero-content{
    max-width:700px;
    color:#fff;
    text-align: left;
    width:100%;
    margin:0;
   
}

.hero h1{
    font-size:74px;
    line-height:1;
    margin-bottom:28px;
    font-weight:800;
    text-align: left;
}

.hero p{
    font-size:21px;
    color:#d1d5db;
    line-height:1.7;
    margin-bottom:40px;
    text-align: left;
}

.hero-buttons{
    display:flex;
    gap:18px;
    flex-wrap:wrap;
}
.btn-primary,
.btn-secondary{
  padding:15px 28px;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  transition:0.3s;
}

.btn-primary{
  background:#2563eb;
  color:#fff;
}

.btn-primary:hover{
  background:#1d4ed8;
}

.btn-secondary{
  border:1px solid rgba(255,255,255,0.4);
  color:#fff;
}

.btn-secondary:hover{
  background:#fff;
  color:#111827;
}

/* SECTION */
.section{
  padding:90px 0;
}

.section-title{
  text-align:center;
  margin-bottom:60px;
}

.section-title span{
  color:#2563eb;
  font-size:14px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
}

.section-title h2{
  font-size:42px;
  margin-top:10px;
}

/* STORY */
.story-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:50px;
  align-items:center;
}

.story-image img{
  border-radius:16px;
  box-shadow:0 10px 30px rgba(0,0,0,0.1);
}

.story-text h3{
  font-size:40px;
  line-height:1.2;
  margin-bottom:25px;
}

.story-text p{
  margin-bottom:18px;
  color:#4b5563;
}

/* STATS */
.stats{
  background:#0f172a;
  color:#fff;
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:30px;
}

.stat-box{
  text-align:center;
  padding:20px;
}

.stat-box h3{
  font-size:54px;
  margin-bottom:10px;
  color:#60a5fa;
}

.stat-box p{
  color:#cbd5e1;
}

/* TECHNOLOGY */
.tech-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:25px;
}

.tech-card{
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 5px 20px rgba(0,0,0,0.08);
  transition:0.3s;
}

.tech-card:hover{
  transform:translateY(-6px);
}

.tech-card img{
  height:220px;
  width:100%;
  object-fit:cover;
}

.tech-content{
  padding:25px;
}

.tech-content h3{
  margin-bottom:12px;
  font-size:24px;
}

.tech-content p{
  color:#4b5563;
}

.tech-footer{
  background:#2563eb;
  color:#fff;
  text-align:center;
  padding:14px;
  font-weight:600;
}

/* DEVELOPMENT */
.development{
  background:#111827;
  color:#fff;
}

.development-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:50px;
  align-items:center;
}

.development h2{
  font-size:42px;
  margin-bottom:25px;
}

.development p{
  color:#d1d5db;
  margin-bottom:20px;
}

.dev-list{
  list-style:none;
}

.dev-list li{
  margin-bottom:12px;
  color:#dbeafe;
}

.dev-image img{
  border-radius:16px;
}

/* CERT */
.cert-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}

.cert-box{
  background:#fff;
  border:1px solid #d1d5db;
  border-radius:12px;
  padding:35px 20px;
  text-align:center;
}

.cert-box h3{
  margin-bottom:10px;
}

.cert-box p{
  color:#6b7280;
  font-size:14px;
}

/* CTA */
.cta{
  position:relative;
  background:
  linear-gradient(rgba(0,0,0,0.7),rgba(0,0,0,0.7)),
  url('https://images.unsplash.com/photo-1581092580497-e0d23cbdf1dc?q=80&w=1600&auto=format&fit=crop') center/cover;
  color:#fff;
  text-align:center;
  padding:100px 20px;
}

.cta h2{
  font-size:48px;
  margin-bottom:20px;
}

.cta p{
  color:#d1d5db;
  margin-bottom:35px;
  font-size:18px;
}

/* FOOTER */
.footer{
  background:#0f172a;
  color:#fff;
  padding:70px 0 30px;
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:40px;
  margin-bottom:50px;
}

.footer h3{
  margin-bottom:20px;
}

.footer p,
.footer a{
  color:#cbd5e1;
  text-decoration:none;
  margin-bottom:10px;
  display:block;
}

.footer a:hover{
  color:#60a5fa;
}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.1);
  padding-top:20px;
  text-align:center;
  color:#94a3b8;
}

/* RESPONSIVE */
@media(max-width:1000px){

  .story-grid,
  .development-grid,
  .tech-grid,
  .stats-grid,
  .cert-grid,
  .footer-grid{
    grid-template-columns:1fr 1fr;
  }

}

@media(max-width:768px){

  .nav{
    display:none;
  }

  .hero h1{
    font-size:42px;
  }

  .hero p{
    font-size:18px;
  }

  .story-grid,
  .development-grid,
  .tech-grid,
  .stats-grid,
  .cert-grid,
  .footer-grid{
    grid-template-columns:1fr;
  }

  .section-title h2,
  .story-text h3,
  .development h2,
  .cta h2{
    font-size:32px;
  }
}

/* =========================================================
   SHARED COMPONENTS – doplnění pro menu, stroje a detail stroje
   Pozn.: základní layout (.container, .section, .hero, .footer)
   zůstává převzatý z původního css.css.
========================================================= */

.hidden{display:none!important;}

/* Header – doplňkové prvky používané na novějších stránkách */
.logo img{
  max-height:100px;
  width:auto;
  display:block;
}

.right-header{
  display:flex;
  align-items:center;
  gap:18px;
  flex-shrink:0;
}

.lang{
  color:#fff;
  font-size:14px;
}

.btn-header{
  background:#2563eb;
  color:#fff;
  padding:13px 22px;
  border-radius:8px;
  text-decoration:none;
  font-weight:700;
  transition:.3s;
}

.btn-header:hover{
  background:#1d4ed8;
}

.menu-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  z-index:200;
}

.menu-toggle span{
  width:28px;
  height:3px;
  background:#fff;
  border-radius:10px;
}

/* Hero – varianta se dvěma sloupci a statistikami */
.hero-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px;
  align-items:center;
  padding-top:110px;
}

.hero-image img{
  width:100%;
  height:420px;
  object-fit:cover;
  border-radius:26px;
  box-shadow:0 30px 80px rgba(0,0,0,.38);
}

.hero-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:28px;
  margin-top:60px;
}

.hero-stat{
  border-left:1px solid rgba(255,255,255,.12);
  padding-left:18px;
}

.hero-stat strong{
  color:#3b82f6;
  font-size:34px;
  display:block;
  margin-bottom:8px;
}

.hero-stat span{
  color:#94a3b8;
  font-size:14px;
}

.breadcrumb{
  color:#94a3b8;
  font-size:14px;
}

/* Strojní park */
.machine-section{
  background:#f4f6f9;
}

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

.machine-filter{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:34px;
}

.filter-btn{
  border:1px solid #cbd5e1;
  background:#fff;
  color:#334155;
  border-radius:999px;
  padding:10px 16px;
  font-weight:800;
  cursor:pointer;
  transition:.3s;
}

.filter-btn:hover,
.filter-btn.active{
  background:#2563eb;
  color:#fff;
  border-color:#2563eb;
}

.machine-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:26px;
  align-items:stretch;
}

.machine-card{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 35px rgba(0,0,0,.07);
  transition:.3s;
  display:flex;
  flex-direction:column;
  height:100%;
}

.machine-card:hover{
  transform:translateY(-7px);
  box-shadow:0 20px 50px rgba(37,99,235,.12);
}

.machine-card img{
  width:100%;
  height:210px;
  object-fit:cover;
  background:#e5e7eb;
}

.machine-body{
  padding:24px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.machine-body h3{
  font-size:22px;
  margin-bottom:6px;
  line-height:1.25;
}

.machine-type{
  color:#6b7280;
  font-size:14px;
  margin-bottom:18px;
}

.machine-short{
  color:#4b5563;
  line-height:1.6;
  font-size:14px;
  margin-bottom:18px;
}

.machine-specs{
  display:grid;
  gap:9px;
  margin-bottom:22px;
}

.machine-spec{
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:#4b5563;
  font-size:14px;
}

.machine-spec strong{
  color:#111827;
  text-align:right;
}

.machine-link{
  display:block;
  text-align:center;
  border:1px solid #e5e7eb;
  border-radius:9px;
  padding:12px;
  color:#2563eb;
  text-decoration:none;
  font-weight:800;
  font-size:14px;
  margin-top:auto;
}

.section-kicker{
  color:#2563eb;
  font-weight:700;
  text-transform:uppercase;
  font-size:14px;
  letter-spacing:1px;
  display:inline-block;
  margin-bottom:14px;
}

.section-kicker.light{
  color:#60a5fa;
}

/* Tmavé bloky a benefity */
.machine-benefits,
.dark-section{
  background:
    radial-gradient(circle at 90% 50%,rgba(37,99,235,.25),transparent 34%),
    linear-gradient(90deg,#020617,#071126);
  color:#fff;
}

.machine-benefits .section-title h2,
.dark-section .section-title h2{
  color:#fff;
}

.benefit-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:30px;
}

.benefit-card{
  border-left:1px solid rgba(255,255,255,.1);
  padding-left:24px;
}

.benefit-icon{
  font-size:38px;
  color:#3b82f6;
  margin-bottom:18px;
}

.benefit-card h3{
  font-size:18px;
  margin-bottom:12px;
}

.benefit-card p{
  color:#94a3b8;
  line-height:1.7;
  font-size:14px;
}

/* Detail stroje */
.detail-hero{
  min-height:620px;
}

.detail-visual-card{
  background:#fff;
  border-radius:24px;
  padding:26px;
  box-shadow:0 30px 80px rgba(0,0,0,.35);
}

.detail-main-image{
  width:100%;
  height:360px;
  object-fit:contain;
  border-radius:16px;
  background:#f8fafc;
}

.detail-thumbs{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-top:18px;
}

.detail-thumb{
  border:2px solid #e5e7eb;
  border-radius:10px;
  padding:6px;
  background:#f8fafc;
  cursor:pointer;
}

.detail-thumb.active{
  border-color:#2563eb;
}

.detail-thumb img{
  width:100%;
  height:70px;
  object-fit:cover;
  border-radius:6px;
}

.info-grid{
  display:grid;
  grid-template-columns:1.35fr .85fr;
  gap:0;
  background:#fff;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 10px 35px rgba(0,0,0,.07);
}

.params-box{
  padding:42px;
}

.params-box h2,
.usage-box h2{
  font-size:30px;
  margin-bottom:30px;
}

.params-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px 34px;
}

.param-item{
  display:flex;
  gap:14px;
  align-items:flex-start;
}

.param-icon{
  color:#2563eb;
  font-size:22px;
  flex-shrink:0;
}

.param-item strong{
  display:block;
  font-size:14px;
  margin-bottom:6px;
}

.param-item span{
  color:#64748b;
  font-size:14px;
  line-height:1.5;
}

.usage-box{
  background:#020617;
  color:#fff;
  padding:42px;
}

.usage-box ul{
  list-style:none;
  display:grid;
  gap:18px;
}

.usage-box li{
  color:#cbd5e1;
  line-height:1.6;
}

.usage-box li::before{
  content:"✓";
  color:#3b82f6;
  font-weight:800;
  margin-right:10px;
}

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

.tag-card{
  background:#fff;
  border-radius:16px;
  padding:24px;
  box-shadow:0 10px 35px rgba(0,0,0,.06);
  font-weight:800;
}

.error-box{
  background:#fff;
  border-radius:22px;
  padding:42px;
  box-shadow:0 10px 35px rgba(0,0,0,.07);
}

/* CTA pro strojní park */
.machine-cta-section{
  background:#f4f6f9;
  padding-bottom:90px;
}

.machine-cta{
  background:
    linear-gradient(90deg,rgba(2,6,23,.96),rgba(7,27,59,.88)),
    url('../img/cnc.png') center/cover no-repeat;
  color:#fff;
  border-radius:24px;
  padding:48px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:40px;
}

.machine-cta h2{
  font-size:34px;
  margin-bottom:10px;
}

.machine-cta p{
  color:#cbd5e1;
  line-height:1.7;
}

/*PRODUCT GRID PRO STROJE*/
.product-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
}

.product-card{
  background:#fff;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 35px rgba(0,0,0,.07);
}

.product-card img{
  width:100%;
  height:220px;
  object-fit:cover;
}

.product-card-body{
  padding:22px;
}

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

@media(max-width:1050px){
  .product-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:768px){
  .product-grid{
    grid-template-columns:1fr;
  }
}

/* Breakpoint menu – sjednoceno pod 1050px */
@media(max-width:1050px){
  .menu-toggle{
    display:flex;
  }

  .nav{
    display:none;
    position:absolute;
    top:78px;
    left:20px;
    right:20px;
    flex-direction:column;
    align-items:flex-start;
    background:#020617;
    padding:28px;
    border-radius:16px;
    z-index:200;
  }

  .nav.active{
    display:flex;
  }

  .right-header{
    display:none;
  }

  .hero-grid,
  .info-grid{
    grid-template-columns:1fr;
  }

  .machine-grid,
  .benefit-grid,
  .tag-grid{
    grid-template-columns:repeat(2,1fr);
  }

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

@media(max-width:768px){
  .hero{
    min-height:auto;
    padding:120px 0 70px;
  }

  .hero-grid{
    padding-top:0;
    gap:40px;
  }

  .hero h1{
    font-size:clamp(36px,11vw,46px);
    line-height:1.05;
  }

  .hero p{
    font-size:16px;
    line-height:1.6;
  }

  .hero-image img,
  .detail-main-image{
    height:260px;
  }

  .hero-buttons a{
    width:100%;
    text-align:center;
  }

  .hero-stats,
  .machine-grid,
  .benefit-grid,
  .tag-grid,
  .params-grid{
    grid-template-columns:1fr;
  }

  .machine-section-header,
  .machine-cta{
    flex-direction:column;
    align-items:flex-start;
  }

  .machine-cta{
    padding:34px;
  }

  .params-box,
  .usage-box{
    padding:28px;
  }

  .logo img{
    max-height:38px;
  }
}

.detail-more{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    margin-left:auto;
}

.btn-service-detail{
    display:inline-flex;
    align-items:center;
    gap:14px;

    padding:14px 22px;

    background:#2563eb;
    color:#fff;

    font-size:13px;
    font-weight:700;
    letter-spacing:.04em;

    text-decoration:none;
    border-radius:6px;

    transition:
        background .2s ease,
        transform .2s ease;
}

.btn-service-detail span{
    font-size:18px;
    line-height:1;
    transition:transform .2s ease;
}

.btn-service-detail:hover{
    background:#1d4ed8;
    transform:translateY(-2px);
}

.btn-service-detail:hover span{
    transform:translateX(4px);
}

/* =====================================================
   PROCESS – JAK PRACUJEME
===================================================== */

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

.process-card{
    position:relative;
    min-height:280px;
    overflow:hidden;
    border-radius:10px;

    background-size:cover;
    background-position:center;

    display:flex;
    align-items:flex-end;

    isolation:isolate;
}

.process-card::before{
    content:"";
    position:absolute;
    inset:0;

    background:
        linear-gradient(
            to bottom,
            rgba(15,23,42,.95) 0%,
            rgba(15,23,42,.75) 45%,
            rgba(15,23,42,.25) 100%
        );

    z-index:-1;
}

.process-content{
    width:100%;
    padding:24px;
    color:#fff;
}

.process-number{
    margin-bottom:10px;

    font-size:13px;
    font-weight:700;
    letter-spacing:.12em;

    color:#60a5fa;
}

.process-content h3{
    margin:0;

    font-size:18px;
    font-weight:700;
    line-height:1.2;
    letter-spacing:.02em;

    color:#fff;
}

.process-card{
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.process-card:hover{
    transform:translateY(-5px);
    box-shadow:0 18px 35px rgba(15,23,42,.18);
}


/* TABLET */

@media (max-width:1200px){

    .process-grid{
        grid-template-columns:repeat(3, 1fr);
    }

}


/* MOBIL */

@media (max-width:700px){

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

    .process-card{
        min-height:210px;
    }

}