/* =========================================================
   WALLY – STRONY
   ========================================================= */
.page-content{margin:32px auto 64px;min-height:300px;word-break: break-word;
    overflow-wrap: break-word;}
.section-head-page {text-align: center; background:var(--surface);margin-top:32px}
.section-head-page>div{max-width: 80ch; margin: auto;}
.section-head-page p {color:var(--color-muted);margin-top:8px}


/* =========================================================
   STRONA "O NAS"
   ========================================================= */

.hero-final-v2 {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 32px; align-items: center; padding: clamp(10px, 2vw, 20px) 0;
}
.hero-final-v2__text {
    position: relative; z-index: 2; background-color: var(--bg);
    padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
}
.hero-final-v2__visual {
    position: relative; z-index: 1; margin-left: -20%;
    border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden;
}
.hero-final-v2__visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 991.98px) {
    .hero-final-v2 { grid-template-columns: 1fr; gap: 0; }
    .hero-final-v2__visual { margin-left: 0; margin-top: -80px; opacity: 0.3; }
}
.hero-feature-list { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-direction: column; gap: 24px; }
.hero-feature { display: flex; align-items: flex-start; gap: 16px; }
.hero-feature__icon { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background-color: var(--surface); color: var(--primary-600); }
.hero-feature__icon svg, .hero-feature__icon img { width: 24px; height: 24px; }
.hero-feature__title { font-weight: 600; color: var(--ink); margin: 0 0 4px; }


.timeline-horizontal-wrap { 
    position: relative;
    padding-top: 48px; 
}
ol.timeline-horizontal {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(280px, 80vw, 320px);
    gap: 32px;
    padding: 40px 24px 24px;
    margin: 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    cursor: grab;
    list-style: none; 
    -ms-overflow-style: none; scrollbar-width: none;
    
    background: linear-gradient(var(--border), var(--border)) no-repeat;

    background-size: 100% 2px; 

    background-position: 0 13px;

    background-attachment: local; 
}
.timeline-horizontal::-webkit-scrollbar { display: none; }
.timeline-horizontal.is-dragging { cursor: grabbing; scroll-behavior: auto; }

.timeline-horizontal__node {
    background-color: var(--bg); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-sm);
    position: relative;
    padding-top: 24px; 
}
.timeline-horizontal__node::before {
    content: '';
    position: absolute;
    top: -33px; 
    left: 0px;
    width: 12px; height: 12px;
    background-color: var(--bg);
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: 1; 
    animation: pulse 2s infinite;
}
.timeline-horizontal__node time {
    background-color: var(--surface); color: var(--muted);
    padding: 4px 10px; border-radius: 999px; font-size: 0.8rem;
    font-weight: 600; border: 1px solid var(--border);
    position: absolute;
    top: -40px; 
    left: 24px;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 40%, transparent); }
  70% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--primary) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 0%, transparent); }
}


