/* === 1. ПЕРЕМЕННЫЕ (THEME) === */
:root {
    /* Цвета бренда */
    --color-brand-50: #ecfdf5;
    --color-brand-100: #d1fae5;
    --color-brand-200: #a7f3d0;
    --color-brand-500: #10b981;
    --color-brand-600: #059669;
    --color-brand-700: #047857;
    --color-brand-900: #064e3b;
    
    /* Оттенки серого (Slate) */
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --color-white: #ffffff;
    
    /* Акцентные цвета */
    --color-red-500: #ef4444;
    --color-red-100: #fee2e2;
    --color-red-600: #dc2626;
    --color-amber-100: #fef3c7;
    --color-amber-400: #fbbf24;
    --color-amber-700: #b45309;
    --color-indigo-50: #eef2ff; --color-indigo-600: #4f46e5;
    --color-pink-50: #fdf2f8;   --color-pink-600: #db2777;
    --color-blue-100: #dbeafe;  --color-blue-700: #1d4ed8;

    /* Шрифты */
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Размеры */
    --container-width: 80rem; /* max-w-7xl */
}

/* === 2. БАЗОВЫЕ СБРОСЫ === */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    background-color: var(--color-slate-50);
    font-family: var(--font-sans);
    color: var(--color-slate-800);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}
a { text-decoration: none; color: inherit; transition: color 0.2s; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; }
h1, h2, h3, h4, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
textarea { font-family: inherit; }

/* === 3. УТИЛИТЫ === */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}
.text-center { text-align: center; }
.hidden { display: none !important; }
.relative { position: relative; }
.scroll-smooth { scroll-behavior: smooth; }

