/* ===== FONTS (self-hosted) ===== */
/* Unbounded is a variable font: same WOFF2 covers weights 500–800,
   split by unicode-range so the browser only fetches the subset it needs.
   The -ext WOFF2 is subset (118KB -> ~5KB) to the Latin-Extended letters the
   headings use: the Slovak alphabet plus anything else found in heading text.
   The ext unicode-range below (and the ?v=) are GENERATED by
   tools/fonts/subset-unbounded-ext.mjs from the built site, so don't hand-edit
   them; instead edit content, `npm run build`, re-run that script, build again.
   A non-Slovak Latin-Extended char that only appears outside headings is not
   kept, and would fall back to a system font (graceful) rather than tofu. */
@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/unbounded-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/unbounded-latin-ext.subset.woff2?v=c6b35273') format('woff2');
    unicode-range: U+010C-010F, U+0139-013A, U+013D-013E, U+0147-0148, U+0154-0155, U+0160-0161, U+0164-0165, U+017D-017E;
}
@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/unbounded-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/unbounded-latin-ext.subset.woff2?v=c6b35273') format('woff2');
    unicode-range: U+010C-010F, U+0139-013A, U+013D-013E, U+0147-0148, U+0154-0155, U+0160-0161, U+0164-0165, U+017D-017E;
}
@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/assets/fonts/unbounded-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Unbounded';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/assets/fonts/unbounded-latin-ext.subset.woff2?v=c6b35273') format('woff2');
    unicode-range: U+010C-010F, U+0139-013A, U+013D-013E, U+0147-0148, U+0154-0155, U+0160-0161, U+0164-0165, U+017D-017E;
}

/* Satoshi: one file per weight, no unicode subsetting (covers Latin Ext natively).
   600 is not offered by Fontshare; browsers synthesise it from 500. */
@font-face {
    font-family: 'Satoshi';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/assets/fonts/satoshi-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Satoshi';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/assets/fonts/satoshi-500.woff2') format('woff2');
}
@font-face {
    font-family: 'Satoshi';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/assets/fonts/satoshi-700.woff2') format('woff2');
}

/* ===== DESIGN TOKENS ===== */
:root {
    /* Colors */
    --color-primary: #209DB6;
    --color-primary-hover: #1b859a;
    --color-secondary: #EADD61;
    --color-accent: #7D0840;
    --color-bg-main: #F9F6F1;
    --color-bg-section: #D7EEF1;
    --color-bg-dark: #07191D;
    --color-text-main: #07191D;
    --color-text-light: #F9F6F1;
    --color-text-muted: #4a5568;
    --white: #ffffff;

    /* Typography */
    --font-heading: 'Unbounded', sans-serif;
    --font-subheading: 'Satoshi', sans-serif;
    --font-body: 'Satoshi', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Border Radius */
    --radius-sm: 0.38rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;

    /* Effects */
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --box-shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--color-primary);
    color: var(--color-text-light);
    padding: 0.6rem 1rem;
    z-index: 2000;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
    /* Translate fully above the viewport so the link is hidden regardless
       of its rendered height. Plain `top: -40px` left ~8px of the link
       peeking below the viewport once line-height + padding crossed 40px. */
    transform: translateY(-100%);
    transition: transform 0.15s ease;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}

/* The skip link moves focus into <main> (which has tabindex="-1") so the
   next Tab press cycles through page content rather than re-entering the
   nav. Suppress the default focus ring: it would draw around the entire
   page, and the scroll-into-view + content focus is the actual feedback. */
main:focus {
    outline: none;
}

:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 2px;
}

.btn:focus-visible,
.nav-links a:focus-visible {
    outline-offset: 4px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    line-height: 1.6;
    font-size: 1.125rem;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-main);
    margin-bottom: var(--spacing-sm);
    line-height: 1.15;
}

h1 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h2 {
    font-family: var(--font-subheading);
    font-size: 2.4rem;
    font-weight: 700;
}

h3 {
    font-family: var(--font-subheading);
    font-size: 1.4rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== LAYOUT UTILITIES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title h2 {
    margin-bottom: 0.5rem;
}

.underline {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    margin-bottom: 1rem;
    border-radius: 2px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 500px;
}

.bg-light {
    background-color: var(--color-bg-section);
}

.w-100 {
    width: 100%;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 157, 182, 0.35);
    color: var(--color-text-light);
}