/* --- 3. SEKCJA ZESPOŁU */
.team-selector--grid {
    width: 100%;
}
.team-grid-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}
.team-grid-nav__btn {
    border: none; background-color: transparent;
    cursor: pointer; padding: 0; text-align: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.team-grid-nav__btn img {
    display: block;
    width: 90px; height: 90px; 
    object-fit: cover; border-radius: 50%;
    margin-bottom: 8px; border: 2px solid var(--border);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.team-grid-nav__btn:not(.is-active) {
    opacity: 0.6;
}
.team-grid-nav__btn:hover:not(.is-active) {
    transform: scale(1.05);
    opacity: 1;
}

.team-grid-nav__btn.is-active img {
    border-color: var(--primary);
    box-shadow: 0 0 12px color-mix(in srgb, var(--primary) 30%, transparent);
}
.team-grid-nav__name { display: block; font-weight: 600; color: var(--ink); font-size: 0.95rem; line-height: 1.3; }
.team-grid-nav__role { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.3; }


.team-separator {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 40px auto;
    width: 50%;
}


.team-pane-wrapper {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    align-items: flex-start;
    max-width: 70ch; 
    margin: 0 auto;
    background-color: var(--surface);
    padding: 24px;
    border-radius: var(--r-lg);
}
.team-pane__photo {
    width: 140px; height: 140px;
    border-radius: var(--r-lg);
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}
.team-selector__pane { display: none; }
.team-selector__pane.is-active { display: block; animation: fadeIn 0.4s; }
@media (max-width: 767.98px) {
    .team-pane-wrapper { grid-template-columns: 1fr; text-align: center; }
    .team-pane__photo { margin: 0 auto 0; }
}

.logos-marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.logos-track { display: flex; gap: 48px; animation: marquee 28s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logos-track img { height: 36px; }
@media (prefers-reduced-motion:reduce) { .logos-track { animation: none; } }
.cta-elegant { text-align: center; }
.cta-elegant__link { display: inline-block; font-size: 1.25rem; font-weight: 600; color: var(--ink); text-decoration: none; position: relative; }
.cta-elegant__link::after { content: ''; position: absolute; width: 100%; height: 2px; bottom: -4px; left: 0; background-color: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1); }
.cta-elegant__link:hover::after { transform: scaleX(1); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* =========================================================
   ULEPSZENIE: Finalne CTA
   ========================================================= */
.cta-final {
    background-color: var(--surface);
    border-radius: var(--r-lg);
    padding: clamp(32px, 5vw, 48px);
    /* Nowe style dla idealnego wyśrodkowania */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta-final .prose {
    max-width: 70ch; 
}

.cta-final .btn {
    margin-top: 24px;
}

/* =========================================================
   KOMPONENT: PASEK KONTAKTOWY
   ========================================================= */
.contact-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.contact-strip__item {
    text-align: center;
}

.contact-strip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 20px;
    margin-bottom: 16px;
    background-color: var(--surface);
    color: var(--primary-600);
    box-shadow: var(--shadow-sm);
}
.contact-strip__icon img {
    width: 28px;
    height: 28px;
}
.contact-strip__label {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 4px;
}
.contact-strip__value {
    font-weight: 600;
    color: var(--ink);
}

@media (max-width: 991.98px) {
    .contact-strip { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   STRONA KONTAKTOWA 
   ========================================================= */

.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: flex-start;
    gap: clamp(32px, 5vw, 60px); 
}

.contact-sidebar {
    position: sticky;
    top: 120px; 
    display: grid;
    gap: 24px; /
}

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background-color: var(--surface);
    border-radius: var(--r-md);
}
.info-block__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    color: var(--primary-600);
}
.info-block__label {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 2px;
}
.info-block__value {
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    line-height: 1.4;
}

.form-card {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 991.98px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-sidebar {
        position: static;
        order: -1;
    }
}
/* =========================================================
   KOMPONENT: SIATKA PORADNIKÓW 
   ========================================================= */

.guides-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

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

@media (max-width: 575.98px) {
  .guides-grid {
    grid-template-columns: 1fr; 
  }
}


.trust-item--link-card {
  position: relative;
}

.stretched-link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1; 
  background-color: transparent;
}

/* =========================================================
   KOMPONENT: AKORDEON TREŚCI (.content-accordion)
   ========================================================= */

.content-accordion {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-item + .accordion-item {
  border-top: 1px solid var(--border);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 24px;
  background-color: var(--surface);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  transition: background-color 0.15s ease;
}

.accordion-header:hover {
  background-color: var(--bg);
}

.accordion-header .chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
  color: var(--muted);
}

.accordion-item.is-open .accordion-header .chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.accordion-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease-in-out, padding 0.3s ease-in-out;
  background-color: var(--surface);
}

.accordion-item.is-open .accordion-panel {
  max-height: 5000px;
}

.accordion-content {
  padding: 0 24px 24px;
}

.instruction-step {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: flex-start;
  gap: 24px;
}

@media (max-width: 767.98px) {
  .instruction-step {
    grid-template-columns: 1fr;
  }
  .instruction-step img {
    max-width: 150px; 
    margin-bottom: 12px;
  }
}


/* =========================================================
   KOMPONENT: PANEL LOGOWANIA (.login-panel)
   ========================================================= */
.login-panel {
  display: grid;

  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 36px);
  max-width: 980px;
  margin: 40px auto 0; 
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;

}

.account-panel {
  max-width: 980px;
  margin: 40px auto 0; 
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  padding: clamp(24px, 5vw, 40px);
  margin-bottom:64px;
}

.account-panel .text {width:100%!important}

.login-panel__content {
  padding: clamp(24px, 5vw, 40px);
}

.login-panel__separator {
  height: 100%;
  background-color: var(--border);
}


.login-panel .prose ul li {
  margin-block: 4px; 
}

@media (max-width: 767.98px) {
  .login-panel {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .login-panel__separator {
    height: 1px;
    width: 100%;
    margin: 0;
  }
  .login-panel__content--benefits {
    padding-bottom: 32px;
  }
   .login-panel__content--form {
    padding-top: 32px;
  }
}

.form-panel {
  max-width: 520px;
  margin: 40px auto 0;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 5vw, 40px);
}


