:root {
  --background: #0e0919;
  --surface: #171026;
  --surface-light: #26183b;
  --gold: #b989dc;
  --gold-light: #ead2ff;
  --text: #f6f3ee;
  --muted: #b9b8c6;
  --line: rgba(185, 137, 220, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 24px 5%;
  background: transparent !important;
  filter: none !important;
  opacity: 1;
}

.brand {
  color: var(--gold-light);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 4px;
  text-decoration: none;
}

nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}

nav a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--gold-light);
}

.hero,
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center top;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-color: transparent;
  background-blend-mode: normal;
  filter: none !important;
  opacity: 1;
  text-align: center;
}

.hero::before,
.page-hero::before {
  display: none !important;
  content: none !important;
}

.hero-home {
  width: 100%;
  min-height: 0;
  padding: 0;
  background: none;
}

.page-hero {
  width: 100%;
  min-height: 0;
  aspect-ratio: 16 / 9;
  padding: 120px 20px 50px;
}

.page-hero-about {
  background-image: url("Images/Background/0001-ciebi_backgr.png?v=20260813-12");
}

.page-hero-offer,
.page-hero-contact {
  background-image: url("Images/Background/0001-ciebi_backgr.png?v=20260813-12");
}

.page-hero-music {
  background-image: url("Images/Background/0001-ciebi_backgr.png?v=20260813-12");
}

.hero-content,
.page-hero > div {
  position: relative;
  z-index: 1;
  width: min(900px, 92%);
}

.hero h1 {
  margin: 14px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 8vw, 116px);
  font-weight: 400;
  line-height: 0.98;
}

.page-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 400;
}

.hero-content > p:not(.eyebrow) {
  max-width: 720px;
  margin: 0 auto;
  color: #e4e2e8;
  font-size: 20px;
}

.hero-content .hero-description {
  position: absolute;
  top: calc(100% + 70px);
  left: 72%;
  width: min(580px, 90vw);
  margin: 0;
  transform: translateX(-50%);
  font-size: 18px;
  line-height: 1.45;
  text-align: center;
}

.hero-description span {
  display: block;
}

.eyebrow,
.section-label {
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}

.button {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid var(--gold);
  border-radius: 32px;
  background: var(--gold);
  color: #11121b;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--gold-light);
}

.button-outline {
  background: transparent;
  color: var(--text);
}


.hero-clean {
  display: block;
}

.hero-scene {
  position: relative;
  width: 100%;
}

.hero-scene-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-actions-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  margin: 0;
}

.hero-clean .button,
.hero-clean .button-outline {
  position: absolute;
  padding: 14px 28px;
  border: 2px solid rgba(185, 137, 220, 0.95);
  border-radius: 32px;
  background: transparent !important;
  color: #f6f3ee;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(185, 137, 220, 0.12), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.hero-clean .button:hover,
.hero-clean .button-outline:hover {
  background: rgba(185, 137, 220, 0.12) !important;
  color: #ffffff;
  transform: translate(-50%, -50%);
}

.hero-listen {
  left: 38.5%;
  top: 60.5%;
  transform: translate(-50%, -50%);
}

.hero-order {
  left: 79.5%;
  top: 60.5%;
  transform: translate(-50%, -50%);
}

footer {
  padding: 18px 20px 26px;
  text-align: center;
}

footer p {
  color: var(--muted);
}

.section {
  padding: 90px 0;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.narrow {
  width: min(820px, 92%);
  text-align: center;
}

.section h2 {
  margin: 10px 0 34px;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 400;
  text-align: center;
}

.lead {
  margin-bottom: 24px;
  color: #e8e6ed;
  font-size: 20px;
}

.narrow > p:not(.lead) {
  margin-bottom: 30px;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card,
.media-card,
.contact-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--surface-light), var(--surface));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.card {
  padding: 34px;
}

.card h3 {
  margin-bottom: 14px;
  color: var(--gold-light);
  font-size: 24px;
}

.card p {
  color: var(--muted);
}

.card-number {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
}

.center-action {
  margin-top: 40px;
  text-align: center;
}

.player-section {
  padding-top: 65px;
}

.media-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.media-card {
  padding: 26px;
  text-align: center;
}

.media-card h2 {
  margin: 22px 0 16px;
  font-size: 24px;
}

.cover {
  width: min(350px, 100%);
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(185, 137, 220, 0.25);
}

.banner {
  width: 100%;
  aspect-ratio: 19 / 8;
  border-radius: 10px;
  object-fit: cover;
}

audio,
video {
  width: 100%;
}

audio {
  display: none;
}

video {
  margin-top: 22px;
  border-radius: 10px;
  background: #000;
}

.progress-panel {
  margin-top: 22px;
}

.time-data {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.progress-track {
  width: 100%;
  height: 11px;
  overflow: hidden;
  border-radius: 8px;
  background: #31323d;
  cursor: pointer;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #2a9df4;
}

.custom-player-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.custom-player-controls button {
  min-width: 92px;
  padding: 11px 18px;
  border: 2px solid var(--gold);
  border-radius: 24px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.custom-player-controls button:hover,
.custom-player-controls button:focus-visible {
  background: var(--gold);
  color: #11121b;
}

.fullscreen-button {
  margin-top: 14px;
  padding: 9px 22px;
  border: 1px solid var(--gold);
  border-radius: 22px;
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.fullscreen-button:hover,
.fullscreen-button:focus-visible {
  background: var(--gold);
  color: #11121b;
}

.occasion-intro {
  max-width: 980px;
  margin: 0 auto 40px;
  color: #e8e6ed;
  font-size: 19px;
  line-height: 1.8;
  text-align: center;
}

.occasion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.occasion-card {
  display: block;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--surface-light), var(--surface));
  color: var(--text);
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.occasion-card:hover,
.occasion-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold-light);
}

.occasion-card h3 {
  margin-bottom: 10px;
  color: var(--gold-light);
  font-size: 22px;
}

.occasion-card p {
  color: var(--muted);
}

.category-player-heading {
  margin-bottom: 34px;
  text-align: center;
}

.category-player-heading p {
  max-width: 860px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.song-info-card {
  max-width: 980px;
  margin: 34px auto 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--surface-light), var(--surface));
  text-align: center;
}

