:root {
    --primary-font: 'Poppins', sans-serif;
    --primary-color: #FFFFFF;
    --accent-color: rgb(110, 146, 230);
    --text-color: #333333;
    --text-light: #555555;
    --bg-light-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --header-height: 70px;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--primary-font);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--primary-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.mobile-nav-active {
    overflow: hidden;
}

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

a:hover {
    color: #5a7fcc;
}

ul {
    list-style: none;
    padding-left: 0;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.8em;
    color: #222;
    line-height: 1.3;
}

h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }
p { margin-top: 0; margin-bottom: 1em; color: var(--text-light); }

address { font-style: normal; }
figure { margin: 0; }
figcaption { font-size: 0.9rem; color: var(--text-light); }
article, aside, figcaption, figure, footer, header, hgroup, main, nav, section, address { display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

.bg-light {
    background-color: var(--bg-light-gray);
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--text-color);
}

.contact-info .section-title,
.layout-text-left-image-right .about-content .section-title,
#about-page .about-content .section-title,
.service-detail-content h2,
.contact-map h2 {
    text-align: left;
}
#intro-about .about-content .section-title {
    text-align: center;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease, border-color var(--transition-speed) ease, transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
}

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

.btn-primary:hover, .btn-primary:focus {
    background-color: #5a7fcc;
    color: var(--primary-color);
    border-color: #5a7fcc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(110, 146, 230, 0.4);
    outline: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--accent-color);
    color: var(--primary-color);
    outline: none;
}

#header {
    background-color: rgba(255, 255, 255, 0.95);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: background-color var(--transition-speed) ease, height var(--transition-speed) ease;
}
.header-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo-link { flex-shrink: 0; display: block; }
.logo-link .logo { height: 45px; width: auto; display: block; transition: height var(--transition-speed) ease; }
#nav-menu { display: flex; align-items: center; margin-left: auto; }
#nav-menu ul { display: flex; gap: 35px; margin: 0; padding: 0; }
#nav-menu .nav-link {
    color: var(--text-color);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    transition: color var(--transition-speed) ease;
    white-space: nowrap;
    text-decoration: none;
}
#nav-menu .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}
#nav-menu .nav-link:hover,
#nav-menu .nav-link.active,
#nav-menu .nav-link:focus {
    color: var(--accent-color);
    outline: none;
}
#nav-menu .nav-link:hover::after,
#nav-menu .nav-link.active::after,
#nav-menu .nav-link:focus::after {
    width: 100%;
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1001;
    padding: 0;
    line-height: 1;
    position: relative;
    width: 24px;
    height: 24px;
    margin-left: 20px;
}
.mobile-nav-toggle .fa-bars,
.mobile-nav-toggle .fa-times {
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-nav-toggle .fa-times { opacity: 0; transform: rotate(-90deg); }
.mobile-nav-toggle.active .fa-bars { opacity: 0; transform: rotate(90deg); }
.mobile-nav-toggle.active .fa-times { opacity: 1; transform: rotate(0deg); }

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary-color);
    overflow: hidden;
}
#hero-legionowo { min-height: 80vh; }
.hero-content-wrapper {
    width: 100%;
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 40px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: -2;
}
.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: -1;
}
.hero-content {
    max-width: 900px;
    padding-left: 15px;
    padding-right: 15px;
}
.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}
#hero-legionowo .hero-content h1 { font-size: 3.2rem; }
.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5em;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
}
.hero-content p:last-of-type { margin-bottom: 0; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}
.service-item {
    text-align: center;
    padding: 40px 25px;
    background-color: var(--primary-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
}
.service-item:hover, .service-item:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: inline-block;
}
.service-icon.large-icon { font-size: 4rem; margin-bottom: 25px; }
.step-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
    line-height: 1;
}
.service-item h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #222;
    flex-shrink: 0;
}
.service-item p {
    flex-grow: 1;
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.service-item .btn {
    margin-top: auto;
}

.page-header {
    margin-bottom: 40px; /* Odstęp pod nagłówkiem strony */
}

.service-detail {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 60px;
}
.service-detail:last-of-type { margin-bottom: 0; }
.service-detail-content { flex: 1; min-width: 0; }
.service-detail-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 25px;
}
.service-detail-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    line-height: 1.5;
}
.service-detail-content ul li i.fas.fa-check-circle {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--accent-color);
    font-size: 1.1rem;
}
.service-detail-content .btn { margin-top: 20px; }
.service-detail-image {
    flex-basis: 40%;
    max-width: 450px;
    flex-shrink: 0;
}
.service-detail-image img {
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 100%;
}
.service-detail:nth-child(even) {
    flex-direction: row-reverse;
}
.service-detail.bg-light, .service-detail.bg-light:nth-child(even) {
    padding: 40px;
    border-radius: 8px;
    flex-direction: column;
}
.service-detail.bg-light .service-detail-image,
.service-detail.bg-light:nth-child(even) .service-detail-image {
    order: -1;
    margin-bottom: 30px;
    max-width: 100%;
}

