/* ==========================================================================
   Panda — strona główna (dawna Wersja II)
   ========================================================================== */

:root {
  --v2-white: #ffffff;
  --v2-black: #0a0a0a;
  --v2-muted: #5c5c5c;
  --v2-border: #d8d8d8;
  --v2-bg-muted: #f4f4f2;

  /* Aktualne czcionki */
  --v2-font-display: 'Bebas Neue', sans-serif;
  --v2-font-body: 'Inter', system-ui, sans-serif;
  /*
   * Poprzednie czcionki (Wersja I) — nie usuwać bez wyraźnej prośby:
   *   --font-display: 'Syne', system-ui, sans-serif;
   *   --font-body: 'IBM Plex Sans', system-ui, sans-serif;
   * Google Fonts (dawniej):
   *   family=IBM+Plex+Sans:ital,wght@0,400;0,500;1,400&family=Syne:wght@600;700;800
   */

  --v2-header-h: 4.25rem;
  --v2-container: 76rem;
  --v2-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

body.v2 {
  font-family: var(--v2-font-body);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--v2-black);
  background: var(--v2-white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button, input, textarea { font: inherit; color: inherit; }

.v2-skip {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--v2-black);
  color: var(--v2-white);
}

.v2-skip:focus { top: 1rem; }

.v2-container {
  width: 100%;
  max-width: var(--v2-container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* Header */
.v2-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--v2-header-h);
  background: var(--v2-white);
  border-bottom: 1px solid var(--v2-border);
}

.v2-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--v2-container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.v2-logo {
  --v2-logo-size: clamp(1.5rem, 4.5vw, 2.25rem);
  display: flex;
  align-items: center;
  gap: 0.65em;
  font-size: var(--v2-logo-size);
  z-index: 101;
}

.v2-logo-text {
  font-family: var(--v2-font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: 0.02em;
  word-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
  color: #000;
}

.v2-logo-mark {
  width: auto;
  height: 1em;
  flex-shrink: 0;
}

.v2-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
}

.v2-nav-toggle span {
  display: block;
  width: 1.375rem;
  height: 1px;
  background: var(--v2-black);
  transition: transform 0.35s var(--v2-ease), opacity 0.35s var(--v2-ease);
}

.v2-nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.v2-nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.v2-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.v2-nav-sections {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
}

.v2-nav-sections a {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--v2-muted);
  transition: color 0.3s var(--v2-ease);
}

.v2-nav-sections a:hover,
.v2-nav-sections a:focus-visible,
.v2-nav-sections a.is-active {
  color: var(--v2-black);
}

.v2-lang {
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--v2-muted);
}

.v2-lang-active { color: var(--v2-black); }
.v2-lang-sep { margin-inline: 0.35rem; }
.v2-lang-link:hover { color: var(--v2-black); }

@media (max-width: 960px) {
  .v2-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--v2-white);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--v2-ease), visibility 0.35s var(--v2-ease);
  }

  .v2-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .v2-nav-sections {
    flex-direction: column;
    gap: 1.25rem;
  }

  .v2-nav-sections a {
    font-size: 0.875rem;
  }
}

@media (min-width: 961px) {
  .v2-nav-toggle { display: none; }
}

/* Typography */
.v2-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--v2-muted);
  margin-bottom: 0.625rem;
}

.v2-label--light { color: rgba(255, 255, 255, 0.55); }

.v2-rule {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--v2-black);
  margin-bottom: 1.5rem;
}

.v2-rule--light { background: rgba(255, 255, 255, 0.4); }

.v2-title {
  font-family: var(--v2-font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--v2-black);
  white-space: pre-line;
  margin-bottom: 1.25rem;
}

.v2-title--light { color: var(--v2-white); }

.v2-text {
  color: var(--v2-muted);
  line-height: 1.75;
  max-width: 36rem;
}

.v2-text--light { color: rgba(255, 255, 255, 0.65); }

.v2-text--cols p + p { margin-top: 1rem; }

/* Buttons */
.v2-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--v2-black);
  background: transparent;
  border: 1px solid var(--v2-black);
  cursor: pointer;
  transition: background 0.3s var(--v2-ease), color 0.3s var(--v2-ease);
  min-height: 2.75rem;
}

.v2-btn-ghost:hover,
.v2-btn-ghost:focus-visible {
  background: var(--v2-black);
  color: var(--v2-white);
}

.v2-btn-ghost--dark {
  border-color: var(--v2-black);
}

