/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors from med_style.json */
    --niebieski-glowny: #2B5F8A;
    --niebieski-jasny: #7BB4D9;
    --bialy: #FFFFFF;
    --rozowy-ilustracje: #E85D75;
    --niebieski-pastelowy: #E6F2F9;
    --czarny: #1A1A1A;
    --szary: #6B7280;
    
    /* Typography */
    --font-family: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--czarny);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: #FFFFFF !important;
    box-shadow: 0 2px 20px rgba(43, 95, 138, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: transform 0.3s ease-in-out;
    transform: translateY(0);
    box-sizing: border-box;
    overflow: hidden;
}

/* Hide navbar on scroll down */
.navbar.navbar-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    fill: var(--niebieski-glowny);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--niebieski-glowny);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--niebieski-jasny);
}

/* Demo link styling */
.nav-links a.demo-link {
    color: #E53E3E;
    font-weight: 700;
    position: relative;
}

.nav-links a.demo-link:hover {
    color: #C53030;
}

.nav-links a.demo-link::after {
    content: "DEMO";
    position: absolute;
    top: -8px;
    right: -15px;
    font-size: 9px;
    background: #E53E3E;
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--niebieski-glowny);
    transition: all 0.3s ease;
}

/* High resolution logo for screens 1200px and wider */
@media (min-width: 1200px) {
    .logo img {
        content: url('../images/cdm-logo-big.webp');
        height: 80px;
        width: auto;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: linear-gradient(180deg, var(--bialy) 0%, var(--niebieski-pastelowy) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.hexagon-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='100' height='87' viewBox='0 0 100 87' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpolygon id='hexagon' points='50,1 95,25 95,62 50,86 5,62 5,25' /%3E%3C/defs%3E%3Cg fill='none' stroke='%237BB4D9' stroke-opacity='0.1' stroke-width='1'%3E%3Cuse href='%23hexagon' x='0' y='0'/%3E%3Cuse href='%23hexagon' x='50' y='0'/%3E%3Cuse href='%23hexagon' x='25' y='43.5'/%3E%3Cuse href='%23hexagon' x='75' y='43.5'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 100px 87px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--czarny);
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 20px;
}

/* Specific styling for index.html on large screens */
@media (min-width: 1400px) {
    body:not([data-page="wsparcie-operacji"]) .hero-title {
        font-size: 72px;
        letter-spacing: -4px;
    }
}

.hero-subtitle {
    font-size: 20px;
    color: var(--szary);
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    text-align: center;
}

.hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 240px;
}

.cta-button.primary {
    background: linear-gradient(135deg, #F05A5A 0%, #D64545 100%);
    color: var(--bialy);
    box-shadow: 0 10px 30px rgba(240, 90, 90, 0.3);
}

.cta-button.secondary {
    background: transparent;
    color: var(--niebieski-glowny);
    border: 2px solid var(--niebieski-glowny);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(240, 90, 90, 0.4);
}

.cta-button.secondary:hover {
    transform: translateY(-2px);
    background: var(--niebieski-glowny);
    color: var(--bialy);
}

/* Problem Section */
.problem {
    padding: 100px 0;
    background: linear-gradient(135deg, #4A6B85 0%, #5C8CB0 50%, #4A6B85 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.problem::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 50px,
        rgba(255, 255, 255, 0.02) 50px,
        rgba(255, 255, 255, 0.02) 100px
    );
    z-index: 0;
}

.problem-content {
    position: relative;
    z-index: 1;
}

.problem-content {
    max-width: 800px;
    margin: 0 auto;
}

.problem h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--bialy);
    margin-bottom: 30px;
    line-height: 1.2;
}

.problem p {
    font-size: 18px;
    color: var(--bialy);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Guide Section */
.guide {
    padding: 100px 0;
    background: var(--bialy);
}

.guide-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.guide-text h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--niebieski-glowny);
    margin-bottom: 30px;
    line-height: 1.2;
}

.guide-text p {
    font-size: 18px;
    color: var(--szary);
    line-height: 1.7;
}

.guide-illustration {
    text-align: center;
}

.guide-image {
    max-width: 100%;
    height: auto;
}

/* Plan Section */
.plan {
    padding: 100px 0;
    background: var(--niebieski-pastelowy);
    text-align: center;
}

.plan h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--niebieski-glowny);
    margin-bottom: 60px;
    line-height: 1.2;
}

.plan-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

