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

:root {
    --primary: #1e3a5f;
    --primary-dark: #16284a;
    --accent: #328644;
    --light-gray: #f8f9fa;
    --text: #333;
    --border: #e9ecef;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    line-height: 1.6;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

nav .logo img {
    max-height: 76px;
    max-width: min(100%, 360px);
    width: auto;
    display: block;
    padding: 0.2rem 0;
}

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

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    position: relative;
}

.hamburger-menu i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.hamburger-menu:hover {
    background: rgba(50, 134, 68, 0.12);
    border-radius: 50%;
}

.hamburger-menu:active {
    transform: scale(0.95);
}

.hamburger-menu.is-active i {
    transform: rotate(90deg);
    color: var(--accent);
}

.hamburger-menu:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
    background: rgba(50, 134, 68, 0.16);
    border-radius: 50%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#mobile-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#mobile-menu li {
    list-style: none;
}

#mobile-menu.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 1.5rem 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

#mobile-menu.active li {
    margin-bottom: 1rem;
}

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    min-height: 80vh;
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    display: block;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    background: rgba(0, 0, 0, 0.25);
    color: white;
}

.carousel-overlay h1 {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
    line-height: 1.05;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.carousel-overlay p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 2rem;
    max-width: 800px;
    text-shadow: 0 8px 15px rgba(0, 0, 0, 0.35);
}

.btn {
    display: inline-block;
    padding: 0.95rem 1.75rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: transform 0.25s, background 0.25s;
    border: none;
}

.btn:hover {
    background: #276935;
    transform: translateY(-1px);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.75);
}

.carousel-btn.prev {
    left: 1.5rem;
}

.carousel-btn.next {
    right: 1.5rem;
}

.carousel-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background 0.3s;
}

.carousel-dot.active {
    background: #fff;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.6rem;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

/* About Section */
.about {
    padding: 4rem 0;
    background: var(--light-gray);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    color: #555;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

/* Services/Specialization */
.services {
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

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

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

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

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

/* Pricing */
.pricing {
    padding: 4rem 0;
    background: var(--light-gray);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.pricing-card h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-card p {
    color: #555;
    line-height: 1.8;
}

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

/* Cooperation */
.cooperation {
    padding: 4rem 0;
}

.cooperation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.cooperation-image {
    order: 2;
}

.cooperation-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cooperation-text h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.cooperation-text h4 {
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.cooperation-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.cooperation-text ul {
    list-style: none;
    padding: 0;
}

.cooperation-text li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.cooperation-text li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

@media (max-width: 768px) {
    .cooperation-content {
        grid-template-columns: 1fr;
    }
    .cooperation-image {
        order: 0;
    }
}

/* Contact */
.contact {
    padding: 4rem 0;
    background: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: grid;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-item i {
    color: var(--accent);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-item h4 {
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: #555;
}

.contact-item p a {
    color: #555;
    text-decoration: none;
}

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

.contact-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-map iframe {
    width: 100%;
    border: none;
}

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

/* Articles */
.articles {
    padding: 4rem 0;
    background: var(--light-gray);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

.article-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.16);
}

.article-card:hover .article-image img {
    transform: scale(1.03);
}

.article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.article-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 280px;
}

.article-content h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    line-height: 1.4;
    text-align: center;
}

.article-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 0 0.35rem;
    text-align: justify;
    flex-grow: 1;
}

.article-content .btn {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover .btn {
    background: #276935;
    box-shadow: 0 8px 18px rgba(39, 105, 53, 0.25);
    transform: translateY(-1px);
}

.articles-cta {
    margin-top: 2.5rem;
    text-align: center;
}

.articles-cta .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 8px 20px rgba(30, 58, 95, 0.15);
}

.articles-page-hero {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(rgba(30, 58, 95, 0.8), rgba(30, 58, 95, 0.72)), url('../img/artykuly.jpg') center/cover no-repeat;
    color: #fff;
    text-align: center;
}

.articles-page-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 1rem;
}

.articles-page-hero p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
}

.article-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.article-link:hover {
    color: #276935;
}

/* Responsive Articles */
@media (max-width: 768px) {
    .articles {
        padding: 3rem 0;
    }

    .hero {
        min-height: 52vh;
    }

    .article-hero {
        min-height: 42vh;
    }

    .article-hero .hero-content h1 {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }

    .article-hero .hero-content p {
        font-size: 0.95rem;
    }

    .article-card:hover {
        transform: translateY(-3px);
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .article-card {
        margin: 0 1rem;
        min-height: 520px;
    }

    .article-content {
        padding: 1.5rem;
        min-height: 300px;
    }

    .article-content .btn {
        min-width: 150px;
        justify-content: center;
    }

    .article-content h3 {
        font-size: 1.2rem;
    }
}

/* Article Page Styles */
.article-hero {
    min-height: 55vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}

.article-hero--1 {
    background-image: linear-gradient(rgba(20, 32, 58, 0.55), rgba(20, 32, 58, 0.55)), url('../img/divorce.jpg');
}

.article-hero--2 {
    background-image: linear-gradient(rgba(20, 32, 58, 0.55), rgba(20, 32, 58, 0.55)), url('../img/art2.jpg');
}

.article-hero--3 {
    background-image: linear-gradient(rgba(20, 32, 58, 0.55), rgba(20, 32, 58, 0.55)), url('../img/artykuly.jpg');
}

.article-hero--4 {
    background-image: linear-gradient(rgba(20, 32, 58, 0.55), rgba(20, 32, 58, 0.55)), url('../img/planyzagospodarowania.jpg');
}

.article-hero--5 {
    background-image: linear-gradient(rgba(20, 32, 58, 0.55), rgba(20, 32, 58, 0.55)), url('../img/lass.jpg');
}

.article-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

.article-hero .hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.article-hero .hero-content h1 {
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    margin-bottom: 1rem;
    text-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.article-hero .hero-content p {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.article-content {
    /* padding: 4rem 0; */
    background: white;
}

.article-content .container {
    max-width: 800px;
}

.article-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.article-meta span {
    color: #666;
    font-size: 0.9rem;
}

.article-meta i {
    margin-right: 0.5rem;
    color: var(--accent);
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.7;
}

.article-body h2 {
    color: var(--primary);
    margin: 2.5rem 0 1.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.article-body h2:first-child {
    margin-top: 0;
}

.article-body h3 {
    color: var(--primary);
    margin: 2rem 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.article-body p {
    margin-bottom: 1.5rem;
    color: #444;
}

.article-body ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    color: #444;
}

.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}

.article-navigation .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Responsive Article Pages */
@media (max-width: 768px) {
    .article-content .container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
    }

    .article-body h3 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.75rem 0;
    }

    .article-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .article-navigation .btn {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

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

.social-links a {
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--accent);
}

@media (max-width: 768px) {
    nav .container {
        padding: 1rem;
    }

    nav .logo img {
        max-height: 58px;
        max-width: 250px;
    }

    #mobile-menu {
        display: none;
        flex-direction: column;
        gap: 1rem;
    }

    .hamburger-menu {
        display: block;
    }

    .hero {
        min-height: 70vh;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .carousel-overlay h1 {
        font-size: 2.4rem;
    }

    .carousel-overlay p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.75rem 1.35rem;
        font-size: 0.95rem;
    }
}