/* Градиентный текст */
.gradient-text {
    background: linear-gradient(135deg, var(--color-brand-600) 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Фон (Mesh) */
.mesh-bg {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1;
    background-color: var(--color-slate-50);
    background-image: 
        radial-gradient(at 0% 0%, hsla(160, 20%, 95%, 1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(150, 20%, 90%, 1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(140, 20%, 95%, 1) 0, transparent 50%);
}

/* === 4. КНОПКИ === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; border-radius: 0.75rem;
    font-weight: 700; font-size: 0.875rem; transition: all 0.2s;
    cursor: pointer;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
    background-color: var(--color-slate-900); color: var(--color-white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.btn-primary:hover { background-color: var(--color-brand-600); }

.btn-secondary {
    background-color: var(--color-brand-50); color: var(--color-brand-600);
    border: 1px solid var(--color-brand-200);
}
.btn-secondary:hover { background-color: var(--color-brand-100); }

.btn-outline {
    background: var(--color-white); border: 1px solid var(--color-slate-300);
    color: var(--color-slate-600);
}
.btn-outline:hover { background: var(--color-slate-50); color: var(--color-red-500); }

.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.75rem; border-radius: 0.5rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* === 5. HEADER & NAVBAR === */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.navbar-inner { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-icon {
    width: 2.5rem; height: 2.5rem;
    background: linear-gradient(135deg, var(--color-brand-500), var(--color-brand-600));
    border-radius: 0.625rem;
    display: flex; align-items: center; justify-content: center; color: white;
}
.logo-icon svg { width: 1.25rem; height: 1.25rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-title { font-size: 1.125rem; font-weight: 800; color: var(--color-slate-900); }
.logo-subtitle { font-size: 0.625rem; color: var(--color-slate-400); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }

.nav-desktop { display: none; align-items: center; gap: 0.5rem; }
@media (min-width: 768px) { .nav-desktop { display: flex; } }

.nav-link {
    padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500;
    color: var(--color-slate-600); border-radius: 0.5rem;
}
.nav-link:hover { color: var(--color-slate-900); background-color: var(--color-slate-100); }
.nav-link.active { color: var(--color-brand-600); background-color: var(--color-brand-50); }

.mobile-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
    background-color: var(--color-slate-100); color: var(--color-slate-600);
}
@media (min-width: 768px) { .mobile-toggle { display: none; } }

.mobile-menu {
    border-top: 1px solid var(--color-slate-200); background: white;
}
.mobile-menu a { display: block; padding: 1rem; border-bottom: 1px solid var(--color-slate-50); }

/* === 6. HERO SECTION === */
.hero-section { padding-top: 8rem; padding-bottom: 2.5rem; position: relative; }
.hero-content { text-align: center; margin-bottom: 4rem; position: relative; z-index: 10; }
.hero-title {
    font-size: 2.5rem; font-weight: 800; color: var(--color-slate-900);
    line-height: 1.1; margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero-title { font-size: 3.75rem; } }
.hero-desc { font-size: 1.125rem; color: var(--color-slate-500); max-width: 48rem; margin: 0 auto; }

/* === 7. EDITOR UI === */
.editor-container {
    max-width: 56rem; margin: 0 auto; position: relative; z-index: 20;
    display: flex; flex-direction: column; gap: 2rem;
}

/* Анимация Blobs */
.blob {
    position: absolute; width: 16rem; height: 16rem; border-radius: 50%;
    filter: blur(40px); opacity: 0.3; mix-blend-mode: multiply;
    animation: blob-anim 7s infinite; z-index: 10; pointer-events: none;
}
.blob-1 { top: -2rem; left: -2rem; background-color: #34d399; }
.blob-2 { top: -2rem; right: -2rem; background-color: #2dd4bf; animation-delay: 2s; }
@keyframes blob-anim {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -50px); }
    66% { transform: translate(-20px, 20px); }
}

.editor-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 1rem;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.1);
    display: flex; flex-direction: column;
    height: 400px; overflow: hidden; position: relative;
    z-index: 20;
}
@media (max-width: 767px) { .editor-card { height: 350px; } }

.editor-card.output { background-color: rgba(236, 253, 245, 0.5); border-color: var(--color-brand-100); }

.editor-header {
    height: 3.5rem; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.5); border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}
.output .editor-header { background-color: rgba(209, 250, 229, 0.5); border-color: rgba(167, 243, 208, 0.6); }

.editor-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: var(--color-slate-500); letter-spacing: 0.05em; }
.output .editor-label { color: var(--color-brand-700); }

.editor-controls { display: flex; gap: 0.5rem; align-items: center; }
.divider-v { width: 1px; height: 1rem; background: var(--color-slate-300); }

.editor-body { flex: 1; position: relative; background: rgba(255, 255, 255, 0.3); display: flex; flex-direction: column; }
.editor-textarea {
    width: 100%; height: 100%; padding: 1.5rem; border: none; outline: none; resize: none;
    background: transparent; font-family: var(--font-mono); font-size: 1rem;
    color: var(--color-slate-700);
}
.editor-content { padding: 1.5rem; font-family: var(--font-mono); font-size: 1rem; color: var(--color-slate-800); overflow-y: auto; white-space: pre-wrap; height: 100%; }

.editor-footer { padding: 1rem; display: flex; justify-content: flex-end; border-top: 1px solid var(--color-slate-100); background: rgba(255, 255, 255, 0.5); }
.editor-status {
    padding: 0.5rem 1.5rem; font-size: 0.625rem; color: var(--color-slate-400); font-family: var(--font-mono);
    display: flex; justify-content: space-between; border-top: 1px solid var(--color-slate-100); background: rgba(255, 255, 255, 0.3);
}

.img-preview { padding: 1rem 1.5rem 0.5rem; display: none; }
.img-preview-wrap { position: relative; display: inline-block; }
.img-preview-img { height: 6rem; border-radius: 0.5rem; border: 1px solid var(--color-slate-200); }
.btn-close-img {
    position: absolute; top: -0.5rem; right: -0.5rem; width: 1.5rem; height: 1.5rem;
    background: var(--color-red-500); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

/* Loader */
.loader {
    position: absolute; inset: 0; background: rgba(255, 255, 255, 0.9); z-index: 30;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.spinner {
    width: 3rem; height: 3rem; border: 4px solid var(--color-brand-100);
    border-top-color: var(--color-brand-500); border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === 8. ANALYSIS SECTION === */
.section-analysis { padding: 4rem 0; background: white; border-top: 1px solid var(--color-slate-200); }
.analysis-container { max-width: 56rem; margin: 0 auto; display: flex; flex-direction: column; gap: 3rem; padding: 0 1rem; }

.diff-card { background: white; border: 1px solid var(--color-slate-200); border-radius: 1rem; overflow: hidden; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); }
.diff-header {
    padding: 1rem 1.5rem; background: var(--color-slate-50); border-bottom: 1px solid var(--color-slate-200);
    display: flex; flex-direction: column; gap: 1rem;
}
@media (min-width: 640px) { .diff-header { flex-direction: row; justify-content: space-between; align-items: center; } }
.diff-title { font-weight: 700; color: var(--color-slate-900); display: flex; align-items: center; gap: 0.5rem; }
.diff-actions { display: flex; gap: 0.75rem; }

.diff-body { padding: 2rem; min-height: 150px; font-family: var(--font-mono); line-height: 2; color: var(--color-slate-700); }
.errors-grid { display: grid; gap: 1rem; }

/* === 8.1 DYNAMIC ERROR CARDS & HIGHLIGHTING (NEW) === */

/* Подсветка в тексте diff */
.diff-char-add {
    background-color: var(--color-brand-100);
    color: var(--color-brand-700);
    font-weight: 700;
    border-radius: 0.25rem;
    padding: 0 0.2rem;
}
.diff-word-mod {
    background-color: var(--color-amber-100);
    color: var(--color-amber-700);
    font-weight: 700;
    border-radius: 0.25rem;
    padding: 0 0.2rem;
}
.diff-strike { text-decoration: line-through; color: var(--color-slate-400); margin-right: 0.5rem; }
.diff-highlight { color: var(--color-brand-600); font-weight: 700; }
.diff-arrow { color: var(--color-slate-300); font-size: 0.75rem; margin: 0 0.5rem; }
.diff-missing { color: var(--color-slate-400); font-style: italic; font-size: 0.875rem; margin-right: 0.5rem; }

/* Карточка ошибки (генерируется JS) */
.error-card-item {
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-slate-200);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.2s;
}
@media (min-width: 640px) {
    .error-card-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}
.error-card-item:hover { border-color: var(--color-brand-200); }

.error-card-left { display: flex; align-items: center; gap: 1rem; }
.error-card-badge {
    width: 2rem; height: 2rem; border-radius: 50%;
    background-color: var(--color-brand-50);
    color: var(--color-brand-600);
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 0.75rem; flex-shrink: 0;
}
.error-card-info h4 { font-weight: 700; color: var(--color-slate-800); font-size: 0.875rem; margin-bottom: 0.25rem; }
.error-card-diff-box {
    background-color: var(--color-slate-50); padding: 0.25rem 0.5rem; border-radius: 0.25rem;
    font-family: var(--font-mono); font-size: 0.875rem; display: inline-block;
}

.error-card-actions { display: flex; gap: 0.5rem; width: 100%; }
@media (min-width: 640px) { .error-card-actions { width: auto; } }

.btn-action {
    flex: 1; padding: 0.4rem 0.75rem; font-size: 0.75rem; font-weight: bold; border-radius: 0.5rem;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s;
}
@media (min-width: 640px) { .btn-action { flex: none; } }

.btn-accept { background: var(--color-brand-50); color: var(--color-brand-700); border: 1px solid var(--color-brand-200); }
.btn-accept:hover { background: var(--color-brand-100); }
.btn-reject { background: white; color: var(--color-slate-500); border: 1px solid var(--color-slate-200); }
.btn-reject:hover { background: var(--color-slate-50); color: var(--color-red-500); }

/* === 9. FEATURES & INFO SECTIONS === */
.section { padding: 6rem 0; border-top: 1px solid var(--color-slate-200); background: var(--color-slate-50); }
.section.white { background: white; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag { color: var(--color-brand-600); font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; display: block; }
.section-headline { font-size: 2.25rem; font-weight: 800; color: var(--color-slate-900); }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
    background: white; border-radius: 1rem; padding: 2rem;
    border: 1px solid var(--color-slate-100); transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-0.25rem); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.feature-icon {
    width: 3rem; height: 3rem; border-radius: 0.75rem; background: var(--color-slate-100); color: var(--color-brand-600);
    display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 1.5rem;
}
.feature-card:hover .feature-icon { background: var(--color-brand-600); color: white; }
.feature-title { font-weight: 700; font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--color-slate-900); }
.feature-text { font-size: 0.875rem; color: var(--color-slate-500); margin-bottom: 1rem; }
.example-block {
    background: var(--color-slate-50); padding: 0.75rem; border-radius: 0.5rem;
    font-family: var(--font-mono); font-size: 0.875rem; border-left: 4px solid var(--color-brand-500);
}

/* Tree Visualization */
.tree-container {
    max-width: 56rem; margin: 0 auto; background: var(--color-slate-50);
    border-radius: 1rem; padding: 2rem; border: 1px solid var(--color-slate-200); position: relative;
}
.tree-level { display: flex; justify-content: center; margin-bottom: 2rem; }
.tree-arrow { text-align: center; color: var(--color-slate-300); margin: 1rem 0; }
.tree-box {
    background: white; padding: 0.75rem 1.5rem; border-radius: 0.75rem;
    border: 1px dashed var(--color-slate-300); font-family: var(--font-mono); color: var(--color-slate-600);
}
.tokens-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.token-item { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.token-badge { font-size: 0.625rem; font-weight: 700; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 0.25rem; background: #eee; }
.token-val { background: white; border: 1px solid var(--color-slate-200); padding: 0.5rem 1rem; border-radius: 0.5rem; font-weight: 700; }
.result-final {
    background: var(--color-brand-50); padding: 1rem 2rem; border-radius: 0.75rem;
    border: 1px solid var(--color-brand-200); display: flex; align-items: center; gap: 1rem; font-size: 1.125rem;
}
.highlight-success {
    background-color: var(--color-brand-100); color: var(--color-brand-700);
    padding: 0.1rem 0.4rem; border-radius: 0.375rem; font-weight: 700;
}

/* === 10. REVIEWS & FOOTER === */
.testimonial {
    background: white; padding: 2rem; border-radius: 1rem; border: 1px solid var(--color-slate-100);
    display: flex; flex-direction: column;
}
.user-info { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.avatar {
    width: 3.5rem; height: 3.5rem; border-radius: 50%; background: linear-gradient(135deg, #34d399, #10b981);
    color: white; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.stars { color: var(--color-amber-400); font-size: 0.875rem; margin-top: 0.25rem; }

.footer { background: var(--color-slate-900); color: var(--color-slate-400); padding: 3rem 0; text-align: center; }
.footer-links { margin-top: 1rem; display: flex; justify-content: center; gap: 1.5rem; }
.footer-links a:hover { color: white; }

/* Toast */
.toast {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 50;
    background: var(--color-slate-900); color: white; padding: 1rem 1.5rem; border-radius: 0.75rem;
    display: flex; align-items: center; gap: 1rem; box-shadow: 0 10px 15px rgba(0,0,0,0.3);
    opacity: 0; transform: translateY(2rem); transition: all 0.5s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast-success-icon { color: var(--color-brand-500); }
.toast-error-icon { color: var(--color-red-500); }

/* === 11. MORPH PAGE SPECIFIC === */
.morph-input-group {
    display: flex; flex-direction: column; gap: 0.5rem;
    background: rgba(255,255,255,0.6); padding: 0.5rem; border-radius: 1rem; border: 1px solid var(--color-slate-200);
}
@media (min-width: 768px) { .morph-input-group { flex-direction: row; } }
.morph-input-wrapper { flex: 1; position: relative; }
.morph-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--color-slate-400); }
.morph-input {
    width: 100%; padding: 1rem 1rem 1rem 3rem; border: none; background: transparent;
    font-size: 1.125rem; outline: none;
}
.morph-result-card {
    background: white; border-radius: 1rem; border: 1px solid var(--color-slate-200);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); margin-bottom: 2rem; overflow: hidden;
}
.morph-header {
    background: linear-gradient(to right, var(--color-slate-50), white);
    padding: 1.5rem 2rem; border-bottom: 1px solid var(--color-slate-200);
    display: flex; justify-content: space-between; align-items: center;
}
.morph-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--color-slate-200); }
@media (min-width: 768px) { .morph-grid { grid-template-columns: 1fr 1fr; } }
.morph-col { padding: 2rem; }
.morph-col:first-child { border-right: 1px solid var(--color-slate-200); }

/* Proze text */
.prose { max-width: 65ch; margin: 0 auto; color: var(--color-slate-600); line-height: 1.7; }
.prose h3 { color: var(--color-slate-900); font-weight: 700; margin-top: 2rem; margin-bottom: 1rem; font-size: 1.5rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; }
.prose li { margin-bottom: 0.5rem; }

/* === СПЕЦИАЛЬНЫЕ СТИЛИ ДЛЯ PADEJ.PHP === */

/* Компактный инпут для одного слова */
.input-single-line {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    height: 4rem; /* Фиксированная высота */
    line-height: 4rem;
    padding: 0 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Убираем лишнюю высоту у карточки редактора на странице падежей */
.editor-card.compact {
    height: auto; /* Высота подстраивается под контент */
    min-height: auto;
    overflow: visible; /* Чтобы тени не обрезались */
}

.editor-card.compact .editor-body {
    padding: 1rem 0;
    flex: none; /* Не растягиваться */
}

/* Скрытый блок (уже есть в utilites, но убедимся) */
.hidden { display: none !important; }

/* Адаптивная таблица (чтобы влезала и скроллилась) */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Плавный скролл на iOS */
    padding-bottom: 0.5rem; /* Место для скроллбара */
}

/* Красивый скроллбар для таблицы */
.table-responsive::-webkit-scrollbar {
    height: 6px;
}
.table-responsive::-webkit-scrollbar-track {
    background: var(--color-slate-100);
    border-radius: 3px;
}
.table-responsive::-webkit-scrollbar-thumb {
    background: var(--color-slate-300);
    border-radius: 3px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--color-brand-400);
}

/* Анимация появления результата */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal-animation {
    animation: slideUpFade 0.5s ease-out forwards;
}

/* === ИСПРАВЛЕНИЕ ВЫВОДА ТАБЛИЦЫ === */

/* Снимаем ограничение высоты для карточки с результатом */
.editor-card.output-auto-height {
    height: auto !important; /* Разрешаем блоку расти */
    min-height: 200px;
    overflow: visible; /* Убираем скрытие, если что-то вылезет */
}

.editor-card.output-auto-height .editor-body {
    padding: 0;
    flex: none; /* Отключаем flex-растягивание внутри тела */
}

/* Компактная таблица */
.compact-table {
    width: 100%;
    border-collapse: collapse;
}

.compact-table th {
    text-align: left;
    padding: 0.75rem 1.5rem;
    color: var(--color-slate-400);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 1px solid var(--color-slate-200);
    background: var(--color-slate-50);
}

.compact-table td {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--color-slate-100);
    vertical-align: middle;
}

