@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/Inter-VariableFont_opsz,wght.woff2') format('woff2');
}

@font-face {
    font-family: 'Manrope';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('../fonts/Manrope-VariableFont_wght.ttf') format('truetype');
}

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

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

@keyframes slideOut {
    from { transform: translateX(0); }
    to   { transform: translateX(-100%); }
}

body, html {
    background-color: #FFFFFF;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3 {
    font-family: 'Manrope', 'Inter', sans-serif;
}

#content { display: block; }

/* --- CONTACT TOP BAR --- */

#contact-topbar {
    width: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid rgb(245, 245, 245);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    line-height: 1;
    height: 27px;
}

#contact-topbar-inner {
    width: 93%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    height: 100%;
    padding: 0;
}

.ctb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.ctb-item:hover { color: #373C50; }

.ctb-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.75;
}

.ctb-divider {
    width: 1px;
    height: 14px;
    background-color: rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

@media screen and (max-width: 767px) {
    #contact-topbar { height: 25px; }
    #contact-topbar-inner { justify-content: center; }
    .ctb-item { font-size: 12px; }
    .ctb-hours,
    .ctb-divider:last-of-type { display: none; }
}

/* --- TOPBAR --- */

#topbar {
    margin-left: auto;
    margin-right: auto;
    width: 100vw;
    height: fit-content;
    top: 27px;
    position: fixed;
    z-index: 1000;
    background-color: #FFFFFF;
    border-bottom: 4px solid rgb(245, 245, 245);
}

@media screen and (max-width: 767px) {
    #topbar { top: 25px; }
}

#topbar_content {
    margin-left: auto;
    margin-right: auto;
    width: 93%;
    height: fit-content;
    display: flex;
}

.logo {
    width: 50%;
    height: fit-content;
    text-align: left;
}

@media screen and (max-width: 1023px) {
    #topbar_content {
        margin-top: 6%;
        margin-bottom: 6%;
    }
    .logo {
        width: 60%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .logo a {
        text-decoration: none;
        display: flex;
        align-items: center;
    }
    .logo a img {
        width: 52vw;
        height: 100%;
    }
}

@media screen and (min-width: 1024px) {
    #topbar_content {
        margin-top: 1%;
        margin-bottom: 1%;
        align-items: center;
    }
    .logo {
        width: auto;
        flex-shrink: 0;
    }
    .logo a {
        text-decoration: none;
        display: flex;
        align-items: center;
    }
    .logo a img {
        height: 40px;
        width: auto;
    }
    .topbar-cta {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }
}

@media screen and (max-width: 1022px) {
    #nav_links { display: none; }
    .topbar-cta { display: none; }
}

@media screen and (min-width: 1023px) {
    #nav_links {
        flex: 1;
        text-align: center;
        font-size: 16px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

@media screen and (min-width: 1440px) {
    #nav_links {
        flex: 1;
        text-align: center;
        font-size: 143%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

#nav_links a {
    height: fit-content;
    color: rgba(0, 0, 0, 0.856);
    font-weight: 440;
    margin-left: 16px;
    text-decoration: none;
    white-space: nowrap;
}

#nav_links a:hover { color: rgb(121, 134, 148); }

#nav_links a[aria-current="page"] { color: rgb(121, 134, 148); }

#nav_links a[aria-current="page"]:hover { color: rgba(0, 0, 0, 0.856); }
/* --- TOPBAR CTA BUTTONS --- */
.topbar-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    border: 2px solid #373C50;
}

.topbar-btn--primary {
    background-color: #373C50;
    color: #ffffff;
}

.topbar-btn--primary:hover {
    background-color: #ffffff;
    color: #373C50;
}

.topbar-btn--secondary {
    background-color: transparent;
    color: #373C50;
}

.topbar-btn--secondary:hover {
    background-color: #373C50;
    color: #ffffff;
}


/* --- MOBILE MENU --- */

#menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 1000;
    display: none;
    transform: translateX(-100%);
}

