/* ==========================================================================
   BRESS International s.r.o. — styl webu
   ========================================================================== */

:root {
  /* Barvy — podle firemního loga: ocelová šeď + modrá */
  --c-ink:        #14171a;
  --c-ink-soft:   #2a2f35;
  --c-steel:      #4b5563;
  --c-steel-lt:   #8a94a3;
  --c-line:       #e2e5e9;
  --c-bg:         #ffffff;
  --c-bg-alt:     #f4f5f7;
  --c-bg-dark:    #1a1d21;
  --c-accent:     #2589b6;
  --c-accent-dk:  #1b6383;
  --c-accent-lt:  #a3cde0;
  --c-white:      #ffffff;

  --font-head: 'Barlow Condensed', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius: 4px;
  --shadow: 0 2px 12px rgba(20, 23, 26, 0.08);
  --shadow-lg: 0 8px 32px rgba(20, 23, 26, 0.16);
  --maxw: 1180px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--c-steel); }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 72px 0; }
@media (max-width: 640px) { section { padding: 48px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  color: var(--c-accent);
  font-weight: 600;
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--c-accent);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: var(--c-accent-dk); }
.btn-outline { border-color: var(--c-ink); color: var(--c-ink); }
.btn-outline:hover { background: var(--c-ink); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--c-ink); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--c-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.02em;
  color: var(--c-ink);
}
.logo .mark {
  width: 38px;
  height: 38px;
  flex: none;
  object-fit: contain;
}
.logo .sub {
  display: block;
  font-family: var(--font-body);
  text-transform: none;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-steel-lt);
  margin-top: -2px;
}
nav.main-nav ul { display: flex; gap: 2px; align-items: center; }
nav.main-nav a {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--c-ink-soft);
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}
nav.main-nav a:hover { color: var(--c-accent); background: var(--c-bg-alt); }
nav.main-nav a.is-active { color: var(--c-accent); }
.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
}
.header-phone svg { width: 18px; height: 18px; color: var(--c-accent); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--c-ink);
  margin: 5px 0;
  transition: 0.2s;
}

/* Skutečný přepínač menu je checkbox #menu-toggle (viz HTML, hned na
   začátku <body>) — vizuálně skrytý, ale funkční. Otevírání/zavírání
   mobilního menu tak jde čistě přes CSS (:checked), nezávisle na tom,
   jestli se stihne / podaří načíst a spustit main.js. JS níž jen menu
   navíc hezky zavírá po kliknutí na odkaz a hlídá scroll body. */
.menu-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Mobilní menu je záměrně samostatný panel MIMO .site-header (který je
   position: sticky) — vnořený position: fixed prvek uvnitř sticky/filter
   rodiče se v některých verzích Safari na iOS nechová podle specifikace
   a nezobrazí se. Jako samostatný sourozenec headeru je pozicování vůči
   viewportu spolehlivé napříč prohlížeči. */
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .header-phone { display: none; }
  nav.main-nav { display: none; }
  .nav-toggle { display: block; }

  .mobile-menu {
    display: block;
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    overflow-y: auto;
    z-index: 90;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .menu-toggle-input:checked ~ #mobile-menu,
  .mobile-menu.is-open { transform: translateX(0); }
  .mobile-menu ul { list-style: none; margin: 0; display: flex; flex-direction: column; padding: 20px; gap: 4px; }
  .mobile-menu a {
    display: block;
    padding: 14px 16px;
    font-family: var(--font-head);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.2rem;
    letter-spacing: 0.03em;
    color: var(--c-ink-soft);
    border-radius: var(--radius);
  }
  .mobile-menu a:hover, .mobile-menu a.is-active { color: var(--c-accent); }
  body.nav-open { overflow: hidden; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background: var(--c-bg-dark);
  color: #fff;
  overflow: hidden;
  padding: 110px 0 90px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 20%, rgba(37,137,182,0.35), transparent 45%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 90px);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--c-accent); }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,0.72); max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stats .num {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  color: #fff;
}
.hero-stats .label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  align-self: start;
  margin-top: -8px;
}
.hero-visual svg { width: 100%; height: 100%; }
.hero-visual img {
  width: 100%;
  max-width: 460px;
  filter: drop-shadow(0 35px 40px rgba(0,0,0,0.5));
}
.hero-visual .product-caption {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ---- Featured POWERTECH showcase ---- */
.product-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 700px) { .product-showcase { grid-template-columns: 1fr; } }
.product-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-card img {
  width: 100%;
  max-width: 220px;
  margin: 0 auto 16px;
  display: block;
}
.product-card .p-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.product-card .p-meta {
  font-size: 0.86rem;
  color: var(--c-steel-lt);
}
.featured-band {
  background: linear-gradient(135deg, rgba(37,137,182,0.07), rgba(37,137,182,0.015));
  border-top: 1px solid rgba(37,137,182,0.15);
  border-bottom: 1px solid rgba(37,137,182,0.15);
}
.featured-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .featured-grid { grid-template-columns: 1fr; } }

/* ---- Featured brand block (POWERTECH) on katalog.html ---- */
.brand-block--powertech {
  background: linear-gradient(135deg, rgba(37,137,182,0.07), rgba(37,137,182,0.015));
  border: 1px solid rgba(37,137,182,0.22);
  border-radius: var(--radius);
  padding: 34px;
  grid-template-columns: 260px 1fr 260px;
}
@media (max-width: 1000px) { .brand-block--powertech { grid-template-columns: 260px 1fr; } }
@media (max-width: 800px) { .brand-block--powertech { grid-template-columns: 1fr; } }
.brand-block--powertech .product-thumbs {
  display: flex;
  gap: 14px;
}
.brand-block--powertech .product-thumbs figure {
  margin: 0;
  flex: 1;
  text-align: center;
}
.brand-block--powertech .product-thumbs img {
  width: 100%;
  background: #fff;
  border-radius: 4px;
  border: 1px solid var(--c-line);
}
.brand-block--powertech .product-thumbs figcaption {
  font-size: 0.76rem;
  color: var(--c-steel-lt);
  margin-top: 6px;
}

