:root {
    --yellow: #ffd400;
    --yellow-soft: #ffe45c;
    --black: #101010;
    --black-2: #191919;
    --white: #ffffff;
    --light: #f4f4f0;
    --grey: #858585;
    --line: #d9d9d3;
    --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Inter", Arial, sans-serif; color: var(--black); background: var(--white); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.container { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.section { padding: 110px 0; }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1000; height: 82px; background: rgba(16,16,16,.94); color: #fff; backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.08); transition: .3s ease; }
.site-header.scrolled { height: 70px; box-shadow: 0 10px 35px rgba(0,0,0,.18); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--yellow); color: var(--black); font: 800 20px/1 "Barlow Condensed", sans-serif; clip-path: polygon(0 0, 100% 0, 100% 72%, 74% 100%, 0 100%); }
.brand-name { font: 700 21px/1 "Barlow Condensed", sans-serif; letter-spacing: .06em; }
.brand-name b { color: var(--yellow); font-weight: 800; }
.desktop-nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.desktop-nav a { position: relative; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #d8d8d8; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 2px; background: var(--yellow); transition: .25s ease; }
.desktop-nav a:hover, .desktop-nav a.active { color: #fff; }
.desktop-nav a:hover::after, .desktop-nav a.active::after { right: 0; }
.header-phone { min-width: 190px; height: 82px; margin-right: -1px; padding: 0 18px; background: var(--yellow); color: var(--black); display: flex; align-items: center; gap: 12px; transition: .25s ease; }
.site-header.scrolled .header-phone { height: 70px; }
.header-phone:hover { background: #fff06b; }
.phone-icon { width: 31px; height: 31px; border: 1px solid rgba(0,0,0,.3); border-radius: 50%; display: grid; place-items: center; font-weight: 800; }
.header-phone small, .header-phone strong { display: block; }
.header-phone small { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 2px; }
.header-phone strong { font-size: 15px; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 0; background: var(--yellow); cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: #111; margin: 5px 0; transition: .25s ease; }
.mobile-nav { display: none; }

.hero { position: relative; min-height: 790px; padding: 150px 0 70px; background: var(--black); color: var(--white); overflow: hidden; }
.hero-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px); background-size: 80px 80px; mask-image: linear-gradient(to right, black, transparent 75%); }
.hero-yellow-shape { position: absolute; width: 40vw; height: 125%; right: -11vw; top: -10%; background: var(--yellow); transform: skewX(-9deg); }
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 45px; }
.hero-copy { max-width: 640px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #d1d1d1; margin-bottom: 24px; }
.eyebrow span { width: 34px; height: 4px; background: var(--yellow); }
.eyebrow.dark { color: #666; }
h1, h2, h3 { margin-top: 0; }
h1 { margin-bottom: 24px; font: 800 clamp(68px, 7.4vw, 116px)/.78 "Barlow Condensed", sans-serif; letter-spacing: -.025em; text-transform: uppercase; }
h1 em, h2 em { color: var(--yellow); font-style: normal; }
.hero-copy > p { max-width: 600px; margin: 0 0 34px; color: #b8b8b8; font-size: 16px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { min-height: 54px; padding: 0 24px; display: inline-flex; justify-content: center; align-items: center; gap: 22px; border: 1px solid transparent; text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .08em; cursor: pointer; transition: .25s ease; }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: var(--white); transform: translateY(-2px); }
.btn-outline { border-color: #4c4c4c; color: #fff; background: rgba(255,255,255,.02); }
.btn-outline:hover { border-color: #fff; }
.hero-meta { margin-top: 54px; padding-top: 25px; border-top: 1px solid #303030; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 500px; }
.hero-meta div { padding-right: 20px; }
.hero-meta strong, .hero-meta span { display: block; }
.hero-meta strong { font: 700 18px "Barlow Condensed", sans-serif; letter-spacing: .06em; }
.hero-meta span { margin-top: 5px; color: #737373; font-size: 11px; }
.hero-visual { position: relative; height: 570px; display: flex; align-items: center; justify-content: center; }
.visual-frame { position: relative; width: min(100%, 640px); aspect-ratio: 1.05; background: #222; border: 1px solid #444; overflow: hidden; box-shadow: 0 35px 80px rgba(0,0,0,.45); }
.visual-frame::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,212,0,.18), transparent 38%); z-index: 1; pointer-events: none; }
.visual-frame img { width: 100%; height: 100%; object-fit: cover; }
.visual-badge { position: absolute; z-index: 2; right: 0; bottom: 0; width: 180px; min-height: 95px; background: var(--yellow); color: var(--black); display: flex; align-items: center; gap: 14px; padding: 17px; font: 800 12px/1.3 "Barlow Condensed", sans-serif; letter-spacing: .07em; }
.badge-number { font-size: 35px; line-height: 1; border-right: 1px solid rgba(0,0,0,.25); padding-right: 13px; }
.hero-word { position: absolute; right: -44px; top: 30px; color: rgba(0,0,0,.16); font: 800 126px/1 "Barlow Condensed", sans-serif; transform: rotate(90deg) translateX(100%); transform-origin: right top; letter-spacing: .06em; }
.scroll-cue { position: absolute; left: 24px; bottom: 28px; z-index: 5; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 9px; font-weight: 700; letter-spacing: .17em; color: #727272; }
.scroll-cue span { width: 1px; height: 48px; display: inline-block; background: var(--yellow); margin: 10px 4px 0; }

.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 60px; margin-bottom: 54px; }
h2 { margin-bottom: 0; font: 800 clamp(48px, 5.4vw, 76px)/.88 "Barlow Condensed", sans-serif; letter-spacing: -.02em; text-transform: uppercase; }
.section-heading h2 em, .about h2 em, .process h2 em { color: #d3ae00; }
.section-heading > p { max-width: 520px; color: #6c6c6c; line-height: 1.75; font-size: 15px; margin: 0 0 4px; }

.services { background: var(--light); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { min-height: 310px; padding: 34px; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; transition: .3s ease; }
.service-card:hover { background: var(--black); color: #fff; transform: translateY(-5px); z-index: 2; box-shadow: 0 20px 55px rgba(0,0,0,.13); }
.service-index { font: 700 12px "Barlow Condensed", sans-serif; letter-spacing: .14em; color: #aaa; }
.service-icon { margin: 28px 0 24px; font: 800 42px/1 "Barlow Condensed", sans-serif; color: #d4b000; }
.service-card h3 { font: 800 27px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .01em; }
.service-card p { margin: 0; color: #777; line-height: 1.65; font-size: 14px; transition: .3s ease; }
.service-card:hover p { color: #aaa; }
.service-line { position: absolute; left: 34px; bottom: 27px; width: 40px; height: 4px; background: var(--yellow); transition: .3s ease; }
.service-card:hover .service-line { width: calc(100% - 68px); }

.about { background: #fff; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.about-visual { min-height: 610px; position: relative; }
.about-black-panel { height: 560px; padding: 50px; background: var(--black); color: #fff; position: relative; overflow: hidden; }
.about-black-panel::after { content: ""; position: absolute; width: 300px; height: 300px; border: 70px solid #1c1c1c; border-radius: 50%; right: -120px; bottom: -100px; }
.tiny-label { font-size: 10px; letter-spacing: .2em; color: #777; }
.big-type { margin-top: 105px; font: 800 clamp(56px, 5vw, 82px)/.84 "Barlow Condensed", sans-serif; letter-spacing: -.02em; position: relative; z-index: 2; }
.big-type em { color: var(--yellow); font-style: normal; }
.corner-mark { position: absolute; right: 32px; top: 28px; color: var(--yellow); font-size: 44px; font-weight: 200; }
.about-yellow-card { position: absolute; right: -35px; bottom: 0; width: 290px; padding: 28px; background: var(--yellow); }
.about-yellow-card strong, .about-yellow-card span { display: block; }
.about-yellow-card strong { font: 800 22px "Barlow Condensed", sans-serif; text-transform: uppercase; margin-bottom: 8px; }
.about-yellow-card span { font-size: 12px; line-height: 1.5; }
.about-copy .lead { font-size: 18px; line-height: 1.7; color: #292929; margin: 28px 0 18px; }
.about-copy > p:not(.lead) { color: #777; line-height: 1.75; font-size: 14px; }
.company-facts { margin: 36px 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; display: grid; grid-template-columns: repeat(3, 1fr); }
.company-facts div { padding: 20px 15px 20px 0; border-right: 1px solid #ddd; }
.company-facts div:last-child { border-right: 0; padding-left: 15px; }
.company-facts div:nth-child(2) { padding-left: 15px; }
.company-facts span, .company-facts strong { display: block; }
.company-facts span { color: #999; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.company-facts strong { font: 700 17px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.text-link { display: inline-flex; align-items: center; gap: 18px; padding-bottom: 7px; border-bottom: 2px solid var(--yellow); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

.technology { background: var(--black); color: #fff; position: relative; overflow: hidden; }
.technology::before { content: ""; position: absolute; width: 320px; height: 320px; border: 70px solid #171717; border-radius: 50%; left: -120px; top: -140px; }
.technology-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.technology-copy > p { color: #999; line-height: 1.8; max-width: 520px; }
.machine-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.machine-tags span { padding: 9px 13px; border: 1px solid #383838; color: #bbb; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.machine-display { position: relative; min-height: 410px; background: var(--yellow); color: var(--black); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.machine-display svg { width: 86%; position: relative; z-index: 2; }
.machine-number { position: absolute; font: 800 330px/1 "Barlow Condensed", sans-serif; color: rgba(0,0,0,.07); right: -10px; bottom: -75px; }
.machine-caption { position: absolute; left: 28px; bottom: 24px; z-index: 3; font-size: 10px; font-weight: 800; letter-spacing: .14em; }

.process { background: #fff; }
.process-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 22px; margin-top: 30px; }
.process-step { min-height: 190px; padding: 25px 0; border-top: 4px solid var(--black); }
.process-step span { color: #c7a500; font: 800 14px "Barlow Condensed", sans-serif; }
.process-step h3 { margin: 28px 0 10px; font: 800 26px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.process-step p { margin: 0; color: #777; font-size: 13px; line-height: 1.6; }
.process-arrow { color: #bbb; font-size: 24px; }

.contact { background: #151515; color: #fff; position: relative; overflow: hidden; }
.contact::after { content: "PERFEKT STAVBY HANÁ"; position: absolute; right: -45px; bottom: -50px; font: 800 180px "Barlow Condensed", sans-serif; color: #1c1c1c; pointer-events: none; }
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.contact-copy > p { max-width: 520px; color: #929292; line-height: 1.75; }
.contact-items { margin-top: 40px; }
.contact-item { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid #323232; }
.contact-item:last-child { border-bottom: 1px solid #323232; }
.contact-item > span { width: 32px; color: var(--yellow); font: 800 11px "Barlow Condensed", sans-serif; }
.contact-item small, .contact-item strong { display: block; }
.contact-item small { color: #666; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 4px; }
.contact-item strong { font: 700 18px/1.3 "Barlow Condensed", sans-serif; }
.contact-form { background: #fff; color: var(--black); padding: 36px; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.form-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid #ddd; font: 800 19px "Barlow Condensed", sans-serif; letter-spacing: .04em; }
.form-top strong { width: 34px; height: 34px; display: grid; place-items: center; background: var(--yellow); font-size: 25px; }
.contact-form label { display: block; margin-bottom: 18px; color: #555; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 8px; border: 1px solid #d8d8d8; background: #fafafa; color: #111; padding: 14px 15px; outline: none; transition: .2s ease; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #c7a500; box-shadow: 0 0 0 3px rgba(255,212,0,.15); background: #fff; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; border: 0; }
.form-note { margin: 13px 0 0; color: #999; font-size: 9px; line-height: 1.5; }
.form-success { display: none; margin-top: 14px; padding: 13px; background: #f3f1dc; font-size: 12px; line-height: 1.5; }
.form-success.show { display: block; }

footer { padding: 26px 0; background: #090909; color: #767676; border-top: 1px solid #242424; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-brand .brand-name { color: #fff; }
.footer-inner p { margin: 0; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }
.delay-3 { transition-delay: .32s; }

@media (max-width: 1050px) {
    .desktop-nav { gap: 18px; }
    .header-phone { min-width: 170px; }
    .hero-inner { grid-template-columns: 1fr 1fr; }
    .hero-visual { height: 500px; }
    .about-grid, .contact-grid { gap: 50px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .site-header, .site-header.scrolled { height: 70px; }
    .desktop-nav, .header-phone { display: none; }
    .menu-toggle { display: block; margin-left: auto; }
    .mobile-nav { display: flex; position: absolute; top: 70px; left: 0; right: 0; padding: 20px 24px 28px; background: #111; flex-direction: column; gap: 0; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s ease; border-top: 1px solid #2c2c2c; }
    .mobile-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
    .mobile-nav a { padding: 13px 0; border-bottom: 1px solid #282828; font-size: 13px; font-weight: 700; text-transform: uppercase; }
    .mobile-nav .mobile-phone { margin-top: 14px; padding: 14px; background: var(--yellow); color: #111; text-align: center; }
    .hero { min-height: auto; padding-top: 120px; }
    .hero-inner, .about-grid, .technology-grid, .contact-grid { grid-template-columns: 1fr; }
    .hero-copy { max-width: 700px; }
    .hero-visual { height: auto; margin-top: 10px; }
    .visual-frame { width: 100%; }
    .hero-yellow-shape { width: 55vw; right: -30vw; }
    .scroll-cue { display: none; }
    .section { padding: 85px 0; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 26px; }
    .about-visual { min-height: 540px; }
    .about-black-panel { height: 500px; }
    .process-row { grid-template-columns: repeat(2, 1fr); gap: 22px; }
    .process-arrow { display: none; }
    .contact-grid { gap: 45px; }
}

@media (max-width: 600px) {
    .container { width: min(calc(100% - 30px), var(--max)); }
    h1 { font-size: clamp(60px, 19vw, 84px); }
    h2 { font-size: clamp(43px, 13vw, 62px); }
    .hero { padding: 110px 0 55px; }
    .hero-actions .btn { width: 100%; }
    .hero-meta { grid-template-columns: 1fr; gap: 18px; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 270px; }
    .about-visual { min-height: 480px; }
    .about-black-panel { height: 440px; padding: 34px; }
    .big-type { margin-top: 85px; }
    .about-yellow-card { right: 0; width: 245px; }
    .company-facts { grid-template-columns: 1fr; }
    .company-facts div, .company-facts div:nth-child(2), .company-facts div:last-child { padding: 14px 0; border-right: 0; border-bottom: 1px solid #ddd; }
    .company-facts div:last-child { border-bottom: 0; }
    .machine-display { min-height: 300px; }
    .machine-number { font-size: 230px; }
    .process-row { grid-template-columns: 1fr; }
    .process-step { min-height: 140px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-form { padding: 24px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .visual-badge { width: 155px; min-height: 78px; }
    .hero-word { display: none; }
}