.btn-secondary {
    background-color: rgba(234, 221, 97, 0.1);
    color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-text-main);
    transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(249, 246, 241, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-text-main);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links li a {
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    color: var(--color-text-main);
}

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

.nav-btn {
    padding: 0.5rem 1.5rem;
}

.nav-lang {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
}

.nav-lang:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: 0;
    padding: 0.5rem;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-text-main);
    border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background: url('/assets/img/bg-nebula.webp') center/cover no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 25, 29, 0.5);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    overflow-wrap: break-word;
}

.hero-content .hero-lead {
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0 auto 1.25rem;
    max-width: 36rem;
    color: rgba(249, 246, 241, 0.95);
    font-weight: 400;
}

.hero-content .hero-meta {
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
    color: rgba(249, 246, 241, 0.75);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.profile-image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(32, 157, 182, 0.15);
    box-shadow: var(--box-shadow);
}

.about-text h3 {
    color: var(--color-primary-hover);
    font-size: 1.2rem;
    margin: 2rem 0 0.75rem;
}

.about-text h3:first-of-type {
    margin-top: 1.5rem;
}

.about-opener {
    font-size: 1.05rem;
    line-height: 1.65;
}

.about-list {
    list-style: none;
    margin: 0 0 1rem;
    padding-left: 0;
    line-height: 1.65;
}

.about-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.7rem;
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0.15rem;
    top: 0.65rem;
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--color-primary);
}

.about-list strong {
    color: var(--color-text-main);
    font-weight: 600;
}

.about-statement {
    margin: 2rem 0 0;
    padding: 1.1rem 1.5rem;
    border-left: 3px solid var(--color-primary);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--color-text-main);
    background: rgba(32, 157, 182, 0.05);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.qualification-card {
    margin-top: 2.25rem;
    padding: 1.5rem 1.75rem;
    background: var(--color-bg-section);
    border-radius: var(--radius-md);
}

.qualification-card h4 {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--color-primary-hover);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.qualification-card p {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--color-text-main);
}

.qualification-card p:last-child {
    margin-bottom: 0;
}

.qualification-card ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
}

.qualification-card li {
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--color-text-main);
}

.qualification-card a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

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

/* Collapsible full training list inside the qualification card */
.qual-extra {
    margin: 0.25rem 0 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.qual-extra summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0 0;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary-hover);
}

.qual-extra summary::-webkit-details-marker {
    display: none;
}

.qual-extra summary:hover {
    color: var(--color-primary);
}

.qual-extra[open] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.qual-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.75rem;
    font-size: 0.88rem;
}

.qual-table th {
    text-align: left;
    padding: 0.85rem 0 0.3rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary-hover);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.qual-table td {
    padding: 0.5rem 0;
    vertical-align: top;
    line-height: 1.5;
    color: var(--color-text-main);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.qual-table td:last-child {
    text-align: right;
    white-space: nowrap;
    padding-left: 1rem;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}

.qual-table-note {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.1rem;
}

/* ===== BIOSYNTÉZA SECTION ===== */
.biosynteza-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.biosynteza-intro p {
    font-size: 1.05rem;
    line-height: 1.8;
}

.biosynteza-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.biosynteza-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.biosynteza-card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-4px);
}

.biosynteza-icon {
    margin-bottom: 1.25rem;
    color: var(--color-primary);
    line-height: 0;
}

.biosynteza-icon .icon-svg {
    width: 40px;
    height: 40px;
}