.song-info-card h2 {
  margin-bottom: 14px;
  font-size: 30px;
}

.song-info-card p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.category-back {
  margin-top: 26px;
  text-align: center;
}

.order-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
  text-align: left;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--gold-light);
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #55566a;
  border-radius: 8px;
  background: #0c0b16;
  color: var(--text);
  font: inherit;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.order-submit {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 210px;
  cursor: pointer;
}

.form-message {
  display: none;
  grid-column: 1 / -1;
  padding: 16px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(185, 137, 220, 0.08);
  text-align: center;
}

.client-offer {
  max-width: 1100px;
  margin: 0 auto;
}

.client-welcome {
  text-align: center;
  margin-bottom: 30px;
}

.client-demo-card {
  max-width: 760px;
  margin: 0 auto 42px;
}

.client-demo-card .banner {
  width: 100%;
}

.client-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.client-option {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: #171717;
  border: 1px solid #3f3f3f;
  border-radius: 18px;
}

.client-option h3 {
  color: var(--gold);
}

.client-option .button {
  margin-top: auto;
  text-align: center;
}

.client-legal {
  margin-top: 34px;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .client-options {
    grid-template-columns: 1fr;
  }
}

.contact-box {
  padding: 50px;
}

.test-notice {
  padding: 18px;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(185, 137, 220, 0.08);
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

footer {
  padding: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #05060c;
  color: #888895;
  text-align: center;
}

@media (max-width: 900px) {
  .site-header {
    position: relative;
    flex-direction: column;
    gap: 18px;
    background: transparent !important;
  }

  nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  .cards,
  .media-layout,
  .occasion-grid,
  .order-form {
    grid-template-columns: 1fr;
  }

  .form-field-full,
  .order-submit,
  .form-message {
    grid-column: 1;
  }

  .hero-home,
  .page-hero {
    height: auto;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 20px;
  }

  .brand {
    font-size: 17px;
    letter-spacing: 2px;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions-overlay {
    position: static;
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 18px 20px 0;
  }

  .hero-clean .button,
  .hero-clean .button-outline,
  .hero-listen,
  .hero-order {
    position: static;
    transform: none;
  }

  .hero-clean .button:hover,
  .hero-clean .button-outline:hover {
    transform: none;
  }

  .hero-content .hero-description {
    position: static;
    width: 100%;
    margin-top: 28px;
    transform: none;
  }

  .section {
    padding: 60px 0;
  }

  .contact-box {
    padding: 30px 20px;
  }

  .time-data {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }

  .custom-player-controls {
    gap: 7px;
  }

  .custom-player-controls button {
    min-width: 78px;
    padding: 10px 12px;
  }
}


@supports not (aspect-ratio: 16 / 9) {
  .page-hero {
    height: calc(100vw * 9 / 16);
  }
}


/* =========================================================
   ANDROID / MOBILE — NUTKA W PREZENCIE
   Background graphics are not filtered, darkened or recolored.
========================================================= */
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
img, video { max-width: 100%; height: auto; }
body { overflow-x: hidden; }

.gramophone-card { text-align: center; }
.gramophone-player {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto 18px;
  line-height: 0;
}
.gramophone-panel { display:block; width:100%; height:auto; }
.gramophone-cover {
  position:absolute;
  width:42%;
  aspect-ratio:1/1;
  left:47%;
  top:41%;
  transform:translate(-50%,-50%);
  transform-origin:center center;
  border-radius:50%;
  object-fit:cover;
}
.gramophone-cover.playing { animation:nutkaVinylSpin 6s linear infinite; }
@keyframes nutkaVinylSpin {
  from { transform:translate(-50%,-50%) rotate(0deg); }
  to { transform:translate(-50%,-50%) rotate(360deg); }
}
.gramophone-progress { margin-top: 14px; }
.android-gramophone-buttons {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:6px;
  width:100%;
  margin:16px auto 12px;
}
.android-gramophone-buttons button {
  min-width:0;
  min-height:38px;
  height:38px;
  padding:4px 2px;
  border:1px solid var(--gold);
  border-radius:6px;
  background:#11131b;
  color:var(--gold-light);
  font:inherit;
  font-size:14px;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
  text-align:center;
  cursor:pointer;
  touch-action:manipulation;
}
.android-gramophone-buttons button:active { transform:scale(.98); }
.android-playlist {
  margin:14px 0 0;
  border:1px solid rgba(216,178,90,.45);
  border-radius:10px;
  overflow:hidden;
  text-align:left;
}
.android-playlist summary {
  padding:13px 15px;
  color:var(--gold-light);
  font-weight:800;
  text-align:center;
  cursor:pointer;
  touch-action:manipulation;
}
.android-playlist-items { display:grid; gap:1px; background:rgba(255,255,255,.07); }
.android-playlist-items button {
  width:100%;
  min-height:46px;
  padding:11px 14px;
  border:0;
  background:#11131b;
  color:#fff;
  font:inherit;
  font-size:14px;
  text-align:left;
  cursor:pointer;
}
.android-playlist-items button.active { color:var(--gold-light); font-weight:800; background:#1c1d28; }
.android-player-nav {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:22px 0 26px;
}
.android-player-nav .button { min-height:46px; padding:11px 8px; font-size:13px; display:flex; align-items:center; justify-content:center; text-align:center; }

@media (max-width: 900px) {
  .site-header { padding:16px 14px; gap:12px; }
  .brand { text-align:center; }
  nav ul { gap:8px 10px; }
  nav a { min-height:44px; display:flex; align-items:center; justify-content:center; padding:9px 10px; }
  .hero-scene-image { width:100%; height:auto; object-fit:contain; }
  .media-layout { gap:22px; }
  .media-card { padding:18px 14px; }
  #odtwarzacze, #kategorie-uroczystosci, #formularze-kontaktowe, #formularz-zamowienia, #formularz-wiadomosci { scroll-margin-top:14px; }
}

@media (max-width: 600px) {
  body { font-size:16px; }
  .container { width:min(100% - 20px, 1200px); }
  .site-header { padding:12px 10px; }
  nav ul { flex-direction:row; align-items:stretch; justify-content:center; }
  nav li { flex:1 1 46%; }
  nav a { width:100%; font-size:14px; line-height:1.2; text-align:center; }
  .hero-actions-overlay { padding:12px 10px 0; }
  .hero-actions-overlay .button { width:100%; min-height:46px; }
  .section { padding:38px 0; }
  .media-card { border-radius:14px; }
  .gramophone-player { width:100%; }
  .android-gramophone-buttons { gap:4px; }
  .android-gramophone-buttons button { min-height:36px; height:36px; padding:3px 1px; font-size:13px; line-height:1; letter-spacing:-.2px; }
  .android-player-nav { grid-template-columns:1fr 1fr; gap:8px; }
  .android-player-nav .button { min-height:48px; font-size:12px; padding:10px 5px; }
  .time-data { font-size:12px; }
  .progress-track { min-height:12px; }
  video { width:100%; }
  .category-back .button, .center-action .button { width:100%; min-height:48px; }
}

@media (max-width: 390px) {
  .android-gramophone-buttons button { min-height:34px; height:34px; font-size:12px; letter-spacing:-.35px; }
  nav a { font-size:13px; }
}


/* =========================================================
   GRAMOFON — poprawka Android 2026-08-15
   Zachowuje oryginalny panel Audio_Player i dodaje aktywne
   pola PLAY / PAUSE / STOP / PREV / NEXT na grafice panelu.
========================================================= */
.gramophone-player {
  display: block !important;
  position: relative !important;
  width: min(100%, 560px) !important;
  max-width: 560px !important;
  margin: 0 auto 18px !important;
  overflow: visible !important;
}
.gramophone-panel {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  position: relative !important;
  z-index: 1 !important;
}
.gramophone-cover {
  z-index: 2 !important;
}
.gramophone-panel-controls {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.gramophone-hotspot {
  position: absolute;
  width: 7.2%;
  aspect-ratio: 1 / 1;
  border: 0;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.gramophone-hotspot-play  { left: 3.4%; top: 83.0%; }
.gramophone-hotspot-pause { left: 11.0%; top: 83.0%; }
.gramophone-hotspot-stop  { left: 18.5%; top: 83.0%; }
.gramophone-hotspot-prev  { left: 26.0%; top: 83.0%; }
.gramophone-hotspot-next  { left: 33.4%; top: 83.0%; }
@media (max-width: 600px) {
  .gramophone-player {
    width: 100% !important;
    max-width: 100% !important;
  }
  .gramophone-card {
    overflow: visible !important;
  }
}


/* =========================================================
   ANDROID — kolejność i czytelność gramofonu 2026-08-15
   Gramofon -> klawisze -> tytuł/numer -> czas -> playlista
========================================================= */
.gramophone-card > .android-gramophone-buttons {
  margin: 4px auto 14px !important;
}
.gramophone-card > #audioTrackTitle {
  margin: 8px 0 12px !important;
  font-size: clamp(21px, 4.8vw, 28px) !important;
  line-height: 1.22 !important;
  font-weight: 800 !important;
}
.android-playlist summary {
  font-size: 18px !important;
  line-height: 1.2 !important;
}
.android-playlist-items button {
  font-size: 18px !important;
  line-height: 1.3 !important;
  min-height: 52px !important;
  padding: 13px 14px !important;
}
@media (max-width: 600px) {
  .gramophone-player { margin-bottom: 4px !important; }
  .gramophone-card > .android-gramophone-buttons { margin-top: 0 !important; margin-bottom: 12px !important; }
  .gramophone-card > #audioTrackTitle { font-size: 21px !important; }
  .android-playlist summary { font-size: 18px !important; }
  .android-playlist-items button { font-size: 18px !important; }
}


/* ANDROID — baner MP3 nad gramofonem */
.gramophone-card > .banner {
  display:block;
  width:100%;
  margin:0 auto 14px;
  aspect-ratio:19 / 8;
  object-fit:cover;
  border-radius:10px;
}
@media (max-width:600px) {
  .gramophone-card > .banner {
    margin-bottom:10px;
    border-radius:8px;
  }
}

/* =========================================================
   ANDROID — ostateczna kolejność pod gramofonem 2026-08-15
   1. gramofon, 2. dodatkowe przyciski, 3. tytuł utworu
========================================================= */
.gramophone-card > .gramophone-player {
  margin-bottom: 0 !important;
}
.gramophone-card > .android-gramophone-buttons {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}
.gramophone-card > #audioTrackTitle {
  display: block !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

/* ANDROID — czas odtwarzania w jednej linii */
@media (max-width: 900px) {
  .time-data {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
  }
  .time-data span {
    white-space: nowrap !important;
  }
}


/* ANDROID — ukrycie czasu odtwarzania MP3; Windows bez zmian */
@media (max-width: 900px) {
  .gramophone-progress .time-data {
    display: none !important;
  }
}


/* ANDROID — ukrycie wszystkich licznikow czasu; Windows bez zmian */
@media (max-width: 900px) {
  .time-data,
  #audioElapsed, #audioTotal, #audioRemaining,
  #videoElapsed, #videoTotal, #videoRemaining,
  #clientElapsed, #clientTotal {
    display: none !important;
  }
}