#area-page .section-title { margin-bottom: 15px; }
#area-page .section-subtitle { margin-bottom: 60px; }
.client-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 70px;
}
.client-type-item {
    background-color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 35px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.client-type-item:hover, .client-type-item:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.client-type-icon-wrapper { margin-bottom: 20px; }
.client-type-icon { font-size: 3rem; color: var(--accent-color); display: inline-block; }
.client-type-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
    line-height: 1.3;
    min-height: calc(1.4rem * 1.3 * 2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.client-type-item p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 0;
}
.area-map-visual {
    text-align: center;
    margin-bottom: 50px;
}
.area-map-visual img {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.area-map-visual figcaption {
    font-size: 0.9em;
    color: var(--text-light);
    margin-top: 10px;
}
.area-interactive { margin-top: 0; text-align: center; }
.area-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 30px;
    text-align: center;
}
.toggle-locations-btn {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.toggle-locations-btn:hover, .toggle-locations-btn:focus {
    background-color: #5a7fcc;
    transform: translateY(-2px);
    outline: none;
}
.toggle-locations-btn .fas { transition: transform var(--transition-speed) ease; }
.toggle-locations-btn.active .fas { transform: rotate(180deg); }
.locations-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding-top 0.5s ease-out, padding-bottom 0.5s ease-out, margin-top 0.5s ease-out, border-width 0.5s ease-out, opacity 0.5s ease-out;
    margin-top: 0;
    padding: 0 30px;
    border: 0px solid var(--border-color);
    background-color: var(--primary-color);
    border-radius: 5px;
    text-align: left;
    opacity: 0;
}
.locations-details.active {
    max-height: 1000px;
    padding-top: 30px;
    padding-bottom: 30px;
    margin-top: 30px;
    border-width: 1px;
    opacity: 1;
}
.locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px 30px;
}
.locations-grid ul { margin: 0; padding: 0; list-style: none; }
.locations-grid li { margin-bottom: 8px; font-size: 0.95rem; color: var(--text-light); }
.locations-grid li strong { color: var(--text-color); font-weight: 600; }
.locations-note {
    margin-top: 30px;
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 0;
}
.locations-note a { font-weight: 600; color: var(--accent-color); }

.layout-text-left-image-right {
    display: flex;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}