#menu_toggle {
    display: flex;
    justify-content: end;
    align-items: center;
    width: 50%;
    height: min-content;
    cursor: pointer;
    z-index: 1001;
}

#menu_toggle img {
    width: 20%;
    height: 30%;
}

@media (min-width: 1024px) {
    #menu_toggle { display: none; }
}

#menu_icon {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}

#menu_toggle.active #menu_icon { transform: rotate(90deg); }

#nav_links_menu {
    display: flex;
    width: 90%;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    justify-content: center;
    height: 70vh;
    padding: 20px;
    text-align: center;
}

#nav_links_menu a {
    color: rgb(55, 60, 80);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 410;
    margin: 0;
    padding: 10px 20px;
    position: relative;
    transition: color 0.2s ease, transform 0.2s ease;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: calc(var(--order) * 0.1s);
}

#nav_links_menu a:hover {
    color: #252830;
    transform: translateX(10px);
}

#nav_links_menu a[aria-current="page"] { color: rgb(121, 134, 148); }

#nav_links_menu a[aria-current="page"]:hover { color: rgb(55, 60, 80); }

#nav_links_menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #252830;
    transition: width 0.3s ease;
}

#nav_links_menu a:hover::after { width: 100%; }
.mobile-menu-cta {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    white-space: nowrap;
}


@media (max-width: 768px) {
    #nav_links_menu a { font-size: 135%; }
}

/* --- HEADER SPACER --- */

.header-spacer { height: 147px; }

@media screen and (max-width: 1023px) {
    .header-spacer { height: 127px; }
}

@media screen and (max-width: 767px) {
    .header-spacer { height: 125px; }
}

/* --- BREADCRUMBS --- */

#breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.75);
}

.breadcrumbs_info {
    font-weight: 500;
    margin-right: 4px;
}

/* --- AKTUALNOSCI HERO --- */

.aktualnosci-hero {
    width: 100%;
    background-color: rgb(247, 247, 247);
    border-bottom: 5px solid rgb(238, 238, 238);
    padding: 50px 0 40px;
}

.aktualnosci-hero-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.aktualnosci-hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 18px 0;
    line-height: 1.15;
}

.aktualnosci-hero-lead {
    font-size: 1.05rem;
    color: rgba(0, 0, 0, 0.75);
    line-height: 1.65;
    max-width: 780px;
    margin: 0;
    border-left: 4px solid #373C50;
    padding-left: 20px;
}

@media screen and (max-width: 767px) {
    .aktualnosci-hero { padding: 30px 0 25px; }
    .aktualnosci-hero h1 { font-size: 1.75rem; }
    .aktualnosci-hero-lead { font-size: 0.95rem; }
}

/* --- SIATKA WPISÓW --- */

.aktualnosci-section {
    padding: 60px 0 80px;
}

.aktualnosci-section-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.aktualnosci-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media screen and (max-width: 1023px) {
    .aktualnosci-section { padding: 40px 0 60px; }
    .aktualnosci-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media screen and (max-width: 600px) {
    .aktualnosci-grid { grid-template-columns: 1fr; }
}

/* --- KARTA WPISU --- */

.ak-card {
    background-color: #FFFFFF;
    border: 5px solid rgb(238, 238, 238);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ak-card:hover {
    transform: translateY(-4px);
    border-color: #373C50;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.ak-card__img-link {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-color: rgb(238, 238, 238);
}

.ak-card__img-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ak-card:hover .ak-card__img-link img { transform: scale(1.03); }

.ak-card__body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ak-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ak-card__date {
    font-size: 0.82rem;
    color: rgba(0, 0, 0, 0.5);
}

.ak-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    line-height: 1.35;
    margin: 0 0 10px;
}

.ak-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ak-card__title a:hover { color: #373C50; }

.ak-card__excerpt {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* --- BADGE KATEGORII --- */

.ak-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 9px;
    border-radius: 20px;
    white-space: nowrap;
}

.ak-badge--poradnik  { background-color: #DBEAFE; color: #1D4ED8; }
.ak-badge--nowosci   { background-color: #DCFCE7; color: #15803D; }
.ak-badge--event     { background-color: #FFEDD5; color: #C2410C; }
.ak-badge--produkty  { background-color: #F1F5F9; color: #475569; }

/* --- KOMUNIKAT PUSTEJ LISTY --- */

.ak-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: rgba(0, 0, 0, 0.5);
    font-size: 1rem;
}

/* --- SZABLON ARTYKUŁU --- */

.article-wrapper {
    width: 90%;
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 0 80px;
}

.article-header {
    margin-bottom: 40px;
}

.article-header__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.article-header__date {
    font-size: 0.88rem;
    color: rgba(0, 0, 0, 0.55);
}

.article-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #000000;
    line-height: 1.25;
    margin: 0 0 28px;
}

.article-header__cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    background-color: rgb(238, 238, 238);
}

@media screen and (max-width: 1023px) {
    .article-wrapper { padding: 32px 0 60px; }
    .article-header h1 { font-size: 1.55rem; }
}

/* --- TREŚĆ ARTYKUŁU (typografia) --- */

.article-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(0, 0, 0, 0.85);
}

.article-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin: 2em 0 0.6em;
    line-height: 1.3;
}

.article-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000000;
    margin: 1.6em 0 0.5em;
}

