@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --gold: #C9A84C;
    --gold-dark: #A68A3D;
    --dark-navy: #1B2A4A;
    --dark-deep: #0f172a;
    --charcoal: #f1f5f9;
    --text-muted: #94a3b8;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--dark-navy);
    color: var(--charcoal);
    overflow-x: hidden;
    padding-top: 80px; 
    font-weight: 300;
}

/* PASEK NAWIGACJI */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 80px;
    z-index: 99999;
    background: rgba(27, 42, 74, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.25);
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo .main {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 2px;
    color: #ffffff;
}

.logo .sub {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 5px;
    margin-top: 6px;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    transition: color 0.4s ease;
}

nav a:hover {
    color: var(--gold);
}

.lang-badge {
    border: 1px solid rgba(201, 168, 76, 0.45) !important;
    padding: 6px 12px !important;
    border-radius: 4px;
    background: transparent !important; 
    color: var(--gold) !important;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lang-badge:hover {
    background: var(--gold) !important;
    color: var(--dark-navy) !important;
    border-color: var(--gold) !important;
}

/* ==========================================================
   HERO SECTION - PEŁNE TŁO Z PŁYNNYM PRZENIKANIEM (FADE-OUT)
   ========================================================== */
.hero {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: calc(85vh - 80px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 80px;
    background-image: url('timevault-os-utt-gold-shield.jpg');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to top, var(--dark-navy) 0%, rgba(27, 42, 74, 0.35) 25%, transparent 60%),
        linear-gradient(90deg, var(--dark-navy) 40%, rgba(27, 42, 74, 0.75) 55%, rgba(27, 42, 74, 0.0) 75%);
    z-index: -1;
}

.hero-container {
    max-width: 1300px;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text-side {
    max-width: 650px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.label {
    font-family: var(--font-body);
    color: var(--gold);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

h1 {
    font-family: var(--font-heading);
    font-size: clamp(36px, 4.5vw, 60px); 
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 35px;
    line-height: 1.6;
}

.cta-btn {
    display: inline-block;
    padding: 16px 40px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: transparent;
    transition: all 0.5s ease;
}

.cta-btn:hover {
    background: var(--gold);
    color: var(--dark-navy);
}

/* KALKULATOR */
#savings-calculator {
    margin: 40px auto 60px auto; 
    max-width: 700px; 
    width: calc(100% - 40px); 
    padding: 50px 40px; 
    background: rgba(27, 42, 74, 0.65); 
    border: 1px solid rgba(201, 168, 76, 0.3); 
    border-radius: 8px;
    z-index: 5; 
    position: relative;
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 35px rgba(10, 14, 20, 0.3);
}

#savings-calculator h2 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-weight: 400;
    font-size: 2.2rem;
    margin-bottom: 15px;
}

/* FEATURES GRID (Filary) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    padding: 80px;
    background: #14223d; 
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    position: relative;
    z-index: 5;
    width: 100%;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.icon {
    width: 32px;
    height: 32px;
    fill: var(--gold);
}

.feature p {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-muted);
    font-weight: 400;
}

/* STOPKA */
footer {
    font-family: var(--font-body);
    border-top: 1px solid rgba(201, 168, 76, 0.25); 
    background: var(--dark-navy);
    width: 100% !important; 
    position: relative;
    z-index: 5;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* STYLE DLA PODSTRON */
.subpage-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.back-link {
    display: inline-block;
    color: var(--gold);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 0.8;
}

.content-card {
    background: rgba(27, 42, 74, 0.65);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 8px;
    padding: 50px;
    backdrop-filter: blur(16px);
}

.content-card h2 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 25px;
}

.content-card p, .content-card li {
    font-family: var(--font-body);
    color: var(--charcoal);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-weight: 300;
}

.content-card ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.mobile-menu-btn {
    display: none;
    background: transparent !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    font-size: 1.5rem;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
}

@media (max-width: 1024px) {
    header { padding: 14px 40px; }
    .hero { padding: 40px; }
    .hero-container { flex-direction: column; text-align: center; gap: 40px; }
    .hero-text-side { align-items: center; text-align: center; max-width: 100%; }
    .features-grid { padding: 60px 40px; grid-template-columns: repeat(2, 1fr); }
    .footer-inner { padding: 40px; }
}

@media (max-width: 768px) {
    body { padding-top: 60px; }
    header { height: 60px; padding: 12px 20px; }
    .mobile-menu-btn { display: block; }
    
    header nav {
        display: none;
        width: 100vw;
        position: fixed;
        top: 60px; left: 0; right: 0;
        background: var(--dark-navy);
        border-bottom: 2px solid var(--gold);
        padding: 25px 0;
    }
    header nav.active { display: block; }
    header nav ul { flex-direction: column; gap: 18px; }
    
    .hero { padding: 30px 20px; }
    .features-grid { grid-template-columns: 1fr; padding: 30px 20px; }
    #savings-calculator { padding: 30px 20px; }
    .footer-inner { padding: 30px 20px; }
    .content-card { padding: 30px 20px; }
}

/* ==========================================================
   JEDNOLITY BANER DLA WSZYSTKICH PODSTRON (PREMIUM HERO)
   ========================================================== */
.subpage-hero {
    position: relative;
    width: 100%;
    height: 280px;
    background-image: url('timevault-os-utt-gold-shield.jpg');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 80px;
    margin-top: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(to top, var(--dark-navy) 0%, rgba(27, 42, 74, 0.4) 30%, transparent 80%),
        linear-gradient(90deg, var(--dark-navy) 30%, rgba(27, 42, 74, 0.7) 50%, rgba(27, 42, 74, 0.0) 75%);
    z-index: 1;
}

.subpage-hero-title {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 42px);
    color: #ffffff;
    font-weight: 400;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .subpage-hero {
        height: 200px;
        padding: 0 20px;
    }
}

/* ==========================================================
   STYLE DLA SEKCJI KAMPANII I OFERTY (oferta.html / offer.html)
   ========================================================== */
.utt-campaign-section {
    position: relative;
    z-index: 5;
    width: 100%;
    padding: 60px 20px;
    background: var(--dark-navy);
}

.utt-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.utt-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.utt-badge {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    background: rgba(27, 42, 74, 0.5);
}

.utt-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 44px);
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 400;
}