.layout-text-left-image-right > .about-content {
    flex: 1 1 55%;
    min-width: 280px;
    order: 0;
}
.layout-text-left-image-right > .about-image {
    flex: 1 1 40%;
    min-width: 280px;
    order: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.layout-text-left-image-right > .about-image img {
    display: block;
    width: 100%;
    height: auto;
}
.about-content p { margin-bottom: 1.2em; }
.about-content strong { color: var(--text-color); font-weight: 600; }
.about-content ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
    margin-bottom: 20px;
}
.about-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    line-height: 1.6;
}
.about-content ul li i.fas {
    position: absolute;
    left: 0;
    top: 5px;
    color: var(--accent-color);
    font-size: 1.1rem;
    line-height: 1;
}
.about-content .btn { margin-top: 25px; }
#about-page .about-content {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
}
.why-us-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background-color: var(--primary-color);
    border-left: 5px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    transition: box-shadow var(--transition-speed) ease, transform var(--transition-speed) ease;
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.why-us-item:hover, .why-us-item:focus-within {
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    transform: translateY(-3px);
}
.benefit-icon {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-top: 2px;
    flex-shrink: 0;
    width: 30px;
    text-align: center;
}
.why-us-item-content { flex-grow: 1; }
.why-us-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #222;
}
.why-us-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.contact-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.contact-info { flex: 1 1 45%; min-width: 320px; }
.contact-info p { margin-bottom: 15px; color: var(--text-light); }
.contact-details {
    margin-top: 30px;
    margin-bottom: 20px;
    list-style: none;
    padding-left: 0;
}
.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
    font-size: 1.05rem;
    line-height: 1.5;
}
.contact-details li i.fas {
    font-size: 1.6rem;
    color: var(--accent-color);
    width: 30px;
    text-align: center;
    margin-top: 4px;
    flex-shrink: 0;
}
.contact-details li div {
    flex-grow: 1;
    line-height: 1.4;
}
.contact-details li strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-color);
    font-weight: 600;
}
.contact-details li div:not(:has(a)) { color: var(--text-light); }
.contact-details a {
    color: var(--accent-color);
    font-weight: 500;
    word-break: break-word;
    display: inline-block;
    margin-bottom: 2px;
    transition: color var(--transition-speed) ease, text-decoration var(--transition-speed) ease;
}
.contact-details a:last-child { margin-bottom: 0; }
.contact-details a:hover, .contact-details a:focus {
    text-decoration: underline;
    color: #5a7fcc;
    outline: none;
}
.contact-map { flex: 1 1 50%; min-width: 320px; }
.contact-map iframe {
    border: 0;
    border-radius: 8px;
    width: 100%;
    height: 400px;
    filter: grayscale(15%);
}
.contact-form-placeholder {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--bg-light-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
}
.contact-form-placeholder h3 { color: var(--text-color); }

#footer {
    background-color: #282828;
    color: rgba(255, 255, 255, 0.75);
    padding: 50px 0;
    font-size: 0.9rem;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}
.footer-info {
    text-align: left;
    flex-basis: 65%;
    flex-grow: 1;
}
.footer-info p {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}
.footer-info p:last-of-type { margin-bottom: 0; }
.footer-info strong { color: rgba(255, 255, 255, 0.95); font-weight: 600; }
.footer-link-contact {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: color var(--transition-speed) ease;
    white-space: nowrap;
    text-decoration: underline;
}
.footer-link-contact:hover, .footer-link-contact:focus {
    color: var(--accent-color);
    text-decoration: none;
    outline: none;
}
.footer-social {
    display: flex;
    gap: 18px;
    flex-basis: auto;
    justify-content: flex-end;
    flex-shrink: 0;
}
.footer-social .social-icon {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.4rem;
    transition: color var(--transition-speed) ease, transform var(--transition-speed) ease;
}
.footer-social .social-icon:hover, .footer-social .social-icon:focus {
    color: var(--accent-color);
    transform: translateY(-3px);
    outline: none;
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease, background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    border: none;
}
.scroll-top:hover, .scroll-top:focus {
    background-color: #5a7fcc;
    color: var(--primary-color);
    transform: translateY(-3px);
    outline: none;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.hero-content > .animate-on-scroll {
    transition-delay: calc(0.1s * var(--i, 0));
}

.services-grid .animate-on-scroll:nth-child(1), .client-types-grid .animate-on-scroll:nth-child(1), .why-us-grid .animate-on-scroll:nth-child(1), .other-services-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.services-grid .animate-on-scroll:nth-child(2), .client-types-grid .animate-on-scroll:nth-child(2), .why-us-grid .animate-on-scroll:nth-child(2), .other-services-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.services-grid .animate-on-scroll:nth-child(3), .client-types-grid .animate-on-scroll:nth-child(3), .why-us-grid .animate-on-scroll:nth-child(3), .other-services-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.services-grid .animate-on-scroll:nth-child(4), .client-types-grid .animate-on-scroll:nth-child(4), .why-us-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }
.why-us-grid .animate-on-scroll:nth-child(5) { transition-delay: 0.15s; }
.why-us-grid .animate-on-scroll:nth-child(6) { transition-delay: 0.25s; }

