/* ==========================================================================
   SECTIONS – hero, USP, promo Milwaukee, značky, proč nakupovat, články, FAQ
   ========================================================================== */

/* Hero */
.hero {
  display: grid;
  /* šířky podle poměru stran bannerů (2000×750 a 1200×600) → oba celé a stejně vysoké */
  grid-template-columns: 8fr 6fr;
  gap: 12px;
  margin-top: 12px;
}

.hero__banner {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero__banner img {
  width: 100%;
  height: auto;
  transition: transform .5s ease;
}

.hero__banner:hover img { transform: scale(1.03); }

/* USP */
.usp {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.usp__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.usp__item > .bi { font-size: 28px; color: var(--c-primary); }
.usp__item strong { display: block; font-size: var(--fs-base); font-weight: 700; }
.usp__item span { display: block; font-size: var(--fs-sm); color: var(--c-muted); }

/* Promo Milwaukee – červený panel vlevo se šikmou hranou, fotka vpravo */
.promo {
  display: grid;
  grid-template-columns: 5fr 7fr;
  min-height: 460px;
  overflow: hidden;
  background: var(--c-red);
  color: #fff;
}

.promo__side {
  position: relative;
  display: flex;
  align-items: center;
  /* text lícuje s levým okrajem containeru */
  padding: 56px 40px 56px max(var(--gutter), calc((100% * 12 / 5 - var(--container)) / 2 + var(--gutter))); /* 100 % = šířka sloupce (5/12 sekce) */
}

/* šikmá hrana panelu přesahující do fotky */
.promo__side::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -60px;
  z-index: 1;
  width: 120px;
  background: var(--c-red);
  transform: skewX(-10deg);
}

.promo__content { position: relative; z-index: 2; max-width: 470px; }

.promo__logo {
  width: 170px;
  filter: brightness(0) invert(1);
}

.promo__title {
  margin-top: 22px;
  font-family: var(--f-head);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.promo__text {
  margin-top: 14px;
  font-size: var(--fs-md);
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
}

.promo__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.promo__actions .btn { height: 46px; padding-inline: 22px; }
.promo .btn--light:hover { background: var(--c-dark); color: #fff; }
.promo .btn--light:hover .bi { color: #fff; }

.promo__photo { position: relative; }

.promo__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 45% 35%;
}

.btn--red { background: var(--c-red); color: #fff; }
.btn--red:hover { background: #b81a23; }

/* Značky – dvě nekonečně běžící řady barevných log */
.brands {
  position: relative;
  display: grid;
  gap: 8px;
  padding-block: 12px;
  /* řady se vytrácí do ztracena až za hranou containeru */
  margin-inline: calc(var(--gutter) * -1);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee { overflow: hidden; }

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee--reverse .marquee__track { animation-direction: reverse; }
.brands:hover .marquee__track { animation-play-state: paused; }

.marquee__item {
  position: relative;
  display: grid;
  place-items: center;
  height: 88px;
  padding-inline: 40px;
  flex-shrink: 0;
}

/* šířka každého loga je nastavená v HTML (--w) tak, aby loga působila stejně velká */
.marquee__item img {
  width: var(--w, 150px);
  height: auto;
  max-width: none;
  transition: transform var(--t);
}

/* oddělovač: tenká svislá linka */
.marquee__item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 30px;
  margin-top: -15px;
  background: var(--c-border);
}

.marquee__item:hover img { transform: scale(1.08); }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Bez animací: běžná posuvná řada */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .marquee__track { animation: none; }
}

/* Podbarvený pruh přes celou šířku – odděluje sekce */
.band {
  padding-block: 64px;
  background: var(--c-bg-soft);
  border-block: 1px solid var(--c-border);
}

.band--last { margin-bottom: 0; border-bottom: 0; }


/* Proč nakupovat – tmavý pruh */
.why-band {
  position: relative;
  overflow: hidden;
  padding-block: 80px;
  background:
    radial-gradient(600px 400px at 0% 0%, rgba(8, 82, 215, .35), transparent 70%),
    radial-gradient(500px 360px at 100% 100%, rgba(8, 82, 215, .18), transparent 70%),
    var(--c-dark);
  color: #fff;
  isolation: isolate;
}

/* jemné šikmé linky v pozadí */
.why-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(-60deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 28px);
  mask-image: linear-gradient(90deg, transparent 30%, #000);
}

.why-band__inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--f-head);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7fa8f5;
}

.section__title--light { color: #fff; font-size: 30px; line-height: 1.2; }
.section__title--light::after { background: #4d8af5; }

.why-band__intro p {
  max-width: 440px;
  margin-top: 16px;
  font-size: var(--fs-md);
  color: rgba(255, 255, 255, .7);
}

.why-band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.why-band__actions .btn { height: 44px; padding-inline: 22px; }

.btn--ghost { border: 1px solid rgba(255, 255, 255, .25); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }

.why {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.why__item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 24px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius-lg);
  transition: background var(--t), border-color var(--t), transform var(--t);
}

.why__item:hover { background: rgba(255, 255, 255, .07); border-color: rgba(127, 168, 245, .4); transform: translateY(-3px); }

.why__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--c-primary);
  box-shadow: 0 6px 18px rgba(8, 82, 215, .45);
  color: #fff;
  font-size: 22px;
}

.why__item strong { display: block; margin-bottom: 6px; font-family: var(--f-head); font-size: var(--fs-base); font-weight: 600; }
.why__item p { font-size: var(--fs-sm); line-height: 1.55; color: rgba(255, 255, 255, .62); }

/* Články */
.articles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.article {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}

.article:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.article__img {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.article__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.article:hover .article__img img { transform: scale(1.05); }

.article__img .tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
}

.article__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.article__date { font-size: var(--fs-xs); color: var(--c-muted); margin-bottom: 6px; }

.article__title {
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.25;
}

.article__title a:hover { color: var(--c-primary); }

.article__text {
  flex: 1;
  margin: 8px 0 16px;
  font-size: var(--fs-base);
  color: var(--c-muted);
}

/* FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 48px;
  align-items: center;
}

/* Kontaktní karta vlevo */
.help-card {
  position: relative;
  overflow: hidden;
  padding: 36px 32px 32px;
  border-radius: 16px;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(255, 255, 255, .18), transparent 70%),
    linear-gradient(150deg, #0a5ff0 0%, var(--c-primary) 45%, #0641ad 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(8, 82, 215, .28);
  isolation: isolate;
}

/* velký otazník v pozadí */
.help-card__mark {
  position: absolute;
  right: -10px;
  bottom: -70px;
  z-index: -1;
  font-family: var(--f-head);
  font-size: 300px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, .08);
  pointer-events: none;
}