.biosynteza-card h3 {
    color: var(--color-primary-hover);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.biosynteza-card:has(> .biosynteza-icon) {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.875rem;
    row-gap: 1rem;
    align-items: center;
}

.biosynteza-card:has(> .biosynteza-icon) > .biosynteza-icon,
.biosynteza-card:has(> .biosynteza-icon) > h3 {
    margin: 0;
}

.biosynteza-card:has(> .biosynteza-icon) > p {
    grid-column: 1 / -1;
    margin: 0;
}

.biosynteza-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.biosynteza-help {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--box-shadow);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.biosynteza-help h3 {
    color: var(--color-primary-hover);
    margin-bottom: 1.5rem;
}

.biosynteza-help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.help-item {
    padding: 1rem 1.25rem;
    background: var(--color-bg-section);
    border-radius: var(--radius-sm);
    color: var(--color-text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
}

.help-item .icon-svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: var(--transition);
}

.help-item:hover {
    background: var(--color-primary);
    color: var(--color-text-light);
    transform: translateY(-2px);
}

.help-item:hover .icon-svg {
    color: var(--color-text-light);
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.service-card .icon {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    line-height: 0;
}

.service-card .icon .icon-svg {
    width: 48px;
    height: 48px;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--color-primary-hover);
}

.services-lead {
    max-width: 720px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.05rem;
    color: var(--color-text-main);
}

.service-card {
    display: flex;
    flex-direction: column;
}

.service-card > p {
    flex: 1;
}

.service-cta {
    display: inline-block;
    margin-top: 1.25rem;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--color-primary);
    padding-bottom: 0.15em;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.service-cta:hover,
.service-cta:focus-visible {
    color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
}

/* ===== SECTION CLOSING (audience, biosynteza) ===== */
.section-closing {
    margin: 3rem auto 0;
    text-align: center;
    max-width: 720px;
}

.section-closing p {
    margin-bottom: 1.75rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-main);
}

.services-specialty {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 1.05rem;
    color: var(--color-text-main);
}

.services-specialty a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.services-specialty a:hover {
    color: var(--color-primary-hover);
}

/* ===== FAQ SECTION ===== */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item[open] {
    box-shadow: var(--box-shadow-hover);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.4rem 1.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    font-family: var(--font-subheading);
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--color-text-main);
    line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary:hover .faq-question {
    color: var(--color-primary-hover);
}

.faq-icon {
    flex-shrink: 0;
    position: relative;
    width: 22px;
    height: 22px;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform 0.3s ease;
    top: 50%;
    left: 50%;
}

.faq-icon::before {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.faq-icon::after {
    width: 2px;
    height: 14px;
    transform: translate(-50%, -50%);
}

.faq-item[open] .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
    padding: 0 1.75rem 1.5rem;
}

.faq-answer p {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.7;
}

.faq-answer .duration-list-lead {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.faq-answer .duration-followup {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    background: rgba(32, 157, 182, 0.07);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.duration-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.duration-timeline li {
    position: relative;
    padding: 0 0 1.4rem 1.85rem;
    margin-left: 0.45rem;
    border-left: 2px solid rgba(32, 157, 182, 0.25);
}

.duration-timeline li:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

/* First dot — mask the line stub between the li's top and the dot's center */
.duration-timeline li:first-child::after {
    content: "";
    position: absolute;
    left: -2px;
    top: 0;
    width: 2px;
    height: 0.75rem;
    background: var(--white);
    z-index: 1;
}

/* Last dot — extend the line from the li's top down to the dot's center
   (the li itself has a transparent border-left) */
.duration-timeline li:last-child::after {
    content: "";
    position: absolute;
    left: -2px;
    top: 0;
    width: 2px;
    height: 0.75rem;
    background: rgba(32, 157, 182, 0.25);
    z-index: 1;
}

.duration-timeline li::before {
    content: "";
    position: absolute;
    left: -0.5rem;
    top: 0.3rem;
    width: 0.9rem;
    height: 0.9rem;
    background: var(--color-primary);
    border: 2px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--color-primary);
    z-index: 2;
}

.duration-timeline-value {
    color: var(--color-primary-hover);
    font-weight: 700;
    font-size: 1.02rem;
    margin-bottom: 0.15rem;
    font-variant-numeric: tabular-nums;
}

.duration-timeline-topic {
    color: var(--color-text-main);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.45;
}

.duration-timeline-examples {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 0.1rem;
    line-height: 1.4;
}

@media (max-width: 600px) {
    .faq-item summary {
        padding: 1.15rem 1.25rem;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1.25rem 1.25rem;
    }
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: var(--color-bg-main);
}

.booking-disclaimer {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    max-width: 760px;
    margin: 2rem auto 0;
    grid-column: 1 / -1;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    padding: 2.5rem;
    background: var(--color-bg-dark);
    border-radius: var(--radius-lg);
    color: var(--color-text-light);
}

.contact-info h3 {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-item strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--color-text-light);
}

