:root {
    --color-eco: #8eb057;
    --color-eco-dark: #6f8c42;
    --color-eco-light: #f5f8f0;
    --color-dark: #3a3f33;
    --color-text: #4a4a4a;
    --color-bg: #fdfdfc;
    --color-white: #ffffff;
    --font-logo: 'Kaushan Script', cursive;
    --font-body: 'Inter', sans-serif;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body[data-lang="pl"] .lang-en {
    display: none !important;
}

body[data-lang="en"] .lang-pl {
    display: none !important;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: clip;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

h1,
h2,
h3,
h4,
h5,
h6,
legend {
    font-family: var(--font-body);
    color: var(--color-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

h2.section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--color-eco);
    font-weight: normal;
    font-family: var(--font-body);
    letter-spacing: 1px;
    font-size: 1.2rem;
    margin-bottom: 3.5rem;
}

p {
    margin-bottom: 1rem;
}

.main-header {
    background: var(--color-bg);
    text-align: center;
    padding: 2rem 0 1.5rem;
}

.logo-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
    /* Added for absolute logo positioning */
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.main-logo {
    max-width: 120px;
    height: auto;
}

.desktop-logo {
    display: block;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.mobile-logo {
    display: none;
    max-width: 150px;
    margin-bottom: 0.5rem;
}

.logo-title {
    font-family: var(--font-logo);
    font-size: 4rem;
    margin-bottom: 0;
    line-height: 1;
    font-weight: normal;
}

.logo-desc {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--color-text);
    letter-spacing: 1px;
    margin-top: 5px;
    font-weight: 400;
}

nav {
    background: rgba(58, 63, 51, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0 auto;
    align-items: stretch;
}

.nav-list li {
    display: flex;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 1.2rem;
    color: var(--color-white);
    font-size: 1.1rem;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-eco);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link:hover {
    color: var(--color-eco);
}

.lang-switcher {
    display: flex;
    gap: 10px;
    padding: 0 1.5rem;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 1px solid #666;
    color: #ccc;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: sans-serif;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--color-eco);
    color: white;
    border-color: var(--color-eco);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem 0;
    align-items: center;
    gap: 10px;
}

.mobile-menu-text {
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.hero {
    background: linear-gradient(135deg, var(--color-eco-light) 0%, #ffffff 100%);
    padding: 6rem 0 7rem;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '\f0c4';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -50px;
    bottom: -50px;
    font-size: 25rem;
    color: rgba(142, 176, 87, 0.12);
    z-index: 0;
    transform: rotate(-15deg);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 4.5rem;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 3rem;
    font-family: var(--font-body);
}

.btn {
    display: inline-block;
    background: var(--color-eco);
    color: var(--color-white);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.4rem;
    font-family: var(--font-body);
    transition: var(--transition);
    border: 2px solid var(--color-eco);
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(142, 176, 87, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero-specific smaller buttons */
.hero-btn-primary {
    padding: 0.9rem 2.2rem;
    font-size: 1.05rem;
    background: var(--color-eco);
    color: white;
    border: 2px solid var(--color-eco);
    box-shadow: 0 4px 12px rgba(142, 176, 87, 0.4);
}

.hero-btn-secondary {
    padding: 0.7rem 1.6rem;
    font-size: 0.95rem;
    background: transparent;
    color: var(--color-eco-dark);
    border: 2px solid var(--color-eco-dark);
    box-shadow: none;
}

.hero-btn-secondary:hover {
    background: var(--color-eco-dark);
    color: white;
}

/* Order section button - smaller */
.btn-order-section {
    padding: 0.8rem 2.2rem;
    font-size: 1.1rem;
}

.btn:hover {
    background: var(--color-eco);
    border-color: var(--color-eco);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(142, 176, 87, 0.4);
    color: var(--color-white);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.9;
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.sticky-cta {
    background: var(--color-eco);
    color: white;
    width: auto;
    height: auto;
    min-width: 65px;
    padding: 10px 16px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: bold;
    border: 2px solid white;
    transition: var(--transition);
    cursor: pointer;
    animation: pulse 2s infinite;
}

.sticky-cta i {
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.sticky-cta:hover {
    background: var(--color-dark);
    color: var(--color-eco);
    transform: scale(1.1);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(142, 176, 87, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(142, 176, 87, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(142, 176, 87, 0);
    }
}

section.page-section {
    padding: 6rem 0;
}

.bg-white-section {
    background: var(--color-white);
    box-shadow: var(--shadow);
    border-radius: 15px;
    padding: 5rem 4rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.feature-box {
    background: var(--color-white);
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid #f0f0f0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--color-eco);
    z-index: 2;
}

.feature-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: #edf3e6;
    z-index: 0;
    transition: all 0.3s ease;
}

.feature-box:hover::after {
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* All direct children of feature-box must sit above the ::after background */
.feature-box .icon-circle,
.feature-box h3,
.feature-box p {
    position: relative;
    z-index: 3;
}

.icon-circle {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: var(--color-bg);
    color: var(--color-eco);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.8rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-box h3 {
    font-size: 2.2rem;
}

.upcycling-section {
    background: var(--color-dark);
    color: var(--color-white);
    text-align: center;
    border-radius: 20px;
    padding: 4rem 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.upcycling-section h2 {
    color: var(--color-eco);
    font-size: 3rem;
}

.upcycling-section p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #e0e0e0;
}

.upcycling-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 3rem;
    color: var(--color-eco);
    margin-bottom: 1rem;
}

.stat-item h4 {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: white;
    margin: 0;
}

.ba-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* 3-column BA grid */
.ba-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
    gap: 1.5rem;
}

/* Halved aspect ratio for BA cards in 3-col grid */
.ba-grid-3 .ba-slider-container {
    aspect-ratio: 3 / 4;
}

/* Placeholder for empty BA slot */
.ba-placeholder-slot {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ba-add-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: #bbb;
    font-size: 1rem;
    padding: 2rem;
    text-align: center;
}

.ba-add-placeholder i {
    font-size: 2.5rem;
    color: #ccc;
}

.ba-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
}

.ba-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eee;
}

.ba-slider-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-img-after {
    z-index: 1;
}

.ba-img-before {
    z-index: 2;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.ba-slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 10;
    cursor: ew-resize;
    margin: 0;
}

.ba-slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background: white;
    z-index: 5;
    pointer-events: none;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.ba-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: white;
    color: var(--color-eco);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 6;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    font-size: 1.2rem;
}

.ba-label-left,
.ba-label-right {
    position: absolute;
    bottom: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.85rem;
    font-family: sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
    z-index: 4;
    pointer-events: none;
}

.ba-label-left {
    left: 15px;
}

.ba-label-right {
    right: 15px;
}

.ba-desc {
    padding: 1.5rem;
}

.ba-desc h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* --- WIDEO / ROLKI --- */
.video-grid {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 1.5rem;
    scroll-snap-type: x mandatory;
    margin: 0 auto;
    max-width: 1000px;
    align-items: center;
}

.video-grid::-webkit-scrollbar {
    height: 8px;
}

.video-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.video-grid::-webkit-scrollbar-thumb {
    background: var(--color-eco);
    border-radius: 10px;
}

.video-card {
    flex: 0 0 300px;
    scroll-snap-align: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #000;
    position: relative;
    aspect-ratio: 9/16;
    border: 4px solid white;
}

.video-card.horizontal {
    flex: 0 0 500px;
    aspect-ratio: 16/9;
}

.video-card iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
}

.video-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--color-eco-dark), var(--color-eco));
    color: white;
    text-align: center;
    padding: 20px;
}

.video-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--color-eco-light);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--color-eco);
    position: relative;
}

