/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Zmienne */
:root {
    --color-primary: #00283d;
    --color-primary-dark: #0052a3;
    --color-text: #333;
    --color-text-light: #666;
    --color-background: #f5f5f5;
    --color-white: #fff;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --border-radius: 8px;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Podstawowe style */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-background);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header i nawigacja */
header {
    background: var(--color-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    padding: var(--spacing-md) 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-text);
    text-decoration: none;
}

.menu {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.menu a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: var(--transition);
}

.menu a:hover {
    color: var(--color-text);
}

/* Main content */
main {
    min-height: calc(100vh - 200px);
    padding: var(--spacing-xl) 0;
}

/* Footer */
footer {
    background: var(--color-white);
    padding: var(--spacing-xl) 0;
    text-align: center;
    color: var(--color-text-light);
}

/* Typografia */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
}

/* Linki */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

/* Przyciski */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

/* Strona główna */
.home-page {
    padding: var(--spacing-xl) 0;
}

.home-page h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.home-page .meta-description {
    font-size: 1.125rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.home-page .main-content {
    margin-bottom: var(--spacing-xl);
}

/* Blog Preview */
.blog-preview {
    padding: var(--spacing-xl) 0;
}

.blog-preview h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.blog-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.blog-card-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: var(--spacing-md);
}

.blog-card h3 {
    margin: 0 0 var(--spacing-sm);
    font-size: 1.25rem;
}

.blog-card h3 a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

.blog-card h3 a:hover {
    color: var(--color-primary);
}

.blog-card-meta {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.blog-card-excerpt {
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

.blog-card .read-more {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.blog-card .read-more:hover {
    color: var(--color-primary-dark);
}

.blog-preview-footer {
    text-align: center;
}

/* Style dla wpisów blogowych */
.blog-post {
    width: 100%;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.post-header {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.post-meta {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-top: var(--spacing-sm);
}

.post-meta > span {
    margin: 0 var(--spacing-sm);
}

.post-featured-image {
    margin: var(--spacing-xl) 0;
    text-align: center;
    width: 100%;
    height: 0;
    padding-bottom: 62.5%; /* proporcja 8:5 (800x500) */
    position: relative;
    overflow: hidden;
}

.post-featured-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.post-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.post-content p {
    margin-bottom: var(--spacing-md);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: var(--spacing-md) 0;
}

/* Formularze */
.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 2px rgba(0,102,204,0.2);
}

input[type="tel"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* Karty */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Related posts */
.related-posts {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-content h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.post-card-meta {
    font-size: 0.9rem;
    color: #666;
}

.post-card-meta > span {
    margin-right: 1rem;
}

/* Responsywność */
@media (min-width: 768px) {
    nav .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .menu {
        margin-top: 0;
    }
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .menu {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Menu główne */
.main-nav {
    position: relative;
}

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

.nav-list li {
    position: relative;
}

.nav-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--primary-color);
}

/* Dropdown menu */
.has-dropdown > a {
    padding-right: 2rem;
}

.has-dropdown > a i {
    font-size: 0.8em;
    transition: transform 0.3s;
}

.has-dropdown:hover > a i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: var(--z-dropdown);
    padding: 0.5rem 0;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    padding: 0.5rem 1rem;
    display: block;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: var(--gray-100);
}

/* Menu mobilne */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-md);
        padding: 1rem;
        z-index: var(--z-dropdown);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        padding: 0.75rem 1rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 1rem;
        display: none;
    }

    .has-dropdown.active .dropdown-menu {
        display: block;
    }

    .has-dropdown > a i {
        margin-left: auto;
    }
}

/* Header */
.site-header {
    background: #fff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-logo-image {
    max-height: 60px;
    max-width: 200px;
    object-fit: contain;
}

/* Footer */
.site-footer {
    background: #00283d;
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    color: #fff;
}

.footer-links h4 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    color: #fff;
}

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

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3498db;
}

.site-footer .footer-links {
    text-align: center;
}

