/* Ретро стили для SCR Script Editor */

:root {
    --primary-color: #ffffff;
    --secondary-color: #f57d14;
    --accent-color: #FFBF00;
    --character-color: #dd40b3;
    --dialogue-color: #8888FF;
    --description-color: #ffffff;
    --bg-color: #000000;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-color: #ffffff;
    --text-secondary: #ffffff;
    --border-color: #333333;
    --glow-color: rgba(255, 255, 255, 0.5);
    --warning-color: #dd3638;
    --editor-bg: #0d1117;
    --editor-border: #30363d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    transform: none !important;
    will-change: auto !important;
    backface-visibility: visible !important;
}

/* Общие стили для заголовков */
h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    font-family: 'Courier New', monospace;
}

/* Исключения для кнопок и интерактивных элементов */
.btn,
.nav-link,
.language-select,
.tag-example,
.sync-status,
.stats-preview,
.format-icon,
.feature-card,
.feature-card h3,
.feature-icon {
    transition-duration: 0.3s !important;
    animation-duration: initial !important;
}

html {
    scroll-behavior: auto !important;
}

*::before,
*::after {
    display: none !important;
}

/* Исключения для элементов статистики */
.stat-progress::before,
.stat-progress::after {
    display: block !important;
}

body {
    font-family: 'Courier New', monospace;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: static;
}

/* Эффект сканирующих линий */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent 0%,
        rgba(0, 0, 0, 0.05) 50%,
        transparent 100%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 1;
    display: none;
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 4px; }
}

/* Эффект мерцания */
.flicker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.01);
    pointer-events: none;
    z-index: 2;
    display: none;
}

@keyframes flicker {
    0% { opacity: 1; }
    100% { opacity: 0.98; }
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: static;
}

/* Заголовок */
.header {
    padding: 30px 40px;
    border: 1px solid white;
    background: black;
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto 1fr;
    gap: 10px;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 40px;
    padding-bottom: 20px;
    padding-top: 10px;
    position: relative;
    min-height: 120px;
}

.language-switcher {
    position: absolute;
    left: 7px;
    top: 7px;
    z-index: 10;
}

.logo-container {
    grid-column: 2;
    grid-row: 1 / 3;
    justify-self: center;
    align-self: center;
}

.created-by {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 5px 10px;
    font-size: 20px; /* Опционально уменьшите размер */
    text-align: right;
    white-space: nowrap; /* Запрет переноса текста */
}