/* ---- Brand strip ---- */
.brand-strip { background: var(--c-bg-alt); padding: 34px 0; border-bottom: 1px solid var(--c-line); }
.brand-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}
.brand-strip .strip-label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-steel-lt);
  flex: none;
}
.brand-strip .logos { display: flex; gap: 34px; flex-wrap: wrap; align-items: center; }
.brand-strip .logos span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--c-ink-soft);
  opacity: 0.75;
}
.brand-strip .logos img { height: 27px; width: auto; object-fit: contain; display: block; }
.brand-strip .logos img.logo-klingspor { height: 34px; border-radius: 4px; }

/* ---- Section headers ---- */
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.05rem; }

/* ---- Cards grid: categories / values ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-3px); }
.card .icon {
  width: 46px; height: 46px;
  margin-bottom: 18px;
  color: var(--c-accent);
}
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { margin-bottom: 0; font-size: 0.96rem; }

/* ---- Dark CTA band ---- */
.cta-band {
  background: var(--c-ink);
  color: #fff;
  padding: 64px 0;
}
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.65); margin: 0; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Brand / product pages ---- */
.brand-block {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid var(--c-line);
  align-items: start;
}
.brand-block:last-child { border-bottom: none; }
@media (max-width: 800px) { .brand-block { grid-template-columns: 1fr; } }
.brand-name {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.brand-name img { display: block; height: 46px; width: auto; object-fit: contain; }
.brand-name img.logo-klingspor { height: 64px; border-radius: 6px; }
.brand-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--c-accent);
  background: rgba(37,137,182,0.1);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag-list span {
  font-size: 0.82rem;
  padding: 5px 12px;
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: 20px;
  color: var(--c-steel);
}

.other-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.other-brands span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.4rem;
  padding: 18px 26px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-ink-soft);
  background: var(--c-bg-alt);
}

/* ---- Category list (sortiment) ---- */
.cat-list { border-top: 1px solid var(--c-line); }
.cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--c-line);
}
.cat-row .n {
  font-family: var(--font-head);
  color: var(--c-accent);
  font-weight: 700;
  font-size: 0.95rem;
  width: 32px;
  flex: none;
}
.cat-row h3 { margin: 0; flex: 1; }
.cat-row p { margin: 0; flex: 2; font-size: 0.92rem; }
@media (max-width: 760px) {
  .cat-row { flex-wrap: wrap; }
  .cat-row p { flex-basis: 100%; margin-top: 6px; }
}

/* ---- Downloads ---- */
.file-list { display: grid; gap: 14px; }
.file-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: var(--c-bg);
  transition: border-color 0.15s, background 0.15s;
}
.file-row:hover { border-color: var(--c-accent); background: var(--c-bg-alt); }
.file-row .file-icon {
  width: 42px; height: 42px; flex: none;
  color: var(--c-accent);
}
.file-row .file-thumb {
  width: 42px; height: 42px; flex: none;
  object-fit: cover; border-radius: 4px;
  border: 1px solid var(--c-line);
}
.file-row .meta { flex: 1; min-width: 0; }
.file-row .meta strong { display: block; font-size: 1.02rem; }
.file-row .meta span { font-size: 0.84rem; color: var(--c-steel-lt); }
.file-row .btn { flex: none; padding: 9px 18px; font-size: 0.82rem; }

/* ---- Contact page ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-line);
}
.info-row .icon { width: 24px; height: 24px; color: var(--c-accent); flex: none; margin-top: 2px; }
.info-row strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-steel-lt); margin-bottom: 3px; }
.info-row div a:hover { color: var(--c-accent); }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.98rem;
  background: var(--c-bg-alt);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--c-accent); background: #fff;
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 20px;
}
.form-status--ok {
  background: #e5f4ea;
  color: #1f6b3a;
  border: 1px solid #b9e0c6;
}
.form-status--chyba {
  background: #fbeaea;
  color: #a52b2b;
  border: 1px solid #f0c2c2;
}
.map-embed {
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 30px;
}
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  background: var(--c-bg-dark);
  color: #fff;
  padding: 64px 0 50px;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.65); max-width: 60ch; font-size: 1.05rem; margin: 0; }
.breadcrumb {
  font-size: 0.82rem;
  color: var(--c-steel-lt);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.breadcrumb a:hover { color: var(--c-accent); }

/* ---- Footer ---- */
.site-footer { background: var(--c-ink); color: rgba(255,255,255,0.6); padding: 60px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: #fff; font-size: 0.85rem; letter-spacing: 0.08em; margin-bottom: 16px;
}
.footer-grid ul li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid ul li a:hover { color: var(--c-accent); }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; margin-bottom: 14px; }
.footer-logo .mark { width: 30px; height: 30px; object-fit: contain; }
.footer-about { font-size: 0.92rem; max-width: 32ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a:hover { color: var(--c-accent); }

/* ---- Misc ---- */
.skip-link {
  position: absolute; left: -999px; top: auto;
  background: var(--c-accent); color: #fff; padding: 10px 16px; z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }
