/*
Theme Name: Andy Cobb
Theme URI: https://andycobb.pl
Author: Soundtec Sp. z o.o.
Author URI: https://andycobb.pl
Description: Motyw blokowy studia miksu i masteringu Andy Cobb. Każda sekcja strony to osobny blok w edytorze — nagłówek z goniometrem, tor sygnału, galeria studia, usługi, cennik, realizacje z odtwarzaczami SoundCloud i Bandcamp, proces, spis sprzętu, FAQ i formularz briefu. Ciemna paleta z fioletowym akcentem i zielenią jako drugim kolorem systemu. Czcionki osadzone lokalnie — bez połączeń z Google Fonts.
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: andy-cobb
Tags: block-patterns, full-site-editing, one-column, custom-colors, custom-logo, editor-style, wide-blocks
*/

/* ============================================================
   1. PODSTAWY
   ============================================================ */

:root {
  --ac-pad: clamp(20px, 5vw, 56px);
}

body {
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.ac-mono,
.ac-label {
  font-family: var(--wp--preset--font-family--dm-mono);
}

/* Etykieta — mały tekst wersalikami, używany w całym motywie */
.ac-label {
  font-size: var(--wp--preset--font-size--tiny);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wp--preset--color--dim);
  line-height: 1.5;
}

.ac-num {
  font-variant-numeric: tabular-nums;
}

/* Nagłówek wyświetlany szeroko — tam, gdzie ma dominować */
.ac-display,
h1, h2 {
  font-variation-settings: "wdth" 118, "wght" 750;
}

h3, h4 {
  font-variation-settings: "wdth" 108, "wght" 640;
}

.ac-lead {
  color: var(--wp--preset--color--muted);
  max-width: 62ch;
}

:where(.ac-section) p {
  max-width: 64ch;
}

:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent);
  outline-offset: 3px;
}

/* ============================================================
   2. SEKCJA — ramka i numerowany nagłówek
   ============================================================ */

.ac-section {
  border-top: 1px solid var(--wp--preset--color--rule);
  padding-top: var(--wp--preset--spacing--60);
  padding-bottom: var(--wp--preset--spacing--60);
}

/* Pasek nagłówka sekcji: numer, etykieta, linia do końca */
.ac-section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: var(--wp--preset--spacing--50);
}

.ac-tick {
  font-family: var(--wp--preset--font-family--dm-mono);
  font-size: var(--wp--preset--font-size--tiny);
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--steel);
  border: 1px solid var(--wp--preset--color--steel-deep);
  padding: 2px 7px;
  flex: none;
}

/* Linia dociągająca nagłówek sekcji do prawej krawędzi — rysowana w CSS,
   żeby w edytorze nie leżał zbędny blok HTML. */
.ac-section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--wp--preset--color--rule);
  align-self: center;
}

.ac-section-head > p {
  margin: 0;
  max-width: none;
}

/* ============================================================
   3. NAGŁÓWEK STRONY
   ============================================================ */

.ac-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(20, 17, 25, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wp--preset--color--rule);
  padding-left: var(--ac-pad);
  padding-right: var(--ac-pad);
}

.ac-topbar-in,
.ac-foot-in {
  max-width: var(--wp--style--global--content-size, 1180px);
  margin-inline: auto;
}

.ac-topbar-in { min-height: 60px; }

.ac-foot {
  padding-left: var(--ac-pad);
  padding-right: var(--ac-pad);
}

.ac-brand a,
.ac-brand {
  font-family: var(--wp--preset--font-family--archivo);
  font-variation-settings: "wdth" 125, "wght" 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.02rem;
  white-space: nowrap;
  color: var(--wp--preset--color--text);
}

.ac-brand em {
  font-style: normal;
  color: var(--wp--preset--color--accent);
}

.ac-nav .wp-block-navigation__container {
  gap: 22px;
}

