/* Zmienne - kolory marki Dotyk Łady */
:root {
    --color-bg: #f5f2eb;
    --color-bg-dark: #2d241e;
    --color-text: #3c322b;
    --color-text-light: #f5f2eb;
    --color-accent: #4a5e42;
    --color-accent-hover: #3b4b35;
    --color-gold: #c39b56;
}

/* Reset i płynne przewijanie */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.back-home-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(35, 30, 25, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(35, 30, 25, 0.16);
}

h1, h2, h3, .logo-text {
    font-family: 'Playfair Display', serif;
}

.logo-text {
    font-size: 1.8rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
}

/* Pływająca Nawigacja (Menu) */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(238, 233, 225, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 6px 30px rgba(35,30,25,0.06);
}

#navbar.scrolled {
    padding: 10px 50px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--color-gold);
}

.nav-btn {
    background: var(--color-gold);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 20px;
}

/* Sekcje */
.section-padding {
    padding: 100px 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: 50px;
}

.text-center { text-align: center; margin-bottom: 40px;}
.light-text { color: var(--color-gold); }
.bg-dark { background-color: var(--color-bg-dark); color: var(--color-text-light); }

/* Przyciski podstawowe */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent) 0%, #3f503f 100%);
    color: #fff;
    padding: 14px 34px;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    text-align: center;
    box-shadow: 0 8px 20px rgba(74,94,66,0.14);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-accent-hover) 0%, #334032 100%);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 18px 40px rgba(74,94,66,0.18);
}

.btn-primary:active {
    transform: translateY(-2px) scale(0.99);
}

.btn-primary.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--color-accent);
}

.btn-primary.disabled:hover {
    transform: none;
    background: var(--color-accent);
}

/* HERO SECTION */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 100px 20px 20px;
    background: radial-gradient(circle at top right, #e8e1d5, var(--color-bg));
}

.hero-content { max-width: 550px; }
.hero-content h1 { font-size: 3.8rem; color: var(--color-text); margin-bottom: 18px; line-height: 1.08; letter-spacing: -0.02em; }
.hero-content p { font-size: 1.08rem; margin-bottom: 26px; color: rgba(60,50,43,0.92); }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .btn-primary { padding: 16px 40px; font-size: 1.08rem; border-radius: 14px; }
.hero { position: relative; overflow: visible; }
.hero::before {
    content: '';
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at top right, rgba(196,155,86,0.06), transparent 30%);
}

/* Decorative hero shapes */
.hero-decor {
    position: absolute;
    right: -60px;
    top: 40px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle at 30% 30%, rgba(195,155,86,0.14), rgba(74,94,66,0.06));
    border-radius: 50%;
    filter: blur(22px);
    pointer-events: none;
    z-index: 0;
}

.hero-content { position: relative; z-index: 2; }
.hero-graphic { position: relative; z-index: 1; }

.cta-icon { display:inline-block; margin-right:10px; font-size:1.05rem; transform:translateY(-1px); }

.tab-btn { display:inline-flex; align-items:center; gap:8px; padding:10px 18px; }
.tab-icon { display:inline-block; font-size:1.05rem; }

/* Newsletter small badge */
.form-wrapper .highlight { margin-bottom: 8px; font-weight:600; color: var(--color-accent); background: rgba(74,94,66,0.06); padding:6px 12px; border-radius: 10px; }