.compact-table tr:last-child td {
    border-bottom: none;
}

/* Стили для названия падежа */
.case-name {
    font-weight: 600;
    color: var(--color-slate-500);
    font-size: 0.9rem;
    width: 30%; /* Фиксируем ширину колонки */
}

/* Стили для формы слова */
.word-form {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-slate-800);
    display: flex;
    align-items: center;
    justify-content: space-between; /* Разносим слово и иконку */
}

/* Кнопка копирования внутри строки */
.copy-icon-btn {
    opacity: 0.2;
    transition: opacity 0.2s, transform 0.2s;
    cursor: pointer;
    color: var(--color-brand-600);
    padding: 0.25rem;
}

.compact-table tr:hover .copy-icon-btn {
    opacity: 1;
}

.copy-icon-btn:active {
    transform: scale(0.9);
}

/* Делаем placeholder (пример) тусклым и не таким жирным */
.input-single-line::placeholder {
    color: var(--color-slate-300); /* Светло-серый цвет */
    font-weight: 400; /* Убираем жирность */
    opacity: 0.8; /* Немного прозрачности для мягкости */
}

/* Для поддержки разных браузеров */
.input-single-line::-webkit-input-placeholder { color: var(--color-slate-300); font-weight: 400; opacity: 0.8; }
.input-single-line::-moz-placeholder { color: var(--color-slate-300); font-weight: 400; opacity: 0.8; }
.input-single-line:-ms-input-placeholder { color: var(--color-slate-300); font-weight: 400; opacity: 0.8; }