.utt-title span {
    color: var(--gold);
}

.utt-subtitle {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

.utt-banner-wrapper {
    width: 100%;
    text-align: center;
    margin: 10px 0;
}

.utt-banner-img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    box-shadow: 0 15px 35px rgba(10, 14, 20, 0.4);
    display: inline-block;
    transition: transform 0.3s ease;
}

.utt-banner-img:hover {
    transform: scale(1.01);
}

.utt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.utt-card {
    background: rgba(27, 42, 74, 0.65);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 8px;
    padding: 35px 30px;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(10, 14, 20, 0.2);
}

.utt-card-icon {
    font-size: 28px;
    margin-bottom: 5px;
}

.utt-card h3 {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 1.25rem;
    font-weight: 600;
}

.utt-card p {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    font-weight: 300;
}

.utt-video-box {
    background: rgba(27, 42, 74, 0.5);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 8px;
    padding: 40px;
    text-align: center;
}

.utt-video-title {
    font-family: var(--font-heading);
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 400;
}

.utt-video-responsive {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(201, 168, 76, 0.3);
}

.utt-video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.utt-cta-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.utt-btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.4s ease;
    text-align: center;
}

.utt-btn-primary {
    background: var(--gold);
    color: var(--dark-navy);
    border: 1px solid var(--gold);
}

.utt-btn-primary:hover {
    background: transparent;
    color: var(--gold);
}

.utt-btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.utt-btn-secondary:hover {
    background: var(--gold);
    color: var(--dark-navy);
}

.utt-btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.utt-btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.utt-legal-note {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
    border-top: 1px solid rgba(201, 168, 76, 0.2);
    padding-top: 25px;
    text-align: left;
}

@media (max-width: 900px) {
    .utt-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .utt-campaign-section {
        padding: 40px 15px;
    }
    .utt-video-box {
        padding: 25px 15px;
    }
}