.v2-btn-ghost:focus-visible {
  outline: 2px solid var(--v2-black);
  outline-offset: 3px;
}

/* Hero */
.v2-hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--v2-header-h);
}

.v2-hero-layout {
  display: grid;
  min-height: calc(100svh - var(--v2-header-h));
}

@media (min-width: 900px) {
  .v2-hero-layout {
    grid-template-columns: minmax(320px, 42%) 1fr;
  }
}

/* Tablet: hero ma połowę pełnej wysokości z mobile i desktopu. */
@media (min-width: 900px) and (max-width: 1199px) {
  .v2-hero {
    min-height: 50svh;
  }

  .v2-hero-layout {
    min-height: calc(50svh - var(--v2-header-h));
  }

  .v2-hero-copy {
    padding-block: 1.25rem;
  }

  .v2-hero-copy .v2-rule {
    margin-bottom: 0.85rem;
  }

  .v2-hero-title {
    margin-bottom: 0.75rem;
    font-size: clamp(2.15rem, 4.6vw, 3.35rem);
  }

  .v2-lead {
    margin-bottom: 1.15rem;
  }
}

.v2-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
  background: var(--v2-white);
  position: relative;
  z-index: 2;
}

@media (min-width: 900px) {
  .v2-hero-copy {
    padding-left: max(1.25rem, calc((100vw - var(--v2-container)) / 2 + 1.25rem));
    padding-right: 2.5rem;
  }
}

.v2-hero-title {
  font-family: var(--v2-font-display);
  font-size: clamp(2.75rem, 6.5vw, 4.75rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: var(--v2-black);
  margin-bottom: 1.25rem;
  max-width: 14ch;
}

.v2-lead {
  font-size: 0.9375rem;
  color: var(--v2-muted);
  line-height: 1.75;
  max-width: 26rem;
  margin-bottom: 2rem;
}

.v2-hero-media {
  position: relative;
  margin: 0;
  min-height: clamp(280px, 45vh, 520px);
  background: var(--v2-black);
  overflow: hidden;
}

@media (min-width: 900px) {
  .v2-hero-media {
    min-height: auto;
  }
}

.v2-hero-video,
.v2-hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  filter: grayscale(0.5) contrast(1.08);
}

.v2-hero-fallback[hidden],
.v2-hero-video[hidden] {
  display: none;
}

.v2-hero-fade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to right,
    var(--v2-white) 0%,
    rgba(255, 255, 255, 0.85) 8%,
    rgba(255, 255, 255, 0.35) 18%,
    transparent 38%
  );
}

@media (max-width: 899px) {
  .v2-hero-fade {
    background: linear-gradient(
      to top,
      transparent 55%,
      rgba(255, 255, 255, 0.4) 75%,
      var(--v2-white) 100%
    );
  }

  .v2-hero-copy {
    margin-top: -3rem;
  }
}

/* Sections */
.v2-section {
  padding-block: clamp(4rem, 10vw, 7rem);
  border-top: 1px solid var(--v2-border);
}

/* Consents sit just above the footer; keep only form-like bottom padding. */
#kontakt {
  padding-bottom: 1.25rem;
}

.v2-section--dark {
  background: var(--v2-black);
  color: var(--v2-white);
  border-top-color: rgba(255, 255, 255, 0.12);
}

/* Film sits flush against the black about block. */
#o-nas {
  border-top: none;
}

@media (max-width: 899px) {
  #o-nas {
    background: linear-gradient(
      to bottom,
      #000 0%,
      #000 25%,
      var(--v2-black) 50%
    );
  }
}

.v2-section--muted {
  background: var(--v2-bg-muted);
}

.v2-section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 36rem;
}

.v2-split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .v2-split {
    grid-template-columns: 1fr 2.2fr;
    gap: 4rem;
    align-items: start;
  }
}

/* Showreel */
.v2-showreel {
  background: var(--v2-black);
  border-top: none;
}

.v2-showreel-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .v2-showreel-grid {
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
  }
}

.v2-showreel .v2-label { color: rgba(255, 255, 255, 0.5); }
.v2-showreel .v2-rule { background: rgba(255, 255, 255, 0.35); }
.v2-showreel .v2-title { color: var(--v2-white); }
.v2-showreel .v2-text { color: rgba(255, 255, 255, 0.6); }

.v2-player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
  cursor: pointer;
}

.v2-player-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  opacity: 0.75;
}

