/* layout2025.css – Dermoplus, wariant z banerem na całą szerokość */

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

html,
body {
    margin: 0;
    padding: 0;
}

:root {
    --color-accent: #52387d;          /* główny fiolet: rgb(82,56,125) */
    --color-accent-dark: #3e295f;     /* ciemniejszy fiolet (hover)   */
    --color-accent-soft: #f3effc;     /* jasne fioletowe tło          */
    --color-accent-soft-border: #ded5f5;
    --color-text-main: #1f2937;
    --color-text-muted: #6b7280;
    --color-bg-page: #f5f5f7;
    --color-bg-card: #ffffff;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--color-text-main);
    background-color: var(--color-bg-page);
}

/* Linki */
a {
    text-decoration: none;
    color: var(--color-accent);
    transition: color 0.25s ease;
}

a:hover {
    color: var(--color-accent-dark);
    text-decoration: underline;
}

img {
    border: 0;
    max-width: 100%;
    height: auto;
}

/* Pomocnicze */
.max-width {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* STRUKTURA GŁÓWNA */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =========================
   TOPBAR / LOGO / MENU
   ========================= */

.topbar {
    background-color: #ffffff;
    color: #222222;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: box-shadow 0.2s ease, border-bottom-color 0.2s ease;
}

.topbar--scrolled {
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.10);
    border-bottom-color: #e5e7eb;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

/* Logo */
.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.logo-link {
    display: inline-flex;
    align-items: center;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: #222222;
    letter-spacing: 0.4px;
}

.logo-text span {
    color: var(--color-accent);
    font-weight: 800;
}

.logo-img {
    display: block;
    max-height: 42px;
    width: auto;
}

/* MENU GŁÓWNE – desktop */
.main-nav {
    display: flex;
    align-items: center;
}

.main-nav .menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu li {
    margin: 0;
}

.menu-link {
    display: inline-block;
    padding: 10px 4px;
    font-size: 14px;
    font-weight: 500;
    color: #555555;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition:
            color 0.2s ease,
            border-bottom-color 0.2s ease,
            background-color 0.2s ease;
}

.menu-link:hover {
    color: var(--color-accent);
    border-bottom-color: rgba(82, 56, 125, 0.55);
    text-decoration: none;
}

.menu-link.active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

/* Call-to-action w menu */
.menu-cta .btn-small {
    font-size: 13px;
    padding: 8px 18px;
}

/* Hamburger (mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    margin-left: 8px;
    border-radius: 12px;
    border: 2px solid #2f2f2f;
    background-color: #333333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 20px;
    background-color: #ffffff;
    border-radius: 999px;
}

/* =========================
   PRZYCISKI
   ========================= */

.btn-primary {
    display: inline-block;
    background-color: var(--color-accent);
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    transition:
            background-color 0.2s ease,
            color 0.2s ease,
            transform 0.15s ease,
            box-shadow 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
    text-decoration: none;
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--color-accent);
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--color-accent);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    transition:
            background-color 0.2s ease,
            color 0.2s ease,
            transform 0.15s ease,
            box-shadow 0.2s ease;
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
    text-decoration: none;
}

/* mniejszy wariant przycisków */
.btn-small {
    font-size: 0.9rem;
    padding: 8px 18px;
}

/* =========================
   HERO – DERMOPLUS (baner na całą szerokość)
   ========================= */

.hero-dermoplus {
    position: relative;
    width: 100%;
    min-height: 380px;
    color: #ffffff;
    background-image: url("../images/dermoplus-opakowania-kosmetyczne-mix-640.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.hero-dermoplus-kontakt {
    background-image: url("../images/niebieski-kosmetyk-laboratorium-olsztyn-640.jpg");
}

.hero-dermoplus-oferta {
    background-image: url("../images/produkcja-kosmetykow-nalewarka-olsztyn-640.jpg");
}

.hero-dermoplus-produkcja-kontraktowa {
    background-image: url("../images/mieszanie-kremu-produkcja-kosmetykow-olsztyn-640.jpg");
}

.hero-dermoplus-o-nas {
    background-image: url("../images/opakowania-kosmetykow-na-zlecenie-640.jpg");
}

.hero-dermoplus::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.35));
}

.hero-dermoplus-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 48px 0;
}

.hero-dermoplus-text {
    max-width: 640px;
    padding-left: 14px;
    padding-right: 14px;
}

.hero-dermoplus-text h1 {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 700;
    color: #ffffff;
}

.hero-dermoplus-text p {
    margin: 0 0 16px;
    font-size: 18px;
    color: #e5e7eb;
}

.hero-dermoplus .hero-cta {
    margin-top: 6px;
}

/* większe ekrany – wyższy hero */
@media (min-width: 768px) {
    .hero-dermoplus {
        min-height: 70vh;
    }

    .hero-dermoplus-text h1 {
        font-size: 38px;
    }

    .hero-dermoplus-text p {
        font-size: 20px;
    }
}

