/* ===== CSS VARIABLES ===== */
:root {
    --bg: #0f1117;
    --bg-card: #1a1d27;
    --bg-card-hover: #222633;
    --bg-input: #161922;
    --border: #2a2e3d;
    --border-focus: #6c8aff;
    --text: #e8eaf0;
    --text-dim: #8b90a0;
    --text-muted: #5a5f72;
    --accent: #6c8aff;
    --accent-hover: #8ca4ff;
    --accent-glow: rgba(108,138,255,0.25);
    --green: #4ade80;
    --red: #f87171;
    --amber: #fbbf24;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --font-serif: 'Merriweather', Georgia, serif;
    --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 18px; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }
img { max-width: 100%; }

/* ===== HEADER ===== */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(15,17,23,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
}
.header__inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 70px;
}
.header__logo { display: flex; align-items: center; gap: 12px; color: var(--accent); }
.header__icon { display: flex; }
.header__title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.header__subtitle { font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.5px; }
.header__nav { display: flex; gap: 6px; }
.nav-link {
    display: flex; align-items: center; gap: 7px;
    padding: 8px 16px; border-radius: 10px;
    font-size: 0.85rem; font-weight: 500;
    color: var(--text-dim);
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-card); }
.nav-link.active { color: var(--accent); background: var(--accent-glow); }
.header__mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.header__mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero {
    position: relative; min-height: 75vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 4rem 1.5rem 3rem; text-align: center; overflow: hidden;
}
.hero__bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(108,138,255,0.12) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 80%, rgba(74,222,128,0.06) 0%, transparent 40%);
}
.hero__particles { position: absolute; inset: 0; }
.particle {
    position: absolute; border-radius: 50%;
    background: var(--accent); opacity: 0;
    animation: particleFloat 8s infinite;
}
@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0) scale(0); }
    20% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-200px) scale(1); }
}
.hero__content { position: relative; z-index: 1; max-width: 700px; }
.hero__badge {
    display: inline-block;
    padding: 6px 18px; border-radius: 30px;
    background: var(--accent-glow); border: 1px solid rgba(108,138,255,0.3);
    font-size: 0.85rem; color: var(--accent); font-weight: 500;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.7s ease-out;
}
.hero__title {
    font-family: var(--font-serif);
    font-size: 3rem; font-weight: 900; line-height: 1.2;
    margin-bottom: 1.2rem;
    animation: fadeInUp 0.7s ease-out 0.15s both;
}
.hero__highlight {
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero__desc {
    font-size: 1.1rem; color: var(--text-dim); max-width: 550px; margin: 0 auto 2rem;
    animation: fadeInUp 0.7s ease-out 0.3s both;
}
.hero__desc strong { color: var(--accent); font-weight: 600; }
.hero__actions {
    display: flex; gap: 16px; justify-content: center; margin: 0 auto 1.5rem;
    animation: fadeInUp 0.7s ease-out 0.45s both;
    flex-wrap: wrap;
}
.hero-action-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: var(--radius);
    font-weight: 600; font-size: 1rem; transition: var(--transition);
    cursor: pointer;
}
.hero-action-btn--primary {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.hero-action-btn--primary:hover {
    transform: translateY(-2px); box-shadow: 0 6px 25px var(--accent-glow);
}
.hero-action-btn--secondary {
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text);
}
.hero-action-btn--secondary:hover {
    border-color: var(--accent); color: var(--accent); transform: translateY(-2px);
}
.search-input-wrap {
    flex: 1; position: relative; display: flex; align-items: center;
}
.search-icon {
    position: absolute; left: 16px; pointer-events: none; color: var(--text-muted);
}
.search-input {
    width: 100%; padding: 14px 44px 14px 50px;
    background: var(--bg-card); border: 2px solid var(--border);
    border-radius: var(--radius); color: var(--text);
    font-size: 1rem; transition: var(--transition); outline: none;
}
.search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.search-input::placeholder { color: var(--text-muted); }
.search-clear {
    position: absolute; right: 12px;
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--border); color: var(--text-dim);
    font-size: 0.8rem; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.search-clear:hover { background: var(--red); color: white; }
.search-btn {
    padding: 14px 28px; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: white; font-weight: 600; font-size: 1rem; white-space: nowrap;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--accent-glow);
}
.search-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px var(--accent-glow); }