.cta-section {
    text-align: center;
    margin-top: 60px;
    padding: 40px 30px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(110, 146, 230, 0.3);
}
.cta-section h2, .cta-section h3 {
    color: white;
    margin-bottom: 15px;
}
.cta-section h2 { font-size: 2.5rem; }
.cta-section h3 { font-size: 1.8rem; }
.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-section .btn-secondary {
    background-color: white;
    color: var(--accent-color);
    border-color: white;
}
.cta-section .btn-secondary:hover, .cta-section .btn-secondary:focus {
    background-color: var(--bg-light-gray);
    color: #5a7fcc;
    border-color: var(--bg-light-gray);
    outline: none;
}
.phone-numbers-cta a {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    display: inline-block;
    margin: 0 15px 10px;
    text-decoration: none;
    transition: color 0.3s ease;
}
.phone-numbers-cta a:hover, .phone-numbers-cta a:focus {
    color: rgba(255,255,255,0.8);
    outline: none;
}
.phone-numbers-cta span {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    display: inline-block;
    margin: 0 10px;
    vertical-align: middle;
}

.center-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    margin-top: 40px;
}
.center-container .btn {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.other-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.other-service-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--primary-color);
}
.other-service-item:hover, .other-service-item:focus {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    color: var(--accent-color);
    border-color: var(--accent-color);
    outline: none;
}
.other-service-item .service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
    margin: 0;
}
.other-service-item .other-service-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-weight: 600;
    color: inherit;
    transition: color 0.3s ease;
}
.other-service-item .other-service-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
    transition: color 0.3s ease;
}
.other-service-item:hover .other-service-text h4,
.other-service-item:focus .other-service-text h4 {
    color: var(--accent-color);
}

