/* ==========================================================================
   Značka BENET — custom page (hobbypro.cz/znacka-benet/)
   --------------------------------------------------------------------------
   Every rule is scoped to .in-znacka-benet (the body class Shoptet derives
   from that page's URL slug) and to #bnt-page (the wrapper that exists only
   inside this page's content). Nothing here can reach any other page.
   The #bnt-page id also lifts specificity above the shop's own
   "#content h1", "#content p" rules without needing !important.

   All class names use the bnt- prefix, which appears nowhere in the existing
   hobbypro_design_puvodni.css or hobbypro_fm_005.css.
   Design source: Figma "HobbyPro" / O Nás – Final (node 284:3).
   ========================================================================== */

.in-znacka-benet {
  --bnt-ink: #171717;
  --bnt-body: #6b6b6b;
  --bnt-muted: #9e9e9e;
  --bnt-line: #dbdbdb;
  --bnt-surface: #ffffff;
  --bnt-surface-alt: #f6f6f6;
  --bnt-radius: 6px;
  --bnt-gap: 20px;
  --bnt-pad-x: 160px;
  --bnt-pad-y: 72px;
  --bnt-font: "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- Page shell ----------------------------------------------------------
   The stock page template puts the article in a narrow column next to the
   category sidebar. This page is designed full width, so the sidebar is
   hidden and the content column released — on this URL only. */

.in-znacka-benet .sidebar,
.in-znacka-benet .sidebar-left {
  display: none;
}

.in-znacka-benet #content.content,
.in-znacka-benet #content.content.narrow {
  width: 100%;
  max-width: none;
  flex: 1 1 100%;
  padding-left: 0;
  padding-right: 0;
}

.in-znacka-benet #content .content-inner {
  padding: 0;
}

/* The stock "O nás" H1 is replaced by the hero headline below. */
.in-znacka-benet #content .pageArticleDetail > header {
  display: none;
}

/* hobbypro_design_puvodni.css gives .breadcrumbs an :after pseudo-element
   20px tall with a bottom border, which adds a gap above the hero. Removed
   here only, so the hero starts right below the breadcrumb line. */
.in-znacka-benet .breadcrumbs:after {
  display: none;
}

.in-znacka-benet #content .pageArticleDetail,
.in-znacka-benet #content .pageArticleDetail > div[itemprop="about"] {
  margin: 0;
  padding: 0;
}

/* --- Base ---------------------------------------------------------------- */

.in-znacka-benet #bnt-page {
  font-family: var(--bnt-font);
  color: var(--bnt-body);
  text-align: left;
}

.in-znacka-benet #bnt-page *,
.in-znacka-benet #bnt-page *::before,
.in-znacka-benet #bnt-page *::after {
  box-sizing: border-box;
}

.in-znacka-benet #bnt-page p {
  margin: 0;
  padding: 0;
}

.in-znacka-benet #bnt-page img {
  max-width: 100%;
}

/* Section backgrounds bleed past the content column to both window edges,
   while the copy keeps the 1120px measure from the design.
   The bleed is painted with a very wide box-shadow clipped to the section's
   own height, instead of the usual 100vw margin trick: box-shadow does not
   take part in layout, so this cannot introduce horizontal scrolling, and it
   needs no overflow clipping on an ancestor (which would break the shop's
   fixed-position cookie bar). */
.in-znacka-benet #bnt-page .bnt-sec {
  background: var(--bnt-surface);
  padding: var(--bnt-pad-y) var(--bnt-pad-x);
  box-shadow: 0 0 0 100vmax var(--bnt-surface);
  clip-path: inset(0 -100vmax);
}

.in-znacka-benet #bnt-page .bnt-sec--alt {
  background: var(--bnt-surface-alt);
  box-shadow: 0 0 0 100vmax var(--bnt-surface-alt);
}

.in-znacka-benet #bnt-page .bnt-sec--hero {
  padding-top: 50px;
  padding-bottom: 96px;
}

.in-znacka-benet #bnt-page .bnt-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}

.in-znacka-benet #bnt-page .bnt-sec--hero .bnt-inner {
  gap: 20px;
}

/* --- Typography ---------------------------------------------------------- */