/* =========================================================
   UKŁAD STRONY DOKUMENTACJI (np. Polityka Prywatności)
   ========================================================= */

.doc-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: flex-start;
  gap: 48px;
}

.doc-toc {
  position: sticky;
  top: 120px;
}

@media (max-width: 991.98px) {
  .doc-layout {
    grid-template-columns: 1fr;
  }
  .doc-toc {
    position: static;
    margin-bottom: 40px;
  }
}


.prose .table thead th {
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
  color: var(--ink);
  font-size: 0.9rem;
}


/* =========================================================
   ASIDE (Płatności)
   ========================================================= */


.layout-aside-left {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: flex-start;
    gap: 60px; 
}

@media (max-width: 991.98px) {
    .layout-aside-left {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.aside-card {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    padding: 24px;
    position: sticky;
    top: 120px;
}

.aside-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.aside-card__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background-color: color-mix(in srgb, var(--primary) 15%, transparent);
    color: var(--primary-600);
}

.aside-card__icon .i {
    width: 28px;
    height: 28px;
}

.aside-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

/* =========================================================
   ULEPSZENIE: Punkt kontaktowy w alercie
   ========================================================= */
.alert-contact-point {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-contact-point .i {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--color-info); 
}

.alert-contact-point .label {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
}

.alert-contact-point .link {
    display: block;
    font-weight: 600;
    color: var(--ink);
}


/* =========================================================
   KOMPONENT: ZAKŁADKI (Tabs)
   ========================================================= */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
}

.tab-btn {
  padding: 12px 20px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  border-bottom: 3px solid transparent;
  transform: translateY(2px);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-btn:hover {
  color: var(--ink);
}

.tab-btn.is-active {
  color: var(--ink);
  border-bottom-color: var(--primary);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.tab-panel.is-active {
  display: block;
}

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

/* =========================================================
   KOMPONENT: KARTA METODY (.method-card) - Płatności/Dostawa
   ========================================================= */
.method-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 16px;
  transition: box-shadow 0.2s ease;
}

.method-card:hover {
    box-shadow: var(--shadow-md);
}

.method-card__main {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px;
}

.method-card__logo {
  width: 100px;
  height: 50px;
  object-fit: contain;
  justify-self: center;
}

.method-card__title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}
.method-card__subtitle {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary-600);
}

.method-card__description {
  margin: 0;
  color: var(--muted);
}

.method-card__features {
  padding-left: 0;
  list-style: none;
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.method-card__features li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}
.method-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.method-card-toggle {
  background-color: transparent;
  border: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.method-card-toggle .chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}
.method-card.is-open .method-card-toggle .chevron {
  transform: rotate(180deg);
}


.method-card__details {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
}
.method-card.is-open .method-card__details {
  max-height: 1000px; 
}

.method-card__details .details-content {
    border-top: 1px solid var(--border);
    padding: 24px;
}

@media (max-width: 767.98px) {
    .method-card__main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .method-card__logo { margin-bottom: 16px; }
    .method-card-toggle { margin-left: auto; margin-right: auto; padding-top: 16px;}
    .method-card__features { display: inline-block; text-align: left; }
}

/* =========================================================
   KOMPONENT: NAPRZEMIENNA SIATKA ZDJĘCIE/TEKST (.feature-grid)
   ========================================================= */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(24px, 5vw, 48px);
    align-items: center;
}

/* Modyfikator do odwrócenia kolejności kolumn */
.feature-grid--reversed > :first-child {
    order: 2;
}

@media (max-width: 767.98px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .feature-grid--reversed > :first-child {
        order: 0; /* Resetowanie kolejności na mobile */
    }
}

/* =========================================================
   KOMPONENT: CIEMNE WEZWANIE DO DZIAŁANIA (CTA)
   ========================================================= */
.cta-dark {
    background-color: var(--why-bg);
    color: var(--why-text);
}

.cta-dark h2, .cta-dark h3 {
    color: var(--why-head);
}

.blog-cats{
  --chip-gap:10px; --chip-r:999px; --chip-h:36px; --chip-pad-x:14px;
  --chip-shadow:0 6px 18px rgba(0,0,0,.06);
  --chip-shadow-hover:0 10px 22px rgba(0,0,0,.10);
  --ring:color-mix(in srgb, var(--primary) 20%, transparent);
  margin:0 0 22px;
}
.blog-cats__list{
  display:flex; align-items:flex-start; flex-wrap:wrap;
  gap:var(--chip-gap) var(--chip-gap);
  padding:0; margin:0; list-style:none; overflow:visible;
}

