/* 
 * Styles for NSZZFiPW Kraków website v1.1
 * Last updated: 2025-04-12
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modern color palette */
    --primary-color: #0e2a47;
    --secondary-color: #104d87;
    --accent-color: #2e8bff;
    --accent-light: #80b4ff;
    --text-color: #2d3748;
    --text-light: #4a5568;
    --light-gray: #f7f9fc;
    --medium-gray: #e2e8f0;
    --white: #ffffff;
    --container-width: 1200px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    /* Font sizes - using rem for better accessibility */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-md: 1.125rem;   /* 18px */
    --text-lg: 1.25rem;    /* 20px */
    --text-xl: 1.5rem;     /* 24px */
    --text-2xl: 1.875rem;  /* 30px */
    --text-3xl: 2.25rem;   /* 36px */
    --text-4xl: 3rem;      /* 48px */
}

html {
    font-size: 16px;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

p {
    color: var(--text-light);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Utility classes for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Header styles */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 20px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.logo-container:hover .logo {
    transform: scale(1.05);
}

.brand-name h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
    letter-spacing: -0.5px;
}

.brand-name p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* Navigation styles */
nav {
    position: relative;
    z-index: 1000;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover,
nav a:focus {
    color: var(--accent-color);
    background-color: rgba(46, 139, 255, 0.1);
    outline: none;
}

nav a.active {
    color: var(--accent-color);
    font-weight: 600;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--accent-color);
}

/* Mobile Menu Styles */
.hamburger-menu {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
    }

    .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .menu-overlay.active {
        display: block;
    }
    
body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .main-header .container {
        position: relative;
    }
    
    .hamburger-menu {
        display: block;
    }
    
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        z-index: 1000;
        padding-top: 70px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }
    
    nav.active {
        right: 0;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
        margin: 0;
    }
    
    nav ul li a {
        display: block;
        padding: 15px;
        font-size: 16px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    .hamburger-menu:active {
        opacity: 0.7;
    }
    
    nav a:active {
        background-color: rgba(46, 139, 255, 0.2);
    }
}

/* Better handling of fixed elements on iOS */
@supports (-webkit-touch-callout: none) {
    .main-header {
        position: -webkit-sticky;
        position: sticky;
    }
    
    nav.active {
        -webkit-overflow-scrolling: touch;
    }
    
    .hamburger-menu span {
        transform-origin: center;
    }
}

/* Page header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 8rem 0 4rem;
    margin-top: 74px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(46, 139, 255, 0.2) 0%, transparent 70%);
}

.page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 10rem 0 8rem;
    margin-top: 74px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(46, 139, 255, 0.2) 0%, transparent 70%);
}

.hero h2 {
    font-size: var(--text-4xl);
    max-width: 90%;
    margin: 0 auto 1.5rem;
    position: relative;
    animation: fadeInUp 1s ease forwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background-color: var(--accent-light);
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 0;
    padding-bottom: 120%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s, opacity 0.3s;
}

.cta-button:active::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition: 0s;
}

/* Benefits section */
.benefits {
    padding: 6rem 0;
    background-color: var(--light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    font-size: var(--text-3xl);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-item {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    display: block;
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.benefit-item h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: var(--text-lg);
    position: relative;
    padding-bottom: 0.8rem;
}

.benefit-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.benefit-details {
    list-style: none;
    margin-top: 1.5rem;
}

.benefit-details li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--medium-gray);
    display: flex;
    align-items: center;
}

.benefit-details li::before {
    content: '✓';
    color: var(--accent-color);
    margin-right: 10px;
    font-weight: bold;
}

.benefit-details li:last-child {
    border-bottom: none;
}

.benefit-item p {
    font-size: var(--text-base);
    line-height: 1.6;
}

/* Why Us section */
.why-us {
    padding: 6rem 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.feature {
    padding: 2rem;
    transition: all var(--transition-normal);
    opacity: 1;
    transform: none;
}

.feature.animate {
    animation: fadeInUp 0.6s ease forwards;
}

.feature .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    background-color: rgba(46, 139, 255, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    position: relative;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.feature .icon svg {
    width: 50px;
    height: 50px;
    position: relative;
    z-index: 2;
}

.feature:hover .icon::after {
    transform: translate(-50%, -50%) scale(1.2);
    background-color: rgba(46, 139, 255, 0.2);
}

.feature h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: var(--text-lg);
}

.feature p {
    font-size: var(--text-base);
    line-height: 1.6;
}

/* Pricing section */
.pricing {
    padding: 6rem 0;
    background-color: var(--light-gray);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.pricing-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    display: block;
}

.pricing-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-item.featured {
    border: 2px solid var(--accent-color);
    transform: scale(1.05);
    z-index: 1;
}

.pricing-item.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.featured-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1.5rem 0;
    font-family: 'Poppins', sans-serif;
}

