/* Warszawska Kuźnia Boksu — demo */
:root {
  --ink: #151412;
  --ink-soft: #4a463f;
  --paper: #f4efe6;
  --paper-deep: #eae3d5;
  --red: #b3122f;
  --red-dark: #8c0d24;
  --line: rgba(21, 20, 18, 0.16);
  --line-light: rgba(244, 239, 230, 0.22);
  --font-head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.7rem;
  border: 2px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); }
.btn-ghost {
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(21, 20, 18, 0.1); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand-logo {
  width: 44px;
  height: 44px;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.brand-logo img { width: 38px; height: 38px; object-fit: contain; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.main-nav { display: flex; gap: 1.8rem; }
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
.header-cta { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6.5rem);
  background:
    linear-gradient(var(--paper) 0 0);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 46px,
    rgba(21, 20, 18, 0.045) 46px 47px
  );
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  position: relative;
}
.kicker {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}
.kicker::before { content: ""; width: 42px; height: 2px; background: var(--red); }
.hero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.6rem, 6.4vw, 4.9rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 1.4rem;
}
.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.13rem);
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.4rem; }
.hero-tel { font-size: 0.95rem; color: var(--ink-soft); }
.hero-tel a { color: var(--ink); font-weight: 600; text-decoration-color: var(--red); text-underline-offset: 3px; }

.hero-photo { position: relative; }
.photo-panel {
  position: relative;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.6rem;
}
.photo-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(14px, 14px);
  border: 2px solid var(--red);
  z-index: -1;
}
.photo-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 30%;
}
.photo-tag {
  position: absolute;
  left: -0.6rem;
  bottom: 1.6rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
}

/* ---------- Section head ---------- */
.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-no {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--red);
  margin-bottom: 0.5rem;
}
.section-no::after { content: " /"; color: var(--ink); opacity: 0.4; }
.section-no.light { color: #e86a7f; }
.section-no.light::after { color: var(--paper); }
h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.08;
  text-transform: uppercase;
}

/* ---------- Pillars ---------- */
.pillars { padding: clamp(3.5rem, 7vw, 6rem) 0; background: #fff; border-block: 1px solid var(--line); }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pillar {
  background: #fff;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  transition: background 0.25s ease;
}
.pillar:hover { background: var(--paper); }
.pillar-no {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 1.1rem;
}
.pillar h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.7rem;
}
.pillar p { color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Training ---------- */
.training { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.training-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.training-photo {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.6rem;
}
.training-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.training-copy .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  margin-bottom: 2rem;
  max-width: 38rem;
}
.info-box {
  border-left: 4px solid var(--red);
  background: #fff;
  padding: 1.6rem 1.8rem;
  box-shadow: 0 10px 30px rgba(21, 20, 18, 0.06);
  margin-bottom: 1.2rem;
}
.info-box h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}
.info-box h3 span { color: var(--ink-soft); font-weight: 500; text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 0.95rem; }
.info-box ul { list-style: none; margin-bottom: 1rem; }
.info-box li { padding: 0.35rem 0 0.35rem 1.2rem; position: relative; border-bottom: 1px dashed var(--line); }
.info-box li:last-child { border-bottom: none; }
.info-box li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 6px; height: 6px; background: var(--red); }
.info-note { font-size: 0.92rem; color: var(--ink-soft); }
.info-note a { color: var(--red); font-weight: 600; text-decoration: none; }
.source { font-size: 0.85rem; color: var(--ink-soft); }
.source a { color: var(--ink-soft); text-underline-offset: 3px; }

/* ---------- Gallery ---------- */
.gallery { padding: clamp(3.5rem, 7vw, 6rem) 0; background: var(--paper-deep); border-block: 1px solid var(--line); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 90px;
  gap: 0.9rem;
}
.g-item { overflow: hidden; border: 1px solid var(--line); background: #fff; padding: 0.4rem; }
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.g-item:hover img { transform: scale(1.04); }
.g-walka      { grid-column: span 4; grid-row: span 5; }
.g-walka img      { object-position: 50% 20%; }
.g-mata       { grid-column: span 8; grid-row: span 3; }
.g-dyplomy    { grid-column: span 4; grid-row: span 4; }
.g-dyplomy img    { object-position: 50% 25%; }
.g-grupa      { grid-column: span 4; grid-row: span 4; }
.g-zwyciestwo { grid-column: span 4; grid-row: span 5; }
.g-zwyciestwo img { object-position: 50% 20%; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--paper); padding: clamp(4rem, 8vw, 7rem) 0; }
.contact h2 { margin-bottom: 1rem; max-width: 20ch; }
.contact-lead { color: rgba(244, 239, 230, 0.75); max-width: 36rem; margin-bottom: 2.6rem; }
.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  margin-bottom: 1.8rem;
}
.contact-card {
  background: var(--ink);
  padding: 1.5rem 1.6rem;
  text-decoration: none;
  color: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.25s ease;
  word-break: break-word;
}
.contact-card:hover { background: #211f1c; }
.cc-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #e86a7f;
}
.cc-value { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.05rem, 1.7vw, 1.35rem); }
.contact-note { font-size: 0.88rem; color: rgba(244, 239, 230, 0.55); max-width: 44rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0e0d0c; color: rgba(244, 239, 230, 0.7); padding: 2rem 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
}
.footer-brand {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper);
  margin-right: auto;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a { color: rgba(244, 239, 230, 0.7); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--paper); }
.footer-demo { font-size: 0.85rem; }
.footer-demo a { color: rgba(244, 239, 230, 0.7); }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 60;
  background: var(--red);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  padding: 0.95rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.8rem 0; border-bottom: 1px dashed var(--line); }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .header-cta { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { max-width: 520px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .training-grid { grid-template-columns: 1fr; }
  .training-photo { position: static; max-width: 480px; }
  .gallery-grid { grid-auto-rows: 70px; gap: 0.6rem; }
  .g-walka, .g-zwyciestwo { grid-column: span 6; grid-row: span 4; }
  .g-mata, .g-grupa { grid-column: span 6; grid-row: span 3; }
  .g-dyplomy { grid-column: span 12; grid-row: span 4; }
  .contact-actions { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
  body { padding-bottom: 4.2rem; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; text-align: center; }
  .gallery-grid { grid-auto-rows: 60px; }
  .g-walka, .g-zwyciestwo, .g-mata, .g-grupa { grid-column: span 12; grid-row: span 3; }
  .g-dyplomy { grid-row: span 3; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