.site-footer .menu {
    justify-content: center;
    align-items: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Main content */
.site-main {
    min-height: calc(100vh - 300px);
    padding: 2rem 0;
}

/* Nagłówek kategorii */
.category-header {
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.category-header h1 {
    margin: 0 0 1rem;
    font-size: 2.5rem;
    color: #333;
}

.category-description {
    margin: 0;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

/* Sekcja Hero */
.hero-section {
    background: linear-gradient(135deg, #00283d 0%, #0d47a1 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

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

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Banner promocyjny */
.promo-banner {
    background: #00b8c7;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.promo-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Sekcja promocyjna */
.promo-section {
    padding: 60px 0;
    background: #f5f5f5;
}

.promo-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.promo-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-5px);
}

.promo-card h3 {
    color: #00283d;
    margin-bottom: 15px;
}

.promo-card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.promo-card .promo-text {
    color: #00b8c7;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Przyciski */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #1e828b;
    color: white;
}

.btn-primary:hover {
    background: #1e828b;
}

.btn-secondary {
    background: white;
    color: #00b8c7;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

.btn-outline {
    border: 2px solid #00283d;
    color: #fff;
}

.btn-outline:hover {
    background: #00283d;
    color: #a6ce3a;
}

/* Responsywność */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .promo-grid {
        grid-template-columns: 1fr;
    }
}

/* Top bar z numerem telefonu */
.top-bar {
    background: #00283d;
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.phone-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.phone-link:hover {
    opacity: 0.8;
}

.phone-link i {
    font-size: 1rem;
} 

/* Sekcja telefonów */
.phone-packages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.phone-package-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.phone-package-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.phone-package-card .phone-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    margin: 0.5rem 0;
}

.phone-package-card .phone-promo-text {
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.phone-package-card .phone-package-details {
    margin: 1rem 0;
}

.phone-package-card .phone-data-package {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.phone-package-card .phone-data-info {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.phone-package-card .phone-additional-info {
    margin: 1rem 0;
}

.phone-package-card .phone-additional-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.phone-package-card .phone-unlimited {
    margin: 1rem 0;
    font-weight: bold;
}

.phone-package-card .phone-details {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.phone-package-card .btn {
    margin-top: auto;
    text-align: center;
}

/* Responsywność dla telefonów */
@media (max-width: 1200px) {
    .phone-packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .phone-packages-grid {
        grid-template-columns: 1fr;
    }
}
/* Style dla etykiet telefonów */
.phone-promo-badge {
    background: #fff3f3;
    border-left: 4px solid #e74c3c;
    padding: 0.75rem;
    margin: 1rem 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-promo-badge i {
    color: #e74c3c;
    font-size: 1.2rem;
}

.phone-price-container {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.phone-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-primary);
    margin: 0;
}

.phone-price-info {
    color: #666;
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
}

.phone-data-badge {
    background: #e8f4ff;
    border-left: 4px solid #3498db;
    padding: 0.75rem;
    margin: 1rem 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-data-badge i {
    color: #3498db;
    font-size: 1.2rem;
}

.phone-info-badge {
    background: #f0f7ff;
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-info-badge i {
    color: #3498db;
    font-size: 1rem;
}

.phone-unlimited-badge {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 0.75rem;
    margin: 1rem 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-unlimited-badge i {
    color: #4caf50;
    font-size: 1.2rem;
}

.phone-details-badge {
    background: #f5f5f5;
    padding: 0.75rem;
    margin: 1rem 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-details-badge i {
    color: #666;
    font-size: 1rem;
}

.phone-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 1rem;
    font-weight: bold;
}

.phone-order-btn i {
    font-size: 1.1rem;
}

/* Przyciski z numerem telefonu */
.btn.phone-order-btn,
a.btn[href^="tel:"] {
    background: #1e828b;
    color: #fff;
}

.btn.phone-order-btn:hover,
a.btn[href^="tel:"]:hover {
    background: #1e828b;
    color: #fff;
}

/* Urządzenia (obraz + opis, naprzemienny układ) */
.netia-devices {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(180deg, #f7fbfc 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.netia-device-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    position: relative;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.netia-device-row:nth-child(even) {
    flex-direction: row-reverse;
}

.netia-device-row::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 6px;
    background: #00b8c7;
}

.netia-device-row:nth-child(even)::before {
    left: auto;
    right: 0;
    background: #1e828b;
}

.netia-device-image {
    flex: 0 0 45%;
}

.netia-device-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 0;
    box-shadow: none;
}

.netia-device-desc {
    flex: 1 1 auto;
}

.netia-device-desc-inner {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text);
}

@media (max-width: 992px) {
    .netia-device-row {
        flex-direction: column;
        text-align: center;
    }
    .netia-device-row:nth-child(even) {
        flex-direction: column;
    }
    .netia-device-row::before,
    .netia-device-row:nth-child(even)::before {
        left: 0;
        right: 0;
        width: auto;
        height: 4px;
        background: #00b8c7;
    }
    .netia-device-image {
        width: 100%;
        flex: 0 0 auto;
    }
}