/*
Theme Name: Segreguj na 5
Theme URI:
Author: Piotr Wilczyński
Author URI: mailto:piotr@wilczyn.ski
Description: Szablon dla Segreguj na 5
Version: 1.0.0
Text Domain: segreguj-na-5
*/

/* ========================================
   Fonts
   ======================================== */

@font-face {
    font-family: 'Engram Warsaw';
    font-style: normal;
    font-weight: normal;
    font-display: swap;
    src: url('assets/fonts/engram-warsaw/engram-warsaw-regular.woff2') format('woff2'),
         url('assets/fonts/engram-warsaw/engram-warsaw-regular.woff') format('woff');
}

@font-face {
    font-family: 'Engram Warsaw';
    font-style: italic;
    font-weight: normal;
    font-display: swap;
    src: url('assets/fonts/engram-warsaw/engram-warsaw-regular-italic.woff2') format('woff2'),
         url('assets/fonts/engram-warsaw/engram-warsaw-regular-italic.woff') format('woff');
}

@font-face {
    font-family: 'Engram Warsaw';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('assets/fonts/engram-warsaw/engram-warsaw-light.woff2') format('woff2'),
         url('assets/fonts/engram-warsaw/engram-warsaw-light.woff') format('woff');
}

@font-face {
    font-family: 'Engram Warsaw';
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url('assets/fonts/engram-warsaw/engram-warsaw-light-italic.woff2') format('woff2'),
         url('assets/fonts/engram-warsaw/engram-warsaw-light-italic.woff') format('woff');
}

@font-face {
    font-family: 'Engram Warsaw';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/engram-warsaw/engram-warsaw-medium.woff2') format('woff2'),
         url('assets/fonts/engram-warsaw/engram-warsaw-medium.woff') format('woff');
}

@font-face {
    font-family: 'Engram Warsaw';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('assets/fonts/engram-warsaw/engram-warsaw-medium-italic.woff2') format('woff2'),
         url('assets/fonts/engram-warsaw/engram-warsaw-medium-italic.woff') format('woff');
}

@font-face {
    font-family: 'Engram Warsaw';
    font-style: normal;
    font-weight: bold;
    font-display: swap;
    src: url('assets/fonts/engram-warsaw/engram-warsaw-bold.woff2') format('woff2'),
         url('assets/fonts/engram-warsaw/engram-warsaw-bold.woff') format('woff');
}

@font-face {
    font-family: 'Engram Warsaw';
    font-style: italic;
    font-weight: bold;
    font-display: swap;
    src: url('assets/fonts/engram-warsaw/engram-warsaw-bold-italic.woff2') format('woff2'),
         url('assets/fonts/engram-warsaw/engram-warsaw-bold-italic.woff') format('woff');
}

@font-face {
    font-family: 'Engram Warsaw';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('assets/fonts/engram-warsaw/engram-warsaw-black.woff2') format('woff2'),
         url('assets/fonts/engram-warsaw/engram-warsaw-black.woff') format('woff');
}

@font-face {
    font-family: 'Engram Warsaw';
    font-style: italic;
    font-weight: 900;
    font-display: swap;
    src: url('assets/fonts/engram-warsaw/engram-warsaw-black-italic.woff2') format('woff2'),
         url('assets/fonts/engram-warsaw/engram-warsaw-black-italic.woff') format('woff');
}

/* ========================================
   Custom Properties
   ======================================== */

:root {
    --color-text: #2B2A29;
    --color-primary: #0A8843;
    --color-primary-light: #E8F6EE;
    --color-border: #E7E6EC;
    --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Accessibility
   ======================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100000;
    width: auto;
    height: auto;
    padding: 8px 16px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    border-radius: 4px;
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ========================================
   Reset & Base
   ======================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;

}

body {
    font-family: 'Engram Warsaw', 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    line-height: 20px;
    color: var(--color-text);
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

.site-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 1366px;
    margin: 0 auto;
    width: 100%;
}

.site-main__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 32px;
}

.page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 100px;
}

.page-content h1 {
    font-weight: 700;
    font-size: 1.625rem;
    line-height: 1.2;
    color: var(--color-text);
}

.page-content ol,
.page-content ul {
    padding-left: 1.5em;
}

.page-content ol {
    list-style: decimal;
}

.page-content ul {
    list-style: disc;
}

.page-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.page-content a:hover,
.page-content a:focus {
    text-decoration: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

img,
svg {
    display: block;
}

/* ========================================
   Navbar
   ======================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #FFFFFF;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.17);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.125rem;
    padding: 0 100px;
    max-width: 1366px;
    margin: 0 auto;
    width: 100%;
}

/* -- Logo -- */

.navbar__logo-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    height: 3.125rem;
}

.navbar__logo-icon {
    height: 3.125rem;
    width: auto;
    flex-shrink: 0;
}

.navbar__logo-divider {
    width: 1px;
    height: 2.5rem;
    background: var(--color-border);
    flex-shrink: 0;
}

.navbar__logo-text {
    font-weight: 700;
    font-size: 0.625rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #015A84;
    white-space: nowrap;
    padding-top: 0.5rem;
    position: relative;
    top: 1px;
}

/* -- Mobile menu toggle (hidden on desktop) -- */

.navbar__menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 33px;
}

.navbar__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 24px;
    height: 24px;
}