.review-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: rgba(142, 176, 87, 0.2);
}

.stars {
    color: #f39c12;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #444;
}

.review-author {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--color-dark);
}

.cennik-container {
    background: url('https://www.transparenttextures.com/patterns/cream-paper.png');
    background-color: #f7f3ea;
    padding: 5rem 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cennik-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

/* Single-row 4-column layout for Cennik */
.cennik-grid-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.cennik-box-header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid var(--color-dark);
    padding-bottom: 10px;
    margin-bottom: 1.5rem;
}

.cennik-box-header h3 {
    font-size: 1.4rem;
    margin: 0;
}

.cennik-icon {
    font-size: 2rem;
    color: var(--color-eco-dark);
}

.cennik-list {
    list-style: none;
}

.cennik-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.2rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 5px;
}

.cennik-name {
    color: var(--color-text);
}

.cennik-price {
    font-weight: 600;
    color: var(--color-dark);
    font-size: 1.1rem;
    white-space: nowrap;
    margin-left: 10px;
    font-family: var(--font-body);
}

/* Social bar under videos */
.social-bar-videos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 1.2rem 2rem;
    background: var(--color-eco-light);
    border-radius: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.social-bar-text {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--color-dark);
    letter-spacing: 0.5px;
}

.social-bar-buttons {
    display: flex;
    gap: 0.8rem;
}

