/* ============= MAIN & BODY ============= */
:root {
    --body-pt: 100px;
    --bg-color: #ffffff;
    --text-color: #000000;
}

@media screen and (max-width: 768px) {
    :root { --body-pt: 80px; }
}

@font-face {
    font-family: "Inter";
    src: url("/fonts/Inter.woff2") format("truetype");
    font-weight: 100 900;
    font-display: swap;
}

body {
    margin: 0;
    padding-top: var(--body-pt);
    font-family: "Inter", sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s ease; 
}

/* DARK MODE */
body.darkmode-active {
    --bg-color: #121212;
    --text-color: #ffffff;
}

/* RESET LINKÓW */
a[href^="tel"], a[href^="mailto"] {
    color: inherit !important;
    text-decoration: none !important;
}

/* ============= HEADER ============= */
header {
    --header-bg: #fff;
    --header-pad: 20px 15%; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    padding: var(--header-pad);
    background: var(--header-bg);
    transition: background 0.3s ease;
}

/* DARK MODE */
body.darkmode-active header {
    --header-bg: #1e1e1e;
}

/* RESPONSYWNOŚĆ */
@media screen and (max-width: 768px) {
    header {
        --header-pad: 10px 25px;
    }
}

/* ============= LOGO ============= */
.logo {
    --logo-h: 60px; 
    height: var(--logo-h);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

/* DARK MODE */
body.darkmode-active .logo {
    filter: brightness(0) invert(1);
}

/* RESPONSYWNOŚĆ */
@media screen and (max-width: 768px) {
    .logo {
        --logo-h: 50px;
        margin-left: -5px;
    }
}

/* ============= NAV & UI ELEMENTS ============= */
nav {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 56px;
}

nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    color: #1f54a3;
    padding: 10px 16px;
    border-radius: 6px;
    transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
    white-space: nowrap;
}

nav a:not(.umowwizyte):not(.darkmode):not(.phone-link):hover {
    transform: scale(1.1);
    color: #1275ff;
}

nav a.umowwizyte {
    background: #1275ff;
    color: #fff !important;
    padding: 10px 20px;
    font-weight: 700;
}

nav a.umowwizyte:hover {
    transform: scale(1.1);
    background: #1f54a3;
}

