/* Premium Podolog Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --color-primary: #0A8B94;
    /* Morski - Przyciski primary, linki, ikony */
    --color-primary-light: #27B6A4;
    /* Turkus - Akcenty, sukces, wyróżnienia */
    --color-primary-dark: #27B6A4;
    /* Turkus - Hover */
    --color-secondary: #031A5B;
    /* Granat premium - Nagłówki, menu, footer, mocne CTA */
    --color-secondary-light: #052680;
    --color-accent: #EEF6F7;
    /* Jasny błękit - FAQ, kontakt, usługi */
    --color-accent-mint: #F2FBF9;
    /* Jasny mint - CTA section, trust section */

    --color-background: #FFFFFF;
    /* Biel - Główne tło strony */
    --color-surface: #F7FAFB;
    /* Jasne tło soft - Sekcje naprzemienne */

    --color-text-main: #1D2A35;
    /* Tekst ciemny - Treść paragrafów */
    --color-text-muted: #667784;
    /* Tekst pomocniczy - Opisy, meta dane */
    --color-text-light: #FFFFFF;

    --color-border: #E2EAEE;
    /* Border soft - Linie, obramowania, inputy */

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(3, 26, 91, 0.05);
    --shadow-md: 0 4px 12px rgba(3, 26, 91, 0.08);
    --shadow-lg: 0 10px 24px rgba(3, 26, 91, 0.12);
    --shadow-glow: 0 8px 30px rgba(10, 139, 148, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);

    /* Layout */
    --container-width: 1280px;
    --section-padding: 100px 20px;
    --section-padding-mobile: 60px 20px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-background);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    gap: 10px;
    text-decoration: none;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-light) !important;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--color-secondary);
    color: var(--color-text-light) !important;
}

.btn-secondary:hover {
    background: var(--color-secondary-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--color-secondary) !important;
    border: 2px solid var(--color-secondary);
}

.btn-outline:hover {
    background: var(--color-secondary);
    color: var(--color-text-light) !important;
}

/* Header & Nav */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.site-header.scrolled {
    padding: 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height var(--transition-normal);
}

.site-header.scrolled .header-inner {
    height: 70px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--color-primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a.nav-link {
    color: var(--color-secondary);
    font-weight: 500;
    position: relative;
    font-size: 0.95rem;
}

.main-nav a.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

.main-nav a.nav-link:hover::after,
.main-nav a.nav-link.active::after {
    width: 100%;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone-link {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-link i {
    color: var(--color-primary);
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-secondary);
    cursor: pointer;
}

/* Footer */
.site-footer {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    padding: 80px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--color-text-light);
    margin-bottom: 25px;
    font-size: 1.25rem;
}

.footer-col p,
.footer-col li {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    min-height: 800px;
    position: relative;
    overflow: hidden;
    background: #fff;
    z-index: 10;
}

.heroSwiper {
    width: 100%;
    height: 100%;
}

.heroSwiper .swiper-slide {
    display: flex;
    background: #fff;
}

.hero-slide {
    align-items: flex-start;
    padding-top: 220px;
    /* Definitive header clearance */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 0.95) 40%,
            rgba(255, 255, 255, 0) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 650px;
    margin-left: 10%;
    position: relative;
    z-index: 100;
}

.hero-content h1,
.hero-content .hero-title {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--color-secondary);
    line-height: 1.1;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--color-text-main);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* Swiper Pagination */
.hero .swiper-pagination {
    bottom: 40px !important;
    z-index: 150 !important;
}

.hero .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: var(--color-primary);
}

/* --- PAGE HEADER --- */
.page-header {
    padding: 180px 0 100px;
    background: var(--color-secondary);
    color: var(--color-text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(10, 139, 148, 0.15) 0%, transparent 60%);
}

.page-header h1 {
    color: var(--color-text-light);
    font-size: 3.5rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

/* --- SECTIONS --- */
.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.section-title p {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* --- GRIDS & CARDS --- */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.problem-card {
    background: var(--color-surface);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    text-align: center;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.problem-icon {
    width: 80px;
    height: 80px;
    background: var(--color-accent);
    color: var(--color-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    transition: var(--transition-normal);
}

.problem-card:hover .problem-icon {
    background: var(--color-primary);
    color: var(--color-text-light);
    transform: rotate(10deg);
}

/* --- CONTENT BLOCKS --- */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 80px;
    align-items: start;
}

.main-content h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.main-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--color-text-main);
}

.service-feature {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    padding: 30px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition-normal);
}

.service-feature:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

