/*
Theme Name: OKTAWA — Studio Car Audio
Description: Motyw potomny Blocksy dla fikcyjnego studia OKTAWA.
Author: OKTAWA
Template: blocksy
Version: 1.1.0
Text Domain: automuza
*/

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --am-bg: #0E0F12;
  --am-surface: #15171C;
  --am-border: rgba(255,255,255,.08);
  --am-text: #F2F3F5;
  --am-muted: #A0A4AD;
  --am-accent: #E8A33D;
  --am-accent-hi: #E8A33D;
  --am-accent-muted: #8A6224;
  --am-content: 1280px;
  --am-wide: 1600px;
  --am-section-gap: clamp(36px, 5vw, 56px);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

html,
body {
  background: var(--am-bg);
  color: var(--am-text);
}

body {
  overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

body,
.site-main,
.entry-content {
  background-color: var(--am-bg);
}

h1,
h2,
h3,
h4,
h5,
h6,
.am-display {
  color: var(--am-text);
  font-family: "Archivo", Impact, "Arial Narrow", sans-serif;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -.025em;
}

a {
  color: var(--am-text);
  text-underline-offset: .2em;
}

a:hover {
  color: var(--am-accent-hi);
}

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 3px solid var(--am-accent-hi);
  outline-offset: 4px;
}

::selection {
  background: var(--am-accent);
  color: var(--am-bg);
}

/* Chrom motywu Blocksy */
#header.ct-header {
  position: sticky;
  z-index: 50;
  top: var(--admin-bar, 0px);
  border-bottom: 1px solid var(--am-border);
  background: var(--am-bg);
}

#header.ct-header [data-row] {
  --background-color: var(--am-bg);
  background-color: var(--am-bg);
}

#header.ct-header [data-sticky*="yes"] > [data-row] {
  --background-color: rgba(14,15,18,.85);
  background-color: rgba(14,15,18,.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

#header.ct-header .menu > li > .ct-menu-link,
#header.ct-header .menu > li > a {
  --theme-link-initial-color: var(--am-text);
  color: var(--am-text);
}

#header.ct-header .menu > li:hover > .ct-menu-link,
#header.ct-header .menu > li:hover > a,
#header.ct-header .menu > .current-menu-item > .ct-menu-link,
#header.ct-header .menu > .current-menu-item > a,
#header.ct-header .menu > .current-menu-ancestor > .ct-menu-link,
#header.ct-header .menu > .current-menu-ancestor > a,
#header.ct-header .menu [aria-current="page"] {
  --theme-link-hover-color: var(--am-accent);
  color: var(--am-accent);
}

#header.ct-header .site-logo-container {
  --logo-max-height: 44px;
  height: var(--logo-max-height);
}

#header.ct-header .site-logo-container img {
  width: auto;
  height: auto;
  max-height: 44px;
}

#header.ct-header .site-title-container {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#header.ct-header .ct-header-search,
#header.ct-header .ct-header-trigger {
  --theme-icon-color: var(--am-text);
  --theme-icon-hover-color: var(--am-accent);
  --theme-link-initial-color: var(--am-text);
  --theme-link-hover-color: var(--am-accent);
  color: var(--am-text);
}

#header.ct-header :is(.ct-header-search, .ct-header-trigger) .ct-icon {
  color: var(--am-text);
  fill: var(--am-text);
}

#header.ct-header :is(.ct-header-search, .ct-header-trigger):hover .ct-icon {
  color: var(--am-accent);
  fill: var(--am-accent);
}

#offcanvas .ct-panel-inner,
#offcanvas .ct-panel-actions,
#offcanvas .ct-panel-content {
  --theme-text-color: var(--am-text);
  --theme-link-initial-color: var(--am-text);
  --theme-link-hover-color: var(--am-accent);
  --theme-icon-color: var(--am-text);
  background: var(--am-surface);
  color: var(--am-text);
}

#offcanvas .mobile-menu .ct-menu-link {
  color: var(--am-text);
}

#offcanvas .mobile-menu :is(.current-menu-item, .current-menu-ancestor) > .ct-menu-link,
#offcanvas .mobile-menu .ct-menu-link[aria-current="page"],
#offcanvas .mobile-menu .ct-menu-link:hover {
  color: var(--am-accent);
}

#offcanvas :is(.ct-toggle-close, .ct-toggle-close .ct-icon) {
  color: var(--am-text);
  fill: var(--am-text);
}

#footer.ct-footer {
  --theme-text-color: var(--am-muted);
  --theme-link-initial-color: var(--am-text);
  --theme-link-hover-color: var(--am-accent);
  border-top: 1px solid #3A3E47;
  background: #0E0F12;
  color: #A0A4AD;
}

#footer.ct-footer [data-row] {
  --background-color: #0E0F12;
  background-color: #0E0F12;
}

#footer.ct-footer a {
  color: #F2F3F5;
  text-decoration: none;
}

#footer.ct-footer a:hover {
  color: #E8A33D;
}

/* Stopka Blocksy: główny wiersz czterech kolumn. */
#footer [data-row="middle"] {
  padding-block: 72px;
  background: #0E0F12;
  color: #A0A4AD;
  font-size: 15px;
  line-height: 1.7;
}

#footer [data-row="middle"] > div {
  width: 100%;
  max-width: var(--am-content);
  gap: clamp(32px, 4vw, 64px);
  margin-inline: auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

/* Stopka Blocksy: małe nagłówki kolumn. */
#footer h2 {
  margin: 0 0 20px;
  color: #A0A4AD;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
}

#footer [data-row="middle"] p {
  margin: 0 0 16px;
  color: #A0A4AD;
}

#footer [data-row="middle"] p:last-child {
  margin-bottom: 0;
}

/* Stopka Blocksy: znak marki w pierwszej kolumnie. */
#footer [data-column="widget-area-1"] h2 {
  color: #F2F3F5;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .12em;
}

