:root {
    --green-900: #173f2a;
    --green-800: #215437;
    --green-700: #2f6b46;
    --green-600: #3d7e54;
    --green-100: #e4f0e6;
    --green-50: #f1f7f2;
    --cream: #f7f5ef;
    --surface: #ffffff;
    --surface-muted: #f5f7f4;
    --text: #1c2820;
    --text-muted: #667169;
    --border: #dce5dd;
    --danger: #a54848;
    --danger-bg: #f8eaea;
    --shadow-sm: 0 6px 18px rgba(25, 58, 38, 0.08);
    --shadow-md: 0 16px 40px rgba(25, 58, 38, 0.13);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --container: 1180px;

    /* Zgodność ze starszymi arkuszami projektu. */
    --primary: var(--green-700);
    --primary-dark: var(--green-900);
    --secondary: var(--green-100);
    --background: var(--cream);
    --white: var(--surface);
    --shadow: var(--shadow-sm);
    --radius: var(--radius-md);
    --green: var(--green-700);
    --dark-green: var(--green-900);
    --light-green: var(--green-100);
    --bg: var(--cream);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 105px;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    font-family: "Inter", Arial, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
}

body,
button,
input,
select,
textarea {
    font-family: "Inter", Arial, sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(61, 126, 84, 0.35);
    outline-offset: 3px;
}

main {
    flex: 1;
}

/* =========================
   HEADER
   ========================= */

header {
    position: sticky;
    top: 0;
    /*
     * Nagłówek musi tworzyć warstwę wyższą niż treść podstron.
     * Z-index panelu mobilnego działa tylko wewnątrz warstwy rodzica,
     * dlatego sam nav-panel z wysoką wartością nie wystarczał.
     */
    z-index: 1500;
}

.navbar {
    min-height: 84px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 4%;
    color: #fff;
    background: rgba(23, 63, 42, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 28px rgba(10, 34, 20, 0.16);
    backdrop-filter: blur(12px);
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    flex-shrink: 0;
}

.logo {
    flex-shrink: 0;
    font-family: "Pacifico", cursive;
    font-size: clamp(1.65rem, 2.5vw, 2rem);
    line-height: 1;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}

.logo span {
    color: #bfe1c5;
}

.header-message {
    display: none;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
}

.header-message.active {
    display: flex;
}

.header-message-icon {
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    list-style: none;
}

.nav-menu li,
.dropdown,
.user-dropdown {
    position: relative;
}

.nav-menu a,
#contact-btn,
.user-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 13px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: transparent;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-menu a:hover,
#contact-btn:hover,
.user-button:hover {
    background: rgba(255, 255, 255, 0.11);
}

.nav-menu .products-btn {
    color: var(--green-900) !important;
    background: #dbeadd;
}

.nav-menu .products-btn:hover {
    background: #ecf5ed;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.search-box {
    width: min(245px, 20vw);
    height: 42px;
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: #fff;
    transition: box-shadow 0.2s ease, width 0.2s ease;
}

.search-box:focus-within {
    box-shadow: 0 0 0 4px rgba(191, 225, 197, 0.22);
}

.search-box input {
    width: 100%;
    min-width: 0;
    padding: 0 4px 0 16px;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    font-size: 0.88rem;
}

.search-box input::placeholder {
    color: #89938c;
}

.search-box button {
    width: 44px;
    flex-shrink: 0;
    border: 0;
    color: var(--green-800);
    background: transparent;
    cursor: pointer;
}

.header-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.09);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.header-icon:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.login-btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 17px;
    border-radius: 999px;
    color: var(--green-900);
    background: #dbeadd;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.login-btn:hover {
    background: #eff6ef;
    transform: translateY(-1px);
}

.dropdown-menu,
.user-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1200;
    min-width: 225px;
    padding: 8px;
    list-style: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    background: #fff;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.dropdown-menu::before,
