/* Клиентская страница в стилистике grandpie.ru: PT Sans, тёплая палитра пекарни. */
:root {
    --brand: #cc0033;       /* фирменный красный */
    --brand-dark: #a61d3d;  /* бордовый (hover) */
    --green: #7ca877;       /* шалфейный */
    --gold: #fcbc3e;        /* золотой (звёзды/акцент) */
    --cream: #fef5e7;       /* тёплый фон */
    --cream-2: #fff8ee;
    --text: #484848;
    --muted: #919191;
    --line: #ece3d6;
    --card: #ffffff;
    --radius: 18px;

    --yandex: #fc3f1d;
    --google: #4285f4;
    --gis: #19aa1e;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--cream);
    color: var(--text);
    font-family: 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
}

.screen {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 32px 20px calc(36px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--card);
    box-shadow: 0 0 40px rgba(166, 29, 61, .06);
}

.brand { margin-bottom: 10px; }
.logo { max-width: 150px; max-height: 92px; height: auto; object-fit: contain; margin-bottom: 10px; }
.brand-name { font-size: 1.45rem; margin: 4px 0; font-weight: 700; color: var(--text); }
.location { color: var(--muted); margin: 0; font-size: 1rem; }

.prompt { font-size: 1.35rem; margin: 30px 0 14px; font-weight: 700; color: var(--brand); }

/* Звёзды: row-reverse, золотая заливка при наведении/фокусе. */
.stars { display: flex; flex-direction: row-reverse; justify-content: center; gap: 6px; margin: 8px 0 4px; }
.star {
    background: none; border: none; cursor: pointer;
    font-size: 2.9rem; line-height: 1; color: #e7ddcd; padding: 6px;
    transition: color .12s, transform .12s; -webkit-tap-highlight-color: transparent;
}
.star:hover, .star:hover ~ .star,
.star:focus, .star:focus ~ .star { color: var(--gold); }
.star:active { transform: scale(1.15); }

.hint { color: var(--muted); font-size: .92rem; margin-top: 16px; }
.hint a { color: var(--brand); }

.emoji-big { font-size: 4rem; margin: 22px 0 8px; }
.title { font-size: 1.55rem; margin: 4px 0 12px; font-weight: 700; }
.lead { color: #5b5550; font-size: 1.05rem; line-height: 1.5; margin: 0 0 22px; }

/* Кнопки внешних площадок (фирменные цвета + бейдж). */
.link-buttons { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.btn-ext {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 14px 16px; border-radius: var(--radius);
    color: #fff; text-decoration: none; font-size: 1.08rem; font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    transition: filter .12s, transform .06s;
}
.btn-ext:active { transform: translateY(1px); filter: brightness(.95); }
.btn-ext .ext-badge {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
    background: #fff; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.05rem;
}
.btn-ext .ext-label { flex: 1 1 auto; text-align: left; }

.ext-yandex { background: var(--yandex); }
.ext-yandex .ext-badge { color: var(--yandex); }
.ext-google { background: var(--google); }
.ext-google .ext-badge { color: var(--google); }
.ext-2gis { background: var(--gis); }
.ext-2gis .ext-badge { color: var(--gis); }
.ext-other { background: var(--brand); }
.ext-other .ext-badge { color: var(--brand); }

/* Карточка промокода */
.promo-card {
    margin-top: 26px; width: 100%; text-align: left;
    background: var(--cream-2); border: 2px dashed var(--gold);
    border-radius: var(--radius); padding: 20px;
}
.promo-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.promo-emoji { font-size: 1.6rem; }
.promo-title { font-size: 1.2rem; margin: 0; font-weight: 700; color: var(--brand-dark); }
.promo-steps { margin: 6px 0 16px; padding-left: 20px; color: #5b5550; }
.promo-steps li { margin: 4px 0; }

.promo-form, .feedback { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.promo-form label, .feedback label { font-size: .95rem; color: #5b5550; display: flex; flex-direction: column; gap: 6px; }
.promo-form .opt, .feedback .opt { color: var(--muted); font-weight: 400; }
.promo-form input, .promo-form textarea,
.feedback input, .feedback textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line);
    border-radius: 12px; font-size: 1rem; font-family: inherit; background: #fff; color: var(--text);
}
.promo-form input:focus, .promo-form textarea:focus,
.feedback input:focus, .feedback textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(204, 0, 51, .12);
}
.feedback textarea { resize: vertical; }

.file-field input[type="file"] {
    padding: 10px; background: #fff; border: 1px dashed var(--gold); border-radius: 12px;
}
.file-label { font-weight: 700; color: var(--brand-dark); }
.has-error input { border-color: var(--brand); }
.err { color: var(--brand); font-size: .85rem; font-weight: 400; }

.btn-primary {
    margin-top: 4px; padding: 15px; border: none; border-radius: var(--radius);
    background: var(--brand); color: #fff; font-size: 1.1rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 4px 14px rgba(204, 0, 51, .25);
}
.btn-primary:active { background: var(--brand-dark); transform: translateY(1px); }

.chat-buttons { margin-top: 22px; width: 100%; display: flex; flex-direction: column; gap: 10px; }
.chat-buttons .hint { margin: 0 0 2px; }
.btn-chat { display: block; padding: 14px; border-radius: var(--radius); color: #fff; text-decoration: none; font-weight: 700; }
.btn-chat.tg { background: #2aabee; }
.btn-chat.wa { background: #25d366; }