.logo {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

.logo:hover {
    text-decoration: none;
}

.logo-ascii {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: normal;
    color: white;
    margin: 0;
    line-height: 1.1;
    white-space: pre;
}

.logo-text {
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    font-weight: normal;
    color: white;
    display: none; /* скрываем старый логотип */
}

.logo-subtitle {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-top: -5px;
    letter-spacing: 3px;
    display: none; /* скрываем подзаголовок */
}

@keyframes glow {
    from { text-shadow: 0 0 10px var(--glow-color), 0 0 20px var(--glow-color), 0 0 30px var(--glow-color); }
    to { text-shadow: 0 0 15px var(--glow-color), 0 0 25px var(--glow-color), 0 0 35px var(--glow-color); }
}

/* Навигация убрана из header, теперь в footer */

/* Переключатель языка */
.language-button {
    background: black;
    color: white;
    border: 1px solid white;
    padding: 7px 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-button:hover {
    background: white;
    color: black;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: black;
    border: 1px solid white;
    border-top: none;
    min-width: 110px;
    z-index: 1000;
    display: none;
    margin-top: 2px;
}

.language-dropdown.show {
    display: block;
}

.language-form {
    display: block;
    margin: 0;
}

.language-option {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: black;
    color: white;
    border: none;
    border-bottom: 1px solid white;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: white;
    color: black;
}

.language-option.active {
    background: white;
    color: black;
}

.language-select {
    display: none;
}

/* Кнопка скачивания */
.download-button {
    background: black;
    color: #dd3638 !important;
    border: 1px solid #dd3638 !important;
    padding: 12px 30px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
}

.download-button:hover {
    background: #dd3638;
    color: #dd3638 !important;
}

/* Основной контент */
.main-content {
    flex: 1;
    padding: 40px 20px;
    position: static;
}

/* Героическая секция */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 120px;
    min-height: 500px;
}

.hero-title {
    font-family: 'Courier New', monospace;
    font-size: 3.5rem;
    font-weight: normal;
    color: white;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 15px 15px;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    border: 1px solid white;
    background: black;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: none;
    border-radius: 0;
    width: auto;
    min-width: 60px;
    text-align: center;
}

.btn-primary {
    color: white;
    border-color: white;
    background: black;
}

.btn-primary:hover {
    background: white;
    color: black;
}

.btn-secondary {
    color: white;
    border-color: white;
    background: black;
}

.btn-secondary:hover {
    background: white;
    color: black;
}

/* Редактор сценариев */
.script-editor {
    max-width: 500px;
    margin: 0 auto;
    font-family: 'Courier New', monospace;
}

.editor-screen {
    background: black;
    border: 1px solid white;
    border-radius: 0;
    overflow: hidden;
}

.editor-header {
    background: black;
    padding: 10px 15px;
    border-bottom: 1px solid white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.editor-tabs {
    display: flex;
    gap: 10px;
}

.tab {
    padding: 5px 12px;
    background: black;
    border: 1px solid white;
    color: white;
    font-size: 0.8rem;
    border-radius: 0;
    cursor: pointer;
}

.tab.active {
    background: black;
    color: white;
    border-color: white;
}

.editor-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.status-dot.online {
    background: #1fa91f;
}

.status-text {
    color: white;
}

.editor-content {
    padding: 15px;
    min-height: 300px;
    height: 300px;
    overflow: hidden;
}

.editor-terminal {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    /* цвет будет установлен JavaScript */
}

.terminal-line {
    margin-bottom: 8px;
    min-height: 1.2em;
    display: block;
    /* цвет будет установлен JavaScript */
}

.editor-text {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid white;
}

.line-tag {
    margin-bottom: 5px;
    padding: 2px 0;
    font-family: 'Courier New', monospace;
    min-height: 1.2em;
    display: block;
    /* цвет будет установлен JavaScript */
}

.line-tag.character {
    font-weight: normal;
    text-transform: uppercase;
    margin-left: 160px;
    margin-bottom: 0px;
    color: white;
}

.line-tag.dialogue {
    margin-left: 90px;
    color: white;
}

.line-tag.description {
    margin-left: 60px;
    color: white;
}

.cursor-line {
    display: flex;
    align-items: center;
    margin-top: 10px;
    min-height: 1.2em;
}

.line-number {
    margin-right: 10px;
    width: 20px;
    color: white;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    /* цвет фона будет установлен JavaScript */
}

/* Функции */
.features-section {
    margin-bottom: 120px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: black;
    border: 1px solid white;
    padding: 30px 25px;
    text-align: center;
    position: static;
    overflow: visible;
    border-radius: 0;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    transform: none;
}

.feature-card:hover {
    border-color: white;
    background: black;
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    transform: none;
}

.feature-card:hover .feature-icon {
    transform: none;
}

.feature-card h3 {
    color: white;
    font-family: 'Courier New', monospace;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    transform: none;
}

.feature-card:hover h3 {
    color: white;
}

.feature-card p {
    color: white;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Теги в карточках */
.feature-tags {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 15px;
}

.tag-example {
    padding: 8px 12px;
    border-radius: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: normal;
    border: 1px solid white;
    background: black;
    color: white;
    transition: all 0.3s ease;
    transform: none;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
}

.tag-example:hover,
.feature-card:hover .tag-example {
    border-color: white;
    color: black;
    background: white;
}

/* Убеждаемся, что все теги имеют одинаковую высоту */
.tag-example.character,
.tag-example.dialogue,
.tag-example.description,
.tag-example.header,
.tag-example.remark,
.tag-example.action {
    height: 32px !important;
    padding: 8px 12px !important;
    font-size: 0.8rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-weight: normal !important;
    margin: 0 !important;
}

/* Индикатор синхронизации */
.sync-indicator {
    margin-top: auto;
    padding-top: 15px;
}

.sync-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: black;
    border: 1px solid white;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: normal;
    color: white;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    transform: none;
}

.feature-card:hover .sync-status {
    border-color: white;
    color: black;
    background: white;
}

.sync-dot {
    width: 8px;
    height: 8px;
    background: white; /* По умолчанию белый, JavaScript установит синий */
    border-radius: 50%;
}

/* Предварительный просмотр статистики */
.stats-preview {
    margin-top: auto;
    padding: 15px;
    background: black;
    border-radius: 0;
    border: 1px solid white;
    transition: all 0.3s ease;
    transform: none;
}

.feature-card:hover .stats-preview {
    border-color: white;
}

/* Иконки форматов */
.format-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
}

.stat-bar {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.stat-label {
    font-size: 0.75rem;
    width: 100px;
    text-align: left;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-progress {
    height: 20px;
    background: transparent;
    border-radius: 0;
    position: relative;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 20px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
    --stat-color: white; /* CSS переменная для цвета */
}

.stat-progress::before {
    content: '░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░';
    position: absolute;
    left: 0;
    top: 0;
    color: white;
    width: 100%;
    white-space: nowrap;
    z-index: 1;
    font-size: 14px;
    line-height: 20px;
}

.stat-progress::after {
    content: '████████████████████████████████████████████████';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--stat-color);
    width: inherit;
    overflow: hidden;
    white-space: nowrap;
    z-index: 2;
    font-size: 14px;
    line-height: 20px;
}

/* При наведении на карточку статистики полоски становятся белыми */
.feature-card:hover .stat-progress::after {
    color: white;
}

.format-icon {
    padding: 8px 16px;
    background: black;
    border: 1px solid white;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: normal;
    color: white;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    transform: none;
}

.format-icon:hover,
.feature-card:hover .format-icon {
    border-color: white;
    color: black;
    background: white;
}

/* Поиск по файлу */
.search-preview {
    margin-top: 15px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: black;
    border: 1px solid white;
    margin-bottom: 10px;
}

.search-icon {
    font-size: 1rem;
    color: var(--secondary-color);
}

.search-text {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: white;
}

.search-results {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--secondary-color); /* По умолчанию оранжевый, JavaScript установит случайный */
    text-align: center;
}

/* Планы развития */
.plans-list {
    margin-top: 15px;
}

.plan-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: black;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.plan-status {
    font-size: 1rem;
    min-width: 20px;
}

.plan-text {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: white;
}

.feature-card:hover .search-bar,
.feature-card:hover .plan-item {
    border-color: white;
}

.feature-card:hover .search-bar {
    background: white;
    color: black;
}

.feature-card:hover .search-icon,
.feature-card:hover .search-text {
    color: black;
}

.feature-card:hover .plan-item {
    background: white;
    border-color: white;
}

.feature-card:hover .plan-status,
.feature-card:hover .plan-text {
    color: black;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Секции */
.features-section,
.about-preview {
    margin-bottom: 120px;
}

.section-title {
    font-family: 'Courier New', monospace;
    font-weight: normal;
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 50px;
}

/* О программе */
.about-overview {
    margin-bottom: 80px;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-story {
    background: transparent;
    border: none;
    padding: 0;
}

.about-story h2 {
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-story p {
    color: white;
    font-family: 'Courier New', monospace;
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.about-image {
    text-align: center;
}

.about-img {
    max-width: 100%;
    height: auto;
    border: 1px solid white;
    background: black;
}

/* Детальные функции */
.features-detailed {
    margin-bottom: 80px;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
    padding: 40px 0;
    border-bottom: 1px solid white;
}

.feature-block:last-child {
    border-bottom: none;
}

.feature-block.reverse {
    grid-template-columns: 1fr 1fr;
}

.feature-block.reverse .feature-content {
    order: 2;
}

.feature-block.reverse .feature-image {
    order: 1;
}

.feature-content h3 {
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 1.8rem;
    font-weight: normal;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-content p {
    color: white;
    font-family: 'Courier New', monospace;
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.feature-list li::before {
    content: "▶";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.feature-image {
    text-align: center;
}

.feature-img {
    max-width: 100%;
    height: auto;
    border: 1px solid white;
    background: black;
}

/* Технические характеристики */
.technical-specs {
    margin-bottom: 80px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.spec-item {
    background: black;
    border: 1px solid white;
    padding: 30px 25px;
}

.spec-item h4 {
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: normal;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-item ul {
    list-style: none;
    padding: 0;
}

.spec-item li {
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.spec-item li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* О разработчике */
.about-developer {
    margin-bottom: 80px;
}

.developer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.developer-story p {
    color: white;
    font-family: 'Courier New', monospace;
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.contact-info {
    background: black;
    border: 1px solid white;
    padding: 25px;
}

.contact-info h4 {
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info p {
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    margin-bottom: 10px;
}

.contact-info a {
    color: var(--secondary-color);
    text-decoration: none;
}

.contact-info a:hover {
    color: white;
    text-decoration: underline;
}

/* CTA секция */
.download-cta {
    text-align: center;
    padding: 60px 40px;
    background: black;
    border: 1px solid white;
    margin-bottom: 40px;
}

.cta-content h2 {
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 2.5rem;
    font-weight: normal;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-content p {
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Рандомные цвета для указанных элементов - теперь управляются JavaScript */
.page-subtitle {
    font-size: 1.3rem;
    letter-spacing: 2px;
}

.member-role {
    font-weight: normal;
    margin-bottom: 10px;
}

/* Рандомные цвета для иконок принципов - теперь управляются JavaScript */
.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.retro-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border: 1px solid white;
    background: black;
}

.stat-number {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 2.5rem;
    font-weight: normal;
    /* цвет будет установлен JavaScript */
}

.stat-label {
    color: white;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Страницы */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-family: 'Courier New', monospace;
    font-weight: normal;
    font-size: 3rem;
    color: white;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

/* Команда */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.team-member {
    background: black;
    border: 1px solid white;
    padding: 30px 20px;
    text-align: center;
}

.member-avatar {
    font-size: 4rem;
    margin-bottom: 20px;
}

.member-role {
    color: var(--secondary-color);
    font-weight: normal;
    margin-bottom: 10px;
}

/* Ценности */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-item {
    background: black;
    border: 1px solid white;
    padding: 30px 20px;
    text-align: center;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.value-item h3 {
    color: white;
    font-family: 'Courier New', monospace;
    font-weight: normal;
    margin-bottom: 15px;
}

/* Политика конфиденциальности */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.policy-content h2 {
    color: white;
    font-family: 'Courier New', monospace;
    font-weight: normal;
    margin: 30px 0 15px 0;
    font-size: 1.5rem;
}

.policy-list {
    margin: 20px 0;
    padding-left: 30px;
}

.policy-list li {
    margin-bottom: 10px;
    color: white;
}

.contact-info {
    background: black;
    border: 1px solid white;
    padding: 20px;
    margin: 20px 0;
}

.policy-date {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid white;
}

/* Подвал */
.footer {
    background: black;
    border: 1px solid white;
    padding: 30px 20px;
    margin-top: auto;
    position: static;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
}

.footer-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.footer-logo-ascii {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: normal;
    color: white;
    margin: 0;
    margin-right: 100px;
    line-height: 1.1;
    white-space: pre;
}

.footer-nav {
    display: flex;
    gap: 20px;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 10px;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.footer-link:hover {
    color: black;
    background: white;
    border-color: white;
}

.footer-logo .logo-text {
    font-size: 2rem;
    display: none; /* скрываем старый логотип */
}

.footer-logo-ascii {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: normal;
    color: white;
    margin: 0;
    margin-left: -27px;
    line-height: 1.1;
    white-space: pre;
}

.footer-text {
    text-align: right;
    color: white;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .header {
        padding: 20px;
        padding-bottom: 60px; /* Больше места снизу */
        flex-direction: column;
        align-items: center;
    }
    
    .language-switcher {
        position: static;
        margin-bottom: 15px;
        align-self: flex-start; /* Выравниваем по левому краю */
    }
    
    .created-by {
        position: absolute;
        right: 20px;
        bottom: 20px;
        font-size: 10px;
        border: 1px solid white; /* Полная обводка на мобильных */
        padding: 3px 8px;
    }
    
    .logo-container {
        grid-column: 1;
        grid-row: 2;
        justify-self: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
    }
    
    .footer-text {
        text-align: center;
    }
}

/* Галерея изображений редактора */
.editor-gallery-section {
    margin-top: 40px;
    width: 100%;
    padding: 30px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
}

.editor-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    padding: 0 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.image-item {
    cursor: pointer;
    transition: all 0.4s ease;
    background: black;
    border: 2px solid white;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.image-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.image-item:hover::before {
    opacity: 1;
}

.image-item:hover {
    transform: translateY(-8px);
    border-color: var(--hover-color, #f57d14);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 0 0 1px var(--hover-color-rgba, rgba(245, 125, 20, 0.3));
}

.image-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: brightness(0.9);
}

.image-item:hover img {
    filter: brightness(1.1) contrast(1.05);
}

/* Добавляем индикатор увеличения */
.image-item::after {
    content: '🔍';
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 10px;
    border-radius: 0;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    border: 1px solid white;
    font-family: 'Courier New', monospace;
}

.image-item:hover::after {
    opacity: 1;
}

/* Модальное окно для увеличенного изображения */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 95%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: normal;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ccc;
}

#modalImage {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
}

.modal-caption {
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    text-align: center;
    margin-top: 20px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .editor-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
    
    .image-item:hover {
        transform: translateY(-4px);
    }
    
    .image-item::after {
        top: 10px;
        right: 10px;
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .modal-caption {
        font-size: 1rem;
        padding: 8px 15px;
    }
    
    .modal-close {
        font-size: 30px;
        top: 15px;
        right: 25px;
    }
}

@media (max-width: 480px) {
    .editor-images-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
    
    .image-item:hover {
        transform: translateY(-2px);
    }
    
    .editor-gallery-section {
        padding: 20px 0;
    }
    
    .image-item img {
        max-height: 200px;
    }
}

/* Страница загрузки */
.download-page {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
}

.download-page h1 {
    font-family: 'Courier New', monospace;
    font-size: 3rem;
    font-weight: normal;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.download-page p {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: white;
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
}

.platforms-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1200px;
    width: 100%;
    margin-bottom: 40px;
}

.platform-card {
    background: black;
    border: 1px solid white;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 180px;
    flex: 0 0 auto;
}

.platform-card.available {
    cursor: pointer;
}

.platform-card.available:hover {
    border-color: #1fa91f;
    background: rgba(31, 169, 31, 0.1);
}

.platform-card.disabled {
    border-color: #333;
    cursor: not-allowed;
}

.platform-card.disabled:hover {
    border-color: #dd3638;
    background: rgba(221, 54, 56, 0.1);
}

.platform-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
    font-family: 'Courier New', monospace;
}

.platform-card.available .platform-icon {
    color: #1fa91f;
}

.platform-card.disabled .platform-icon {
    color: #666;
}

.platform-name {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: normal;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.platform-card.available .platform-name {
    color: white;
}

.platform-card.disabled .platform-name {
    color: #666;
}

.platform-status {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.platform-card.available .platform-status {
    color: #1fa91f;
}

.platform-card.disabled .platform-status {
    color: #dd3638;
}

.platform-card.disabled::after {
    content: '⚠';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: #dd3638;
}

/* Адаптивность для страницы загрузки */
@media (max-width: 768px) {
    .download-page h1 {
        font-size: 2.5rem;
    }
    
    .platforms-grid {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .platform-card {
        min-width: 250px;
    }
    
    .platform-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .platform-name {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .platforms-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .platform-card {
        min-width: 280px;
        max-width: 300px;
    }
    
    .download-page h1 {
        font-size: 2rem;
    }
    
    .download-page p {
        font-size: 1rem;
    }
}

/* Кнопка скачивания */
.download-button {
    display: inline-block;
    padding: 15px 40px;
    background: black;
    color: white;
    border: 1px solid white;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: normal;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.download-button:hover {
    background: white;
    color: black;
    text-decoration: none;
}

/* Адаптивность для страницы About */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        order: -1;
    }
    
    .feature-block {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-block.reverse .feature-content {
        order: 1;
    }
    
    .feature-block.reverse .feature-image {
        order: 1;
    }
    
    .developer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .about-story h2 {
        font-size: 1.6rem;
    }
    
    .feature-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}