.help-card .eyebrow { color: rgba(255, 255, 255, .75); }

.help-card__title {
  font-family: var(--f-head);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.help-card > p {
  margin: 12px 0 24px;
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, .8);
}

.help-card__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(4px);
  transition: background var(--t), transform var(--t);
}

.help-card__row:hover { background: rgba(255, 255, 255, .18); transform: translateX(4px); }

.help-card__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: var(--c-primary);
  font-size: 18px;
}

.help-card__row strong { display: block; font-family: var(--f-head); font-size: var(--fs-base); font-weight: 600; }
.help-card__row small { display: block; font-size: var(--fs-xs); color: rgba(255, 255, 255, .72); }
.help-card__arrow { margin-left: auto; opacity: .7; transition: opacity var(--t); }
.help-card__row:hover .help-card__arrow { opacity: 1; }

.help-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .4);
}

.help-card__more:hover { border-color: #fff; }

/* Otázky vpravo */
.faq {
  display: grid;
  gap: 12px;
}

.faq__item {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--t), box-shadow var(--t);
}

.faq__item:hover { border-color: #c9d4e6; }
.faq__item[open] { border-color: transparent; box-shadow: var(--shadow-hover); }

/* modrý proužek u otevřené otázky */
.faq__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--c-primary);
  transform: scaleY(0);
  transition: transform var(--t);
}

.faq__item[open]::before { transform: scaleY(1); }

.faq__item summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  font-family: var(--f-head);
  font-size: var(--fs-base);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__num {
  flex-shrink: 0;
  width: 28px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #b4c0d3;
  transition: color var(--t);
}

.faq__q { flex: 1; }

/* plus → minus v kroužku */
.faq__toggle {
  position: relative;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c-bg-soft);
  transition: background var(--t), transform var(--t);
}

.faq__toggle::before,
.faq__toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 1px;
  background: var(--c-text);
  transition: transform var(--t), background var(--t);
}

.faq__toggle::after { transform: rotate(90deg); }

.faq__item summary:hover .faq__toggle { background: #e6ecf5; }
.faq__item[open] .faq__num { color: var(--c-primary); }
.faq__item[open] .faq__toggle { background: var(--c-primary); transform: rotate(180deg); }
.faq__item[open] .faq__toggle::before,
.faq__item[open] .faq__toggle::after { background: #fff; }
.faq__item[open] .faq__toggle::after { transform: rotate(0deg); }

.faq__item p {
  padding: 0 22px 22px 68px; /* zarovnáno pod text otázky */
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--c-muted);
  animation: faq-in .3s ease;
}

@keyframes faq-in {
  from { opacity: 0; transform: translateY(-4px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .usp { grid-template-columns: repeat(2, 1fr); }
  .articles { grid-template-columns: repeat(2, 1fr); }
  .why-band__inner { grid-template-columns: 1fr; gap: 40px; }
  .faq-layout { gap: 32px; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .promo { grid-template-columns: 1fr; min-height: 0; }
  .promo__side { padding: 40px var(--gutter); }
  .promo__side::after { display: none; }
  .promo__photo { order: -1; height: 240px; }
  .why-band { padding-block: 56px; }
  .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .marquee__item { height: 76px; padding-inline: 26px; }
  .marquee__item img { width: calc(var(--w, 150px) * .7); }
  .band { padding-block: 48px; }
}

@media (max-width: 640px) {
  .usp { grid-template-columns: 1fr; }
  .promo__logo { width: 140px; }
  .promo__title { font-size: 28px; }
  .promo__text { font-size: var(--fs-base); }
  .why, .articles { grid-template-columns: 1fr; }
  .why__item { padding: 20px; }
  .help-card { padding: 28px 22px; }
  .faq__item p { padding-left: 22px; }
  .section__title--light { font-size: 24px; }
  .band { padding-block: 40px; }
}
