:root {
    --red: #e11d2e;
    --ink: #02060c;
    --muted: #686b78;
    --line: #e9e9eb;
    --page: #f6f6f8;
    --green: #1ba672;
    --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

.top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px 28px;
    padding: 14px 24px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.top > :last-child:not(:first-child) { margin-left: auto; }

.brand {
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.5px;
    text-decoration: none;
    line-height: 1.1;
}

.brand span { color: var(--red); }

.nav {
    display: flex;
    gap: 6px;
}

.nav a {
    text-decoration: none;
    font-weight: 700;
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 10px;
}

.nav a.on,
.nav a:hover {
    color: var(--ink);
    background: var(--page);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.btn.quiet {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}

.wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 56px 24px 72px;
}

h1 {
    margin: 0 0 12px;
    font-size: 44px;
    line-height: 1.08;
    letter-spacing: -1.2px;
    font-weight: 800;
}

.lead {
    margin: 0;
    max-width: 520px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.45;
}

.points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 36px;
}

.points article {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
}

.points strong { display: block; margin-bottom: 6px; }

.points p { margin: 0; color: var(--muted); line-height: 1.4; }

.panel {
    min-height: 100vh;
    background: var(--page);
}

.panel main {
    max-width: 980px;
    margin: 0 auto;
    padding: 28px 20px 48px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
}

.table-card { padding: 4px 8px; }

.login {
    max-width: 380px;
    margin: 64px auto;
}

label { display: block; font-weight: 700; margin: 14px 0 6px; }

input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
    font: inherit;
    font-size: 16px;
    background: #fff;
}

fieldset.choices {
    border: 0;
    margin: 16px 0 0;
    padding: 0;
}

fieldset.choices legend {
    font-weight: 700;
    padding: 0;
}

label.choice {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-weight: 600;
    margin: 4px 0;
}

.hint {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.saved {
    color: var(--green);
    font-weight: 700;
}

.error { color: var(--red); font-weight: 700; margin: 0 0 8px; }

table { width: 100%; border-collapse: collapse; }

th, td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    overflow-wrap: anywhere;
}

th { color: var(--muted); font-size: 13px; font-weight: 700; }

.row-link { font-weight: 700; text-decoration: none; }

.row-link:hover { color: var(--red); }

.toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.toolbar form { display: flex; gap: 8px; flex: 1; }

.muted { color: var(--muted); }

dl { margin: 0; }

.detail {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 8px 16px;
}

dt { color: var(--muted); }

.back { display: inline-block; margin-bottom: 14px; color: var(--muted); text-decoration: none; }

.pager { margin-top: 16px; }

.pager nav { display: block; }

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    font-weight: 700;
}