@media (max-width: 992px) {
    :root {
        --header-height: 65px;
    }
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .hero-content h1 { font-size: 3rem; }
    #hero-legionowo .hero-content h1 { font-size: 2.8rem; }
    .hero-content-wrapper {
        padding-top: calc(var(--header-height) + 30px);
        padding-bottom: 30px;
    }

    #nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: var(--header-height);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        z-index: 999;
        margin: 0;
    }
    #nav-menu.active {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    #nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
    }
    #nav-menu .nav-link {
        padding: 10px 20px;
        font-size: 1.4rem;
        width: auto;
        text-align: center;
        border-radius: 5px;
    }
    #nav-menu .nav-link::after { display: none; }
    #nav-menu .nav-link:hover, #nav-menu .nav-link:focus {
        background-color: rgba(110, 146, 230, 0.1);
    }
    #nav-menu .nav-link.active {
        color: var(--accent-color);
        font-weight: 700;
    }
    .mobile-nav-toggle { display: block; }

    .layout-text-left-image-right {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .layout-text-left-image-right > .about-content,
    .layout-text-left-image-right > .about-image {
        flex-basis: auto;
        max-width: 100%;
        width: 100%;
        order: 0;
        text-align: left;
    }
    .layout-text-left-image-right > .about-content .section-title {
        text-align: center !important;
    }
    #dlaczego-everflow-legionowo.layout-text-left-image-right > .about-image { order: -1; }

    .about-image {
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
    .about-content ul {
        text-align: left;
        display: inline-block;
        max-width: 100%;
    }
    .layout-text-left-image-right .center-container {
        justify-content: center;
    }
    .about-content div[style*="margin-left"] {
        margin-left: 0 !important;
        text-align: center;
    }

    .why-us-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
    .client-types-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; margin-bottom: 60px; }
    .client-type-item h3 { min-height: auto; }
    .locations-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .area-subtitle { font-size: 1.4rem; }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    .footer-info { flex-basis: 100%; order: 2; text-align: center; }
    .footer-social { flex-basis: 100%; justify-content: center; order: 1; margin-bottom: 20px; }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero-section { min-height: auto; padding-top: 80px; padding-bottom: 80px; }
    .hero-content-wrapper {
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 20px;
    }
    .hero-content h1 { font-size: 2.5rem; }
    #hero-legionowo .hero-content h1 { font-size: 2.3rem; }
    .hero-content p { font-size: 1rem; }

    .services-grid, .client-types-grid, .why-us-grid, .other-services-grid {
        grid-template-columns: 1fr;
    }
    .client-types-grid { gap: 20px; margin-bottom: 50px; }
    .locations-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .area-subtitle { font-size: 1.3rem; margin-bottom: 25px; }

    .contact-container { gap: 30px; }
    .contact-info, .contact-map { flex: 1 1 100%; min-width: unset; }
    .contact-info .section-title {
         text-align: left !important;
    }
    .contact-map iframe { height: 300px; }

    .service-detail, .service-detail:nth-child(even) {
        flex-direction: column;
        gap: 30px;
    }
    .service-detail-image, .service-detail:nth-child(even) .service-detail-image {
        flex-basis: auto;
        max-width: 100%;
        order: -1;
        width: 100%;
    }
    .service-detail-content h2, .service-detail:nth-child(even) .service-detail-content h2 {
        text-align: center;
    }

    .scroll-top { bottom: 20px; right: 20px; width: 40px; height: 40px; font-size: 1.2rem; }
    .phone-numbers-cta a { font-size: 1.5rem; margin: 0 10px 8px; }
    .phone-numbers-cta span { font-size: 1.2rem; margin: 0 5px; }
}

@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
    .hero-content h1 { font-size: 2.2rem; }
    #hero-legionowo .hero-content h1 { font-size: 2rem; }
    .hero-content-wrapper {
        padding-top: calc(var(--header-height) + 15px);
        padding-bottom: 15px;
    }
    .btn { padding: 10px 25px; font-size: 0.9rem; }
    .section-title { font-size: 1.8rem; }
    .section-subtitle { font-size: 0.95rem; margin-bottom: 40px; }

    .service-item, .client-type-item { padding: 30px 20px; }
    .service-item h3, .client-type-item h3 { font-size: 1.2rem; }
    .client-type-item h3 { min-height: auto; }

    .locations-grid { grid-template-columns: 1fr; }
    .locations-details.active { padding: 20px; }
    .toggle-locations-btn { font-size: 0.9rem; padding: 10px 20px; width: 100%; }
    .area-subtitle { font-size: 1.2rem; }

    .why-us-item { padding: 25px; flex-direction: column; text-align: center; }
    .benefit-icon { margin: 0 auto 15px auto; }
    .why-us-item h3 { font-size: 1.1rem; }

    .contact-details li { gap: 15px; margin-bottom: 18px; font-size: 1rem; flex-direction: column; align-items: center; text-align: center; }
    .contact-details li i.fas { margin-top: 0; margin-bottom: 8px; }
    .contact-details li div { line-height: 1.4; }

    .other-service-item { padding: 15px; gap: 15px; flex-direction: column; text-align: center; }
    .other-service-item .service-icon { margin-bottom: 10px; font-size: 2.2rem; }
    .other-service-item .other-service-text h4 { font-size: 1.1rem; }

    .phone-numbers-cta a, .phone-numbers-cta span { display: block; margin: 8px auto; }
    .phone-numbers-cta span { display: none; }
}