.user-menu::before {
    content: "";
    position: absolute;
    top: -12px;
    right: 0;
    left: 0;
    height: 12px;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu,
.user-dropdown:hover .user-menu,
.user-dropdown:focus-within .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a,
.user-menu a {
    width: 100%;
    min-height: 42px;
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text);
    font-size: 0.9rem;
}

.dropdown-menu a:hover,
.user-menu a:hover {
    color: var(--green-800);
    background: var(--green-50);
}

/* =========================
   PRZYCISKI
   ========================= */

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 21px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary,
.button_1 {
    color: #fff;
    background: var(--green-700);
    box-shadow: 0 10px 22px rgba(47, 107, 70, 0.2);
}

.button-primary:hover,
.button_1:hover {
    background: var(--green-900);
    box-shadow: 0 13px 28px rgba(23, 63, 42, 0.25);
}

.button-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
}

.button-light {
    color: var(--green-900);
    background: #fff;
}

.button-light:hover {
    box-shadow: 0 12px 28px rgba(7, 31, 17, 0.2);
}

/* =========================
   STRONA GŁÓWNA
   ========================= */

.home-page {
    background: var(--cream);
}

.home-hero {
    position: relative;
    min-height: min(720px, calc(100vh - 84px));
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background-image: url("../../assets/main_image.png");
    background-size: cover;
    background-position: center 45%;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(12, 38, 23, 0.86) 0%, rgba(12, 38, 23, 0.63) 44%, rgba(12, 38, 23, 0.2) 78%),
        linear-gradient(0deg, rgba(12, 38, 23, 0.35), rgba(12, 38, 23, 0.05));
}

.home-hero::after {
    content: "";
    position: absolute;
    right: -160px;
    bottom: -210px;
    z-index: -1;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.02);
}

.home-hero-content {
    width: min(92%, var(--container));
    margin: 0 auto;
    padding: 92px 0 125px;
}

.home-eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green-700);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.home-eyebrow {
    margin-bottom: 18px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #eaf5ec;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.home-hero h1 {
    max-width: 760px;
    font-size: clamp(2.65rem, 6vw, 5.2rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.home-hero-content > p {
    max-width: 620px;
    margin-top: 23px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.8vw, 1.17rem);
    line-height: 1.75;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.home-hero-note {
    position: absolute;
    right: max(4%, calc((100vw - var(--container)) / 2));
    bottom: 38px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    background: rgba(18, 54, 31, 0.72);
    box-shadow: 0 14px 30px rgba(5, 24, 12, 0.18);
    backdrop-filter: blur(12px);
}

.home-hero-note > i {
    width: 39px;
    height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--green-900);
    background: #dceede;
}

.home-hero-note div {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.home-hero-note strong {
    font-size: 0.88rem;
}

.home-hero-note span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.76rem;
}

.home-benefits {
    position: relative;
    z-index: 3;
    width: min(92%, var(--container));
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: -36px auto 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--border);
    box-shadow: var(--shadow-md);
    margin-top: 90px;
}

.home-benefit {
    min-height: 135px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 26px;
    background: #fff;
}

.home-benefit-icon {
    width: 48px;
    height: 44px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: var(--green-700);
    background: var(--green-50);
    font-size: 1.15rem;
}

.home-benefit h2 {
    margin-bottom: 3px;
    font-size: 0.98rem;
    line-height: 1.35;
}

.home-benefit p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.home-section {
    width: min(92%, var(--container));
    margin: 0 auto;
    padding: 100px 0 0;
}

.home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
}

.home-section-heading.compact {
    align-items: center;
}

.home-section-heading h2 {
    max-width: 780px;
    margin-top: 7px;
    font-size: clamp(1.85rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.home-section-heading p {
    margin-top: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.section-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--green-700);
    color: var(--green-800);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    transition: gap 0.2s ease;
}

.section-link:hover {
    gap: 12px;
}

.home-products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 23px;
}

.home-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.home-product-card:hover {
    transform: translateY(-6px);
    border-color: #c9d8cc;
    box-shadow: var(--shadow-md);
}