.article-content p { margin: 0 0 1.2em; }

.article-content ul,
.article-content ol {
    margin: 0 0 1.2em;
    padding-left: 1.5em;
}

.article-content li { margin-bottom: 0.4em; }

.article-content strong { font-weight: 600; color: #000000; }

.article-content a {
    color: #373C50;
    text-decoration: underline;
}

.article-content a:hover { color: #252830; }

.article-content blockquote {
    border-left: 4px solid #373C50;
    margin: 1.6em 0;
    padding: 0.6em 0 0.6em 1.2em;
    color: rgba(0, 0, 0, 0.7);
    font-style: italic;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 1.6em auto;
}

/* --- CTA POD ARTYKUŁEM --- */

.article-cta {
    margin-top: 48px;
    background-color: rgb(247, 247, 247);
    border: 5px solid rgb(238, 238, 238);
    border-radius: 16px;
    padding: 36px 40px;
    text-align: center;
}

.article-cta h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #000000;
    margin: 0 0 10px;
}

.article-cta p {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.7);
    margin: 0 0 24px;
    line-height: 1.6;
}

.article-cta .primary-btn {
    display: inline-block;
    background-color: #373C50;
    color: #FFFFFF;
    padding: 13px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border: 2px solid #373C50;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.article-cta .primary-btn:hover {
    background-color: #FFFFFF;
    color: #373C50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(55, 60, 80, 0.2);
}

@media screen and (max-width: 600px) {
    .article-cta { padding: 28px 24px; }
    .article-cta h2 { font-size: 1.2rem; }
}

/* --- FOOTER --- */

.footer-section {
    width: 100%;
    background-color: #FFFFFF;
    border-top: 5px solid rgb(238, 238, 238);
    color: #000000;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #373C50;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-logo {
    width: 150px;
    height: auto;
    margin-bottom: 15px;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.75);
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials img {
    width: 28px;
    height: 28px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-socials img:hover { opacity: 1; }

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

.links-col li { margin-bottom: 12px; }

.links-col a {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.8);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.links-col a:hover {
    color: #373C50;
    text-decoration: underline;
}

.contact-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(0, 0, 0, 0.8);
}

.footer-cta {
    display: inline-block;
    color: #373C50;
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    font-size: 0.95rem;
}
.footer-review-link {
    display: block;
    margin-top: 6px;
}


.footer-bottom {
    text-align: center;
    border-top: 2px solid rgb(245, 245, 245);
    padding-top: 30px;
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.85rem;
}

.footer-legal-links { margin-top: 8px; }

.footer-legal-links a {
    color: rgba(0, 0, 0, 0.5);
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: rgba(0, 0, 0, 0.75);
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-col {
        padding-bottom: 20px;
        border-bottom: 2px solid #f9f9f9;
    }
    .footer-col:last-child { border-bottom: none; }
}