@media (max-width: 768px) {
    .hero-decor { display:none; }
    .hero-graphic img { max-width: 280px; }
    .hero-content h1 { font-size: 2.2rem; }
    .tab-buttons {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        gap: 12px;
        padding: 0 14px 10px;
        margin-bottom: 24px;
        scroll-snap-type: x proximity;
        scroll-behavior: smooth;
        touch-action: pan-x;
    }
    .tab-buttons::-webkit-scrollbar {
        display: none;
    }
    .tab-btn {
        flex: 0 0 auto;
        scroll-snap-align: start;
        min-width: max-content;
        white-space: nowrap;
    }
}
.btn-pdf-hero { background: var(--color-accent); }
.hero-graphic img { width: 100%; max-width: 400px; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

/* Top menu PDF link styling (compact variant to fit navbar) */
.nav-pdf-top {
    padding: 6px 10px;
    font-size: 0.95rem;
    border-radius: 12px;
    background: transparent;
    color: var(--color-accent);
    border: 1px solid rgba(74,94,66,0.14);
    text-decoration: none;
}

.nav-pdf-top.disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Subtle nav glass */
#navbar { background: linear-gradient(180deg, rgba(238,233,225,0.98), rgba(235,230,220,0.95)); box-shadow: 0 6px 30px rgba(35,30,25,0.06); }

.nav-pdf-top:hover {
    background: rgba(74,94,66,0.06);
    color: var(--color-accent-hover);
}

@media (max-width: 768px) {
    .nav-pdf-top { display: block; }
}

/* O MARCE */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-image img { width: 100%; border-radius: 15px; border: 3px solid var(--color-gold); }

/* INTERAKTYWNE ZAKŁADKI */
.tabs-container { max-width: 800px; margin: 0 auto; }
.tab-buttons { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; }
.tab-btn { background: transparent; color: var(--color-text-light); border: 1px solid var(--color-gold); padding: 10px 20px; border-radius: 30px; cursor: pointer; font-size: 1rem; transition: all 0.28s ease; position: relative; }
.tab-btn:hover { background: rgba(195,155,86,0.1); }
.tab-btn.active { background: var(--color-gold); color: var(--color-bg-dark); box-shadow: 0 8px 20px rgba(195,155,86,0.18); }
.tab-content { display: none; background: rgba(255, 255, 255, 0.05); padding: 40px; border-radius: 15px; text-align: center; border: 1px solid rgba(195, 155, 86, 0.2); animation: fadeIn 0.5s ease-in; }
.tab-content.active { display: block; }
.product-section { margin-top: 30px; }
.product-tab-buttons { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; }
.product-tab-btn { background: transparent; color: var(--color-text-light); border: 1px solid rgba(255,255,255,0.3); padding: 10px 18px; border-radius: 28px; cursor: pointer; transition: all 0.24s ease; }
.product-tab-btn:hover { background: rgba(255,255,255,0.08); }
.product-tab-btn.active { background: rgba(255,255,255,0.15); border-color: rgba(195,155,86,0.6); }
.product-tab-content { display: none; }
.product-tab-content.active { display: block; }
.product-card { display: grid; grid-template-columns: minmax(0, 360px) 1fr; align-items: start; gap: 24px; margin-top: 20px; text-align: left; box-shadow: 0 18px 50px rgba(30,25,18,0.06); border-top: 6px solid rgba(195,155,86,0.95); transition: transform 0.18s ease, box-shadow 0.18s ease; padding: 28px 20px 18px; border-radius: 20px; background: rgba(255,255,255,0.04);
}
.product-image { display: block; width: 100%; max-width: 360px; min-height: 260px; height: auto; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 40px rgba(0,0,0,0.16); background: #f8f2e8; }
.product-copy { text-align: left; }
.product-copy h4 { margin-bottom: 12px; font-size: 1.3rem; }
.product-copy p { color: rgba(255,255,255,0.76); line-height: 1.7; }
@media (max-width: 760px) {
    .product-card { grid-template-columns: 1fr; }
    .product-copy { text-align: center; }
}

.form-wrapper:hover { transform: translateY(-6px); box-shadow: 0 30px 80px rgba(30,25,18,0.08); }

.form-wrapper h2 { animation: slideInDown 0.6s ease-out 0.1s backwards; }
.form-wrapper p { animation: slideInDown 0.6s ease-out 0.2s backwards; }

@keyframes slideInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-form-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 550px;
    margin: 30px auto 0;
    text-align: left;
    animation: fadeIn 0.4s ease-out;
}

.ml-embedded { display: block; width: 100%; }

.spam-info { color: #746a5f; font-size: 0.95rem; }

.form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input {
    padding: 14px 18px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background-color: #fafafa;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 25px;
    width: 100%;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-group label {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #5a5049;
    cursor: pointer;
}

.form-submit-btn {
    width: 100%;
    padding: 14px;
    font-weight: 600;
}

/* STOPKA */
footer { background: var(--color-bg-dark); color: var(--color-text-light); text-align: center; padding: 40px 20px; font-size: 0.9rem; }
footer a { color: var(--color-gold); text-decoration: none; }

/* ANIMACJE I WYŚWIETLANIE */
.floating { animation: floatAnim 4s ease-in-out infinite; }
@keyframes floatAnim { 0% { transform: translateY(0); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 1; transform: none; }
.load-anim { opacity: 0; animation: fadeUpLoad 1s ease-out forwards; }
@keyframes fadeUpLoad { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

/* Responsywność */
@media (max-width: 768px) {
    #navbar { flex-direction: column; padding: 15px; }
    .nav-links { margin-top: 15px; gap: 15px; flex-wrap: wrap; justify-content: center;}
    #hero { flex-direction: column; text-align: center; padding-top: 140px;}
    .hero-buttons { justify-content: center; }
    .about-grid { grid-template-columns: 1fr; }
}

/* PODSTRONA PDF */
.standalone-pdf-section { background-color: var(--color-bg); min-height: 85vh; padding-top: 140px; }
.pdf-page-wrapper { background: #fff; padding: 50px 40px; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.03); border-top: 5px solid var(--color-accent); max-width: 750px; margin: 0 auto; }
.pdf-list { display: flex; flex-direction: column; gap: 15px; }
.pdf-item { background: #fcfbfa; border: 1px solid rgba(74, 94, 66, 0.15); padding: 18px 22px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; transition: all 0.3s ease; }
.pdf-item { background: linear-gradient(180deg,#ffffff,#fbfbf9); border: 1px solid rgba(74, 94, 66, 0.09); padding: 18px 22px; border-radius: 14px; display: flex; justify-content: space-between; align-items: center; transition: all 0.28s cubic-bezier(.2,.9,.2,1); }
.pdf-item:hover { background: #fff8ed; transform: translateY(-6px); box-shadow: 0 20px 40px rgba(74,94,66,0.06); border-color: rgba(74,94,66,0.22); }
.pdf-title { font-size: 1rem; color: var(--color-text); font-weight: 500; }
.pdf-actions { display: flex; gap: 10px; }
.pdf-link { text-decoration: none; font-size: 0.85rem; padding: 8px 18px; border-radius: 20px; font-weight: 600; transition: all 0.28s ease; }
.view-btn { border: 1px solid var(--color-accent); color: var(--color-accent); }
.view-btn:hover { background: var(--color-accent); color: #fff; }
.download-btn { background: var(--color-gold); color: #fff; box-shadow: 0 4px 10px rgba(195, 155, 86, 0.2); }
.download-btn:hover { background: #b28a47; transform: translateY(-2px) scale(1.05); box-shadow: 0 8px 20px rgba(195,155,86,0.3); }

.pdf-item { animation: slideInUp 0.6s ease-out backwards; }
.pdf-item:nth-child(1) { animation-delay: 0s; }
.pdf-item:nth-child(2) { animation-delay: 0.1s; }
.pdf-item:nth-child(3) { animation-delay: 0.2s; }

/* Small utility to draw attention */
.highlight { background: rgba(195,155,86,0.08); padding: 6px 10px; border-radius: 8px; }

/* Section appear animation */
#about, #products, #newsletter { opacity: 0; animation: fadeInSection 0.8s ease-out forwards; }
#about { animation-delay: 0.1s; }
#products { animation-delay: 0.2s; }
#newsletter { animation-delay: 0.3s; }

@keyframes fadeInSection {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Link hover glow */
.nav-links a { position: relative; }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

@media (max-width: 650px) {
    .pdf-item { flex-direction: column; gap: 15px; text-align: center; padding: 20px; }
    .pdf-actions { width: 100%; justify-content: center; }
    .pdf-link { flex: 1; text-align: center; }
}

/* ALERTY BEZPIECZEŃSTWA */
.custom-auth-alert {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #c34f4f;
    color: #fff;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 9999;
    animation: fadeIn 0.5s ease-out;
    font-size: 0.95rem;
    text-align: center;
    border: 2px solid #fff;
}