:root {
    --main-bg: #9db2b1;
    --white: #ffffff;
    --black: #232323;
    --accent: #232323;
    --btn-bg: #232323;
    --btn-text: #ffffff;
    --btn-hover: #0057b7;
    --mail-btn-bg: #0057b7;
    --mail-btn-hover: #003e88;
    --phone-btn-bg: #27ae60;
    --phone-btn-hover: #219150;
    --nav-btn-bg: #f39c12;
    --nav-btn-hover: #c87f0a;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: var(--main-bg);
    color: var(--black);
    margin: 0;
    padding: 0;
}

header {
    background: var(--main-bg);
    color: var(--black);
    padding: 32px 10px 18px 10px;
    text-align: center;
}

.logo {
    width: 120px;
    margin-bottom: 12px;
}

h1 {
    margin-top: 0;
    margin-bottom: 0.2em;
    font-size: 2.2em;
    letter-spacing: 1px;
    font-weight: 700;
}

.about, .contact, .social, .gallery {
    margin: 28px auto;
    padding: 22px 18px;
    border-radius: 10px;
    background-color: var(--white);
    box-shadow: 0 2px 16px 0 rgba(34, 34, 34, 0.07);
    max-width: 900px;
}

.about h2 {
    margin-top: 0;
}

.about {
    font-size: 1.13em;
    color: var(--accent);
    background: #f3f6f7;
    border: #232323 2px solid;
    text-align: center;
}

.contact h2, .social h2, .gallery h2 {
    margin-top: 0;
}

.contact-link {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 500;
}

.quick-actions {
    margin-top: 15px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
}

.action-btn {
    padding: 10px 22px;
    border-radius: 22px;
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    border: none;
    display: inline-block;
    box-shadow: 0 2px 8px 0 rgba(34,34,34,0.08);
    letter-spacing: 0.5px;
    color: var(--btn-text);
    background: var(--btn-bg);
}

.action-btn.mail-btn {
    background: var(--mail-btn-bg);
}
.action-btn.mail-btn:hover {
    background: var(--mail-btn-hover);
}

.action-btn.phone-btn {
    background: var(--phone-btn-bg);
}
.action-btn.phone-btn:hover {
    background: var(--phone-btn-hover);
}

.action-btn.nav-btn {
    background: var(--nav-btn-bg);
    color: #fff;
}
.action-btn.nav-btn:hover {
    background: var(--nav-btn-hover);
}

.action-btn:hover {
    color: #fff;
}

.social ul {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 18px;
    justify-content: flex-start;
    margin: 0;
    align-items: center;
}

.social li {
    display: flex;
    align-items: center;
}

.social a {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.2s;
}
.social a:hover {
    color: var(--mail-btn-bg);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}