/* ===== AUTOCOMPLETE ===== */
.autocomplete-dropdown {
    position: absolute; top: 100%; left: 0; right: 0;
    z-index: 9999; margin-top: 4px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    max-height: 320px; overflow-y: auto;
    animation: fadeIn 0.15s ease-out;
}
.ac-item {
    padding: 12px 18px; cursor: pointer;
    font-size: 0.95rem; color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item--active {
    background: var(--accent-glow);
}
.ac-name {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1 1 auto;
    margin-right: 12px;
}
.ac-item mark {
    background: rgba(108,138,255,0.3); color: var(--accent);
    border-radius: 2px; padding: 0 1px;
}
.ac-lifespan {
    font-size: 0.78rem; color: var(--text-muted);
    white-space: nowrap; flex-shrink: 0;
}
.hero__hints { animation: fadeInUp 0.7s ease-out 0.6s both; }
.hero__hints span { color: var(--text-muted); font-size: 0.85rem; margin-right: 8px; }
.hint-tag {
    padding: 5px 14px; border-radius: 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-dim); font-size: 0.82rem;
    margin: 3px; transition: var(--transition);
}
.hint-tag:hover { border-color: var(--accent); color: var(--accent); }
.hero__footer {
    margin-top: 2rem;
    animation: fadeInUp 0.7s ease-out 0.6s both;
    pointer-events: none;
    display: flex; justify-content: center; align-items: center;
}
.hero__anim-tree {
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent-glow));
    opacity: 0.8;
}
.hero__anim-tree .leaf-1 { animation: leafPulse 2.4s infinite ease-in-out; }
.hero__anim-tree .leaf-2 { animation: leafPulse 2.4s infinite ease-in-out 0.8s; }
.hero__anim-tree .leaf-3 { animation: leafPulse 2.4s infinite ease-in-out 1.6s; }

@keyframes leafPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
@keyframes fadeInUpCentered {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ===== MAIN & SECTIONS ===== */
.main { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 3rem; }
.section { padding-top: 2rem; }
.section--hidden { display: none; }
.section__header { margin-bottom: 2rem; }
.section__title {
    font-family: var(--font-serif);
    font-size: 1.8rem; font-weight: 700; display: flex; align-items: center; gap: 12px;
    margin-bottom: 0.5rem;
}
.section__title svg { color: var(--accent); flex-shrink: 0; }
.section__desc { color: var(--text-dim); font-size: 1rem; }

/* ===== SEARCH CONTROLS ===== */
.search-controls { margin-bottom: 2rem; }
.search-input-wrap--large .search-input {
    padding: 18px 50px 18px 54px; font-size: 1.1rem;
    border-radius: var(--radius);
}
.search-filters { display: flex; gap: 20px; margin-top: 12px; flex-wrap: wrap; }
.filter-checkbox {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; font-size: 0.9rem; color: var(--text-dim);
}
.filter-checkbox input { display: none; }
.checkbox-mark {
    width: 22px; height: 22px; border-radius: 6px;
    border: 2px solid var(--border); display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.filter-checkbox input:checked + .checkbox-mark {
    background: var(--accent); border-color: var(--accent);
}
.checkbox-mark::after {
    content: '✓'; color: white; font-size: 0.75rem; opacity: 0; transition: var(--transition);
}
.filter-checkbox input:checked + .checkbox-mark::after { opacity: 1; }

/* ===== RESULTS ===== */
.results-container { min-height: 200px; }
.results-placeholder {
    text-align: center; padding: 4rem 2rem;
    color: var(--text-dim);
}
.results-placeholder__icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.results-placeholder h3 { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text); }
.results-count {
    padding: 10px 18px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border);
    font-size: 0.9rem; color: var(--text-dim); margin-bottom: 1.2rem;
    display: inline-block;
}
.results-count strong { color: var(--accent); }