/* Universal item hover styles */
.step-item,
.feature-item {
    background: var(--bialy);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(43, 95, 138, 0.1);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(0);
}

.step-item:hover,
.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(43, 95, 138, 0.25);
    background: rgba(255, 255, 255, 0.98);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--niebieski-glowny) 0%, var(--niebieski-jasny) 100%);
    color: var(--bialy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-item h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--niebieski-glowny);
    margin-bottom: 15px;
}

.step-item p {
    font-size: 16px;
    color: var(--szary);
    line-height: 1.6;
}

/* Solutions Section */
.solutions {
    padding: 100px 0;
    background: var(--bialy);
}

.solutions-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.solutions-text h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--niebieski-glowny);
    margin-bottom: 40px;
    line-height: 1.2;
}

.solutions-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.solution-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(43, 95, 138, 0.1);
}

.solution-item:last-child {
    border-bottom: none;
}

.solution-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--niebieski-jasny);
    opacity: 0.8;
    line-height: 1;
    min-width: 80px;
}

.solution-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--niebieski-glowny);
    margin-bottom: 10px;
    line-height: 1.3;
}

.solution-content p {
    font-size: 16px;
    color: var(--szary);
    line-height: 1.6;
}

.solutions-illustration {
    text-align: center;
}

.solutions-image {
    max-width: 100%;
    height: auto;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--niebieski-pastelowy);
    text-align: center;
}

.features h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--niebieski-glowny);
    margin-bottom: 60px;
    line-height: 1.2;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Feature item specific styles (base styles inherited from universal) */
.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--niebieski-glowny) 0%, var(--niebieski-jasny) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--bialy);
}

.feature-item h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--niebieski-glowny);
    margin-bottom: 15px;
}

.feature-item p {
    font-size: 16px;
    color: var(--szary);
    line-height: 1.6;
}

/* Result Section */
.result {
    padding: 100px 0;
    background: var(--bialy);
}

.result-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.result-text h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--niebieski-glowny);
    margin-bottom: 30px;
    line-height: 1.2;
}

.result-text p {
    font-size: 18px;
    color: var(--szary);
    line-height: 1.7;
}

.result-illustration {
    text-align: center;
}

.result-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Final CTA Section */
.final-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--niebieski-glowny) 0%, var(--niebieski-jasny) 100%);
    color: var(--bialy);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 400"><defs><style>.hex{fill:none;stroke:%23ffffff;stroke-width:2;opacity:0.1}.molecule{fill:%23ffffff;opacity:0.08}.path{fill:none;stroke:%23ffffff;stroke-width:3;opacity:0.15}</style></defs><g><polygon class="hex" points="80,50 120,70 120,110 80,130 40,110 40,70"/><polygon class="hex" points="160,30 200,50 200,90 160,110 120,90 120,50"/><polygon class="hex" points="240,80 280,100 280,140 240,160 200,140 200,100"/><polygon class="hex" points="320,40 360,60 360,100 320,120 280,100 280,60"/><polygon class="hex" points="300,200 340,220 340,260 300,280 260,260 260,220"/><circle class="molecule" cx="100" cy="200" r="8"/><circle class="molecule" cx="120" cy="180" r="6"/><circle class="molecule" cx="140" cy="200" r="8"/><circle class="molecule" cx="160" cy="220" r="6"/><line class="molecule" x1="100" y1="200" x2="120" y2="180"/><line class="molecule" x1="120" y1="180" x2="140" y2="200"/><line class="molecule" x1="140" y1="200" x2="160" y2="220"/><circle class="molecule" cx="300" cy="150" r="8"/><circle class="molecule" cx="320" cy="170" r="6"/><circle class="molecule" cx="340" cy="150" r="8"/><line class="molecule" x1="300" y1="150" x2="320" y2="170"/><line class="molecule" x1="320" y1="170" x2="340" y2="150"/><path class="path" d="M50,350 Q200,300 350,320"/><polygon points="180,280 200,270 220,280 220,300 200,310 180,300" fill="%23ffffff" opacity="0.05"/><polygon points="60,320 75,315 90,320 90,335 75,340 60,335" fill="%23ffffff" opacity="0.05"/></g></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
    z-index: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .final-cta::before {
        display: none;
    }
}

.final-cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    line-height: 1.2;
}

.final-cta-buttons {
    margin-bottom: 60px;
}

.final-cta-form p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.quick-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.quick-contact-form input {
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--bialy);
    backdrop-filter: blur(10px);
}