/* Stopka Blocksy: logo zastępujące tekstową nazwę marki zachowuje wysokość dawnego nagłówka. */
#footer [data-column="widget-area-1"] .am-footer-logo img {
  width: auto;
  height: 34px;
  max-width: 100%;
  max-height: 34px;
}

/* Stopka Blocksy: pionowa lista nawigacji bez punktorów. */
#footer [data-column="widget-area-4"] ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer [data-column="widget-area-4"] li + li {
  margin-top: 10px;
}

/* Stopka Blocksy: dolny wiersz copyrightu. */
#footer [data-row="bottom"] {
  padding-block: 24px;
  border-top: 1px solid #3A3E47;
  background: #0E0F12;
  color: #A0A4AD;
}

#footer [data-row="bottom"] > div {
  width: 100%;
  max-width: var(--am-content);
  margin-inline: auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

#footer [data-row="bottom"] [data-column="copyright"] {
  justify-content: flex-start;
  text-align: left;
}

#footer [data-row="bottom"] .ct-footer-copyright {
  color: #A0A4AD;
  font-size: 14px;
  line-height: 1.5;
}

body :is(
  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="tel"],
  input[type="search"],
  input[type="number"],
  input[type="password"],
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"],
  select,
  textarea
) {
  border-color: var(--am-border);
  background: var(--am-surface);
  color: var(--am-text);
}

body :is(input, textarea)::placeholder {
  color: var(--am-muted);
  opacity: 1;
}

body :is(
  input[type="text"],
  input[type="email"],
  input[type="url"],
  input[type="tel"],
  input[type="search"],
  input[type="number"],
  input[type="password"],
  input[type="date"],
  input[type="time"],
  input[type="datetime-local"],
  select,
  textarea
):focus {
  border-color: var(--am-accent);
  box-shadow: 0 0 0 1px var(--am-accent);
}

.am-wrap {
  max-width: var(--am-content);
  margin-inline: auto;
  padding-inline: clamp(16px,4vw,48px);
}

.am-wrap--wide {
  max-width: var(--am-wide);
}

.am-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.am-section {
  padding-block: clamp(72px, 9vw, 128px);
}

.am-section--compact {
  padding-block: clamp(40px, 6vw, 72px);
}

.am-section--texture {
  background-image:
    linear-gradient(90deg, rgba(14,15,18,.95), rgba(14,15,18,.75)),
    var(--am-section-image, none);
  background-position: center;
  background-size: cover;
}

.am-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 1rem;
  color: var(--am-accent-hi);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.am-eyebrow::before {
  width: 30px;
  height: 2px;
  background: currentColor;
  content: "";
}

.am-section-title {
  max-width: 820px;
  margin: 0 0 1.25rem;
  font-size: clamp(32px, 5vw, 56px);
}

.am-lead {
  max-width: 760px;
  margin: 0;
  color: var(--am-muted);
  font-size: clamp(17px, 2vw, 21px);
}

.am-section > :is(.am-eyebrow, .am-section-title, .am-lead),
.am-section > .am-wrap > :is(.am-eyebrow, .am-section-title, .am-lead) {
  text-align: left;
}

/* builder nie wyraża: układu akcji CTA katalogu renderowanego przez hook PHP */
.am-catalog-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.am-btn,
.wp-element-button.am-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.2rem;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 3px;
  background: transparent;
  color: var(--am-text);
  font: 800 .82rem/1 "Inter", sans-serif;
  letter-spacing: .055em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease;
}

.am-btn:hover {
  border-color: var(--am-accent-hi);
  color: var(--am-text);
  transform: translateY(-2px);
}

.am-btn--accent,
.wp-element-button.am-btn--accent {
  border-color: var(--am-accent-hi);
  background: var(--am-accent-hi);
  color: var(--am-bg);
}

.am-btn--accent:hover {
  border-color: var(--am-text);
  background: var(--am-text);
  color: var(--am-bg);
}

/* builder nie wyraża: siatki kategorii katalogu renderowanej przez hook PHP */
.am-catalog-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(16px, 2vw, 28px);
  margin-top: var(--am-section-gap);
}

/* builder nie wyraża: kontenera karty katalogu renderowanego przez hook PHP */
.am-catalog-category-card {
  position: relative;
  display: flex;
  height: 100%;
  min-height: 270px;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--am-border);
  border-radius: 4px;
  background: var(--am-surface);
}

/* builder nie wyraża: typografii wnętrza karty katalogu renderowanej przez hook PHP */
.am-catalog-category-card h3 {
  margin: 0 0 .75rem;
  font-size: clamp(22px, 2.5vw, 30px);
}

/* builder nie wyraża: koloru opisu karty katalogu renderowanej przez hook PHP */
.am-catalog-category-card p {
  margin: 0;
  color: var(--am-muted);
}

/* builder nie wyraża: położenia odnośnika karty katalogu renderowanej przez hook PHP */
.am-catalog-category-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 1.25rem;
  color: var(--am-accent-hi);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* builder nie wyraża: dekoracyjnego paska karty katalogu renderowanej przez hook PHP */
.am-catalog-category-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 56px;
  background: var(--am-accent);
  content: "";
}

/* builder nie wyraża: wymiaru ikony w karcie katalogu renderowanej przez hook PHP */
.am-catalog-category-card img {
  width: 54px;
  height: 54px;
  margin-bottom: 2rem;
  object-fit: contain;
}

/* builder nie wyraża: panelu CTA katalogu renderowanego przez hook PHP */
.am-catalog-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
  gap: 32px;
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--am-border);
  background: var(--am-surface);
}

/* builder nie wyraża: typografii CTA katalogu renderowanego przez hook PHP */
.am-catalog-panel h2 {
  margin: 0 0 .75rem;
  font-size: clamp(30px, 4vw, 48px);
}

/* builder nie wyraża: koloru opisu CTA katalogu renderowanego przez hook PHP */
.am-catalog-panel p {
  margin: 0;
  color: var(--am-muted);
}