.ac-nav a {
  font-family: var(--wp--preset--font-family--dm-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}

.ac-nav a:hover {
  color: var(--wp--preset--color--text);
  border-bottom-color: var(--wp--preset--color--accent);
}

/* ============================================================
   4. PRZYCISKI
   ============================================================ */

.wp-block-button__link {
  border-radius: 0;
  padding: 13px 22px;
  font-weight: 400;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  border: 1px solid var(--wp--preset--color--rule-hi);
  background: transparent;
  color: var(--wp--preset--color--text);
  transition: border-color 0.18s, color 0.18s;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent-hi);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--wp--preset--color--accent);
  color: #150E27;
  border: 1px solid var(--wp--preset--color--accent);
  font-weight: 500;
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  background: var(--wp--preset--color--accent-hi);
  border-color: var(--wp--preset--color--accent-hi);
  color: #150E27;
}

/* ============================================================
   5. HERO + GONIOMETR
   ============================================================ */

.ac-hero {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(44px, 6vw, 76px);
}

.ac-hero .wp-block-columns {
  align-items: flex-end;
  gap: clamp(28px, 5vw, 64px);
}

@media (max-width: 980px) {
  .ac-hero .wp-block-columns { align-items: flex-start; }
}

.ac-eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.ac-eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--wp--preset--color--steel);
  border-radius: 50%;
  flex: none;
}

.ac-hero h1 {
  margin-block-end: 22px;
}

.ac-hero h1 em {
  font-style: normal;
  color: var(--wp--preset--color--accent);
}

.ac-hero .wp-block-buttons {
  margin-block-start: 30px;
  gap: 12px;
}

/* Nagłówek sekcji i wprowadzenie pod nim — jeden rytm w całym serwisie */
.ac-section > h2 {
  margin-block-end: 14px;
}

.ac-section > .ac-lead {
  margin-block-start: 0;
}

/* Układ „constrained” WordPressa centruje wszystko, co ma własną szerokość
   maksymalną. Tekst sekcji ma trzymać się lewej krawędzi. */
.ac-section > p,
.ac-section > .ac-lead,
.ac-section > .wp-block-heading,
.ac-section > .ac-note {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

/* Blok miernika głośności */
.ac-meter {
  background: linear-gradient(180deg, var(--wp--preset--color--panel-hi), var(--wp--preset--color--panel));
  border: 1px solid var(--wp--preset--color--rule);
  padding: 20px 20px 14px;
  display: grid;
  gap: 16px;
}

.ac-meter-rows {
  display: grid;
  gap: 14px;
}

.ac-meter-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 62px;
  align-items: center;
  gap: 12px;
}

.ac-meter-key {
  letter-spacing: 0.1em;
  color: var(--wp--preset--color--dim);
}

/* Pasek: tło skali, wypełnienie i znacznik wartości docelowej */
.ac-bar {
  position: relative;
  height: 10px;
  background: #1A1626;
  border: 1px solid var(--wp--preset--color--rule);
  overflow: visible;
}

/* Delikatna podziałka co 1/6 skali — czytelna, nie krzyczy */
.ac-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(16.666% - 1px),
    rgba(69, 59, 94, 0.55) calc(16.666% - 1px),
    rgba(69, 59, 94, 0.55) 16.666%
  );
  pointer-events: none;
}

.ac-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, var(--wp--preset--color--steel-deep), var(--wp--preset--color--steel));
  transition: width 0.1s linear;
}

/* Powyżej celu pasek przechodzi w fiolet — sygnał, że coś jest za gorące */
.ac-meter-row.is-over .ac-bar-fill {
  background: linear-gradient(90deg, var(--wp--preset--color--steel-deep) 40%, var(--wp--preset--color--accent));
}

.ac-bar-target {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 1px;
  background: var(--wp--preset--color--accent-hi);
  text-decoration: none;
  pointer-events: none;
}

.ac-bar-target::after {
  content: "";
  position: absolute;
  top: -3px;
  left: -2px;
  width: 5px;
  height: 3px;
  background: var(--wp--preset--color--accent-hi);
}

.ac-meter-val {
  font-family: var(--wp--preset--font-family--dm-mono);
  font-size: 0.86rem;
  text-align: right;
  color: var(--wp--preset--color--text);
  font-variant-numeric: tabular-nums;
}

.ac-meter-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--wp--preset--font-family--dm-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--dim);
  padding: 0 62px 0 70px;
  margin-top: -6px;
}

.ac-meter-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--wp--preset--color--rule);
  padding-top: 10px;
}

.ac-meter-target { color: var(--wp--preset--color--steel); }