.quick-contact-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Quiz Styles */
.final-cta-quiz p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.quiz-header {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.quiz-reset {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--bialy);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    opacity: 0.7;
}

.quiz-reset:hover {
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
    transform: translateY(-1px);
}

.quiz-reset svg {
    flex-shrink: 0;
}

.qualification-quiz {
    max-width: 500px;
    margin: 0 auto;
}

.quiz-question {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.quiz-question.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-question h4 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--bialy);
    font-weight: 600;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.15);
}

.quiz-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--bialy);
}

.quiz-option .option-text {
    color: var(--bialy);
    font-size: 16px;
    line-height: 1.4;
}

.quiz-next, .quiz-submit {
    margin-top: 10px;
    min-width: 150px;
}

.quiz-result {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.quiz-result h4 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--bialy);
}

.quiz-result p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* BMI Calculator Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--bialy);
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    font-weight: bold;
    color: var(--szary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--czarny);
}

.modal-content h3 {
    font-size: 28px;
    color: var(--niebieski-glowny);
    margin-bottom: 10px;
}

.modal-content > p {
    color: var(--szary);
    margin-bottom: 30px;
}

.bmi-calculator {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bmi-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bmi-input-group label {
    font-weight: 600;
    color: var(--niebieski-glowny);
}

.bmi-input-group input {
    padding: 12px 16px;
    border: 2px solid var(--niebieski-pastelowy);
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.bmi-input-group input:focus {
    outline: none;
    border-color: var(--niebieski-jasny);
}

.bmi-result {
    margin-top: 30px;
    padding: 20px;
    background: var(--niebieski-pastelowy);
    border-radius: 15px;
    text-align: center;
}

.bmi-result h4 {
    font-size: 24px;
    color: var(--niebieski-glowny);
    margin-bottom: 10px;
}

#bmi-value {
    font-weight: 700;
    color: #F05A5A;
}

#bmi-category {
    font-size: 18px;
    color: var(--szary);
    margin-bottom: 20px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--niebieski-glowny);
    margin-bottom: 30px;
}

.about p {
    font-size: 18px;
    color: var(--szary);
    margin-bottom: 20px;
}

.hexagon-decoration {
    position: relative;
}

.hex-group {
    display: flex;
    justify-content: center;
    gap: -20px;
}

.hex {
    width: 120px;
    height: 120px;
    background: var(--niebieski-jasny);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.hex-1 {
    opacity: 0.3;
}

.hex-2 {
    background: var(--niebieski-glowny);
    margin-top: 60px;
}

.hex-3 {
    opacity: 0.5;
    margin-top: 120px;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--niebieski-pastelowy);
}

.services h2 {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    color: var(--niebieski-glowny);
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--bialy);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(43, 95, 138, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(43, 95, 138, 0.2);
}

.service-icon {
    margin-bottom: 30px;
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--niebieski-glowny);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--szary);
}

/* Approach Section */
.approach {
    padding: 100px 0;
    background: var(--bialy);
}

.approach h2 {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    color: var(--niebieski-glowny);
    margin-bottom: 60px;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.approach-item {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.approach-number {
    font-size: 48px;
    font-weight: 900;
    color: var(--niebieski-jasny);
    opacity: 0.3;
    margin-bottom: 20px;
}

.approach-item h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--niebieski-glowny);
    margin-bottom: 15px;
}

.approach-item p {
    color: var(--szary);
}

/* Success/Failure Section */
.success-failure {
    padding: 100px 0;
    background: var(--bialy);
    position: relative;
}

.success-failure h2 {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    color: var(--niebieski-glowny);
    margin-bottom: 60px;
    line-height: 1.2;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.success-column,
.failure-column {
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(43, 95, 138, 0.1);
}

.success-column {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05) 0%, rgba(129, 199, 132, 0.05) 100%);
    border: 2px solid rgba(76, 175, 80, 0.2);
}

.failure-column {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.05) 0%, rgba(229, 115, 115, 0.05) 100%);
    border: 2px solid rgba(244, 67, 54, 0.2);
}

.success-column h3 {
    color: #2E7D32;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 700;
}

.failure-column h3 {
    color: #C62828;
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 700;
}

.outcome-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.outcome-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
}

.outcome-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.success .outcome-icon {
    background: rgba(76, 175, 80, 0.15);
    color: #2E7D32;
}