/* builder nie wyraża: wyrównania akcji CTA katalogu renderowanego przez hook PHP */
.am-catalog-panel .am-catalog-panel__actions {
  justify-content: flex-end;
  margin-top: 0;
}

.am-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: var(--am-section-gap);
}

.am-filter[aria-pressed="true"] {
  border-color: var(--am-accent-hi);
  background: var(--am-accent-hi);
  color: var(--am-bg);
}

[hidden] {
  display: none !important;
}

.am-dialog {
  width: min(1120px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 5px;
  background: var(--am-surface);
  color: var(--am-text);
}

.am-dialog::backdrop {
  background: rgba(0,0,0,.82);
}

.am-dialog__bar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  justify-content: flex-end;
  padding: 12px;
  border-bottom: 1px solid var(--am-border);
  background: var(--am-surface);
}

.am-dialog__close {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--am-border);
  border-radius: 50%;
  background: transparent;
  color: var(--am-text);
  font-size: 1.5rem;
  cursor: pointer;
}

.am-dialog__content {
  padding: clamp(20px, 5vw, 56px);
}

.am-dialog__content > h2 {
  margin-top: 0;
  font-size: clamp(30px, 5vw, 52px);
}

.am-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2rem;
}

.am-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.am-contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  margin-top: 3rem;
}

.am-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.am-contact-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--am-border);
}