.home-product-image {
    position: relative;
    height: 285px;
    display: block;
    overflow: hidden;
    background: var(--surface-muted);
}

.home-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.home-product-card:hover .home-product-image img {
    transform: scale(1.035);
}

.home-product-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: #91a196;
    background: linear-gradient(145deg, #edf3ee, #f7f8f5);
    font-size: 2.1rem;
}

.home-rank-badge,
.home-stock-badge {
    position: absolute;
    top: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    box-shadow: 0 7px 18px rgba(19, 44, 29, 0.12);
    backdrop-filter: blur(8px);
}

.home-rank-badge {
    left: 15px;
    min-width: 45px;
    height: 34px;
    padding: 0 11px;
    color: #fff;
    background: rgba(23, 63, 42, 0.9);
    font-size: 0.84rem;
    font-weight: 800;
}

.home-stock-badge {
    right: 15px;
    min-height: 31px;
    padding: 6px 10px;
    font-size: 0.7rem;
    font-weight: 800;
}

.home-stock-badge.available {
    color: var(--green-900);
    background: rgba(235, 247, 237, 0.92);
}

.home-stock-badge.unavailable {
    color: var(--danger);
    background: rgba(255, 241, 241, 0.93);
}

.home-product-content {
    padding: 21px;
}

.home-product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.home-product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.home-product-meta span:first-child {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.home-product-content h3 {
    font-size: 1.17rem;
    line-height: 1.35;
}

.home-product-content h3 a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-product-content h3 a:hover {
    color: var(--green-700);
}

.home-product-description {
    min-height: 50px;
    margin-top: 9px;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.home-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid #e9eeea;
}

.home-product-price {
    color: var(--green-800);
    font-size: 1.23rem;
    letter-spacing: -0.02em;
}

.home-product-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--green-900);
    background: var(--green-50);
    text-decoration: none;
    font-size: 0.76rem;
    font-weight: 800;
    transition: background-color 0.2s ease, gap 0.2s ease;
}

.home-product-button:hover {
    gap: 10px;
    background: var(--green-100);
}

.home-empty-state {
    min-height: 310px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 45px 25px;
    border: 1px dashed #c8d6ca;
    border-radius: var(--radius-lg);
    text-align: center;
    background: rgba(255, 255, 255, 0.55);
}

.home-empty-state > i {
    margin-bottom: 14px;
    color: var(--green-600);
    font-size: 2.2rem;
}

.home-empty-state h3 {
    font-size: 1.35rem;
}

.home-empty-state p {
    margin: 6px 0 20px;
    color: var(--text-muted);
}

.home-categories {
    padding-bottom: 100px;
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.home-category-card {
    min-height: 145px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.home-category-card:hover {
    transform: translateY(-3px);
    border-color: #bdcfbf;
    background: #fff;
}

.home-category-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--green-700);
    background: var(--green-50);
    font-size: 1.18rem;
}

.home-category-card h3 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.home-category-card p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.home-category-arrow {
    color: var(--green-600);
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}

.home-category-card:hover .home-category-arrow {
    transform: translateX(4px);
}

.home-cta {
    width: min(92%, var(--container));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 0 auto 100px;
    padding: 42px 46px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: #fff;
    background:
        radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.12), transparent 30%),
        var(--green-900);
    box-shadow: var(--shadow-md);
}

.section-kicker.light {
    color: #c9e5ce;
}

.home-cta h2 {
    max-width: 730px;
    margin-top: 7px;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.25;
    letter-spacing: -0.03em;
}

/* =========================
   STARSZE KOMPONENTY / INNE STRONY
   ========================= */

.mainpage {
    min-height: calc(100vh - 84px);
    display: grid;
    place-items: center;
    padding: 70px 5%;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(rgba(10, 35, 20, 0.35), rgba(10, 35, 20, 0.65)),
        url("../../assets/main_image.png") center / cover;
}

.mainpage-content {
    max-width: 850px;
}

.mainpage h1 {
    margin-bottom: 16px;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.08;
}

.mainpage p {
    font-size: 1.08rem;
}