.navbar__hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.is-menu-open .navbar__hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.is-menu-open .navbar__hamburger-line:nth-child(2) {
    opacity: 0;
}

.is-menu-open .navbar__hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.navbar__menu-label {
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #015A84;
    text-align: center;
}

/* -- Right section (nav + actions) -- */

.navbar__right {
    display: flex;
    align-items: center;
    gap: 32px;
}

/* -- Nav links -- */

.navbar__nav {
    display: flex;
    align-items: center;
}

.navbar__nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 10px;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: normal;
    color: var(--color-text);
    white-space: nowrap;
    transition: opacity 0.15s;
}

.navbar__nav-link:hover {
    opacity: 0.7;
}

.navbar__nav-link span {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0.15em;
}

.navbar__nav-link span::after {
    content: attr(data-text);
    font-weight: 700;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
}

.navbar__nav-link--active {
    font-weight: 700;
}

.navbar__nav-link--search::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: url('images/icons/ui/icon-search-dark.svg') no-repeat center;
    background-size: contain;
}

/* -- Actions (lang + accessibility) -- */

.navbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar__lang {
    position: relative;
}

.navbar__lang.is-open {
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.12));
}

.navbar__lang-toggle {
    display: flex;
    align-items: center;
    padding: 4px;
    gap: 4px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 24px;
    color: var(--color-text);
    cursor: pointer;
    border-radius: 4px 4px 0 0;
    position: relative;
    z-index: 102;
}

.navbar__lang.is-open .navbar__lang-toggle {
    background: #fff;
}

.navbar__lang.is-open .navbar__lang-toggle .navbar__chevron {
    transform: rotate(180deg);
}

.navbar__lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    background: #fff;
    border-radius: 4px 0 4px 4px;
    padding: 8px 0;
    z-index: 101;
}

.navbar__lang.is-open .navbar__lang-dropdown {
    display: flex;
    flex-direction: column;
}

.navbar__lang-flag {
    width: 23px;
    height: 23px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid #fff;
    box-sizing: border-box;
}

.navbar__lang-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 35px 8px 12px;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 24px;
    color: var(--color-text);
    text-decoration: none;
    white-space: nowrap;
}

.navbar__lang-link:hover {
    background: #E9EBF5;
}

.navbar__chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.navbar__a11y-link {
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 4px;
    text-decoration: none;
}

.navbar__a11y-link:hover .navbar__a11y-icon,
.navbar__a11y-link:focus-visible .navbar__a11y-icon {
    background: #D8DBDC;
}

.navbar__a11y-icon {
    width: 23px;
    height: 23px;
    border-radius: 50%;
    overflow: hidden;
    background: #EBECEC;
    flex-shrink: 0;
}

.navbar__a11y-icon img {
    width: 23px;
    height: 23px;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
    background: #EEF2F3;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: flex-end;
    max-width: 1366px;
    margin: 0 auto;
    width: 100%;
    padding: 40px 120px;
}

/* -- Top row -- */

.footer__top {
    display: flex;
    gap: 64px;
    width: 100%;
}

/* -- Brand column -- */

.footer__brand {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 238px;
    flex-shrink: 0;
}

.footer__brand-header {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.footer__logo-icon {
    width: 55px;
    height: auto;
    flex-shrink: 0;
}

.footer__brand-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer__brand-name {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--color-text);
}

.footer__brand-address {
    font-style: normal;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.6;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

/* -- Social -- */

.footer__social {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__social-label {
    font-weight: 700;
    font-size: 0.75rem;
    line-height: 1.6;
    color: var(--color-text);
}

.footer__social-icons {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 24px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: opacity 0.15s;
}

.footer__social-link:hover {
    opacity: 0.6;
}

.footer__social-link svg {
    width: 24px;
    height: 24px;
}

/* -- Link columns -- */

.footer__columns {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: flex-end;
    flex: 1;
}

.footer__column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 185px;
}

.footer__column-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: normal;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.footer__column-list {
    display: flex;
    flex-direction: column;
}

.footer__column-list li {
    padding: 8px 0;
}

.footer__column-list li a {
    display: inline;
    font-weight: 300;
    font-size: 0.875rem;
    line-height: 20px;
    letter-spacing: -0.01em;
    color: var(--color-text);
    transition: opacity 0.15s;
}

.footer__column-list li a:hover {
    opacity: 0.7;
}

.footer__external-icon {
    display: inline;
    vertical-align: middle;
    width: 14px;
    height: 14px;
    margin-left: 2px;
}

/* -- Bottom -- */

.footer__bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 32px;
    width: 100%;
}

.footer__divider {
    width: 100%;
    border: none;
    border-top: 1px solid #BCCBD2;
}

.footer__legal {
    display: flex;
    gap: 32px;
}

.footer__legal a {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: normal;
    text-decoration: underline;
    color: var(--color-text);
    transition: opacity 0.15s;
}

.footer__legal a:hover {
    opacity: 0.7;
}

/* ========================================
   Shared: Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px 8px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #FFFFFF;
    text-decoration: none;
    transition: opacity 0.15s;
}

.btn:hover {
    opacity: 0.85;
}

.btn--green {
    background: var(--color-primary);
}

.btn--black {
    background: #000000;
}

/* Gutenberg button block - inherit .btn--green style */
.wp-block-button .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px 8px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #FFFFFF;
    text-decoration: none;
    background: var(--color-primary);
    border: none;
    transition: opacity 0.15s;
}

