:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --accent: #E60012; /* Фирменный красный Honda */
    --text: #ffffff;
    --text-muted: #aaaaaa;
    --border: #333333;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    line-height: 1.6;
}

.container { max-width: 800px; margin: 0 auto; padding: 20px; }

header { text-align: center; margin-bottom: 20px; }
.brand { margin-bottom: 10px; display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.brand-honda { font-weight: 700; font-size: 1.5rem; color: #fff; letter-spacing: 2px; }
.brand-gathers { font-weight: 500; font-size: 1.4rem; color: var(--accent); font-style: italic; }
header h1 { font-size: 2.2rem; font-weight: 300; letter-spacing: 3px; margin-bottom: 5px; }
header p { color: var(--text-muted); font-size: 0.9rem; }

.privacy-notice {
    background: #1a2a1a; color: #8fbc8f; padding: 12px 15px;
    border-radius: 8px; font-size: 0.85rem; margin-bottom: 20px;
    border: 1px solid #2a3a2a; text-align: center;
}
.privacy-notice a { color: #4caf50; text-decoration: underline; }

.step {
    background: var(--card-bg); padding: 20px; border-radius: 8px;
    margin-bottom: 20px; border: 1px solid var(--border);
}
.step label { display: block; margin-bottom: 10px; font-weight: 600; }

.drop-zone {
    border: 2px dashed var(--border); padding: 40px; text-align: center;
    cursor: pointer; transition: 0.3s; color: var(--text-muted);
}
.drop-zone.dragover { border-color: var(--accent); background: rgba(230, 0, 18, 0.1); }

.controls { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; justify-content: space-between; }

/* Сегментированный переключатель */
.radio-group {
    display: inline-flex;
    background: #2a2a2a;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px;
    gap: 4px;
}
.radio-group label {
    padding: 6px 14px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
    display: block;
}
.radio-group input { display: none; }
.radio-group label.active {
    background: var(--accent);
    color: white;
}
#bgColorContainer, #cropHint { display: flex; align-items: center; gap: 10px; }
#cropHint { color: var(--text-muted); }

.preview-container { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
#previewWrapper {
    flex: 1; min-width: 300px; background: #000; border-radius: 8px;
    overflow: hidden; display: flex; justify-content: center; align-items: center;
    position: relative;
}
#canvas { max-width: 100%; height: auto; display: block; touch-action: none; }

.info-panel { width: 250px; background: #2a2a2a; padding: 15px; border-radius: 8px; font-size: 0.9rem; }
.info-panel h3 { margin-bottom: 10px; border-bottom: 1px solid var(--border); padding-bottom: 5px; }

.btn-primary {
    width: 100%; padding: 15px; background: var(--accent); color: white;
    border: none; border-radius: 4px; font-size: 1.1rem; font-weight: bold;
    cursor: pointer; transition: 0.3s;
}
.btn-primary:hover { background: #ff1a26; }

.btn-secondary {
    width: 100%; padding: 12px; background: #2a2a2a; color: white;
    border: 1px solid var(--border); border-radius: 4px; font-size: 1rem; font-weight: bold;
    cursor: pointer; transition: 0.3s;
}
.btn-secondary:hover { background: #3a3a3a; border-color: var(--accent); }

.checklist {
    margin-bottom: 20px; color: #4caf50; font-family: monospace; font-size: 1.1rem;
    background: #1a2a1a; padding: 15px; border-radius: 8px; border: 1px solid #2a3a2a;
}
#zipPreview {
    font-family: monospace; background: #000; padding: 15px; border-radius: 4px;
    margin-bottom: 20px; color: #0f0; white-space: pre-wrap;
}

.warning {
    margin-top: 30px; padding: 15px; background: #332b00; border: 1px solid #665200;
    color: #ffdd66; border-radius: 8px; font-size: 0.9rem;
}

/* ИНСТРУКЦИИ */
.instructions-block {
    margin-top: 40px; background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 8px; padding: 25px;
}
.instructions-block h2 { text-align: center; margin-bottom: 15px; }
.instructions-block h3 { margin-top: 20px; margin-bottom: 10px; color: var(--accent); }
.instructions-block a { color: #6ec6ff; }
.instructions-block ol { padding-left: 20px; margin-bottom: 15px; }
.instructions-block li { margin-bottom: 15px; }

.media-selector { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.media-btn {
    padding: 10px 20px; margin-right: 10px; background: #2a2a2a; color: var(--text-muted);
    border: 1px solid var(--border); border-radius: 4px; cursor: pointer; font-weight: bold;
}
.media-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

.compat-notice {
    background: #1a2a1a; color: #8fbc8f; padding: 15px;
    border-radius: 8px; margin-bottom: 20px;
    border: 1px solid #2a3a2a; font-size: 0.9rem;
}

.media-info { margin-bottom: 20px; }
.model-list {
    background: #181818; padding: 15px; border-radius: 4px; font-size: 0.9rem;
}
.model-list h4 { margin-bottom: 10px; color: var(--text); }
.model-list ul { padding-left: 20px; list-style-type: none; }
.model-list li { margin-bottom: 12px; color: var(--text-muted); line-height: 1.5; }
.model-list li strong { color: var(--text); margin-right: 5px; }

.note {
    margin-top: 20px; padding: 15px; background: #1a2a2a; border-left: 4px solid #00bcd4;
    border-radius: 4px; font-size: 0.9rem; color: #b2ebf2;
}

/* Картинки в инструкции */
.instr-img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-top: 10px;
    display: block;
}

/* CREDITS */
.credits {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.credits h3 { margin-bottom: 10px; color: var(--text); }
.credits p { font-size: 0.9rem; margin-bottom: 10px; }
.credits ul { padding-left: 20px; list-style: none; }
.credits li { margin-bottom: 8px; font-size: 0.9rem; color: var(--text-muted); }
.credits a { color: #6ec6ff; text-decoration: none; }
.credits a:hover { text-decoration: underline; }

footer {
    margin-top: 40px; text-align: center; font-size: 0.85rem; color: #666;
    padding-top: 20px; border-top: 1px solid #2a2a2a;
}
footer a { color: #888; text-decoration: none; }
footer a:hover { color: var(--accent); }

.hidden { display: none !important; }

@media (max-width: 600px) {
    .preview-container { flex-direction: column; }
    .info-panel { width: 100%; }
}