:root {
    --primary: #00c853;
    --bg: #181a1b;
    --bg-card: #23272b;
    --text-main: #f1f1f1;
    --text-muted: #bdbdbd;
    --border: #23272b;
    --radius: 14px;
    --maxw: 1100px;
    --card-wide: calc(3 * 350px + 2 * 2rem);
}
body.light {
    --primary: #00c853;
    --bg: #f8f9fa;
    --bg-card: #fff;
    --text-main: #202124;
    --text-muted: #5f6368;
    --border: #e0e0e0;
}
html, body {
    height: 100%;
}
body {
    font-family: 'Inter', Arial, sans-serif;
    background: var(--bg);
    color: var(--text-main);
    margin: 0;
    min-height: 100vh;
    font-size: 17px;
    line-height: 1.65;
    transition: background 0.3s, color 0.3s;
}
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    text-decoration: underline;
}
.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 2rem;
}
nav {
    background: #161718;
    padding: 0.7rem 0;
    position: sticky;
    top: 0;
    z-index: 10;
    transition: background 0.3s;
}
body.light nav {
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--maxw);
    margin: 0 auto;
    min-height: 56px;
}
.nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.nav-logo img {
    height: 40px;
    width: auto;
    max-width: 140px;
    display: block;
    transition: filter 0.3s;
}
.nav-links {
    flex: 1 1 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2em;
    min-width: 0;
    overflow: hidden;
}
.nav-links a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    white-space: nowrap;
    padding: 0.3em 0.5em;
}
.nav-links a:hover {
    color: var(--primary);
}
.switchers {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-left: 0;
}
.dropdown {
    position: relative;
    display: inline-block;
}
.switch-btn {
    background: none;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: 20px;
    padding: 0.3em 1.1em;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
.switch-btn.active, .switch-btn:focus {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.dropdown-arrow {
    font-size: 0.8em;
    margin-left: 0.3em;
}
.dropdown-content {
    display: none;
    position: absolute;
    background: var(--bg-card);
    min-width: 120px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-radius: 10px;
    z-index: 99;
    right: 0;
    top: 110%;
    padding: 0.3em 0;
}
.dropdown-content .dropdown-item {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1rem;
    text-align: left;
    width: 100%;
    padding: 0.5em 1em;
    cursor: pointer;
    transition: background 0.2s;
}
.dropdown-content .dropdown-item:hover {
    background: var(--primary);
    color: #fff;
}
.dropdown.open .dropdown-content {
    display: block;
}
.hero {
    background: #161718;
    color: var(--text-main);
    padding: 5rem 0 4rem 0;
    text-align: center;
    transition: background 0.3s, color 0.3s;
}
body.light .hero {
    background: #f8f9fa;
}
.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
    letter-spacing: -1px;
    color: var(--text-main);
}
.hero p {
    font-size: 1.22rem;
    color: var(--text-muted);
    margin-bottom: 2.2rem;
    font-weight: 400;
}
.hero .cta-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.13rem;
    font-weight: 700;
    padding: 0.85em 2em;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    font-family: inherit;
}
.hero .cta-btn:hover {
    background: #00b44a;
}
section {
    margin: 0 auto;
    padding: 3rem 0 2.2rem 0;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-main);
    text-align: center;
    letter-spacing: -0.5px;
}
/* KAFELKI */
.flex-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1.5rem 2.2rem 1.5rem;
    min-width: 280px;
    max-width: 350px;
    flex: 1 1 310px;
    min-height: 120px;
    text-align: center;
    font-size: 1.08rem;
    font-weight: 500;
    justify-content: flex-start;
    transition: background 0.3s, color 0.3s;
}
.card.fullwidth {
    max-width: 100%;
    min-width: 0;
}
.card.wide {
    min-width: 0;
    max-width: var(--card-wide);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    font-size: 1rem;
    font-weight: 400;
}
.card h3, .card h4 {
    text-align: center;
    margin: 0 0 1.1rem 0;
    color: var(--primary);
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    min-height: 2.8em;  /* miejsce na dwie linie */
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card h4 {
    font-size: 1.18rem;
}
.card .case-meta {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    text-align: center;
}
.card p, .card .desc {
    color: var(--text-muted);
    font-size: 1.06rem;
    text-align: left;
    margin: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: flex-start;
}
.pricing-table,
.contact-form-section,
.faq-section,
.map-section .card {
    min-width: 0;
    max-width: var(--card-wide);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.pricing-table {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1.5rem 2.2rem 1.5rem;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 0 0;
    font-size: 1.01rem;
}
th, td {
    padding: 1rem 0.7rem;
    border-bottom: 1px solid #292929;
    text-align: left;
}
th {
    color: var(--primary);
    font-weight: 700;
}
td {
    color: var(--text-main);
}
.pricing-note {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-top: 1rem;
    font-weight: 400;
}
.faq-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.2rem 1.5rem;
    margin: 2.5rem auto 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.faq-section h2 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
}
.faq-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.faq-q {
    cursor: pointer;
    font-weight: 600;
    margin: 1.2em 0 0.3em 0;
    color: var(--text-main);
    transition: color 0.2s;
}
.faq-q:hover {
    color: var(--primary);
}
.faq-a {
    margin: 0 0 1.1em 0;
    color: var(--text-muted);
    font-size: 1.01em;
    display: none;
    font-weight: 400;
    text-align: left;
}
.faq-q.open + .faq-a {
    display: block;
}
.map-section {
    background: none;
    border-radius: 0;
    padding: 2.5rem 0 0 0;
    margin: 0 auto 0 auto;
    max-width: 100vw;
    box-shadow: none;
    text-align: center;
}
.map-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
}
.map-section .card {
    margin: 0 auto;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.google-map {
    width: 100%;
    height: 320px;
    border: 0;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.company-data {
    margin: 1.5em 0 0 0;
    font-size: 1.08rem;
    color: var(--text-main);
    line-height: 1.7;
    text-align: center;
}
.company-data b {
    color: var(--primary);
    font-weight: 700;
}
.company-data .contact-protect {
    unicode-bidi: bidi-override;
    direction: rtl;
    display: inline-block;
    font-family: monospace;
    letter-spacing: 0.02em;
    user-select: none;
}
.contact-link {
    color: var(--primary);
    text-decoration: underline;
    cursor: pointer;
    direction: ltr;
    unicode-bidi: embed;
}
.centered-footer {
    text-align: center;
}
.contact-link:hover {
    color: #009e3a;
}
.contact-protect {
    pointer-events: none;
}

/* FORMULARZ KONTAKTOWY */
.contact-form-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    margin: 2.5rem auto 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-form-section h3 {
    margin-top: 0;
    margin-bottom: 1.2rem;
    color: var(--primary);
    font-weight: 700;
    text-align: center;
}
.contact-form {
    max-width: 700px;
    width: 96%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.05rem;
    font-weight: 500;
    width: 100%;
    text-align: left;
    color: var(--text-main);
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.85em 1.1em;
    margin-bottom: 1.1rem;
    border: 1.5px solid #333;
    border-radius: 8px;
    background: #23272b;
    color: var(--text-main);
    font-size: 1.08rem;
    font-family: inherit;
    font-weight: 400;
    box-sizing: border-box;
    transition: border 0.2s, background 0.2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #888;
    opacity: 1;
}
body.light .contact-form input,
body.light .contact-form textarea,
body.light .contact-form select {
    background: #fff;
    border: 1.5px solid #ccc;
    color: var(--text-main);
}
body.light .contact-form input::placeholder,
body.light .contact-form textarea::placeholder {
    color: #aaa;
}
.contact-form textarea {
    min-height: 120px;
    max-height: 350px;
    font-family: inherit;
    font-size: 1.08rem;
    resize: vertical;
}
.contact-form button {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.7em 2em;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
    margin: 0 auto;
    display: block;
}
.contact-form button:hover {
    background: #00b44a;
}
@media (max-width: 1200px) {
    .container { max-width: 100vw; }
    .pricing-table, .card.wide,
    .contact-form-section, .faq-section,
    .map-section .card {
        max-width: 100vw;
    }
}
@media (max-width: 900px) {
    .container { padding: 0 1rem; }
    .flex-cards { gap: 1.2rem; }
    .pricing-table, .card.wide,
    .contact-form-section, .faq-section,
    .map-section .card {
        max-width: 100vw;
    }
    .contact-form { width: 100%; max-width: 100%; }
}
@media (max-width: 700px) {
    .container { padding: 0 0.5rem; }
    .hero h1 { font-size: 2rem; }
    .section-title { font-size: 1.3rem; }
    .nav-links { gap: 1em; }
    .google-map { height: 180px; }
    .call-now-btn { display: block; }
    .flex-cards { flex-direction: column; gap: 1.2rem; }
    .card, .pricing-table, .card.wide,
    .contact-form-section, .faq-section,
    .map-section .card {
        min-width: 0; max-width: 100%; }
    .contact-form { max-width: 100%; }
    .nav-inner { flex-direction: column; align-items: stretch; }
    .nav-links { justify-content: center; }
    .switchers { justify-content: center; margin: 0.5em 0 0 0; }
    .nav-logo { justify-content: center; }
}
