/* ============================================================
   KARPPOVIK  Histria da marca (pgina dedicada)
   ============================================================ */
@import url("karppovik-brand.css");
:root {
  --bg: #050507;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --txt: #f5f5f7;
  --txt-2: #a8a8b3;
  --txt-3: #6a6a76;
  --red: #e10600;
  --red-2: #ff1f3a;
  --grad-red: linear-gradient(135deg, #ff1f3a 0%, #b80000 100%);
  --f-display: "Orbitron", system-ui, sans-serif;
  --f-head: "Rajdhani", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;
  --pad-x: clamp(20px, 4vw, 60px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--red); color: #fff; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* Nav */
.kpv-historia-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 7, 0.85);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 4;
}
.kpv-historia-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  color: var(--txt-2);
  transition: color 0.25s;
}
.kpv-historia-nav__back:hover { color: var(--red-2); }
.kpv-historia-nav__brand img { height: 28px; width: auto; }

main { flex: 1; }

/* Article + hero bg */
.kpv-historia {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) var(--pad-x) clamp(56px, 8vw, 96px);
}
.kpv-historia__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.kpv-historia__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.03);
}
.kpv-historia__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 5, 7, 0.88) 0%, rgba(5, 5, 7, 0.74) 38%, rgba(5, 5, 7, 0.9) 100%),
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(225, 6, 0, 0.12), transparent 72%);
  pointer-events: none;
}
.kpv-historia__inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}
.kpv-historia__head {
  margin-bottom: clamp(28px, 4vw, 40px);
  text-align: center;
}
.kpv-historia__eyebrow {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  color: var(--red-2);
  margin-bottom: 14px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 31, 58, 0.38);
  border-radius: 4px;
  background: rgba(225, 6, 0, 0.07);
}
.kpv-historia__title {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
  line-height: 1.18;
  letter-spacing: 0.02em;
  color: var(--txt);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35em 0.45em;
  align-items: baseline;
  text-align: center;
}
.kpv-historia__title .kpv-brandmark {
  font-size: 1.5em;
}
.kpv-historia__prose {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}
.kpv-historia__prose p {
  font-size: clamp(0.95rem, 1.15vw, 1.02rem);
  color: var(--txt-2);
  line-height: 1.72;
}
.kpv-historia__prose strong {
  color: var(--txt);
  font-weight: 600;
}
.kpv-historia__prose .kpv-historia__closing {
  margin-top: 0.25rem;
  padding: 22px 24px;
  border-left: 3px solid var(--red-2);
  border-radius: 0 10px 10px 0;
  background: rgba(255, 255, 255, 0.03);
  color: var(--txt);
  font-size: clamp(0.96rem, 1.2vw, 1.05rem);
  line-height: 1.75;
}

.kpv-historia-foot {
  border-top: 1px solid var(--line);
  padding: 18px var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--txt-3);
  background: rgba(3, 3, 5, 0.92);
}
.kpv-historia-foot a {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-2);
  transition: color 0.25s;
}
.kpv-historia-foot a:hover { color: var(--txt); }

@media (max-width: 540px) {
  .kpv-historia { padding-top: 36px; padding-bottom: 48px; }
  .kpv-historia__prose .kpv-historia__closing { padding: 18px 16px; }
  .kpv-historia-foot { flex-direction: column; text-align: center; }
}