.v2-player-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: var(--v2-white);
  border: none;
  cursor: pointer;
  z-index: 2;
}

.v2-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Partners / logos */
.v2-partners-desc {
  margin-top: 0.5rem;
  max-width: 36rem;
}

.v2-partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 2rem;
  align-items: center;
  justify-items: center;
}

@media (min-width: 600px) {
  .v2-partners-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.75rem 2.5rem;
  }
}

@media (min-width: 900px) {
  .v2-partners-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3.25rem 3rem;
  }
}

@media (min-width: 1100px) {
  .v2-partners-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.v2-partners-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 4.5rem;
  min-height: 4.5rem;
  padding: 0;
}

.v2-partners-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(1.05);
  opacity: 0.72;
  transition: filter 0.35s var(--v2-ease), opacity 0.35s var(--v2-ease);
}

.v2-partners-item:hover .v2-partners-logo {
  filter: grayscale(0) contrast(1);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .v2-partners-logo {
    transition: none;
  }
}

/* Portfolio */
.v2-portfolio {
  display: flex;
  flex-direction: column;
  gap: clamp(4.5rem, 9vw, 7.5rem);
}

.v2-portfolio-item {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .v2-portfolio-item {
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .v2-portfolio-item:nth-child(even) .v2-portfolio-visual { order: 2; }
  .v2-portfolio-item:nth-child(even) .v2-portfolio-info { order: 1; }
}

.v2-portfolio-visual {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.v2-portfolio-visual--video {
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
}

.v2-portfolio-video {
  position: relative;
  width: 100%;
  height: 100%;
}

.v2-portfolio-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.v2-portfolio-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.06);
  transition: transform 0.7s var(--v2-ease);
}

.v2-portfolio-visual:hover img {
  transform: scale(1.03);
}

.v2-portfolio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.75rem;
}

.v2-portfolio-type { color: rgba(255, 255, 255, 0.85); }

.v2-portfolio-project {
  font-family: var(--v2-font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--v2-white);
  margin-bottom: 1rem;
}

.v2-portfolio-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.v2-portfolio-scope li {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.55);
}

.v2-portfolio-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.v2-portfolio-result {
  font-size: 0.8125rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.v2-portfolio-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(2.75rem, 6vw, 4.25rem);
}

.v2-portfolio-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--v2-white);
  text-decoration: none;
  line-height: 1;
}