/* ============= DARKMODE SWITCHER ============= */
nav .darkmode {
    width: 50px;
    height: 30px;
    border-radius: 15px;
    background: #fff;
    border: 2px solid #000;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

nav .darkmode::after {
    content: "";
    position: absolute;
    top: -2px; left: -1px;
    width: 60%; height: calc(100% + 4px);
    border-radius: 15px;
    background: #000;
    transition: transform 0.3s ease;
}

nav .darkmode.dark { background: #000; border-color: #fff; }
nav .darkmode.dark::after { transform: translateX(20px); background: #fff; }

/* ============= HAMBURGER & DROPDOWN ============= */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    cursor: pointer;
    margin-left: 15px;
    z-index: 1002;
}

.hamburger span {
    height: 3px; width: 100%;
    background-color: #1f54a3;
    border-radius: 4px;
    transition: 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

.nav-dropdown {
    position: absolute;
    top: 70px; right: 0;
    width: 150px;
    background: #fff;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 999;
}

.nav-dropdown.active { display: flex; }
.nav-dropdown a { display: block !important; color: #1f54a3; }
.nav-dropdown a:hover { background: #cccccc; transform: scale(1.1); }

.nav-dropdown a.umowwizyte-dropdown {
    background-color: #1275ff !important; 
    color: #ffffff !important;          
    font-weight: 700 !important;
    text-align: center;
    border-radius: 8px;                
    margin-top: 5px;                     
    padding: 12px 10px !important;       
    transition: background 0.3s ease;
}

.nav-dropdown a.umowwizyte-dropdown:hover {
    background-color: #1f54a3 !important; 
    transform: none !important;            
}

/* PHONE */
.phone-link { display: none; align-items: center; justify-content: center; }
.phone-icon {
    height: 35px;
    cursor: pointer;
    transition: transform 0.25s ease;
}
.phone-icon:hover { transform: scale(1.15); }

/* UMÓW WIZYTĘ */
.nav-appointment-btn {
    display: none !important;
}

/* RESPONSYWNOŚĆ */
@media screen and (min-width: 1400px) and (max-width: 1600px) {
    header { padding: 20px 10%; }
}

@media screen and (max-width: 1890px) {
    header { padding: 15px 5% !important; }
    body { padding-top: 70px !important; }
    
    .hamburger { display: flex !important; }
    
    nav a:not(.darkmode):not(.lang-icon-wrapper):not(.lang-icon):not(.phone-link):not(.umowwizyte) {
        display: none;
    }
    
    .phone-link { display: flex !important; margin-right: -10px; }
    nav .darkmode { margin-right: -5px; }
}

@media screen and (max-width: 768px) {
    nav {
        gap: 12px !important; 
        justify-content: flex-end;
    }

    .phone-icon { 
        height: 33px !important; 
    }

    .phone-link { 
        display: flex !important;
        margin-left: 0px; 
        margin-right: -15px; 
    }

    nav .darkmode {
        margin-right: 10px !important;
        margin-left: 0px !important;
    }

    .hamburger {
        margin-left: -10px !important; 
    }

    nav a.umowwizyte, 
    .nav-appointment-btn {
        display: none !important;
    }
}

/* DARK MODE */
body.darkmode-active nav a { color: #fff; }
body.darkmode-active .hamburger span { background-color: #fff; }
body.darkmode-active .nav-dropdown { background: #1e1e1e; }
body.darkmode-active .nav-dropdown a { color: #fff; }
body.darkmode-active .nav-dropdown a:hover { background: #ffffff; }
body.darkmode-active .phone-icon { filter: brightness(0) invert(1); }

/*==========*/

nav a.cennik {
    color: #1275ff !important;
    font-weight: 800;
    font-size: 19px;
}

nav a.cennik:hover {
    transform: scale(1) !important; 
    background: transparent !important; 
}

.nav-dropdown a.cennik-dropdown {
    color: #1275ff !important;
    font-weight: 800; 
    font-size: 19px;
}

.nav-dropdown a.cennik-dropdown:hover {
    transform: scale(1) !important; 
    background: transparent !important; 
}

/*==========*/

/* ============= LANG EN ICON ============= */
.lang-icon {
    height: 50px;
    width: auto;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.lang-icon:hover {
    transform: scale(1.15);
}

.modal-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: rgba(255, 255, 255, 0.85);
    padding: 30px 50px;
    border-radius: 20px;
    text-align: center;
    border: 6px solid #ff0000;
    box-shadow: none;
    max-width: 400px;
    font-family: "Inter", sans-serif;
    transform: scale(0.7);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content p {
    color: #333;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.modal-close-btn {
    background: #ff0000;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: transform 0.2s ease;
}

.modal-close-btn:hover {
    transform: scale(1.1);
}

/* DARK MODE */
body.darkmode-active .modal-content {
    background: #1e1e1e;
}

body.darkmode-active .modal-content p {
    color: #ffffff;
}

/* RESPONSYWNOŚĆ */
@media screen and (max-width: 768px) {
    .modal-content {
        padding: 20px 25px;
        width: 85%;
        max-width: 300px;
    }

    .modal-content p {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .modal-close-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}

@media screen and (max-width: 1890px) {
    .lang-icon {
        margin-right: -5px;
        margin-left: 5px;
    }
}

@media screen and (max-width: 768px) {
    .lang-icon {
        display: none !important;
    }

    .lang-icon-wrapper {
        display: none !important;
    }
}

/* ============= SCROLLBAR ============= */
::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

::-webkit-scrollbar-track,::-webkit-scrollbar-track-piece,::-webkit-scrollbar-corner {
    background: transparent !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

::-webkit-scrollbar-button {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

::-webkit-scrollbar-thumb {
    background-color: #1f54a3 !important;
    border-radius: 10px !important;
    border: none !important;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #2e72d2 !important;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #1f54a3 transparent !important;
}

/* ============= COOKIES ============= */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #ffffff;
    border: 2px solid #1275ff;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 10000;
    visibility: hidden;
}

.cookie-banner.active {
    visibility: visible;
}

.cookie-banner p {
    margin: 0;
    color: #333;
    font-size: 14px;
}

.cookie-banner button {
    background: #1275ff;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.cookie-banner button:hover {
    background: #0056cc;
    transform: scale(1.1);
}

/* DARK MODE */
body.darkmode-active .cookie-banner {
    background: #1e1e1e;
    border-color: #1275ff; 
}

body.darkmode-active .cookie-banner p {
    color: #ffffff;
}

body.darkmode-active .cookie-banner button {
    background: #1275ff;
    color: #ffffff;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner button {
        margin-top: 10px;
        width: 100%;
    }
}

/* ============= FOOTER ============= */
.footer {
    background-color: #f8f9fa;
    color: #1f1f1f;
    padding: 40px 20px 20px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-top: 3px solid #0056b3;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.footer-column h4 {
    color: #0056b3;
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column p {
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
    transition: transform 0.3s ease;
}

.footer-column ul li:hover {
    transform: scale(1.1);
}

.footer-column ul li a {
    text-decoration: none;
    color: #1f1f1f;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-column ul li a:hover {
    color: #0056b3;
}

.footer-column p a.footer-link-highlight {
    color: #1275ff !important;
    text-decoration: underline !important;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
    backface-visibility: hidden;
}

.footer-column p a.footer-link-highlight:hover {
    transform: scale(1.03);
    text-decoration: underline !important;
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 8px 20px;
    margin-top: 30px;
    border-top: 1px solid #0056b3;
    font-size: 0.85rem;
}

.footer-bottom p {
    grid-column: 2;
    margin: 0;
    text-align: center;
}

.made-by {
    grid-column: 3;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.made-by span {
    font-size: 0.9rem;
    color: #555;
}

.made-by img {
    height: 17px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
    margin-top: 2.5px;
}

.made-by img:hover {
    transform: scale(1.1);
}

/* DARK MODE */
body.darkmode-active .footer {
    background-color: #1e1e1e;
    color: #ffffff;
}

body.darkmode-active .footer-column h4 {
    color: #1275ff;
}

body.darkmode-active .footer-column ul li a {
    color: #ffffff;
}

body.darkmode-active .footer-column ul li a:hover {
    color: #1275ff;
}

body.darkmode-active .made-by span {
    color: #ffffff;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .footer-bottom {
        display: flex;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .made-by {
        justify-content: center;
    }
}

/* ============= FADE IN ============= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform; /* Podpowiada przeglądarce, że to będzie animowane */
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ============= CENNIK ============= */
.pricing-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.pricing-section h3 {
    color: #1275ff;
    margin-top: 40px;
    padding-left: 15px;
    font-size: 30px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 50px;
    background: var(--bg-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.price-table th, .price-table td {
    padding: 15px;
    text-align: left;
}

.price-table th {
    background-color: #1275ff;
    color: #ffffff;
    font-weight: 700;
}

.price-table tr:hover {
    background-color: rgba(18, 117, 255, 0.05);
}

.price-table td:last-child {
    font-weight: 700;                  
}

.cennik-icon {
    width: 50px;         
    height: auto;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle; 
    margin-top: -5px;           
    transform: none !important; 
}

/* DARK MODE */
body.darkmode-active .price-table td {
    border-bottom: 1px solid #333;
    color: #ffffff;
}

body.darkmode-active .price-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .pricing-section h3 {
        font-size: 25px;
        text-align: center;
    }

    .price-table th:last-child, 
    .price-table td:last-child {
        text-align: left !important;
        width: 75px; 
        white-space: nowrap;
        padding-left: 0;
    }

    .price-table th:first-child, 
    .price-table td:first-child {
        width: auto;
        padding-right: 10px;
    }
}