:root {
    --b1: #efebf6;
    --b2: e4dcf1;
    --pink: #ebe6d6;
    --pink-light: #ebe6d6;
    --pink-light2: #ebe6d6;
    --red: #4b3411;
    --violet: #3b2158;
    --color-primary: var(--pink-light);
    --color-green: #228b22;
    --color-secondary: var(--red);
    --color-accent: var(--violet);
    --table-radius: 4px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.w100 {
    width: 100%;
}

section + section {
    margin-top: 40px;
}

footer {
    text-align: center;
    margin-top: 20px;
    padding: 5px;
}

address {
    font-style: normal;
    font-size: 1.1rem;
    line-height: 1.61;
}

#opinie {
    margin: 0 auto;
    position: relative;
    margin-top: 40px;
    overflow: hidden;
}

.slideshow {
    width: fit-content;
    display: flex;
    gap: 60px;
    padding: 0 30px;
    justify-content: space-evenly;
    animation: moveSlideshow 120s linear infinite;
}

.slideshow:hover {
    animation-play-state: paused;
}

@keyframes moveSlideshow {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-66.66666%));
    }
}

.review {
    display: flex;
    flex-direction: column;
}

.review-content {
    height: 80px;
}

.person {
    text-align: right;
}

.person::before {
    content: "~ ";
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    margin: 0 auto;
    background:
        radial-gradient(circle at top left, var(--color-primary), transparent),
        radial-gradient(circle at bottom right, var(--pink), transparent);
}

body > * {
    transition: 0.3s all ease-in-out;
}

h1,
h2,
h3,
h4 {
    color: var(--color-accent);
    font-weight: 400;
    margin: 0;
    margin-bottom: 20px;
}

a {
    color: var(--color-accent);
}

header {
    margin: 0 auto;
    text-align: center;
}

.justify {
    justify-content: space-between;
}

.center {
    justify-content: center;
    text-align: center;
}

.relative {
    position: relative;
}

.flex {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.flex > * {
    flex: 0 1 auto;
}

.flex .fit {
    flex: 0 0;
}

.flex > img {
    flex: 0 0 auto;
}

.flex.row {
    flex-direction: row;
}

.flex.column {
    flex-direction: column;
}

.flex.spaceBetween {
    justify-content: left;
    gap: 5px;
}

.flex.alignMiddle {
    align-items: center;
}

.flex.gap {
    gap: 15px;
}

.large {
    font-size: 32px;
}

.align-left {
    text-align: left;
}

.toothImg {
    height: 30px;
    margin-top: 1px;
    margin-right: 10px;
    filter: invert(14%) sepia(65%) saturate(838%) hue-rotate(231deg) brightness(103%) contrast(99%);
}

.card {
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    width: 300px;
    max-height: 460px;
    box-shadow: 0px 8px 21px 1px rgba(0, 0, 0, 0.1);
}

.gray {
    color: #3b2158;
    font-size: 0.8rem;
}

.centerDiv {
    margin: 0 auto;
}

nav {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    align-items: flex-end;
}

a:link {
    padding: 10px;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    color: var(--red);
}

.mb {
    margin-bottom: 15px;
}

a:visited {
}

.icon {
    width: 20%;
    margin: 10px auto;
    filter: invert(17%) sepia(15%) saturate(2618%) hue-rotate(227deg) brightness(95%) contrast(100%);
    display: block;
}

.cardHeader {
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}

.box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 11px 37px -18px rgba(193, 193, 212, 1);
}

.marginTop {
    margin-top: 60px;
}

.bgBox {
    position: absolute;
    width: 400px;
    height: 120px;
    border-radius: 15px;
    background-color: rgb(223, 20, 111);
    background: #df146f1a;
    bottom: 0;
    z-index: -1;
    right: -5px;
}

.bgBox2 {
    position: absolute;
    width: 220px;
    height: 120px;
    border-radius: 15px;
    background-color: rgb(223, 20, 111);
    background: #6d2fff1a;
    transform: rotate(28deg);
    top: 50px;
    z-index: -1;
    right: -5px;
}

.bgCircle {
    width: 50px;
    height: 50px;
    border-radius: 50px;
    background: rgba(223, 20, 111, 0.1);
    position: absolute;
    top: 0;
}

.itemsRight {
    justify-content: flex-end;
}

.map {
    width: 500px;
    height: 345px;
}