.failure .outcome-icon {
    background: rgba(244, 67, 54, 0.15);
    color: #C62828;
}

.outcome-icon svg {
    width: 18px;
    height: 18px;
}

.outcome-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--czarny);
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .success-column,
    .failure-column {
        padding: 30px 20px;
    }
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #1A3A52 0%, #2B5F8A 50%, #1A3A52 100%);
    color: var(--bialy);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        30deg,
        transparent,
        transparent 35px,
        rgba(255, 255, 255, 0.02) 35px,
        rgba(255, 255, 255, 0.02) 70px
    );
    z-index: 0;
}

.contact > * {
    position: relative;
    z-index: 1;
}

.contact h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 40px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-person h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.contact-title {
    font-size: 20px;
    color: var(--niebieski-jasny);
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--bialy);
    text-decoration: none;
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
}

.contact-item:hover {
    opacity: 0.8;
}

.contact-item svg {
    flex-shrink: 0;
}

.contact-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

.contact-form h3 {
    font-size: 28px;
    margin-bottom: 30px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--bialy);
    font-size: 16px;
    font-family: var(--font-family);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.submit-button {
    padding: 18px 40px;
    background: var(--bialy);
    color: var(--niebieski-glowny);
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
    background: var(--czarny);
    color: var(--bialy);
    padding: 40px 0;
    text-align: center;
}

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

.footer p {
    opacity: 0.8;
    font-size: 14px;
}

.footer a {
    color: var(--niebieski-jasny);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Floating Button */
.floating-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    animation: float-pulse 3s ease-in-out infinite;
}

.floating-button a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #F05A5A 0%, #D64545 100%);
    color: var(--bialy);
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(240, 90, 90, 0.4);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.floating-button a:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(240, 90, 90, 0.5);
    background: linear-gradient(135deg, #E54848 0%, #C73E3E 100%);
}

.floating-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    flex-shrink: 0;
}

.floating-icon svg {
    width: 16px;
    height: 16px;
}

.floating-text {
    font-size: 14px;
    font-weight: 600;
}

@keyframes float-pulse {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-5px) scale(1.02);
    }
}

/* Hide floating button on scroll to bottom */
.floating-button.hide {
    opacity: 0;
    pointer-events: none;
}

/* Floating back button (different color) */
.floating-button.floating-back a {
    background: linear-gradient(135deg, var(--niebieski-glowny) 0%, var(--niebieski-jasny) 100%);
    box-shadow: 0 8px 25px rgba(43, 95, 138, 0.4);
}

