:root {
    --oyster: #F8F9FA;
    --anthracite: #2D3A47;
    --pale-blue: #D2E9FF;
    --cobalt: #0050CB;
    --white: #FFFFFF;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--oyster);
    color: var(--anthracite);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typografia i Siatka */
.logo {
    font-family: 'Kannada MN', 'Inter', sans-serif;
    font-size: 1.25rem; letter-spacing: 0.2em;
    text-transform: uppercase; font-weight: 700;
    color: var(--anthracite); text-decoration: none;
    position: relative; z-index: 1001;
}

h1, h2, h3, h4 { font-weight: 300; line-height: 1.2; letter-spacing: -0.01em; }
.serif-italic { font-family: 'Playfair Display', serif; font-style: italic; text-transform: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 1000px; margin: 0 auto; padding: 0 2rem; }
section { padding: 120px 0; }

/* Nawigacja */
nav {
    position: fixed; top: 0; left: 0; width: 100%; padding: 1.2rem 0;
    background: rgba(248, 249, 250, 0.95); backdrop-filter: blur(15px);
    z-index: 1000; border-bottom: 1px solid rgba(45, 58, 71, 0.05);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.nav-links { display: none; gap: 2.5rem; }

.nav-links a {
    text-decoration: none; color: var(--anthracite); font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600;
    transition: opacity 0.3s;
}
.nav-links a:hover { opacity: 0.6; }

/* Menu Mobilne */
.mobile-menu-btn {
    display: block; background: none; border: none;
    color: var(--anthracite); cursor: pointer;
    z-index: 1001; position: relative;
}
@media (min-width: 768px) {
    .nav-links { display: flex; }
    .mobile-menu-btn { display: none; }
}
.nav-links.active {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; width: 100%; background: rgba(248, 249, 250, 0.98);
    padding: 2rem; box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05); align-items: center; gap: 1.5rem;
}

/* Przyciski */
.btn {
    padding: 1.1rem 2.2rem; border-radius: 50px; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em; text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer; border: none; display: inline-block; text-align: center;
}
.btn-solid { background-color: var(--cobalt); color: var(--white); box-shadow: 0 10px 25px rgba(0, 80, 203, 0.15); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(0, 80, 203, 0.25); opacity: 0.9; }
.btn-outline { background-color: transparent; color: var(--anthracite); border: 1.5px solid var(--anthracite); }
.btn-outline:hover { background-color: var(--anthracite); color: var(--white); transform: translateY(-2px); }

/* Hero */
.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding-top: 80px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); max-width: 1100px; margin-bottom: 2rem; font-weight: 400; }
.hero-underline-container { position: relative; display: inline-block; }
.drawn-underline { position: absolute; bottom: -12px; left: 0; width: 100%; height: 16px; z-index: -1; }
.drawn-underline path { stroke: var(--pale-blue); stroke-width: 14; stroke-linecap: round; fill: none; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.hero.appear .drawn-underline path { animation: drawLine 1.4s ease-out forwards; animation-delay: 1.6s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
.hero p { font-size: 1.1rem; color: #6b7280; max-width: 750px; margin: 0 auto 3.5rem; font-weight: 300; }

/* Diagnoza */
.problem-composition { position: relative; display: flex; align-items: center; justify-content: flex-start; height: 600px; }
.problem-main-image { width: 85%; height: 90%; border-radius: 30px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,0.1); }
.problem-main-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.1); }
.editorial-quote-box { position: absolute; bottom: 40px; right: -10px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(15px); padding: 2.2rem; border-radius: 20px; max-width: 280px; box-shadow: 0 25px 50px rgba(0,0,0,0.06); border: 1px solid var(--white); z-index: 2; }
.editorial-quote-box p { font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.4rem; line-height: 1.3; color: var(--anthracite); }
.editorial-quote-box p span { color: var(--cobalt); border-bottom: 2px solid var(--pale-blue); }
.minimal-line-marker { width: 24px; height: 2px; background: var(--cobalt); margin-top: 14px; flex-shrink: 0; opacity: 0.7; }

