 

.bg-primary {
    background: var(--primary) !important;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-success {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-success:hover {
    filter: brightness(80%);
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand {
    font-family: "Playfair Display", serif;
    font-weight: 600;
    text-transform: unset;
    letter-spacing: unset;
    color: var(--primary);
    margin-bottom: 15px;
}

header {
    height: 80vh !important;
    display: block;
}

.header-fog {
    background: rgba(0, 0, 0, 0.5);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

header h1 {
    color: #fff;
}

section {
    scroll-margin: 60px;
}

html {
    scroll-behavior: smooth;
}

.content em {
    font-size: 1.2rem;
    width: 100%;
    height: auto;
    display: block;
    background: #fafafa;
    border: solid 1px #ddd;
    padding: 20px;
    margin: 20px 0 !important;
    border-bottom: solid var(--primary);
}

.galery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    overflow: hidden;
}

.galitem {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    cursor: pointer;
    transition: all 250ms linear;
    margin: 0;
}

.galitem:hover {
    filter: brightness(80%);
}

section {
    margin: 0;
    padding: 0;
}

.houses {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.content :is(strong, b) {
    font-size: 1.4rem;
    font-family: "Playfair Display", serif;
    color: var(--primary);
    font-weight: 600;
}

.item {
    height: 300px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 1.2rem;
    color: #fff;
}

.item:nth-child(2n) {
    filter: brightness(80%);
}

#okolica {
    scroll-margin: 100px !important;
}

/* Importowanie Font Awesome dla ikon */

.elegant-footer .fas {
    color: white;
}

.elegant-footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary) 100%);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.elegant-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 60px 0 40px;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #ffffff;
    position: relative;
    padding-bottom: 12px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: white;
    border-radius: 1px;
}

.footer-section p {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    font-weight: 300;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-section ul li a:hover {
    filter: brightness(80%);
    transform: translateX(8px);
}

.footer-section ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-section ul li a:hover::before {
    opacity: 1;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.contact-item i {
    color: #64b5f6;
    font-size: 1.1rem;
    margin-top: 2px;
    min-width: 16px;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.newsletter-input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(100, 181, 246, 0.1);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    margin-top: 20px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    filter: brightness(80%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 0 32px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-btn {
        align-self: stretch;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 0 16px;
    }

    .footer-content {
        padding: 32px 0 24px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

.udogodnienia {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.udogodnienia::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="0.5" fill="%23000" opacity="0.02"/><circle cx="75" cy="75" r="0.3" fill="%23000" opacity="0.02"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.udogodnienia .container {
    position: relative;
    z-index: 1;
}

.udogodnienia .h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
    text-align: center;
}

.udogodnienia .h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary));
    border-radius: 2px;
}

.udogodnienia .row {
    margin-top: 40px;
}

.udogodnienia :is([class*="col-md-6"],[class*="col-md-12"]) {
    padding: 80px 20px;
    position: relative;
    transition: all 0.3s ease;
    color: var(--primary);
}

.udogodnienia :is([class*="col-md-6"],[class*="col-md-12"]):hover {
    transform: translateY(-10px);
}

.udogodnienia :is([class*="col-md-6"],[class*="col-md-12"])::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: white;
    border-radius: 15px;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.1),
        0 1px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    z-index: -1;
}

.udogodnienia :is([class*="col-md-6"],[class*="col-md-12"]):hover::before {
    box-shadow:
        0 20px 40px rgba(0,0,0,0.15),
        0 5px 15px rgba(0,0,0,0.1);
}

.udogodnienia .border-right {
    border-right: none !important;
}

.udogodnienia .border-right::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, transparent, #dee2e6, transparent);
}

.udogodnienia h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    padding: 20px 0;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

/* Ikony dekoracyjne */
.udogodnienia [class*="col-md-3"]:nth-child(2)::before {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.udogodnienia [class*="col-md-3"]:nth-child(3)::before {
    background: linear-gradient(135deg, #fff 0%, #f1f3f4 100%);
}

.udogodnienia [class*="col-md-3"]:nth-child(4)::before {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.udogodnienia [class*="col-md-3"]:nth-child(5)::before {
    background: linear-gradient(135deg, #fff 0%, #f1f3f4 100%);
}

/* Responsywność */
@media (max-width: 768px) {
    .udogodnienia {
        padding: 60px 0;
    }

    .udogodnienia h1 {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .udogodnienia [class*="col-md-3"] {
        margin-bottom: 20px;
        padding: 30px 15px;
    }

    .udogodnienia .border-right::after {
        display: none;
    }

    .udogodnienia h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .udogodnienia h1 {
        font-size: 1.75rem;
    }

    .udogodnienia h4 {
        font-size: 1.1rem;
        padding: 15px 0;
    }
}

/* Animacja wejścia */
.udogodnienia [class*="col-md-3"] {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.udogodnienia [class*="col-md-3"]:nth-child(2) {
    animation-delay: 0.1s;
}

.udogodnienia [class*="col-md-3"]:nth-child(3) {
    animation-delay: 0.2s;
}

.udogodnienia [class*="col-md-3"]:nth-child(4) {
    animation-delay: 0.3s;
}

.udogodnienia [class*="col-md-3"]:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    background-size: cover;
    background-attachment: fixed;
}

@media(max-width:968px) {
    section {
        scroll-margin: 100px;
    }
    header {
        height: 70vh !important;
        background-size: cover;
        background-position: center center;
        background-attachment: unset !important;
    }
    header .display-4 {
        font-size: 2.5rem !important;
    }
    .galery {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .galitem {
        height: 200px;
    }
    .item {
        font-size: 1rem !important;
    }
    .item:nth-child(2n) {
        filter: brightness(80%);
    }
    .item:nth-child(2) {
        filter: brightness(80%);
    }
    .item:nth-child(3) {
        filter: brightness(80%);
    }
    .item:nth-child(6) {
        filter: brightness(80%);
    }
}

/* Stylowanie przycisku */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
}

/* Klasy do pokazywania/chowania przycisku */
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    filter: brightness(80%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #fff;
    text-decoration: none;
}

.scroll-to-top span {
    transition: transform 0.3s ease;
}

.scroll-to-top:hover span {
    transform: translateY(-2px);
}

.opnier {
    position: relative;
    height: 800px;
    overflow: hidden;
    transition: all 250ms linear;
}

.opnier::after {
    content: 'Kliknij by rozwinąć opis';
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.3));
    display: flex;
    position: absolute;
    bottom: 0;
    align-items: center;
    font-weight: 500px;
    text-transform: uppercase;
    text-align: center;
    align-items: flex-end;
    padding: 0;
    justify-content: center;
    letter-spacing: 1px;
    color: #000;
    cursor: pointer;
    transition: all 250ms linear;
}

.hidebef {
    transition: all 350ms linear;
    height: auto;
    padding-bottom: 50px;
}

.hidebef::after {
    content: 'Kliknij by zwinąć opis';
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 50%, rgba(255, 255, 255, 0.3));
    display: flex;
    position: absolute;
    bottom: 0;
    align-items: center;
    font-weight: 500px;
    text-transform: uppercase;
    text-align: center;
    align-items: flex-end;
    padding: 0;
    justify-content: center;
    letter-spacing: 1px;
    color: #000;
    cursor: pointer;
    transition: all 250ms linear;
}