.price span {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 400;
}

.pricing-item ul {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-item ul li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--medium-gray);
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.pricing-item ul li::before {
    content: '✓';
    color: var(--accent-color);
    margin-right: 10px;
    font-weight: bold;
}

.pricing-item ul li:last-child {
    border-bottom: none;
}

/* Contact page */
.contact-page {
    padding: 2rem 0;
    background-color: #f8f9fa;
}

.contact-page .section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    font-size: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 1rem;
}

.contact-info-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    margin-bottom: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-card h3 {
    color: #2e8bff;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-info-card p {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.contact-description {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.contact-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .contact-page {
        padding: 1.5rem 0;
    }

    .contact-page .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .contact-info-card {
        padding: 1.5rem;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-info-card h3 {
        font-size: 1.1rem;
    }

    .contact-info-card p {
        font-size: 0.95rem;
    }

    .contact-description {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .contact-page {
        padding: 1rem 0;
    }

    .contact-page .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .contact-grid {
        gap: 1rem;
    }

    .contact-info-card {
        padding: 1.25rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 80%, rgba(46, 139, 255, 0.1) 0%, transparent 70%);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
    position: relative;
}

.footer-info h3, .footer-links h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.8rem;
}

.footer-info h3::after, .footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-light);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: all var(--transition-fast);
    padding: 0.3rem 0;
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 992px) {
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .pricing-item.featured {
        transform: scale(1.03);
    }
    
    .pricing-item.featured:hover {
        transform: scale(1.03) translateY(-10px);
    }

    /* Improved grid breakpoints */
    .benefits-grid,
    .addons-grid,
    .fund-activities {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
        gap: 1.5rem;
    }

    .hero {
        padding: 8rem 0 6rem;
    }

    .hero h2 {
        font-size: var(--text-2xl);
        padding: 0 1rem;
    }
    
    .pricing-item.featured {
        transform: scale(1);
    }
    
    .pricing-item.featured:hover {
        transform: translateY(-10px);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-additional {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        padding: 1.5rem;
    }

    .benefits-grid,
    .features-grid,
    .addons-grid,
    .goals-grid,
    .fund-activities {
        grid-template-columns: 1fr;
    }

    .tmobile-logo {
        top: 5px;
        right: 10px;
        height: 40px;
    }
    
    /* Fix section padding for mobile */
    .benefits,
    .why-us,
    .pricing,
    .contact-page,
    .fund-info,
    .roaming,
    .addons,
    .documents-section {
        padding: 4rem 0;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: var(--text-xl);
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .benefit-item,
    .contact-info-card,
    .map-container,
    .contact-details {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
    }

    .contact-info-card {
        padding: 1.5rem;
        font-size: 0.95rem;
    }
    
    .contact-info-card h3 {
        font-size: 1.1rem;
    }
    
    /* Fix overflow issues */
    .price {
        font-size: 2.5rem;
    }
    
    .fund-description,
    .section-description {
        padding: 0 1.5rem;
    }
    
    .goal-item,
    .activity-card {
        padding: 1.5rem;
    }
    
    /* Better spacing for small devices */
    .section-title {
        margin-bottom: 2rem;
    }
    
    .features-grid,
    .benefits-grid,
    .contact-grid,
    .goals-grid,
    .fund-activities {
        gap: 1.5rem;
    }
}

/* Fix for extra small devices */
@media (max-width: 375px) {
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .benefit-item,
    .contact-info-card,
    .goal-item,
    .activity-card,
    .document-card {
        padding: 1.25rem;
    }
    
    .contact-icon,
    .goal-icon {
        width: 60px;
        height: 60px;
    }
    
    .brand-name h1 {
        font-size: 1.3rem;
    }
    
    .brand-name p {
        font-size: 0.8rem;
    }
}

/* Dodatki do abonamentu */
.addons {
    background-color: var(--white);
    padding: 6rem 0;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2.5rem;
    margin: 0 auto;
    max-width: 1200px;
}

.addon-item {
    background: var(--light-gray);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    display: block;
}

.addon-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.addon-item h3 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.addon-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.addon-item p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.addon-item ul {
    list-style: none;
}

.addon-item ul li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--medium-gray);
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.addon-item ul li::before {
    content: '✓';
    color: var(--accent-color);
    margin-right: 10px;
    font-weight: bold;
}

.addon-item ul li:last-child {
    border-bottom: none;
}

.addon-note {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: var(--radius-lg);
    display: block;
}

.addon-note p {
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sekcja roamingu */
.roaming {
    padding: 6rem 0;
    background-color: var(--light-gray);
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-light);
}

.roaming-zones {
    max-width: 900px;
    margin: 3rem auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    padding: 2rem;
}

.roaming-zones .section-title {
    margin-top: 1rem;
    text-align: left;
}

.roaming-zones .section-description {
    margin-bottom: 2rem;
    text-align: left;
    max-width: 100%;
}

.zone-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    border: none;
    background: none;
}