.wp-block-button .wp-block-button__link:hover {
    opacity: 0.85;
    color: #FFFFFF;
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background: var(--color-primary);
    color: #FFFFFF;
    border: none;
}

/* ========================================
   404 Error Page
   ======================================== */

.error-404 {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    padding: 64px 100px;
}

.error-404__content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 555px;
}

.error-404__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.error-404__title {
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.4;
    color: var(--color-text);
}

.error-404__desc {
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--color-text);
}

.error-404__illustration {
    flex-shrink: 0;
    width: 412px;
}

.error-404__illustration img {
    width: 100%;
    height: auto;
}

@media (max-width: 1024px) {

    .error-404 {
        flex-direction: column-reverse;
        gap: 32px;
        padding: 32px 16px;
        text-align: center;
    }

    .error-404__illustration {
        width: 260px;
    }

    .error-404__title {
        font-size: 1.5rem;
    }

    .error-404__content {
        align-items: center;
    }

}

/* ========================================
   Search Hero
   ======================================== */

.search-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 0 16px;
    margin-bottom: 32px;
    max-width: 804px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.search-hero__text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.search-hero__title {
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--color-primary);
}

.search-hero__subtitle {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: normal;
    color: var(--color-text);
}

.search-hero__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    position: relative;
    isolation: isolate;
}

/* -- Input row -- */

.search-hero__input-col {
    position: relative;
    z-index: 3;
    width: 100%;
}

.search-hero__input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    background: var(--color-primary-light);
    border: 2px solid var(--color-primary);
    border-radius: 100px;
    transition: box-shadow 0.2s;
}

.search-hero__input-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.search-hero__input-col:focus-within .search-hero__input-wrap {
    box-shadow: 0 2px 13px rgba(28, 161, 88, 0.3);
}

.search-hero__input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.875rem;
    line-height: normal;
    color: var(--color-text);
    outline: none;
}

.search-hero__input::placeholder {
    color: #656565;
}

/* -- Dropdown -- */

.search-hero__dropdown {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 26px;
    left: 0;
    width: 100%;
    z-index: 2;
    background: #FFFFFF;
    padding-top: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0);
    overflow: hidden;
    height: 0;
    opacity: 0;
    pointer-events: none;
    transition: height 0.15s linear, opacity 0.15s linear, box-shadow 0.15s linear;
}

.search-hero__dropdown--visible {
    opacity: 1;
    padding-top: 20px;
    box-shadow: var(--shadow-card);
    pointer-events: auto;
}

/* -- Results list -- */

.search-hero__results {
    display: none;
}

.search-hero__results--visible {
    display: flex;
    width: 100%;
    max-height: 324px;
}

.search-hero__results-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
    min-height: 0;
    scrollbar-width: none;
}

.search-hero__results-list::-webkit-scrollbar {
    display: none;
}

/* -- Custom scrollbar -- */

.search-hero__scrollbar {
    display: flex;
    flex-direction: column;
    padding: 16px;
    flex-shrink: 0;
    align-self: stretch;
}

.search-hero__scrollbar-track {
    position: relative;
    width: 2px;
    flex: 1;
    background: var(--color-border);
    border-radius: 100px;
    cursor: pointer;
}

.search-hero__scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    background: var(--color-primary);
    border-radius: 100px;
    cursor: pointer;
}

/* -- Result item -- */

.search-hero__result-item {
    display: flex;
    flex-direction: column;
    padding: 0 8px;
}

.search-hero__result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 8px;
}

.search-hero__result-name {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: normal;
    color: var(--color-text);
}

.search-hero__result-divider {
    border: none;
    border-top: 1px solid var(--color-border);
}

.search-hero__result-item:last-child .search-hero__result-divider {
    display: none;
}

.search-hero__result-item--active .search-hero__result-row {
    background: #F0F7F3;
}

/* -- Label row (label + arrow) -- */

.search-hero__result-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.search-hero__result-arrow {
    display: none;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.search-hero__result-arrow svg {
    display: block;
    width: 24px;
    height: 24px;
}

/* -- Category labels -- */

.search-hero__label {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 4px 8px;
    border-radius: 200px;
    font-weight: 700;
    font-size: 0.75rem;
    line-height: normal;
    white-space: nowrap;
    flex-shrink: 0;
    color: var(--color-text);
}

.search-hero__label-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* -- Popular tags (on focus) -- */

.search-hero__popular {
    display: none;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    width: 100%;
}

.search-hero__popular--visible {
    display: flex;
}

.search-hero__popular-title {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: normal;
    color: #000000;
    text-align: left;
}

.search-hero__popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    text-align: left;
}

/* -- No results -- */

.search-hero__no-results {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    width: 100%;
}

.search-hero__no-results--visible {
    display: flex;
}

.search-hero__results--visible + .search-hero__no-results--visible {
    padding-top: 0;
}

.search-hero__no-results-text {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: normal;
    color: var(--color-text);
}

.search-hero__no-results-send {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--color-primary);
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s;
}

.search-hero__no-results-send:hover {
    opacity: 0.7;
}

.search-hero__no-results-send svg {
    width: 24px;
    height: 24px;
}

