﻿:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --text: #16324f;
    --muted: #4b6788;
    --primary: #0d6fcf;
    --primary-dark: #0954a0;
    --border: #c5d8f0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-top: 92px;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
}

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

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.header-logo-title {
    display: flex;
    align-items: center;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    letter-spacing: 0.02em;
    color: var(--primary-dark);
    font-weight: 700;
}

nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav a {
    padding: 0.55rem 1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

nav a:hover {
    border-color: var(--border);
    background: #f5f9ff;
}

.phone-button {
    opacity: 0;
    pointer-events: none;
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    border-radius: 999px;
}

.phone-button:hover {
    background: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
}

.header-bar {
    display: none;
}

main {
    width: 100%;
    margin: 0;
    padding: 0 0 2rem;
}

section {
    background: var(--surface);
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 1rem 0;
    margin: 0;
}

section + section {
    border-top: 1px solid var(--border);
}

h1,
h2,
h3 {
    color: var(--primary-dark);
    margin-top: 0;
}

#gallery,
#transformations,
#contact,
#about {
    padding-left: 1rem;
    padding-right: 1rem;
}

.gallery-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gallery-header h2 {
    grid-column: 2;
    margin: 0;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    text-align: center;
}

.gallery-header h1 {
    grid-column: 2;
    margin: 0;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    text-align: center;
}

.breadcrumbs {
    max-width: 980px;
    margin: 0.25rem auto 0.8rem;
    font-size: 0.92rem;
    color: var(--muted);
}

.breadcrumbs a {
    color: var(--primary-dark);
    text-decoration: underline;
}

.scroll-buttons {
    grid-column: 3;
    justify-self: end;
    display: flex;
    gap: 0.6rem;
}

.scroll-buttons button {
    border: 1px solid var(--primary);
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    padding: 0.55rem 1rem;
    cursor: pointer;
}

.scroll-buttons button:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.project-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    align-items: start;
}

.project-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #dbe7f8;
    box-shadow: 0 4px 12px rgba(13, 111, 207, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: zoom-in;
}

.project-images img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(13, 111, 207, 0.15);
}

.project-images-compact {
    grid-template-columns: repeat(3, minmax(0, 320px));
    justify-content: center;
}

.gallery-break {
    grid-column: 1 / -1;
    height: 0.5rem;
}

.gallery-break-labeled {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.4rem 0;
}

.gallery-break-labeled span {
    background: transparent;
    border: 0;
    padding: 0;
}

.gallery-break-labeled h3 {
    margin: 0;
    font-size: 1.1rem;
}

.transformations-list {
    display: grid;
    gap: 1rem;
}

#transformations h2 {
    text-align: center;
}

.transformation-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    width: min(100%, 1240px);
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

.project-images .transformation-row {
    grid-column: 1 / -1;
}

.transformation-before,
.transformation-after {
    text-align: center;
}

.transformation-before span,
.transformation-after span {
    display: inline-block;
    margin: 0 0 0.4rem;
    padding: 0.15rem 0.45rem;
    border: 1px solid var(--border);
    border-radius: 0;
    color: var(--primary-dark);
    font-size: 0.95rem;
    font-weight: 700;
}

.transformation-before img,
.transformation-after img {
    width: 100%;
    height: clamp(290px, 23vw, 340px);
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #dbe7f8;
    box-shadow: 0 4px 12px rgba(13, 111, 207, 0.08);
}

#about {
    line-height: 1.65;
    background: #eef1f5;
    border: 1px solid #d8dee8;
    border-radius: 16px;
    padding: 2rem 2.2rem;
    margin-top: 0.8rem;
    margin-bottom: 0.8rem;
}

#about p,
#about ul,
.contact-info {
    color: var(--muted);
}

#contact {
    text-align: center;
}

.contact-form {
    width: 100%;
    max-width: 1220px;
    margin: 1rem auto 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    background: #eef1f5;
    text-align: left;
}

.service-page #contact .contact-form {
    max-width: 980px;
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--primary-dark);
    font-weight: 700;
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea {
    width: 100%;
    border: 1px solid #9dc2ec;
    border-radius: 8px;
    padding: 0.66rem 0.72rem;
    margin-bottom: 1rem;
    outline: none;
    font-size: 1rem;
}

