body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background: #f4f6fb;
    color: #222;
    line-height: 1.6;
    /* Improve mobile performance */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Prevent horizontal scroll */
    overflow-x: hidden;
    /* Improve touch scrolling on iOS */
    -webkit-overflow-scrolling: touch;
}

/* Ensure all elements stay within viewport */
* {
    box-sizing: border-box;
}

/* Improve touch targets */
button, a, input, textarea, select {
    min-height: 44px;
    min-width: 44px;
}

/* Prevent zoom on input focus (iOS Safari) */
input, textarea, select {
    font-size: 16px;
}

/* Skip to main content for accessibility */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #2563eb;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-to-main:focus {
    top: 6px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

#logo {
    height: 56px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    /* Improve image loading */
    object-fit: contain;
    max-width: 100%;
}

.hamburger-menu {
    position: relative;
}

.menu-toggle {
    background: #2563eb;
    color: #fff;
    border: none;
    font-size: 28px;
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(37,99,235,0.08);
    /* Improve touch interaction */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Remove tap highlight on mobile */
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover, .menu-toggle:focus {
    background: #1d4ed8;
    outline: none;
}

.menu-toggle:active {
    transform: scale(0.95);
}

.menu-list {
    display: none;
    position: absolute;
    right: 0;
    top: 48px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    border-radius: 10px;
    list-style: none;
    padding: 12px 0;
    min-width: 160px;
    z-index: 10;
}

.menu-list.show {
    display: block;
}

.menu-list li {
    margin: 0;
}

.menu-list a {
    display: block;
    padding: 12px 24px;
    color: #222;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border-radius: 6px;
}

.menu-list a:hover {
    background: #2563eb;
    color: #fff;
}

main {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.07);
    padding: 40px 32px;
}

h1, h2 {
    text-align: center;
    margin-bottom: 18px;
}

h1 {
    font-size: 2.5rem;
    color: #2563eb;
    font-weight: 800;
    letter-spacing: 1px;
}

h2 {
    font-size: 1.5rem;
    color: #1e293b;
    font-weight: 600;
}

