:root {
    --color-primary: #1976d2;
    --color-secondary: #dc004e;
    --color-text: rgba(0, 0, 0, 0.87);
    --color-text-muted: rgba(0, 0, 0, 0.6);
    --color-bg: #ffffff;
    --color-muted: #fafafa;
    --header-height: 64px;
    --container: 1200px;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --font: "Roboto", "Helvetica", "Arial", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

.container {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.header-inner {
    height: 100%;
    width: min(100%, calc(var(--container) + 48px));
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    margin-right: auto;
}

.brand img {
    height: 36px;
    width: auto;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    order: 3;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
}

.site-nav a:hover {
    background: rgba(0, 0, 0, 0.04);
}

.lang-switch {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid var(--color-text);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
}

.lang-switch a {
    text-decoration: none;
    padding: 6px 14px;
    font-size: 0.9rem;
    font-weight: 400;
}

.lang-switch a.is-active {
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    border-color: var(--color-primary);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 22px;
    background: var(--color-text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), var(--hero-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-inner {
    padding: 96px 16px 64px;
}

.hero h1 {
    margin: 0 0 24px;
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    margin: 0 auto 32px;
    max-width: 800px;
    font-size: 2.125rem;
    font-weight: 300;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
}

.btn-hero {
    font-size: 1.2rem;
    padding: 16px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.btn-outline {
    margin-top: 16px;
    padding: 6px 12px;
    font-size: 0.85rem;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.section {
    padding: 64px 0;
}

.section-muted {
    background: var(--color-muted);
}

.section h2 {
    margin: 0 0 48px;
    text-align: center;
    font-size: 3.75rem;
    font-weight: 700;
    line-height: 1.2;
}

#services h2,
#contact h2 {
    margin-bottom: 24px;
}

.section-intro {
    margin: 0 auto 48px;
    max-width: 800px;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.section-intro-narrow {
    max-width: 600px;
    font-size: 1.25rem;
}

.about-grid {
    display: flex;
    gap: 48px;
    align-items: center;
}

.about-image,
.about-text {
    flex: 1 1 50%;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-text p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.accordion-list {
    max-width: 800px;
    margin: 0 auto;
}

.accordion {
    margin-bottom: 16px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.accordion:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 52px 20px 20px;
    font-size: 1.25rem;
    font-weight: 600;
    position: relative;
}

.accordion summary::-webkit-details-marker {
    display: none;
}

.accordion summary::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.2s ease;
}

.accordion[open] summary::after {
    transform: translateY(-30%) rotate(225deg);
}

.accordion-body {
    padding: 0 20px 24px;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.contact-card {
    background: #fff;
    text-align: center;
    padding: 32px 24px;
    border-radius: 4px;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    color: var(--color-primary);
}

.contact-icon svg {
    width: 48px;
    height: 48px;
    fill: currentColor;
}

.contact-card:hover .contact-icon {
    color: var(--color-secondary);
}

.contact-card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 500;
}

.contact-card p {
    margin: 0;
    color: var(--color-text-muted);
}

.contact-alert {
    max-width: 720px;
    margin: 0 auto 24px;
    padding: 16px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
}

.contact-alert-success {
    background: #e8f5e9;
    color: #1b5e20;
}

.contact-alert-error {
    background: #fdecea;
    color: #b71c1c;
}

.contact-form-wrap {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    padding: 32px 24px;
    border-radius: 4px;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
}

.contact-alert + .contact-form-wrap,
.contact-form-wrap + .contact-grid {
    margin-top: 40px;
}

.contact-form-wrap h3 {
    margin: 0 0 24px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
}

.contact-form {
    position: relative;
}

.contact-form .field {
    margin-bottom: 18px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin: 0 0 6px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    min-height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font: inherit;
    color: inherit;
    background: #fff;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
    border-color: var(--color-primary);
}

.contact-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

button.btn {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.contact-form .btn-submit {
    width: 100%;
    min-height: 48px;
    padding: 14px 24px;
    margin-top: 8px;
}

.site-footer {
    background: var(--color-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 28px 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 28px;
    text-align: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    justify-content: center;
}

.footer-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
}

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

.footer-copy {
    margin: 0;
}

.legal-page {
    padding: calc(var(--header-height) + 48px) 0 64px;
}

.legal-inner {
    max-width: 800px;
}

.legal-page h1 {
    margin: 0 0 24px;
    font-size: 2.5rem;
    font-weight: 700;
}

.legal-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.has-cookie-banner {
    padding-bottom: 180px;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: #fff;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.cookie-banner-inner {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 18px 0;
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.cookie-banner-text {
    margin: 0;
    max-width: 820px;
}

.cookie-banner-title {
    margin: 0 0 6px;
    font-weight: 700;
    color: var(--color-text);
}

.cookie-banner-text p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.cookie-banner-button {
    flex: 0 0 auto;
    padding: 12px 24px;
    white-space: nowrap;
}

@media (max-width: 899px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .cookie-banner-button {
        width: 100%;
    }
}

@media (max-width: 899px) {
    :root {
        --header-height: 56px;
    }

    .nav-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 16px 16px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        gap: 0;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 14px 12px;
        border-bottom: 1px solid #eee;
    }

    .hero {
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section h2 {
        font-size: 2.5rem;
        margin-bottom: 32px;
    }

    .about-grid {
        flex-direction: column;
    }

    .about-text p {
        text-align: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 24px 16px;
    }

    .legal-page h1 {
        font-size: 2rem;
    }
}

@media (max-width: 599px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .section h2 {
        font-size: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
