:root {
    --bg: #111315;
    --bg-soft: #181c1f;
    --panel: rgba(24, 28, 31, 0.9);
    --panel-strong: rgba(14, 16, 18, 0.96);
    --line: rgba(75, 255, 107, 0.22);
    --primary: #43ff63;
    --primary-deep: #1ef148;
    --primary-soft: rgba(67, 255, 99, 0.16);
    --text: #f3f7f4;
    --muted: #9aa59e;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --radius: 26px;
    --radius-sm: 18px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top, rgba(67, 255, 99, 0.12), transparent 28%),
        linear-gradient(145deg, #0d0f10 0%, #15181b 45%, #101214 100%);
    font-family: "Bahnschrift", "Segoe UI Variable", "Segoe UI", sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.35;
    pointer-events: none;
}

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

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

button,
input,
textarea {
    font: inherit;
}

.site-shell {
    position: relative;
    overflow: visible;
}

.container {
    width: min(var(--container), calc(100% - 2rem));
    margin: 0 auto;
}

.header-inner > *,
.footer-inner > *,
.hero-grid > *,
.section-grid > *,
.contact-grid > *,
.feature-strip-inner > *,
.hero-copy,
.hero-actions,
.project-card,
.project-body,
.contact-panel,
.contact-cards > *,
.about-cards article,
.fact-card,
.brand {
    min-width: 0;
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(18px);
    background: rgba(10, 12, 13, 0.82);
    border-bottom: 1px solid rgba(67, 255, 99, 0.08);
}

.header-inner,
.footer-inner,
.feature-strip-inner,
.section-heading,
.hero-stats,
.main-nav,
.hero-actions,
.contact-cards,
.social-links {
    display: flex;
    gap: 1rem;
}

.header-inner,
.footer-inner,
.section-heading {
    justify-content: space-between;
    align-items: center;
}

.header-inner {
    min-height: 88px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.brand img {
    width: 94px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(67, 255, 99, 0.35));
}

.header-side {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.partner-logo {
    width: 178px;
    height: 58px;
    object-fit: contain;
}

.brand strong,
h1,
h2,
h3 {
    font-family: "Agency FB", "Bahnschrift", "Arial Narrow", sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand strong {
    display: block;
    font-size: 1.5rem;
}

.brand span,
.project-meta,
.muted-copy {
    color: var(--muted);
}

.main-nav {
    align-items: center;
}

.main-nav a {
    padding: 0.72rem 1rem;
    color: #d7ded8;
}

.main-nav a:hover,
.social-links a:hover,
.footer-inner a:hover {
    color: var(--primary);
}

.nav-cta,
.button {
    border-radius: 999px;
    border: 1px solid transparent;
    transition: 180ms ease;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.78rem 1.35rem;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.button-primary,
.nav-cta {
    color: #061009;
    background: linear-gradient(135deg, var(--primary) 0%, #94ff79 100%);
    box-shadow: 0 14px 30px rgba(67, 255, 99, 0.25);
}

.button-secondary {
    color: var(--text);
    border-color: rgba(67, 255, 99, 0.24);
    background: rgba(67, 255, 99, 0.08);
}

.button-danger {
    color: #fff3f3;
    border-color: rgba(255, 107, 107, 0.24);
    background: rgba(255, 82, 82, 0.12);
}

.button:hover,
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(67, 255, 99, 0.2);
}

.hero-section {
    padding: 5.5rem 0 3rem;
}

.hero-grid,
.section-grid,
.contact-grid {
    display: grid;
    gap: 1.6rem;
}

.hero-grid {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
}

.eyebrow,
.section-tag {
    margin: 0 0 0.85rem;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
}

h1 {
    margin: 0;
    font-size: clamp(2.8rem, 4.6vw, 5.6rem);
    line-height: 0.96;
}

.hero-text,
.section-text {
    max-width: 62ch;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #d9dfdb;
}

.hero-stats {
    flex-wrap: wrap;
    margin-top: 1.3rem;
}

.hero-stats article,
.about-cards article,
.contact-cards > *,
.project-card,
.contact-panel,
.notice,
.empty-state {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(26, 30, 33, 0.92), rgba(17, 19, 21, 0.95));
    box-shadow: var(--shadow);
}

.hero-stats article {
    flex: 1 1 170px;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-sm);
}

.hero-stats strong,
.feature-strip strong,
.contact-cards strong {
    display: block;
    margin-bottom: 0.35rem;
}

.hero-slider {
    position: relative;
    min-height: 540px;
    border-radius: 30px;
    border: 1px solid var(--line);
    overflow: hidden;
    background: #090b0c;
    box-shadow: var(--shadow);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 500ms ease, transform 900ms ease;
}

.slide.is-active {
    opacity: 1;
    transform: scale(1);
}

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

.slide-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2rem;
    background: linear-gradient(180deg, transparent, rgba(5, 8, 6, 0.86) 30%, rgba(5, 8, 6, 0.95));
}