hr {
    border: none;
    border-top: 2px solid #e0e7ef;
    margin: 32px auto;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.button {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #2563eb 60%, #60a5fa 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(37,99,235,0.10);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    /* Improve touch interaction */
    min-height: 44px;
    min-width: 44px;
    text-align: center;
    /* Remove tap highlight */
    -webkit-tap-highlight-color: transparent;
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.button:hover, .button:focus {
    background: linear-gradient(90deg, #1d4ed8 60%, #2563eb 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 24px rgba(37,99,235,0.18);
    color: #fff;
    outline: none;
}

.button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(37,99,235,0.15);
}

.button:visited {
    color: #fff;
}

.button:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

.button-border {
    display: none;
}

.social-row {
    justify-content: center;
    gap: 16px;
}

.social-button {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(37,99,235,0.10);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    font-size: 1.5rem;
    color: #2563eb;
    border: none;
    margin: 0 8px;
    text-decoration: none;
    /* Improve touch interaction */
    min-width: 44px;
    min-height: 44px;
    /* Remove tap highlight */
    -webkit-tap-highlight-color: transparent;
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.social-button:hover, .social-button:focus {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 6px 24px rgba(37,99,235,0.18);
    transform: scale(1.08);
    outline: none;
}

.social-button:active {
    transform: scale(0.95);
}

.social-icon {
    width: 28px;
    height: 28px;
    display: block;
}

footer {
    text-align: center;
    padding: 28px 0;
    background: #fff;
    color: #64748b;
    font-size: 1rem;
    margin-top: 48px;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
    border-radius: 0 0 16px 16px;
}

/* --- Dodatkowe style dla stron cenników --- */
.price-list {
    max-width: 600px;
    margin: 32px auto;
    background: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(37,99,235,0.07);
    padding: 32px 24px;
}

.price-list h1 {
    color: #2563eb;
    font-size: 2rem;
    margin-bottom: 24px;
    text-align: center;
}

.price-list ul {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
}

.price-list li {
    background: #fff;
    margin-bottom: 16px;
    padding: 18px 24px;
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(37,99,235,0.06);
    font-size: 1.15rem;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-list li:last-child {
    margin-bottom: 0;
}

.price-list .button {
    display: block;
    width: 180px;
    margin: 0 auto;
    text-align: center;
}

.realizacje-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 40px 0;
}

.realizacja {
    display: flex;
    gap: 32px;
    background: #f8fafc;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(37,99,235,0.07);
    padding: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.realizacja-img {
    width: 220px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.10);
    background: #e0e7ef;
}

.realizacja-info {
    flex: 1;
    min-width: 220px;
}

.realizacja-info h2 {
    margin-top: 0;
    color: #2563eb;
    font-size: 1.3rem;
}

.opinie {
    margin-top: 16px;
}

.opinie h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: #1e293b;
}

blockquote {
    margin: 0;
    padding: 16px 20px;
    background: #fff;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    font-style: italic;
    color: #334155;
    box-shadow: 0 1px 6px rgba(37,99,235,0.06);
}

blockquote footer {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #64748b;
    font-style: normal;
    text-align: right;
}

/* Tablet and small desktop styles */
@media (max-width: 1024px) {
    main {
        margin: 20px 16px;
        padding: 32px 24px;
    }
    
    header {
        padding: 16px 24px;
    }
}

/* Large mobile styles */
@media (max-width: 768px) {
    header {
        padding: 12px 16px;
        flex-wrap: wrap;
    }
    
    #logo {
        height: 48px;
    }
    
    main {
        margin: 16px 12px;
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }
    
    h2 {
        font-size: 1.3rem;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    
    .button-row {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .button {
        width: 100%;
        max-width: 280px;
        font-size: 1.05rem;
        padding: 16px 24px;
        text-align: center;
    }
    
    .social-row {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }
    
    .social-button {
        width: 60px;
        height: 60px;
        margin: 0;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
    }
    
    /* Price list improvements */
    .price-list {
        margin: 20px auto;
        padding: 24px 16px;
    }
    
    .price-list li {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        font-size: 1.05rem;
        padding: 16px 20px;
    }
    
    .price-list li span:last-child {
        font-weight: 700;
        color: #2563eb;
        font-size: 1.1rem;
    }
    
    /* Portfolio improvements */
    .realizacja {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .realizacja-img {
        width: 100%;
        height: 200px;
    }
    
    .realizacja-info {
        min-width: unset;
    }
}

/* Standard mobile styles */
@media (max-width: 480px) {
    body {
        font-size: 16px; /* Ensure minimum touch target size */
    }
    
    header {
        padding: 10px 12px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    #logo {
        height: 40px;
    }
    
    .menu-toggle {
        font-size: 24px;
        padding: 10px 14px;
        min-width: 44px; /* Minimum touch target */
        min-height: 44px;
    }
    
    .menu-list {
        right: 0;
        left: auto;
        top: 52px;
        min-width: 200px;
        max-width: calc(100vw - 24px);
    }
    
    .menu-list a {
        padding: 16px 20px;
        font-size: 1.1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    main {
        margin: 12px 8px;
        padding: 20px 16px;
        border-radius: 8px;
    }
    
    h1 {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-bottom: 12px;
        word-wrap: break-word;
    }
    
    h2 {
        font-size: 1.2rem;
        line-height: 1.3;
        margin-bottom: 10px;
        word-wrap: break-word;
    }
    
    .button {
        width: 100%;
        max-width: none;
        font-size: 1.1rem;
        padding: 18px 20px;
        margin: 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .button-row {
        gap: 12px;
        margin: 24px 0;
    }
    
    .social-button {
        width: 56px;
        height: 56px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .social-icon {
        width: 28px;
        height: 28px;
    }
    
    /* Content spacing improvements */
    section {
        padding: 16px 0;
    }
    
    #oNas p {
        text-align: center;
        line-height: 1.6;
        margin-bottom: 16px;
    }
    
    /* Price list mobile optimization */
    .price-list {
        margin: 16px auto;
        padding: 20px 12px;
        border-radius: 12px;
    }
    
    .price-list h1 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .price-list h2 {
        font-size: 1.3rem;
        margin: 24px 0 16px 0;
        text-align: center;
    }
    
    .price-list li {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        font-size: 1rem;
        padding: 16px 16px;
        margin-bottom: 12px;
    }
    
    .price-list li span:first-child {
        font-weight: 500;
        line-height: 1.4;
    }
    
    .price-list li span:last-child {
        font-weight: 700;
        color: #2563eb;
        font-size: 1.2rem;
        padding: 8px 12px;
        background: #eff6ff;
        border-radius: 6px;
        display: inline-block;
    }
    
    .price-list .button {
        width: 100%;
        max-width: 200px;
        margin: 20px auto 0 auto;
    }
    
    /* Portfolio mobile optimization */
    .realizacje-list {
        gap: 24px;
        margin: 24px 0;
    }
    
    .realizacja {
        padding: 16px;
        gap: 16px;
    }
    
    .realizacja-img {
        height: 180px;
        border-radius: 8px;
    }
    
    .realizacja-info h2 {
        font-size: 1.2rem;
        margin-bottom: 12px;
        text-align: center;
    }
    
    .realizacja-info p {
        font-size: 1rem;
        line-height: 1.5;
        text-align: center;
        margin-bottom: 12px;
    }
    
    .realizacja-info ul {
        text-align: left;
        padding-left: 20px;
    }
    
    .realizacja-info ul li {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 6px;
        background: none;
        box-shadow: none;
        padding: 4px 0;
        display: list-item;
        justify-content: flex-start;
    }
    
    blockquote {
        padding: 12px 16px;
        margin: 12px 0;
        font-size: 0.95rem;
        line-height: 1.4;
    }
    
    blockquote footer {
        font-size: 0.9rem;
        margin-top: 8px;
        text-align: right;
    }
    
    /* Footer improvements */
    footer {
        padding: 20px 16px;
        margin-top: 32px;
        font-size: 0.95rem;
    }
    
    /* Accessibility improvements for mobile */
    .skip-to-main {
        font-size: 1.1rem;
        padding: 12px 16px;
    }
    
    .skip-to-main:focus {
        top: 10px;
    }
}

/* Very small mobile screens */
@media (max-width: 360px) {
    header {
        padding: 8px 10px;
    }
    
    #logo {
        height: 36px;
    }
    
    main {
        margin: 8px 6px;
        padding: 16px 12px;
    }
    
    h1 {
        font-size: 1.4rem;
    }
    
    h2 {
        font-size: 1.1rem;
    }
    
    .button {
        font-size: 1rem;
        padding: 16px 16px;
    }
    
    .price-list {
        padding: 16px 8px;
    }
    
    .price-list li {
        padding: 14px 12px;
        font-size: 0.95rem;
    }
    
    .realizacja {
        padding: 12px;
    }
    
    .social-row {
        gap: 16px;
    }
    
    .social-button {
        width: 52px;
        height: 52px;
    }
    
    .social-icon {
        width: 26px;
        height: 26px;
    }
}

a{
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

#oNas{
    text-align: center;
}