.social-bar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    color: white;
    transition: var(--transition);
    text-decoration: none;
}

.youtube-bar-btn {
    background: #ff0000;
}

.youtube-bar-btn:hover {
    background: #cc0000;
    transform: translateY(-2px);
    color: white;
}

.facebook-bar-btn {
    background: #1877f2;
}

.facebook-bar-btn:hover {
    background: #0d5bc7;
    transform: translateY(-2px);
    color: white;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    position: relative;
}

.step-number {
    background: var(--color-eco);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 2.2rem;
    box-shadow: 0 5px 15px rgba(142, 176, 87, 0.4);
    z-index: 2;
}

.order-form-container {
    background: var(--color-white);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border-top: 5px solid var(--color-eco);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: var(--color-dark);
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #fafafa;
}

.form-control:focus {
    border-color: var(--color-eco);
    outline: none;
    box-shadow: 0 0 0 3px rgba(142, 176, 87, 0.2);
    background-color: var(--color-white);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.hidden-field {
    display: none !important;
}

fieldset {
    border: 1px solid #eee;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    background: #fff;
}

legend {
    font-size: 2.2rem;
    padding: 0 15px;
    background: white;
}

/* KOSZYK I KALKULATOR */
.cart-area {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #eee;
}

.cart-header {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.8rem;
    color: var(--color-eco-dark);
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.cart-empty {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 1rem;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--color-eco);
    margin-bottom: 0.8rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: bold;
    font-size: 1rem;
    color: #fff;
}

.cart-item-desc {
    font-size: 0.85rem;
    color: #bbb;
    margin-top: 0.2rem;
}

.cart-item-price {
    font-family: var(--font-body);
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--color-eco-light);
    margin: 0 1rem;
    white-space: nowrap;
}

.cart-item-remove {
    background: #ff4d4d;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.cart-item-remove:hover {
    background: #cc0000;
    transform: scale(1.1);
}