.button_1 {
    display: inline-flex;
    margin-top: 28px;
    padding: 13px 25px;
    border-radius: 999px;
    text-decoration: none;
}

.products {
    width: min(92%, var(--container));
    margin: 0 auto;
    padding: 85px 0;
}

.products > h2 {
    margin-bottom: 35px;
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

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

.card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card > img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.card > h3 {
    padding: 16px 18px 7px;
}

.card > .price {
    padding: 0 18px 14px;
    color: var(--green-700);
    font-size: 1.3rem;
    font-weight: 800;
}

.card > button {
    width: calc(100% - 36px);
    margin: 0 18px 18px;
    padding: 12px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: var(--green-700);
    cursor: pointer;
}

/* =========================
   FOOTER
   ========================= */

.footer {
    margin-top: auto;
    color: rgba(255, 255, 255, 0.77);
    background: #102d1e;
}

.footer-container {
    width: min(92%, var(--container));
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 42px;
    margin: 0 auto;
    padding: 62px 0 48px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 14px;
    color: #fff;
    text-decoration: none;
    font-family: "Pacifico", cursive;
    font-size: 1.7rem;
}

.footer-logo span {
    color: #bfe1c5;
}

.footer-brand p {
    max-width: 380px;
    font-size: 0.87rem;
    line-height: 1.75;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
}

.footer-column h3 {
    margin-bottom: 7px;
    color: #fff;
    font-size: 0.9rem;
}

.footer-column a,
.footer-column p {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-size: 0.82rem;
}

.footer-column a:hover {
    color: #fff;
}

#contact-btn-footer {
    margin-top: 4px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    cursor: pointer;
}

.footer-bottom {
    padding: 19px 4%;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: rgba(255, 255, 255, 0.53);
    font-size: 0.75rem;
}

/* =========================
   MODAL KONTAKTOWY
   ========================= */

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 26, 15, 0.62);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
}

.contact-box {
    position: relative;
    width: min(100%, 470px);
    padding: 34px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: 0 24px 70px rgba(4, 22, 11, 0.32);
}

.contact-box h2 {
    margin-bottom: 7px;
    color: var(--green-900);
    font-size: 1.45rem;
}

.contact-box > p,
.contact-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.close-contact {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: var(--text);
    background: var(--surface-muted);
    font-size: 1.35rem;
    cursor: pointer;
}

/* =========================
   RESPONSYWNOŚĆ
   ========================= */

@media (max-width: 1180px) {
    .navbar {
        flex-wrap: wrap;
        gap: 12px 18px;
        padding-top: 13px;
        padding-bottom: 13px;
    }

    .brand-area {
        order: 1;
    }

    .nav-actions {
        order: 2;
        margin-left: auto;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        justify-content: center;
        margin: 0;
    }

    .search-box {
        width: 230px;
    }

    .home-hero {
        min-height: 650px;
    }
}