.am-contact-list span {
  display: block;
  margin-bottom: .2rem;
  color: var(--am-muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.am-form {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--am-border);
  background: var(--am-surface);
}

.am-field {
  margin-bottom: 1.15rem;
}

.am-field label {
  display: block;
  margin-bottom: .45rem;
  font-weight: 700;
}

.am-field input,
.am-field textarea,
.am-field select {
  width: 100%;
  min-height: 48px;
  padding: .8rem .9rem;
  border: 1px solid var(--am-border);
  border-radius: 2px;
  background: var(--am-surface);
  color: var(--am-text);
  font: inherit;
}

.am-field textarea {
  min-height: 150px;
  resize: vertical;
}

.am-form__note {
  color: var(--am-muted);
  font-size: .85rem;
}

/* builder nie wyraża: stylowanie pól CF7 */
.wpcf7 form {
  color: #F2F3F5;
}

.wpcf7 form label {
  display: block;
  color: #F2F3F5;
  font-weight: 700;
}

.wpcf7 form :is(input[type="text"], input[type="email"], input[type="tel"], textarea) {
  width: 100%;
  min-height: 48px;
  margin-top: .45rem;
  padding: .8rem .9rem;
  border: 1px solid #3A3E47;
  border-radius: 3px;
  background: #15171C;
  color: #F2F3F5;
  font: inherit;
}

.wpcf7 form textarea {
  min-height: 180px;
  resize: vertical;
}

.wpcf7 form :is(input, textarea)::placeholder {
  color: #A0A4AD;
  opacity: 1;
}

.wpcf7 form :is(input[type="text"], input[type="email"], input[type="tel"], textarea):focus {
  border-color: #E8A33D;
  box-shadow: 0 0 0 1px #E8A33D;
  outline: 0;
}

.wpcf7 form input.wpcf7-submit[type="submit"] {
  min-height: 48px;
  padding: .75rem 1.2rem;
  border: 1px solid #E8A33D;
  border-radius: 3px;
  background: #E8A33D;
  color: #141519;
  font: 800 .82rem/1 "Inter", sans-serif;
  letter-spacing: .055em;
  text-transform: uppercase;
  cursor: pointer;
}

.wpcf7 form input.wpcf7-submit[type="submit"]:hover {
  border-color: #F2F3F5;
  background: #F2F3F5;
  color: #141519;
}

.wpcf7 form .wpcf7-not-valid-tip {
  color: #E8A33D;
}

.wpcf7 form .wpcf7-response-output {
  border-color: #3A3E47;
  color: #F2F3F5;
}

.am-footer-contact {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-block: 48px;
  border-top: 1px solid var(--am-border);
}

.am-footer-contact h2,
.am-footer-contact h3 {
  margin-top: 0;
}

.am-footer-contact p {
  margin: .3rem 0;
  color: var(--am-muted);
}

/* Strona główna: Blocksy nie dokłada odstępu przed hero ani po ostatniej sekcji. */
body.home [data-vertical-spacing*="top"] {
  padding-top: 0;
}

body.home [data-vertical-spacing*="bottom"] {
  padding-bottom: 0;
}

/* Strona główna: kolejne pełne sekcje nie dublują pionowych marginesów bloków. */
body.home .entry-content > .alignfull {
  margin-block: 0;
}

/* Strona główna: hero przełamuje kontener strony i dochodzi do krawędzi okna. */
body.home {
  /* Wartości awaryjne z pomiaru produkcji; JS zastępuje sumę bieżącym pomiarem DOM. */
  --oktawa-project-bar-height: 39px;
  --oktawa-site-header-height: 121px;
  --oktawa-home-chrome-height: calc(var(--oktawa-project-bar-height) + var(--oktawa-site-header-height));
}

body.home .oktawa-home-hero {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  /* Blocksy daje blokom .alignfull padding 24px — hero ma dotykać nagłówka i krawędzi okna. */
  padding: 0;
}

body.home .oktawa-home-hero > .wp-block-cover {
  width: 100%;
  height: calc(100vh - var(--oktawa-home-chrome-height));
  height: calc(100svh - var(--oktawa-home-chrome-height));
  min-height: 560px;
  max-width: none;
  margin: 0;
  background-image: var(--oktawa-hero-poster, none);
  background-position: center;
  background-size: cover;
}

body.home .oktawa-home-hero .wp-block-cover__video-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Strona główna: panorama wideo wypełnia szerokość okna bez paddingu Blocksy. */
.oktawa-panorama {
  width: 100vw;
  max-width: none;
  margin-inline: calc(50% - 50vw);
  padding: 0;
}

.oktawa-panorama > .wp-block-cover {
  width: 100%;
  min-height: clamp(280px, 42vw, 560px);
  max-width: none;
  margin: 0;
  background-image: var(--oktawa-hero-poster, none);
  background-position: center;
  background-size: cover;
}

.oktawa-panorama video.wp-block-cover__video-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Drugie CTA zachowuje własny kontrast niezależnie od aktualnej klatki wideo. */
body.home .oktawa-home-hero .wp-block-button__link[href$="/realizacje/"] {
  border-color: rgba(242, 243, 245, .88) !important;
  background-color: rgba(14, 15, 18, .78) !important;
  box-shadow: inset 0 0 0 1px rgba(14, 15, 18, .3);
}

body.home .oktawa-home-hero .wp-block-button__link[href$="/realizacje/"]:is(:hover, :focus-visible) {
  border-color: #F2F3F5 !important;
  background-color: rgba(14, 15, 18, .94) !important;
}

@media (prefers-reduced-motion: reduce) {
  body.home .oktawa-home-hero .wp-block-cover__video-background,
  .oktawa-panorama video.wp-block-cover__video-background {
    display: none;
  }
}

@media (max-width: 781px) {
  body.home .oktawa-home-hero > .wp-block-cover {
    height: auto;
    min-height: 0;
  }
}

/* Strona główna: sekcja procesu przechodzi po przekątnej między ciemnymi tokenami. */
.oktawa-process {
  background-image: linear-gradient(135deg, #0E0F12 0%, #15171C 100%);
}

/* Strona główna: bez JavaScript kafelki procesu pozostają widoczne. */
.oktawa-process__card {
  opacity: 1;
  transform: translateX(0);
}

/* Strona główna: dopiero aktywny skrypt przygotowuje kafelki do wejścia. */
body.has-oktawa-process-motion .oktawa-process .oktawa-process__card {
  transition: opacity .5s ease, transform .5s ease;
}

body.has-oktawa-process-motion .oktawa-process:not(.is-visible) .oktawa-process__card {
  opacity: 0;
  transform: translateX(-24px);
}

/* Strona główna: kolejne kroki procesu wchodzą co 120 ms. */
body.has-oktawa-process-motion .oktawa-process__steps > .wp-block-column:nth-child(2) .oktawa-process__card {
  transition-delay: 120ms;
}

body.has-oktawa-process-motion .oktawa-process__steps > .wp-block-column:nth-child(3) .oktawa-process__card {
  transition-delay: 240ms;
}

body.has-oktawa-process-motion .oktawa-process__steps > .wp-block-column:nth-child(4) .oktawa-process__card {
  transition-delay: 360ms;
}

/* Strona główna: fotograficzne CTA nie dostaje dodatkowego marginesu od layoutu bloków. */
body.home :is(.oktawa-photo-cta, .oktawa-photo-cta__frame, .oktawa-photo-cta__content) {
  margin-block: 0;
}

/* Strona główna: bloki Cover nie wyrażają cienia, równej wysokości ani stanów interakcji banera. */
.oktawa-category-banner {
  height: 100%;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  transition: border-color .25s ease, box-shadow .25s ease;
}

/* Strona główna: płynne zbliżenie dotyczy wyłącznie zdjęcia w tle banera. */
.oktawa-category-banner > .wp-block-cover__image-background {
  transform: scale(1);
  transform-origin: center;
  transition: transform .35s ease;
}

/* Strona główna: hover i focus klawiatury korzystają z tego samego czytelnego stanu. */
.oktawa-category-banner:is(:hover, :focus-within) {
  border-color: #E8A33D !important;
  box-shadow: 0 22px 48px rgba(0,0,0,.58);
}

.oktawa-category-banner:is(:hover, :focus-within) > .wp-block-cover__image-background {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  /* Strona główna: proces jest od razu widoczny przy ograniczeniu ruchu. */
  body.has-oktawa-process-motion .oktawa-process .oktawa-process__card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Strona główna: bez animacji i zbliżenia banerów przy ograniczeniu ruchu. */
  .oktawa-category-banner,
  .oktawa-category-banner > .wp-block-cover__image-background {
    transition: none;
  }

  .oktawa-category-banner:is(:hover, :focus-within) > .wp-block-cover__image-background {
    transform: none;
  }
}

/* builder nie wyraża: stanu hover obramowania karty */
.oktawa-hover-card {
  transition: border-color .2s ease;
}

/* builder nie wyraża: stanu hover obramowania karty */
.oktawa-hover-card:hover {
  border-color: var(--am-accent-muted) !important;
}

/* builder nie wyraża: rozciągnięcia zagnieżdżonej karty do pełnej wysokości kolumny */
.oktawa-realization-card {
  height: 100%;
}

/* builder nie wyraża: rozciągnięcia zagnieżdżonego kafla usług do pełnej wysokości kolumny */
.oktawa-service-card {
  height: 100%;
}

/* builder nie wyraża: rozciągnięcia zagnieżdżonych kart kontaktu do wspólnej wysokości kolumn */
.oktawa-contact-panel {
  height: 100%;
}

/* builder nie wyraża: jednakowej bazy flex pięciu obrazów galerii bez identyfikatorów załączników */
.oktawa-gallery-track > .wp-block-image {
  width: calc((100% - 48px) / 5) !important;
  flex: 0 0 calc((100% - 48px) / 5) !important;
}

@media (max-width: 720px) {
  /* builder nie wyraża: poziomego przewijania z przyciąganiem elementów galerii */
  .oktawa-gallery-track {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 12px;
    scroll-snap-type: inline proximity;
  }

  /* builder nie wyraża: stałej szerokości elementu przewijanej galerii */
  .oktawa-gallery-track > .wp-block-image {
    width: min(76vw, 320px) !important;
    flex: 0 0 min(76vw, 320px) !important;
    scroll-snap-align: start;
  }
}

/* Stopka serwisu */
.am-site-footer {
  position: relative;
  margin-top: 0;
  background: var(--am-bg);
  color: var(--am-muted);
}

.am-site-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--am-accent), transparent);
  content: "";
}