.add-to-cart-btn {
    background: var(--color-dark);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.add-to-cart-btn:hover {
    background: var(--color-eco);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(142, 176, 87, 0.3);
}

.live-price-wrapper {
    background: var(--color-eco-light);
    border: 1px solid rgba(142, 176, 87, 0.3);
    box-shadow: 0 4px 15px rgba(142, 176, 87, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
    text-align: center;
    transition: var(--transition);
}

.price-details {
    font-size: 1.2rem;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.price-amount-display {
    font-family: var(--font-body);
    font-weight: bold;
    font-size: 2.5rem;
    color: var(--color-eco-dark);
    display: block;
    margin-top: 0.5rem;
    line-height: 1;
}

.price-note {
    font-size: 0.95rem;
    color: #666;
    margin-top: 1rem;
}

footer {
    background: var(--color-dark);
    color: #ccc;
    padding: 4rem 0 2rem;
    border-top: 5px solid var(--color-eco);
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col h3 {
    color: var(--color-white);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.footer-col h2.font-logo {
    font-family: var(--font-logo);
    font-weight: normal;
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.footer-links a:hover {
    color: var(--color-eco);
    padding-left: 5px;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--color-eco);
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    list-style: none;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: #555;
    border-radius: 50%;
    color: var(--color-white);
    transition: var(--transition);
    font-family: sans-serif;
}

.social-links a:hover {
    background: var(--color-eco);
    transform: scale(1.1);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a4f44;
    font-size: 1rem;
    color: #888;
}

.success-message {
    text-align: center;
    padding: 4rem;
    background: var(--color-eco-light);
    border-radius: 15px;
    border: 1px solid rgba(142, 176, 87, 0.3);
    box-shadow: 0 10px 30px rgba(142, 176, 87, 0.1);
}

.success-message h3 {
    font-size: 3.5rem;
    color: var(--color-eco-dark);
    margin-bottom: 1rem;
}

.success-message p {
    font-size: 1.4rem;
}

/* --- BŁĘDY FORMULARZA (WALIDACJA) --- */
.input-error {
    border: 2px solid #e74c3c !important;
    background-color: #fdf2f2 !important;
    box-shadow: 0 0 8px rgba(231, 76, 60, 0.3) !important;
    transition: all 0.3s ease;
}

[data-theme="dark"] .input-error {
    background-color: rgba(231, 76, 60, 0.15) !important;
    color: #ffdddd !important;
}

.consent-group.input-error {
    border-radius: 8px;
    padding: 10px;
}

.error-text {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
    font-weight: 600;
}

[data-theme="dark"] .error-text {
    color: #ff6b6b;
}

/* --- ZWYKŁA GALERIA ZDJĘĆ --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: #f9f9f9;
    padding: 5px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.gallery-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* --- LIGHTBOX (Powiększanie zdjęć) --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--color-eco);
    text-decoration: none;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

/* RWD */
@media (max-width: 992px) {
    .cennik-grid-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .ba-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .logo-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .desktop-logo {
        display: none;
    }

    .mobile-logo {
        display: block;
        margin: 0 auto;
    }

    .nav-container {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .lang-switcher {
        display: flex;
        width: auto;
        padding: 1rem 0;
        border: none;
        order: 1;
    }

    .mobile-menu-btn {
        display: flex;
        width: auto;
        padding: 1rem 0;
        order: 2;
        gap: 10px;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #2a2e25;
        order: 3;
    }

    .nav-list.open {
        display: flex;
    }

    .nav-link {
        text-align: center;
        border-top: 1px solid #3a3f33;
        padding: 1rem;
    }

    .hero {
        padding: 4rem 0 5rem;
    }

    .cennik-grid-row {
        grid-template-columns: 1fr 1fr;
    }

    .ba-grid-3 {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 3.2rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .bg-white-section,
    .cennik-container,
    .order-form-container {
        padding: 2.5rem 1.5rem;
    }

    h2.section-title {
        font-size: 2.8rem;
    }

    .sticky-cta {
        min-width: 55px;
        padding: 8px 12px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .cart-item-price {
        margin: 0;
    }

    .cart-item-remove {
        align-self: flex-end;
    }

    .video-card.horizontal {
        flex: 0 0 85vw;
    }
}

/* =========================================================================
   ETAP 1: TRYB CIEMNY (DARK MODE) ORAZ WHATSAPP - POPRAWIONY
   ========================================================================= */

/* Paleta kolorów dla trybu ciemnego */
[data-theme="dark"] {
    --color-bg: #1a1c18;
    --color-text: #d4d4d4;
    --color-white: #262922;
    --color-dark: #f5f8f0;
    --color-eco-light: #2a3320;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* --- NAPRAWA MENU, STOPKI I UPCYCLINGU --- */
/* Wymuszamy na nich ciemne tło, by nie reagowały na jasne zmienne tekstu */
[data-theme="dark"] nav {
    background-color: rgba(17, 18, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] footer,
[data-theme="dark"] .upcycling-section {
    background-color: #11120f;
    color: #e0e0e0;
}

[data-theme="dark"] footer h3,
[data-theme="dark"] footer h2.font-logo {
    color: #f5f8f0;
}

/* Jasny kolor dla przycisków menu w trybie ciemnym */
[data-theme="dark"] .nav-link,
[data-theme="dark"] .mobile-menu-btn {
    color: #f5f8f0;
}

/* --- NAPRAWA FORMULARZA --- */
/* Nadpisujemy sztywne "białe" kolory przypisane do ramek i koszyka */
[data-theme="dark"] fieldset {
    background-color: #1a1c18;
    border-color: #3a3f33;
}

[data-theme="dark"] legend {
    background-color: #1a1c18;
    color: var(--color-eco);
}

[data-theme="dark"] .form-control {
    background-color: #11120f;
    color: #f5f8f0;
    border-color: #3a3f33;
}

[data-theme="dark"] .form-control:focus {
    background-color: #262922;
}

[data-theme="dark"] .cart-area {
    background-color: #11120f;
    border-color: #3a3f33;
}

/* --- INNE DROBNE POPRAWKI --- */
[data-theme="dark"] .cennik-container {
    background-color: #262922;
    background-blend-mode: multiply;
    border-color: #3a3f33;
}

[data-theme="dark"] .feature-box,
[data-theme="dark"] .cart-item {
    border-color: #3a3f33;
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #2a3320 0%, #1a1c18 100%);
}

[data-theme="dark"] .gallery-img {
    background-color: #1a1c18;
    border-color: #3a3f33;
}

[data-theme="dark"] .video-card {
    border-color: #3a3f33;
}

/* --- TRYB CIEMNY: KARTY PRZED / PO --- */
[data-theme="dark"] .ba-card {
    background: #262922;
    border-color: #3a3f33;
}

[data-theme="dark"] .ba-desc {
    background: #262922;
}

[data-theme="dark"] .ba-desc h4,
[data-theme="dark"] .ba-desc p {
    color: #d4d4d4;
}

[data-theme="dark"] .ba-placeholder-slot {
    background: #1a1c18;
}

[data-theme="dark"] .ba-add-placeholder {
    color: #555;
}

[data-theme="dark"] .ba-add-placeholder i {
    color: #444;
}

/* --- TRYB CIEMNY: ŚLEDŹ ZAMÓWIENIE --- */
[data-theme="dark"] #track-view {
    background: #262922 !important;
    color: #d4d4d4;
}

[data-theme="dark"] #track-view p {
    color: #b0b0b0;
}

[data-theme="dark"] #status-result {
    background: #1a1c18 !important;
    border-color: var(--color-eco) !important;
}

[data-theme="dark"] #status-text {
    color: #f5f8f0 !important;
}

/* Pasek "Więcej z Kilis" w ciemnym motywie */
[data-theme="dark"] .social-bar-videos {
    background: #2a3320;
}

[data-theme="dark"] .social-bar-text {
    color: #d4d4d4;
}

/* Wygląd przycisku Trybu Ciemnego */
.theme-toggle {
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.theme-toggle:hover {
    color: var(--color-eco);
}

/* Pływający Przycisk WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-btn:hover {
    transform: scale(1.1) translateY(-5px);
    background-color: #1ebe57;
    color: white;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .whatsapp-btn {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
        bottom: 20px;
        left: 20px;
    }
}


/* =========================================================================
   ETAP 2: STYLE DLA FAQ I POMIARÓW
   ========================================================================= */

/* --- FAQ (Akordeon) --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-white);
    transition: var(--transition);
}

[data-theme="dark"] .faq-item {
    border-color: #3a3f33;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    font-family: var(--font-body);
    font-weight: bold;
    color: var(--color-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--color-eco);
}

.faq-question i {
    color: var(--color-eco);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
    background: var(--color-bg);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-height: 500px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* --- ORDER STATUS PROGRESS BAR --- */
.status-progress {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 3rem 0 2rem 0;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.status-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #e0e0e0;
    z-index: 1;
}

[data-theme="dark"] .status-progress::before {
    background: #333;
}

.status-progress .step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    min-width: 80px;
}

.status-progress .circle {
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 10px auto;
    color: #fff;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transition);
}

[data-theme="dark"] .status-progress .circle {
    background: #333;
    color: #888;
}

.status-progress .step.active .circle {
    background: var(--color-eco);
    color: #fff;
    box-shadow: 0 0 10px rgba(165, 209, 98, 0.5);
}

.status-progress .label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #999;
}

.status-progress .step.active .label {
    color: var(--color-dark);
}

[data-theme="dark"] .status-progress .step.active .label {
    color: #f5f8f0;
}

/* --- JAK SIĘ ZMIERZYĆ --- */
.measurement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.measurement-card {
    background: var(--color-eco-light);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid var(--color-eco);
}

[data-theme="dark"] .measurement-card {
    background: #1a1c18;
    border-color: var(--color-eco-dark);
    border-top: 1px solid #3a3f33;
    border-right: 1px solid #3a3f33;
    border-bottom: 1px solid #3a3f33;
}

.measurement-card h4 {
    font-size: 1.5rem;
    color: var(--color-eco-dark);
    margin-bottom: 1rem;
}

[data-theme="dark"] .measurement-card h4 {
    color: var(--color-eco);
}

.measurement-card ul {
    padding-left: 1.5rem;
}

.measurement-card li {
    margin-bottom: 0.5rem;
}

/* --- NOWE STYLE DLA AKORDEONU I KOSZYKA --- */

.form-toggle-pill .pill-btn.active {
    background: white !important;
    color: var(--color-eco) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.form-toggle-pill .pill-btn:not(.active):hover {
    color: var(--color-dark) !important;
}

.accordion-item .acc-header:hover {
    background: #f1f1f1 !important;
}

.accordion-item.active .acc-badge {
    background: var(--color-eco) !important;
    color: white !important;
}

/* =========================================================================
   KOSZYK - UNIFIED (desktop i mobile tak samo: slide-up od dołu)
   ========================================================================= */
.sticky-cart-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 20px 20px 0 0;
    z-index: 10000;
    transform: translateY(100%);
    /* ukryty pod ekranem */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 85vh;
    overflow-y: auto;
}

.sticky-cart-sidebar.open {
    transform: translateY(0);
}

/* Przycisk zamknij zawsze widoczny w panelu */
.mobile-cart-close {
    display: block;
}

@media (max-width: 900px) {
    #order-view {
        flex-direction: column;
        align-items: stretch !important;
    }

    /* Formularz rozciąga się na pełną szerokość */
    .accordion-form {
        width: 100%;
    }
}

/* --- ACCORDION FORM STYLES --- */
.accordion-item {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.acc-header {
    padding: 1rem 1.5rem;
    background: #fafafa;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #eee;
}

.acc-content {
    padding: 1.5rem;
}

[data-theme="dark"] .accordion-item {
    background: #11120f;
    border-color: #3a3f33;
}

[data-theme="dark"] .acc-header {
    background: #1a1c18;
    border-color: #3a3f33;
}

[data-theme="dark"] .acc-content {
    background: #11120f;
}

[data-theme="dark"] .acc-header h3 {
    color: #f5f8f0;
}

[data-theme="dark"] .cart-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: #444;
}

[data-theme="dark"] .cart-item-title {
    color: #f5f8f0;
}

[data-theme="dark"] .cart-item-desc {
    color: #aaa;
}


.feature-box>* {
    position: relative;
    z-index: 1;
}

[data-theme="dark"] #express-service-box {
    background-color: #2a2512 !important;
    border-left-color: #d19543 !important;
}

[data-theme="dark"] #express-service-box label,
[data-theme="dark"] #express-service-box p,
[data-theme="dark"] #express-service-box span {
    color: #e6c587 !important;
}

[data-theme="dark"] .cart-item-price {
    color: #a5d162 !important;
}

/* --- STICKY BUTTONS WRAPPER --- */
.sticky-buttons-wrapper {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 9999;
}

/* Na desktop wrapper ma większy margines od krawędzi */
@media (min-width: 901px) {
    .sticky-buttons-wrapper {
        right: 30px;
        bottom: 30px;
    }
}

/* Na mobile wrapper jest bliżej krawędzi */
@media (max-width: 900px) {
    .sticky-buttons-wrapper {
        right: 15px;
        bottom: 20px;
    }
}

/* --- MOBILE CART ICON BUTTON (nad przyciskiem Zamów) --- */
.mobile-cart-icon-btn {
    display: none;
    /* ukryty domyślnie, pokazuje się gdy koszyk nie pusty */
    width: 52px;
    height: 52px;
    background: var(--color-eco);
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    position: relative;
    font-size: 1.3rem;
    animation: pulseCart 2s infinite;
}

.mobile-cart-icon-btn:active {
    transform: scale(0.9);
}

@keyframes pulseCart {
    0% {
        box-shadow: 0 0 0 0 rgba(142, 176, 87, 0.7);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(142, 176, 87, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(142, 176, 87, 0);
    }
}

#mobile-cart-icon-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff4d4d;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 20px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

/* --- STARY MOBILE CART BAR (zostaje ukryty) --- */
.mobile-cart-bar {
    display: none !important;
}

.mobile-cart-bar .lang-pl,
.mobile-cart-bar .lang-en,
.mobile-cart-bar #mobile-cart-total,
.mobile-cart-bar i.fa-chevron-up {
    display: none;
}

.mobile-cart-close {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2;
}