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

:root {
    --gold: #c5a059;
    --dark-navy: #0a0e14;
    --overlay: rgba(10, 14, 20, 0.85);
    --text-light: #ffffff;
    --text-gray: #d1d1d1;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-navy);
    color: var(--text-light);
    overflow-x: hidden;
}

/* GŁÓWNY KONTENER HERO */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* KONTENER NA TŁO */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg img,
.hero-bg picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* CAŁKOWITE USUNIĘCIE CIACHAJĄCEGO GRADIENTU Z LEWEJ */
.hero::before {
    display: none; 
}

/* DOLNY CIEŃ/GRADIENT PRZECHODZĄCY W SEKCJĘ PONIŻEJ */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 220px;
    background: linear-gradient(to bottom, transparent 0%, rgba(10, 14, 20, 0.98) 100%);
    z-index: 3;
    pointer-events: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 50px 80px;
    z-index: 10;
    position: relative;
    background: linear-gradient(to bottom, rgba(10, 14, 20, 0.7) 0%, transparent 100%);
}

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

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

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

.logo .main {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 2px;
}

.logo .sub {
    font-size: 18px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 4px;
    margin-top: 4px;
    text-align: left;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
    transition: color 0.3s;
}

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

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 80px;
    z-index: 5;
}

.label {
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    line-height: 1.1;
    max-width: 800px;
    margin-bottom: 50px;
    font-weight: 400;
    text-transform: uppercase;
}

.cta-container {
    position: relative;
    display: inline-block;
}

.cta-btn {
    display: inline-block;
    padding: 18px 45px;
    border: 1px solid var(--gold);
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: rgba(197, 160, 89, 0.05);
    transition: 0.4s;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 60px 80px;
    background: rgba(10, 14, 20, 0.6);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(197, 160, 89, 0.2);
    z-index: 5;
}

.feature {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-right: 40px;
}

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

.feature p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-gray);
}

/* ==========================================================
   UKŁAD RAMKI DLA PODSTRON
   ========================================================== */
.subpage-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 40px;
    z-index: 5;
    position: relative;
}

.content-card {
    background: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(197, 160, 89, 0.3);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.content-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    color: var(--gold);
    margin-bottom: 25px;
    text-transform: uppercase;
}

.content-card h3 {
    font-size: 20px;
    color: var(--text-light);
    margin: 25px 0 15px 0;
}

.content-card p, .content-card li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.content-card ul {
    list-style-position: inside;
    margin-left: 10px;
    margin-bottom: 20px;
}

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

.back-link:hover { text-decoration: underline; }

@media (max-width: 1024px) {
    h1 { font-size: 50px; }
    header, .main-content, .features-grid, .subpage-container { padding: 30px 40px; }
    .features-grid { grid-template-columns: 1fr; gap: 40px; }
    .content-card { padding: 30px; }
}

body.subpage {
    background-color: #141a24;
}