.am-site-footer__inner {
  padding-block: clamp(56px, 8vw, 96px) 0;
}

.am-site-footer__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr .9fr .75fr;
  gap: clamp(28px, 4vw, 64px);
}

.am-site-footer__column h2 {
  margin: 0 0 1.4rem;
  color: var(--am-muted);
  font-family: "Inter", sans-serif;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.am-site-footer__column p {
  margin: 0 0 1rem;
}

.am-site-footer__column address {
  color: var(--am-muted);
  font-style: normal;
}

.am-site-footer__column a {
  color: var(--am-text);
}

.am-site-footer__column a:hover {
  color: var(--am-accent-hi);
}

.am-site-footer__logo {
  display: inline-flex;
  margin-bottom: 1.5rem;
}

.am-site-footer__logo img {
  width: auto;
  height: auto;
  max-height: 52px;
}

.am-site-footer__brand > p {
  max-width: 320px;
}

.am-social {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.am-social__item {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--am-border);
  border-radius: 3px;
  background: transparent;
  color: var(--am-text);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

.am-social__item:hover {
  border-color: var(--am-accent);
  background: var(--am-accent);
  color: var(--am-bg);
  transform: translateY(-2px);
}

.am-site-footer__registry {
  padding-top: .8rem;
  border-top: 1px solid var(--am-border);
  font-size: .86rem;
  letter-spacing: .025em;
}

.am-site-footer__hours span,
.am-site-footer__hours strong {
  display: block;
}

.am-site-footer__hours span {
  color: var(--am-muted);
  font-size: .84rem;
  text-transform: uppercase;
}

.am-site-footer__hours strong {
  margin-top: .3rem;
  color: var(--am-text);
  font-family: "Archivo", sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
}

.am-site-footer__closed {
  padding-top: .75rem;
  border-top: 2px solid var(--am-accent);
  color: var(--am-text);
  font-weight: 700;
}

.am-site-footer__nav {
  margin: 0;
  padding: 0;
  list-style: none;
}

.am-site-footer__nav li + li {
  margin-top: .7rem;
}

.am-site-footer__nav a {
  font-weight: 700;
  text-decoration: none;
}

.am-site-footer__bottom {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-block: 24px;
  border-top: 1px solid var(--am-border);
  color: var(--am-muted);
  font-size: .84rem;
}

.am-site-footer__bottom p {
  margin: 0;
}

.am-site-footer__bottom a {
  color: var(--am-text);
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.woocommerce .price,
.wc-block-components-product-price,
.wp-block-woocommerce-product-price,
.ct-header-cart,
.ct-header-account,
.ct-panel-account {
  display: none !important;
}

.woocommerce ul.products li.product,
.wc-block-product,
.wc-block-grid__product,
.wc-block-components-product-card {
  padding: 18px;
  border: 1px solid var(--am-border);
  background: var(--am-surface);
  color: var(--am-text);
}

.wc-block-product .am-btn,
.woocommerce ul.products .am-btn {
  width: 100%;
  margin-top: 1rem;
}

.woocommerce ul.products li.product :is(h2, h3, .woocommerce-loop-product__title),
.wc-block-product :is(h2, h3, .wc-block-components-product-name),
.wc-block-grid__product :is(h2, h3, .wc-block-grid__product-title) {
  color: var(--am-text);
}

.woocommerce-pagination .page-numbers,
.wc-block-components-pagination,
.wp-block-query-pagination {
  border-color: var(--am-border);
  background: var(--am-surface);
  color: var(--am-text);
}

.woocommerce-pagination :is(a.page-numbers, span.page-numbers),
.wc-block-components-pagination a,
.wp-block-query-pagination a {
  border-color: var(--am-border);
  color: var(--am-text);
}

.woocommerce-pagination .page-numbers.current,
.woocommerce-pagination a.page-numbers:hover,
.wc-block-components-pagination a:hover,
.wp-block-query-pagination a:hover {
  border-color: var(--am-accent);
  color: var(--am-accent);
}

:is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) {
  border: 1px solid var(--am-border);
  border-left-color: var(--am-accent);
  background: var(--am-surface);
  color: var(--am-text);
}

:is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) a {
  color: var(--am-text);
}

:is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) a:hover {
  color: var(--am-accent);
}

/* Filtr marek samochodowych */
.am-brand-filter__track {
  display: flex;
  gap: 12px;
  margin-top: var(--am-section-gap);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 14px;
  scroll-snap-type: inline proximity;
}

.am-brand-chip {
  display: flex;
  min-width: 168px;
  min-height: 112px;
  flex: 1 0 168px;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid var(--am-border);
  border-radius: 4px;
  background: var(--am-surface);
  color: var(--am-text);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  scroll-snap-align: start;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.am-brand-chip img,
.am-brand-chip__all-mark {
  display: grid;
  width: 112px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--am-border);
  border-radius: 3px;
  background: var(--am-surface);
  color: var(--am-text);
  object-fit: contain;
}

.am-brand-chip__all-mark {
  font-family: "Archivo", sans-serif;
  font-size: 18px;
  letter-spacing: .12em;
}

.am-brand-chip:hover,
.am-brand-chip.is-active,
.am-brand-chip[aria-current="true"] {
  border-color: var(--am-accent);
  background: var(--am-accent);
}

/* filtr marek: biały tekst tylko przy najechaniu na nieaktywny kafelek */
.am-brand-chip:hover {
  color: #FFF;
}

/* filtr marek: ciemny tekst aktywnego kafelka na bursztynowym tle */
.am-brand-chip.is-active,
.am-brand-chip[aria-current="true"],
.am-brand-chip.is-active .am-brand-chip__all-mark,
.am-brand-chip[aria-current="true"] .am-brand-chip__all-mark {
  color: #0E0F12;
}