@media (max-width: 520px) {
  .ac-meter-row { grid-template-columns: 52px minmax(0, 1fr) 56px; gap: 8px; }
  .ac-meter-scale { padding: 0 56px 0 60px; }
}

/* ============================================================
   6. ZDJĘCIE PEŁNĄ SZEROKOŚCIĄ
   ============================================================ */

.ac-herophoto {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-top: 1px solid var(--wp--preset--color--rule);
  border-bottom: 1px solid var(--wp--preset--color--rule);
}

.ac-herophoto img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 74vh;
  object-fit: cover;
}

.ac-herophoto figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 60px var(--ac-pad) 16px;
  background: linear-gradient(180deg, rgba(20, 17, 25, 0), rgba(20, 17, 25, 0.88) 72%);
  text-align: left;
}

/* ============================================================
   7. PASEK LICZB
   ============================================================ */

.ac-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--wp--preset--color--rule);
  border-bottom: 1px solid var(--wp--preset--color--rule);
}

.ac-stats > * {
  padding: 22px 18px;
  border-left: 1px solid var(--wp--preset--color--rule);
  margin: 0;
}

.ac-stats > *:first-child { border-left: 0; }

.ac-stats .ac-stat-n {
  display: block;
  font-variation-settings: "wdth" 115, "wght" 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--wp--preset--color--steel);
  font-variant-numeric: tabular-nums;
  margin: 0 0 8px;
}

.ac-stats .wp-block-group { display: block; }

@media (max-width: 860px) {
  .ac-stats { grid-template-columns: repeat(2, 1fr); }
  .ac-stats > *:nth-child(odd) { border-left: 0; }
  .ac-stats > * { border-top: 1px solid var(--wp--preset--color--rule); }
  .ac-stats > *:nth-child(1),
  .ac-stats > *:nth-child(2) { border-top: 0; }
}

/* ============================================================
   8. SIATKI KAFLOWE — jedna reguła dla wszystkich sekcji
   ============================================================ */

/* Siatka z liniami zamiast odstępów: tło = kolor linii, kafle = tło strony */
.ac-grid {
  display: grid;
  gap: 1px;
  background: var(--wp--preset--color--rule);
}

.ac-grid > * {
  background: var(--wp--preset--color--ink);
  margin: 0;
}

.ac-grid.ac-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ac-grid.ac-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ac-grid.ac-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1000px) {
  .ac-grid.ac-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .ac-grid.ac-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .ac-grid.ac-cols-2,
  .ac-grid.ac-cols-3 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .ac-grid.ac-cols-4 { grid-template-columns: 1fr; }
}

/* Kafel: wewnętrzny oddech i układ pionowy */
.ac-tile {
  padding: 28px 26px;
  display: grid;
  gap: 12px;
  align-content: start;
}

/* Tam, gdzie odstępy robi CSS (siatki, kafle, paski), zdejmujemy
   marginesy, które WordPress dokłada między blokami w układzie przepływowym.
   Inaczej odstęp liczyłby się dwa razy. */
.ac-grid > *,
.ac-tile > *,
.ac-stats > *,
.ac-stats .wp-block-group > *,
.ac-steps > *,
.ac-steps > * > *,
.ac-chain > *,
.ac-mod > *,
.ac-faq > *,
.ac-addons > *,
.ac-addon > *,
.ac-channels > * > *,
.ac-contact-list > *,
.ac-contact-list > * > *,
.ac-gal > *,
.ac-rel-body > *,
.ac-meter-rows > *,
.ac-legend > *,
.ac-eyebrow > *,
.ac-section-head > *,
.ac-foot-row > *,
.ac-foot-legal > *,
.ac-topbar-in > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.ac-tile .ac-label { color: var(--wp--preset--color--steel); }
.ac-tile h3 { margin: 0; }
.ac-tile p { margin: 0; font-size: 0.9rem; }

/* ============================================================
   9. TOR SYGNAŁU
   ============================================================ */

.ac-chain-scroll { overflow-x: auto; padding-bottom: 14px; }

.ac-chain {
  display: flex;
  align-items: stretch;
  min-width: 900px;
  gap: 34px;
}

