:root {
    --ink: #2b2b2b;
    --muted: #5a5a5a;
    --red: #d10000;
    --red-dark: #a80000;
    --star-on: #f5b301;
    --star-on-line: #d99a00;
    --star-off: #dcdcdc;
    --star-off-line: #b5b5b5;
}

*, *::before, *::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    font-family: 'Roboto', system-ui, sans-serif;
    color: var(--ink);
    line-height: 1.4;
}

.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(24px, 6vw, 64px) 16px;
    background: linear-gradient(rgba(255, 255, 255, .86), rgba(255, 255, 255, .95)), url(/img/pozadi.png) center top / cover no-repeat;
}

.logo {
    display: block;
    width: clamp(96px, 14vw, 128px);
    height: auto;
}

.main {
    width: 100%;
    max-width: 560px;
    margin-top: clamp(28px, 7vw, 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.eyebrow {
    margin: 0;
    font-size: clamp(15px, 2.4vw, 18px);
    color: var(--muted);
}

.title {
    margin: 0;
    font-size: clamp(24px, 5vw, 36px);
    line-height: 1.2;
    font-weight: 500;
}

.card {
    width: 100%;
    margin-top: 8px;
    padding: clamp(20px, 5vw, 40px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08), 0 12px 32px rgba(0, 0, 0, .06);
}

.card-message {
    align-items: center;
    gap: 24px;
    padding-block: clamp(28px, 6vw, 48px);
    text-align: center;
}

.card-message .title {
    margin: 0;
}

.card-message .text {
    margin: -8px 0 0;
    font-size: clamp(15px, 2.4vw, 18px);
    color: var(--muted);
}

.code {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

/* hvezdicky */
.stars {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.stars-row {
    display: flex;
    justify-content: center;
    gap: clamp(4px, 2vw, 12px);
}

.star {
    position: relative;
    flex: 1 1 0;
    max-width: 72px;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: transform .15s ease;
}

.star svg {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.star path {
    fill: var(--star-off);
    stroke: var(--star-off-line);
    stroke-width: 1;
    stroke-linejoin: round;
    transition: fill .15s ease, stroke .15s ease;
}

.star.is-on path {
    fill: var(--star-on);
    stroke: var(--star-on-line);
}

.star input:focus-visible + svg {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}

@media (hover: hover) {
    .star:hover {
        transform: scale(1.08);
    }
}

.error {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    color: #b00000;
}

.feedback {
    margin: 0;
    font-size: clamp(15px, 2.4vw, 18px);
    line-height: 1.45;
    color: #4a4a4a;
}

.feedback img {
    vertical-align: middle;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
}

.note {
    width: 100%;
    min-height: 104px;
    padding: 12px;
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    border: 1px solid #b8b8b8;
    border-radius: 8px;
    resize: vertical;
}

.note:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 2px;
}

/* tlacitka */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 12px 32px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: var(--red);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .15s ease;
}

.btn:hover {
    background: var(--red-dark);
}

.btn:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}

.btn:disabled {
    opacity: .6;
    cursor: default;
}

.card-message .btn {
    width: auto;
}

@media (max-width: 480px) {
    .card-message .btn {
        width: 100%;
    }
}

/* ikony na strankach s hlaskou */
.icon {
    width: 64px;
    height: 64px;
    display: block;
}

.icon-success circle { fill: #e8f5ec; }
.icon-success path { stroke: #1a7a3a; }
.icon-error circle { fill: #fdecec; }
.icon-error path { stroke: #b00000; }

/* nizke obrazovky (telefon na sirku) */
@media (max-height: 520px) {
    .page { padding-block: 16px; }
    .main { margin-top: 16px; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .star, .star path, .btn {
        transition: none;
    }
    .star:hover {
        transform: none;
    }
}
