/* =========================================================
   DK Kosmos — Warrior Angel Studio
   Strona startowa działu
   ========================================================= */

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

:root {
  --text: #f7f9ff;
  --muted: rgba(235, 241, 255, 0.82);
  --gold: #f5c96b;
  --blue: #76bfff;
  --line: rgba(193, 218, 255, 0.28);
  --panel: rgba(5, 12, 25, 0.66);
  --panel-strong: rgba(4, 10, 22, 0.82);
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.48);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: "Aptos Display", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(1, 5, 14, 0.13) 0%, rgba(1, 5, 14, 0.35) 52%, rgba(1, 5, 14, 0.94) 100%),
    url("studio.jpg") center top / cover fixed no-repeat;
  overflow-x: hidden;
}

.page-shade {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 16%, rgba(245, 201, 107, 0.12), transparent 34%),
    radial-gradient(circle at 82% 42%, rgba(72, 145, 255, 0.11), transparent 38%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(2, 7, 17, 0.68);
  border-bottom: 1px solid rgba(193, 218, 255, 0.18);
  backdrop-filter: blur(13px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: white;
  text-shadow: 0 0 18px rgba(118, 191, 255, 0.38);
}

.tag {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.top-nav a {
  display: inline-block;
  padding: 8px 13px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: 0.25s ease;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  border-color: var(--line);
  background: rgba(118, 191, 255, 0.1);
  box-shadow: 0 0 22px rgba(118, 191, 255, 0.16);
  outline: none;
}

.wrap {
  width: min(1220px, calc(100% - 34px));
  margin: 0 auto;
}

.hero {
  min-height: 72vh;
  display: grid;
  place-items: end center;
  padding: clamp(120px, 24vh, 230px) 0 58px;
}

.hero-card {
  width: min(860px, 100%);
  padding: clamp(25px, 5vw, 48px);
  text-align: center;
  background: linear-gradient(145deg, rgba(3, 9, 21, 0.76), rgba(7, 18, 39, 0.57));
  border: 1px solid rgba(193, 218, 255, 0.3);
  border-radius: 28px;
  box-shadow: var(--shadow), inset 0 0 42px rgba(118, 191, 255, 0.05);
  backdrop-filter: blur(7px);
  animation: rise 0.9s ease-out both;
}

.eyebrow {
  margin-bottom: 10px;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

h1 {
  font-size: clamp(2.9rem, 8vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.18),
    0 0 36px rgba(72, 145, 255, 0.24);
}

.lead {
  max-width: 720px;
  margin: 22px auto 0;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
  color: var(--muted);
}

.enter-btn {
  display: inline-block;
  margin-top: 27px;
  padding: 12px 24px;
  color: white;
  text-decoration: none;
  letter-spacing: 0.05em;
  border: 1px solid rgba(245, 201, 107, 0.5);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 201, 107, 0.17), rgba(72, 145, 255, 0.16));
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.enter-btn:hover,
.enter-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(245, 201, 107, 0.82);
  box-shadow: 0 0 25px rgba(245, 201, 107, 0.18), 0 0 35px rgba(72, 145, 255, 0.16);
  outline: none;
}

.section-intro {
  max-width: 760px;
  margin: 35px auto 30px;
  text-align: center;
}

.section-intro h2 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: 0.03em;
}

.section-intro > p:last-child {
  margin-top: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 12px 0 70px;
}

.tile {
  position: relative;
  min-height: 205px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(145deg, var(--panel), var(--panel-strong));
  border: 1px solid rgba(193, 218, 255, 0.2);
  border-radius: 23px;
  box-shadow: 0 13px 34px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(7px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 201, 107, 0.07), transparent 45%, rgba(72, 145, 255, 0.08));
  opacity: 0.75;
  transition: opacity 0.25s ease;
}

.tile:hover,
.tile:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(193, 218, 255, 0.48);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.48), 0 0 28px rgba(72, 145, 255, 0.1);
  outline: none;
}

.tile:hover::before,
.tile:focus-visible::before {
  opacity: 1;
}

.t-content {
  position: relative;
  z-index: 1;
  min-height: 205px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 23px;
}

.number {
  position: absolute;
  top: 18px;
  right: 20px;
  color: rgba(245, 201, 107, 0.62);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
}

.t-content h3 {
  font-size: 1.28rem;
  letter-spacing: 0.02em;
}

.t-content p {
  margin-top: 8px;
  line-height: 1.55;
  color: var(--muted);
}

.site-footer {
  padding: 20px 18px 28px;
  text-align: center;
  color: rgba(235, 241, 255, 0.62);
  background: rgba(1, 5, 14, 0.76);
  border-top: 1px solid rgba(193, 218, 255, 0.12);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 67vh;
  }
}

@media (max-width: 640px) {
  body {
    background-attachment: scroll;
    background-position: 38% top;
  }

  .site-header {
    padding: 13px 16px;
  }

  .brand {
    display: block;
  }

  .tag {
    display: block;
    margin-top: 3px;
    font-size: 0.75rem;
  }

  .top-nav {
    display: none;
  }

  .wrap {
    width: min(100% - 22px, 1220px);
  }

  .hero {
    min-height: 72vh;
    padding-bottom: 35px;
  }

  .hero-card {
    border-radius: 22px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 45px;
  }

  .tile,
  .t-content {
    min-height: 170px;
  }
}

@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;
  }
}