.slide-overlay span {
    display: inline-flex;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(67, 255, 99, 0.12);
    border: 1px solid rgba(67, 255, 99, 0.22);
}

.slide-overlay h2 {
    margin: 0.8rem 0 0.4rem;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.slide-overlay p {
    margin: 0;
    max-width: 56ch;
    color: #dce1dd;
}

.slider-controls {
    position: absolute;
    right: 1.25rem;
    bottom: 1.2rem;
    z-index: 2;
    display: flex;
    gap: 0.55rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
}

.slider-dot.is-active {
    width: 36px;
    background: linear-gradient(90deg, var(--primary), #a0ff7f);
}

.feature-strip {
    padding-bottom: 2rem;
}

.feature-strip-inner {
    padding: 1.1rem 1.4rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(12, 14, 15, 0.92);
    justify-content: space-between;
    flex-wrap: wrap;
}

.feature-strip-inner > div {
    flex: 1 1 220px;
}

.section {
    padding: 3.4rem 0;
}

#kontakt {
    scroll-margin-top: 110px;
}

.section-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
}

.company-facts {
    margin-top: 1.6rem;
}

.fact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.fact-card {
    padding: 1rem 1.05rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: rgba(10, 13, 11, 0.62);
}

.fact-card strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--primary);
}

.fact-card span {
    color: #dce3de;
    line-height: 1.6;
}

.about-cards article,
.contact-cards > *,
.contact-panel,
.project-card,
.empty-state {
    border-radius: var(--radius);
}

.about-cards article {
    padding: 1.25rem;
}

.about-cards span {
    display: inline-flex;
    margin-bottom: 0.7rem;
    color: var(--primary);
    font-size: 1.65rem;
    font-weight: 700;
}