/* ===== PERSON CARD ===== */
.person-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.2rem 1.5rem;
    margin-bottom: 10px; cursor: pointer;
    transition: var(--transition);
    animation: fadeInUp 0.4s ease-out both;
}
.person-card:hover { border-color: var(--accent); background: var(--bg-card-hover); transform: translateX(4px); }
.person-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.person-card__name { font-weight: 600; font-size: 1.05rem; color: var(--text); }
.person-card__name mark { background: rgba(108,138,255,0.25); color: var(--accent); border-radius: 3px; padding: 0 2px; }
.person-card__code {
    font-size: 0.75rem; color: var(--text-muted); font-family: monospace;
    background: var(--bg-input); padding: 3px 8px; border-radius: 6px; white-space: nowrap;
}
.person-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.meta-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 20px;
    font-size: 0.78rem; background: var(--bg-input); color: var(--text-dim);
    border: 1px solid var(--border);
}
.meta-badge--life { border-color: rgba(74,222,128,0.3); color: var(--green); }
.meta-badge--spouse { border-color: rgba(248,113,113,0.3); color: var(--red); }
.meta-badge--nick { border-color: rgba(251,191,36,0.3); color: var(--amber); }
.meta-badge--detail { border-color: rgba(108,138,255,0.3); color: var(--accent); }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem; animation: fadeIn 0.2s ease-out;
}
.modal {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 18px; max-width: 600px; width: 100%;
    max-height: 85vh; overflow-y: auto;
    padding: 2rem; position: relative;
    animation: scaleIn 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal__close {
    position: absolute; top: 16px; right: 16px;
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--bg-input); color: var(--text-dim);
    font-size: 1rem; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.modal__close:hover { background: var(--red); color: white; }
.modal__back {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 10px;
    background: var(--bg-input); border: 1px solid var(--border);
    color: var(--text-dim); font-size: 0.85rem; font-weight: 500;
    margin-bottom: 12px; transition: var(--transition);
    cursor: pointer;
}
.modal__back:hover { border-color: var(--accent); color: var(--accent); }
.spouse-search-hint {
    font-size: 0.75rem; opacity: 0.5; margin-left: 4px;
}
.modal__spouse-search {
    cursor: pointer; transition: var(--transition);
}
.modal__spouse-search:hover {
    background: var(--bg-card-hover); border-color: var(--accent);
    transform: translateX(4px);
}
.modal__name {
    font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700;
    margin-bottom: 0.3rem; padding-right: 48px;
}
.modal__code { color: var(--text-muted); font-size: 0.85rem; font-family: monospace; margin-bottom: 1rem; }
.modal__section { margin-bottom: 1.2rem; }
.modal__label {
    font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; color: var(--text-muted); margin-bottom: 6px;
}
.modal__value {
    padding: 10px 14px; border-radius: var(--radius-sm);
    background: var(--bg-input); border: 1px solid var(--border);
    font-size: 0.95rem; color: var(--text);
}
.modal__list { list-style: none; }
.modal__list li {
    padding: 8px 14px; border-radius: var(--radius-sm);
    background: var(--bg-input); border: 1px solid var(--border);
    margin-bottom: 6px; font-size: 0.95rem;
}
.modal__list--clickable .modal__relative {
    cursor: pointer; transition: var(--transition);
    border-left: 3px solid var(--accent);
}
.modal__list--clickable .modal__relative:hover {
    background: var(--bg-card-hover); border-color: var(--accent);
    transform: translateX(4px);
}
.modal__list--clickable .modal__relative strong {
    color: var(--accent);
}

/* ===== SURNAME GRID ===== */
.surname-filter { margin-bottom: 1.5rem; }
.surname-filter__input {
    width: 100%; max-width: 400px;
    padding: 12px 18px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 2px solid var(--border);
    color: var(--text); font-size: 1rem; outline: none;
    transition: var(--transition);
}
.surname-filter__input:focus { border-color: var(--accent); }
.surname-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.surname-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.2rem;
    cursor: pointer; transition: var(--transition);
    text-align: center;
}
.surname-card:hover { border-color: var(--accent); background: var(--bg-card-hover); transform: translateY(-3px); }
.surname-card__name { font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; }
.surname-card__count { font-size: 0.85rem; color: var(--text-dim); }

/* ===== FAMILY VIEW ===== */
.back-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1.5rem;
    transition: var(--transition);
}
.back-btn:hover { border-color: var(--accent); color: var(--accent); }
.family-view__title {
    font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700;
    margin-bottom: 1.5rem; color: var(--accent);
}