.ac-mod {
  position: relative;
  flex: 1 1 0;
  min-width: 128px;
  background: linear-gradient(180deg, var(--wp--preset--color--panel-hi), var(--wp--preset--color--panel));
  border: 1px solid var(--wp--preset--color--rule);
  border-top: 2px solid var(--wp--preset--color--accent);
  padding: 16px 14px;
  display: grid;
  gap: 7px;
  align-content: start;
  margin: 0;
}

.ac-mod.ac-digital {
  border-top-color: var(--wp--preset--color--steel);
  background: linear-gradient(180deg, #1D2331, #171A24);
}

.ac-mod .ac-role {
  font-family: var(--wp--preset--font-family--dm-mono);
  font-size: 0.63rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
}

.ac-mod.ac-digital .ac-role { color: var(--wp--preset--color--steel); }

.ac-mod .ac-mod-name {
  font-variation-settings: "wdth" 100, "wght" 640;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--wp--preset--color--text);
}

.ac-mod .ac-mod-note {
  font-family: var(--wp--preset--font-family--dm-mono);
  font-size: 0.7rem;
  color: var(--wp--preset--color--dim);
  line-height: 1.45;
  margin: 0;
}

/* Łącznik z przepływem sygnału — rysowany w CSS między modułami,
   więc dodanie albo usunięcie modułu nie wymaga dokładania bloków. */
.ac-mod:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 50%;
  width: 34px;
  height: 2px;
  background: var(--wp--preset--color--rule-hi);
  overflow: hidden;
}

.ac-mod:not(:first-child)::after {
  content: "";
  position: absolute;
  left: -34px;
  top: 50%;
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--wp--preset--color--accent) 45%, transparent 90%);
  animation: ac-flow 2.6s linear infinite;
}

@keyframes ac-flow {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

@keyframes ac-flow-v {
  from { transform: translateY(-100%); }
  to   { transform: translateY(100%); }
}

@media (max-width: 780px) {
  .ac-chain-scroll { overflow-x: visible; }
  .ac-chain { min-width: 0; flex-direction: column; gap: 22px; }

  .ac-mod:not(:first-child)::before,
  .ac-mod:not(:first-child)::after {
    left: 50%;
    top: -22px;
    width: 2px;
    height: 22px;
  }

  .ac-mod:not(:first-child)::after {
    background: linear-gradient(180deg, transparent 0%, var(--wp--preset--color--accent) 45%, transparent 90%);
    animation-name: ac-flow-v;
  }
}

.ac-legend {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.ac-legend > * { margin: 0; }

/* Próbka koloru przed opisem — rysowana w CSS, nie dodatkowym znacznikiem,
   żeby edytor nie usuwał jej przy zapisie akapitu. */
.ac-lg::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 2px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--wp--preset--color--rule-hi);
}

.ac-lg-accent::before { background: var(--wp--preset--color--accent); }
.ac-lg-steel::before { background: var(--wp--preset--color--steel); }

/* ============================================================
   10. GALERIA STUDIA
   ============================================================ */

.ac-gal.wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--wp--preset--color--rule);
}

@media (max-width: 1000px) {
  .ac-gal.wp-block-gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .ac-gal.wp-block-gallery { grid-template-columns: 1fr; }
}

.ac-gal.wp-block-gallery .wp-block-image {
  background: var(--wp--preset--color--ink-2);
  margin: 0;
  width: auto !important;
  flex: none;
  display: grid;
  grid-template-rows: auto 1fr;
}

.ac-gal.wp-block-gallery .wp-block-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.ac-gal.wp-block-gallery figcaption {
  position: static;
  background: none;
  padding: 13px 15px 17px;
  text-align: left;
  font-family: var(--wp--preset--font-family--dm-mono);
  font-size: var(--wp--preset--font-size--tiny);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--dim);
}

/* ============================================================
   11. USŁUGI
   ============================================================ */

.ac-svc .wp-block-list { display: grid; gap: 6px; list-style: none; padding: 0; margin: 0; }

.ac-svc .wp-block-list li {
  font-family: var(--wp--preset--font-family--dm-mono);
  font-size: 0.78rem;
  color: var(--wp--preset--color--muted);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.ac-svc .wp-block-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--wp--preset--color--steel);
}

/* ============================================================
   12. CENNIK
   ============================================================ */