/* desktop – prawie pełne okno + większe tło */
@media (min-width: 992px) {
    .hero-dermoplus {
        min-height: calc(100vh - 72px);
        background-image: url("../images/dermoplus-opakowania-kosmetyczne-mix.jpg");
        background-position: center;
    }

    .hero-dermoplus-kontakt {
        background-image: url("../images/niebieski-kosmetyk-laboratorium-olsztyn.jpg");
    }

    .hero-dermoplus-oferta {
        background-image: url("../images/produkcja-kosmetykow-nalewarka-olsztyn.jpg");
    }

    .hero-dermoplus-produkcja-kontraktowa {
        background-image: url("../images/mieszanie-kremu-produkcja-kosmetykow-olsztyn.jpg");
    }

    .hero-dermoplus-o-nas {
        background-image: url("../images/opakowania-kosmetykow-na-zlecenie.jpg");
    }

    .hero-dermoplus-text h1 {
        font-size: 46px;
    }

    .hero-dermoplus-text p {
        font-size: 22px;
    }
}

/* =========================
   GŁÓWNA ZAWARTOŚĆ
   ========================= */

.content {
    flex: 1;
    width: 100%;
    padding: 0 0 32px;
}

/* Treść na pełną szerokość (bez menu bocznego) */
#tresc_strony {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px 24px 32px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    min-width: 0;
}

#tresc_strony p {
    text-align: justify;
    margin-bottom: 0.7rem;
}

/* Standardowe listy w treści – fioletowe kwadraty */
#tresc_strony ul {
    margin: 0.4rem 0 0.9rem;
    padding-left: 0;
    list-style-type: square;
    list-style-position: inside;
}

#tresc_strony ul li {
    margin-bottom: 0.25rem;
}

#tresc_strony ul li::marker {
    color: var(--color-accent);
}

/* Teksty na niektórych stronach – bez justowania */
#tresc_strony .device-page p,
#tresc_strony .contact-page p,
#tresc_strony .registration-info p {
    text-align: left;
}

/* =========================
   Nagłówki w treści
   ========================= */

h1 {
    font-size: 26px;
    line-height: 1.3;
    color: var(--color-accent);
    margin-top: 0;
    margin-bottom: 14px;
}

h2 {
    font-size: 20px;
    line-height: 1.3;
    color: #444444;
    margin-top: 18px;
    margin-bottom: 10px;
}

h3 {
    font-size: 16px;
    line-height: 1.2;
    color: #444444;
    margin-top: 16px;
    margin-bottom: 8px;
}

/* Bloki z przyciskami pod wstępem (np. na stronie "O nas") */
.intro-cta {
    margin-top: 1.1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* odstęp między wszystkimi przyciskami w tym bloku */
}

/* Na małych ekranach – guziki jeden pod drugim, z odstępem */
@media (max-width: 640px) {
    .intro-cta {
        flex-direction: column;
        align-items: flex-start; /* zostają tak szerokie jak teraz */
    }
}


/* Dodatkowe klasy kolorów (zgodność wsteczna) */
.czerwony { color: #ff0000; }
.color1   { color: var(--color-accent); }
.color1_2 { color: var(--color-accent); font-weight: bold; font-size: 16px; }
.color1_3 { color: var(--color-accent); font-weight: bold; font-size: 20px; }
.color3_3 { color: var(--color-accent); font-weight: bold; font-size: 20px; }

/* =========================
   STOPKA
   ========================= */

#stopka {
    margin-top: 40px;
    background-color: #0f172a;
    color: #e5e7eb;
}

/* cienka fioletowa linia na górze stopki */
#stopka_pasek_pomaranczowy {
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), #8060c0);
}

/* główne tło pod treścią stopki */
#stopka_tresc {
    padding: 18px 16px 24px;
}

/* wewnętrzny kontener */
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px 32px;
    font-size: 13px;
}

.footer-col {
    flex: 1 1 220px;
}

.footer-col-brand {
    max-width: 320px;
}

