/* =========================================
       REFINED PALETTE & CENNIK STYLES
       ========================================= */
:root {
    /* Refined Palette - Clean, Medical, High-End */
    --primary-green: #99a892;
    /* Sage Green - Headers, Buttons */
    --accent-pink: #dcc4c4;
    /* Dusty Pink - Subtle highlights, borders */
    --accent-beige: #dfd1bf;
    /* Beige - Soft backgrounds */
    --bg-white: #ffffff;
    /* Clean White */
    --bg-offwhite: #fcfbfa;
    /* Very subtle warm off-white */
    --text-dark: #2c302e;
    /* Dark Charcoal for readability */
    --text-muted: #6b706c;
    /* Muted grey for descriptions */
    --border-light: #eae6e1;
    /* Light grey/beige for table borders */

    /* Keep old variables if needed for other pages, but these override the main ones */
    --color-green: var(--primary-green);
    --color-pink: var(--accent-pink);
    --color-beige: var(--accent-beige);
    --color-text: var(--text-dark);
    --color-white: var(--bg-white);
}

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

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
}


a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

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

/* Buttons */
.btn,
.btn-book {
    display: inline-block;
    background-color: var(--color-green);
    color: var(--color-white);
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn:hover,
.btn-book:hover {
    background-color: var(--color-pink);
    color: var(--color-text);
}

/* Header */
header {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.top-bar {
    background-color: var(--color-green);
    color: var(--color-white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    font-size: 0.9rem;
}

.top-bar a {
    color: var(--color-white);
    margin-left: 1rem;
}

.top-bar a:hover {
    color: var(--color-beige);
}

/* Social SVG icon links */
.social-links {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-left: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--color-white);
}

.social-links a:hover {
    background-color: var(--color-white);
    color: var(--color-green);
}

.social-links svg {
    width: 15px;
    height: 15px;
    display: block;
}

/* Logo row – full-width band ABOVE the menu, exactly like the original layout */
.header-logo {
    display: flex;
    justify-content: center;
    padding: 1.5rem 2rem 1rem;
}

.logo {
    display: block;
    width: 100%;
    /* max-width: 460px; */
    max-width: none;
    /* the logo "spans" the header width above the menu */
}

.logo img {
    width: 100%;
    height: auto;
}

/* Menu row – below the logo, centred; stays accessible while scrolling */
.main-nav {
    display: flex;
    justify-content: center;
    padding: 0 1rem 1rem;
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu a {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-green);
    transition: var(--transition);
}

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

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Features */
.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    background-color: var(--color-beige);
}

.feature-box {
    background-color: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-box h3 {
    color: var(--color-green);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-box p {
    margin-bottom: 1.5rem;
    color: #555;
}

/* Offer Grid */
.offer-grid {
    padding: 4rem 0;
    text-align: center;
}

.offer-grid h2 {
    color: var(--color-green);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-white);
    border: 1px solid var(--color-beige);
    border-radius: 8px;
    padding: 1.5rem 1rem;
    transition: var(--transition);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--color-green);
}

.grid-item img {
    margin-bottom: 1rem;
    border-radius: 4px;
}

.grid-item span {
    font-weight: 600;
    color: var(--color-green);
    text-align: center;
}

/* Tags Section */
.tags-section {
    background-color: var(--color-pink);
    padding: 2.5rem 0;
}

.tags-section .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tag {
    background-color: var(--color-green);
    color: var(--color-white);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
}

.tag:hover {
    background-color: var(--color-text);
}

/* About & Problem Sections */
.about-clinic,
.problem-section {
    padding: 5rem 0;
    text-align: center;
}

.about-clinic {
    background-color: var(--color-white);
}

.problem-section {
    background-color: var(--color-beige);
}

.about-clinic h2,
.problem-section h2 {
    color: var(--color-green);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.about-clinic h3 {
    color: var(--color-text);
    font-weight: 400;
    margin-bottom: 2rem;
    font-size: 1.3rem;
}

.problem-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #555;
}

/* Content Section */
.content-section {
    padding: 4rem 0;
    background-color: var(--color-white);
}

.content-section .container {
    max-width: 800px;
}

.content-section h2 {
    color: var(--color-green);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.content-section h3 {
    color: var(--color-green);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.content-section p {
    margin-bottom: 1rem;
    color: #444;
    text-align: justify;
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
    background-color: var(--color-beige);
}

.blog-section h2 {
    text-align: center;
    color: var(--color-green);
    margin-bottom: 2rem;
    font-size: 2rem;
}

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

.blog-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

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

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.blog-card h4 {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-card h4 a {
    color: var(--color-green);
}

.blog-card h4 a:hover {
    color: var(--color-pink);
}

.blog-card p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--color-green);
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more:hover {
    color: var(--color-pink);
}

/* Footer */
footer {
    background-color: var(--color-green);
    color: var(--color-white);
    padding: 3rem 0 1rem;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 3rem;
}

.footer-contact h3,
.footer-links h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--color-beige);
}

.footer-contact p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.footer-contact a {
    color: var(--color-white);
    border-bottom: 1px solid transparent;
}

.footer-contact a:hover {
    border-bottom-color: var(--color-beige);
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-beige);
}