.ac-price > * {
  background: var(--wp--preset--color--ink-2);
  padding: 30px 26px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.ac-price-amount {
  font-variation-settings: "wdth" 112, "wght" 720;
  font-size: 2.2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--wp--preset--color--text);
  margin: 0;
}

.ac-price-note {
  font-family: var(--wp--preset--font-family--dm-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--wp--preset--color--dim);
  margin: -12px 0 0;
}

/* Cena do ustalenia — ta sama typografia, przygaszony kolor */
.ac-price-amount.is-pending { color: var(--wp--preset--color--dim); }

.ac-price .wp-block-list {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--wp--preset--color--rule);
  padding: 18px 0 0;
  margin: 0;
  list-style: none;
}

.ac-price .wp-block-list li {
  font-size: 0.87rem;
  color: var(--wp--preset--color--muted);
  padding-left: 16px;
  position: relative;
}

.ac-price .wp-block-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--wp--preset--color--steel);
  font-family: var(--wp--preset--font-family--dm-mono);
}

/* Dopłaty — wiersz pozycja / kwota */
.ac-addons {
  margin-top: 1px;
  display: grid;
  gap: 1px;
  background: var(--wp--preset--color--rule);
}

.ac-addon {
  background: var(--wp--preset--color--ink-2);
  padding: 14px 26px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  margin: 0;
  font-size: 0.9rem;
  color: var(--wp--preset--color--text);
  max-width: none;
}

