/* ==========================================================================
   Dual Wear — landing page
   Font: Poppins (ładowany z Google Fonts w index.html).
   ========================================================================== */

:root {
    --color-primary: #0096db;
    --color-primary-dark: #0077ab; /* przyciemniony do hover/gradientu — przybliżenie, podaj dokładny hex jeśli macie */
    --color-text: #1a1a1a;
    --color-text-muted: #4a4a4a;
    --color-border: #cfe4f5;
    --color-bg-soft: #f5f8fb;

    --font-body: "Poppins", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: var(--font-body);

    --content-max-width: 860px;
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.55;
    background: #ffffff;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.25;
    margin: 0 0 16px;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }

p {
    margin: 0 0 16px;
    color: var(--color-text-muted);
}

a {
    color: var(--color-primary);
}

section {
    padding: 48px 0;
}

/* --- Hero (baner 1) — banner1.png to gotowa grafika (tekst już w obrazku) --- */
.hero img {
    width: 100%;
}

/* --- Article header --- */
.article-header {
    padding-top: 40px;
    padding-bottom: 0;
}

.article-header h1 {
    font-weight: 600;
    font-size: 34px;
    line-height: 34px;
}

.article-header p {
    font-size: 16px;
    line-height: 27px;
}

.divider {
    text-align: center;
    margin: 24px 0;
}

.divider img {
    display: inline-block;
}

/* --- Spis treści --- */
.toc {
    background: var(--color-bg-soft);
    border-radius: var(--radius);
    padding: 20px 24px;
}

.toc h3 {
    margin-bottom: 12px;
    font-weight: 700;
    font-size: 18px;
    line-height: 32px;
}

.toc ul {
    margin: 0;
    padding-left: 18px;
}

.toc li {
    margin-bottom: 6px;
}

.toc a {
    text-decoration: none;
    color: var(--color-primary);
    font-size: 16px;
    line-height: 29px;
}

.toc a:hover {
    text-decoration: underline;
}

/* --- Drugi baner (produkty) — banner3.png to gotowa grafika (tekst już w obrazku).
   W przeciwieństwie do baneru 1 (pełna szerokość) ten ma szerokość kolumny tekstu. --- */
.hero-secondary {
    text-align: center;
}

.hero-secondary img {
    max-width: var(--content-max-width);
    width: 100%;
    margin: 0 auto;
}

/* --- CTA button --- */
.btn-primary {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 40px;
    border-radius: 4px;
    letter-spacing: 0.03em;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

/* --- Sekcja: nagłówek na pełną szerokość na górze, pod nim rząd (tekst | zdjęcie),
   przycisk osobno, wycentrowany, na samym dole. Wzorzec współdzielony przez
   kilka sekcji (Dual Wear: ... dobrana para / Pierwsze soczewki?). --- */
.split-cta > h2 {
    font-weight: 600;
    font-size: 30px;
}

.split-cta__row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center;
}

.split-cta__row p {
    font-size: 18px;
}

.split-cta__button {
    text-align: center;
    margin-top: 24px;
}

/* --- Czym jest Dual Wear? --- */
#czym-jest-dual-wear h2 {
    font-weight: 600;
    font-size: 30px;
}

#czym-jest-dual-wear p {
    font-size: 18px;
}

/* --- Dwie możliwości, więcej swobody --- */
#dwie-mozliwosci h2 {
    font-weight: 600;
    font-size: 30px;
}

/* Pasek z lewej zrobiony jako border-left na samym kontenerze (nie osobny
   element). Lewe narożniki mają większy promień niż prawe, żeby zaokrąglenie
   na styku z border-left było wyraźnie widoczne — prawe zostają przy
   --radius (10px), zgodnie z tłem z eksportu Figmy. */
.feature-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 20px;
    background-color: #fafafa;
    border-left: 6px solid var(--color-primary);
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
    border-top-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    position: relative;
}

.feature-list li {
    display: flex;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--color-border);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list__icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Ikony dostarczone jako gotowe grafiki (np. icon1.png) są już samodzielnymi kółkami —
   bez tła koloru z .feature-list__icon. */