@media (max-width: 900px) {
    html {
        scroll-padding-top: 145px;
    }

    .header-message {
        display: none !important;
    }

    .home-benefits {
        grid-template-columns: 1fr;
    }

    .home-benefit {
        min-height: auto;
    }

    .home-products-grid,
    .home-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-product-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc(50% - 12px);
        justify-self: center;
    }

    .home-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .navbar {
        position: relative;
    }

    .brand-area {
        width: 100%;
        justify-content: center;
    }

    .nav-actions {
        width: 100%;
        justify-content: center;
        margin: 0;
    }

    .search-box {
        width: min(100%, 310px);
    }

    .nav-menu {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 2px 0 5px;
        scrollbar-width: none;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-menu a,
    #contact-btn,
    .user-button {
        white-space: nowrap;
    }

    .dropdown-menu,
    .user-menu {
        position: fixed;
        top: auto;
        right: 4%;
        left: 4%;
        min-width: 0;
    }

    .home-hero {
        min-height: 630px;
        background-position: 63% center;
    }

    .home-hero-overlay {
        background: linear-gradient(90deg, rgba(10, 34, 20, 0.88), rgba(10, 34, 20, 0.55));
    }

    .home-hero-content {
        padding: 78px 0 145px;
    }

    .home-hero-note {
        right: 4%;
        bottom: 24px;
        left: 4%;
        justify-content: center;
    }

    .home-section {
        padding-top: 78px;
    }

    .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .home-products-grid,
    .home-category-grid {
        grid-template-columns: 1fr;
    }

    .home-product-card:last-child:nth-child(odd) {
        grid-column: auto;
        width: 100%;
    }

    .home-product-image {
        height: 300px;
    }

    .home-categories {
        padding-bottom: 78px;
    }

    .home-cta {
        margin-bottom: 78px;
        padding: 32px 27px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 470px) {
    .nav-actions {
        flex-wrap: wrap;
    }

    .search-box {
        order: 3;
        width: 100%;
    }

    .home-hero h1 {
        font-size: 2.45rem;
    }

    .home-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-hero-actions .button {
        width: 100%;
    }

    .home-benefit {
        align-items: flex-start;
        padding: 22px;
    }

    .home-product-image {
        height: 260px;
    }

    .home-product-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-product-button {
        justify-content: center;
        width: 100%;
    }

    .home-category-card {
        grid-template-columns: auto 1fr;
    }

    .home-category-arrow {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* Licznik produktów przypięty do ikony koszyka. */
.header-icon {
    position: relative;
}


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

.about-page {
    background:
        radial-gradient(circle at top right, rgba(191, 225, 197, 0.35), transparent 34%),
        linear-gradient(180deg, #f8f6f1 0%, #f3f7f2 100%);
}

.about-section {
    width: min(92%, var(--container));
    margin: 0 auto;
    padding: 88px 0;
}

.about-section-intro {
    max-width: 760px;
    margin-bottom: 34px;
}

.about-section-intro h2 {
    margin-top: 12px;
    font-size: clamp(2rem, 3.8vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: var(--green-900);
}

.about-section-intro p {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 1rem;
}

.about-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(120deg, rgba(10, 33, 20, 0.95) 0%, rgba(19, 63, 42, 0.88) 45%, rgba(40, 88, 56, 0.86) 100%);
}

.about-hero::before,
.about-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.about-hero::before {
    top: -160px;
    right: -120px;
    width: 430px;
    height: 430px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 72%);
}

.about-hero::after {
    left: -130px;
    bottom: -170px;
    width: 370px;
    height: 370px;
    background: radial-gradient(circle, rgba(191, 225, 197, 0.18), transparent 70%);
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(0deg, rgba(6, 20, 12, 0.26), rgba(6, 20, 12, 0.18)),
        url("../../assets/main_image.png");
    background-size: cover;
    background-position: center center;
    opacity: 0.14;
    mix-blend-mode: screen;
}

.about-hero-container {
    position: relative;
    width: min(92%, var(--container));
    min-height: min(860px, calc(100vh - 84px));
    margin: 0 auto;
    padding: 96px 0 120px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    align-items: center;
    gap: 34px;
}

.about-hero-copy {
    max-width: 700px;
}

.about-hero-copy h1 {
    margin-top: 16px;
    font-size: clamp(2.8rem, 6.1vw, 5.3rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.about-hero-copy p {
    max-width: 620px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 1.9vw, 1.15rem);
}

.about-hero-actions {
    margin-top: 30px;
}

.about-hero-visual {
    position: relative;
    min-height: 520px;
}

.about-floating-card {
    position: absolute;
    width: min(100%, 255px);
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(3, 15, 9, 0.2);
    backdrop-filter: blur(14px);
    transition: transform 0.24s ease;
    animation: aboutFloat 7s ease-in-out infinite;
}

.about-floating-card strong {
    display: block;
    margin-top: 14px;
    font-size: 1.1rem;
}

.about-floating-card p {
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.94rem;
}

.about-floating-icon {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--green-900);
    background: linear-gradient(135deg, #ffffff, #d9eddd);
    box-shadow: 0 12px 26px rgba(255, 255, 255, 0.14);
    font-size: 1.2rem;
}

.about-floating-card.card-a {
    top: 30px;
    left: 8%;
}

.about-floating-card.card-b {
    top: 200px;
    right: 0;
    animation-delay: -2s;
}

.about-floating-card.card-c {
    bottom: 38px;
    left: 22%;
    animation-delay: -4s;
}

.about-scroll-indicator {
    position: absolute;
    right: max(4%, calc((100vw - var(--container)) / 2));
    bottom: 28px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.about-story-section {
    padding-top: 78px;
}

.about-story-grid,
.about-method-grid,
.about-stats-grid {
    display: grid;
    gap: 20px;
}

.about-story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-story-card,
.about-method-card,
.about-stat-card,
.about-progress-card,
.about-tutorial-panel,
.about-cta-box,
.about-stats-box {
    border: 1px solid rgba(33, 84, 55, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 40px rgba(23, 63, 42, 0.08);
    backdrop-filter: blur(8px);
}

.about-story-card {
    padding: 28px;
}

.about-story-card i {
    width: 54px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--green-700), var(--green-900));
    box-shadow: 0 12px 24px rgba(33, 84, 55, 0.22);
}

.about-story-card h3,
.about-method-card h3,
.about-progress-card h4,
.about-stat-card strong {
    color: var(--green-900);
}

.about-story-card h3 {
    margin-top: 18px;
    font-size: 1.22rem;
    line-height: 1.25;
}

.about-story-card p,
.about-method-card p,
.about-tutorial-panel p,
.about-stat-card span {
    margin-top: 10px;
    color: var(--text-muted);
}

.about-tutorial-shell {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.about-tutorial-nav {
    display: grid;
    gap: 12px;
}

.about-tutorial-tab {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid rgba(47, 107, 70, 0.1);
    border-radius: 22px;
    color: var(--green-900);
    background: rgba(255, 255, 255, 0.7);
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.about-tutorial-tab:hover,
.about-tutorial-tab.is-active {
    transform: translateY(-2px);
    background: #f2f8f3;
    box-shadow: 0 14px 28px rgba(23, 63, 42, 0.08);
}

.about-tutorial-tab-number,
.about-panel-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    min-height: 52px;
    padding: 10px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--green-700), var(--green-900));
    font-size: 0.92rem;
    font-weight: 800;
}

.about-panel-kicker {
    min-width: auto;
    min-height: auto;
    padding: 8px 12px;
    border-radius: 999px;
}

.about-tutorial-panel {
    padding: 28px;
}

.about-tutorial-panel-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
    gap: 22px;
    align-items: start;
}

.about-tutorial-panel-head h3 {
    margin-top: 16px;
    font-size: clamp(1.5rem, 2vw, 2.1rem);
    line-height: 1.1;
    color: var(--green-900);
}

.about-tutorial-panel-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 24px;
    margin-top: 24px;
}

.about-checklist {
    margin-top: 18px;
    list-style: none;
    display: grid;
    gap: 12px;
}

.about-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(47, 107, 70, 0.05);
}