.v2-portfolio-more a span {
  font-family: var(--v2-font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 1.85rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.v2-portfolio-more svg {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.v2-portfolio-more a:hover,
.v2-portfolio-more a:focus-visible {
  color: rgba(255, 255, 255, 0.72);
}

.v2-portfolio-more a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 6px;
}

/* Services */
.v2-services {
  display: grid;
  gap: 1px;
  background: var(--v2-border);
  border: 1px solid var(--v2-border);
}

@media (min-width: 600px) {
  .v2-services { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .v2-services { grid-template-columns: repeat(3, 1fr); }
}

.v2-services .v2-service {
  background: var(--v2-bg-muted);
  padding: 1.75rem;
  /* Beats .reveal's shorthand so the hover background can ease without dropping the scroll reveal. */
  transition: background 0.8s ease, opacity 0.65s var(--v2-ease), transform 0.65s var(--v2-ease);
}

.v2-service:hover { background: var(--v2-white); }

.v2-service-num {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  color: var(--v2-muted);
  margin-bottom: 1rem;
}

.v2-service-title {
  font-family: var(--v2-font-display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}

.v2-service-desc {
  font-size: 0.8125rem;
  color: var(--v2-muted);
  line-height: 1.65;
}

/* Contact */
.v2-contact {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .v2-contact {
    grid-template-columns: 1fr 1.15fr;
    gap: 5rem;
  }
}

.v2-contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.v2-contact-details a {
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s var(--v2-ease);
}

.v2-contact-details a:hover {
  color: var(--v2-muted);
  text-decoration: none;
}

.v2-contact-details p { color: var(--v2-muted); }

.v2-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.v2-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.v2-field label {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--v2-muted);
}

.v2-field input,
.v2-field textarea {
  padding: 0.75rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--v2-border);
  transition: border-color 0.3s var(--v2-ease);
}

.v2-field input:focus,
.v2-field textarea:focus {
  outline: none;
  border-bottom-color: var(--v2-black);
}

.v2-field textarea {
  resize: vertical;
  /* Two text lines shorter than the previous 6rem floor (rows 5 → 3). */
  min-height: calc(6rem - 2lh);
}

.v2-form-status {
  font-size: 0.8125rem;
  color: var(--v2-muted);
  min-height: 1.25rem;
}

/* An empty status is not a flex item, so it does not add a blank band under the consents. */
.v2-form-status:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.v2-form-status.is-success { color: #2a6b2a; }

.v2-consent {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.v2-consent.is-revealed {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.v2-consent-notice {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--v2-muted);
}

.v2-consent-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.v2-consent-choice input {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  accent-color: var(--v2-black);
}

.v2-consent-choice input:focus-visible {
  outline: 2px solid var(--v2-black);
  outline-offset: 2px;
}

.v2-consent-choice label {
  font-size: 0.8125rem;
  line-height: 1.55;
  cursor: pointer;
}

.v2-consent-error {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #8f2d2e;
  /* Out of flow until validation fails, so a hidden line does not leave a blank band above the footer. */
  display: none;
}

.v2-consent.is-revealed .v2-consent-error.is-shown {
  display: block;
}

.v2-consent-choice input[aria-invalid='true'] {
  outline: 2px solid #8f2d2e;
  outline-offset: 2px;
}

#kontakt .v2-fields {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Contact thank-you dialog */
.v2-thanks {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.v2-thanks.is-open {
  opacity: 1;
  pointer-events: auto;
}

.v2-thanks[hidden] {
  display: none;
}

.v2-thanks:focus {
  outline: none;
}

.v2-thanks-scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  cursor: pointer;
}

.v2-thanks-card {
  position: relative;
  z-index: 1;
  width: min(26rem, 100%);
  max-height: calc(100svh - 2rem);
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem 1.5rem;
  background: var(--v2-white);
  border: 1px solid var(--v2-border);
  box-shadow: 0 1.25rem 3rem rgba(10, 10, 10, 0.12);
}

.v2-thanks-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  color: var(--v2-muted);
  background: transparent;
  border: none;
  cursor: pointer;
}

.v2-thanks-close:hover,
.v2-thanks-close:focus-visible {
  color: var(--v2-black);
}

.v2-thanks-close:focus-visible {
  outline: 2px solid var(--v2-black);
  outline-offset: 2px;
}

.v2-thanks-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.25rem;
  border-radius: 50%;
  background: var(--v2-bg-muted);
  color: var(--v2-black);
}

.v2-thanks-mark--error {
  color: #8f2d2e;
}

.v2-thanks-title {
  font-family: var(--v2-font-body);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--v2-black);
  margin-bottom: 0.5rem;
}

.v2-thanks-body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--v2-muted);
  max-width: 22rem;
  margin-bottom: 1.25rem;
}

.v2-thanks-done {
  align-self: stretch;
  width: 100%;
  justify-content: center;
  background: var(--v2-black);
  color: var(--v2-white);
}

.v2-thanks-done:hover,
.v2-thanks-done:focus-visible {
  background: var(--v2-white);
  color: var(--v2-black);
}

.v2-thanks-auto {
  margin-top: 0.875rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--v2-muted);
}

/* Footer */
.v2-footer {
  border-top: 1px solid var(--v2-border);
  padding-top: 3rem;
}

.v2-footer-grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .v2-footer-grid {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(1.75rem, 4vw, 3.5rem);
  }

  .v2-footer-brand {
    align-self: center;
  }
}

.v2-footer-brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}

.v2-footer-logo {
  display: block;
  height: 5.5rem;
  width: auto;
}

.v2-footer-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  flex-shrink: 0;
}

.v2-footer-nav a {
  font-size: 0.875rem;
  line-height: 1.35;
  color: #242424;
  text-decoration: none;
  transition: color 0.3s var(--v2-ease);
}

.v2-footer-nav a:hover { color: var(--v2-black); }

.v2-footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  color: #242424;
}

.v2-footer-contact a,
.v2-footer-contact p {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  line-height: 1.35;
  color: inherit;
  margin: 0;
  text-decoration: none;
}

.v2-footer-contact a {
  transition: color 0.3s var(--v2-ease);
}

.v2-footer-contact a:hover { color: var(--v2-black); }

.v2-footer-contact svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

.v2-footer-social {
  --v2-social-icon: 2rem;
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  color: #242424;
}

.v2-footer-social-icons {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
}

.v2-footer-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}

