:root {
    --text: #ffffff;
    --grad-a: #0d2852;
    --grad-b: #0a1132;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    width: 100%;
    background-color: #0a1132;
}

body {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(
        90deg,
        var(--grad-a) 0%,
        var(--grad-b) 40%,
        var(--grad-a) 78%,
        var(--grad-b) 100%
    );
    background-repeat: no-repeat;
    background-size: 280% 100%;
    background-position: 0% 50%;
    background-attachment: fixed;
    animation: bgLive 16s ease-in-out infinite alternate;
    color: var(--text);
}

.page {
    min-height: 100dvh;
    min-height: 100vh;
    height: 100dvh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body::before,
body::after,
.page::before,
.page::after {
    display: none;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 1.25rem 2rem;
    gap: 1rem;
}

h1 {
    font-weight: 400;
    line-height: 1.2;
    max-width: 800px;
}

.h1-brand {
    display: block;
    font-size: clamp(2.35rem, 6vw, 3.65rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.h1-tagline {
    display: block;
    margin-top: 0.35rem;
    font-size: clamp(1.05rem, 2.4vw, 1.55rem);
    font-weight: 600;
    line-height: 1.35;
    opacity: 0.95;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.95;
}

.contact {
    margin-top: 150px;
    display: grid;
    gap: 0.9rem;
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    opacity: 0.92;
}

.contact-cards {
    width: min(100%, 760px);
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 0.85rem;
}

.contact-card {
    text-align: left;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    display: grid;
    gap: 0.6rem;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 0.85rem;
    width: min(100%, 760px);
}

.person-card {
    text-align: left;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    display: grid;
    gap: 0.45rem;
}

.person-name {
    font-size: 1.1rem;
    line-height: 1.3;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1.4;
}

.row-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    opacity: 0.92;
}

.row-icon svg {
    width: 100%;
    height: 100%;
    fill: #ffffff;
}

.contact a {
    color: #ffffff;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

.contact-form-wrap {
    width: min(100%, 760px);
    margin-top: 0.3rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    text-align: left;
}

.contact-form-wrap h2 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.form-note {
    opacity: 0.9;
    margin-bottom: 0.8rem;
}

.form-status {
    margin-bottom: 0.8rem;
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
}

.form-status.success {
    background: rgba(26, 174, 90, 0.25);
    border: 1px solid rgba(69, 226, 133, 0.55);
}

.form-status.error {
    background: rgba(211, 58, 58, 0.25);
    border: 1px solid rgba(255, 132, 132, 0.55);
}

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

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 0.7rem;
}

.form-grid label {
    display: grid;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 8px;
    background: rgba(3, 18, 49, 0.55);
    color: #ffffff;
    padding: 0.55rem 0.6rem;
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(150, 197, 255, 0.55);
    outline-offset: 1px;
}

.gdpr {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    font-size: 10px;
    white-space: nowrap;
}

.gdpr input {
    margin-top: 0;
    margin-left: 0;
    width: auto;
    justify-self: start;
    align-self: center;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.form-actions button {
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}

.form-actions button:hover {
    background: rgba(255, 255, 255, 0.18);
}

.footer {
    text-align: center;
    padding: 1rem 1.25rem 1.5rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

.footer a {
    color: #ffffff;
    text-decoration: underline;
}

.fade-in {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes bgLive {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    body {
        animation: none;
        background: linear-gradient(to right, var(--grad-a) 0%, var(--grad-b) 100%);
        background-size: 100% 100%;
    }
}

@media (max-width: 768px) {
    html,
    body {
        background-color: #0a1132;
    }

    body {
        background: linear-gradient(
            90deg,
            var(--grad-a) 0%,
            var(--grad-b) 40%,
            var(--grad-a) 78%,
            var(--grad-b) 100%
        );
        background-repeat: no-repeat;
        background-size: 280% 100%;
        background-position: 0% 50%;
        background-attachment: fixed;
        animation: bgLive 16s ease-in-out infinite alternate;
        padding-top: env(safe-area-inset-top);
    }

    .content {
        justify-content: flex-start;
        padding: 100px 20px 2rem;
    }

    .h1-brand {
        font-size: clamp(2.6rem, 10vw, 3.5rem);
    }

    .h1-tagline {
        font-size: clamp(1rem, 4.2vw, 1.35rem);
        margin-top: 0.45rem;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        width: 100%;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        width: 100%;
    }

    .contact {
        margin-top: 80px;
        width: 100%;
    }

    .person-card {
        padding: 0.75rem 20px;
    }

    .contact-card {
        padding: 0.85rem 20px;
    }

    .contact-form-wrap {
        padding: 0.85rem 20px;
        width: 100%;
    }

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

    .gdpr {
        font-size: 12px;
        white-space: normal;
        align-items: flex-start;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }

    .footer {
        padding: 1rem 20px 1.1rem;
    }
}
