@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;
    scroll-behavior: smooth;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

#content {
    display: block;
}

#menu {
    display: none;
}

/* --- CONTACT TOPBAR --- */

#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;
}

/* --- 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);
}

#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;
}


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

#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 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;
    }
    .ctb-hours,
    .ctb-divider:last-of-type {
        display: none;
    }
    #contact-topbar {
        height: 25px;
    }
    #contact-topbar-inner {
        justify-content: center;
    }
    .ctb-item {
        font-size: 12px;
    }
    body #topbar {
        top: 25px;
    }
}

/* --- 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;
}

/* --- PAGE HERO --- */

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

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

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

.downloads-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) {
    .downloads-hero { padding: 30px 0 25px; }
    .downloads-hero h1 { font-size: 1.75rem; }
    .downloads-hero-lead { font-size: 0.95rem; }
}

/* --- SEKCJE POBIERANIA --- */

.downloads-section {
    padding: 60px 0;
    background-color: #FFFFFF;
}

.downloads-section:nth-child(even) {
    background-color: rgb(250, 250, 250);
}

.downloads-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 45px;
    padding: 0 5%;
}

.section-header .subtitle {
    display: block;
    color: #373C50;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 10px;
}

.section-header h2 {
    color: rgb(0, 0, 0);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.section-header .section-description {
    max-width: 700px;
    margin: 0 auto;
    color: rgb(0, 0, 0);
    opacity: 0.75;
    line-height: 1.6;
    font-size: 0.97rem;
}

/* --- SIATKA KART --- */

.downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 10px;
}

/* --- KARTA POBIERANIA --- */

.download-card {
    background-color: rgb(247, 247, 247);
    border: 5px solid rgb(238, 238, 238);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.2s ease;
    height: 100%;
    position: relative;
}

.download-card:not(.download-card--soon):hover {
    transform: translateY(-5px);
    border-color: #373C50;
}

.download-card--soon {
    opacity: 0.55;
    cursor: default;
}

/* Okładka dokumentu */

.download-cover {
    width: 100%;
    aspect-ratio: 210 / 148;
    overflow: hidden;
    position: relative;
    background-color: #e8e8e8;
    border-bottom: 5px solid rgb(238, 238, 238);
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.download-card:not(.download-card--soon):hover .download-cover img {
    transform: scale(1.04);
}

/* Placeholder okładki gdy brak obrazka */
.download-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ebebeb;
    gap: 10px;
}

.download-cover-placeholder svg {
    width: 42px;
    height: 42px;
    opacity: 0.35;
}

/* Półprzezroczysty overlay dla kart ze zdjęciem */
.download-cover--with-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    pointer-events: none;
    z-index: 1;
}

/* Badge PDF w rogu */
.download-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: #373C50;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

/* Treść karty */
.download-content {
    padding: 22px 24px 24px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.download-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #000000;
    line-height: 1.35;
}

.download-content p {
    margin: 0 0 18px 0;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.5;
    flex-grow: 1;
}

/* Przycisk pobierania */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #373C50;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 11px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
    margin-top: auto;
    align-self: flex-start;
}

.download-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.download-card:not(.download-card--soon):hover .download-btn {
    background-color: #252830;
    transform: translateY(-1px);
}

/* Przycisk "Wkrótce" */
.download-btn--soon {
    background-color: rgb(200, 200, 200);
    color: rgba(0, 0, 0, 0.5);
    cursor: default;
    pointer-events: none;
}

.download-btn--soon:hover {
    background-color: rgb(200, 200, 200);
    transform: none;
}

/* --- STOPKA --- */

#footer {
    background-color: #ffffff;
    border-top: 4px solid rgb(245, 245, 245);
}

.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;
        text-align: left;
    }
    .footer-col {
        padding-bottom: 20px;
        border-bottom: 2px solid #f9f9f9;
    }
    .footer-col:last-child {
        border-bottom: none;
    }
}

/* --- RESPONSYWNOSC SEKCJI --- */

@media screen and (max-width: 767px) {
    .downloads-section {
        padding: 40px 0;
    }
    .downloads-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .section-header h2 {
        font-size: 1.5rem;
    }
    .section-header {
        text-align: left;
        padding: 0;
    }
    .section-header .section-description {
        margin-left: 0;
    }
}