.footer-links a:hover {
    color: var(--color-white);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .main-header {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-menu {
        justify-content: center;
        gap: 1rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
       REFINED PALETTE & CENNIK STYLES
       ========================================= */
:root {
    /* Refined Palette - Clean, Medical, High-End */
    --primary-green: #99a892;
    /* Sage Green - Headers, Buttons */
    --accent-pink: #dcc4c4;
    /* Dusty Pink - Subtle highlights, borders */
    --accent-beige: #dfd1bf;
    /* Beige - Soft backgrounds */
    --bg-white: #ffffff;
    /* Clean White */
    --bg-offwhite: #fcfbfa;
    /* Very subtle warm off-white */
    --text-dark: #2c302e;
    /* Dark Charcoal for readability */
    --text-muted: #6b706c;
    /* Muted grey for descriptions */
    --border-light: #eae6e1;
    /* Light grey/beige for table borders */

    /* Keep old variables if needed for other pages, but these override the main ones */
    --color-green: var(--primary-green);
    --color-pink: var(--accent-pink);
    --color-beige: var(--accent-beige);
    --color-text: var(--text-dark);
    --color-white: var(--bg-white);
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

/* Cennik Hero Section */
.cennik-hero {
    background: var(--bg-offwhite);
    padding: 6rem 2rem 4rem;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.cennik-hero h1 {
    font-size: 3rem;
    color: var(--text-dark);
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.cennik-hero h1 span {
    color: var(--primary-green);
    font-weight: 600;
}

.cennik-hero p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.btn-pdf {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 2rem;
    box-shadow: 0 4px 15px rgba(153, 168, 146, 0.1);
}

.btn-pdf:hover {
    background: var(--primary-green);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 168, 146, 0.2);
}

/* Sticky Category Navigation */
.category-nav {
    background: var(--bg-white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    /* Adjust if header overlaps */
    z-index: 900;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.category-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    padding: 0 1rem;
}

.cat-link {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-offwhite);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.cat-link:hover {
    color: var(--primary-green);
    border-color: var(--accent-pink);
    background: var(--bg-white);
}

/* Pricing Container & Sections */
.pricing-container {
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-section {
    padding: 4rem 2rem;
    border-bottom: 1px solid var(--border-light);
}

.pricing-section h2 {
    font-size: 2.2rem;
    color: var(--primary-green);
    font-weight: 400;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    letter-spacing: 1px;
}

.pricing-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent-pink);
    margin: 1rem auto 0;
}

/* Treatment Blocks & Tables */
.treatment-block {
    margin-bottom: 3.5rem;
}

.treatment-block h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--accent-beige);
    padding-left: 1rem;
}

.treatment-desc {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
    font-size: 0.95rem;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-light);
}

.pricing-table thead {
    background: var(--primary-green);
    color: var(--bg-white);
}

.pricing-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.pricing-table th:last-child {
    text-align: right;
}

.pricing-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.pricing-table tbody tr:nth-child(even) {
    background: rgba(223, 209, 191, 0.15);
    /* Subtle beige tint */
}

.pricing-table tbody tr:hover {
    background: rgba(220, 196, 196, 0.2);
    /* Subtle pink tint */
    transition: background 0.2s ease;
}

.pricing-table td:last-child {
    font-weight: 600;
    color: var(--primary-green);
    text-align: right;
    white-space: nowrap;
}

.footnote {
    font-size: 0.85rem;
    color: var(--accent-pink);
    filter: brightness(0.8);
    /* Darkens pink slightly for readability */
    margin-top: -0.5rem;
    margin-bottom: 2rem;
    padding-left: 1rem;
    font-style: italic;
}

/* Responsive adjustments for tables */
@media (max-width: 768px) {

    .pricing-table th,
    .pricing-table td {
        padding: 0.8rem;
        font-size: 0.85rem;
    }

    .pricing-section {
        padding: 3rem 1rem;
    }

    .cennik-hero h1 {
        font-size: 2.2rem;
    }

    .category-nav {
        position: relative;
        /* Unstick on mobile to prevent overlap issues */
    }
}

/* =========================================
       KONTAKT PAGE STYLES
       ========================================= */

/* Active nav link state */
.nav-menu a.active {
    color: var(--primary-green);
    font-weight: 600;
}

.nav-menu a.active::after {
    width: 100%;
}

/* Hero Image */
.kontakt-hero {
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    position: relative;
    background: var(--border-light);
}

.kontakt-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Details Section */
.kontakt-details {
    padding: 5rem 0;
    background: var(--bg-offwhite);
}

.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Cards */
.kontakt-card {
    background: var(--bg-white);
    padding: 3.5rem;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    border-top: 4px solid var(--primary-green);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kontakt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.kontakt-card h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 1rem;
}

.kontakt-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-pink);
}

