/* AS Augustowska Szkoła Akrobatyki – wersja 9 „Energia i ruch” (finalna) */

:root {
  --bg: #111827;
  --bg-alt: #1F2937;
  --bg-deep: #0B1120;
  --text: #F9FAFB;
  --muted: #9CA3AF;
  --accent: #FF6B35;
  --accent-ink: #111827;
  --line: #374151;
  --gutter: clamp(1.1rem, 5vw, 2.5rem);
  --max: 72rem;
  --cut: clamp(2rem, 6vw, 5rem);
  --radius: 0.5rem;
  --font-head: 'Arial Black', 'Helvetica Neue', Impact, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}

p { margin: 0 0 1rem; }

a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { color: var(--text); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

ul { margin: 0; padding: 0; list-style: none; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--accent-ink); }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 0.95rem;
  line-height: 1.1;
}
.brand:hover { color: var(--text); }

.brand-logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0.2rem;
  background: #FDFDFB;
  border-radius: var(--radius);
  box-shadow: 0 0 0 2px var(--accent);
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }

.brand-name { max-width: 13rem; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
}

.site-nav a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
}
.site-nav a:hover { background: var(--bg-alt); color: var(--text); }

.site-nav .nav-cta {
  background: var(--accent);
  color: var(--accent-ink);
}
.site-nav .nav-cta:hover { background: var(--text); color: var(--accent-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-head);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--text); border-color: var(--text); color: var(--accent-ink); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--accent-ink); transform: translateY(-2px); }

/* ---------- Common sections ---------- */
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }

.slant {
  background: var(--bg-alt);
  clip-path: polygon(0 var(--cut), 100% 0, 100% calc(100% - var(--cut)), 0 100%);
  padding-block: calc(var(--cut) + clamp(2.5rem, 7vw, 5rem));
}

.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3rem); }

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

h2 {
  font-size: clamp(2.3rem, 9vw, 4.25rem);
  margin-bottom: 1.25rem;
}
h2::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 0.35rem;
  margin-top: 1rem;
  background: var(--accent);
  transform: skewX(-20deg);
}

.lead {
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 85% 30%, rgba(255, 107, 53, 0.22), transparent 60%),
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(255, 255, 255, 0.025) 46px 48px),
    var(--bg-deep);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
  padding-block: clamp(2.5rem, 7vw, 4rem) calc(var(--cut) + 2.5rem);
}

.hero-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.kicker {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.8rem, 2.4vw, 0.95rem);
  letter-spacing: 0.14em;
  line-height: 1.4;
  color: var(--muted);
}

