/* === STYLE.CSS === */
/* assets/css/style.css */
/* НАЗНАЧЕНИЕ: дизайн опроса (эстетика "Роскошь", премиум wellness/spa) */

:root {
    --bg:        oklch(0.20 0.015 60);
    --bg2:       oklch(0.25 0.02 55);
    --surface:   oklch(0.27 0.018 58);
    --ink:       oklch(0.95 0.01 70);
    --muted:     oklch(0.72 0.015 65);
    --gold:      oklch(0.80 0.10 80);
    --gold-soft: oklch(0.72 0.08 80);
    --line:      oklch(0.40 0.02 60);
    --danger:    oklch(0.70 0.15 30);
    --radius:    16px;
    --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: 'Jost', system-ui, sans-serif;
    background:
        radial-gradient(circle at 20% 0%, oklch(0.30 0.04 70 / 0.5), transparent 50%),
        radial-gradient(circle at 85% 100%, oklch(0.28 0.05 50 / 0.4), transparent 45%),
        var(--bg);
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.6;
    padding: 24px 16px 60px;
    font-weight: 300;
}

.lang-switch {
    position: fixed;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 4px;
    background: oklch(0.27 0.018 58 / 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    z-index: 50;
}
.lang-btn {
    border: none;
    background: transparent;
    color: var(--muted);
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 1px;
}
.lang-btn.active { background: var(--gold); color: oklch(0.22 0.02 60); }

.wrap { max-width: 620px; margin: 0 auto; }

.hero { text-align: center; padding: 30px 0 28px; }
.hero .badge {
    display: inline-block;
    font-weight: 500;
    color: var(--gold);
    border: 1px solid var(--gold-soft);
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(30px, 6.5vw, 44px);
    font-weight: 600;
    line-height: 1.12;
    margin-bottom: 12px;
    color: var(--ink);
}
.hero p { color: var(--muted); font-size: 16px; max-width: 480px; margin: 0 auto; font-weight: 300; }

.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 30px 26px;
    border: 1px solid var(--line);
    box-shadow: 0 20px 60px oklch(0.1 0.02 60 / 0.5);
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 21px;
    color: var(--gold);
    margin: 28px 0 14px;
}
.section-title:first-child { margin-top: 0; }

.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-weight: 400;
    font-size: 14px;
    margin-bottom: 6px;
    color: var(--ink);
}

input[type="text"], textarea {
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    font-weight: 300;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: oklch(0.23 0.015 58);
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}
input::placeholder, textarea::placeholder { color: oklch(0.55 0.01 65); }
input:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px oklch(0.80 0.10 80 / 0.15);
}
textarea { resize: vertical; min-height: 100px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }

/* чипы выбора */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    position: relative;
    cursor: pointer;
    user-select: none;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    color: var(--ink);
    background: oklch(0.24 0.015 58);
    transition: all 0.2s var(--ease);
}
.chip:hover span { border-color: var(--gold-soft); }
.chip.checked span {
    background: var(--gold);
    color: oklch(0.20 0.02 60);
    border-color: var(--gold);
    font-weight: 500;
}

.btn {
    width: 100%;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 19px;
    letter-spacing: 0.5px;
    color: oklch(0.20 0.02 60);
    background: linear-gradient(135deg, var(--gold), var(--gold-soft));
    border: none;
    border-radius: 12px;
    padding: 16px;
    margin-top: 28px;
    cursor: pointer;
    transition: transform 0.15s var(--ease), box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 10px 30px oklch(0.80 0.10 80 / 0.25);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px oklch(0.80 0.10 80 / 0.35); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-msg {
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 11px;
    font-size: 14px;
    display: none;
}
.form-msg.show { display: block; }
.form-msg.err { background: oklch(0.30 0.08 30); color: oklch(0.90 0.08 30); }

.foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 24px; font-weight: 300; }

/* экран благодарности */
.thanks-overlay {
    position: fixed;
    inset: 0;
    background: oklch(0.18 0.015 60 / 0.97);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 100;
}
.thanks-overlay.show { display: flex; }
.thanks-card {
    text-align: center;
    max-width: 440px;
    animation: pop 0.5s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: scale(0.92) translateY(10px); } to { opacity: 1; transform: none; } }
.thanks-ico {
    font-size: 56px;
    color: var(--gold);
    margin-bottom: 16px;
}
.thanks-card h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 12px;
}
.thanks-card p { color: var(--muted); font-size: 17px; font-weight: 300; }

@media (prefers-reduced-motion: reduce) {
    *, .thanks-card { animation: none !important; transition: none !important; }
}