.gallery-section .section-heading,
.contact-section .section-heading {
    margin-bottom: 1.3rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.project-card {
    overflow: hidden;
}

.project-thumb {
    position: relative;
    min-height: 230px;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-thumb span {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    color: var(--primary);
    background: rgba(8, 12, 9, 0.72);
    border: 1px solid rgba(67, 255, 99, 0.2);
}

.project-body {
    padding: 1.2rem;
}

.project-body h3,
.modal-head h3 {
    margin: 0.35rem 0 0.55rem;
    font-size: 1.7rem;
}

.project-body p {
    color: #d7ddd9;
    line-height: 1.7;
}

.empty-state,
.notice {
    padding: 1rem 1.15rem;
}

.notice-success {
    border-color: rgba(72, 255, 127, 0.35);
}

.notice-error {
    border-color: rgba(255, 98, 98, 0.32);
}

.contact-grid {
    grid-template-columns: 0.95fr 1.05fr;
}

.contact-cards,
.social-links {
    flex-wrap: wrap;
}

.contact-cards > * {
    flex: 1 1 220px;
    padding: 1rem 1.1rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(67, 255, 99, 0.07);
}

.contact-panel {
    padding: 1.3rem;
}

.contact-form {
    display: grid;
    gap: 0.9rem;
}

.contact-form label,
.admin-form label {
    display: grid;
    gap: 0.45rem;
}

.contact-form span,
.admin-form span {
    color: #cfe5d3;
    font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea,
.admin-form input,
.admin-form textarea {
    width: 100%;
    border: 1px solid rgba(67, 255, 99, 0.18);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    color: var(--text);
    background: rgba(7, 10, 8, 0.72);
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus,
.admin-form input:focus,
.admin-form textarea:focus {
    border-color: rgba(67, 255, 99, 0.48);
    box-shadow: 0 0 0 4px rgba(67, 255, 99, 0.08);
}

.map-frame {
    margin-top: 1rem;
    min-height: 300px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(67, 255, 99, 0.16);
}

.map-frame iframe {
    width: 100%;
    min-height: 300px;
    border: 0;
}

.site-footer {
    padding: 1.6rem 0 2.6rem;
}

.footer-inner {
    padding-top: 1.3rem;
    border-top: 1px solid rgba(67, 255, 99, 0.1);
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-inner p {
    margin: 0;
    color: var(--muted);
}

.footer-copy {
    display: grid;
    gap: 0.4rem;
}

.footer-inner span {
    color: var(--primary);
}

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

.footer-credit a:hover {
    color: #a4ff7d;
}

.footer-mini-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(67, 255, 99, 0.18);
    background: rgba(67, 255, 99, 0.08);
    color: #dce3de;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-mini-link:hover {
    color: var(--primary);
    border-color: rgba(67, 255, 99, 0.32);
}

.modal-shell {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.modal-shell[hidden] {
    display: none !important;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.76);
}

.modal-card {
    position: relative;
    width: min(1100px, 100%);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border-radius: 30px;
    border: 1px solid rgba(67, 255, 99, 0.18);
    background: linear-gradient(180deg, rgba(18, 21, 23, 0.98), rgba(10, 11, 12, 0.98));
    box-shadow: var(--shadow);
}

.modal-close {
    position: sticky;
    top: 1rem;
    margin-left: calc(100% - 64px);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    color: var(--text);
    background: rgba(67, 255, 99, 0.14);
    cursor: pointer;
}

.modal-content {
    padding: 0 1.4rem 1.6rem;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.modal-gallery figure {
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(67, 255, 99, 0.14);
}

.modal-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 1024px) {
    .hero-grid,
    .section-grid,
    .contact-grid,
    .project-grid,
    .fact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-grid {
        align-items: stretch;
    }
}

@media (max-width: 820px) {
    .header-inner,
    .footer-inner,
    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-inner {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        min-height: auto;
        padding: 0.95rem 0;
        gap: 0.9rem;
    }

    .hero-grid,
    .section-grid,
    .contact-grid,
    .project-grid,
    .modal-gallery,
    .fact-grid {
        grid-template-columns: 1fr;
    }

    .main-nav {
        order: 2;
        width: 100%;
        flex-wrap: wrap;
        gap: 0.55rem;
    }

    .header-side {
        display: contents;
    }

    .partner-logo {
        order: 1;
        margin-left: auto;
    }

    .hero-section {
        padding-top: 3rem;
    }

    .hero-grid {
        gap: 1.2rem;
    }

    .hero-copy {
        order: 1;
    }

    .hero-slider {
        order: 0;
        min-height: 420px;
    }

    .slide-overlay {
        padding: 1.4rem;
    }

    .feature-strip-inner {
        gap: 0.9rem;
        padding: 1rem 1.1rem;
    }

    .project-thumb {
        min-height: 260px;
    }

    .project-body h3,
    .modal-head h3 {
        font-size: 1.5rem;
    }

    .modal-card {
        border-radius: 24px;
    }

    .modal-content {
        padding: 0 1rem 1.25rem;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(var(--container), calc(100% - 1.5rem));
    }

    .brand img {
        width: 78px;
        height: 48px;
    }

    .partner-logo {
        width: 154px;
        height: 50px;
    }

    .header-inner {
        padding: 0.8rem 0;
        gap: 0.75rem;
    }

    .main-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .main-nav a {
        width: auto;
        min-width: 0;
        padding: 0.72rem 0.5rem;
        text-align: center;
    }

    .button {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-section {
        padding: 1.8rem 0 2rem;
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 9.6vw, 2.75rem);
        line-height: 0.98;
    }

    h1,
    h2,
    h3,
    .button,
    .section-text,
    .hero-text,
    .project-body p,
    .contact-cards span,
    .footer-inner p {
        overflow-wrap: anywhere;
    }

    .hero-text,
    .section-text {
        font-size: 0.98rem;
        line-height: 1.68;
    }

    .hero-stats,
    .hero-actions,
    .contact-cards,
    .social-links {
        flex-direction: column;
    }

    .hero-stats article {
        flex-basis: 100%;
    }

    .hero-slider {
        min-height: auto;
        overflow: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .slide {
        position: static;
        display: none;
        opacity: 1;
        transform: none;
    }

    .slide.is-active {
        display: block;
    }

    .slide img {
        height: auto;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        object-position: center center;
        border-radius: 24px 24px 0 0;
    }

    .slide-overlay {
        position: static;
        padding: 1rem 1rem 1.1rem;
        border-radius: 0 0 24px 24px;
        background: linear-gradient(180deg, rgba(10, 12, 11, 0.96), rgba(5, 8, 6, 0.96));
    }

    .slide-overlay span {
        font-size: 0.76rem;
    }

    .slide-overlay h2 {
        font-size: 1.3rem;
        margin-top: 0.65rem;
        line-height: 1.04;
    }

    .slide-overlay p {
        font-size: 0.93rem;
        line-height: 1.55;
    }

    .slider-controls {
        position: static;
        justify-content: center;
        padding-top: 0.8rem;
    }

    .feature-strip-inner,
    .about-cards article,
    .project-body,
    .contact-panel {
        padding: 1rem;
    }

    .contact-cards > * {
        flex: 0 0 auto;
        padding: 0.8rem 0.9rem;
    }

    .contact-cards strong {
        margin-bottom: 0.2rem;
        font-size: 0.95rem;
    }

    .contact-cards span {
        font-size: 0.92rem;
        line-height: 1.45;
    }

    .project-thumb {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .project-thumb img,
    .modal-gallery img {
        object-position: center center;
    }

    .project-body h3,
    .modal-head h3 {
        font-size: 1.35rem;
    }

    .map-frame,
    .map-frame iframe {
        min-height: 240px;
    }

    .modal-card {
        max-height: calc(100vh - 1rem);
        border-radius: 22px;
    }

    .modal-close {
        top: 0.75rem;
        margin-left: calc(100% - 56px);
        width: 40px;
        height: 40px;
    }

    .footer-actions {
        width: 100%;
        justify-content: space-between;
    }
}