.in-znacka-benet #bnt-page .bnt-eyebrow {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 1.04px;
  color: var(--bnt-muted);
  text-transform: uppercase;
}

/* hobbypro_design_puvodni.css sets font-family and color on "#content h1"
   with !important, so those two properties have to be forced back here. The
   override is scoped to this page and cannot affect any other H1 in the shop. */
.in-znacka-benet #bnt-page .bnt-h1 {
  font-family: var(--bnt-font) !important;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.18;
  color: var(--bnt-ink) !important;
  margin: 0;
  padding: 0;
  max-width: 620px;
  text-transform: none;
}

.in-znacka-benet #bnt-page .bnt-h2 {
  font-family: var(--bnt-font);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bnt-ink);
  margin: 0;
  padding: 0;
  text-transform: none;
}

.in-znacka-benet #bnt-page .bnt-h3 {
  font-family: var(--bnt-font);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bnt-ink);
  margin: 0;
  padding: 0;
  text-transform: none;
}

.in-znacka-benet #bnt-page .bnt-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--bnt-body);
}

.in-znacka-benet #bnt-page .bnt-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--bnt-body);
}

.in-znacka-benet #bnt-page .bnt-text--sm {
  font-size: 16px;
  line-height: 1.7;
}

/* Reading measure: the design runs body copy across the full 1120px, which is
   around 110 characters per line. Capped for readability. */
.in-znacka-benet #bnt-page .bnt-lead,
.in-znacka-benet #bnt-page .bnt-text,
.in-znacka-benet #bnt-page .bnt-text--sm {
  max-width: 68ch;
}

.in-znacka-benet #bnt-page .bnt-sign {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--bnt-ink);
}

/* --- Buttons ------------------------------------------------------------- */

.in-znacka-benet #bnt-page .bnt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 8px;
}

.in-znacka-benet #bnt-page .bnt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 14px 24px;
  border-radius: var(--bnt-radius);
  border: 1px solid transparent;
  font-family: var(--bnt-font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 100ms ease;
}

.in-znacka-benet #bnt-page .bnt-btn--primary {
  background: var(--bnt-ink);
  color: #fff;
}

.in-znacka-benet #bnt-page .bnt-btn--primary:hover,
.in-znacka-benet #bnt-page .bnt-btn--primary:focus-visible {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.in-znacka-benet #bnt-page .bnt-btn--secondary {
  background: var(--bnt-surface);
  border-color: var(--bnt-line);
  color: var(--bnt-ink);
}

.in-znacka-benet #bnt-page .bnt-btn--secondary:hover,
.in-znacka-benet #bnt-page .bnt-btn--secondary:focus-visible {
  border-color: var(--bnt-ink);
  color: var(--bnt-ink);
  text-decoration: none;
}

.in-znacka-benet #bnt-page .bnt-btn:active {
  transform: scale(0.97);
}

.in-znacka-benet #bnt-page .bnt-btn:focus-visible {
  outline: 2px solid var(--bnt-ink);
  outline-offset: 2px;
}

/* --- Media --------------------------------------------------------------- */

.in-znacka-benet #bnt-page .bnt-figure {
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: var(--bnt-radius);
  overflow: hidden;
}

.in-znacka-benet #bnt-page .bnt-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.in-znacka-benet #bnt-page .bnt-figure--hero {
  aspect-ratio: 1120 / 732;
}

.in-znacka-benet #bnt-page .bnt-figure--cesta {
  aspect-ratio: 1120 / 614;
}

.in-znacka-benet #bnt-page .bnt-figure--jednani {
  aspect-ratio: 1120 / 751;
}

/* --- Grids --------------------------------------------------------------- */

.in-znacka-benet #bnt-page .bnt-grid {
  display: grid;
  gap: var(--bnt-gap);
  width: 100%;
  padding-top: 12px;
}

.in-znacka-benet #bnt-page .bnt-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.in-znacka-benet #bnt-page .bnt-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.in-znacka-benet #bnt-page .bnt-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* --- Cards --------------------------------------------------------------- */

.in-znacka-benet #bnt-page .bnt-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  background: var(--bnt-surface);
  border: 1px solid var(--bnt-line);
  border-radius: var(--bnt-radius);
  padding: 20px;
}