.about-checklist i {
    margin-top: 4px;
    color: var(--green-700);
}

.about-progress-card {
    padding: 24px;
}

.about-progress-row + .about-progress-row {
    margin-top: 16px;
}

.about-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.94rem;
}

.about-progress-meta strong {
    color: var(--green-800);
}

.about-progress-bar {
    position: relative;
    height: 11px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e4efe6;
}

.about-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green-700), #7fba81);
}

.about-method-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.about-method-card {
    padding: 26px;
}

.about-method-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--green-900);
    background: linear-gradient(135deg, #e5f3e7, #ffffff);
    box-shadow: inset 0 0 0 1px rgba(47, 107, 70, 0.06);
    font-size: 1.25rem;
}

.about-stats-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
    gap: 28px;
    padding: 34px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(242, 248, 243, 0.88));
}

.about-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-stat-card {
    padding: 24px;
    text-align: center;
}

.about-stat-card strong {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
}

.about-stat-card span {
    display: block;
    margin-top: 10px;
}

.about-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
    background: linear-gradient(135deg, rgba(19, 63, 42, 0.95), rgba(35, 87, 58, 0.95));
    color: #fff;
}

.about-cta-box h2 {
    margin-top: 14px;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.08;
}

.about-cta-box p {
    max-width: 640px;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.82);
}