.am-brand-filter__empty {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--am-accent);
  background: var(--am-surface);
}

.am-brand-filter__empty p {
  max-width: 720px;
  margin: 0;
  color: var(--am-text);
  font-weight: 700;
}

/* Równe karty produktów WooCommerce */
.am-product-grid {
  padding-bottom: clamp(72px, 9vw, 128px);
  scroll-margin-top: 120px;
}

.am-products-intro {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 28px;
  scroll-margin-top: 120px;
}

.am-products-intro .am-eyebrow {
  margin-bottom: .8rem;
}

.am-products-intro h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  text-align: left;
}

.am-catalog-cta {
  grid-column: 1 / -1;
  width: 100%;
}

.woocommerce ul.products,
.wc-block-product-template,
.wc-block-grid__products {
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.woocommerce ul.products li.product.am-product-card,
.wc-block-product,
.wc-block-grid__product {
  display: flex;
  height: 100%;
  flex-direction: column;
}

.woocommerce ul.products li.product > figure,
.wc-block-product .wc-block-components-product-image,
.wc-block-grid__product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0 0 18px;
  background: #090A0B;
}

.woocommerce ul.products li.product > figure > a,
.wc-block-product .wc-block-components-product-image > a,
.wc-block-grid__product-image > a {
  display: block;
  width: 100%;
  height: 100%;
}

.woocommerce ul.products li.product > figure img,
.wc-block-product .wc-block-components-product-image img,
.wc-block-grid__product-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain;
}

.woocommerce ul.products li.product .am-btn,
.wc-block-product .am-btn,
.wc-block-grid__product .am-btn {
  width: 100%;
  margin-top: auto;
}

/* Karta pojedynczego produktu w trybie katalogowym */
.am-product-breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-block: clamp(28px, 5vw, 48px) 0;
  color: var(--am-muted);
  font-size: .86rem;
}

.am-product-breadcrumb a {
  color: var(--am-text);
  font-weight: 700;
  text-decoration: none;
}

.single-product div.product {
  padding-bottom: clamp(72px, 9vw, 128px);
}

/* karta produktu: wyrównanie kolumn do górnej krawędzi */
.single-product .product-entry-wrapper {
  display: grid !important;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr) !important;
  gap: clamp(24px, 5vw, 72px) !important;
  align-items: start !important;
  width: 100%;
  max-width: var(--am-content);
  margin-inline: auto;
  padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 48px) 0;
}

/* karta produktu: naturalna wysokość galerii i podsumowania */
.single-product .woocommerce-product-gallery,
.single-product .summary.entry-summary {
  width: 100% !important;
  height: auto;
  max-width: none !important;
  flex-basis: auto !important;
  margin: 0 !important;
}

.single-product .woocommerce-product-gallery {
  height: auto !important;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--am-border);
  background: var(--am-surface);
}

/* karta produktu: naturalna wysokość kontenera zdjęcia */
.single-product .woocommerce-product-gallery .ct-product-gallery-container,
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper {
  height: auto !important;
}

/* karta produktu: ramka galerii bez wymuszonej proporcji */
.single-product .woocommerce-product-gallery__image {
  position: relative;
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  overflow: hidden;
  margin: 0;
  background: #090A0B;
}

/* karta produktu: zdjęcia produktowe są kwadratowe, Blocksy narzuca 3/4 i przycina */
.single-product .product .woocommerce-product-gallery .ct-media-container,
.single-product .product .woocommerce-product-gallery .ct-media-container img {
  aspect-ratio: 1 / 1;
  height: auto;
}

/* karta produktu: odnośnik zdjęcia bez wymuszonej wysokości */
.single-product .woocommerce-product-gallery__image > a {
  display: block;
  width: 100%;
  height: auto !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img {
  aspect-ratio: 1;
  border: 1px solid var(--am-border);
  object-fit: contain;
  cursor: pointer;
}

.single-product .summary.entry-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--am-border);
  background: var(--am-surface);
}

.single-product .product_title {
  margin: 0 0 1.25rem;
  font-size: clamp(38px, 5vw, 62px);
}

.single-product .woocommerce-product-details__short-description {
  margin-bottom: 1.75rem;
  color: #D8DBDE;
  font-size: clamp(17px, 1.8vw, 20px);
}

.single-product .woocommerce-product-details__short-description > :last-child {
  margin-bottom: 0;
}

.am-product-specs {
  margin-bottom: 1.5rem;
}

.am-product-specs h2 {
  margin: 0 0 1rem;
  font-size: clamp(24px, 3vw, 32px);
}

/* karta produktu: tabela bez obramowania zewnętrznego */
.single-product .am-product-specs__table {
  width: 100%;
  border-collapse: collapse;
  border: 0;
  color: #F2F3F5;
}

/* karta produktu: reset obramowań komórek */
.single-product .am-product-specs__table :is(tbody, tr, th, td) {
  border: 0;
}

/* karta produktu: rytm i wyrównanie specyfikacji */
.single-product .am-product-specs__table :is(th, td) {
  padding: 12px 0;
  text-align: left;
  vertical-align: top;
}

/* karta produktu: kreski wyłącznie między wierszami */
.single-product .am-product-specs__table tr:not(:last-child) > :is(th, td) {
  border-bottom: 1px solid #3A3E47;
}

/* karta produktu: techniczne etykiety specyfikacji */
.single-product .am-product-specs__table th {
  width: 42%;
  padding-right: 18px;
  color: #A0A4AD;
  font-size: 12px;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
}

/* karta produktu: czytelne wartości specyfikacji */
.single-product .am-product-specs__table td {
  color: #F2F3F5;
}

.am-product-availability {
  display: grid;
  gap: 4px;
  margin-bottom: 1.5rem;
  padding: 16px 18px;
  border-left: 3px solid var(--am-accent);
  background: rgba(255,255,255,.035);
}

.am-product-availability strong {
  color: var(--am-text);
  font-family: "Archivo", sans-serif;
}