.contact-form input:not([type="checkbox"]):focus,
.contact-form textarea:focus {
    border-color: var(--primary);
}

.required-legend {
    margin: 0 0 0.8rem;
    font-size: 0.92rem;
    color: var(--muted);
    text-align: left;
}

.contact-form button[type="submit"] {
    width: 100%;
    border: 0;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.75rem;
    cursor: pointer;
}

.contact-form button[type="submit"]:hover {
    background: var(--primary-dark);
}

.form-hidden {
    display: none;
}

.rodo-label {
    font-size: 14px;
    display: block;
    line-height: 1.5;
    margin-bottom: 0;
    font-weight: 400;
}

.rodo-label input {
    width: auto;
    max-width: none;
    display: block;
    margin: 0 auto 0.55rem;
}

.rodo-label span {
    display: block;
}

.privacy-link {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.contact-callout {
    text-align: center;
    font-size: 0.95rem;
    color: var(--primary-dark);
    margin-top: 1rem;
}

.contact-callout a {
    font-weight: 700;
}

.floating-phone-left {
    position: fixed;
    left: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--primary);
    border-radius: 50%;
    z-index: 1001;
    animation: phonePulse 1.6s infinite ease-in-out;
}

#back-to-top {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--primary-dark);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

#back-to-top:hover {
    background: var(--primary);
}

footer {
    margin-top: 1rem;
    background: var(--primary);
    color: #fff;
    padding: 1rem;
}

.footer-content {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: center;
}

.footer-left,
.footer-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.footer-top-left,
.footer-top-right,
.footer-bottom-left,
.footer-bottom-right,
.footer-center {
    margin: 0;
}

.footer-nap {
    margin: 0 0 0.2rem;
    font-weight: 600;
}

.footer-phone,
.footer-email {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 0.4rem 0.8rem;
    font-weight: 700;
}

.footer-phone:hover,
.footer-email:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(4, 24, 43, 0.85);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

#lightbox .lightbox-content {
    max-width: min(1200px, 95vw);
    max-height: 92vh;
    border: 1px solid #ffffff;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 26px;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.privacy-panel {
    background: #fff;
    width: 90vw;
    max-width: 680px;
    max-height: 90vh;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
}

.privacy-panel h1,
.privacy-panel h2 {
    color: var(--primary-dark);
}

.privacy-panel h1,
.privacy-panel p {
    text-align: center;
}

.privacy-close {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-dark);
}

@keyframes phonePulse {
    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-12deg) scale(1.05);
    }
    50% {
        transform: rotate(0deg) scale(1.1);
    }
    75% {
        transform: rotate(12deg) scale(1.05);
    }
}

@media (max-width: 1024px) {
    .transformation-before img,
    .transformation-after img {
        height: 260px;
    }
}

@media (min-width: 769px) {
    .service-page #about {
        max-width: 980px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .service-page #about h1,
    .service-page #about h2,
    .service-page #about h3 {
        text-align: center;
    }

    .service-page #about p {
        text-align: left;
    }

    .service-page #about ul {
        list-style-position: inside;
        padding-left: 0;
        padding-right: 0;
        margin: 0 0 1rem;
        text-align: left;
    }

    .service-page #about li {
        text-align: left;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 132px;
    }

    header {
        padding: 0.8rem 0.9rem;
        flex-direction: column;
        align-items: stretch;
    }

    .site-title {
        text-align: center;
        font-size: 1.45rem;
    }

    nav {
        justify-content: center;
    }

    nav a {
        font-size: 0.86rem;
        padding: 0.45rem 0.7rem;
    }

    .gallery-header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .scroll-buttons {
        grid-column: auto;
        justify-self: auto;
        width: 100%;
        justify-content: center;
    }

    .project-images {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }

    .project-images-compact {
        grid-template-columns: repeat(1, minmax(170px, 1fr));
    }

    .project-images img {
        height: 200px;
    }

    .transformation-row {
        grid-template-columns: 1fr;
    }

    .transformation-before img,
    .transformation-after img {
        height: 220px;
    }

    #about {
        padding: 1.25rem 1rem;
        border-radius: 12px;
    }

    .floating-phone-left {
        bottom: 14px;
    }

    #back-to-top {
        bottom: 14px;
    }
}