.about-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.about-cta-box .button-light {
    border: 1px solid rgba(255, 255, 255, 0.16);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes aboutFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

@media (max-width: 1100px) {
    .about-hero-container,
    .about-stats-box,
    .about-tutorial-shell,
    .about-tutorial-panel-grid,
    .about-method-grid {
        grid-template-columns: 1fr;
    }

    .about-story-grid,
    .about-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-hero-container {
        min-height: auto;
    }

    .about-hero-visual {
        min-height: 430px;
    }

    .about-tutorial-panel-head {
        grid-template-columns: 1fr;
    }

    .about-cta-box {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .about-section {
        padding: 68px 0;
    }

    .about-hero-container {
        padding: 78px 0 120px;
    }

    .about-story-grid,
    .about-stats-grid {
        grid-template-columns: 1fr;
    }

    .about-hero-visual {
        min-height: 360px;
    }

    .about-floating-card {
        width: 220px;
        padding: 18px;
    }

    .about-floating-card.card-a {
        left: 0;
    }

    .about-floating-card.card-b {
        top: 160px;
    }

    .about-floating-card.card-c {
        left: 12%;
        bottom: 0;
    }

    .about-scroll-indicator {
        right: 4%;
        left: 4%;
        justify-content: center;
    }

    .about-tutorial-panel,
    .about-progress-card,
    .about-stats-box,
    .about-cta-box {
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .about-hero-copy h1 {
        font-size: 2.5rem;
    }

    .about-hero-actions,
    .about-cta-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .about-hero-actions .button,
    .about-cta-actions .button {
        width: 100%;
    }

    .about-hero-visual {
        min-height: 320px;
    }

    .about-floating-card {
        position: relative;
        width: 100%;
        inset: auto !important;
        margin-top: 12px;
        animation: none;
    }

    .about-tutorial-tab {
        grid-template-columns: 1fr;
    }

    .about-tutorial-tab-number {
        min-height: auto;
    }
}

/* =========================
   ODŚWIEŻONE LOGO I MENU MOBILNE
   ========================= */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 24px rgba(7, 24, 14, 0.16);
}

.logo-image {
    display: block;
    width: auto;
    height: 50px;
    max-width: min(300px, 32vw);
}

.brand-area {
    gap: 14px;
}

.navbar {
    gap: 18px;
}

.nav-panel {
    min-width: 0;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-menu {
    margin-left: 0;
}

.nav-actions {
    margin-left: 0;
}

.nav-action-links,
.mobile-header-actions,
.nav-link-with-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-header-actions {
    display: none;
}

.nav-link-with-toggle {
    gap: 6px;
}

.submenu-toggle,
.menu-toggle {
    border: 0;
    cursor: pointer;
}

.submenu-toggle {
    width: 42px;
    height: 42px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.submenu-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
}

.menu-toggle {
    width: 46px;
    height: 46px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.user-button-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-logo-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 28px rgba(2, 10, 5, 0.18);
}

.footer-logo-image {
    display: block;
    width: auto;
    height: 58px;
    max-width: min(100%, 290px);
}

@media (min-width: 761px) {
    .desktop-cart-link {
        display: inline-flex;
    }

    .mobile-cart-link {
        display: none;
    }

    .dropdown.is-open .dropdown-menu,
    .user-dropdown.is-open .user-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {
    .logo-image {
        height: 44px;
        max-width: min(250px, 28vw);
    }

    .nav-panel {
        width: 100%;
        order: 3;
        flex-basis: 100%;
    }

    .nav-menu {
        justify-content: flex-start;
    }

    .nav-actions {
        margin-left: auto;
    }
}

@media (max-width: 900px) {
    .logo-image {
        height: 44px;
        max-width: min(220px, 32vw);
    }
}

@media (max-width: 760px) {
    html {
        scroll-padding-top: 82px;
    }

    body.nav-open {
        overflow: hidden;
    }

    .navbar {
        position: relative;
        min-height: 68px;
        flex-wrap: nowrap;
        align-items: center;
        padding: 12px 4%;
    }

    .brand-area {
        width: auto;
        flex: 1;
        justify-content: flex-start;
    }

    .logo {
        padding: 5px 8px;
        border-radius: 18px;
    }

    .logo-image {
        height: 32px;
        max-width: min(165px, 52vw);
    }

    .header-message {
        display: none !important;
    }

    .mobile-header-actions {
        position: relative;
        z-index: 1600;
        display: flex;
        flex-shrink: 0;
    }

    .mobile-cart-link {
        display: inline-flex;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-panel {
        position: absolute;
        top: calc(100% + 10px);
        right: 4%;
        left: 4%;
        z-index: 1300;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 18px;
        border: 1px solid rgba(255, 255, 255, 0.09);
        border-radius: 24px;
        background: rgba(23, 63, 42, 0.985);
        box-shadow: 0 24px 60px rgba(7, 24, 14, 0.26);
        backdrop-filter: blur(16px);
    }

    .nav-panel.is-open {
        display: flex;
    }

    .nav-menu,
    .nav-actions,
    .nav-action-links {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .nav-menu {
        gap: 8px;
        overflow: visible;
        padding: 0;
    }

    .nav-menu a,
    #contact-btn,
    .user-button,
    .login-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 13px 15px;
        border-radius: 16px;
        white-space: normal;
        background: rgba(255, 255, 255, 0.06);
    }

    .login-btn {
        color: #fff;
        background: rgba(191, 225, 197, 0.14);
    }

    .nav-menu .products-btn {
        flex: 1;
        justify-content: flex-start;
        color: #fff !important;
        background: rgba(191, 225, 197, 0.14);
    }

    .nav-link-with-toggle {
        width: 100%;
        align-items: stretch;
    }

    .submenu-toggle {
        display: inline-flex;
        flex-shrink: 0;
        color: #fff;
        background: rgba(255, 255, 255, 0.08);
    }

    .search-box {
        order: 1;
        width: 100%;
    }

    .nav-action-links {
        gap: 8px;
    }

    .desktop-cart-link {
        display: none;
    }

    .dropdown-menu,
    .user-menu {
        position: static;
        top: auto;
        right: auto;
        left: auto;
        min-width: 0;
        margin-top: 8px;
        padding: 8px;
        border-radius: 18px;
        color: var(--text);
        background: #ffffff;
        box-shadow: 0 16px 34px rgba(4, 17, 9, 0.16);
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .dropdown-menu::before,
    .user-menu::before {
        display: none;
    }

    .dropdown.is-open .dropdown-menu,
    .user-dropdown.is-open .user-menu {
        display: block;
    }

    .user-button {
        justify-content: space-between;
    }

    .user-menu a,
    .dropdown-menu a {
        color: var(--text);
        background: transparent;
    }

    .footer-logo-image {
        height: 50px;
        max-width: min(100%, 240px);
    }
}

@media (max-width: 480px) {
    .navbar {
        min-height: 64px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .logo-image {
        height: 30px;
        max-width: min(150px, 50vw);
    }

    .nav-panel {
        padding: 14px;
        border-radius: 20px;
    }

    .footer-logo-image {
        height: 42px;
        max-width: 210px;
    }
}

/* Korekta układu nawigacji desktopowej: linki przy wyszukiwarce po prawej. */
@media (min-width: 761px) {
    .nav-panel {
        justify-content: flex-end;
    }

    .nav-menu {
        margin-left: auto;
        flex-shrink: 0;
    }

    .nav-actions {
        flex-shrink: 0;
    }
}