.footer-brand {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.footer-copy {
    color: #9ca3af;
    font-size: 12px;
}

/* prawa kolumna z linkami */
.footer-col-links {
    text-align: right;
}

.footer-label {
    font-weight: 500;
    margin-bottom: 6px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    justify-content: flex-end;
}

/* „pigułki” z linkami */
.footer-links a {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    color: #e5e7eb;
    text-decoration: none;
    font-size: 12px;
    transition:
            background-color 0.2s ease,
            color 0.2s ease,
            transform 0.15s ease,
            box-shadow 0.2s ease;
}

.footer-links a:hover {
    background-color: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(82, 56, 125, 0.35);
    transform: translateY(-1px);
}

/* mobile – wszystko pod sobą */
@media (max-width: 640px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .footer-col-links {
        text-align: left;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

/* Linki w bloku kontaktowym w stopce (lewa kolumna) */
.footer-contact a {
    color: #f9fafb;            /* prawie białe, wysoki kontrast */
    text-decoration: none;     /* bez podkreślenia na stałe */
    font-weight: 500;          /* delikatne wyróżnienie */
}

.footer-contact a:hover {
    color: var(--color-accent-soft); /* delikatny jasny fiolet w hover */
    text-decoration: underline;
}

/* =========================
   RESPONSYWNOŚĆ – MENU
   ========================= */

@media (max-width: 1024px) {
    .topbar-inner {
        gap: 10px;
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        max-width: 85%;
        background-color: #ffffff;
        box-shadow: 4px 0 18px rgba(0, 0, 0, 0.18);
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition:
                transform 0.25s ease,
                opacity 0.25s ease,
                visibility 0.25s ease;
        z-index: 1200;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .main-nav.open {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav .menu {
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 18px 24px;
        gap: 2px;
        width: 100%;
    }

    .menu li {
        width: 100%;
    }

    .menu-link,
    .menu-cta .btn-small {
        display: block;
        width: 100%;
        text-align: left;
        padding: 11px 4px;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
        color: #24415a;
        background: transparent;
    }

    .menu-link:hover {
        background-color: rgba(82, 56, 125, 0.06);
        color: var(--color-accent);
    }

    .menu-link.active {
        background-color: rgba(82, 56, 125, 0.12);
        color: var(--color-accent);
        border-left: 4px solid var(--color-accent);
        padding-left: 8px;
    }

    .menu-cta .btn-small {
        margin-top: 10px;
        border-radius: 999px;
        border: none;
        background-color: var(--color-accent);
        color: #ffffff;
        text-align: center;
        padding: 12px 14px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    }

    .menu-cta .btn-small:hover {
        background-color: var(--color-accent-dark);
        color: #ffffff;
    }

    .content {
        padding-top: 8px;
    }
}

@media (max-width: 600px) {
    .logo-text {
        font-size: 18px;
    }

    .logo-img {
        max-height: 36px;
    }

    #tresc_strony {
        padding: 16px 14px 24px;
    }
}

/* =========================
   Cennik, Kontakt – sekcje jak wcześniej
   (to są te same style, które już miałeś – zostawiamy je
   bo działają dobrze, tylko na fiolecie)
   ========================= */

/* Breadcrumbs (wspólne) */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.breadcrumbs span {
    font-weight: 500;
}

/* ---- Cennik – reszta rzeczy masz w poprzednim layoucie,
   jeśli potrzebujesz 1:1 to możemy później jeszcze doszlifować.
   Na potrzeby problemu z hero/menu to wystarczy. ---- */

/* Strona Kontakt – uproszczona wersja (przyjęta wyżej) */
.contact-form-page {
    max-width: 840px;
    margin: 0 auto 32px;
}

.contact-form-header {
    padding: 0 0 0.5rem;
    position: relative;
}

.contact-page {
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-page p {
    text-align: left;
}

.contact-page h1 {
    margin-bottom: 0.8rem;
}

.contact-layout-top {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.8rem;
}

@media (min-width: 768px) {
    .contact-layout-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: flex-start;
    }
}

.contact-main-box,
.contact-before-form,
.contact-form-wrapper {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1.3rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-main-box .data {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.4rem;
}

.contact-form-wrapper {
    margin-top: 2rem;
}

.contact-form-wrapper h2 {
    margin-top: 0;
    margin-bottom: 0.8rem;
}

.contact-form {
    max-width: 720px;
}

.contact-form-row {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.contact-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 6px 0 0;
    flex: 0 0 170px;
}

.contact-form .required {
    color: #ef4444;
}

.contact-form-field {
    flex: 1 1 0;
}

.contact-form-row-captcha .contact-form-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.contact-form-row-captcha input[type="text"] {
    max-width: 120px;
}

.contact-form-label-spacer {
    flex: 0 0 170px;
}

.contact-form-message {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.contact-form-message--error {
    border: 1px solid #fecaca;
    background-color: #fef2f2;
    color: #b91c1c;
}

.contact-form-message--success {
    border: 1px solid #bbf7d0;
    background-color: #ecfdf5;
    color: #166534;
}

.contact-form input[type="text"],
.contact-form textarea {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input[type="text"]:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(82, 56, 125, 0.18);
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.contact-form-submit {
    margin-top: 0.2rem;
    font-size: 0.95rem !important;
    padding: 8px 22px !important;
}

.contact-form-row-submit {
    margin-top: 1.1rem;
}

@media (max-width: 520px) {
    .contact-form-row {
        flex-direction: column;
    }

    .contact-form label,
    .contact-form-label-spacer {
        flex: 0 0 auto;
    }
}


