@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #f3ece0;
    --btn-bg: #eccc97;
    --btn-hover: #fbe4bc;
    --btn-active: #e8c78f;
    --text-color: #2b2520;
    --text-muted: #73695e;
    --btn-border: rgba(0, 0, 0, 0.05);
    --shadow-color: rgba(70, 50, 30, 0.08);
    --shadow-hover: rgba(70, 50, 30, 0.14);
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    text-align: center;
}

.page-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
    line-height: 1.25;
    text-wrap: balance;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: -0.01em;
    margin-top: -0.5rem;
    margin-bottom: 0.15rem;
    line-height: 1.3;
}

small {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.4;
}

.container > small:first-of-type {
    margin-top: -0.5rem;
}

small + small {
    margin-top: -0.9rem;
}

.button-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    width: 100%;
    min-height: 62px;
    padding: 1rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-color);
    background-color: var(--btn-bg);
    border: 1px solid var(--btn-border);
    border-radius: 14px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--shadow-color);
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    line-height: 1.3;
    text-align: center;
}

.flag-icon {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: inline-block;
    flex-shrink: 0;
}

.btn:hover {
    background-color: var(--btn-hover);
    box-shadow: 0 6px 18px var(--shadow-hover);
    transform: translateY(-2px);
}

.btn:active {
    background-color: var(--btn-active);
    transform: translateY(1px);
    box-shadow: 0 2px 6px var(--shadow-color);
}

.btn:focus-visible {
    outline: 3px solid #c9a464;
    outline-offset: 2px;
}

.back-btn {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.back-btn:hover {
    color: var(--text-color);
    transform: translateX(-3px);
}

.no-docs-message {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    width: 100%;
}

@media (max-width: 480px) {
    body {
        padding: 1rem;
    }

    .container {
        gap: 1rem;
    }

    .page-title {
        font-size: 1.35rem;
    }

    h3 {
        font-size: 1.1rem;
        margin-top: -0.4rem;
    }

    small {
        font-size: 0.8rem;
    }

    small + small {
        margin-top: -0.75rem;
    }

    .button-group {
        gap: 1rem;
    }

    .btn {
        min-height: 56px;
        font-size: 1.05rem;
        padding: 0.875rem 1.25rem;
        gap: 0.75rem;
    }

    .flag-icon {
        width: 25px;
        height: 18px;
    }
}