.am-product-availability span {
  color: var(--am-muted);
  font-size: .92rem;
}

.single-product .summary .am-btn--accent {
  width: 100%;
  min-height: 58px;
  font-size: .9rem;
}

.single-product :is(.price, form.cart, .single_add_to_cart_button, .product_meta, .woocommerce-product-rating, .woocommerce-review-link, #reviews, .ct-product-divider) {
  display: none !important;
}

.single-product .woocommerce-tabs,
.single-product .related.products {
  max-width: var(--am-content);
  margin: clamp(56px, 8vw, 96px) auto 0;
  padding-inline: clamp(16px, 4vw, 48px);
}

/* karta produktu: kontrolowany odstęp przed opisem */
.single-product .woocommerce-tabs {
  margin: clamp(64px, 6vw, 80px) auto 0;
  padding-top: 0;
}

/* karta produktu: reset listy zakładek WooCommerce */
.single-product div.product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  margin: 0 0 32px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  list-style: none;
}

/* karta produktu: usunięcie obramowania listy zakładek */
.single-product div.product .woocommerce-tabs ul.tabs::before,
.single-product div.product .woocommerce-tabs ul.tabs::after {
  display: none;
  content: none;
}

/* karta produktu: neutralny stan zakładki */
.single-product div.product .woocommerce-tabs ul.tabs > li {
  margin: 0;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* karta produktu: usunięcie dekoracji elementów zakładek */
.single-product div.product .woocommerce-tabs ul.tabs > li::before,
.single-product div.product .woocommerce-tabs ul.tabs > li::after {
  display: none;
  content: none;
}

/* karta produktu: usunięcie podkreślenia z pseudoelementu linku */
.single-product div.product .woocommerce-tabs ul.tabs > li > a::before,
.single-product div.product .woocommerce-tabs ul.tabs > li > a::after {
  display: none;
  content: none;
}

/* karta produktu: reset wyglądu odnośnika zakładki */
.single-product div.product .woocommerce-tabs ul.tabs > li > a {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
}

/* karta produktu: bursztynowa aktywna zakładka */
.single-product div.product .woocommerce-tabs ul.tabs > li.active {
  border-bottom-color: #E8A33D;
  background: transparent;
}

/* karta produktu: Blocksy koloruje zakładki zmienną --theme-link-hover-color (#1559ed) */
.woocommerce div.product div.woocommerce-tabs ul.tabs li a {
  color: #A0A4AD;
}

.woocommerce div.product div.woocommerce-tabs ul.tabs li a:hover,
.woocommerce div.product div.woocommerce-tabs ul.tabs li a:focus {
  color: #F2F3F5;
}

.woocommerce div.product div.woocommerce-tabs ul.tabs li.active a {
  color: #E8A33D;
}

.single-product .related.products > h2 {
  margin: 0 0 var(--am-section-gap);
  font-size: clamp(32px, 5vw, 52px);
  text-align: left;
}

/* Blog: nagłówek archiwum oddziela wstęp od siatki wpisów. */
.blog .am-blog-archive-intro {
  padding-block: clamp(72px, 9vw, 112px) clamp(48px, 6vw, 80px);
  background: #0E0F12;
}

/* Blog: karty archiwum korzystają z ciemnej powierzchni OKTAWY. */
.blog .entries {
  grid-auto-rows: 1fr;
  align-items: stretch;
}

.blog .entries .entry-card {
  position: relative;
  display: flex;
  height: 100%;
  overflow: hidden;
  flex-direction: column;
  padding: 0;
  border: 1px solid #3A3E47;
  border-radius: 4px;
  background: #15171C;
  box-shadow: none;
  color: #F2F3F5;
  transition: border-color .2s ease;
}

/* Blog: obraz jest zawsze pierwszym elementem karty niezależnie od układu Blocksy. */
.blog .entry-card > .ct-media-container,
.blog .entry-card .entry-card-content > .ct-media-container {
  order: -1;
}

/* Blog: obrys sygnalizuje aktywną, klikalną kartę. */
.blog .entries .entry-card:is(:hover, :focus-within) {
  border-color: #E8A33D;
}

/* Blog: obraz karty dochodzi do jej górnej i bocznych krawędzi. */
.blog .entry-card .ct-media-container {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
}

/* Blog: obraz wypełnia szerokość karty bez dodatkowego odstępu. */
.blog .entry-card .ct-media-container img {
  display: block;
  width: 100%;
  margin: 0;
}

/* Blog: treść karty ma stały rytm i pozwala oprzeć metadane o dół. */
.blog .entry-card .entry-card-content {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: clamp(20px, 3vw, 28px);
  background: #15171C;
}

/* Blog: kategoria otwiera tekstową część karty. */
.blog .entry-card > :is(.meta-categories, .entry-meta:has(.meta-categories)),
.blog .entry-card .entry-card-content > :is(.meta-categories, .entry-meta:has(.meta-categories)) {
  order: 1;
}

/* Blog: etykieta kategorii pełni rolę technicznego eyebrow. */
.blog .entry-card .meta-categories,
.blog .entry-card .meta-categories a {
  position: relative;
  z-index: 2;
  padding: 0;
  border: 0;
  background: transparent;
  color: #E8A33D;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
}

/* Blog: tytuł wpisu pozostaje czytelny na ciemnej karcie. */
.blog .entry-card .entry-title {
  order: 2;
  margin-block: 12px;
  color: #F2F3F5;
  font-size: clamp(19px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.25;
}

/* Blog: odnośnik tytułu przejmuje kolor karty. */
.blog .entry-card .entry-title a {
  color: #F2F3F5;
  text-decoration: none;
}

/* Blog: niewidoczna warstwa odnośnika tytułu obejmuje całą kartę. */
.blog .entry-card .entry-title a::after {
  position: absolute;
  inset: 0;
  content: "";
}

/* Blog: zajawka ma spokojniejszy kontrast i czytelną interlinię. */
.blog .entry-card .entry-excerpt,
.blog .entry-card .entry-excerpt p {
  margin-bottom: 0;
  color: #A0A4AD;
  font-size: 15px;
  line-height: 1.7;
}

.blog .entry-card .entry-excerpt {
  order: 3;
}

/* Blog: osobny wiersz daty zostaje dociśnięty do dołu karty. */
.blog .entry-card > .entry-meta:has(.meta-date):not(:has(.meta-categories)),
.blog .entry-card .entry-card-content > .entry-meta:has(.meta-date):not(:has(.meta-categories)) {
  order: 4;
  margin-top: auto;
  padding-top: 20px;
}

/* Blog: data jest drugorzędną informacją na dole karty. */
.blog .entry-card .meta-date,
.blog .entry-card .meta-date time,
.blog .entry-card .meta-date a {
  color: #A0A4AD;
  font-size: 13px;
  text-decoration: none;
}

/* Blog: własna głowica pojedynczego wpisu ma szerokość kolumny tekstu. */
.single-post .am-single-post-header {
  padding-block: clamp(64px, 8vw, 104px) clamp(40px, 6vw, 72px);
  background: #0E0F12;
}

.single-post .am-single-post-header__inner {
  width: calc(100% - 32px);
  max-width: 760px;
  margin-inline: auto;
}

/* Blog: kategoria wpisu pełni rolę technicznego eyebrow. */
.single-post .am-single-post-header__category {
  color: #E8A33D;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Blog: tytuł pojedynczego wpisu odpowiada skalą pozostałym H1. */
.single-post .am-single-post-header__title {
  margin: 0;
  color: #F2F3F5;
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -.025em;
}

/* Blog: data publikacji pozostaje wizualnie drugorzędna. */
.single-post .am-single-post-header__meta {
  margin: 18px 0 0;
  color: #A0A4AD;
  font-size: 14px;
  line-height: 1.5;
}

/* Blog: zdjęcie wyróżniające wypełnia szerokość kolumny treści. */
.single-post .am-single-post-header__media {
  width: 100%;
  overflow: hidden;
  margin: clamp(28px, 5vw, 44px) 0 0;
  border-radius: 4px;
}

/* Blog: zdjęcie wyróżniające zachowuje naturalne proporcje. */
.single-post .am-single-post-header__image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 4px;
}

/* Blog: wąska kolumna treści poprawia czytelność długiego poradnika. */
.single-post article.post .entry-content {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  color: #A0A4AD;
  font-size: 17px;
  line-height: 1.8;
}

/* Blog: nagłówki sekcji artykułu mają wyraźną hierarchię. */
.single-post article.post .entry-content h2 {
  margin-block: clamp(44px, 7vw, 64px) 20px;
  color: #F2F3F5;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
}

/* Blog: listy zachowują szeroki oddech w kolumnie tekstu. */
.single-post article.post .entry-content :is(ul, ol) {
  margin-block: 24px;
  padding-left: 1.35em;
  color: #A0A4AD;
}

/* Blog: bursztynowe punktory porządkują techniczne wyliczenia. */
.single-post article.post .entry-content li::marker {
  color: #E8A33D;
}

/* Blog: odnośniki w artykule korzystają z akcentu marki. */
.single-post article.post .entry-content a {
  color: #E8A33D;
  text-decoration-color: currentColor;
}

/* Blog: stan hover odnośnika pozostaje czytelny na ciemnym tle. */
.single-post article.post .entry-content a:hover {
  color: #F2F3F5;
}

/* Dyskretna informacja o koncepcyjnym charakterze projektu. */
.am-project-bar {
  box-sizing: border-box;
  width: 100%;
  padding: 10px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid #3A3E47;
  background: #15171C;
  color: #A0A4AD;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .04em;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.am-project-bar a {
  margin-left: .75em;
  color: #E8A33D;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.am-project-bar a:hover {
  color: #E8A33D;
  text-decoration: underline;
  text-underline-offset: .2em;
}

.am-project-bar a:focus-visible {
  outline: 2px solid #E8A33D;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .am-project-bar {
    padding: 7px 10px;
    font-size: 12px;
    line-height: 1.35;
    letter-spacing: .02em;
  }

  .am-project-bar a {
    margin-left: .5em;
  }
}

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

  .woocommerce ul.products,
  .wc-block-product-template,
  .wc-block-grid__products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .single-product .product-entry-wrapper {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .am-contact-grid,
  .am-footer-contact {
    grid-template-columns: 1fr;
  }

  /* builder nie wyraża: mobilnej kolumny kategorii i CTA katalogu z hooków PHP */
  .am-catalog-category-grid,
  .am-catalog-panel {
    grid-template-columns: 1fr;
  }

  .woocommerce ul.products,
  .wc-block-product-template,
  .wc-block-grid__products {
    grid-template-columns: 1fr !important;
  }

  /* builder nie wyraża: mobilnego wyrównania akcji CTA katalogu z hooka PHP */
  .am-catalog-panel .am-catalog-panel__actions {
    justify-content: flex-start;
    margin-top: .5rem;
  }

  .am-gallery {
    grid-template-columns: 1fr;
  }

  .am-site-footer__grid {
    grid-template-columns: 1fr;
  }

  .am-site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .am-brand-filter__empty {
    align-items: flex-start;
    flex-direction: column;
  }

  .am-brand-filter__empty .am-btn {
    width: 100%;
  }

  .single-product .product-entry-wrapper {
    padding-top: 36px;
  }

  .single-product .summary.entry-summary {
    padding: 24px;
  }

  .am-product-breadcrumb {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  #header.ct-header .site-logo-container {
    --logo-max-height: 36px;
  }

  #header.ct-header .site-logo-container img {
    max-height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .am-social__item:hover {
    transform: none;
  }
}

/* Twarde domknięcie tła — Blocksy ustawia jasne tło na body z wyższą specyficznością. */
html, body, body.home, body[class*="wp-theme-"] { background-color: var(--am-bg); }