.hero-slogan {
  display: block;
  font-size: clamp(2.6rem, 11.5vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.hero-slogan em {
  display: block;
  font-style: normal;
  color: var(--accent);
}

.hero .lead { max-width: 34rem; margin-top: 1.5rem; margin-bottom: 2rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-art { margin: 0; position: relative; }

.hero-art::before {
  content: "";
  position: absolute;
  inset: 1rem -0.6rem -0.6rem 1rem;
  background: var(--accent);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}
.hero-art img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 28%;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.hero-places {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 1.75rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.hero-places li { display: flex; align-items: center; gap: 0.5rem; }
.hero-places li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  background: var(--accent);
  transform: skewX(-20deg);
}

/* ---------- Value tiles ---------- */
.values { padding-top: clamp(2rem, 5vw, 3rem); }

.tiles {
  display: grid;
  gap: 1rem;
}

.tile {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.5rem 1.6rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-top: 4px solid var(--accent);
}

.tile-no {
  position: absolute;
  right: 0.8rem;
  top: 0.2rem;
  font-family: var(--font-head);
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(249, 250, 251, 0.06);
}

.tile-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tile-icon circle { fill: var(--accent); stroke: none; }

.tile h3 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}
.tile p { margin: 0; color: var(--muted); }

/* ---------- Gallery ---------- */
.shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.shot {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.shot:hover img { transform: scale(1.04); }

.shot-big,
.shot-wide { grid-column: span 2; aspect-ratio: 16 / 10; }
.shot-big { border-bottom: 4px solid var(--accent); }
.shot:nth-child(3) img { object-position: 50% 30%; }
.shot:nth-child(5) img { object-position: 50% 58%; }
.shot:nth-child(6) img { object-position: 50% 2%; }

/* ---------- Classes ---------- */
.classes-inner {
  display: grid;
  gap: 2rem;
  align-items: start;
}
.classes .section-head { margin-bottom: 0; }

.facts {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.facts div {
  padding: 1.1rem 1.25rem;
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.facts dt {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.facts dd { margin: 0; color: var(--text); }

.places { margin-top: clamp(3rem, 7vw, 4.5rem); }
.places-title {
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  margin-bottom: 1.5rem;
}
.place-list { display: grid; gap: 1rem; }
.place {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.5rem 1.4rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-top: 4px solid var(--accent);
}
.place svg {
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.place-no {
  position: absolute;
  right: 0.8rem;
  top: 0.2rem;
  font-family: var(--font-head);
  font-size: 4rem;
  line-height: 1;
  color: rgba(249, 250, 251, 0.06);
}
.place-city {
  margin: 0 0 0.4rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.place-addr { margin: 0; color: var(--muted); line-height: 1.5; }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.about p:not(.lead):not(.eyebrow) { color: var(--muted); }

.about-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.about-list li { line-height: 1.45; }

.about-photo { margin: 0; position: relative; }
.about-photo::before {
  content: "";
  position: absolute;
  inset: -0.6rem 0.8rem 0.8rem -0.6rem;
  border: 3px solid var(--accent);
  border-radius: var(--radius);
}
.about-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}
.about-list li + li { padding-top: 1rem; border-top: 1px solid var(--line); }

.about-key,
.contact-key {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

/* ---------- Contact band ---------- */
.contact {
  background: var(--accent);
  color: var(--accent-ink);
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
  padding-block: calc(var(--cut) + clamp(2.5rem, 7vw, 4.5rem)) clamp(3rem, 8vw, 5rem);
  margin-top: calc(-1 * var(--cut) + 1rem);
}

.contact-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.contact h2 {
  font-size: clamp(2.5rem, 10vw, 5.5rem);
  line-height: 0.95;
}
.contact h2::after { background: var(--accent-ink); }

.contact-lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  font-weight: 600;
}

.contact-list {
  display: grid;
  gap: 1rem;
}
.contact-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
}
.contact-list svg {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.2rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-key { font-weight: 700; }
.contact-list a { color: var(--text); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent); }
.contact .contact-list a:focus-visible { outline-color: var(--accent); }

.hero-tel { font-weight: 700; white-space: nowrap; }

.btn-dark { background: var(--accent-ink); color: var(--text); border-color: var(--accent-ink); }
.btn-dark:hover { background: var(--text); color: var(--accent-ink); border-color: var(--text); transform: translateY(-2px); }
.contact a:focus-visible { outline-color: var(--accent-ink); }

.social-title {
  margin: 1.75rem 0 0.75rem;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 1rem;
}
.contact-social .social-title { margin-top: 0; }
.social {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}
.social li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem;
  border: 2px solid var(--accent-ink);
  border-radius: var(--radius);
  font-weight: 700;
  line-height: 1.2;
  min-width: 0;
  position: relative;
  transition: background-color 0.2s ease;
}
.contact .social a,
.contact .social a:link,
.contact .social a:visited,
.contact .social a:active {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  color: var(--accent-ink);
  text-decoration: none;
}
.social a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.social li:has(a:focus-visible) { background: rgb(17 24 39 / 0.08); }
@media (hover: hover) {
  .social li:has(a:hover) { background: rgb(17 24 39 / 0.12); }
  .contact .social a:hover { text-decoration: underline; }
}
.social a:focus-visible { outline: none; }
.social a:focus-visible::after { outline: 3px solid var(--accent-ink); outline-offset: 3px; }
.social small { display: block; font-weight: 500; font-size: 0.8rem; }
.social svg {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 2;
}
.social .fill { fill: var(--accent-ink); stroke: none; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep);
  color: var(--muted);
  padding-block: 2rem;
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer p { margin: 0; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
}
.footer-brand .brand-logo { width: 2.5rem; height: 2.5rem; box-shadow: none; }

.credit { color: var(--muted); font-size: 0.9rem; }
.credit a { color: var(--accent); }
.credit a:hover { color: var(--text); }

/* ---------- Larger screens ---------- */
@media (min-width: 40em) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .shots { grid-template-columns: repeat(4, 1fr); }
  .shot-big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .place-list { grid-template-columns: repeat(3, 1fr); }
}

/* Three facts in one row only when all three fit; the four social links as two pairs; otherwise one below another */
@media (min-width: 48em) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .social { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social li { padding: 0.9rem 1rem; }
}

@media (min-width: 56em) {
  .hero {
    min-height: min(88vh, 52rem);
    display: flex;
    align-items: center;
  }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
  .hero-art img { aspect-ratio: 4 / 5; max-height: 40rem; object-position: 50% 30%; }
  .classes .section-head { max-width: 46rem; }
  .about-inner { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
  .contact-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem 4rem; }
  .contact-social { grid-column: 1 / -1; }
}

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