.blog-cats__item{
  display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap; min-width:0;
}
.blog-cats a{
  display:inline-flex; align-items:center; gap:6px;
  min-height:var(--chip-h); padding:8px var(--chip-pad-x);
  border-radius:var(--chip-r); border:1px solid var(--color-border);
  background:#fff; color:inherit; font-weight:600; text-decoration:none;
  white-space:nowrap; min-width:0; overflow-wrap:anywhere;
  box-shadow:var(--chip-shadow);
  transition:transform .12s, box-shadow .18s, border-color .18s, background-color .18s;
}
.blog-cats a :hover{
  transform:translateY(-1px);
  border-color:color-mix(in srgb, var(--primary) 35%, var(--color-border));
  box-shadow:var(--chip-shadow-hover);
}
.blog-cats a.is-active{
  background:color-mix(in srgb, var(--primary) 26%, #fff);
  border-color:color-mix(in srgb, var(--primary) 60%, var(--color-border));
  box-shadow:0 0 0 5px var(--ring), 0 12px 28px rgba(160,209,46,.16);
  position:relative; z-index:1;
}



/* =========================================================
   STRONA FAQ 
   ========================================================= */

.faq-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: flex-start;
    gap: 48px;
}
.faq-nav {
    position: sticky;
    top: 120px;
}
.faq-nav__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.faq-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.faq-nav__link {
    display: block;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}
.faq-nav__link:hover {
    background-color: var(--surface);
    color: var(--ink);
}
.faq-nav__link.is-active {
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.faq-search {
    position: relative;
    margin-bottom: 24px;
}
.faq-search .input {
    padding-left: 40px;
}
.faq-search__icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.faq-accordion .accordion-item {
    margin-bottom: 12px;
    border-radius: var(--r-md);
    background-color: var(--bg);
    border: 1px solid var(--border);
    transition: box-shadow 0.2s, border-color 0.2s;
    overflow:hidden;
}
.faq-accordion .accordion-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}
.faq-accordion .accordion-header {
    font-size: 1rem;
}
.faq-accordion .accordion-item.is-hidden {
    display: none;
}

.faq-category-header {
    margin-top: 48px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.faq-category-header:first-of-type { margin-top: 0; }

@media (max-width: 991.98px) {
    .faq-layout { grid-template-columns: 1fr; }
     .faq-nav {
        position: static;
        top: auto; 
        margin-bottom: 40px; 
    }
}

/* =========================================================
   STRONA "O NAS" / "OPINIE"
   ========================================================= */

.hero-subpage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background-color: var(--surface);
    background-size: cover;
    background-position: center;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    margin-bottom: 24px;
}
.hero-subpage__content {
    max-width: 65ch;
    text-align: center;
    background-color: var(--bg); 
    padding: 32px 40px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
}
.hero-subpage__content h1 {
    color: var(--ink);
}

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 991.98px) {
    .pillar-grid { grid-template-columns: 1fr; }
}
.pillar-card {
    text-align: center;
}
.pillar-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 24px;
    margin-bottom: 16px;
    background-color: color-mix(in srgb, var(--primary) 15%, transparent);
    color: var(--primary-600);
    box-shadow: var(--shadow-sm);
}
.pillar-card__icon img {
    width: 36px;
    height: 36px;
}
.pillar-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 8px;
}

.quote-block {
    position: relative;
    text-align: center;
    max-width: 70ch;
    margin-inline: auto;
    padding: 24px;
}
.quote-block::before {
    content: '„';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 80px;
    font-weight: 800;
    color: var(--border);
    z-index: -1;
}

.reviews-widget-wrapper {
    background-color: var(--bg);
    border-radius: var(--r-lg);
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}


/* =========================================================
   STRONA "WZORNIK KOLORÓW" 
   ========================================================= */

.spec-table {
    display: grid;
    grid-template-columns: 200px 1fr;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    background-color: var(--surface);
}
.spec-table__label,
.spec-table__value {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
}
.spec-table > *:nth-last-child(-n+2) {
    border-bottom: none;
}
.spec-table__label {
    font-weight: 600;
    color: var(--ink);
    background-color: color-mix(in srgb, var(--border) 40%, transparent);
}
.spec-table__value {
    color: var(--muted);
}
@media (max-width: 575.98px) {
    .spec-table { grid-template-columns: 1fr; }
    .spec-table__label { border-bottom: none; padding-bottom: 4px; }
    .spec-table__value { padding-top: 0; }
}