.pattern {
    background-color: #e5e5f7;
    opacity: 0.1;
    background:
        linear-gradient(135deg, #444cf755 25%, transparent 25%) -10px 0 / 20px 20px,
        linear-gradient(225deg, #444cf7 25%, transparent 25%) -10px 0 / 20px 20px,
        linear-gradient(315deg, #444cf755 25%, transparent 25%) 0px 0 / 20px 20px,
        linear-gradient(45deg, #444cf7 25%, #e5e5f7 25%) 0px 0 / 20px 20px;
}

.contact {
    border: 2px solid var(--color-green);
    color: var(--color-green);
    border-radius: 5px;
}

#container {
    width: 1240px;
    margin: 0 auto;
}

.visit {
    background: var(--red);
    color: white;
    padding: 10px;
    border: 0.1px solid var(--red);
    border-radius: 6px;
}

.visit:active,
.visit:hover,
.visit:focus {
    color: white;
}

.hidden {
    opacity: 0;
    transition: all 1s ease-in-out;
}

.show {
    opacity: 1;
}

.hide {
    opacity: 0;
}

.visit::before * {
    transform: scale(0.1);
}

p {
    text-align: justify;
    line-height: 1.61rem;
    margin: 0;
}

p + p {
    margin-top: 10px;
}

.menuButton {
    display: none;
    position: relative;
    background: none;
    border: none;
    outline: none;
    color: white;
    padding: 10px;
    width: 50px;
    height: 50px;
    margin-right: 10px;
    -webkit-tap-highlight-color: transparent;
}

.menuButton:active {
    outline: none;
    background: none;
}

.menuButton:focus {
    outline: none;
    background: none;
}

.menuButton > div {
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

#x-container {
    top: 23px;
    left: 10px;
}

#hamburger-container {
    left: 10px;
    top: 15px;
}

.menuButton .x {
    transform-origin: center;
    position: absolute;
}

.menuButton span.x1 {
    transform: rotate(45deg);
}

.menuButton span.x2 {
    transform: rotate(135deg);
}

.menuButton span {
    display: block;
    width: 30px;
    height: 2px;
    border-radius: 3px;
    background: var(--color-accent);
}

.menuButton span.bar + span.bar {
    margin-top: 7px;
}

.animate {
    transition: all 0.3s ease-in-out;
}

.sticky {
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.sticky h1 {
    margin: 0;
    padding: 0;
}

.showMenu {
    opacity: 1;
    max-height: 375px;
}

.showMenu > * {
    display: block;
    visibility: visible;
}

.image {
    max-height: 200px;
    border-radius: 10px;
}

.emph {
    text-align: right;
    font-weight: 500;
}

.cena-header {
    min-width: 120px;
}

.tabela {
    border-spacing: 0;
    background: none;
    border: none;
    margin: 0;
    background: white;
    border-radius: var(--table-radius);
    box-shadow: 0px 11px 37px -18px rgba(193, 193, 212, 1);
}

.w600 {
    width: 600px;
}

.tabela th {
    font-weight: 400;
    background: white;
    border-color: white;
    color: var(--color-accent);
    border-bottom: 2px solid rgba(59, 33, 88, 0.05);
}

.tabela tr:nth-child(odd) td {
    background: white;
}

.tabela tr:nth-child(even) td {
    background: rgba(59, 33, 88, 0.02);
}

.tabela .section td {
    border-top: 2px solid rgba(59, 33, 88, 0.05);
}

.tabela td,
.tabela th {
    padding: 15px 20px;
}

.tabela th:first-child {
    border-top-left-radius: var(--table-radius);
}

.tabela th:last-child {
    border-top-right-radius: var(--table-radius);
}

.tabela tr:last-child td:first-child {
    border-bottom-left-radius: var(--table-radius);
}

.tabela tr:last-child td:last-child {
    border-bottom-right-radius: var(--table-radius);
}

.inline {
    display: inline;
}

.shadow {
    box-shadow: 0px 11px 37px -18px rgba(193, 193, 212, 1);
}

.boxes {
    display: flex;
}

.boxes > * {
    flex: 1 0 auto;
}

.priceList {
    width: fit-content;
    background: white;
    border-radius: var(--table-radius);
    overflow: hidden;
}

.priceList > * {
    padding: 5px;
    height: 52px;
}


.priceList > *:nth-child(odd) {
    background: white;
}

.priceList > *:nth-child(even) {
    background: rgba(243, 231, 214, 1);
}

.cena {
    justify-content: flex-end;
}

.half {
    display: flex;
    text-align: left;
    align-items: center;
    max-width: 50%;
    flex: 1 1 auto;
}

.cenaHeader {
    color: var(--red);
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 500;
    flex: 1 1 auto;
}

.cena {
    flex: 1 0 auto;
}

.wrap {
    flex-wrap: wrap;
}

.headerText {
    justify-content: center;
    align-items: center;
}

.headerContainer {
    justify-content: center;
    gap: 100px;
}

.centerFlex {
    justify-content: center;
}

.popiersie > img {
    height: 400px;
}


/* Pogubienie tytułów w cenniku */
.priceList .cenaHeader {
    font-weight: 800;   /* 600 = półgrube, 700 = grube */
}


@media only screen and (max-width: 768px) {
    .bgBox {
        width: 100%;
    }

    .bgBox2 {
        right: 10px;
    }

    .popiersie {
        width: 100%;
        max-width: 100%;
    }

    .popiersie > img {
        width: 100%;
		height: auto;
        object-fit: contain;
    }

    .half {
        width: 100%;
        max-width: 100%;
    }

    .headerContainer {
        justify-content: center;
        gap: 0px;
    }

    .emph {
        padding-top: 10px;
    }

    .cena {
        justify-content: start;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    body {
        background: var(--color-primary);
    }

    .menuButton {
        display: block;
    }

    .priceList > * {
        height: fit-content;
    }

    nav {
        width: 100%;
        flex-direction: column;
        opacity: 0;
        max-height: 0;
    }

    nav > * {
        width: 100%;
        font-size: 22px;
        flex: 1 0 auto;
        display: none;
    }

    .map {
        width: 100%;
    }

    #container {
        width: 100%;
        margin-top: 50px;
        padding: 0 5px;
    }

    .sticky {
        text-align: center;
        position: sticky;
        position: -webkit-sticky;
        top: 0;
        left: 0;
        display: flex;
        flex-direction: row;
        font-size: 8px;
        z-index: 100;
        background: var(--pink-light);
        margin: 0;
        padding: 5px;
    }

    .sticky h1 {
        margin: 0;
        padding: 0;
    }

    .headerText {
        margin-top: 30px;
        margin-bottom: 30px;
        text-align: center;
    }

    .card {
        width: 100%;
        margin: 5px;
    }

    .w600 {
        width: 100%;
    }

    .tabela {
        width: 100%;
        flex-wrap: wrap;
    }

    .tabela td {
        flex: 1 1 auto;
    }

    .tabela td,
    .tabela th {
        padding: 10px;
    }

    .toothImg {
        height: 15px;
        margin-top: 0px;
        margin-right: 5px;
    }
	
	
/* ===========================
   DODATKOWE POPRAWKI MOBILE
   =========================== */
@media (max-width: 768px) {

    /* Obrazy – żadnego rozciągania */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Główne kontenery w kolumnie na telefonie */
    .headerContainer,
    .flex.row,
    .box,
    .flex.spaceBetween {
        flex-direction: column;
        align-items: center;
    }

    /* Header – ładne wyśrodkowanie na małym ekranie */
    header,
    .headerText {
        text-align: center;
    }

    .popiersie {
        margin-top: 20px;
    }

    /* Karty usług – jedna pod drugą, pełna szerokość */
    .card {
        width: 100%;
        max-width: 420px;
        margin-bottom: 20px;
    }

    /* Sekcja "O nas" – tekst nie za szeroki */
    #onas .box .flex {
        width: 100% !important;
    }

    .image {
        max-width: 100%;
        height: auto;
    }

    /* Cennik – kolumnowo, czytelnie na wąskim ekranie */
    .priceList {
        padding: 10px;
        box-sizing: border-box;
    }

    .priceList .flex.row.wrap {
        flex-direction: column;
    }

    .priceList .half {
        width: 100%;
    }

    .cenaHeader {
        text-align: center;
    }

    /* Kontakt – tabela + mapa jedna pod drugą */
    .tabela {
        width: 100%;
        margin-top: 15px;
        font-size: 0.9rem;
    }

    .map {
        width: 100%;
        height: 250px;
        margin: 15px 0;
    }

    address {
        text-align: center;
        margin-bottom: 10px;
    }

    /* Nawigacja – mniejsza czcionka, więcej powietrza */
    nav a {
        display: inline-block;
        font-size: 0.9rem;
        padding: 8px 10px;
    }

    /* Ogólne marginesy */
    #container {
        padding: 0 10px;
        box-sizing: border-box;
    }
	
	.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
	}

	.reveal.visible {
    opacity: 1;
    transform: translateY(0);
	}

	.visit {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
	}

	.visit:hover {
    transform: scale(1.03);
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
	}

}

}

#container {
    margin-top: -40px !important;
}

html, body {
    margin: 0;
    padding: 0;
}

/* ===== MODAL RODO – pełny styl okna ===== */

.modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    z-index: 9999;

    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.25);
    position: relative;
    animation: modalFade 0.25s ease;
}

@keyframes modalFade {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 14px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}