/* PRZYCISK ZMIANY MOTYWU (DARK/LIGHT) */
.theme-btn {
    background: transparent !important;
    border: 1px solid var(--gold) !important;
    color: var(--gold) !important;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.theme-btn:hover {
    background: var(--gold) !important;
    color: var(--dark-navy) !important;
}

/* OBSŁUGA MOTYWU JASNEGO (LIGHT MODE) */
html.dark-mode {
    --dark-navy: #0f172a;
    --charcoal: #f1f5f9;
}

html:not(.dark-mode) {
    --dark-navy: #f8fafc;
    --charcoal: #1e293b;
    --text-muted: #64748b;
}

html:not(.dark-mode) header {
    background: rgba(248, 250, 252, 0.9) !important;
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}

html:not(.dark-mode) header nav a {
    color: #1e293b;
}

html:not(.dark-mode) header nav a:hover {
    color: var(--gold);
}

html:not(.dark-mode) .content-card, 
html:not(.dark-mode) #savings-calculator, 
html:not(.dark-mode) .utt-card,
html:not(.dark-mode) .utt-video-box {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(201, 168, 76, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

html:not(.dark-mode) .content-card p, 
html:not(.dark-mode) .content-card li,
html:not(.dark-mode) .utt-subtitle,
html:not(.dark-mode) .utt-card p,
html:not(.dark-mode) .feature p {
    color: #334155;
}

html:not(.dark-mode) footer {
    background: #f1f5f9 !important;
    border-top: 1px solid rgba(201, 168, 76, 0.3);
}

/* ZMIANA GRAFIKI HERO I SUBPAGE-HERO W TRYBIE JASNYM */
html:not(.dark-mode) .hero {
    background-image: url('universal-time-token.jpg') !important;
}

html:not(.dark-mode) .subpage-hero {
    background-image: url('universal-time-token.jpg') !important;
}

/* KOREKTA CZYTELNOŚCI TEKSTU W BANERZE PODSTRONY DLA TRYBU JASNEGO */
html:not(.dark-mode) .subpage-hero::before {
    background: 
        linear-gradient(to top, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0.6) 30%, transparent 80%),
        linear-gradient(90deg, rgba(248, 250, 252, 0.9) 20%, rgba(248, 250, 252, 0.5) 50%, rgba(248, 250, 252, 0.0) 80%);
}

html:not(.dark-mode) .subpage-hero-title {
    color: var(--dark-navy) !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* PEŁNA WIDOCZNOŚĆ NAPISÓW W MENU I LOGO W TRYBIE JASNYM */
html:not(.dark-mode) header nav a {
    color: #1e293b !important;
}

html:not(.dark-mode) header nav a:hover {
    color: var(--gold) !important;
}

html:not(.dark-mode) .logo .main {
    color: #0f172a !important;
}

html:not(.dark-mode) .mobile-menu-btn {
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}

/* BEZWZGLĘDNA POPRAWKA KONTRASTU W TRYBIE JASNYM (LIGHT MODE) */
html:not(.dark-mode) h1, 
html:not(.dark-mode) h2, 
html:not(.dark-mode) h3, 
html:not(.dark-mode) h4, 
html:not(.dark-mode) p, 
html:not(.dark-mode) li, 
html:not(.dark-mode) span, 
html:not(.dark-mode) strong {
    color: #1e293b;
}

html:not(.dark-mode) .utt-title,
html:not(.dark-mode) .utt-video-title,
html:not(.dark-mode) .content-card h2,
html:not(.dark-mode) .subpage-hero-title {
    color: #0f172a !important;
}

html:not(.dark-mode) .utt-subtitle,
html:not(.dark-mode) .utt-card p,
html:not(.dark-mode) .content-card p,
html:not(.dark-mode) .content-card li {
    color: #334155 !important;
}

html:not(.dark-mode) header nav a {
    color: #1e293b !important;
}

html:not(.dark-mode) .logo .main {
    color: #0f172a !important;
}

/* KOREKTA TŁA DLA SEKCJI FILARÓW W TRYBIE JASNYM */
html:not(.dark-mode) .features-grid {
    background: #f8fafc !important;
    border-top: 1px solid rgba(201, 168, 76, 0.3);
}

html:not(.dark-mode) .feature p {
    color: #334155 !important;
}

html:not(.dark-mode) .feature strong {
    color: #0f172a !important;
}

/* KOREKTA TŁA I TEKSTÓW W FORMULARZU ZAPISU (LEAD BOX) W TRYBIE JASNYM */
html:not(.dark-mode) #savings-calculator form > div:last-child {
    background: rgba(241, 245, 249, 0.9) !important;
    border: 1px solid rgba(201, 168, 76, 0.35) !important;
}

html:not(.dark-mode) #savings-calculator form > div:last-child h3 {
    color: #0f172a !important;
}

html:not(.dark-mode) #savings-calculator form > div:last-child p {
    color: #334155 !important;
}

html:not(.dark-mode) #savings-calculator input[type="email"] {
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid rgba(201, 168, 76, 0.4) !important;
}

html:not(.dark-mode) #savings-calculator input[type="email"]::placeholder {
    color: #64748b !important;
}

/* POPRAWKA KONTRASTU PÓL TEKSTOWYCH W TRYBIE CIEMNYM */
html.dark-mode input[type="email"],
html.dark-mode input[type="text"],
html.dark-mode input[type="number"] {
    background: rgba(10, 14, 20, 0.9) !important;
    color: #ffffff !important;
    border: 1px solid rgba(201, 168, 76, 0.4) !important;
}

html.dark-mode input[type="email"]::placeholder,
html.dark-mode input[type="text"]::placeholder,
html.dark-mode input[type="number"]::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.8 !important;
}

/* ==========================================================
   DELIKATNE JASNE GRADIENTY - ODSŁONIĘCIE TARCZY
   ========================================================== */

/* Sekcja HERO na stronie głównej */
html:not(.dark-mode) .hero::before {
    background: 
        linear-gradient(to top, rgba(248, 250, 252, 0.85) 0%, rgba(248, 250, 252, 0.2) 15%, transparent 40%),
        linear-gradient(90deg, #f8fafc 20%, rgba(248, 250, 252, 0.6) 35%, transparent 55%) !important;
}

/* Sekcje BANERÓW NA PODSTRONACH */
html:not(.dark-mode) .subpage-hero::before {
    background: 
        linear-gradient(to top, rgba(248, 250, 252, 0.85) 0%, rgba(248, 250, 252, 0.2) 15%, transparent 40%),
        linear-gradient(90deg, #f8fafc 20%, rgba(248, 250, 252, 0.6) 35%, transparent 55%) !important;
}