.color-swatch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    margin-top: 32px;
}
.color-swatch {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.color-swatch:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.color-swatch__color {
    height: 100px;
}
.color-swatch__info {
    padding: 12px;
    background-color: var(--bg);
}
.color-swatch__name {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.3;
}
.color-swatch__code {
    font-size: 0.85rem;
    color: var(--muted);
    font-family: monospace;
}
.color-swatch--light .color-swatch__info {
    color: var(--ink); /* Ciemny tekst na białym tle */
}
.color-swatch--dark .color-swatch__info {
    background-color: #2f2f2f;
    color: #fff;
}
.color-swatch--dark .color-swatch__name { color: #fff; }
.color-swatch--dark .color-swatch__code { color: #9ca3af; }



/* =========================================================
   PORADNIK KOLORYSTYCZNY 
   ========================================================= */


.color-theory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 991.98px) {
    .color-theory-grid { grid-template-columns: 1fr; }
}
.color-theory-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
    text-align: center;
}
.color-theory-card__visual {
    height: 80px;
    margin-bottom: 16px;
}
.color-theory-card h3 {
    color: var(--ink);
    font-weight: 600;
}
.color-theory-card p {
    font-size: 0.9rem;
    color: var(--muted);
}

.color-profile {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.color-profile:last-child { border-bottom: none; }

.color-profile__swatch {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid var(--border);
}
.color-profile__name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px;
}
.color-profile__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-left: 0;
    list-style: none;
}
.color-profile__tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 999px;
    background-color: var(--surface);
    border: 1px solid var(--border);
}

@media (max-width: 575.98px) {
    .color-profile { grid-template-columns: 1fr; text-align: center; }
    .color-profile__swatch { margin: 0 auto; }
    .color-profile__tags { justify-content: center; }
}


/* =========================================================
   STRONA "BAZA WIEDZY"
   ========================================================= */

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.guide-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}
.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.guide-card__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    color: var(--primary);
}

.guide-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
}

.guide-card__desc {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 4px 0 0;
}

.stretched-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-lg);
}



/* =========================================================
   STRONA "INSTRUKCJE MONTAŻU"
   ========================================================= */

.guides-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    align-items: flex-start;
    gap: 48px;
}

.guides-nav {
    position: sticky;
    top: 120px;
}
.guides-nav__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
}
.guides-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.guides-nav__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--r-sm);
    font-weight: 500;
    text-decoration: none;
    color: var(--muted);
    transition: background-color 0.2s, color 0.2s;
}
.guides-nav__link img {
    width: 32px;
    height: 32px;
    border-radius: var(--r-xs);
    object-fit: cover;
    flex-shrink: 0;
}
.guides-nav__link:hover {
    background-color: var(--surface);
    color: var(--ink);
}
.guides-nav__link.is-active {
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.instruction-step-v2 {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}
.instruction-step-v2:first-of-type { padding-top: 24px; }
.instruction-step-v2:last-of-type { border-bottom: none; }

.instruction-step-v2__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
}
@media (max-width: 575.98px) {
    .instruction-step-v2 { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
    .guides-layout { grid-template-columns: 1fr; }
    .guides-nav {
        position: static;
        top: auto;
        margin-bottom: 40px;
    }
}

/* =========================================================
   STRONA 404 
   ========================================================= */

/* 1. Główny kontener strony błędu */
.error-page-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 60px 0;
}

.error-page {
    max-width: 600px;
    text-align: center;
}

.error-page__kicker {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
}

.error-page__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.1;
    margin: 0;
}

.error-page__description {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 45ch;
    margin: 24px auto 0;
}

/* 2. Dedykowana karta wyszukiwania */
.error-search-card {
    margin-top: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 24px;
}
.error-search-card .search-pill {
    max-width: 400px;
    margin: 0 auto;
}
.error-search-card .search-input {
    height: 48px;
    font-size: 1rem;
}
.error-search-card .btn-search {
    height: 48px;
}

/* 3. Sugerowane akcje */
.error-page__actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}


.category-content-layout {
    display: flex;
    flex-direction: column;
}

.category-content-layout #description {
    order: 2;
}
.category-content-layout #categories-grid {
    order: 1;
}

.collapsible-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(0deg, var(--bg) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    transition: opacity 0.3s 
ease;
}

.collapsible-wrapper.is-expanded::after {
    opacity: 0;
}

.collapsible-wrapper {
    position: relative;
    overflow: hidden;
    max-height: 180px;
    transition: max-height 0.5s 
ease-in-out;
}

.collapsible-wrapper.is-expanded {
    max-height: 8000px;
}

.btn-show-more {
    display: block;
    margin: 24px auto 0;
}