:root {
    --bg: #f2f6fb;
    --ink: #102331;
    --muted: #4e6475;
    --card: #ffffff;
    --line: #d7e3ef;
    --accent: #0069b5;
    --accent-2: #004f89;
    --accent-soft: #e6f4ff;
    --ok: #067647;
    --warn: #9b5e00;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Avenir Next", "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, #dff1ff 0%, transparent 35%),
        radial-gradient(circle at 95% 12%, #d8e7ff 0%, transparent 32%),
        var(--bg);
    min-height: 100vh;
}

.container {
    width: min(1100px, 92vw);
    margin: 28px auto 40px;
}

.title {
    margin: 0;
    font-size: clamp(1.2rem, 2.1vw, 1.9rem);
    letter-spacing: 0.02em;
}

.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 14px 34px rgba(8, 30, 57, 0.08);
}

.hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 0;
}

.hero-logo-wrap {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 8px 20px rgba(8, 30, 57, 0.08);
    flex-shrink: 0;
    margin-left: auto;
}

.hero-logo {
    display: block;
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 10px;
}

.logo-badge {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: linear-gradient(145deg, #00a1df 0%, #0069b5 50%, #004f89 100%);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    box-shadow: 0 10px 22px rgba(0, 86, 150, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.kicker {
    margin: 0 0 3px;
    color: #0a4f7f;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.lead {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 28px rgba(9, 29, 53, 0.07);
}

.card h2 {
    margin: 0 0 12px;
    font-size: 1.02rem;
    letter-spacing: 0.01em;
}

label {
    display: block;
    font-size: 0.9rem;
    margin: 10px 0 6px;
    color: var(--muted);
}

input,
select,
button,
textarea {
    width: 100%;
    font: inherit;
}

input,
select {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 11px;
    background: #fcfdff;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

input:focus,
select:focus {
    outline: none;
    border-color: #6ab4e4;
    box-shadow: 0 0 0 3px rgba(0, 105, 181, 0.13);
}

button {
    border: 0;
    border-radius: 10px;
    padding: 11px 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    margin-top: 14px;
    transition: transform 120ms ease, filter 120ms ease;
}

button:hover {
    filter: brightness(1.04);
}

button:active {
    transform: translateY(1px);
}

.result {
    margin-top: 18px;
}

.message-float {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: #f8fbff;
    animation: floatPulse 2.8s ease-in-out infinite;
}

.message-float strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.message-success {
    background: #ebfbf3;
    border-color: #bde8d3;
}

.message-warning {
    background: #fff8ea;
    border-color: #f2dfb3;
}

.message-error {
    background: #fff1f1;
    border-color: #f0c9c9;
}

.message-neutral {
    background: #f4f8fd;
    border-color: #d8e3ef;
}

.pill {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.pill.ok {
    background: #e8fbf2;
    color: var(--ok);
}

.pill.warn {
    background: #fff3dc;
    color: var(--warn);
}

pre {
    margin: 0;
    border: 1px solid #263a4d;
    border-radius: 10px;
    padding: 12px;
    background: #0c1b2d;
    color: #d5ebff;
    overflow: auto;
    font-size: 0.86rem;
    line-height: 1.45;
}

@media (max-width: 680px) {
    .hero-top {
        flex-direction: row;
        align-items: flex-start;
    }

    .brand {
        align-items: flex-start;
    }

    .logo-badge {
        width: 56px;
        height: 56px;
    }

    .hero-logo {
        width: 56px;
        height: 56px;
    }
}

@keyframes floatPulse {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0px);
    }
}