.info-item a {
    color: var(--color-primary);
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

.info-item address {
    font-style: normal;
    color: rgba(249, 246, 241, 0.7);
}

.wa-link {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.wa-link .wa-icon {
    width: 1rem;
    height: 1rem;
    color: #25D366;
    flex-shrink: 0;
    overflow: visible;
}

.hours-line {
    color: rgba(249, 246, 241, 0.7);
    margin: 0;
}

.travel-info {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(249, 246, 241, 0.85);
}

.travel-info strong {
    display: inline;
    margin: 0;
    font-weight: 600;
    color: rgba(249, 246, 241, 0.95);
}

.travel-info.muted {
    color: rgba(249, 246, 241, 0.55);
    font-size: 0.85rem;
    font-style: italic;
}

.office-map {
    display: block;
    width: 100%;
    height: 220px;
    margin-top: 0.75rem;
    border: 0;
    border-radius: var(--radius-sm);
}

.map-placeholder {
    margin-top: 0.75rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    text-align: center;
}

.map-placeholder p {
    color: rgba(249, 246, 241, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.map-placeholder .btn {
    padding: 0.55rem 1.4rem;
    font-size: 0.95rem;
}

.map-placeholder .map-link-alt {
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.85rem;
}

.map-placeholder .map-link-alt a {
    color: var(--color-primary);
    text-decoration: underline;
}

.info-item p,
.contact-info p {
    color: rgba(249, 246, 241, 0.7);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text-main);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(32, 157, 182, 0.2);
    background-color: var(--white);
}

.form-hint {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ===== NOT FOUND PAGE ===== */
.not-found-page {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 1.25rem 4rem;
}

.not-found-container {
    text-align: center;
    max-width: 600px;
}

.not-found-code {
    font-size: 5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    line-height: 1;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
}

.not-found-container h1 {
    margin: 0.75rem 0 1.25rem;
}

.not-found-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--color-text-main);
    margin-bottom: 2rem;
}

.not-found-actions {
    margin-bottom: 2rem;
}

.not-found-contact {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.not-found-en {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ===== LEGAL PAGE ===== */
.legal-page {
    padding-top: 120px;
    padding-bottom: 5rem;
    max-width: 820px;
    margin: 0 auto;
}

.legal-page h1 {
    font-family: var(--font-subheading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.legal-page h2 {
    font-size: 1.3rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary-hover);
}

.legal-page p,
.legal-page ul {
    font-size: 1rem;
    color: var(--color-text-main);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-page ul {
    list-style: disc inside;
    padding-left: 0.5rem;
}

.legal-page ul li {
    margin-bottom: 0.4rem;
}

.legal-page h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-main);
}

.legal-page a:not(.btn) {
    color: var(--color-primary);
    text-decoration: underline;
}

.legal-page a:not(.btn):hover {
    color: var(--color-primary-hover);
}

.legal-meta {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-back {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-info p {
    color: rgba(249, 246, 241, 0.6);
    margin: 0.25rem 0;
}

.footer-content > p {
    color: rgba(249, 246, 241, 0.5);
    margin: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(249, 246, 241, 0.5);
    transition: var(--transition);
    font-size: 0.9rem;
}

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

/* ===== BOOKING WIDGET ===== */
.booking-widget {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.booking-steps-nav {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.booking-step-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    opacity: 0.35;
    transition: var(--transition);
}

.booking-step-nav.active { opacity: 1; }
.booking-step-nav.completed { opacity: 0.65; }

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-bg-section);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: var(--transition);
}

.booking-step-nav.active .step-num,
.booking-step-nav.completed .step-num {
    background: var(--color-primary);
    color: var(--white);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.booking-step-nav.active .step-label { color: var(--color-primary); }

.step-connector {
    height: 2px;
    width: 2rem;
    background: var(--color-bg-section);
    margin: 0 0.5rem;
    flex-shrink: 0;
}

.booking-panel.hidden { display: none; }

/* Calendar */
.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cal-nav-btn {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--color-text-main);
}

.cal-nav-btn:hover:not(:disabled) {
    background: var(--color-bg-section);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.cal-nav-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.cal-month-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-main);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    margin-bottom: 1rem;
}

.cal-day-header {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-text-muted);
    padding: 0.3rem 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cal-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    user-select: none;
}

.cal-cell:hover:not(.disabled):not(.empty) {
    background: var(--color-bg-section);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.cal-cell.disabled {
    color: rgba(0, 0, 0, 0.18);
    cursor: not-allowed;
}

.cal-cell.today {
    font-weight: 700;
    color: var(--color-primary);
}

.cal-cell.selected {
    background: var(--color-primary);
    color: var(--white);
    border-color: var(--color-primary);
}

.cal-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
    margin: 0;
}

/* Time slots */
.selected-date-label {
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    min-height: 60px;
}

.time-slot-btn {
    padding: 0.7rem 0.5rem;
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    background: var(--color-bg-main);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
    transition: var(--transition);
    text-align: center;
}

.time-slot-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(32, 157, 182, 0.06);
}

.slots-loading,
.no-slots,
.slots-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 1.5rem 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin-right: 0.35rem;
    border: 2px solid rgba(32, 157, 182, 0.25);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spinner-rotate 0.8s linear infinite;
}

.spinner-light {
    border-color: rgba(255, 255, 255, 0.4);
    border-top-color: var(--white);
}

@keyframes spinner-rotate {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .spinner { animation: none; }
}

.slots-error { color: var(--color-accent); }

.booking-error,
.booking-notice {
    margin: 0.75rem 0;
    padding: 0.65rem 0.85rem;
    background: rgba(125, 8, 64, 0.06);
    border-radius: var(--radius-sm);
    color: var(--color-accent);
    font-size: 0.92rem;
    line-height: 1.45;
}

.booking-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.88rem;
    padding: 0;
    transition: var(--transition);
    display: block;
}