.feature-list__icon--img {
    background: none;
}

.feature-list__icon--img img {
    width: 30px;
    height: 30px;
}

.feature-list h4 {
    margin: 0 0 4px;
    font-size: 18px;
}

.feature-list p {
    margin: 0;
    font-size: 15px;
}

/* --- Karuzela kroków badania --- */
.steps {
    position: relative;
}

.steps > h2 {
    font-weight: 600;
    font-size: 30px;
    line-height: 33px;
}

.steps__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    scrollbar-width: none;
}

.steps__track--dragging {
    scroll-snap-type: none;
    cursor: grabbing;
}

.steps__track--dragging .step-card {
    cursor: grabbing;
}

.steps__track::-webkit-scrollbar {
    display: none;
}

.step-card {
    scroll-snap-align: start;
    flex: 0 0 220px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px 18px;
    background: #fff;
    cursor: grab;
    user-select: none;
    text-align: center;
}

.step-card__number {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.step-card h4 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.step-card p {
    margin: 0;
    font-size: 15px;
}

/* Pasek pozycji — działa jak kciuk scrollbara: szerokość = udział widocznej
   części karuzeli, pozycja = dokładny procent przewinięcia (nie tylko numer
   karty), żeby faktycznie odzwierciedlał bieżącą lokalizację. */
.steps__progress {
    height: 4px;
    background: var(--color-border);
    border-radius: 4px;
    margin: 16px 0 24px;
    position: relative;
}

.steps__progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 4px;
    background: var(--color-primary);
}

.steps__nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.steps__nav button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: #fff;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.steps__nav button:hover {
    background: var(--color-bg-soft);
}

.steps__cta {
    text-align: center;
}

/* --- FAQ (akordeon, natywny <details>, wiele pytań może być otwartych naraz) --- */
.faq {
    counter-reset: faq-question;
}

.faq > h2 {
    font-weight: 600;
    font-size: 30px;
    margin-bottom: 24px;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 4px 0;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 4px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item__question {
    font-weight: 600;
    font-size: 18px;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.faq-item__question::before {
    counter-increment: faq-question;
    content: counter(faq-question) ". ";
}

.faq-item[open] .faq-item__question {
    color: var(--color-primary);
}

.faq-item summary::after {
    content: "";
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    transform: rotate(-135deg);
}

/* Płynne rozwijanie odpowiedzi (sztuczka z grid-template-rows) — details domyślnie
   przełącza treść przez display:none/block bez żadnej animacji, więc trzeba to
   nadpisać i sterować widocznością samym CSS-em na podstawie atrybutu [open]. */
.faq-item__answer {
    display: grid !important;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.25s ease;
}

.faq-item[open] .faq-item__answer {
    grid-template-rows: 1fr;
}

.faq-item__answer > p {
    overflow: hidden;
    padding: 0 4px 16px;
    margin: 0;
    font-size: 16px;
}

/* --- "Masz pytania?" + disclaimer --- */
.questions > h2 {
    font-weight: 600;
    font-size: 30px;
}

.questions__intro {
    max-width: 640px;
    font-size: 18px;
}

.legal-note {
    font-size: 16px;
    color: #7a8a97;
    text-align: center;
    margin-top: 32px;
}

.legal-note a {
    color: inherit;
}

/* --- Duży baner "wyrób medyczny" (osobna sekcja końcowa) --- */
.medical-banner {
    text-align: center;
    padding: 56px 20px;
}

.medical-banner p {
    color: var(--color-text);
    font-weight: 600;
    font-size: 96px;
    line-height: 1.3;
    max-width: 640px;
    margin: 0 auto;
    border-top: 1px solid var(--color-border);
    padding-top: 32px;
}

/* --- Mobile: układ jednokolumnowy dla sekcji ze zdjęciem obok tekstu --- */
@media (max-width: 640px) {
    .split-cta__row {
        grid-template-columns: 1fr;
    }

    .medical-banner p {
        font-size: 1.4rem;
    }
}
