:root {
    --accent: #638bba; 
    --accent-hover: #4e739e;
    
    --bg-base: #f4f4f4;
    --bg-surface: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #535353;
    --border-color: #e0e0e0;
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --bg-base: #0f1115;
    --bg-surface: #171a21;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --border-color: #2a2e39;
    
    --accent: #a7c7dc; 
    --accent-hover: #c2dcf0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    transition: var(--transition);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

header {
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.2;
}

.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.theme-toggle-btn:hover {
    border-color: var(--accent);
    color: var(--text-main);
    background: rgba(99, 139, 186, 0.05); 
}

.theme-icon {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: var(--transition);
}

.theme-toggle-btn:hover .theme-icon {
    stroke: var(--accent-hover);
    transform: scale(1.1); 
}

.hero {
    position: relative;
    background-color: #030612;
    color: #ffffff;
    padding: clamp(50px, 10vw, 100px) 0;
    min-height: clamp(400px, 80vh, 600px);
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid #638bba; 
}

.radar-container {
    position: absolute;
    top: 50%;
    left: 65%;
    transform: translate(-50%, -50%);
    width: 4000px;
    height: 4000px;
    pointer-events: none;
    z-index: 1;
}

.radar-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background: none; 
}

.radar-grid svg {
    width: 100%;
    height: 100%;
    display: block;
}

.radar-silent-line {
    stroke: rgba(167, 199, 220, 0.5); 
    stroke-width: 0.5px;
    vector-effect: non-scaling-stroke;
}

.radar-grid-line {
    stroke: rgba(99, 139, 186, 0.4); 
    stroke-width: 0.5px;
    vector-effect: non-scaling-stroke;
}

.radar-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 40%, rgba(99, 139, 186, 0.1) 70%, rgba(167, 199, 220, 0.5) 100%);
    animation: radar-spin 4s linear infinite;
    -webkit-mask-image: radial-gradient(circle at center, black 15%, transparent 50%);
    mask-image: radial-gradient(circle at center, black 15%, transparent 50%);
}

@keyframes radar-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.radar-target {
    position: absolute;
    width: clamp(6px, 1.2vw, 10px);
    height: clamp(6px, 1.2vw, 10px);
    background-color: #a7c7dc;
    border-radius: 50%;
    box-shadow: 0 0 15px 4px rgba(167, 199, 220, 0.9);
    opacity: 0;
    animation: blip-fade 4s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes blip-fade {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    5% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    30% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    60% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
}

.radar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    background: #000000;
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: clamp(40px, 8vw, 80px);
    max-width: 800px;
    text-transform: uppercase;
}

.hero-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    gap: 20px;
}

.hero-bottom-row p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: #b0b5cc;
    max-width: 500px;
}

.hero-btn {
    background-color: #638bba; 
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.hero-btn:hover {
    background-color: #4e739e;
    box-shadow: 0 0 20px rgba(99, 139, 186, 0.5);
}

/* --- ОСТАЛЬНЫЕ БЛОКИ --- */
.slider-section { padding: clamp(40px, 8vw, 80px) 0; }
.slider-container { position: relative; overflow: hidden; border-radius: 8px; background: var(--bg-surface); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.slides { display: flex; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.slide-wrapper { min-width: 100%; height: clamp(250px, 50vw, 500px); }
.slide-img { width: 100%; height: 100%; object-fit: cover; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background: var(--bg-surface); color: var(--text-main); border: 1px solid var(--border-color); width: clamp(36px, 8vw, 44px); height: clamp(36px, 8vw, 44px); cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.slider-btn:hover { background: var(--accent); color: var(--bg-surface); border-color: var(--accent); }
.prev-btn { left: clamp(10px, 3vw, 20px); }
.next-btn { right: clamp(10px, 3vw, 20px); }

.requisites { padding: clamp(40px, 8vw, 60px) 0; background-color: var(--bg-surface); border-top: 1px solid var(--border-color); }
.req-content h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); margin-bottom: 30px; }
.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.req-item { padding-bottom: 10px; border-bottom: 1px solid var(--border-color); word-break: break-word; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.req-item-content { flex: 1; }
.req-buttons { display: flex; gap: 8px; flex-shrink: 0; }
.req-label { font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 4px; }
.req-value { font-weight: 500; }
.copy-btn, .action-btn { background: transparent; border: 1px solid var(--border-color); color: var(--text-muted); padding: 6px; cursor: pointer; font-size: 0.75rem; font-weight: 500; border-radius: 4px; transition: var(--transition); white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; }
.copy-btn svg, .action-btn svg { width: 16px; height: 16px; stroke: currentColor; }
.copy-btn:hover, .action-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.copied { color: #4caf50; border-color: #4caf50; }

footer { background-color: var(--bg-base); border-top: 1px solid var(--border-color); padding: 20px 0; text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-top: auto; }

@media (max-width: 768px) {
    .hero-bottom-row { flex-direction: column; align-items: flex-start; gap: 20px; }
    .hero-btn { width: 100%; }
    .radar-container { left: 50%; } 
}

@media (max-width: 480px) {
    .theme-toggle-btn { padding: 8px; }
    #themeText { display: none; }
}