/* -- Help link -- */

.search-hero__help-link {
    font-size: 0.75rem;
    line-height: normal;
    color: #008AC5;
    text-decoration: underline;
    transition: opacity 0.15s;
    position: relative;
    z-index: 1;
}

.search-hero__help-link:hover {
    opacity: 0.7;
}

/* ========================================
   Info Card
   ======================================== */

.info-card {
    padding: 0 100px;
}

.info-card__inner {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
}

.info-card__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 37px;
    width: 534px;
    flex-shrink: 0;
    padding: 68px 16px 68px 48px;
    background: var(--color-primary-light);
}

.info-card__text {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-card__title {
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.2;
    color: var(--color-text);
}

.info-card__desc {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: normal;
    color: var(--color-text);
}

.info-card__image {
    flex: 1;
    position: relative;
    min-height: 324px;
}

.info-card__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-card__image::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right, var(--color-primary-light) 1%, rgba(232, 246, 238, 0.83) 19%, rgba(232, 246, 238, 0) 51%);
}

/* ========================================
   Reminder Banner
   ======================================== */

.reminder-banner {
    background: #FFB200;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.reminder-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 122px;
    max-width: 1366px;
    margin: 0 auto;
    width: 100%;
}

.reminder-banner__text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 522px;
    max-width: 100%;
    flex-shrink: 0;
}

.reminder-banner__title {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.2;
    color: #000000;
}

.reminder-banner__subtitle {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: normal;
    color: #000000;
}

/* ========================================
   Single Odpady — override site-main centering
   ======================================== */

/* WordPress adds body class "single-odpady" for the odpady CPT */
.home .site-main,
.single-odpady .site-main {
    padding-top: 32px;
}

.single-waste_final .site-main {
    padding-top: 64px;
}

/* ========================================
   Result Card
   ======================================== */

.result-card {
    padding: 0 100px 32px;
}

.result-card__inner {
    display: flex;
    flex-direction: column;
    gap: 41px;
    align-items: center;
    overflow: hidden;
}

/* -- Row: name → arrow → bin -- */

.result-card__row {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
}

.result-card__name {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    max-width: 477px;
    padding: 16px 32px;
    border-radius: 12px;
    background: var(--color-primary);
    box-shadow: var(--shadow-card);
}

.result-card__name h1 {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.2;
    color: #FFFFFF;
    text-align: center;
}

.result-card__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.result-card__arrow svg {
    display: block;
}

.result-card__bin {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 0;
    max-width: 476px;
    padding: 16px 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

.result-card__bin-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    padding: 16px;
}

.result-card__bin-icon {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.result-card__bin-label {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.2;
    text-align: center;
}

/* -- Answer content -- */

.result-card__answer {
    width: 100%;
    max-width: 774px;
    padding: 24px 32px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    text-align: center;
}

.result-card__answer p {
    margin-bottom: 16px;
}

.result-card__answer p:last-child {
    margin-bottom: 0;
}

.result-card__answer .btn {
    margin-top: 8px;
}

/* -- Tips banner -- */

.result-card__tips {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.result-card__tips-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 774px;
    max-width: 100%;
    background: var(--color-primary-light);
    border-radius: 200px 12px 12px 200px;
    overflow: hidden;
}

.result-card__tips-icon {
    flex-shrink: 0;
}

.result-card__tips-icon svg {
    display: block;
}

.result-card__tips-content {
    flex: 1;
    padding: 16px 32px 16px 0;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--color-text);
}

.result-card__tips-content ul {
    list-style: disc;
    padding-left: 21px;
}

.result-card__tips-content li {
    margin-bottom: 8px;
}

.result-card__tips-content li:last-child {
    margin-bottom: 0;
}

.result-card__tips-content p {
    margin-bottom: 8px;
}

.result-card__tips-content p:last-child {
    margin-bottom: 0;
}

/* ========================================
   Waste Type Info (below result card)
   ======================================== */

.waste-type-info {
    padding: 0 100px 32px;
}

.waste-type-info__inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.waste-type-info__image {
    flex-shrink: 0;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    padding: 16px;
}

.waste-type-info__image img {
    display: block;
    max-width: 280px;
    height: auto;
}

.waste-type-info__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--color-text);
}

.waste-type-info__content h2,
.waste-type-info__content h3 {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: normal;
    color: var(--color-text);
    margin: 0;
}

.waste-type-info__content p {
    margin: 0;
}

.waste-type-info__content ul {
    list-style: disc;
    padding-left: 21px;
}

.waste-type-info__content ul ul {
    margin-top: 8px;
}

.waste-type-info__content li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.waste-type-info__content li:last-child {
    margin-bottom: 0;
}

.waste-type-info__content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.waste-type-info__content a:hover {
    text-decoration: none;
}

/* ========================================
   Responsive — Mobile (max-width: 1024px)
   ======================================== */

