:root {
  --ink: #151515;
  --ink-soft: #232323;
  --steel: #667078;
  --mist: #eef0f1;
  --paper: #f7f7f5;
  --white: #ffffff;
  --red: #e3262e;
  --red-dark: #b9161d;
  --line: #d8dcde;
  --shadow: 0 18px 50px rgba(21, 21, 21, .11);
  --max: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 20; padding: 10px 14px; background: var(--red); color: var(--white); }
.skip-link:focus { left: 12px; }

.site-header { position: sticky; top: 0; z-index: 5; background: var(--ink); color: var(--white); border-bottom: 4px solid var(--red); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logo { width: 170px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a { padding: 30px 0 25px; color: #e8e8e8; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--white); border-color: var(--red); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid #626262; background: transparent; color: var(--white); cursor: pointer; }

.hero { position: relative; overflow: hidden; min-height: 600px; display: grid; align-items: center; background-color: var(--ink); background-image: linear-gradient(90deg, rgba(21,21,21,.94) 0%, rgba(21,21,21,.78) 44%, rgba(21,21,21,.82) 100%), url("../../assrtmnt.jpg"); background-position: center, center 58%; background-size: cover; color: var(--white); animation: hero-image-zoom 18s ease-in-out infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(135deg, transparent 0 48%, rgba(255,255,255,.16) 49% 50%, transparent 51%), linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 100% 100%, 36px 36px, 36px 36px; }
.hero::after { content: ""; position: absolute; width: 46vw; aspect-ratio: 1; right: -14vw; top: -10vw; border: 1px solid rgba(227,38,46,.55); transform: rotate(45deg); }
.hero-content { position: relative; z-index: 1; width: min(100%, 720px); padding: 92px 0; }
@keyframes hero-image-zoom {
  from { background-size: 100% 100%, 108% auto; }
  to { background-size: 100% 100%, 116% auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
}
.kicker { margin: 0 0 18px; color: var(--red); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.02; letter-spacing: .01em; }
h1 { max-width: 760px; font-size: clamp(3rem, 7vw, 6.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }
.lead { max-width: 580px; margin: 26px 0 34px; color: #c7cbcd; font-size: 1.2rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1px solid var(--red); background: var(--red); color: var(--white); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .2s, transform .2s; }
.button:hover, .button:focus-visible { background: var(--red-dark); transform: translateY(-2px); }
.button--ghost { border-color: rgba(255,255,255,.45); background: transparent; }
.button--ghost:hover, .button--ghost:focus-visible { background: rgba(255,255,255,.1); }

.section { padding: 92px 0; }
.section--dark { background: var(--ink-soft); color: var(--white); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.section-heading p { max-width: 440px; margin: 0; color: var(--steel); }
.section--dark .section-heading p { color: #b6bdc0; }
.eyebrow { margin: 0 0 10px; color: var(--red); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { display: flex; min-height: 270px; flex-direction: column; justify-content: space-between; padding: 24px; background: var(--white); border: 1px solid var(--line); position: relative; overflow: hidden; }
.product-card::after { content: ""; position: absolute; right: -35px; bottom: -55px; width: 140px; height: 140px; border: 1px solid rgba(227,38,46,.32); transform: rotate(45deg); }
.product-card:hover { border-color: var(--red); box-shadow: var(--shadow); }
.product-card small { color: var(--red); font-weight: 800; letter-spacing: .14em; }
.product-card p { color: var(--steel); }
.product-card__link { color: var(--red); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.product-card--featured { background: url("../../frklfts.jpg") center/cover no-repeat var(--white); z-index: 1; }
.product-card--featured::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.88) 100%); z-index: 0; transition: background .3s ease; }
.product-card--featured:hover::before { background: linear-gradient(135deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.75) 100%); }
.product-card--featured::after { z-index: 0; }
.product-card--featured > * { position: relative; z-index: 1; }
.product-card--featured small { color: var(--red); }
.product-card--featured h3 { color: var(--ink); }
.product-card--featured p { color: var(--steel); }
.product-card--featured .product-card__link { color: var(--red); }
.product-card--featured-plosiny { background-image: url("../../plsn.jpg"); }
.product-card--featured-bgrk { background-image: url("../../bgrk.jpg"); }
.product-card--featured-nkldc { background-image: url("../../nkldc.jpg"); }

.band { padding: 42px 0; background: var(--red); color: var(--white); }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.band h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); }
.band .button { border-color: var(--white); background: var(--white); color: var(--red); }

.page-hero { padding: 76px 0 68px; background: var(--ink); color: var(--white); }
.page-hero--tech { position: relative; overflow: hidden; isolation: isolate; background-image: linear-gradient(90deg, rgba(21,21,21,.94) 0%, rgba(21,21,21,.78) 52%, rgba(21,21,21,.84) 100%), url("../../assrtmnt_tech.jpg"); background-position: center, center 55%; background-size: cover; animation: page-hero-tech-zoom 18s ease-in-out infinite alternate; }
.page-hero--tech::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 36px 36px; }
.page-hero--tech .container { position: relative; z-index: 1; }
@keyframes page-hero-tech-zoom {
  from { background-size: 100% 100%, 108% auto; }
  to { background-size: 100% 100%, 116% auto; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero--tech { animation: none; }
}
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
.breadcrumb { margin-bottom: 20px; color: #adb4b7; font-size: .85rem; }
.breadcrumb a { color: var(--white); text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 4px; }

.machine-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 70px; align-items: start; }
.machine-visual { min-height: 430px; display: flex; align-items: center; justify-content: center; background: var(--paper); border-left: 8px solid var(--red); position: relative; overflow: hidden; }
.machine-gallery { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.machine-gallery img { max-width: 100%; max-height: 100%; object-fit: contain; }
.machine-gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; padding: 0 12px; pointer-events: none; }
.gallery-btn { pointer-events: all; width: 44px; height: 44px; background: rgba(0,0,0,.4); border: none; color: var(--white); font-size: 1.2rem; cursor: pointer; border-radius: 2px; transition: background .2s; }
.gallery-btn:hover { background: rgba(0,0,0,.6); }
.gallery-counter { position: absolute; bottom: 12px; right: 12px; font-size: 0.85rem; color: rgba(0,0,0,.5); font-weight: 800; }
.machine-copy h2 { margin-bottom: 20px; }
.machine-copy > p { color: var(--steel); font-size: 1.1rem; }
.variant-selector { margin: 30px 0; padding: 20px; background: #f9faf9; border-left: 4px solid var(--red); }
.variant-selector .eyebrow { margin-bottom: 10px; }
.variant-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.variant-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border: 2px solid var(--steel); background: var(--white); color: var(--ink); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; cursor: pointer; transition: all .2s; }
.variant-btn:hover { border-color: var(--red); }
.variant-btn--active { border-color: var(--red); background: var(--red); color: var(--white); }
.variant-note { margin: 16px 0; padding: 12px; background: #f0f6f8; border-left: 3px solid #667078; color: var(--steel); font-size: .95rem; font-style: italic; }
.spec-list { margin: 30px 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.spec-list li { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-list strong { color: var(--steel); font-weight: 500; }

.form-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.contact-list { padding: 0; list-style: none; }
.contact-list li { margin: 16px 0; }
.contact-list strong { display: block; color: var(--steel); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.contact-list a:hover { color: var(--red); }
.form { padding: 34px; background: var(--white); border-top: 5px solid var(--red); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #bdc3c6; border-radius: var(--radius); background: #fbfbfb; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(227,38,46,.2); border-color: var(--red); }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0; font-size: .9rem; }
.check input { margin-top: 5px; accent-color: var(--red); }
.form-status { margin: 18px 0 0; font-weight: 700; }
.form-status.error { color: var(--red-dark); }
.form-status.success { color: #19713a; }
.hp { position: absolute; left: -9999px; }

.plain-document { max-width: 780px; margin: 0 auto; }
.plain-document pre { white-space: pre-wrap; font: inherit; }
.site-footer { padding: 50px 0 24px; background: var(--ink); color: #e1e4e5; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 45px; padding-bottom: 38px; }
.site-footer h2 { margin-bottom: 18px; font-size: 1.5rem; }
.site-footer p { color: #aeb5b8; }
.site-footer a:hover { color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid #3d4143; color: #8e9699; font-size: .86rem; }
.cookie { position: fixed; right: 20px; bottom: 20px; z-index: 10; width: min(430px, calc(100% - 40px)); padding: 22px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); box-shadow: var(--shadow); }
.cookie h2 { margin-bottom: 8px; font-size: 1.4rem; }
.cookie p { margin: 0 0 16px; color: var(--steel); font-size: .92rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .button { min-height: 40px; padding: 0 14px; font-size: .78rem; }
.cookie-actions .button--light { background: transparent; color: var(--ink); border-color: var(--line); }

.tabs-container { margin-top: 50px; background: var(--white); border: 1px solid var(--line); }
.tabs-nav { display: flex; border-bottom: 1px solid var(--line); background: var(--mist); }
.tab-btn { flex: 1; padding: 18px 16px; border: none; background: transparent; color: var(--steel); font-weight: 700; font-size: .95rem; letter-spacing: .04em; cursor: pointer; border-bottom: 3px solid transparent; transition: all .2s; }
.tab-btn:hover { color: var(--ink); background: #f1f3f3; }
.tab-btn--active { color: var(--white); background: var(--red); border-bottom-color: var(--red); }
.tabs-content { padding: 30px; }
.tab-pane { display: none; }
.tab-pane--active { display: block; }
.feature-list { margin: 0; padding: 0; list-style: none; }
.feature-list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1rem; }
.feature-list li:last-child { border-bottom: none; }
.accessories-list { margin: 0; padding: 0; }
.accessory-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; margin-bottom: 10px; background: #fafbfb; border: 1px solid var(--line); border-radius: 2px; }
.accessory-item label { margin: 0; display: flex; align-items: center; gap: 12px; cursor: pointer; flex: 1; font-weight: 500; }
.accessory-checkbox { width: 20px; height: 20px; cursor: pointer; accent-color: var(--red); flex-shrink: 0; }
.accessory-price { font-weight: 700; color: var(--red); white-space: nowrap; }

.calculator-section { margin-top: 40px; padding: 30px; background: #f5f7f7; border: 2px solid var(--line); border-radius: 2px; }
.calculator-box { margin-bottom: 26px; }
.calculator-box h3 { margin: 0 0 20px; font-size: 1.35rem; }
.calculator-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.calculator-row--total { border-bottom: none; padding: 18px 0; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.calculator-label { color: var(--steel); font-weight: 500; }
.calculator-price { font-weight: 700; color: var(--red); }
.accessories-summary { animation: slideDown .3s ease-out; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 72px; }
  .logo { width: 145px; }
  .nav-toggle { display: block; }
  .site-nav { position: absolute; inset: 72px 0 auto; display: none; padding: 8px 20px 20px; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-top: 1px solid #3c3c3c; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 15px 0; }
  .hero { min-height: 540px; }
  .section { padding: 65px 0; }
  .product-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .machine-layout, .form-layout { grid-template-columns: 1fr; gap: 38px; }
  .machine-visual { min-height: 300px; }
}

@media (max-width: 560px) {
  h1 { font-size: 3.2rem; }
  .section-heading, .band-inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .product-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .hero-content { padding: 72px 0; }
}