/* Contact Info specifics */
.contact-info p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
}

.contact-info .address span {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-style: italic;
}

.contact-info .email a,
.contact-info .phone a {
    color: var(--primary-green);
    font-weight: 500;
    font-size: 1.3rem;
    transition: color 0.2s ease;
    display: inline-block;
}

.contact-info .email a:hover,
.contact-info .phone a:hover {
    color: var(--text-dark);
}

.kontakt-card .btn-book {
    margin-top: 2rem;
    display: inline-block;
    background: var(--primary-green);
    color: var(--bg-white);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(153, 168, 146, 0.2);
}

.kontakt-card .btn-book:hover {
    background: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(44, 48, 46, 0.15);
}

/* Bank Card Specifics */
.bank-card {
    border-top: 4px solid var(--accent-beige);
    background: linear-gradient(145deg, var(--bg-white) 0%, #fdfcfb 100%);
}

.bank-card h3 {
    font-size: 1.6rem;
    color: var(--primary-green);
    margin-bottom: 2rem;
    font-weight: 500;
}

.bank-intro {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bank-details {
    background: rgba(223, 209, 191, 0.12);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-beige);
    margin-bottom: 2rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.bank-details strong {
    color: var(--primary-green);
    font-family: var(--font-main);
    display: inline-block;
    width: 90px;
    font-weight: 600;
}

.bank-title-instr {
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.bank-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2.5rem;
}

.bank-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.bank-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    background: var(--accent-pink);
    border-radius: 50%;
}

.bank-footer {
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    line-height: 1.6;
}

.bank-footer a {
    color: var(--primary-green);
    font-weight: 600;
    transition: color 0.2s;
}

.bank-footer a:hover {
    color: var(--accent-pink);
}

/* Responsive */
@media (max-width: 900px) {
    .kontakt-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .kontakt-card {
        padding: 2.5rem;
    }

    .kontakt-hero {
        max-height: 300px;
    }

    .bank-details strong {
        display: block;
        width: auto;
        margin-bottom: 0.2rem;
    }
}