@media (max-width: 1024px) {

    /* -- Navbar mobile -- */

    .site-header {
        box-shadow: none;
    }

    .site-header::after {
        content: '';
        position: absolute;
        inset: 0;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
        z-index: 2;
        pointer-events: none;
    }

    .navbar {
        height: auto;
        padding: 4px 15px;
    }

    .navbar__logo-link {
        height: auto;
    }

    .navbar__logo-icon {
        height: 3.25rem;
    }

    .navbar__logo-divider {
        height: 2.625rem;
    }

    .navbar__menu-toggle {
        display: flex;
    }

    .navbar__right {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99;
        display: none;
        flex-direction: column;
        background: #FFFFFF;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .is-menu-open .navbar__right {
        display: flex;
    }

    .navbar__nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 0;
    }

    .navbar__nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 16px 15px;
        font-size: 1rem;
        line-height: 24px;
        border-bottom: 1px solid var(--color-border);
    }

    .navbar__nav-link--search::before {
        display: none;
    }

    .navbar__actions {
        margin-top: auto;
        background: #FFFFFF;
        padding: 16px 15px;
        width: 100%;
        gap: 32px;
    }

    body.is-menu-open {
        overflow: hidden;
    }

    .site-header.is-menu-open {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    .navbar__lang-toggle {
        border-radius: 0 0 4px 4px;
    }

    .navbar__lang-dropdown {
        top: auto;
        bottom: calc(100% - 1px);
        right: auto;
        left: 0;
        border-radius: 4px 4px 4px 0;
    }

    /* -- Footer mobile -- */

    .footer__inner {
        gap: 16px;
        align-items: flex-start;
        padding: 16px 16px 32px;
    }

    .footer__top {
        flex-direction: column;
        gap: 32px;
    }

    .footer__brand {
        width: 100%;
        gap: 32px;
    }

    .footer__brand-header {
        width: 100%;
    }

    .footer__social-label {
        font-weight: 500;
        font-size: 0.875rem;
    }

    .footer__columns {
        flex-direction: column;
        gap: 24px;
        width: 100%;
    }

    .footer__column {
        width: 100%;
        gap: 8px;
    }

    .footer__column-list li {
        padding: 10px 4px;
        min-height: 44px;
    }

    .footer__bottom {
        gap: 24px;
        align-items: flex-start;
    }

    .footer__legal {
        flex-wrap: wrap;
        gap: 24px 32px;
    }

    .footer__legal a {
        font-weight: 300;
    }

    /* -- Search hero mobile -- */

    .search-hero {
        padding: 24px 16px;
        gap: 24px;
    }

    .search-hero__title {
        font-size: 1.75rem;
    }

    .search-hero__result-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .search-hero__result-label-row {
        width: 100%;
    }

    .search-hero__result-arrow {
        display: block;
    }

    .search-hero__no-results {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    /* -- Info card mobile -- */

    .info-card {
        padding: 0 16px;
    }

    .info-card__inner {
        flex-direction: column-reverse;
    }

    .info-card__content {
        width: 100%;
        padding: 24px 16px 32px;
        gap: 24px;
    }

    .info-card__title {
        font-size: 1.5rem;
    }

    .info-card__image {
        min-height: 200px;
    }

    /* -- Reminder banner mobile -- */

    .reminder-banner__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 24px 16px;
        text-align: center;
    }

    .reminder-banner__text {
        width: 100%;
        text-align: center;
    }

    .reminder-banner .btn {
        align-self: center;
    }

    /* -- Result card mobile -- */

    .result-card {
        padding: 0 16px 24px;
    }

    .result-card__row {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .result-card__name {
        width: 100%;
    }

    .result-card__name h1 {
        font-size: 1.125rem;
    }

    .result-card__arrow {
        transform: rotate(90deg);
        margin: 15px 0;
    }

    .result-card__bin {
        width: 100%;
    }

    .result-card__bin-label {
        font-size: 1.125rem;
    }

    .result-card__tips-banner {
        width: 100%;
        flex-direction: column;
        border-radius: 8px;
        padding: 16px;
        gap: 16px;
    }

    .result-card__tips-icon img {
        width: 60px;
        height: 60px;
    }

    .result-card__tips-content {
        padding: 0;
    }

    .single-waste_final .site-main {
        padding-top: 32px;
    }

    /* -- Fallback content mobile -- */

    .page-content {
        padding: 32px 16px;
    }

    /* -- Waste type info mobile -- */

    .waste-type-info {
        padding: 0 16px 24px;
    }

    .waste-type-info__inner {
        flex-direction: column;
        gap: 24px;
    }

    .waste-type-info__image img {
        max-width: 100%;
    }

}

/* ========================================
   Guide Page — Hero
   ======================================== */

.guide-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 100px;
}

.guide-hero__image {
    width: 100%;
    height: 367px;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    background: #EEF2F3;
}

.guide-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.guide-hero__overlay {
    background: var(--color-primary);
    border-radius: 12px;
    padding: 32px 30px;
    max-width: 565px;
    box-shadow: var(--shadow-card);
    position: relative;
    z-index: 1;
    transform: translateY(-50%);
}

.guide-hero__title {
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.2;
    color: #FFFFFF;
    text-align: center;
}

/* ========================================
   Guide Page — Pamiętaj!
   ======================================== */

.guide-remember {
    padding: 0 100px 48px;
}

.guide-remember__inner {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
}

.guide-remember__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
    width: 534px;
    flex-shrink: 0;
    padding: 32px 16px 32px 48px;
    background: var(--color-primary-light);
}

.guide-remember__icon {
    width: 92px;
    height: 92px;
}