/* Machine cards link to the matching shop category. */
.in-znacka-benet #bnt-page a.bnt-card {
  text-decoration: none;
  transition:
    border-color 150ms ease,
    transform 100ms ease;
}

.in-znacka-benet #bnt-page a.bnt-card:hover,
.in-znacka-benet #bnt-page a.bnt-card:focus-visible {
  border-color: var(--bnt-ink);
  text-decoration: none;
}

.in-znacka-benet #bnt-page a.bnt-card:active {
  transform: scale(0.99);
}

.in-znacka-benet #bnt-page a.bnt-card:focus-visible {
  outline: 2px solid var(--bnt-ink);
  outline-offset: 2px;
}

.in-znacka-benet #bnt-page .bnt-card__year {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--bnt-ink);
}

.in-znacka-benet #bnt-page .bnt-card__title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bnt-ink);
}

.in-znacka-benet #bnt-page .bnt-card__text {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--bnt-body);
}

.in-znacka-benet #bnt-page .bnt-card--milestone {
  padding: 22px 20px;
}

/* Machine cards carry a product photo above the text, so the padding moves
   from the card onto the body and the media block sits flush in the corners. */
.in-znacka-benet #bnt-page .bnt-card--machine {
  padding: 0;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
}

.in-znacka-benet #bnt-page .bnt-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bnt-surface-alt);
  overflow: hidden;
}

/* contain, not cover: product shots are framed with their own margins and
   must not be cropped. The 4/3 box matches the shop's 1024x768 renders, so
   there are no letterbox bars. */
.in-znacka-benet #bnt-page .bnt-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 300ms ease;
}

.in-znacka-benet #bnt-page a.bnt-card--machine:hover .bnt-card__media img,
.in-znacka-benet #bnt-page a.bnt-card--machine:focus-visible .bnt-card__media img {
  transform: scale(1.04);
}

.in-znacka-benet #bnt-page .bnt-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 20px;
}

.in-znacka-benet #bnt-page .bnt-card--machine .bnt-card__title {
  font-size: 16px;
}

.in-znacka-benet #bnt-page .bnt-card--value {
  padding: 22px;
}

.in-znacka-benet #bnt-page .bnt-card--value .bnt-card__title {
  font-size: 17px;
}

/* --- Founders ------------------------------------------------------------ */

.in-znacka-benet #bnt-page .bnt-founders {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}

.in-znacka-benet #bnt-page .bnt-founder {
  margin: 0;
  padding: 0;
  border-radius: var(--bnt-radius);
  overflow: hidden;
  aspect-ratio: 548 / 685;
}

.in-znacka-benet #bnt-page .bnt-founder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Beliefs (theses + photo) -------------------------------------------- */

.in-znacka-benet #bnt-page .bnt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  width: 100%;
  align-items: stretch;
}

.in-znacka-benet #bnt-page .bnt-split__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.in-znacka-benet #bnt-page .bnt-split__col .bnt-lead,
.in-znacka-benet #bnt-page .bnt-split__col .bnt-text {
  max-width: none;
}

.in-znacka-benet #bnt-page .bnt-thesis {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  background: var(--bnt-surface);
  border: 1px solid var(--bnt-line);
  border-radius: var(--bnt-radius);
  padding: 24px;
}

.in-znacka-benet #bnt-page .bnt-thesis__title {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bnt-ink);
}

.in-znacka-benet #bnt-page .bnt-thesis__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--bnt-body);
}

.in-znacka-benet #bnt-page .bnt-figure--verime {
  height: 100%;
}

/* --- Quote --------------------------------------------------------------- */

.in-znacka-benet #bnt-page .bnt-quote {
  margin: 0;
  padding: 10px 0 10px 28px;
  border-left: 3px solid var(--bnt-ink);
  border-radius: 0;
  background: none;
  width: 100%;
  font-style: normal;
}

.in-znacka-benet #bnt-page .bnt-quote p {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--bnt-ink);
  max-width: 42ch;
}

/* --- Testimonials -------------------------------------------------------- */