.ac-addon .ac-amount {
  font-family: var(--wp--preset--font-family--dm-mono);
  font-size: 0.84rem;
  color: var(--wp--preset--color--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ac-addon .ac-amount.ac-free { color: var(--wp--preset--color--steel); }

/* ============================================================
   13. REALIZACJE — blok odtwarzacza
   ============================================================ */

.ac-rel-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.ac-rel-filter button {
  font-family: var(--wp--preset--font-family--dm-mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 8px 15px;
  background: transparent;
  border: 1px solid var(--wp--preset--color--rule-hi);
  color: var(--wp--preset--color--muted);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.ac-rel-filter button:hover {
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent-hi);
}

.ac-rel-filter button[aria-pressed="true"] {
  background: var(--wp--preset--color--accent);
  border-color: var(--wp--preset--color--accent);
  color: #150E27;
  font-weight: 500;
}

.ac-release[hidden] { display: none !important; }

.ac-release {
  background: var(--wp--preset--color--ink);
  display: grid;
  grid-template-rows: auto 1fr;
  margin: 0;
}

.ac-rel-art {
  aspect-ratio: 16 / 9;
  position: relative;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--wp--preset--color--rule);
  overflow: hidden;
  background: linear-gradient(145deg, #241C33, #161320);
}

.ac-release:nth-child(6n+2) .ac-rel-art { background: linear-gradient(145deg, #1D2430, #14161C); }
.ac-release:nth-child(6n+3) .ac-rel-art { background: linear-gradient(145deg, #251E36, #171423); }
.ac-release:nth-child(6n+4) .ac-rel-art { background: linear-gradient(145deg, #1C2430, #151620); }
.ac-release:nth-child(6n+5) .ac-rel-art { background: linear-gradient(145deg, #2A1E33, #181322); }
.ac-release:nth-child(6n+6) .ac-rel-art { background: linear-gradient(145deg, #1F2438, #15161F); }

.ac-rel-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.ac-rel-init {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-variation-settings: "wdth" 125, "wght" 800;
  font-size: 3.6rem;
  letter-spacing: 0.04em;
  color: rgba(233, 230, 239, 0.07);
  text-transform: uppercase;
  user-select: none;
}

.ac-rel-play {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--wp--preset--color--accent);
  background: rgba(20, 17, 25, 0.6);
  color: var(--wp--preset--color--accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  padding: 0;
}

.ac-rel-play:hover {
  background: var(--wp--preset--color--accent);
  color: #150E27;
  transform: scale(1.06);
}

.ac-rel-play svg { width: 15px; height: 15px; margin-left: 3px; }

.ac-rel-plat {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--wp--preset--font-family--dm-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wp--preset--color--steel);
  border: 1px solid var(--wp--preset--color--steel-deep);
  padding: 3px 7px;
  background: rgba(20, 17, 25, 0.72);
}

.ac-rel-embed {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 25, 0.96);
  display: grid;
  place-items: center;
  padding: 0;
  text-align: center;
  font-family: var(--wp--preset--font-family--dm-mono);
  font-size: 0.72rem;
  color: var(--wp--preset--color--accent-hi);
  line-height: 1.6;
}

.ac-rel-embed[hidden] { display: none; }
.ac-rel-embed iframe { width: 100%; border: 0; display: block; }
.ac-rel-embed .ac-rel-msg { padding: 18px; }

/* Po załadowaniu odtwarzacza kafel oddaje mu miejsce: znika proporcja 16:9,
   znika przycisk i plakietka, a iframe sam wyznacza wysokość. */
.ac-release.is-playing .ac-rel-art {
  aspect-ratio: auto;
  display: block;
  background: var(--wp--preset--color--ink-2);
}

.ac-release.is-playing .ac-rel-embed {
  position: static;
  inset: auto;
  background: transparent;
}

.ac-release.is-playing .ac-rel-play,
.ac-release.is-playing .ac-rel-init,
.ac-release.is-playing .ac-rel-plat,
.ac-release.is-playing .ac-rel-art > img {
  display: none;
}

.ac-rel-body {
  padding: 18px 20px 20px;
  display: grid;
  gap: 9px;
  align-content: start;
}

.ac-rel-body h3 { margin: 0; }

.ac-rel-svc {
  font-family: var(--wp--preset--font-family--dm-mono);
  font-size: 0.73rem;
  color: var(--wp--preset--color--muted);
  margin: 0;
}

.ac-rel-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.ac-chip {
  font-family: var(--wp--preset--font-family--dm-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--wp--preset--color--rule-hi);
  padding: 4px 9px;
  color: var(--wp--preset--color--muted);
  transition: border-color 0.18s, color 0.18s;
}

.ac-chip:hover {
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent-hi);
}

/* Kanały */
.ac-channels > * {
  background: var(--wp--preset--color--ink-2);
  padding: 18px 20px;
  display: grid;
  gap: 5px;
  align-content: center;
  transition: background 0.18s;
}

.ac-channels > *:hover { background: var(--wp--preset--color--panel-hi); }

.ac-channels strong {
  font-variation-settings: "wdth" 106, "wght" 620;
  font-size: 0.96rem;
  color: var(--wp--preset--color--text);
}

.ac-note {
  font-family: var(--wp--preset--font-family--dm-mono);
  font-size: 0.72rem;
  color: var(--wp--preset--color--dim);
  border-left: 2px solid var(--wp--preset--color--steel);
  padding-left: 12px;
  line-height: 1.5;
  margin-top: 22px;
}

/* ============================================================
   14. PROCES
   ============================================================ */

.ac-steps {
  display: grid;
  gap: 1px;
  background: var(--wp--preset--color--rule);
}

.ac-steps > * {
  background: var(--wp--preset--color--ink);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
  margin: 0;
}

.ac-steps h3 { margin: 0; }
.ac-steps p { margin: 0; font-size: 0.9rem; }

.ac-step-n {
  font-family: var(--wp--preset--font-family--dm-mono);
  font-size: 0.8rem;
  color: var(--wp--preset--color--steel);
  border-top: 1px solid var(--wp--preset--color--steel);
  padding-top: 6px;
}

@media (max-width: 780px) {
  .ac-steps > * { grid-template-columns: 44px 1fr; }
  .ac-steps > * > p:last-child { grid-column: 2; }
}

/* ============================================================
   15. SPRZĘT
   ============================================================ */

.ac-gear .ac-tile { padding: 24px 22px; }

.ac-gear .wp-block-list {
  display: grid;
  gap: 5px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ac-gear .wp-block-list li {
  font-family: var(--wp--preset--font-family--dm-mono);
  font-size: 0.76rem;
  color: var(--wp--preset--color--muted);
  line-height: 1.45;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.ac-gear .wp-block-list li em {
  font-style: normal;
  color: var(--wp--preset--color--dim);
  flex: none;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   16. FAQ
   ============================================================ */

.ac-faq {
  display: grid;
  gap: 1px;
  background: var(--wp--preset--color--rule);
}

.ac-faq .wp-block-details {
  background: var(--wp--preset--color--ink);
  padding: 0;
  border: 0;
}

.ac-faq summary {
  padding: 18px 26px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  font-variation-settings: "wdth" 104, "wght" 600;
  font-size: 1rem;
  color: var(--wp--preset--color--text);
}

.ac-faq summary::-webkit-details-marker { display: none; }
.ac-faq summary::marker { content: ""; }

.ac-faq summary::after {
  content: "+";
  font-family: var(--wp--preset--font-family--dm-mono);
  color: var(--wp--preset--color--steel);
  flex: none;
}

.ac-faq .wp-block-details[open] summary::after { content: "−"; }
.ac-faq .wp-block-details[open] summary { color: var(--wp--preset--color--accent-hi); }

.ac-faq .wp-block-details > *:not(summary) {
  padding: 0 26px 22px;
  color: var(--wp--preset--color--muted);
  font-size: 0.92rem;
  max-width: 72ch;
  margin: 0;
}

.ac-faq .ac-mono { color: var(--wp--preset--color--steel); }

/* ============================================================
   17. FORMULARZ BRIEFU
   ============================================================ */

.ac-brief-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 60px);
}

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

.ac-contact-list { display: grid; gap: 14px; }
.ac-contact-list a { border-bottom: 1px solid var(--wp--preset--color--rule-hi); }
.ac-contact-list a:hover { border-bottom-color: var(--wp--preset--color--accent); }

.ac-brief { display: grid; gap: 14px; }

.ac-brief .ac-f2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 560px) {
  .ac-brief .ac-f2 { grid-template-columns: 1fr; }
}

.ac-brief label { display: grid; gap: 6px; }

.ac-brief input,
.ac-brief select,
.ac-brief textarea {
  background: var(--wp--preset--color--panel);
  border: 1px solid var(--wp--preset--color--rule-hi);
  color: var(--wp--preset--color--text);
  font-family: var(--wp--preset--font-family--archivo);
  font-size: 0.93rem;
  padding: 11px 13px;
  width: 100%;
  border-radius: 0;
}

.ac-brief textarea { min-height: 104px; resize: vertical; }
.ac-brief input::placeholder,
.ac-brief textarea::placeholder { color: var(--wp--preset--color--dim); }

.ac-brief input:focus,
.ac-brief select:focus,
.ac-brief textarea:focus {
  border-color: var(--wp--preset--color--accent);
  outline: none;
}

.ac-brief button {
  justify-self: start;
  font-family: var(--wp--preset--font-family--dm-mono);
  font-size: 0.77rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 22px;
  background: var(--wp--preset--color--accent);
  border: 1px solid var(--wp--preset--color--accent);
  color: #150E27;
  font-weight: 500;
  cursor: pointer;
}

.ac-brief button:hover {
  background: var(--wp--preset--color--accent-hi);
  border-color: var(--wp--preset--color--accent-hi);
}

.ac-form-msg {
  border: 1px solid var(--wp--preset--color--steel-deep);
  background: #14201D;
  padding: 16px 18px;
  font-family: var(--wp--preset--font-family--dm-mono);
  font-size: 0.8rem;
  color: var(--wp--preset--color--steel);
  line-height: 1.55;
}

.ac-form-msg.is-error {
  border-color: var(--wp--preset--color--accent-deep);
  background: #201528;
  color: var(--wp--preset--color--accent-hi);
}

.ac-hp { position: absolute; left: -9999px; }

/* ============================================================
   18. STOPKA
   ============================================================ */

.ac-foot {
  border-top: 1px solid var(--wp--preset--color--rule);
  padding-top: 34px;
  padding-bottom: 44px;
}

.ac-foot-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: baseline;
}

.ac-foot-legal {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--wp--preset--color--rule);
}

/* ============================================================
   19. TREŚĆ WPISÓW I STRON
   ============================================================ */

.ac-prose p,
.ac-prose ul,
.ac-prose ol { margin-bottom: 1.1em; }

.ac-prose h2,
.ac-prose h3 { margin: 1.8em 0 0.6em; }

.ac-prose a { color: var(--wp--preset--color--accent-hi); border-bottom: 1px solid var(--wp--preset--color--accent-deep); }

/* ============================================================
   20. OGRANICZENIE ANIMACJI
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before {
    animation: none !important;
    transition: none !important;
  }
}