.guide-remember__text {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.guide-remember__heading {
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.2;
    color: var(--color-text);
}

.guide-remember__desc {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: normal;
    color: var(--color-text);
}

.guide-remember__rules {
    display: flex;
    flex-direction: column;
    gap: 24px;
    list-style: none;
    counter-reset: rules;
}

.guide-remember__rules li {
    display: flex;
    gap: 8px;
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--color-text);
    counter-increment: rules;
}

.guide-remember__rules li::before {
    content: counter(rules) ".";
    font-weight: 700;
    flex-shrink: 0;
}

.guide-remember__image {
    position: relative;
    flex: 1;
    min-height: 324px;
}

.guide-remember__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-remember__image::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right, var(--color-primary-light) 1%, rgba(232, 246, 238, 0.83) 19%, rgba(232, 246, 238, 0) 51%);
}

/* ========================================
   Guide Page — Najważniejsze zasady
   ======================================== */

.guide-rules {
    padding: 0 100px 48px;
}

.guide-rules__inner {
    display: flex;
    align-items: center;
    padding-right: 32px;
}

.guide-rules__card {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 565px;
    padding: 32px;
    background: var(--color-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    flex-shrink: 0;
    margin-right: -32px;
    position: relative;
    z-index: 2;
}

.guide-rules__title {
    font-weight: 700;
    font-size: 1.75rem;
    line-height: normal;
    color: #FFFFFF;
}

.guide-rules__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-left: 24px;
    list-style: decimal;
}

.guide-rules__list li {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.4;
    color: #FFFFFF;
}

.guide-rules__list li::marker {
    font-weight: 700;
}

.guide-rules__image {
    position: relative;
    flex: 1;
    min-height: 641px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    z-index: 1;
}

.guide-rules__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* ========================================
   Guide Page — Accordion
   ======================================== */

.guide-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 100px 64px;
}

.guide-card {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

/* -- Card header -- */

.guide-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px;
    cursor: pointer;
    text-align: left;
    background: none;
    border: none;
    font-family: inherit;
    transition: background 0.15s;
}

.guide-card__header:hover {
    background: #F9F9F9;
}

.guide-card__header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.guide-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    border-radius: 6px;
    flex-shrink: 0;
    padding: 6px;
}

.guide-card__icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.guide-card__title {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: normal;
    color: var(--color-text);
}

.guide-card__chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.guide-card--open .guide-card__chevron {
    transform: rotate(180deg);
}

/* -- Card separator -- */

.guide-card__separator {
    height: 1px;
    background: var(--color-border);
    margin: 0 16px 8px;
}

/* -- Card body -- */

.guide-card__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.guide-card__body-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0 16px 32px;
}

/* -- Card sections -- */

.guide-card__section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-card__section-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: normal;
    color: var(--color-text);
}

.guide-card__wysiwyg {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--color-text);
}

.guide-card__wysiwyg p {
    margin-bottom: 8px;
}

.guide-card__wysiwyg p:last-child {
    margin-bottom: 0;
}

.guide-card__wysiwyg ul {
    list-style: disc;
    padding-left: 21px;
    margin-bottom: 8px;
}

.guide-card__wysiwyg ul li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.guide-card__wysiwyg ul li:last-child {
    margin-bottom: 0;
}

.guide-card__wysiwyg ol {
    list-style: decimal;
    padding-left: 21px;
    margin-bottom: 8px;
}

.guide-card__wysiwyg a {
    color: var(--color-primary);
    text-decoration: underline;
}

.guide-card__wysiwyg a:hover {
    text-decoration: none;
}

/* -- Należy / Nie należy columns -- */

.guide-card__nalezy {
    display: flex;
    gap: 16px;
    align-items: stretch;
}

.guide-card__nalezy-col {
    flex: 1;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.guide-card__nalezy-col::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}

.guide-card__nalezy-col--yes {
    background: #F3F9F5;
}

.guide-card__nalezy-col--no {
    background: #FDF4F3;
}

.guide-card__nalezy-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    padding-right: 16px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: normal;
    color: var(--color-text);
}

.guide-card__nalezy-col--yes .guide-card__nalezy-badge {
    background: rgba(230, 243, 236, 0.2);
    box-shadow: 0 2px 10px rgba(10, 136, 67, 0.15);
}

.guide-card__nalezy-col--no .guide-card__nalezy-badge {
    background: rgba(252, 233, 231, 0.2);
    box-shadow: 0 2px 10px rgba(230, 35, 20, 0.15);
}

.guide-card__nalezy-badge img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.guide-card__nalezy-list {
    list-style: disc;
    padding-left: 21px;
    display: flex;
    flex-direction: column;
}

.guide-card__nalezy-list li {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: normal;
    color: var(--color-text);
    margin-bottom: 8px;
}

.guide-card__nalezy-list li:last-child {
    margin-bottom: 0;
}

/* ========================================
   Why Page — Benefits
   ======================================== */

.why-benefits {
    padding: 64px 100px;
    display: flex;
    justify-content: center;
}

.why-benefits__inner {
    width: 970px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding-bottom: 16px;
    border-radius: 12px;
}

.why-benefits__item {
    display: flex;
    align-items: center;
    gap: 24px;
    align-self: stretch;
}

