*, 
*::before, 
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0a2342;
    --secondary-color: #e5eaf5;
    --accent-color: #304d7d;
    --text-color: #333;
    --light-text: #f5f5f5;
    --light-gray: #eee;
    --medium-gray: #595959;
    --dark-gray: #555;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --focus-outline-color: #0a2342;
    --error-color: #d32f2f;
    --success-color: #2e7d32;
    --link-hover-color: #e5eaf5;
    --light-blue: #e5eaf5;
    --dark-blue: #0a2342;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: var(--transition);
}

a:hover {
    color: var(--link-hover-color);
}

a:focus {
    outline: 3px solid var(--focus-outline-color);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input, select, textarea, button {
    font-family: 'Montserrat', sans-serif;
}

input:focus, 
select:focus, 
textarea:focus,
button:focus {
    outline: 3px solid var(--focus-outline-color);
    outline-offset: 2px;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-800 {
    max-width: 800px;
}

.mt-2rem {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    margin-top: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: none;
    font-size: 1rem;
    min-width: 44px;
    min-height: 44px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: #0a2342;
    color: white;
    box-shadow: 0 6px 20px rgba(10, 35, 66, 0.3);
    gap: 9px;
}

.btn-primary:hover {
    background: #2c508a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 80, 138, 0.4);
}

.btn-secondary {
    background: #0a2342;
    color: white;
    box-shadow: 0 6px 20px rgba(48, 77, 125, 0.3);
}

.btn-secondary:hover {
    background: #2c508a;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 80, 138, 0.4);
}

header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.logo-container:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.logo {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.logo:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #0a2342;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 25px;
    text-shadow: none;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

nav {
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
    font-weight: 600;
}

nav ul li a.active::after {
    width: 100%;
}

.admin-link {
    background-color: var(--secondary-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

.admin-link i {
    color: var(--primary-color);
}

.admin-link:hover {
    background-color: var(--primary-color);
}

.admin-link:hover i {
    color: var(--light-text);
}

.admin-link::after {
    display: none;
}

.hamburger {
    display: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    position: relative;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger:focus {
    outline: 3px solid var(--focus-outline-color);
    outline-offset: 2px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px auto;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.hero {
    min-height: 60vh;
    background: linear-gradient(135deg, rgba(10, 35, 66, 0.8), rgba(48, 77, 125, 0.7)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: var(--light-text);
    text-align: center;
    padding: 100px 0 60px;
    position: relative;
    z-index: 1;
    transform: none !important;
    /* Optymalizacje dla wydajności */
    contain: layout style;
    will-change: auto;
}

@keyframes movePattern {
    0% { background-position: 0 0; }
    100% { background-position: 200px 0; }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { box-shadow: 2px 0 0 0 transparent }
    50% { box-shadow: 2px 0 0 0 var(--light-text); }
}

@keyframes remove-cursor {
    to { border-right: none; }
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: var(--light-text);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    margin-left: auto;
    margin-right: auto;
    width: 0;
    box-shadow: 2px 0 0 0 var(--light-text);
    animation: 
        typing 3.5s steps(40, end) forwards,
        blink-caret 1.5s step-end infinite;
}

.hero h2 {
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease-out 3.8s forwards;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease-out 3.1s forwards;
}

.hero .btn {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s ease-out 3.4s forwards;
}

.about {
    padding: 5rem 0;
    background-color: #fff;
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 1.5rem;
    padding-left: 1.5rem;
}

.about-features li {
    margin-bottom: 0.5rem;
    position: relative;
}

.about-features li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.about-cta {
    margin-top: 2rem;
}

.about-cta .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.about-card-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.about-image-column {
    flex: 0 0 328px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.about-photo-small {
    width: 325px;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    margin-bottom: 18px;
}
.about-features-under-image {
    margin: 0 0 18px 0;
    padding: 0;
    list-style: none;
    font-size: 1rem;
    color: #222;
}
.about-features-under-image li {
    margin-bottom: 11.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.about-cta-under-image {
    margin-top: 8px;
}
.about-text-column {
    flex: 1 1 320px;
    min-width: 260px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.about-text-column h3, .about-text-column h4 {
    margin-top: 0;
}
.about-text-column p,
.about-text-column ul,
.about-text-column li,
.about-text-column h3,
.about-text-column h4 {
    margin-bottom: 10px;
}
.about-text-column ul {
    margin-top: 10px;
    padding-left: 22px;
}
.about-text-column li {
    line-height: 1.5;
}
.about-text-column p {
    margin-top: 0;
}
@media (max-width: 900px) {
    .about-card-layout {
        flex-direction: column;
        align-items: stretch;
    }
    .about-image-column {
        flex-direction: row;
        justify-content: flex-start;
        margin-bottom: 18px;
    }
    .about-photo-small {
        width: 120px;
        height: 160px;
        margin-bottom: 0;
        margin-right: 18px;
    }
    .about-features-under-image {
        margin: 0;
    }
}

.offers {
    padding: 5rem 0;
    background-color: var(--light-gray);
    color: var(--text-color);
    position: relative;
    z-index: 1;
}

.offers-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.offer-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.offer-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.offer-image {
    height: 250px;
    overflow: hidden;
}

.offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.offer-content {
    padding: 1.5rem;
}

.offer-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.offer-location {
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.offer-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0a2342;
    background: linear-gradient(135deg, #0a2342 0%, #304d7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.offer-description {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.sold-offers {
    padding: 5rem 0;
    background-color: #fff;
}

.sold-offers-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.sold-offer-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.sold-offer-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.sold-offer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
}

.sold-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 35, 66, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sold-overlay span {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    font-weight: 700;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    font-size: 1.1rem;
    transform: rotate(-11deg);
}

.sold-offer-content {
    padding: 1.5rem;
}

.sold-offer-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.sold-offer-location {
    color: var(--medium-gray);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.sold-offer-description {
    font-size: 0.95rem;
    line-height: 1.5;
}

.testimonials {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 304px;
    width: 279px;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 75%, #ea4335 100%);
    border-radius: 15px 15px 0 0;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.testimonial-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.author-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 50%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.review-meta .testimonial-rating {
    display: flex;
    gap: 1px;
    margin-top: -1.6rem;
    z-index: 9999;
}

.review-meta .testimonial-rating i {
    color: #ffc107;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.review-meta .testimonial-rating .far {
    color: #e9ecef;
}

.review-date {
    font-size: 0.8rem;
    color: #adb5bd;
    font-weight: 500;
}

.testimonial-text {
    color: #495057;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
    font-style: normal;
    flex: 1;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.testimonial-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    line-clamp: 7;
    overflow: hidden;
    max-height: 11.2em;
    position: relative;
}

.testimonial-text.collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40%;
    height: 1.6em;
    background: linear-gradient(to right, transparent, #fff 50%);
    pointer-events: none;
}

.expand-toggle {
    color: #4285f4;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    background: none;
    padding: 8px 16px;
    margin-top: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 20px;
    display: inline-block;
    background-color: rgba(66, 133, 244, 0.1);
    border: 1px solid rgba(66, 133, 244, 0.2);
    min-width: 100px;
    text-align: center;
}

.expand-toggle:hover {
    color: #1976d2;
    background-color: rgba(66, 133, 244, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.expand-toggle:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
    border-radius: 20px;
}

.expand-toggle:active {
    transform: translateY(0);
}

.rating {
    color: #ffc107;
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.testimonial-author p {
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.contact {
    padding: 5rem 0;
    background-color: #fff;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-details {
    margin: 1.5rem 0;
}

.contact-details p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.contact-details p i {
    width: 25px;
    color: var(--accent-color);
}

.locations-served {
    margin: 1.5rem 0;
}

.locations-served h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.locations-list {
    list-style: none;
    padding: 0;
}

.locations-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.locations-list li i {
    width: 25px;
    color: var(--accent-color);
    margin-right: 0.5rem;
}

.contact-map {
    margin: 1.5rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.detailed-map {
    width: 100%;
    position: relative;
    background-color: #f4f7fc;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform-origin: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-image:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    z-index: 10;
    position: relative;
}

.map-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    z-index: 50;
    cursor: pointer;
    transition: var(--transition);
}

.map-marker i {
    color: #d32f2f;
    font-size: 24px;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
    transition: var(--transition);
}

.map-marker:hover i {
    color: #b71c1c;
    transform: scale(1.2);
}

.map-marker.pulse i {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.5); }
    100% { transform: scale(1); }
}

.map-marker:hover .map-label {
    opacity: 1;
    transform: translateY(0);
}

.map-label {
    position: absolute;
    background-color: rgba(10, 35, 66, 0.85);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    white-space: nowrap;
    opacity: 0;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 60;
}

.map-label::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: rgba(10, 35, 66, 0.85) transparent transparent transparent;
}

.map-roads .main-road {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #ff5252;
    z-index: 20;
}

.main-road.warszawa-jozefow {
    width: 35%;
    height: 2px;
    top: 43%;
    left: 32%;
    transform: rotate(25deg);
}

.main-road.jozefow-otwock {
    width: 12%;
    height: 2px;
    top: 57%;
    left: 61%;
    transform: rotate(45deg);
}

.main-road.warszawa-konstancin {
    width: 25%;
    height: 2px;
    top: 43%;
    left: 32%;
    transform: rotate(-15deg);
}

.map-regions .region {
    position: absolute;
    border: 1px dashed rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    z-index: 10;
}

.region.warszawa {
    width: 60px;
    height: 60px;
    top: 35%;
    left: 32%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 235, 59, 0.1);
}

.region.jozefow {
    width: 30px;
    height: 30px;
    top: 53%;
    left: 67%;
    transform: translate(-50%, -50%);
    background-color: rgba(76, 175, 80, 0.1);
}

.region.otwock {
    width: 35px;
    height: 35px;
    top: 62%;
    left: 73%;
    transform: translate(-50%, -50%);
    background-color: rgba(76, 175, 80, 0.1);
}

.region.konstancin {
    width: 30px;
    height: 30px;
    top: 50%;
    left: 42%;
    transform: translate(-50%, -50%);
    background-color: rgba(33, 150, 243, 0.1);
}

.map-rivers div {
    position: absolute;
    background-color: rgba(33, 150, 243, 0.4);
    z-index: 15;
}

.wisla-river {
    width: 8px;
    height: 80%;
    top: 10%;
    left: 45%;
    border-radius: 10px;
    transform: rotate(10deg);
}

.swider-river {
    width: 4px;
    height: 25%;
    top: 50%;
    left: 60%;
    border-radius: 10px;
    transform: rotate(45deg);
}

.map-forests div {
    position: absolute;
    background-color: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    border-radius: 40%;
    z-index: 5;
}

.forest.mazowiecki-park {
    width: 100px;
    height: 120px;
    top: 60%;
    left: 65%;
    transform: rotate(15deg);
}

.forest.chojnowski-park {
    width: 80px;
    height: 90px;
    top: 55%;
    left: 35%;
    transform: rotate(-10deg);
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    justify-content: center;
    align-items: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.8;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--light-text);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    opacity: 1;
}

.contact-form {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    position: relative;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    margin: 0;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
}

.checkmark {
    min-width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container:hover .checkmark {
    border-color: var(--accent-color);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input[type="checkbox"]:checked ~ .checkmark::after {
    display: block;
}

.checkbox-container input[type="checkbox"]:focus ~ .checkmark {
    outline: 3px solid var(--focus-outline-color);
    outline-offset: 2px;
}

footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f2a4d 100%);
    color: var(--light-text);
    padding: 2rem 0 1rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

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

footer .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    text-align: left;
}

.footer-brand h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--light-text);
    font-family: 'Playfair Display', serif;
}

.footer-tagline {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0;
    color: var(--light-text);
}

.footer-social {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-copyright p {
    font-size: 0.8rem;
    opacity: 0.6;
    margin: 0;
    line-height: 1.3;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-links .separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    footer {
        padding: 1.5rem 0 0.8rem;
    }
    
    footer .container {
        padding: 0 1.5rem;
    }
    
    .footer-main {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.8rem;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-brand h3 {
        font-size: 1.2rem;
    }
    
    .footer-tagline {
        font-size: 0.8rem;
    }
    
    .footer-social {
        gap: 0.6rem;
    }
    
    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .footer-copyright p {
        font-size: 0.75rem;
    }
    
    .footer-links a {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1.2rem 0 0.6rem;
    }
    
    footer .container {
        padding: 0 1rem;
    }
    
    .footer-main {
        gap: 0.8rem;
        margin-bottom: 0.8rem;
        padding-bottom: 0.6rem;
    }
    
    .footer-brand h3 {
        font-size: 1.1rem;
    }
    
    .footer-tagline {
        font-size: 0.75rem;
    }
    
    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        gap: 0.6rem;
    }
    
    .footer-copyright p {
        font-size: 0.7rem;
    }
    
    .footer-links a {
        font-size: 0.7rem;
    }
    
    .footer-links .separator {
        font-size: 0.7rem;
    }
}

.badge {
    background: #0a2342;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(10, 35, 66, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.offer-count {
    font-weight: 700;
    color: #0a2342;
    font-size: 1.1em;
}

@media (max-width: 1024px) {
    nav ul li {
        margin-left: 1.5rem;
    }
    
    nav ul li a {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }
    
    .brand-name {
        font-size: 1.15rem !important;
    }
    
    .logo {
        width: 50px !important;
        height: 50px !important;
    }
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    nav ul li {
        display: block !important;
        margin: 0 0 20px 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
    nav ul li a {
        display: block !important;
        padding: 10px 0 !important;
        font-size: 1.1rem !important;
    }
    /* Usuń wszelkie nth-child, które ukrywają pozycje menu */
    nav ul li {
        display: block !important;
    }
}

@media (max-width: 600px) {
    .about-content.about-card-layout {
        flex-direction: column;
        gap: 2rem;
        align-items: stretch;
    }
    .about-image-column {
        flex: unset;
        flex-direction: column;
        align-items: center;
        margin-bottom: 18px;
    }
    .about-photo-small {
        width: 80vw;
        max-width: 260px;
        height: auto;
        margin-bottom: 12px;
        margin-right: 0;
    }
    .about-features-under-image {
        font-size: 0.98rem;
        margin-bottom: 10px;
    }
    .about-cta-under-image {
        margin-top: 10px;
    }
    .about-text-column {
        padding: 0;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .map-marker i {
        font-size: 20px;
    }
    
    .map-label {
        font-size: 10px;
        padding: 3px 6px;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: #fff;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 0;
        padding: 0.5rem 2rem;
    }

    .hamburger {
        display: block;
    }

    .offers-container,
    .sold-offers-container,
    .testimonials-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 15px;
    }
    
    .author-avatar {
        width: 30px;
        height: 30px;
    }
    
    .avatar-placeholder {
        font-size: 0.8rem;
    }
    
    .author-name {
        font-size: 0.95rem;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .testimonial-text.collapsed {
        max-height: 10.5em;
        -webkit-line-clamp: 7;
        line-clamp: 7;
    }
    
    .testimonial-text.collapsed::after {
        width: 50%;
        height: 1.5em;
    }
    
    .expand-toggle {
        font-size: 0.85rem;
        padding: 6px 12px;
        margin-top: 8px;
        width: 100%;
        text-align: center;
    }

@media (max-width: 480px) {
    .testimonial-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .testimonial-text.collapsed {
        max-height: 9.8em;
        -webkit-line-clamp: 7;
        line-clamp: 7;
    }
    
    .testimonial-text.collapsed::after {
        width: 60%;
        height: 1.4em;
    }
}

    .region.warszawa {
        width: 50px;
        height: 50px;
    }
    
    .region.jozefow,
    .region.konstancin {
        width: 25px;
        height: 25px;
    }
    
    .region.otwock {
        width: 30px;
        height: 30px;
    }
    
    .wisla-river {
        width: 6px;
    }
    
    .swider-river {
        width: 3px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .btn {
        padding: 0.6rem 1.5rem;
    }
    
    .region.warszawa {
        width: 40px;
        height: 40px;
    }
    
    .region.jozefow,
    .region.konstancin {
        width: 20px;
        height: 20px;
    }
    
    .region.otwock {
        width: 25px;
        height: 25px;
    }
    
    .wisla-river {
        width: 5px;
    }
    
    .swider-river {
        width: 2px;
    }
}

.stats-counter {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--medium-gray);
    font-size: 0.95rem;
}

.stats-counter p {
    margin: 0;
}

.stats-counter strong {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.more-info {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
    color: var(--medium-gray);
}

.more-info p {
    font-size: 0.9rem;
}

.view-all-button {
    text-align: center;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.google-reviews-btn {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    color: #4285F4;
    border: 1px solid #4285F4;
    margin-left: 10px;
    padding: 8px 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    border-radius: 4px;
}

.google-reviews-btn img {
    margin-right: 8px;
}

.google-reviews-btn:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #4285F4;
}

@media (max-width: 576px) {
    .view-all-button {
        flex-direction: column;
    }
    
    .google-reviews-btn {
        margin-left: 0;
        margin-top: 10px;
    }
}

.faq-page .hero-subpage {
    background: linear-gradient(135deg, #1c3e5f 0%, #173049 100%);
    background-size: cover;
    background-position: center;
    color: var(--light-text);
    text-align: center;
    padding: 120px 0 80px;
    position: relative;
    margin-top: 3rem;
}

.faq-page .hero-subpage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(229, 234, 245, 0.1));
    pointer-events: none;
}

.faq-page .hero-content {
    position: relative;
    z-index: 2;
}

.faq-page .hero-subpage h1 {
    font-size: 3rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.faq-page .hero-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #f8fafc, var(--light-gray));
}

.faq-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-intro .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.faq-intro .section-subtitle {
    font-size: 1.1rem;
    color: var(--medium-gray);
    max-width: 600px;
    margin: 0 auto;
}

.faq-search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.faq-search {
    position: relative;
    max-width: 600px;
    width: 100%;
    display: flex;
    background: white;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--medium-gray);
    z-index: 2;
}

.faq-search input {
    flex: 1;
    padding: 18px 20px 18px 50px;
    border: none;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.faq-search input::placeholder {
    color: var(--medium-gray);
}

.faq-search button {
    background: #0a2342;
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.faq-search button:hover {
    background: #0a2342;
    transform: scale(1.05);
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.category-btn i {
    font-size: 1rem;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(10, 35, 66, 0.2);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.faq-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
}

.faq-question:hover {
    background: linear-gradient(135deg, var(--secondary-color), rgba(229, 234, 245, 0.7));
}

.question-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.question-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 12px;
    font-size: 1.2rem;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    line-height: 1.4;
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--secondary-color);
    border-radius: 50%;
    margin-left: 1rem;
    transition: all 0.3s ease;
}

.faq-toggle i {
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.faq-item.active .faq-toggle {
    background: var(--primary-color);
    transform: rotate(45deg);
}

.faq-item.active .faq-toggle i {
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    border-top: 1px solid #f1f5f9;
}

.answer-content {
    padding: 0 25px 25px 86px;
}

.faq-answer p {
    margin: 0;
    color: var(--dark-gray);
    line-height: 1.7;
    font-size: 1rem;
}

.faq-no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
}

.no-results-content {
    max-width: 400px;
    margin: 0 auto;
}

.no-results-icon {
    font-size: 3rem;
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

.faq-no-results h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.faq-no-results p {
    color: var(--medium-gray);
    margin-bottom: 1.5rem;
}

.faq-help-section {
    margin-top: 4rem;
}

.help-card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(10, 35, 66, 0.2);
}

.help-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1));
    transform: rotate(25deg);
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    position: relative;
    z-index: 2;
}

.help-content {
    position: relative;
    z-index: 2;
}

.help-card h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.help-card p {
    opacity: 0.9;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.help-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    gap: 9px;
}

.btn.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .faq-page .hero-subpage h1 {
        font-size: 2.2rem;
    }
    
    .faq-page .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .faq-search {
        margin: 0 1rem;
    }
    
    .faq-categories {
        margin: 0 1rem 2rem;
    }
    
    .category-btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
    
    .faq-container {
        margin: 0 1rem;
    }
    
    .question-content {
        gap: 0.8rem;
    }
    
    .question-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .answer-content {
        padding: 0 20px 20px 60px;
    }
    
    .help-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .help-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .help-actions .btn {
        width: 100%;
        max-width: 250px;
    }
}

.agent-info-section {
    padding: 4rem 0;
    background: #f8fafb;
}

.agent-info-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.agent-info-left {
    padding-right: 1rem;
}

.agent-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e8eb;
}

.agent-card h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: left;
}

.agent-contact {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--light-blue);
    border-radius: 12px;
    margin-bottom: 0.5rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: flex-start;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: #0a2342;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.served-locations {
    margin-bottom: 2rem;
}

.served-locations h4 {
    color: var(--dark-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.location-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #f0f4f7;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.location-item:hover {
    background: var(--light-blue);
    transform: translateX(5px);
}

.location-item i {
    color: var(--accent-color);
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.location-item span {
    color: var(--dark-blue);
    font-weight: 500;
}

.map-container {
    margin-top: 2rem;
    border-radius: 14px;
    overflow: visible;
    background: white;
    border: 2px solid white;
    transition: all 0.3s ease;
    position: relative;
    padding: 0px;
}

.map-container:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(10, 35, 66, 0.1);
}

.location-map {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform-origin: center;
    border-radius: 12px;
}

.location-map:hover {
    transform: scale(1.08) translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    filter: brightness(1.05) contrast(1.05);
    z-index: 10;
    position: relative;
}

.agent-info-right {
    padding-left: 1rem;
}

.contact-form-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e8eb;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero, .about, .offers, .testimonials, .contact {
    position: relative;
    z-index: 1;
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: none;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
    z-index: 99999;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    opacity: 1;
}

#back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

#back-to-top:active {
    transform: translateY(0);
}

@keyframes backToTopBounce {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    50% {
        transform: translateY(-5px);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

#back-to-top.show {
    display: block !important;
    animation: backToTopBounce 0.5s ease-out;
    z-index: 99999 !important;
}

.form-error-message {
    background-color: #ffeeee;
    color: #cc0000;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    border-left: 4px solid #cc0000;
}

.property-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.filter-group {
    flex: 1 1 60px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.results-counter {
    background-color: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: inline-block;
}

.property-listings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.property-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px  20px rgba(0, 0, 0, 0.1);
}

.property-image {
    height: 200px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-content {
       padding: 20px;
}

.property-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.property-location,
.property-type {
    font-size: 0.9rem;
    color: var(--medium-gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.property-location i,
.property-type i {
    margin-right: 5px;
    color: var(--accent-color);
}

.property-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 15px 0;
}

.property-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.property-footer {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.property-details {
    display: flex;
    gap: 15px;
}

.property-detail {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--medium-gray);
}

.property-detail i {
    margin-right: 5px;
    color: var(--accent-color);
}

.policy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 20px;
}

.policy-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.policy-content p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.policy-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.policy-content ul li {
    margin-bottom: 10px;
}

.services {
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.service-card ul {
    padding-left: 1.5rem;
}

.service-card li {
    margin-bottom: 0.8rem;
    position: relative;
    list-style-type: none;
}

.service-card li:before {
    content: '✓';
    position: absolute;
    left: -1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.process {
    padding: 4rem 0;
    background-color: white;
}

.process-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.process-step {
    flex: 1;
    min-width: 200px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.process-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.process-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.pricing {
    padding: 2rem 0;
    background-color: #f9f9f9;
    margin-bottom: 1rem;
}

.pricing-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    margin-top: 2rem;
    gap: 2rem;
}

.pricing-text {
    flex: 2;
    min-width: 300px;
}

.pricing-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.pricing-cta {
    flex: 1;
    min-width: 280px;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pricing-cta h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.pricing-cta .btn {
    margin-top: 1.5rem;
    align-self: flex-start;
}

.cta-contact {
    padding: 2rem 0;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: 1rem;
    margin-top: -1rem;
}

.cta-contact h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.cta-contact p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.cta-contact .btn {
    background-color: white;
    color: var(--primary-color);
    border: 2px solid white;
}

.cta-contact .btn:hover {
    background-color: transparent;
    color: white;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .process-container {
        flex-direction: column;
    }
    
    .process-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
    
    .process-step {
        width: 100%;
    }
    
    .pricing-content {
        flex-direction: column;
    }
    
    .pricing-cta {
        width: 100%;
    }
}

.api-error-message {
    background-color: #ffebee;
    color: var(--error-color);
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
    text-align: center;
    border: 1px solid var(--error-color);
}

.offer-details {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.offer-details h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.details-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.2rem;
}

.details-section {
    background-color: #fff;
    padding: 1.25rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.details-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table th, 
.details-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.details-table th {
    text-align: left;
    font-weight: 600;
    color: var(--dark-gray);
    width: 40%;
}

.details-table td {
    color: var(--text-color);
    font-weight: 500;
}

.additional-info {
    margin-top: 1.5rem;
    background-color: #fff;
    padding: 1.25rem;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.additional-info h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.additional-info p {
    line-height: 1.6;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .details-container {
        grid-template-columns: 1fr;
    }
}

/* FORM STATUS MESSAGES */
#contact-form-status {
    margin-top: 1rem;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
}

.form-status-sending {
    background-color: #e6f7ff;
    color: #00529B;
    border: 1px solid #b3e0ff;
}

.form-status-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 1200px) {
    .about-content {
        flex-direction: column;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    will-change: opacity;
}

.map-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-modal.visible {
    opacity: 1;
}

.map-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    transition: backdrop-filter 0.3s ease;
}

.map-modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    margin: auto;
    z-index: 10000;
    transform: scale(0.9) translateY(30px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.map-modal.visible .map-modal-content {
    transform: scale(1) translateY(0);
}

.map-modal-image {
    width: 100%;
    height: auto;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    cursor: default;
}

.map-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 10001;
}

.map-modal-close:hover {
    background: var(--accent-color);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.map-modal-close:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .map-modal-image {
        max-width: 95vw;
        max-height: 80vh;
        border-radius: 10px;
    }
    
    .map-modal-close {
        top: -10px;
        right: -10px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .map-modal-content {
        max-width: 98vw;
        max-height: 90vh;
    }
}

.location-map,
.map-image {
    cursor: zoom-in !important;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hover-section {
    position: relative;
    /* overflow: hidden; - tymczasowo wyłączone */
}

/* .hover-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(48, 77, 125, 0.02) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hover-section:hover::before {
    opacity: 1;
} */

/* OFFERS GRID - compatibility with modern-offers.css */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Enhanced smooth scrolling styles */
.smooth-scroll-active {
    transition: background-color 0.3s ease;
}

.section-highlight {
    background-color: rgba(52, 152, 219, 0.1) !important;
    transition: background-color 0.3s ease !important;
}

/* Enhanced navigation active states */
#main-menu a {
    position: relative;
    transition: color 0.3s ease;
}

#main-menu a:hover,
#main-menu a.active,
#main-menu a.nav-active {
       color: var(--primary-color);
}

#main-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

#main-menu a:hover::after,
#main-menu a.active::after,
#main-menu a.nav-active::after {
    width: 100%;
}

/* Improved section transitions */
section {
    scroll-margin-top: 80px;
}

/* Enhanced visual feedback for sections */
.hover-section {
    transition: all 0.3s ease;
}

.hover-section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
    .hero,
    .about,
    .offers,
    .testimonials,
    .agent-info-section {
        transition: background-color 0.3s ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 480px) {
    .logo-container {
        gap: 12px;
        padding: 8px 12px;
        border-radius: 40px;
    }
    
    .logo {
        width: 48px;
        height: 48px;
        border-radius: 50%;
    }
    
    .brand-name {
        font-size: 1.15rem;
        letter-spacing: 0.3px;
        padding: 5px 10px;
        border-radius: 20px;
        color: #0a2342 !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }
}

@media (max-width: 480px) {
    .logo-container {
        gap: 10px;
        padding: 6px 10px;
        border-radius: 35px;
    }
    
    .logo {
        width: 44px;
        height: 44px;
        border-radius: 50%;
    }
    
    .brand-name {
        font-size: 1rem;
        letter-spacing: 0.2px;
        font-weight: 600;
        padding: 4px 8px;
        border-radius: 18px;
        color: #0a2342 !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }
}

@media (max-width: 360px) {
    .logo-container {
        gap: 8px;
        padding: 5px 8px;
        border-radius: 30px;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .brand-name {
        font-size: 0.9rem;
        letter-spacing: 0.1px;
        padding: 3px 6px;
        border-radius: 15px;
        color: #0a2342 !important;
        background: rgba(255, 255, 255, 0.9) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
    }
}

.centered-offers-message {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    text-align: center;
}
.centered-offers-message p {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 0;
}