.v2-footer-social svg {
  width: var(--v2-social-icon);
  height: var(--v2-social-icon);
}

/* The YouTube glyph is shorter inside the shared viewBox. */
.v2-footer-social .v2-icon-youtube {
  width: calc(var(--v2-social-icon) * 1.35);
  height: calc(var(--v2-social-icon) * 1.35);
}

.v2-footer-legal {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
  color: var(--v2-muted);
}

.v2-footer-legal-sep {
  width: 1px;
  height: 0.85em;
  background: currentColor;
  opacity: 0.7;
  flex-shrink: 0;
}

.v2-footer-terms {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s var(--v2-ease);
}

.v2-footer-terms:hover,
.v2-footer-terms:focus-visible {
  color: var(--v2-black);
}

.v2-footer-terms:focus-visible {
  outline: 2px solid var(--v2-black);
  outline-offset: 3px;
}

.v2-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  border-top: 1px solid var(--v2-border);
  padding-block: 1.15rem;
}

.v2-footer-bottom p {
  font-size: 0.75rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--v2-muted);
}

/* Mobile only. Desktop row layout (min-width: 768px) is unchanged. */
@media (max-width: 767px) {
  .v2-footer {
    padding-top: 1.875rem;
  }

  .v2-footer-grid {
    gap: 1.375rem;
    padding-bottom: 1.5rem;
  }

  .v2-footer-bottom {
    padding-block: 0.575rem;
  }

  .v2-footer-brand,
  .v2-footer-grid > nav,
  .v2-footer-contact,
  .v2-footer-social {
    width: 100%;
  }

  .v2-footer-brand {
    justify-content: center;
  }

  .v2-footer-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    column-gap: 1.5rem;
    row-gap: 1.15rem;
    width: 100%;
  }

  .v2-footer-nav li:nth-child(odd) {
    grid-column: 1;
    justify-self: center;
    text-align: center;
  }

  .v2-footer-nav li:nth-child(even) {
    grid-column: 2;
    justify-self: center;
    text-align: center;
  }

  .v2-footer-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--v2-black);
    text-decoration: none;
  }

  .v2-footer-nav a:focus-visible {
    outline: 2px solid var(--v2-black);
    outline-offset: 3px;
  }

  .v2-footer-contact {
    gap: 0.45rem;
  }

  .v2-footer-contact a,
  .v2-footer-contact p {
    gap: 0.85rem;
    min-height: 2.75rem;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--v2-black);
  }

  .v2-footer-contact a:focus-visible {
    outline: 2px solid var(--v2-black);
    outline-offset: 3px;
  }

  .v2-footer-contact svg {
    width: 1.125rem;
    height: 1.125rem;
  }

  .v2-footer-social {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .v2-footer-social-icons {
    align-items: center;
    justify-content: flex-start;
  }

  .v2-footer-social-icons {
    gap: 0.35rem;
  }

  .v2-footer-social-icons a {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .v2-footer-social-icons a:focus-visible {
    outline: 2px solid var(--v2-black);
    outline-offset: 3px;
  }

  .v2-footer-social {
    --v2-social-icon: 2.5rem;
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.65s var(--v2-ease), transform 0.65s var(--v2-ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay { transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Regulamin */
.v2-legal {
  padding-top: calc(var(--v2-header-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.v2-legal-article {
  max-width: 42rem;
}

.v2-legal-head .v2-title {
  margin-bottom: 0.75rem;
}

.v2-legal-date {
  margin-bottom: 2.5rem;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: none;
  color: var(--v2-muted);
}

.v2-legal-section + .v2-legal-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--v2-border);
}

.v2-legal-heading {
  font-family: var(--v2-font-body);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 1rem;
}

.v2-legal-section p {
  line-height: 1.75;
  margin-bottom: 0.875rem;
}

.v2-legal-section p:last-child,
.v2-legal-section .v2-legal-list:last-child,
.v2-legal-section .v2-legal-address:last-child {
  margin-bottom: 0;
}

.v2-legal-address {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0.25rem 0 1rem;
  line-height: 1.7;
}

.v2-legal-list {
  list-style: disc;
  margin: 0.25rem 0 1rem;
  padding-left: 1.25rem;
}

.v2-legal-list li {
  line-height: 1.65;
  margin-bottom: 0.35rem;
}

.v2-legal-list li:last-child {
  margin-bottom: 0;
}

.v2-legal-error {
  color: var(--v2-muted);
}