.zone-tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    background-color: #f5f8ff;
    border: 1px solid #e0e7ff;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--text-color);
    outline: none;
    text-align: center;
}

.zone-tab:hover, .zone-tab:focus {
    background-color: #e6eeff;
    border-color: #c0d0ff;
}

.zone-tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.zone-content {
    display: none;
    padding: 1rem;
}

.zone-content.active {
    display: block;
}

.zone-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.zone-prices, .zone-countries {
    flex: 1;
    min-width: 280px;
}

.zone-prices h3, .zone-countries h3 {
    color: var(--secondary-color);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--medium-gray);
}

.pricing-list {
    list-style: none;
}

.pricing-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.pricing-list li span {
    color: var(--secondary-text-color);
}

.pricing-list li strong {
    font-weight: 600;
    color: var(--primary-color);
}

.zone-countries p {
    line-height: 1.8;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Mobile adjustments for pricing and zones */
@media (max-width: 768px) {
    .pricing-item {
        margin-bottom: 1.5rem;
    }
    
    .addons-grid {
        grid-template-columns: 1fr;
    }
    
    .zone-tabs {
        justify-content: center;
    }
    
    .zone-tab {
        padding: 0.75rem 1rem;
        flex: 1;
        text-align: center;
        max-width: 120px;
    }
    
    .addon-item {
        margin-bottom: 1.5rem;
    }
    
    .pricing .section-title, 
    .addons .section-title, 
    .roaming-zones .section-title {
        text-align: center;
    }
    
    .roaming-zones .section-description {
        text-align: center;
    }
    
    .zone-info {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .zone-tab {
        padding: 0.5rem;
        font-size: 0.9rem;
        max-width: 100px;
    }
    
    .pricing-list li {
        flex-direction: column;
    }
    
    .pricing-list li strong {
        margin-top: 0.25rem;
    }
}

/* Sekcja dokumentów do pobrania */
.documents-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.documents-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.document-category {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-title {
    color: #2e8bff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #2e8bff;
}

.document-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.document-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.document-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-details {
    flex: 1;
}

.document-details h4 {
    color: #2e8bff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.document-details p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2e8bff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background-color: rgba(46, 139, 255, 0.1);
    transition: background-color 0.3s ease;
}

.download-link:hover {
    background-color: rgba(46, 139, 255, 0.2);
}

.file-size {
    color: #6c757d;
    font-size: 0.8rem;
}

.documents-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #e9ecef;
    border-radius: 8px;
    text-align: center;
    color: #495057;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .document-cards {
        grid-template-columns: 1fr;
    }
    
    .document-card {
        padding: 1rem;
    }
}

.tmobile-logo {
    position: fixed;
    top: 10px;
    right: 20px;
    height: 50px;
    z-index: 1010;
}

@media (max-width: 768px) {
    .tmobile-logo {
        top: 5px;
        right: 10px;
        height: 40px;
    }
}

/* Fund Info Section */
.fund-info {
    padding: 5rem 0;
    background-color: var(--white);
}

.fund-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.fund-description {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    font-size: var(--text-md);
}

.fund-goals h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: var(--text-xl);
    position: relative;
}