.pagination .active span {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.pagination .disabled span { color: var(--muted); }

dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 720px) {
    h1 { font-size: 32px; letter-spacing: -0.8px; }

    .top { padding: 12px 16px; gap: 12px; }

    .panel .top > :last-child { margin-left: 0; }

    .wrap { padding: 32px 16px 48px; }

    .lead { font-size: 16px; }

    .points,
    .detail { grid-template-columns: 1fr; }

    .points { margin-top: 24px; }

    .panel .top {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand logout"
            "nav nav";
        align-items: center;
        gap: 10px 12px;
        padding: 12px 16px;
    }

    .panel .brand { grid-area: brand; }

    .panel .nav {
        grid-area: nav;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .panel .nav a { text-align: center; padding: 10px 8px; }

    .panel .top form { grid-area: logout; }

    .panel .top .btn { padding: 8px 12px; min-height: 40px; }

    .panel main { padding: 20px 16px 40px; }

    .login {
        margin: 20px 16px 32px;
        max-width: none;
    }

    .login .btn,
    .card > .btn,
    form.card .btn { width: 100%; }

    .toolbar,
    .toolbar form {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar .btn { width: 100%; }

    .table-card {
        padding: 0;
        background: transparent;
        border: 0;
    }

    .table-card table,
    .table-card tbody,
    .table-card tr,
    .table-card td {
        display: block;
        width: 100%;
    }

    .table-card thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .table-card tr {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        margin-bottom: 10px;
        padding: 6px 14px;
    }

    .table-card td {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        gap: 16px;
        border: 0;
        padding: 9px 0;
        text-align: right;
    }

    .table-card td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        text-align: left;
    }

    .table-card td[colspan] {
        display: block;
        text-align: left;
    }

    .table-card td[colspan]::before { content: none; }

    .detail { gap: 2px 0; }

    .detail dd {
        margin: 0 0 12px;
        font-weight: 600;
    }
}

@media (max-width: 380px) {
    h1 { font-size: 28px; }
    .home h1 { font-size: 32px; }
}

.home {
    background:
        radial-gradient(900px 420px at 100% -10%, #ffe1c4 0%, transparent 55%),
        radial-gradient(700px 380px at -10% 20%, #d9f5e8 0%, transparent 50%),
        #f7f3ee;
}

.tone-rose { background: #ffe4e6; color: #9f1230; }
.tone-green { background: #e5f6ef; color: #0f6b49; }
.tone-amber { background: #fff1cc; color: #8a5a00; }
.tone-blue { background: #e7f0ff; color: #1d4ed8; }

.top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.home .top {
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(255, 252, 249, 0.92);
    backdrop-filter: blur(10px);
    border-bottom-color: transparent;
    box-shadow: 0 1px 0 #f0e4dc;
}

.home .top::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, #e11d2e 0%, #ff7a45 28%, #f5b942 52%, #1ba672 76%, #3b6cff 100%);
}

.home a:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}

.btn.store { gap: 8px; }

.btn svg { display: block; flex: 0 0 auto; }

.hero-stage {
    max-width: 1120px;
    margin: 20px auto 0;
    padding: 36px 32px 28px;
    border-radius: 32px;
    background:
        radial-gradient(380px 220px at 96% 0%, #ffd7a8 0%, transparent 70%),
        radial-gradient(340px 240px at 70% 110%, #ffc9d1 0%, transparent 72%),
        linear-gradient(160deg, #fff 0%, #fff 46%, #fff5f6 100%);
    border: 1px solid #f3ddd8;
    box-shadow: 0 18px 40px rgba(225, 29, 46, 0.06);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 36px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--red);
    font-weight: 800;
}

.home h1 {
    max-width: 11ch;
    font-size: 58px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.chips li {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.phone-halo {
    justify-self: center;
    padding: 16px;
    border-radius: 40px;
    background:
        radial-gradient(circle at 30% 20%, #fff 0%, transparent 45%),
        linear-gradient(160deg, #ffe4e6, #fff4d4 55%, #e5f6ef);
}

.phone {
    width: min(100%, 280px);
    background: #fff;
    border-radius: 28px;
    padding: 16px 16px 20px;
    box-shadow: 0 16px 30px rgba(159, 18, 48, 0.12);
}

.phone-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.phone-top span {
    color: #9f1230;
    font-weight: 700;
    background: #ffe4e6;
    border-radius: 999px;
    padding: 3px 8px;
}

.heard {
    margin: 14px 0 8px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #ffe4e6;
    color: #9f1230;
    font-weight: 700;
}

.bill {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bill li,
.bill-total {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 2px;
}

.bill li { border-bottom: 1px solid var(--line); }

.bill-total {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #e5f6ef;
    color: #0f6b49;
    font-weight: 800;
}

.mic {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 16px auto 0;
    border-radius: 50%;
    background: var(--red);
}

.reasons {
    max-width: 1120px;
    margin: 22px auto 0;
    padding: 0 8px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.reasons article {
    border-radius: 18px;
    padding: 16px;
}

.mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: #fff;
}

.reasons strong,
.start strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
}

.reasons p,
.start p { margin: 0; color: #3d4450; line-height: 1.45; }

.start {
    max-width: 1120px;
    margin: 28px auto;
    padding: 8px;
    scroll-margin-top: 120px;
}

.home h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.7px;
    font-weight: 800;
}

.start h2 { padding: 8px 8px 0; }

.start ol {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.start li {
    border-radius: 18px;
    padding: 16px;
}

.step-no {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #fff;
    font-weight: 800;
}

.close-band {
    max-width: 1120px;
    margin: 8px auto 12px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background:
        radial-gradient(420px 180px at 100% 0%, #ffb3bc 0%, transparent 60%),
        linear-gradient(135deg, #ff4d5e 0%, #e11d2e 48%, #9d1224 100%);
    color: #fff;
    border-radius: 24px;
    box-shadow: 0 16px 32px rgba(225, 29, 46, 0.22);
}

.close-band p {
    margin: 8px 0 0;
    color: #ffe4e8;
}

.close-band .btn {
    background: #fff;
    color: var(--ink);
    flex: 0 0 auto;
}

.home-foot {
    max-width: 1120px;
    margin: 0 auto;
    padding: 8px 24px 36px;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 900px) {
    .hero,
    .reasons,
    .start ol { grid-template-columns: 1fr 1fr; }

    .hero { grid-template-columns: 1fr; }

    .home h1 {
        max-width: 14ch;
        font-size: 46px;
    }
}

@media (max-width: 720px) {
    .home .top { flex-wrap: wrap; }

    .home .top-actions { width: 100%; }

    .home .top-actions .store { flex: 1; }

    .hero-stage {
        margin: 12px 12px 0;
        padding: 22px 16px 18px;
        border-radius: 24px;
    }

    .home h1 { font-size: 36px; }

    .hero-actions,
    .hero-actions .btn { width: 100%; }

    .reasons,
    .start ol { grid-template-columns: 1fr; }

    .reasons { padding: 0 12px; }

    .start { margin: 18px 12px; padding: 0; }

    .close-band {
        margin: 0 12px 12px;
        padding: 24px 18px;
        flex-direction: column;
        align-items: stretch;
    }

    .close-band .btn { width: 100%; }

    .home-foot { padding: 4px 16px 28px; }
}