/* ===== STATS ===== */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px; margin-bottom: 2.5rem;
}
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem; text-align: center;
    transition: var(--transition);
}
.stat-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.stat-card__icon { font-size: 2rem; margin-bottom: 8px; }
.stat-card__value { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-card__label { font-size: 0.85rem; color: var(--text-dim); margin-top: 4px; }
.stats-chart-title {
    font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700;
    margin-bottom: 1.2rem;
}
.surname-chart { display: flex; flex-direction: column; gap: 8px; }
.chart-bar { display: flex; align-items: center; gap: 12px; }
.chart-bar__label { min-width: 140px; font-size: 0.9rem; font-weight: 500; text-align: right; }
.chart-bar__track { flex: 1; height: 32px; background: var(--bg-card); border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.chart-bar__fill {
    height: 100%; border-radius: 8px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    display: flex; align-items: center; padding-left: 12px;
    font-size: 0.8rem; font-weight: 600; color: white;
    transition: width 1s ease-out;
}

/* ===== FEEDBACK ===== */
.feedback-container { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.feedback-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 1rem; }
.feedback-info__card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem; text-align: center;
}
.feedback-info__icon { font-size: 2rem; margin-bottom: 8px; }
.feedback-info__card h4 { font-size: 0.95rem; margin-bottom: 6px; }
.feedback-info__card p { font-size: 0.82rem; color: var(--text-dim); }
.feedback-form {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem;
}
.form-group { margin-bottom: 1.3rem; }
.form-label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 8px; }
.form-optional { font-weight: 400; color: var(--text-muted); font-size: 0.82rem; }
.form-input, .form-textarea {
    width: 100%; padding: 14px 18px;
    background: var(--bg-input); border: 2px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text);
    font-size: 1rem; outline: none; transition: var(--transition);
}
.form-input:focus, .form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-radio-group { display: flex; flex-wrap: wrap; gap: 12px; }
.form-radio {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: var(--radius-sm);
    background: var(--bg-input); border: 2px solid var(--border);
    cursor: pointer; transition: var(--transition); font-size: 0.92rem;
}
.form-radio:hover { border-color: var(--accent); }
.form-radio input { display: none; }
.radio-mark {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--border); position: relative;
    transition: var(--transition);
}
.form-radio input:checked ~ .radio-mark { border-color: var(--accent); }
.form-radio input:checked ~ .radio-mark::after {
    content: ''; position: absolute; inset: 3px;
    background: var(--accent); border-radius: 50%;
}
.form-submit {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 32px; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    color: white; font-weight: 600; font-size: 1.05rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--accent-glow);
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 25px var(--accent-glow); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-status {
    margin-top: 1rem; padding: 14px 18px;
    border-radius: var(--radius-sm); font-size: 0.95rem;
}
.form-status--success { background: rgba(74,222,128,0.15); border: 1px solid rgba(74,222,128,0.3); color: var(--green); }
.form-status--error { background: rgba(248,113,113,0.15); border: 1px solid rgba(248,113,113,0.3); color: var(--red); }

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem; text-align: center;
    color: var(--text-dim); font-size: 0.85rem;
}
.footer__text {
    margin-top: 8px; font-size: 0.82rem; line-height: 1.6;
    max-width: 600px; margin-left: auto; margin-right: auto;
}
.footer__creator-link {
    color: var(--accent); text-decoration: underline; font-weight: 500;
    transition: var(--transition);
}
.footer__creator-link:hover {
    color: #8b5cf6; text-shadow: 0 0 10px var(--accent-glow);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 90;
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--accent); color: white;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px var(--accent-glow);
    opacity: 0; transform: translateY(20px);
    transition: var(--transition); pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    html { font-size: 16px; }
    .header__nav { 
        display: none; position: absolute; top: 70px; left: 0; right: 0;
        background: var(--bg-card); border-bottom: 1px solid var(--border);
        flex-direction: column; padding: 10px;
    }
    .header__nav.open { display: flex; }
    .header__mobile-toggle { display: flex; }
    .hero__title { font-size: 2rem; }
    .hero__actions { flex-direction: column; }
    .hero { min-height: 60vh; }
    .feedback-info { grid-template-columns: 1fr; }
    .surname-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .chart-bar__label { min-width: 100px; font-size: 0.8rem; }
    .form-radio-group { flex-direction: column; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .modal { padding: 1.5rem; }
}