.booking-back-btn:hover { color: var(--color-primary); }

/* Step 3 selected summary */
.selected-datetime-label {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(32, 157, 182, 0.07);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-primary);
    font-size: 0.95rem;
}

/* Success state */
.booking-success-content {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon .icon-svg {
    width: 28px;
    height: 28px;
}

.booking-success-content h3 {
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

.booking-success-content p {
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.success-datetime {
    font-weight: 700;
    color: var(--color-primary) !important;
    font-size: 1rem !important;
    margin-bottom: 0.75rem !important;
}

.success-next {
    margin: 1.25rem auto;
    padding: 1rem 1.25rem;
    background: var(--color-bg-section);
    border-radius: var(--radius-sm);
    max-width: 420px;
    text-align: left;
}

.success-next strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-primary-hover);
    font-size: 0.95rem;
}

.success-next ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--color-text-main);
    font-size: 0.9rem;
    line-height: 1.55;
}

.success-next li {
    margin-bottom: 0.25rem;
}

.success-location {
    margin: 1.25rem auto 1rem;
    padding: 1rem 1.25rem;
    background: var(--color-bg-main);
    border-radius: var(--radius-sm);
    max-width: 360px;
    text-align: left;
}

.success-location strong {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin-bottom: 0.35rem;
}

.success-location address {
    font-style: normal;
    color: var(--color-text-main);
    margin-bottom: 0.4rem;
}

.success-map-link {
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.success-map-link:hover {
    color: var(--color-primary-hover);
}

.success-hint {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.success-hint a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .about-grid, .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-layout .booking-widget {
        order: -1;
    }

    .contact-layout .contact-info {
        order: 1;
    }

    .biosynteza-grid {
        grid-template-columns: 1fr;
    }

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

    h1 { font-size: 2.4rem; }
    h2 { font-size: 2rem; }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 0 1.25rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hamburger { display: block; }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--color-bg-main);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        padding: 2rem 0;
    }

    .nav-links.active { left: 0; }

    .nav-links li { margin: 16px 0; }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn { width: 100%; }

    .biosynteza-help-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }

    .contact-info,
    .booking-widget {
        padding: 1.5rem;
        overflow-x: hidden;
    }

    .step-connector {
        width: 0.75rem;
        margin: 0 0.25rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

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

    .office-map {
        height: 180px;
    }
}

iframe {
    max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