.in-znacka-benet #bnt-page .bnt-review {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: var(--bnt-surface);
  border: 1px solid var(--bnt-line);
  border-radius: var(--bnt-radius);
  padding: 28px 24px;
}

.in-znacka-benet #bnt-page .bnt-review__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.in-znacka-benet #bnt-page .bnt-review__stars {
  display: block;
  width: 91px;
  height: 15px;
  object-fit: contain;
}

.in-znacka-benet #bnt-page .bnt-review__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--bnt-body);
}

.in-znacka-benet #bnt-page .bnt-review__author {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bnt-ink);
  font-style: normal;
}

/* --- Contact block ------------------------------------------------------- */

.in-znacka-benet #bnt-page .bnt-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  background: var(--bnt-surface);
  border: 1px solid var(--bnt-line);
  border-radius: var(--bnt-radius);
  padding: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--bnt-body);
}

.in-znacka-benet #bnt-page .bnt-contact a {
  color: var(--bnt-body);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}

.in-znacka-benet #bnt-page .bnt-contact a:hover {
  color: var(--bnt-ink);
}

/* --- Responsive ----------------------------------------------------------
   The design only covers 1440px. Breakpoints match the shop's own tiers so
   the page steps down alongside the header. */

@media (max-width: 1400px) {
  .in-znacka-benet {
    --bnt-pad-x: 80px;
  }
}

@media (max-width: 1199px) {
  .in-znacka-benet {
    --bnt-pad-x: 48px;
    --bnt-pad-y: 56px;
  }

  .in-znacka-benet #bnt-page .bnt-h1 {
    font-size: 40px;
    max-width: 520px;
  }

  .in-znacka-benet #bnt-page .bnt-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .in-znacka-benet #bnt-page .bnt-split {
    gap: 32px;
  }
}

@media (max-width: 991px) {
  .in-znacka-benet #bnt-page .bnt-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .in-znacka-benet #bnt-page .bnt-split {
    grid-template-columns: 1fr;
  }

  .in-znacka-benet #bnt-page .bnt-figure--verime {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .in-znacka-benet #bnt-page .bnt-quote p {
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .in-znacka-benet {
    --bnt-pad-x: 20px;
    --bnt-pad-y: 44px;
    --bnt-gap: 12px;
  }

  .in-znacka-benet #bnt-page .bnt-sec--hero {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .in-znacka-benet #bnt-page .bnt-h1 {
    font-size: 30px;
    max-width: none;
  }

  .in-znacka-benet #bnt-page .bnt-h2 {
    font-size: 24px;
  }

  .in-znacka-benet #bnt-page .bnt-h3 {
    font-size: 19px;
  }

  .in-znacka-benet #bnt-page .bnt-lead {
    font-size: 17px;
  }

  .in-znacka-benet #bnt-page .bnt-text,
  .in-znacka-benet #bnt-page .bnt-text--sm {
    font-size: 16px;
  }

  .in-znacka-benet #bnt-page .bnt-grid--4,
  .in-znacka-benet #bnt-page .bnt-grid--3,
  .in-znacka-benet #bnt-page .bnt-grid--2 {
    grid-template-columns: 1fr;
  }

  .in-znacka-benet #bnt-page .bnt-founders {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .in-znacka-benet #bnt-page .bnt-quote {
    padding-left: 18px;
  }

  .in-znacka-benet #bnt-page .bnt-quote p {
    font-size: 20px;
  }

  .in-znacka-benet #bnt-page .bnt-actions .bnt-btn {
    width: 100%;
  }

  .in-znacka-benet #bnt-page .bnt-figure--hero,
  .in-znacka-benet #bnt-page .bnt-figure--cesta,
  .in-znacka-benet #bnt-page .bnt-figure--jednani {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .in-znacka-benet #bnt-page .bnt-btn,
  .in-znacka-benet #bnt-page .bnt-card__media img {
    transition: none;
  }

  .in-znacka-benet #bnt-page .bnt-btn:active {
    transform: none;
  }

  .in-znacka-benet #bnt-page a.bnt-card--machine:hover .bnt-card__media img,
  .in-znacka-benet #bnt-page a.bnt-card--machine:focus-visible .bnt-card__media img {
    transform: none;
  }
}
