* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Source Code Pro', monospace;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

:root {
    --bg-main: #141518;
    --card-bg: #1e2026;
    --card-border: #2c2f38;
    --header-bg: rgba(20, 21, 24, 0.85);
    
    --text-main: #e6e8ee;
    --text-muted: #8b90a0;
    
    --primary-red: #8f2d38;
    --primary-red-hover: #a63643;
    --accent-red: #f85149;
    
    --btn-dark: #272932;
    --btn-dark-border: #383c48;
    --btn-dark-hover: #323541;
    
    --input-bg: #17181c;
    --input-border: #2d303b;
    
    --priority-low: #3fb950;
    --priority-med: #d29922;
    --priority-high: #f85149;
    --priority-crit: #da3633;
}

body.light-theme {
    --bg-main: #f4f5f8;
    --card-bg: #ffffff;
    --card-border: #d0d7de;
    --header-bg: rgba(244, 245, 248, 0.9);
    
    --text-main: #1f2328;
    --text-muted: #656d76;
    
    --primary-red: #a83242;
    --primary-red-hover: #c0394b;
    --accent-red: #cf222e;
    
    --btn-dark: #eaeef2;
    --btn-dark-border: #d0d7de;
    --btn-dark-hover: #d0d7de;
    
    --input-bg: #f6f8fa;
    --input-border: #d0d7de;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Канвас частичек на заднем плане */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

.app-container {
    position: relative;
    z-index: 1;
}

/* Header */
header {
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo i {
    color: var(--accent-red);
}

.adsw-logo .adsw {
    color: var(--accent-red);
    font-weight: 700;
}

.adsw-logo .studios {
    color: var(--text-main);
    font-weight: 500;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.2rem;
    align-items: center;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 8px;
}

nav a:hover, nav a.active {
    color: var(--text-main);
    background: var(--btn-dark);
}

.controls {
    display: flex;
    gap: 10px;
}

.theme-switcher, .lang-switcher {
    display: flex;
    background: var(--btn-dark);
    border: 1px solid var(--btn-dark-border);
    border-radius: 8px;
    overflow: hidden;
}

.theme-btn, .lang-btn {
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn.active, .lang-btn.active {
    background: var(--primary-red);
    color: #ffffff;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 1.5rem 2rem;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.hero p {
    font-size: 1rem;
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 1.5rem auto;
    padding: 0 20px;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 2.5rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    text-align: left;
}

.feature-card i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--accent-red);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Card Form */
.card {
    background: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.card-header {
    padding: 18px 25px;
    border-bottom: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.015);
}

.card-header h2 {
    font-size: 1.3rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header h2 i {
    color: var(--accent-red);
}

.card-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Priority Selector */
.priority-selector {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.priority-option {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    background: var(--btn-dark);
    border: 1px solid var(--btn-dark-border);
    cursor: pointer;
    font-size: 0.85rem;
}

.priority-option i {
    font-size: 1.2rem;
    margin-bottom: 6px;
    display: block;
}

.priority-option.selected {
    border-color: var(--accent-red);
    background: rgba(248, 81, 73, 0.1);
}

.priority-option.low i { color: var(--priority-low); }
.priority-option.medium i { color: var(--priority-med); }
.priority-option.high i { color: var(--priority-high); }
.priority-option.critical i { color: var(--priority-crit); }

/* Buttons */
.btn {
    border: none;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: var(--primary-red);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-red-hover);
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

/* Confirmation Box */
.confirmation {
    display: none;
    background: var(--input-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    border: 1px solid var(--priority-low);
}

.confirmation i {
    font-size: 3rem;
    color: var(--priority-low);
    margin-bottom: 15px;
}

.confirmation h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.confirmation p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--card-border);
    background: var(--card-bg);
}

footer p {
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
    }
    .priority-selector {
        flex-direction: column;
    }
    .hero h1 {
        font-size: 1.75rem;
    }
}