.gallery-item {
    background: #f8fafc;
    border-radius: 8px;
    box-shadow: 0 1px 8px 0 rgba(34,34,34,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.gallery-item:hover {
    box-shadow: 0 4px 18px 0 rgba(34,34,34,0.14);
    transform: scale(1.025);
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: #eaeaea;
    border-bottom: 1px solid #e0e0e0;
}

.gallery-desc {
    padding: 14px 12px;
    font-size: 1em;
    color: var(--black);
    background: #f3f6f7;
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 70px;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(30,35,40,0.88);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-img {
    max-width: 90vw;
    max-height: 75vh;
    border-radius: 10px;
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.18);
    background: #fff;
    margin-bottom: 16px;
}

.lightbox-caption {
    color: #fff;
    font-size: 1.05em;
    text-align: center;
    margin-bottom: 8px;
    max-width: 90vw;
}

.lightbox-close {
    position: absolute;
    top: 28px;
    right: 40px;
    color: #fff;
    font-size: 2.5em;
    font-weight: bold;
    cursor: pointer;
    z-index: 1010;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #ffd700;
}

footer {
    background-color: #e6ecec;
    color: var(--black);
    text-align: center;
    padding: 16px 8px;
    margin-top: 40px;
    font-size: 1em;
    border-top: 1px solid #b6c7c7;
    box-shadow: 0 -2px 8px 0 rgba(34,34,34,0.04);
}
footer a {
    color: var(--mail-btn-bg);
    text-decoration: underline;
    font-weight: 500;
}

.contact-form-section {
    margin: 28px auto;
    padding: 22px 18px;
    border-radius: 10px;
    background-color: var(--white);
    box-shadow: 0 2px 16px 0 rgba(34, 34, 34, 0.07);
    max-width: 420px;
    justify-items: center;
    border: #232323 2px solid;
}

.contact-form-section h2 {
    color: var(--accent);
    margin-top: 0;
    margin-bottom: 18px;
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.contact-form label {
    font-weight: 500;
    color: var(--accent);
}

.contact-form input,
.contact-form textarea {
    padding: 10px 12px;
    border: 1.5px solid #b6c7c7;
    border-radius: 6px;
    font-size: 1em;
    background: #f3f6f7;
    color: var(--black);
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--mail-btn-bg);
    outline: none;
    box-shadow: 0 0 0 2px #b3d2f6;
}

.form-btn {
    background: var(--mail-btn-bg);
    color: #fff;
    padding: 12px 0;
    border: none;
    border-radius: 22px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px 0 rgba(34,34,34,0.08);
    margin-top: 10px;
}

.form-btn:hover {
    background: var(--mail-btn-hover);
}

#form-status {
    margin-top: 10px;
    font-weight: 600;
    color: var(--phone-btn-bg);
}

.phone-link {
    margin-top: 18px;
    text-align: center;
}
.phone-link a {
    color: var(--phone-btn-bg);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1em;
    transition: color 0.2s;
}
.phone-link a:hover {
    color: var(--mail-btn-bg);
}

.icon-contact {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}
.contact .icon-contact svg {
    vertical-align: middle;
    margin-bottom: 2px;
}
.quick-actions .action-btn svg {
    vertical-align: middle;
    margin-bottom: 2px;
}

.contact{
    text-align: center;
    border: #232323 2px solid;
}

.social{
    text-align: center;
    justify-items: center;
    border: #232323 2px solid;
}

.map-responsive {
    position: relative;
    padding-bottom: 56.25%; /* proporcje 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-top: 16px;
    box-shadow: 0 2px 16px 0 rgba(34, 34, 34, 0.07);
    border: #232323 2px solid;
}
.map-responsive iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

.gallery{
    border: #232323 2px solid;
}

.sticky-header {
    position: sticky;
    top: 0;
    background: linear-gradient(90deg, var(--main-bg) 90%, #fff 100%);
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.13);
    border-bottom: 2px solid var(--mail-btn-bg);
    border-radius: 0 0 14px 14px;
    padding: 0;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    min-height: 58px;
}

.main-nav ul li {
    display: inline-block;
}

.main-nav ul li a {
    display: block;
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    font-size: 1.13em;
    padding: 14px 20px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    position: relative;
}

.main-nav ul li a:hover,
.main-nav ul li a:focus {
    background: var(--mail-btn-bg);
    color: #fff;
    box-shadow: 0 2px 10px 0 rgba(0,87,183,0.09);
}

.main-nav ul li a.active,
.main-nav ul li a[aria-current="page"] {
    background: var(--mail-btn-bg);
    color: #fff;
    box-shadow: 0 2px 10px 0 rgba(0,87,183,0.13);
}

@media (max-width: 700px) {
    .main-nav ul {
        gap: 10px;
        padding: 0 5px;
        min-height: 48px;
    }
    .main-nav ul li a {
        font-size: 1em;
        padding: 12px 12px;
    }
}
@media (max-width: 500px) {
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 0;
        min-height: 0;
    }
    .main-nav ul li a {
        border-radius: 0;
        border-bottom: 1px solid #e6ecec;
        font-size: 1em;
        padding: 14px 0;
        text-align: center;
    }
    .sticky-header {
        border-radius: 0 0 8px 8px;
    }
}

.privacy-policy {
    background: #f3f6f7;
    font-size: 1.06em;
    margin-bottom: 24px;
    padding: 24px 18px;
    border-radius: 10px;
    box-shadow: 0 2px 16px 0 rgba(34,34,34,0.07);
    border: 2px solid #232323;
    color: #232323;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.privacy-policy h2 {
    color: var(--mail-btn-bg);
    margin-top: 0;
}
.privacy-policy a {
    color: var(--mail-btn-bg);
    text-decoration: underline;
    word-break: break-all;
}

.cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #232323;
    color: #fff;
    padding: 16px 10px;
    text-align: center;
    z-index: 2000;
    font-size: 1em;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.09);
}
.cookie-banner button {
    background: var(--mail-btn-bg);
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 7px 18px;
    margin: 0 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.cookie-banner button:hover {
    background: var(--mail-btn-hover);
}
.cookie-banner a {
    color: #ffd700;
    text-decoration: underline;
    margin-left: 8px;
}

.form-group label input[type="checkbox"] {
    accent-color: var(--mail-btn-bg);
    margin-right: 6px;
    transform: scale(1.15);
    vertical-align: middle;
}
.form-group label {
    font-size: 0.97em;
    color: #232323;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

@media (max-width: 600px) {
    .privacy-policy,
    .contact-form-section,
    section,
    footer {
        padding: 14px 5vw;
        max-width: 98vw;
        font-size: 0.98em;
    }
    h2 {
        font-size: 1.2em;
    }
}

.privacy-policy a,
footer a,
.cookie-banner a {
    transition: color 0.2s;
}
.privacy-policy a:hover,
footer a:hover,
.cookie-banner a:hover {
    color: var(--nav-btn-bg);
}

@media screen and (max-width: 480px) {
    /* Styl dla telefonów */
}
@media screen and (min-width: 481px) and (max-width: 767px) {
    /* Styl dla tabletów */
}

.about h2{
    color: var(--mail-btn-bg)
}

.social h2{
    color: var(--mail-btn-bg)
}

.contact h2{
    color: var(--mail-btn-bg)
}

.gallery h2{
    color: var(--mail-btn-bg);
    text-align: center;
}

.contact-form-section h2{
    color: var(--mail-btn-bg)
}