.service-feature i {
    font-size: 2rem;
    color: var(--color-primary);
    background: var(--color-accent);
    width: 70px;
    height: 70px;
    min-width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

.service-feature h3 {
    margin-bottom: 10px;
    font-size: 1.35rem;
}

/* --- SIDEBAR --- */
.sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-box {
    background: #fff;
    padding: 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
    border: 1px solid var(--color-border);
}

.sidebar-box h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 15px;
}

.sidebar-box h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--color-primary);
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: 15px;
}

.sidebar-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.sidebar-list a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.about-image::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-list {
    list-style: none;
    margin-top: 30px;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.about-list i {
    color: var(--color-primary);
    margin-top: 5px;
}

/* --- CTA SECTION --- */
.cta-banner {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 80px;
    text-align: center;
    color: #fff;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

.cta-banner h2 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-banner p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .hero-content h1,
    .hero-content .hero-title {
        font-size: 3.5rem;
    }

    .content-grid {
        grid-template-columns: 1fr 350px;
        gap: 40px;
    }
}

@media (max-width: 992px) {

    .main-nav,
    .header-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .problems-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .hero-content {
        padding: 0 20px;
        text-align: center;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-overlay {
        background: linear-gradient(180deg,
                rgba(255, 255, 255, 0.78) 0%,
                rgba(255, 255, 255, 0.55) 45%,
                rgba(255, 255, 255, 0.35) 100%);
    }

    .cta-banner {
        padding: 60px 20px;
    }

    .cta-banner h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1,
    .hero-content .hero-title {
        font-size: 2.5rem;
    }

    .problems-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .sidebar-box {
        padding: 24px;
    }

    /* Tło hero na mobile: treść grafiki jest po prawej (lewa to puste tło pod tekst),
       więc odsłaniamy prawą stronę kadru */
    .hero-bg {
        object-position: 78% center;
    }

    .section {
        padding: var(--section-padding-mobile);
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .page-header {
        padding: 150px 0 60px;
    }
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: inline-block;
    padding: 30px 0;
    margin: -30px 0;
    /* Negate padding to not affect flex align */
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: #fff;
    min-width: 260px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    z-index: 100;
    border: 1px solid var(--color-border);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 25px;
    color: var(--color-text-main);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    text-decoration: none;
}

.dropdown-menu a:hover {
    color: var(--color-primary);
    background: var(--color-surface);
    padding-left: 30px;
}

/* Sidebar Search Box Improvement */
.sidebar-box form[action*="search.php"] {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-box form[action*="search.php"] ul {
    list-style: none;
    padding: 0;
}

.sidebar-box form[action*="search.php"] p {
    margin-bottom: 0;
}

.sidebar-box form[action*="search.php"] input[type="text"] {
    width: 100%;
    padding: 12px 18px;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.sidebar-box form[action*="search.php"] input[type="text"]:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(10,139,148,0.1);
}

.sidebar-box form[action*="search.php"] .buttonbar {
    margin-top: 5px;
}

.sidebar-box form[action*="search.php"] input[type="submit"] {
    width: 100%;
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.sidebar-box form[action*="search.php"] input[type="submit"]:hover {
    background: #27B6A4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10,139,148,0.3);
}

/* Hero Cutout Image Styles */
.hero-cutout-img {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    pointer-events: none;
}

@media (max-width: 992px) {
    .hero-cutout-img {
        display: none !important;
    }
}

/* --- Baner informacji o cookies --- */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    background: var(--color-secondary);
    color: #fff;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-consent p {
    margin: 0;
    flex: 1;
    min-width: 240px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-consent a {
    color: var(--color-primary-light);
    text-decoration: underline;
}

.cookie-consent .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cookie-consent-inner {
        flex-direction: column;
        gap: 14px;
        padding: 16px;
        text-align: center;
    }
}

/* --- Pływający przycisk rezerwacji Booksy (tylko mobile) --- */
.booksy-sticky {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-bottom: 78px;
    }

    .booksy-sticky {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: 16px;
        z-index: 9000;
        padding: 15px 20px;
        background: var(--color-primary);
        color: #fff;
        font-family: var(--font-heading);
        font-weight: 600;
        font-size: 1.05rem;
        text-decoration: none;
        border-radius: 50px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    }
}

/* --- Łamanie długich wyrazów (zapobiega poziomemu overflow na mobile) --- */
h1, h2, h3, h4, h5, h6, p, li, a, span {
    overflow-wrap: break-word;
}

/* --- Poprawki responsywne: wiersz formularza i siatka kart 2-kol --- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.problems-grid--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .problems-grid--2col {
        grid-template-columns: 1fr;
    }
}