.fund-goals h3::after {
    content: '';
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.goal-item {
    display: flex;
    flex-direction: column;
        align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.goal-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.goal-icon {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    background-color: rgba(46, 139, 255, 0.1);
    border-radius: 50%;
    position: relative;
    transition: all var(--transition-normal);
}

.goal-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed var(--accent-color);
    opacity: 0.4;
    transition: transform var(--transition-normal);
}

.goal-item:hover .goal-icon::after {
    transform: scale(1.1) rotate(10deg);
}

.goal-item p {
    font-size: var(--text-md);
    line-height: 1.6;
    color: var(--text-color);
}

.fund-activities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.activity-card {
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.activity-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: var(--text-lg);
    position: relative;
    padding-bottom: 0.7rem;
}

.activity-card h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.activity-card p {
    line-height: 1.8;
    font-size: var(--text-base);
}

@media (max-width: 992px) {
    .goals-grid,
    .fund-activities {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .goals-grid,
    .fund-activities {
        grid-template-columns: 1fr;
    }
    
    .fund-info {
        padding: 3rem 0;
    }
}

/* Touch enhancements for mobile */
@media (hover: none) {
    .cta-button:active {
        transform: scale(0.98);
    }
    
    .nav a:active,
    .footer-links a:active {
        opacity: 0.7;
    }
}

/* Better handling of images and assets */
img, svg {
        display: block;
    max-width: 100%;
}

/* Improved mobile view */
@media (max-width: 768px) {
    /* Adjust hero section for better readability */
    .hero {
        padding: 8rem 0 6rem;
    }
    
    .hero h2 {
        font-size: var(--text-2xl);
        padding: 0 1rem;
    }
    
    /* Fix container spacing */
    .container {
        padding: 0 1rem;
    }
    
    /* Adjust spacing in all sections */
    .section-title {
        margin-bottom: 2rem;
    }
    
    /* Ensure proper card layout on small screens */
    .benefit-item,
    .pricing-item,
    .contact-info-card,
    .addon-item,
    .document-card,
    .goal-item,
    .activity-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 575px) {
    .hero h2 {
        font-size: var(--text-xl);
    }
    
    /* Usuwam style, które mogły powodować problemy z widocznością na większych ekranach */
    /* Upewniam się, że wszystkie elementy są widoczne niezależnie od rozmiaru ekranu */
}

/* Poprawki dla elementów, które były ukryte na większych ekranach */
.benefit-item,
.pricing-item,
.contact-info-card,
.document-card,
.addon-item {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* Sekcja dokumentów do pobrania */
.documents-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.documents-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.document-category {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.category-title {
    color: #2e8bff;
        margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #2e8bff;
}

.document-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.document-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.document-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
.document-details {
    flex: 1;
}

.document-details h4 {
    color: #2e8bff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.document-details p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2e8bff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background-color: rgba(46, 139, 255, 0.1);
    transition: background-color 0.3s ease;
}

.download-link:hover {
    background-color: rgba(46, 139, 255, 0.2);
}

.file-size {
    color: #6c757d;
    font-size: 0.8rem;
}

.documents-note {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #e9ecef;
    border-radius: 8px;
    text-align: center;
    color: #495057;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .document-cards {
        grid-template-columns: 1fr;
    }
    
    .document-card {
        padding: 1rem;
    }
}

.tmobile-logo {
    position: fixed;
    top: 10px;
    right: 20px;
    height: 50px;
    z-index: 1010;
}

@media (max-width: 768px) {
    .tmobile-logo {
        top: 5px;
        right: 10px;
        height: 40px;
    }
}

/* Fund Info Section */
.fund-info {
    padding: 5rem 0;
    background-color: var(--white);
}

.fund-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.fund-description {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
    font-size: var(--text-md);
}

.fund-goals h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: var(--text-xl);
    position: relative;
}

.fund-goals h3::after {
    content: '';
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.goal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.goal-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.goal-icon {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    background-color: rgba(46, 139, 255, 0.1);
    border-radius: 50%;
    position: relative;
    transition: all var(--transition-normal);
}

.goal-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed var(--accent-color);
    opacity: 0.4;
    transition: transform var(--transition-normal);
}

.goal-item:hover .goal-icon::after {
    transform: scale(1.1) rotate(10deg);
}

.goal-item p {
    font-size: var(--text-md);
    line-height: 1.6;
    color: var(--text-color);
}

.fund-activities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.activity-card {
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.activity-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.activity-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: var(--text-lg);
    position: relative;
    padding-bottom: 0.7rem;
}

.activity-card h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.activity-card p {
    line-height: 1.8;
    font-size: var(--text-base);
}

@media (max-width: 992px) {
    .goals-grid,
    .fund-activities {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .goals-grid,
    .fund-activities {
        grid-template-columns: 1fr;
    }
    
    .fund-info {
        padding: 3rem 0;
    }
}

/* Touch enhancements for mobile */
@media (hover: none) {
    .cta-button:active {
        transform: scale(0.98);
    }
    
    .nav a:active,
    .footer-links a:active {
        opacity: 0.7;
    }
}

/* Better handling of images and assets */
img, svg {
    display: block;
    max-width: 100%;
}

/* Improved mobile view */
@media (max-width: 768px) {
    /* Adjust hero section for better readability */
    .hero {
        padding: 8rem 0 6rem;
    }
    
    .hero h2 {
        font-size: var(--text-2xl);
        padding: 0 1rem;
    }
    
    /* Fix container spacing */
    .container {
        padding: 0 1rem;
    }
    
    /* Adjust spacing in all sections */
    .section-title {
        margin-bottom: 2rem;
    }
    
    /* Ensure proper card layout on small screens */
    .benefit-item,
    .pricing-item,
    .contact-info-card,
    .addon-item,
    .document-card,
    .goal-item,
    .activity-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 575px) {
    .hero h2 {
        font-size: var(--text-xl);
    }
    
    /* Remove unnecessary animations on small screens to improve performance */
    .benefit-item,
    .pricing-item,
    .contact-info-card,
    .document-card,
    .addon-item {
        transform: none !important;
        animation: none !important;
        opacity: 1 !important;
    }
    
    /* Better spacing for sections */
    .benefits,
    .why-us,
    .pricing,
    .contact-page,
    .fund-info,
    .roaming,
    .addons,
    .documents-section {
        padding: 3rem 0;
    }
    
    /* Better line height for readability on small screens */
    p, li {
        line-height: 1.7;
    }
    
    /* Fix tables for mobile */
    table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }
    
    /* Prevent fixed position issues on iOS */
    .main-header {
        position: sticky;
        -webkit-overflow-scrolling: touch;
    }
}

/* iOS touch improvements */
.touch-active {
    opacity: 0.7 !important;
}

/* Fixed position improvements for iOS */
.main-header {
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
}

/* Orientations fixes */
@media (max-width: 576px) and (orientation: landscape) {
    .hero {
        padding: 5rem 0 3rem !important;
    }
    
    .page-header {
        padding: 5rem 0 2rem !important;
    }
}

/* Fixing issues on tiny screens */
@media (max-width: 320px) {
    .brand-name h1 {
        font-size: 1.1rem;
    }
    
    .brand-name p {
        font-size: 0.7rem;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .download-link {
        font-size: 0.8rem;
    }
    
    .document-details h3 {
        font-size: 0.9rem;
    }
}

/* Poprawki dla małych ekranów smartfonów */
@media (max-width: 480px) {
    /* Mniejsze fonty dla nagłówków */
    .section-title {
        font-size: var(--text-xl);
    }
    
    .hero h2,
    .page-header h2 {
        font-size: var(--text-xl);
    }
    
    /* Poprawione odstępy */
    .container {
        padding: 0 0.75rem;
    }
    
    /* Lepsza obsługa siatki dokumentów */
    .documents-grid {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Ciaśniejsze odstępy dla lepszego wykorzystania małych ekranów */
    .section-title {
        margin-bottom: 1.5rem;
    }
    
    .document-card,
    .contact-info-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    /* Poprawione logo dla bardzo małych ekranów */
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .brand-name h1 {
        font-size: var(--text-lg);
    }
    
    .brand-name p {
        font-size: var(--text-xs);
    }
    
    /* Większe przyciski dla małych ekranów */
    .document-details a.download-link {
        padding: 12px 20px;
        width: 100%;
        text-align: center;
    }
    
    /* Poprawiona ikona telefonu */
    .tmobile-logo {
        height: 30px;
        top: 5px;
        right: 5px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) {
    /* Lepsza obsługa tapnięć dla elementów interaktywnych */
    a:active, button:active, .hamburger-menu:active {
        opacity: 0.7;
    }
    
    /* Efekt ripple dla przycisków */
    .cta-button:active::after, 
    .document-details a.download-link:active::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 120%;
        height: 120%;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
        animation: ripple 0.6s ease-out;
    }
    
    @keyframes ripple {
        0% {
            transform: translate(-50%, -50%) scale(0);
            opacity: 1;
        }
        80% {
            transform: translate(-50%, -50%) scale(1);
            opacity: 0.5;
        }
        100% {
            transform: translate(-50%, -50%) scale(1);
            opacity: 0;
        }
    }
}

/* Ulepszenia dla urządzeń dotykowych */
.touch-device a,
.touch-device button,
.touch-device input[type="submit"],
.touch-device .hamburger-menu {
    cursor: pointer;
}

.touch-device nav.active {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.touch-device .document-details a.download-link {
    position: relative;
    overflow: hidden;
}

/* Naprawienie problemu z fixed elementami na iOS */
.touch-device .tmobile-logo {
    position: absolute;
}

/* Ulepszenia dla sticky headera na iOS */
@supports (-webkit-touch-callout: none) {
    /* CSS dla Safari na iOS */
    .main-header {
        position: -webkit-sticky;
        position: sticky;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
    }
} 