.floating-button.floating-back a:hover {
    background: linear-gradient(135deg, #1E4A6B 0%, var(--niebieski-glowny) 100%);
    box-shadow: 0 15px 35px rgba(43, 95, 138, 0.5);
}

/* Mobile adjustments for floating button */
@media (max-width: 768px) {
    .floating-button {
        bottom: 20px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .floating-button a {
        padding: 14px 18px;
        font-size: 13px;
        gap: 10px;
    }

    .floating-text {
        font-size: 13px;
    }
}

/* Responsive Design - Updated Mobile Rules */

/* Tablets (min-width: 601px and max-width: 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
    /* Container adjustments for tablets */
    .container {
        padding: 0 30px;
    }
    
    /* Typography scaling for tablets */
    .hero-title {
        font-size: 60px;
        letter-spacing: -3px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    h2 {
        font-size: 38px;
    }
    
    h3 {
        font-size: 22px;
    }
    
    /* Navigation adjustments */
    .nav-links {
        gap: 25px;
    }
    
    .nav-links a {
        font-size: 15px;
    }
    
    /* Grid layouts for tablets */
    .plan-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .solutions-content,
    .guide-content-wrapper,
    .result-content-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    /* Button adjustments */
    .hero-cta-buttons {
        gap: 15px;
    }
    
    .cta-button {
        min-width: 200px;
        font-size: 16px;
        padding: 16px 30px;
    }
    
    /* Floating button for tablets */
    .floating-button {
        bottom: 25px;
        right: 25px;
    }
    
    .floating-button a {
        padding: 15px 18px;
        font-size: 13px;
    }
}

/* Smartphones (max-width: 600px) */
@media (max-width: 600px) {
    /* Hide navigation links, show toggle */
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Container adjustments for mobile */
    .container {
        padding: 0 20px;
    }
    
    /* Typography scaling for mobile */
    .hero-title {
        font-size: 36px;
        letter-spacing: -2px;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    h2 {
        font-size: 28px;
        margin-bottom: 20px;
        line-height: 1.2;
    }
    
    h3 {
        font-size: 20px;
    }
    
    p {
        font-size: 15px;
        line-height: 1.5;
    }
    
    /* Section padding adjustments */
    .hero {
        min-height: 80vh;
        padding-top: 60px;
    }
    
    .problem,
    .guide,
    .plan,
    .solutions,
    .features,
    .result,
    .final-cta,
    .contact,
    .success-failure {
        padding: 60px 0;
    }
    
    /* Navigation mobile styles */
    .navbar {
        padding: 10px 0;
        width: 100%;
        max-width: 100vw;
        left: 0;
        right: 0;
        overflow-x: hidden;
    }

    .navbar .container {
        padding: 0 15px;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
        overflow: visible;
    }

    .logo img {
        height: 60px;
        max-width: 150px;
    }

    .nav-toggle {
        margin-left: auto;
        margin-right: 0;
        padding: 8px;
        flex-shrink: 0;
    }

    .nav-toggle span {
        width: 22px;
        height: 2.5px;
    }
    
    /* Grid layouts for mobile - single column */
    .plan-steps,
    .features-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .solutions-content,
    .guide-content-wrapper,
    .result-content-wrapper,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    /* Step items mobile optimization */
    .step-item,
    .feature-item {
        padding: 30px 20px;
    }
    
    .step-number,
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    /* Button adjustments for mobile */
    .hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        min-width: auto;
        font-size: 16px;
        padding: 16px 25px;
        text-align: center;
    }
    
    /* Problem section mobile */
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .problem-item {
        text-align: center;
    }
    
    /* Solutions list mobile */
    .solution-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        align-items: center;
        justify-content: center;
    }

    .solution-number {
        font-size: 36px !important;
        min-width: auto !important;
        width: auto !important;
        margin: 0 auto !important;
        display: block !important;
        text-align: center !important;
        align-self: center !important;
    }

    .solution-content {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    /* Quiz mobile optimization */
    .qualification-quiz {
        max-width: 100%;
    }
    
    .quiz-options {
        gap: 12px;
    }
    
    .quiz-option {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    /* Modal mobile adjustments */
    .modal-content {
        margin: 5% 10px;
        padding: 25px 20px;
        max-height: 85vh;
    }
    
    /* Contact form mobile */
    .quick-contact-form {
        max-width: 100%;
    }
    
    .quick-contact-form input {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    /* Floating button mobile */
    .floating-button {
        bottom: 15px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .floating-button a {
        padding: 12px 15px;
        font-size: 12px;
        gap: 8px;
    }

    .floating-text {
        font-size: 12px;
    }
    
    /* Success/Failure section mobile */
    .outcome-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .outcome-icon {
        align-self: center;
    }
    
    /* Interactive tools mobile */
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tool-card {
        padding: 20px 15px;
    }
    
    /* Alternative CTAs mobile */
    .cta-buttons-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .cta-buttons-row .cta-button.secondary {
        width: 100%;
        max-width: 260px;
    }
    
    /* Hide hexagon pattern on mobile for better performance */
    .hexagon-pattern {
        display: none;
    }
    
    /* Mobile H1 - Replace animated letters with simple text */
    .hero-title {
        font-size: 28px;
        letter-spacing: -1px;
        line-height: 1.2;
        text-transform: uppercase;
        font-weight: 900;
        color: var(--czarny);
        margin-bottom: 20px;
    }
    
    /* Hide animated letters on mobile, show simple text */
    .hero-title .letter {
        display: none !important;
    }

    .hero-title .title-line {
        display: none !important;
    }

    .hero-title br {
        display: none !important;
    }

    /* Show simple text content for mobile - different for each page */
    body[data-page="index"] .hero-title::after {
        content: "Bezpieczne leczenie otyłości. Trwałe efekty";
        display: block !important;
    }

    body[data-page="wsparcie-operacji"] .hero-title::after {
        content: "Otyłość kwalifikująca do operacji? Zacznij bezpiecznie";
        display: block !important;
    }
    
    /* Mobile hamburger menu styles - Fixed positioning */
    /* Note: Actual styles are now handled by JavaScript inline styles */
    /* due to overflow clipping issue with navbar parent container */
    .nav-links.active {
        /* Styles applied via JavaScript for proper rendering */
    }

    /* List items and links styles handled by JavaScript */
    .nav-links.active li {
        /* Styles applied via JavaScript for proper rendering */
    }

    /* Prevent horizontal overflow when menu is active */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    .nav-links.active a {
        /* Styles applied via JavaScript for proper rendering */
    }
    
    /* Hamburger icon animation */
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Overlay for mobile menu */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Benefit items mobile */
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        align-items: center;
    }

    .benefit-icon {
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Center the inner div container (without class) */
    .benefit-item > div:not(.benefit-icon) {
        text-align: center !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Center all text content in benefit items */
    .benefit-item h5,
    .benefit-item p {
        text-align: center !important;
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Center "Dlaczego CDM" heading */
    .why-cdm h4 {
        text-align: center;
    }

    /* Specialist info mobile */
    .specialist-info {
        padding: 20px;
        margin: 20px 0;
    }
    
    /* Footer mobile */
    .footer {
        padding: 30px 0;
    }
    
    .footer p {
        font-size: 13px;
        text-align: center;
    }
}

/* Legacy mobile support (max-width: 768px) - keeping existing rules for compatibility */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Show active nav menu */
    .nav-links.active {
        display: flex !important;
    }

    .nav-toggle {
        display: flex;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid,
    .approach-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-illustration svg {
    animation: float 6s ease-in-out infinite;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* ============================================
   MOBILE OPTIMIZATIONS - ENHANCEMENT
   ============================================ */

/* Very Small Mobile Devices (≤ 380px) */
@media (max-width: 380px) {
    /* Container with minimal padding for small screens */
    .container {
        padding: 0 10px !important;
        max-width: 100vw !important;
    }

    /* Navbar ultra-compact */
    .navbar .container {
        padding: 0 8px !important;
    }

    .logo img {
        height: 50px !important;
        max-width: 120px;
    }

    .nav-toggle {
        padding: 6px !important;
    }

    .nav-toggle span {
        width: 20px !important;
        height: 2px !important;
    }

    /* Further reduce hero title for very small screens */
    .hero-title {
        font-size: 24px;
        letter-spacing: -0.5px;
    }

    /* Smaller headings */
    h2 {
        font-size: 24px;
    }

    h3 {
        font-size: 18px;
    }

    /* Section padding reduction */
    .problem,
    .guide,
    .plan,
    .solutions,
    .features,
    .result,
    .final-cta,
    .contact,
    .success-failure {
        padding: 40px 0;
    }

    /* Buttons optimization */
    .cta-button {
        padding: 14px 20px;
        font-size: 14px;
        min-height: 48px; /* Touch target minimum */
    }

    /* Floating button adjustments */
    .floating-button {
        bottom: 10px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .floating-button a {
        padding: 10px 12px;
        font-size: 11px;
    }

    .floating-text {
        display: none; /* Hide text on very small screens */
    }

    /* Step and feature items */
    .step-item,
    .feature-item {
        padding: 25px 15px;
    }

    /* Modal adjustments */
    .modal-content {
        margin: 5% 5px;
        padding: 20px 15px;
    }

    /* Quiz options smaller */
    .quiz-option {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* Contact form inputs */
    .contact-form input,
    .contact-form textarea {
        padding: 12px 15px;
        font-size: 15px;
    }
}

/* Touch Target Size Enforcement (All Mobile) */
@media (max-width: 768px) {
    /* Solution numbers centered on ALL mobile devices */
    .solution-item {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .solution-number {
        font-size: 36px !important;
        min-width: auto !important;
        width: auto !important;
        margin: 0 auto !important;
        display: block !important;
        text-align: center !important;
        align-self: center !important;
    }

    .solution-content {
        text-align: center !important;
        width: 100% !important;
    }

    /* Ensure all interactive elements meet 44px minimum */
    button,
    .cta-button,
    .submit-button,
    .quiz-option,
    .nav-links a,
    .contact-item,
    input[type="radio"],
    input[type="checkbox"],
    a {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Radio buttons and checkboxes */
    .quiz-option input[type="radio"],
    input[type="checkbox"] {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    /* Form inputs touch-friendly */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        min-height: 48px;
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        -webkit-appearance: none;
        appearance: none;
        border-radius: 8px;
    }

    textarea {
        min-height: 100px;
    }

    /* Larger tap targets for quiz options */
    .quiz-option {
        min-height: 52px;
        padding: 14px 16px;
        font-size: 15px;
    }

    /* Navigation links large tap target */
    .nav-links.active a {
        min-height: 52px;
        padding: 16px 20px;
        font-size: 17px;
    }

    /* Floating button adequate size */
    .floating-button a {
        min-height: 48px;
        padding: 12px 16px;
    }

    /* Center floating button on mobile */
    .floating-button {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
}

/* Performance Optimizations for Mobile */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    * {
        animation-duration: 0.5s !important;
        transition-duration: 0.2s !important;
    }

    /* Disable parallax effects on mobile */
    .hero-bg,
    .animated-bg {
        transform: none !important;
    }

    /* Optimize repaints with will-change on interactive elements */
    .cta-button,
    .nav-toggle,
    .floating-button a {
        will-change: transform;
    }

    /* Remove expensive box-shadows on scroll for performance */
    .step-item:hover,
    .feature-item:hover,
    .service-card:hover {
        box-shadow: 0 10px 20px rgba(43, 95, 138, 0.15);
        transform: translateY(-4px);
    }

    /* Reduce gradient orb animations */
    .gradient-orb {
        opacity: 0.3;
        animation: none !important;
    }

    /* Disable 3D transforms on mobile */
    .service-card {
        transform: none !important;
    }

    /* Simplify background patterns */
    .problem::before,
    .contact::before {
        opacity: 0.3;
    }
}

/* Horizontal Scroll Prevention */
@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100%;
        position: relative;
    }

    body {
        margin: 0;
        padding: 0;
    }

    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Container constraint */
    .container {
        max-width: 100vw !important;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Prevent text overflow */
    p,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    /* Navbar specific fixes for mobile */
    .navbar {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }

    .navbar .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
        margin: 0 !important;
    }

    .logo {
        flex-shrink: 0;
        max-width: 60%;
    }

    .nav-toggle {
        flex-shrink: 0;
        margin-left: auto;
    }
}

/* iOS-Specific Fixes */
@supports (-webkit-touch-callout: none) {
    /* Fix iOS input zoom */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }

    /* Fix iOS button rendering */
    button,
    .cta-button,
    .submit-button {
        -webkit-appearance: none;
        appearance: none;
    }

    /* Fix iOS Safari bottom bar */
    .hero {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }

    /* Smooth momentum scrolling */
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Android-Specific Fixes */
@media (max-width: 768px) {
    /* Fix tap highlight color */
    * {
        -webkit-tap-highlight-color: rgba(43, 95, 138, 0.2);
        -webkit-touch-callout: none;
    }

    /* Prevent text selection on buttons */
    button,
    .cta-button,
    .submit-button,
    .nav-toggle {
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 768px) and (orientation: landscape) {
    /* Reduce hero height in landscape */
    .hero {
        min-height: 100vh;
        padding: 60px 0 40px;
    }

    /* Adjust navigation for landscape */
    .nav-links.active {
        display: flex !important;
        padding: 20px;
        gap: 15px;
        overflow-y: auto;
    }

    .nav-links.active a {
        padding: 10px 20px;
        font-size: 15px;
    }

    /* Reduce section padding in landscape */
    .problem,
    .guide,
    .plan,
    .solutions,
    .features,
    .result,
    .final-cta,
    .contact,
    .success-failure {
        padding: 40px 0;
    }
}

/* Accessibility Enhancements for Mobile */
@media (max-width: 768px) {
    /* Focus visible for keyboard navigation */
    *:focus-visible {
        outline: 3px solid var(--niebieski-jasny);
        outline-offset: 2px;
    }

    /* Ensure sufficient contrast */
    .hero-subtitle,
    .problem p,
    .final-cta p {
        color: rgba(255, 255, 255, 0.95);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }

    /* Skip to main content link */
    .skip-link:focus {
        position: fixed;
        top: 10px;
        left: 10px;
        z-index: 10000;
        padding: 10px 20px;
        background: var(--niebieski-glowny);
        color: white;
        text-decoration: none;
        border-radius: 5px;
    }
}

/* Print Styles for Mobile */
@media print {
    /* Hide navigation and floating elements */
    .navbar,
    .floating-button,
    .mobile-overlay,
    .animated-bg,
    .loading-screen {
        display: none !important;
    }

    /* Ensure readable text */
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }

    /* Page breaks */
    section {
        page-break-inside: avoid;
    }

    /* Show links */
    a[href]:after {
        content: " (" attr(href) ")";
    }
}