:root {
    --bg: #f7f4f8;
    --surface: #ffffff;
    --surface-soft: #fff8fb;
    --text: #241e28;
    --muted: #6f6474;
    --primary: #7b2357;
    --primary-dark: #55173c;
    --accent: #1e7f74;
    --line: #e7dbe6;
    --danger: #9f2f3f;
    --success: #1f7a4f;
    --shadow: 0 18px 50px rgba(54, 32, 56, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

.page {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.hero,
.admin-header {
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 38px;
    border-radius: 8px;
    color: #ffffff;
    background:
        linear-gradient(90deg, rgba(55, 16, 45, 0.92), rgba(84, 28, 68, 0.66)),
        url("hero-ruta-purpura.png") center/cover;
    box-shadow: var(--shadow);
}

.hero h1,
.admin-header h1 {
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.hero p {
    max-width: 670px;
    margin: 18px 0 0;
    font-size: 1.12rem;
}

.eyebrow {
    margin: 0 0 10px;
    color: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.survey,
.notice,
.admin-grid {
    margin-top: 22px;
}

.notice {
    padding: 20px 22px;
    border-radius: 8px;
    background: var(--surface);
    border-left: 6px solid var(--accent);
}

.notice--error {
    border-left-color: var(--danger);
}

.notice h2,
.notice p {
    margin: 0;
}

.notice p {
    margin-top: 6px;
    color: var(--muted);
}

.survey-section,
.alert-box,
.support,
.response-list,
.response-detail {
    margin-top: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 10px 26px rgba(46, 27, 48, 0.06);
}

.survey-section h2,
.alert-box h2,
.support h2,
.response-list h2,
.response-detail h2 {
    margin: 0 0 18px;
    font-size: 1.35rem;
}

.question {
    min-width: 0;
    margin: 0;
    padding: 18px 0;
    border: 0;
    border-top: 1px solid var(--line);
}

.question:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.question legend {
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    width: 100%;
    padding: 0 0 14px;
    font-weight: 700;
}

.question legend span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--primary);
    font-size: 0.92rem;
}

.options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-left: 46px;
}

.options label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    cursor: pointer;
}

.options input {
    accent-color: var(--primary);
    flex: 0 0 auto;
}

.alert-box {
    background: #fff8fb;
}

.alert-box label {
    display: block;
    margin-top: 16px;
    font-weight: 700;
}

.alert-box input {
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
}

.confidential,
.support p {
    color: var(--muted);
}

.actions {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    padding: 16px 0;
    background: linear-gradient(180deg, rgba(247, 244, 248, 0), var(--bg) 35%);
}

button,
.button-link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    background: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

button:hover,
.button-link:hover {
    background: var(--primary-dark);
}

.page--admin {
    width: min(1280px, calc(100% - 32px));
}

.admin-header {
    min-height: 220px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 18px;
    align-items: start;
}

.response-item {
    display: grid;
    gap: 3px;
    padding: 14px;
    border-top: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
}

.response-item:first-of-type {
    border-top: 0;
}

.response-item:hover {
    background: var(--surface-soft);
}

.response-item span {
    color: var(--primary);
    font-weight: 700;
}

.response-item small {
    color: var(--muted);
}

.answers-table article {
    display: grid;
    grid-template-columns: 34px 1fr 150px;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.answers-table article > span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--primary);
    font-weight: 700;
}

.answers-table p {
    margin: 4px 0 0;
}

.answers-table em {
    color: var(--accent);
    font-style: normal;
    font-weight: 700;
    text-transform: capitalize;
}

@media (max-width: 760px) {
    .page,
    .page--admin {
        width: min(100% - 20px, 1080px);
        padding-top: 10px;
    }

    .hero,
    .admin-header {
        min-height: 260px;
        padding: 24px;
        align-items: flex-end;
    }

    .hero h1,
    .admin-header h1 {
        font-size: 3rem;
    }

    .survey-section,
    .alert-box,
    .support,
    .response-list,
    .response-detail {
        padding: 18px;
    }

    .options {
        grid-template-columns: 1fr;
        margin-left: 0;
    }

    .question legend {
        grid-template-columns: 30px 1fr;
        gap: 10px;
    }

    .question legend span,
    .answers-table article > span {
        width: 30px;
        height: 30px;
    }

    .actions {
        justify-content: stretch;
    }

    button {
        width: 100%;
    }

    .admin-grid,
    .answers-table article {
        grid-template-columns: 1fr;
    }
}