.why-benefits__icon {
    width: 92px;
    height: 92px;
    flex-shrink: 0;
    background: var(--color-primary-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-benefits__text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.why-benefits__title {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--color-text);
}

.why-benefits__desc {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 19.6px;
    color: var(--color-text);
}

.why-benefits__divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    align-self: stretch;
}

.why-benefits__line {
    border: none;
    border-top: 1px solid var(--color-border);
    width: 100%;
}

.why-benefits__divider-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    text-align: center;
}

@media (max-width: 1024px) {

    .why-benefits {
        padding: 32px 16px;
    }

    .why-benefits__item {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
    }

    .why-benefits__text {
        align-items: flex-start;
    }

    .why-benefits__desc {
        width: 100%;
    }

}

@media (max-width: 1024px) {

    .guide-hero {
        padding: 0;
    }

    .guide-hero__image {
        height: 293px;
        border-radius: 0 0 8px 8px;
    }

    .guide-hero__overlay {
        width: 328px;
        max-width: calc(100% - 32px);
        padding: 32px 16px;
    }

    .guide-hero__title {
        font-size: 1.75rem;
    }

    .guide-remember {
        padding: 0 16px 24px;
    }

    .guide-remember__inner {
        flex-direction: column-reverse;
        border-radius: 8px;
    }

    .guide-remember__content {
        width: 100%;
        padding: 0 16px 32px;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .guide-remember__icon {
        width: 60px;
        height: 60px;
    }

    .guide-remember__text {
        gap: 8px;
        align-items: center;
    }

    .guide-remember__heading {
        font-size: 1.25rem;
    }

    .guide-remember__image {
        width: 100%;
        min-height: 192px;
    }

    .guide-remember__image::before {
        background: linear-gradient(to top, var(--color-primary-light), rgba(232, 246, 238, 0.83) 17%, rgba(232, 246, 238, 0) 62%);
    }

    .guide-rules {
        padding: 0 0 24px;
    }

    .guide-rules__inner {
        flex-direction: column-reverse;
        padding-right: 0;
    }

    .guide-rules__card {
        width: auto;
        padding: 16px;
        margin: -70px 16px 0;
        gap: 16px;
        border-radius: 8px;
    }

    .guide-rules__title {
        font-size: 1.25rem;
        text-align: center;
    }

    .guide-rules__image {
        width: 100%;
        flex: none;
        min-height: 293px;
        border-radius: 8px;
    }

    .guide-rules__image img {
        border-radius: 8px;
    }

    .guide-accordion {
        padding: 0 16px 32px;
        gap: 12px;
    }

    .guide-card__header {
        padding: 12px 16px;
    }

    .guide-card__title {
        font-size: 1rem;
    }

    .guide-card__body-inner {
        padding: 0 16px 24px;
        gap: 20px;
    }

    .guide-card__nalezy {
        flex-direction: column;
    }

}

/* ========================================
   Quiz – Banner
   ======================================== */

.quiz-banner {
    display: flex;
    justify-content: center;
    padding: 0 100px;
}

.quiz-banner__badge {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 32px 30px;
    background: var(--color-primary);
    border-bottom-right-radius: 12px;
    border-bottom-left-radius: 12px;
}

.quiz-banner__title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 48px;
    color: #FFFFFF;
    text-align: center;
}

/* ========================================
   Quiz – Start
   ======================================== */

.quiz-start {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 64px 16px;
}

.quiz-start__content {
    position: relative;
    max-width: 576px;
}

.quiz-start__marks {
    position: absolute;
    top: 80px;
    right: calc(50% - 346px);
}

.quiz-start__desc {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    text-align: center;
}

.quiz-start__btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 22px 8px;
    background: var(--color-primary);
    border: none;
    border-radius: 100px;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 21px;
    cursor: pointer;
}

.quiz-start__btn:hover {
    background: #097538;
}

/* ========================================
   Quiz – Area / Question
   ======================================== */

.quiz-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 100px;
    overflow: hidden;
}

.quiz-loading {
    text-align: center;
    font-size: 1rem;
    color: #6b6b6b;
}

.quiz-question {
    display: flex;
    gap: 64px;
    align-items: flex-start;
}

.quiz-question__left {
    flex: 0 0 477px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-question__counter {
    font-size: 0.875rem;
    line-height: 19.6px;
    color: var(--color-text);
}

.quiz-question__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 32px 100px 32px 32px;
    background: var(--color-primary);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.quiz-question__card-marks {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    filter: brightness(0) invert(1);
    opacity: 0.5;
}

.quiz-question__label {
    font-size: 0.875rem;
    line-height: 19.6px;
    color: #FFFFFF;
}

.quiz-question__item {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFFFFF;
}

.quiz-question__card-wrap {
    position: relative;
}

.quiz-question__card-wrap .quiz-question__card {
    position: relative;
    z-index: 2;
}

.quiz-question__feedback {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: -12px;
    padding: 24px 32px 16px 32px;
    background: #FFFFFF;
    box-shadow: 0 2px 13px rgba(230, 35, 20, 0.30);
    border-radius: 0 0 12px 12px;
}

.quiz-question__feedback-title {
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 24px;
    color: #E62314;
}

.quiz-question__feedback-text {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 19.6px;
    color: var(--color-text);
}

.quiz-question__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 32px;
}