/* Portfolio */
.portfolio-carousel-container { position: relative; margin-top: 4rem; overflow: hidden; }
.portfolio-track { display: flex; gap: 2.5rem; animation: scroll 45s linear infinite; width: max-content; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 1.25rem)); } }
.portfolio-item { flex: 0 0 340px; position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 4/5; background: #eee; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.portfolio-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 2.5rem; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); color: white; opacity: 0; transition: opacity 0.4s ease; }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

/* Oferta */
.offer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 1024px) { .offer-grid { grid-template-columns: repeat(3, 1fr); } }
.offer-card { background: var(--white); border-radius: 40px; padding: 3rem 2.5rem; display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.02); position: relative; }
.offer-card.featured { border: 2px solid var(--pale-blue); }
.card-header-top { min-height: 180px; display: flex; flex-direction: column; }
.price { font-size: 2.2rem; margin: 0.5rem 0 0; font-weight: 300; }
.price span { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; opacity: 0.4; font-weight: 700; }
.offer-list { list-style: none; margin: 1.5rem 0; flex-grow: 1; }
.offer-list li { display: flex; gap: 0.8rem; font-size: 0.85rem; margin-bottom: 0.8rem; color: #6b7280; font-weight: 300; white-space: nowrap; }
.offer-list li i { color: var(--cobalt); flex-shrink: 0; margin-top: 0.15rem; }

/* ADS */
.ads-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 3rem; }
@media (min-width: 768px) { .ads-grid { grid-template-columns: 1fr 1fr; } }
.ads-card { background: var(--white); border-radius: 32px; padding: 3.5rem; border: 1.5px solid rgba(0,0,0,0.05); display: flex; flex-direction: column; justify-content: space-between; transition: all 0.3s ease; }
.ads-card:hover { border-color: var(--anthracite); transform: translateY(-5px); }

/* O Mnie */
.about-section { background-color: var(--oyster); overflow: hidden; }
.about-editorial-layout { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
@media (min-width: 1024px) { .about-editorial-layout { grid-template-columns: 0.9fr 1.1fr; gap: 8rem; } }
.about-image-composition { position: relative; display: flex; justify-content: flex-start; }
.about-image-frame { width: 85%; aspect-ratio: 2/3; border-radius: 4px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.08); }
.about-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-text-content { z-index: 2; }
.about-main-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; margin-bottom: 2.5rem; color: var(--anthracite); }
.about-body-copy { font-size: 1.1rem; color: #6b7280; font-weight: 300; max-width: 550px; display: flex; flex-direction: column; gap: 1.5rem; }
.about-signature-block { margin-top: 4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.about-experience-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 800; color: var(--cobalt); margin-bottom: 0.5rem; }
.signature-text { font-family: 'Playfair Display', serif; font-style: italic; font-size: 2.2rem; color: var(--anthracite); line-height: 1; }
.ceo-label { font-size: 0.85rem; color: #9ca3af; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; display: flex; align-items: center; gap: 10px; margin-top: 0.5rem; }

/* Proces */
.process-flow { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 4rem; }
@media (min-width: 768px) { .process-flow { grid-template-columns: repeat(2, 1fr); } }
.process-card { background: var(--white); padding: 3rem; border-radius: 24px; border: 1px solid rgba(0,0,0,0.02); display: flex; gap: 1.5rem; align-items: flex-start; }
.process-number { font-family: 'Playfair Display', serif; font-style: italic; font-size: 2.5rem; color: var(--cobalt); line-height: 1; opacity: 0.2; }

/* Zasady współpracy */
.rules-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 4rem; }
.rule-small { background: var(--white); padding: 2.5rem 2rem; border-radius: 24px; display: flex; align-items: center; gap: 1.5rem; border: 1px solid rgba(0,0,0,0.03); transition: all 0.4s ease; cursor: default; }
.rule-small:hover { background-color: var(--pale-blue); transform: translateY(-5px); }
.rule-small i { color: var(--cobalt); flex-shrink: 0; }
.rule-small h4 { font-weight: 700; font-size: 1rem; margin-bottom: 0.2rem; }
.rule-small p { font-weight: 300; font-size: 0.85rem; color: #6b7280; }

/* Formularz */
.contact-form { background: var(--white); padding: 4.5rem; border-radius: 40px; display: grid; gap: 1.8rem; max-width: 800px; margin: 0 auto; box-shadow: 0 40px 80px rgba(0,0,0,0.03); text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1.8rem; }
@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 0.6rem; }
.form-group label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.4; }
.form-group input, .form-group select, .form-group textarea { padding: 1.1rem; border-radius: 15px; border: 1.5px solid rgba(0,0,0,0.05); background: var(--oyster); font-family: inherit; font-size: 1rem; color: var(--anthracite); transition: all 0.3s ease; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--cobalt); background: var(--white); }

/* Utilities / Inne */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 1s, transform 1s; }
.fade-in.appear { opacity: 1; transform: translateY(0); }
.section-header { text-align: center; margin-bottom: 5rem; }
.section-header h2 { font-size: 2.8rem; letter-spacing: -0.02em; }
.badge { position: absolute; top: 1.5rem; right: 1.5rem; background: var(--cobalt); color: var(--white); font-size: 0.55rem; font-weight: 800; padding: 0.5rem 1rem; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.15em; z-index: 2; }