:root {
    --onyx-black: #0b0b0d;
    --onyx-lighter: #121214;
    --red-accent: #e62020;
    --red-glow: rgba(230, 32, 32, 0.3);
    --text-main: #ffffff;
    --text-muted: #888888;
    /* Устанавливаем Inter для всех элементов */
    --font-ui: 'Inter', sans-serif;
    --font-display: 'Inter', sans-serif; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--onyx-black);
    color: var(--text-main);
    font-family: var(--font-ui);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Header (Минимализм) --- */
.header {
    display: flex;
    justify-content: space-between; /* Логотип прижимается влево, меню - вправо */
    align-items: center;
    padding: 30px 50px;
    background: transparent; /* Убрали фон и тени для чистоты */
}

.logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600; /* Сделали чуть тоньше (было 700) */
    color: var(--text-main);
    letter-spacing: 0.5px; /* Убрали сильный отступ между буквами */
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--red-accent);
    font-size: 1.2rem; /* Иконка чуть меньше текста */
}

/* --- Language Selector --- */
.lang-selector {
    position: relative;
}

.lang-btn {
    background: transparent;
    border: none; /* Убрали рамку для минимализма */
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-ui);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.lang-btn:hover {
    color: var(--text-main); /* При наведении текст светлеет */
}

.lang-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px;
    background-color: var(--onyx-lighter);
    border-radius: 6px;
    overflow: hidden;
    flex-direction: column;
    min-width: 80px;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* Мягкая тень только у выпадающего меню */
}

.lang-menu.show {
    display: flex;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-option {
    padding: 10px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.lang-option:hover {
    background-color: var(--onyx-black);
    color: var(--red-accent);
}

/* --- Main Content --- */
.main-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hero-section {
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin-top: -15vh;
}

/* --- Typing Text --- */
.typing-container {
    font-family: var(--font-display);
    font-size: 2.2rem; /* Немного уменьшили размер */
    min-height: 80px; 
    margin-bottom: 40px;
    text-transform: none; /* УБРАЛИ автоматические заглавные буквы */
    letter-spacing: 0px; /* Убрали растянутость текста */
    font-weight: 300; /* Сделали шрифт тонким и элегантным */
}

#typed-output {
    color: var(--text-main);
}

.cursor {
    color: var(--red-accent);
    font-weight: 300; /* Курсор тоже делаем тонким */
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --- Search Bar --- */
.search-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 18px 25px 18px 55px;
    font-size: 1rem;
    font-family: var(--font-ui);
    background-color: var(--onyx-lighter);
    border: 1px solid transparent; /* Скрытая рамка в покое */
    color: var(--text-main);
    border-radius: 30px; /* Более аккуратные скругления */
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: color 0.3s ease;
    pointer-events: none;
}

/* Минималистичное свечение при фокусе */
.search-input:focus {
    background-color: var(--onyx-black);
    border-color: rgba(230, 32, 32, 0.5);
    box-shadow: 0 0 20px var(--red-glow); 
}

.search-input:focus ~ .search-icon {
    color: var(--red-accent);
}

.glow-text {
    color: var(--red-accent);
    font-weight: 500; /* Делаем акцентное слово чуть жирнее */
    text-shadow: 0 0 15px var(--red-glow), 0 0 30px rgba(230, 32, 32, 0.2);
    transition: all 0.3s ease;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--text-main);
}

.results-wrapper {
    width: 100%;
    max-width: 650px;
    margin: 0 auto;
    margin-top: -15vh;
}

.results-title {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-muted);
}

.result-box {
    background-color: var(--onyx-lighter);
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 35px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease;
}

/* Красивый красный глов при успешном поиске */
.result-box.success {
    border-color: rgba(230, 32, 32, 0.3);
    box-shadow: 0 0 25px var(--red-glow), 0 10px 30px rgba(0, 0, 0, 0.6);
}

.loading-state {
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-state i {
    font-size: 1.8rem;
    color: var(--red-accent);
}

/* Структура данных внутри карточки */
.data-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.data-icon {
    color: var(--red-accent);
    font-size: 1.3rem;
    margin-top: 2px;
    text-shadow: 0 0 10px var(--red-glow); /* Легкое свечение самих иконок */
}

.data-content {
    flex-grow: 1;
}

.data-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-value {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 300;
    line-height: 1.6;
    word-break: break-word; /* Чтобы длинные ссылки или тексты не ломали дизайн */
}