:root {
    --text: #1f2227;
    --muted: #6f747b;
    --line: #e6e8eb;
    --soft: #f7f8f9;
    --white: #ffffff;
    --red: #b5121b;
    --red-dark: #8f0e15;
    --shadow: 0 18px 45px rgba(21, 27, 38, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--white);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.wrap {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
}

.narrow {
    width: min(860px, calc(100% - 36px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.nav-wrap {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    display: block;
    max-width: 230px;
    max-height: 52px;
    object-fit: contain;
}

.top-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-nav a {
    text-decoration: none;
    font-size: 0.95rem;
    color: var(--muted);
    padding: 10px 12px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.top-nav a:hover,
.top-nav a:focus {
    color: var(--red);
    background: #faf0f1;
}

.hero {
    padding: 72px 0 60px;
    background: linear-gradient(180deg, #ffffff 0%, #f7f8f9 100%);
}

.hero-inner {
    max-width: 900px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0;
    line-height: 1.12;
    letter-spacing: -0.035em;
}

h1 {
    max-width: 860px;
    font-size: clamp(2.05rem, 4.6vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

.lead {
    max-width: 820px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.section {
    padding: 78px 0;
}

.section-soft {
    background: var(--soft);
}

.section-head {
    margin-bottom: 30px;
}

.section-intro {
    max-width: 660px;
    margin: 16px 0 0;
    color: var(--muted);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.card-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-card {
    min-height: 315px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    text-decoration: none;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover,
.project-card:focus {
    border-color: var(--red);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    outline: none;
}

.logo-box {
    width: 100%;
    height: 98px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 16px;
    background: #fafafa;
    border: 1px solid #f0f1f2;
}

.logo-box img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}

.card-title {
    display: block;
    font-size: 1.1rem;
    line-height: 1.25;
    font-weight: 700;
}

.card-text {
    display: block;
    color: var(--muted);
    font-size: 0.96rem;
}

.imprint-box {
    padding: 34px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
}

.imprint-box p {
    margin: 0 0 18px;
}

.imprint-box p:last-child {
    margin-bottom: 0;
}

.contact-form {
    padding: 34px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

label {
    display: block;
    margin-bottom: 18px;
    font-size: 0.95rem;
    font-weight: 700;
}

label span {
    color: var(--red);
}

input,
textarea {
    width: 100%;
    margin-top: 7px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(181, 18, 27, 0.08);
}

textarea {
    resize: vertical;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--muted);
    font-weight: 400;
}

.checkbox-label input {
    width: auto;
    margin-top: 5px;
}

button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    padding: 14px 24px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

button:hover,
button:focus {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.notice {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-weight: 700;
}

.notice.success {
    background: #edf8f0;
    color: #17612b;
}

.notice.error {
    background: #fff0f1;
    color: var(--red-dark);
}

.form-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(21, 27, 38, 0.10);
    backdrop-filter: blur(10px);
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.back-to-top:hover,
.back-to-top:focus {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-2px);
    outline: none;
}

.site-footer {
    padding: 28px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
}

.site-footer p {
    margin: 0;
}

@media (max-width: 920px) {
    .card-grid,
    .card-grid.two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .nav-wrap {
        min-height: auto;
        padding: 18px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .top-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .hero {
        padding: 48px 0 42px;
    }

    h1 {
        font-size: clamp(2rem, 9vw, 3.1rem);
    }

    .section {
        padding: 56px 0;
    }

    .card-grid,
    .card-grid.two,
    .form-row {
        grid-template-columns: 1fr;
    }

    .project-card {
        min-height: auto;
        padding: 24px;
    }

    .contact-form,
    .imprint-box {
        padding: 24px;
    }

    .back-to-top {
        right: 14px;
        bottom: 14px;
        height: 42px;
        min-width: 42px;
        padding: 0 12px;
        font-size: 0.82rem;
    }
}
