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

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
    overflow-x: hidden;
}

.page {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 30px 0 42px;
}

.top {
    max-width: 820px;
    margin-bottom: 28px;
}

.label {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4b5563;
}

h1 {
    font-size: clamp(2.0rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 14px;
    animation : fadeLeft 500ms ease both 1s;
}

.subtitle {
    max-width: 60ch;
    font-size: 1.02rem;
    line-height: 1.7;
    color: #6b7280;
}

.search {
    padding: 16px;
    border: 1px solid #d9e0ea;
    border-radius: 18px;
    background: #ffffff;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.search-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #374151;
}

.search-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: stretch;
}

input[type="text"] {
    flex: 1 1 240px;
    min-width: 0;
    height: 50px;
    padding: 0 14px;
    border: 1px solid #cfd8e3;
    border-radius: 12px;
    font: inherit;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color 160ms ease;
    animation: fadeRight 500ms ease both 1s;
}

input[type="text"]::placeholder {
    color: #94a3b8;
    opacity: 1;
}

input[type="text"]:focus {
    border-color: #94a3b8;
}

.input-hint {
    margin-top: 8px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #64748b;
}

button {
    height: 50px;
    padding: 0 18px;
    border: 1px solid #111827;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease;
}

button:hover {
    background: #1f2937;
    transform: translateY(-1px);
}

.grid {
    display: grid;
   grid-template-columns: 1fr;
    gap: 10px;
    animation: fadeLeft 500ms ease both;
}

.card {
    padding: 16px;
    border: 1px solid #d9e0ea;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
    animation: fadeUp 500ms ease both;
}

.card h2 {
    margin-bottom: 16px;
    font-size: 1.1rem;
    color: #111827;
}

.list {
    display: grid;
    gap: 10px;
    animation: fadeRight 500ms ease both;
}

.item {
    padding: 12px 15px;
    border-radius: 12px;
    background: #f8fafc;
    color: #374151;
    animation: fadeRight 500ms ease both;
}

.text {
    color: #6b7280;
    line-height: 1.7;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateY(-80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .page {
        width: min(100% - 16px, 600px);
        padding-top: 20px;
    }

    .search {
        padding: 14px;
    }

    .search-row {
        flex-direction: column;
    }

    input[type="text"],
    button {
        width: 100%;
        flex:none;
    }
}

@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .page {
        width: min(100% - 12px, 420px);
    }

    .input-hint {
        font-size: 0.8rem;
    }

    .search,
    .card {
        padding: 14px;
        border-radius: 16px;
    }

    h1 {
        font-size: clamp(1.8rem, 10vw, 2.4rem);
    }
}