.quiz-question__right-top {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-question__answers-label {
    font-size: 0.875rem;
    line-height: 19.6px;
    color: var(--color-text);
}

.quiz-question__answers {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quiz-answer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #FFFFFF;
    border: 2px solid transparent;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: border-color 0.15s;
}

.quiz-answer:hover:not(:disabled) {
    border-color: var(--color-primary);
}

.quiz-answer:disabled {
    cursor: default;
}

.quiz-answer--correct {
    background: #E6F3EC;
}

.quiz-answer--correct.quiz-answer--selected {
    border-color: var(--color-primary);
}

.quiz-answer--wrong {
    border-color: #E62314;
    background: #FDEEEE;
}

.quiz-answer__icon {
    width: 37px;
    height: 37px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px;
    border-radius: 6px;
}

.quiz-answer__label {
    flex: 1;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.quiz-answer__result-icon {
    flex-shrink: 0;
    margin-left: auto;
}

.quiz-question__next {
    display: inline-flex;
    gap: 8px;
}

.quiz-question__next:disabled {
    opacity: 0.5;
    cursor: default;
}

.quiz-question__next:disabled:hover {
    background: var(--color-primary);
}

/* ========================================
   Quiz – Result
   ======================================== */

.quiz-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
    padding: 32px 0 64px;
}

.quiz-result__score {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 16px 32px;
    background: #FFFFFF;
    box-shadow: 0 2px 13px rgba(28, 161, 88, 0.30);
    border-radius: 12px;
    font-size: 3.25rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.quiz-result__message {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.quiz-result__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.quiz-result__link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-primary);
    transition: opacity 0.15s;
}

.quiz-result__link:hover {
    opacity: 0.7;
}

/* ========================================
   Quiz – Slide transitions
   ======================================== */

.quiz-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes quizSlideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes quizSlideOutToLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.quiz-slide-in {
    animation: quizSlideInFromRight 0.25s ease-out;
}

.quiz-slide-out {
    animation: quizSlideOutToLeft 0.25s ease-in forwards;
}

@media (prefers-reduced-motion: reduce) {
    .quiz-slide-in,
    .quiz-slide-out {
        animation: none;
    }
}

/* ========================================
   Breakdown – Start
   ======================================== */

.breakdown-start {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 100px;
}

.breakdown-grid {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 16px;
    width: 100%;
}

.breakdown-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 575px;
    height: 88px;
    padding: 16px;
    background: #FFFFFF;
    box-shadow: var(--shadow-card);
    border-radius: 12px;
    text-decoration: none;
    transition: box-shadow 0.15s;
}

.breakdown-card:hover {
    box-shadow: 0 2px 13px rgba(28, 161, 88, 0.3);
}

.breakdown-card__left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.breakdown-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 37px;
    height: 37px;
    background: var(--color-primary-light);
    border-radius: 6px;
    flex-shrink: 0;
    padding: 6px;
}

.breakdown-card__icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.breakdown-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.breakdown-card__arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ========================================
   Breakdown – Single
   ======================================== */

.breakdown-single {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 64px 395px;
}

.breakdown-answers {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.breakdown-answer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: #FFFFFF;
    box-shadow: var(--shadow-card);
    border-radius: 12px;
    text-decoration: none;
    transition: box-shadow 0.15s;
}

.breakdown-answer:hover {
    box-shadow: 0 2px 13px rgba(28, 161, 88, 0.3);
}

.breakdown-answer__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

.breakdown-answer__arrow {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.breakdown-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.15s;
}

.breakdown-back:hover {
    opacity: 0.7;
}

.breakdown-back__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 41px;
    height: 41px;
    background: var(--color-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.breakdown-back__icon {
    transform: rotate(180deg);
    filter: brightness(0) invert(1);
}

.breakdown-back__label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
    line-height: 21px;
}

/* ========================================
   Responsive — Quiz (max-width: 1024px)
   ======================================== */

@media (max-width: 1024px) {

    .quiz-banner {
        padding: 0 16px;
    }

    .quiz-banner__badge {
        padding: 24px 20px;
    }

    .quiz-banner__title {
        font-size: 1.75rem;
        line-height: 36px;
    }

    .quiz-start {
        padding: 88px 16px 64px;
    }

    .quiz-start__marks {
        right: 16px;
        top: 8px;
        width: 66px;
        height: auto;
    }

    .quiz-start__desc {
        font-size: 1.125rem;
    }

    .quiz-area {
        padding: 32px 16px;
    }

    .quiz-question {
        flex-direction: column;
        gap: 32px;
    }

    .quiz-question__left,
    .quiz-question__right {
        flex: none;
        width: 100%;
    }

    .quiz-question__answers {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .quiz-answer__label {
        font-size: 1rem;
    }

    .quiz-result {
        padding: 24px 0 48px;
        gap: 24px;
    }

    .quiz-result__score {
        font-size: 2.5rem;
        padding: 12px 24px;
    }

    .quiz-result__message {
        font-size: 1.125rem;
    }

}

/* ========================================
   Responsive — Breakdown (max-width: 1024px)
   ======================================== */

@media (max-width: 1024px) {

    .breakdown-start {
        padding: 32px 16px;
    }

    .breakdown-card {
        width: 100%;
    }

    .breakdown-card__title {
        font-size: 1rem;
    }

    .breakdown-single {
        padding: 32px 16px;
    }

    .breakdown-answer__title {
        font-size: 1rem;
    }

}
