/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: hsl(210, 80%, 35%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(210, 15%, 25%);
    --secondary-foreground: hsl(0, 0%, 100%);
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(210, 15%, 20%);
    --muted: hsl(210, 15%, 95%);
    --muted-foreground: hsl(210, 10%, 50%);
    --accent: hsl(200, 90%, 45%);
    --border: hsl(210, 15%, 85%);
    --industrial-light: hsl(210, 10%, 95%);
    --card: hsl(0, 0%, 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
}

.hidden {
    display: none !important;
}

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

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.page-section {
    padding: 4rem 0;
}

/* Header */
#header {
    background: var(--background);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--foreground);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--foreground);
    transition: background-color 0.3s ease;
}

/* Hero Slider */
#home {
    position: relative;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.hero-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.hero-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--primary-foreground);
    padding: 2rem;
    border-radius: 0.5rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 1rem;
}

.hero-nav button {
    background: rgba(0, 0, 0, 0.3);
    color: var(--primary-foreground);
    border: none;
    font-size: 3rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: background 0.3s;
}

.hero-nav button:hover {
    background: rgba(0, 0, 0, 0.5);
}

.hero-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

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

.hero-dot.active {
    background-color: var(--primary-foreground);
}

/* Services Section */
.services-section {
    padding: 3rem 0;
    background: var(--industrial-light);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--foreground);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s;
    display: block;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card-image {
    height: 200px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-content {
    padding: 1.5rem;
}

.service-card-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.service-card-content p {
    font-size: 1rem;
    color: var(--muted-foreground);
}

/* Contact Form */
.contact-section {
    padding: 4rem 0;
    background: var(--muted);
}

.contact-wrapper {
    background: var(--card);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--foreground);
    background: var(--background);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .error-message {
    color: #b91c1c;
    font-size: 0.95rem;
    margin-top: 0.35rem;
}

.contact-form .input-error {
    border-color: #ef4444 !important;
    background-color: #fff1f2 !important;
}

.consent-group {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 0.25rem;
}

.consent-group label {
    display: inline-block;
    color: var(--foreground);
    line-height: 1.4;
    font-size: 0.95rem;
}

.consent-group a {
    color: #7f1d1d;
    text-decoration: underline;
}

.consent-group input[type="checkbox"] {
    margin-top: 0.25rem;
    min-width: 1rem;
    min-height: 1rem;
}

.form-feedback {
    padding: 0.85rem 1rem;
    border-radius: 0.4rem;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

.form-feedback.success {
    background: #ecfdf5;
    color: #166534;
    border-color: #a7f3d0;
}

.form-feedback.error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.btn-primary,
.contact-form button[type="submit"],
.contact-form input[type="submit"] {
    padding: 0.75rem 1.5rem;
    background-color: #6b7280;
    color: #ffffff;
    border: none;
    border-radius: 0.25rem;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover,
.contact-form button[type="submit"]:hover,
.contact-form input[type="submit"]:hover {
    background-color: #4b5563;
}

.btn-primary:hover {
    background-color: hsl(210, 80%, 30%);
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 10010;
    background: rgba(15, 23, 42, 0.97);
    color: var(--primary-foreground);
    border-radius: 0.75rem;
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.15);
    padding: 1rem 1.25rem;
    backdrop-filter: blur(10px);
}

.cookie-banner__content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-banner__content p {
    margin: 0;
    color: var(--primary-foreground);
    max-width: 70ch;
}

.btn-cookie {
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 0.5rem;
    background: var(--primary);
    color: var(--primary-foreground);
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.btn-cookie:hover {
    background: hsl(210, 80%, 30%);
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .cookie-banner {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .cookie-banner__content {
        flex-direction: column;
        align-items: stretch;
    }
}

/* About Section */
.back-btn {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: background-color 0.3s;
}

.back-btn:hover {
    background-color: hsl(210, 15%, 20%);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--foreground);
    text-align: center;
}

.about-content p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.breadcrumbs {
    margin-bottom: 1.5rem;
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-list li::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--border);
}

.breadcrumb-list li:last-child::after {
    content: '';
    margin: 0;
}

.doc-section {
    padding: 2rem;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.doc-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--foreground);
}

.doc-section p,
.doc-section li {
    font-size: 1.03rem;
    color: var(--muted-foreground);
    line-height: 1.75;
    margin-bottom: 0.9rem;
}

.doc-section ul {
    padding-left: 1.3rem;
    margin: 0.75rem 0 0;
}

.doc-section ul li {
    margin-bottom: 0.7rem;
}

.doc-section a {
    color: var(--primary);
    text-decoration: underline;
}

.doc-section a:hover {
    color: hsl(210, 80%, 30%);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s;
    display: block;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card-image {
    height: 200px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-card:hover .project-card-image img {
    transform: scale(1.1);
}

.project-card-content {
    padding: 1.5rem;
}

.project-card-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

/* Service Detail Section */
.service-hero {
    margin-bottom: 2rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.service-hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.service-description p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Gallery */
.gallery-section {
    margin-top: 3rem;
}

.gallery-slider {
    position: relative;
    overflow: hidden;
}

.gallery-wrapper {
    overflow: hidden;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    padding-bottom: 1rem;
}

.gallery-item {
    flex: 0 0 calc(25% - 0.75rem);
    margin: 0 0.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.gallery-slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: var(--primary-foreground);
    border: none;
    font-size: 3rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: background 0.3s;
    z-index: 10;
}

.gallery-slider button:hover {
    background: rgba(0, 0, 0, 0.5);
}

.gallery-prev {
    left: 0.5rem;
}

.gallery-next {
    right: 0.5rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    border-radius: 0.5rem;
    overflow: hidden;
}

.modal-content img {
    width: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: var(--primary-foreground);
    border: none;
    font-size: 2rem;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: background 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: var(--primary-foreground);
    border: none;
    font-size: 3rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: background 0.3s;
    z-index: 10;
}

.modal-prev {
    left: 1rem;
}

.modal-next {
    right: 1rem;
}

.modal-counter {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: var(--primary-foreground);
    font-size: 1.125rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Footer */
#footer {
    background: var(--secondary);
    color: var(--secondary-foreground);
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.footer-column {
    flex: 1;
}

.footer-column h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s;
}

.footer-contact:hover {
    opacity: 0.7;
}

.footer-contact .icon {
    font-size: 1.25rem;
}

#footer .footer-links {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-left: 0 !important;
}

#footer .footer-links li {
    list-style: none !important;
    list-style-type: none !important;
    margin-bottom: 0.5rem;
    padding-left: 0 !important;
}

#footer .footer-links a {
    color: var(--secondary-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

#footer .footer-links a:hover {
    color: var(--primary-foreground);
}


.contacts-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 3rem;
}

.contacts-info {
    display: grid;
    gap: 1.25rem;
}

.contact-item {
    padding: 1.5rem;
    background: var(--industrial-light);
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary);
}

.contact-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

.contact-item a {
    color: var(--accent);
    font-size: 1rem;
    transition: opacity 0.2s;
    display: inline-block;
}

.contact-item a:hover {
    opacity: 0.8;
}

.contact-item p {
    font-size: 0.97rem;
    color: var(--muted-foreground);
    line-height: 1.75;
}

.contacts-form {
    background: var(--card);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
}

.contacts-form h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

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

.contacts-form {
    background: var(--card);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.contacts-form h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 4.5rem;
        left: -100%;
        width: 100%;
        background: var(--background);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

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

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        flex: 0 0 calc(50% - 0.5rem);
    }

    .hero-nav button {
        font-size: 2rem;
        padding: 0.5rem;
    }

    .modal-prev,
    .modal-next {
        font-size: 2rem;
        padding: 0.5rem 1rem;
    }

    /* Contacts page responsive */
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        flex: 0 0 100%;
    }
}

@media (max-width: 500px) {
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-column {
        width: 100%;
    }

    .footer-bottom {
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.5s ease;
}