:root {
--primary: #4361ee;
--primary-dark: #3a56d4;
--secondary: #7209b7;
--success: #4cc9f0;
--light: #f8f9fa;
--dark: #212529;
--gray: #6c757d;
--light-gray: #e9ecef;
--dark-gray: #495057;
--border-radius: 12px;
--box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
--box-shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.25);
--transition: all 0.3s ease;
--bg: #f5f7fa;
--card-bg: #ffffff;
--text: #212529;
--text-secondary: #6c757d;
}

.dark-theme {
--bg: #121826;
--card-bg: #1e293b;
--text: #e2e8f0;
--text-secondary: #94a3b8;
--light-gray: #334155;
--dark-gray: #cbd5e1;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.6;
min-height: 100vh;
padding: 20px;
transition: var(--transition);
}
/* Звездный фон */
body {
background: var(--bg);
position: relative;
overflow-x: hidden;
background-image:
radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0px, transparent 1px),
radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0px, transparent 1px),
radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0px, transparent 1px),
radial-gradient(circle at 40% 50%, rgba(255, 255, 255, 0.1) 0px, transparent 1px),
radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.1) 0px, transparent 1px),
radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.1) 0px, transparent 1px),
radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0px, transparent 1px),
radial-gradient(circle at 80% 90%, rgba(255, 255, 255, 0.1) 0px, transparent 1px);
background-size: 1000px 1000px;
background-attachment: fixed;
}

/* Планета */
.planet {
position: absolute;
top: 50px;
right: 50px;
width: 250px;
height: 250px;
border-radius: 50%;
background: radial-gradient(circle at 30% 30%, #1e90ff, #0077be, #0066a3, #003b6f);
box-shadow: inset 0 0 50px #fff, 0 0 80px #4b9bff;
animation: rotate 50s linear infinite;
}

.planet::before {
content: '';
position: absolute;
top: 15%;
left: 20%;
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
}

.planet::after {
content: '';
position: absolute;
top: 60%;
left: 60%;
width: 30px;
height: 30px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.05);
}

@keyframes rotate {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}

/* Космические корабли */
.spaceship {
position: fixed;
width: 60px;
height: 30px;
background: linear-gradient(45deg, #4cc9f0, #4361ee);
border-radius: 50% 50% 0 0;
box-shadow: 0 0 15px rgba(76, 201, 240, 0.7);
z-index: -1;
animation: fly 25s linear infinite;
}

.spaceship::before {
content: '';
position: absolute;
top: 5px;
left: -10px;
width: 20px;
height: 20px;
border-radius: 50%;
background: #7209b7;
box-shadow: 0 0 10px rgba(114, 9, 183, 0.8);
}

.spaceship::after {
content: '';
position: absolute;
bottom: -15px;
left: 20px;
width: 20px;
height: 10px;
background: #f72585;
border-radius: 0 0 50% 50%;
box-shadow: 0 0 10px rgba(247, 37, 133, 0.8);
}

.spaceship-1 {
top: 20%;
left: -100px;
animation-duration: 30s;
}

.spaceship-2 {
top: 70%;
right: -100px;
animation-direction: reverse;
animation-duration: 40s;
}

@keyframes fly {
0% { transform: translateX(0) translateY(0); }
25% { transform: translateX(100px) translateY(50px); }
50% { transform: translateX(200px) translateY(-30px); }
75% { transform: translateX(300px) translateY(40px); }
100% { transform: translateX(calc(100vw + 200px)) translateY(-20px); }
}

/* Космонавты */
.astronaut {
position: fixed;
width: 50px;
height: 70px;
z-index: -1;
animation: float 35s linear infinite;
}

.astronaut-body {
position: absolute;
width: 40px;
height: 50px;
background: white;
border-radius: 50% 50% 40% 40%;
top: 10px;
left: 5px;
}

.astronaut-helmet {
position: absolute;
width: 30px;
height: 30px;
background: rgba(255, 255, 255, 0.9);
border-radius: 50%;
top: 0;
left: 10px;
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.astronaut-helmet::before {
content: '';
position: absolute;
width: 15px;
height: 5px;
background: #4cc9f0;
top: 12px;
left: 7px;
border-radius: 10px;
}

.astronaut-1 {
top: 40%;
right: -100px;
animation-duration: 50s;
}

.astronaut-2 {
top: 60%;
left: -100px;
animation-direction: reverse;
animation-duration: 45s;
}

@keyframes float {
0% { transform: translateX(0) translateY(0); }
25% { transform: translateX(150px) translateY(40px); }
50% { transform: translateX(300px) translateY(-20px); }
75% { transform: translateX(450px) translateY(30px); }
100% { transform: translateX(calc(100vw + 200px)) translateY(-10px); }
}

/* Гагарин в логотипе */
.gagarin-container {
position: absolute;
top: -30px;
right: 20px;
width: 120px;
height: 120px;
border-radius: 50%;
background: linear-gradient(45deg, #4361ee, #7209b7);
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 0 30px rgba(67, 97, 238, 0.6);
z-index: 10;
}

.gagarin-portrait {
width: 100px;
height: 100px;
border-radius: 50%;
background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Yuri_Gagarin_%28cropped%29.jpg/220px-Yuri_Gagarin_%28cropped%29.jpg') center/cover;
border: 3px solid white;
}

/* Скрытие элементов на мобильных */
@media (max-width: 768px) {
.planet, .spaceship, .astronaut {
display: none;
}
}
.container-main {
max-width: 1200px;
margin: 0 auto;
}

.header-main {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
margin-bottom: 30px;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-container {
display: flex;
align-items: center;
gap: 15px;
}

.logo-icon {
font-size: 2.5rem;
color: var(--primary);
background: linear-gradient(45deg, var(--primary), var(--secondary));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}

.logo-title {
font-size: 1.8rem;
font-weight: 800;
color: var(--text);
}

.logo-subtitle {
font-size: 1rem;
color: var(--text-secondary);
font-weight: 500;
text-align: center; /* Центрирование текста */
}


.theme-switch-wrapper {
display: flex;
justify-content: flex-end; /* выравнивание вправо */
align-items: center;
gap: 10px;
margin-bottom: 22px; /* сдвиг вверх */
}



.theme-switch {
display: inline-block;
height: 28px;
position: relative;
width: 50px;
}

.theme-switch input {
display: none;
}

.slider {
background-color: var(--light-gray);
bottom: 0;
cursor: pointer;
left: 0;
position: absolute;
right: 0;
top: 0;
transition: var(--transition);
border-radius: 34px;
}

.slider:before {
background-color: var(--card-bg);
bottom: 3px;
content: "";
height: 22px;
left: 4px;
position: absolute;
transition: var(--transition);
width: 22px;
border-radius: 50%;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
background-color: var(--primary);
}

input:checked + .slider:before {
transform: translateX(20px);
}

.tabs-container {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 25px;
overflow-x: auto;
padding-bottom: 10px;
}

.tab-btn {
padding: 12px 20px;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
border: none;
font-size: 0.95rem;
display: flex;
align-items: center;
gap: 8px;
background-color: var(--light-gray);
color: var(--text);
white-space: nowrap;
}

.tab-btn.active, .tab-btn:hover {
background: linear-gradient(to right, var(--primary), var(--secondary));
color: white;
}

.tab-content {
display: none;
}

.tab-content.active {
display: block;
}

.generator-section {
display: flex;
gap: 30px;
margin-bottom: 40px;
}

.control-panel {
flex: 1;
background: var(--card-bg);
border-radius: var(--border-radius);
padding: 25px;
box-shadow: var(--box-shadow);
transition: var(--transition);
}

.dark-theme .control-panel {
box-shadow: var(--box-shadow-dark);
}

.result-panel {
flex: 1;
background: var(--card-bg);
border-radius: var(--border-radius);
padding: 25px;
box-shadow: var(--box-shadow);
display: flex;
flex-direction: column;
transition: var(--transition);
}

.dark-theme .result-panel {
box-shadow: var(--box-shadow-dark);
}

.section-title {
font-size: 1rem;
font-weight: 600;
margin-bottom: 20px;
color: var(--primary);
display: flex;
align-items: center;
gap: 10px;
}

.section-title i {
font-size: 1.1rem;
}

.form-group {
margin-bottom: 20px;
}

.form-label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: var(--text);
}

.form-input {
width: 100%;
padding: 12px 15px;
background: var(--bg);
border: 1px solid var(--light-gray);
border-radius: 8px;
font-size: 1rem;
transition: var(--transition);
color: var(--text);
}

.form-input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.form-textarea {
width: 100%;
height: 150px;
padding: 12px 15px;
background: var(--bg);
border: 1px solid var(--light-gray);
border-radius: 8px;
font-size: 1rem;
transition: var(--transition);
color: var(--text);
resize: vertical;
}

.form-textarea:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.range-container {
display: flex;
gap: 15px;
align-items: center;
}

.range-input {
flex: 1;
}

.checkbox-group {
display: flex;
align-items: center;
gap: 10px;
margin-top: 15px;
}

.checkbox-input {
width: 20px;
height: 20px;
accent-color: var(--primary);
}

.checkbox-label {
font-size: 0.95rem;
color: var(--text);
}

.button-group {
display: flex;
gap: 15px;
margin-top: 25px;
}

.btn {
padding: 12px 25px;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
border: none;
font-size: 1rem;
display: flex;
align-items: center;
gap: 8px;
}

.btn-primary {
background: linear-gradient(to right, var(--primary), var(--secondary));
color: white;
flex: 1;
}

.btn-primary:hover {
background: linear-gradient(to right, var(--primary-dark), #6511a8);
transform: translateY(-2px);
box-shadow: 0 6px 15px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
background-color: var(--bg);
color: var(--text);
border: 1px solid var(--light-gray);
}

.btn-secondary:hover {
background-color: var(--light-gray);
}

.result-content {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
min-height: 200px;
background-color: var(--bg);
border-radius: 8px;
margin: 15px 0;
padding: 20px;
border: 1px dashed var(--light-gray);
text-align: center;
transition: var(--transition);
flex-direction: column;
overflow: auto;
}

.result-numbers {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary);
word-break: break-all;
line-height: 1.4;
}

.result-list {
font-size: 1.2rem;
font-weight: 600;
color: var(--primary);
text-align: left;
width: 100%;
line-height: 1.8;
}

.result-actions {
display: flex;
gap: 10px;
}

.action-btn {
flex: 1;
padding: 10px 15px;
border-radius: 8px;
background-color: var(--bg);
border: 1px solid var(--light-gray);
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
color: var(--text);
}

.action-btn:hover {
background-color: var(--light-gray);
}

.action-btn i {
font-size: 1.1rem;
}

.history-section {
background: var(--card-bg);
border-radius: var(--border-radius);
padding: 25px;
box-shadow: var(--box-shadow);
margin-bottom: 40px;
transition: var(--transition);
}

.dark-theme .history-section {
box-shadow: var(--box-shadow-dark);
}

.history-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 20px;
margin-top: 15px;
}

.history-item {
border: 1px solid var(--light-gray);
border-radius: 8px;
padding: 15px;
transition: var(--transition);
background: var(--bg);
}

.history-item:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.history-title {
font-weight: 600;
margin-bottom: 8px;
color: var(--primary);
}

.history-content {
font-size: 0.95rem;
color: var(--text-secondary);
}

.history-date {
font-size: 0.8rem;
color: var(--text-secondary);
margin-top: 8px;
}

.features-section {
margin-bottom: 40px;
}

.features-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 25px;
margin-top: 20px;
}

.feature-card {
background: var(--card-bg);
border-radius: var(--border-radius);
padding: 25px;
box-shadow: var(--box-shadow);
transition: var(--transition);
border: 2px solid transparent;
}

.dark-theme .feature-card {
box-shadow: var(--box-shadow-dark);
}

.feature-card:hover {
transform: translateY(-5px);
border-color: var(--primary);
}

.feature-icon {
font-size: 2.5rem;
margin-bottom: 15px;
background: linear-gradient(45deg, var(--primary), var(--secondary));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}

.feature-title {
font-size: 1.2rem;
font-weight: 700;
margin-bottom: 10px;
color: var(--text);
}

.feature-description {
color: var(--text-secondary);
font-size: 0.95rem;
}

.footer-main {
text-align: center;
padding: 30px 0;
color: var(--text-secondary);
font-size: 0.95rem;
border-top: 1px solid var(--light-gray);
}

.footer-links {
display: flex;
justify-content: center;
gap: 25px;
margin-top: 15px;
flex-wrap: wrap;
}

.footer-link {
color: var(--primary);
text-decoration: none;
transition: var(--transition);
}

.footer-link:hover {
color: var(--secondary);
text-decoration: underline;
}

.telegram-section {
background: linear-gradient(135deg, #0088cc 0%, #34b7f1 100%);
border-radius: var(--border-radius);
padding: 25px;
box-shadow: var(--box-shadow);
margin-bottom: 40px;
color: white;
position: relative;
overflow: hidden;
}

.telegram-content {
position: relative;
z-index: 2;
}

.telegram-pattern {
position: absolute;
top: 0;
right: 0;
height: 100%;
opacity: 0.15;
z-index: 1;
}

.telegram-title {
color: white;
font-size: 1.6rem;
margin-bottom: 15px;
}

.telegram-description {
margin-bottom: 20px;
max-width: 600px;
}

.telegram-commands {
background: rgba(255, 255, 255, 0.15);
border-radius: 8px;
padding: 15px;
margin-top: 20px;
max-width: 500px;
}

.command-item {
padding: 8px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
}

.command-item:last-child {
border-bottom: none;
}

.command-name {
font-weight: 600;
min-width: 180px;
}

.winner-card {
background: var(--bg);
border-radius: 8px;
padding: 15px;
margin: 10px 0;
border-left: 4px solid var(--primary);
width: 100%;
}

.color-preview {
width: 100%;
height: 80px;
border-radius: 8px;
margin-bottom: 10px;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
color: white;
text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.password-strength {
height: 5px;
width: 100%;
background: #e0e0e0;
border-radius: 3px;
margin-top: 5px;
overflow: hidden;
}

.password-strength-fill {
height: 100%;
width: 0%;
transition: width 0.3s ease;
}

.file-upload {
position: relative;
display: inline-block;
width: 100%;
}

.file-upload input[type="file"] {
position: absolute;
left: 0;
top: 0;
opacity: 0;
width: 100%;
height: 100%;
cursor: pointer;
}

.file-upload-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 12px 15px;
background: var(--bg);
border: 1px dashed var(--light-gray);
border-radius: 8px;
font-weight: 600;
color: var(--text);
cursor: pointer;
transition: var(--transition);
}

.file-upload-btn:hover {
background: var(--light-gray);
}

.group-container {
background: var(--bg);
border-radius: 8px;
padding: 15px;
margin: 10px 0;
border-left: 4px solid var(--secondary);
width: 100%;
}

.stats-section {
background: var(--card-bg);
border-radius: var(--border-radius);
padding: 25px;
box-shadow: var(--box-shadow);
margin-bottom: 40px;
transition: var(--transition);
}

.dark-theme .stats-section {
box-shadow: var(--box-shadow-dark);
}

.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 20px;
margin-top: 20px;
}

.stat-card {
text-align: center;
padding: 20px;
background: var(--bg);
border-radius: 8px;
transition: var(--transition);
}

.stat-number {
font-size: 2.5rem;
font-weight: 700;
color: var(--primary);
margin-bottom: 10px;
}

.stat-label {
color: var(--text-secondary);
font-size: 0.9rem;
}

.lottery-section {
background: var(--card-bg);
border-radius: var(--border-radius);
padding: 25px;
box-shadow: var(--box-shadow);
margin-bottom: 40px;
}

.lottery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 15px;
margin-top: 15px;
}

.lottery-btn {
padding: 10px;
background: var(--bg);
border: 1px solid var(--light-gray);
border-radius: 8px;
text-align: center;
cursor: pointer;
transition: var(--transition);
}

.lottery-btn:hover {
background: var(--light-gray);
transform: translateY(-3px);
}

.lottery-name {
font-weight: 600;
margin-bottom: 5px;
}

.lottery-desc {
font-size: 0.9rem;
color: var(--text-secondary);
}

.password-options {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
margin-top: 15px;
}

.generator-selector {
margin-bottom: 20px;
}

.generator-select {
width: 100%;
padding: 12px 15px;
background: var(--bg);
border: 1px solid var(--light-gray);
border-radius: 8px;
font-size: 1rem;
transition: var(--transition);
color: var(--text);
}

.generator-select:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.nick-preview {
font-size: 1.5rem;
font-weight: bold;
margin: 15px 0;
color: var(--primary);
text-align: center;
}

.horoscope-card {
background: var(--bg);
border-radius: 8px;
padding: 15px;
margin: 10px 0;
border-left: 4px solid var(--secondary);
width: 100%;
}

.horoscope-title {
font-weight: bold;
margin-bottom: 8px;
color: var(--primary);
}

/* Стили для выпадающего меню скачивания */
.download-dropdown {
position: relative;
display: inline-block;
flex: 1;
}

.download-options {
display: none;
position: absolute;
background-color: var(--card-bg);
min-width: 140px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
border-radius: 8px;
overflow: hidden;
top: 100%;
left: 0;
right: 0;
margin-top: 5px;
}

.download-dropdown:hover .download-options {
display: block;
}

.download-options button {
width: 100%;
text-align: left;
padding: 10px 15px;
border: none;
background: none;
color: var(--text);
cursor: pointer;
font-size: 0.9rem;
}

.download-options button:hover {
background-color: var(--light-gray);
}

/* Новые стили для секции экспорта */
.export-section {
margin-top: 20px;
border-top: 1px solid var(--light-gray);
padding-top: 20px;
}

.export-group {
margin-bottom: 15px;
}

.export-group:last-child {
margin-bottom: 0;
}

.export-control {
display: flex;
gap: 10px;
margin-top: 8px;
}

.export-textarea {
flex: 1;
min-height: 60px;
font-size: 0.9rem;
}

.copy-export-btn {
width: auto;
min-width: 120px;
}

@media (max-width: 768px) {
.generator-section {
flex-direction: column;
}

.header-main {
flex-direction: column;
gap: 15px;
text-align: center;
}

.logo-container {
justify-content: center;
}

.features-grid {
grid-template-columns: 1fr;
}

.range-container {
flex-direction: column;
align-items: stretch;
}

.tabs-container {
overflow-x: auto;
flex-wrap: nowrap;
padding-bottom: 10px;
}

.result-actions {
flex-wrap: wrap;
}

.action-btn {
min-width: 100px;
}

.password-options {
grid-template-columns: 1fr;
}

.export-control {
flex-direction: column;
}
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: #0a0a1a;
color: #fff;
min-height: 100vh;
overflow-x: hidden;
position: relative;
background-image:
radial-gradient(white, rgba(255,255,255,.2) 2px, transparent 10px),
radial-gradient(white, rgba(255,255,255,.15) 1px, transparent 5px),
radial-gradient(white, rgba(255,255,255,.1) 2px, transparent 10px);
background-size: 550px 550px, 350px 350px, 250px 250px;
background-position: 0 0, 40px 60px, 130px 270px;
}

/* Звездный фон */
.stars {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -2;
}

.star {
position: absolute;
background: #fff;
border-radius: 50%;
animation: twinkle var(--duration, 5s) infinite ease-in-out;
}

@keyframes twinkle {
0%, 100% { opacity: 0.2; }
50% { opacity: 1; }
}

/* Планета */
.planet {
position: fixed;
top: 50px;
right: 50px;
width: 200px;
height: 200px;
border-radius: 50%;
background: radial-gradient(circle at 30% 30%, #3498db, #1a5276);
box-shadow:
0 0 60px rgba(52, 152, 219, 0.5),
0 0 120px rgba(41, 128, 185, 0.3);
animation: rotate 30s linear infinite;
z-index: -1;
}

.planet::before {
content: '';
position: absolute;
top: 20%;
left: 20%;
width: 40px;
height: 40px;
background: rgba(255, 255, 255, 0.2);
border-radius: 50%;
}

.planet::after {
content: '';
position: absolute;
top: 60%;
left: 70%;
width: 30px;
height: 30px;
background: rgba(255, 255, 255, 0.15);
border-radius: 50%;
}

@keyframes rotate {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}

/* Космические корабли */
.spaceship {
position: absolute;
font-size: 24px;
animation: fly linear infinite;
z-index: -1;
filter: drop-shadow(0 0 5px rgba(52, 152, 219, 0.8));
}

.spaceship1 {
top: 20%;
left: -50px;
animation-duration: 25s;
color: #3498db;
}

.spaceship2 {
top: 70%;
right: -50px;
animation-duration: 30s;
animation-delay: 5s;
color: #8e44ad;
}

@keyframes fly {
0% {
transform: translateX(-100px) translateY(0);
}
100% {
transform: translateX(calc(100vw + 100px)) translateY(100px);
}
}

/* Космонавты */
.astronaut {
position: absolute;
font-size: 40px;
animation: float ease-in-out infinite;
z-index: -1;
filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.astronaut1 {
top: 30%;
left: 10%;
animation-duration: 15s;
animation-delay: 2s;
color: #ecf0f1;
}

.astronaut2 {
top: 60%;
right: 15%;
animation-duration: 18s;
animation-delay: 7s;
color: #bdc3c7;
}

@keyframes float {
0% {
transform: translate(0, 0) rotate(0deg);
}
25% {
transform: translate(50px, 30px) rotate(10deg);
}
50% {
transform: translate(100px, 0) rotate(0deg);
}
75% {
transform: translate(50px, -30px) rotate(-10deg);
}
100% {
transform: translate(0, 0) rotate(0deg);
}
}

/* Основной контент */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
position: relative;
z-index: 1;
backdrop-filter: blur(2px);
}

header {
text-align: center;
padding: 50px 0 30px;
margin-bottom: 30px;
}

.logo {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
position: relative;
}

.logo-icon {
font-size: 5rem;
color: #3498db;
background: linear-gradient(45deg, #3498db, #8e44ad);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.05); }
}

.logo-title {
font-size: 3.5rem;
font-weight: 800;
margin-bottom: 10px;
text-align: center; /* Центрирование текста */
text-shadow: 0 0 15px rgba(52, 152, 219, 0.8);
background: linear-gradient(to right, #3498db, #8e44ad);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}


.logo-subtitle {
font-size: 1.5rem;
color: #bdc3c7;
font-weight: 500;
max-width: 800px;
margin: 0 auto;
line-height: 1.6;
}

.gagarin-quote {
font-style: italic;
margin-top: 40px;
color: #ecf0f1;
font-size: 1.4rem;
max-width: 900px;
margin: 40px auto 0;
padding: 25px;
border-left: 4px solid #3498db;
background: rgba(25, 25, 35, 0.6);
border-radius: 10px;
position: relative;
box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
}

.gagarin-quote::before {
content: """;
position: absolute;
top: -30px;
left: -20px;
font-size: 8rem;
color: rgba(52, 152, 219, 0.2);
font-family: Georgia, serif;
}

/* Гагаринский раздел */
.gagarin-section {
display: flex;
gap: 40px;
margin: 70px 0;
align-items: center;
}

.gagarin-info {
flex: 1;
padding: 40px;
background: rgba(25, 25, 35, 0.7);
border-radius: 20px;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
border: 1px solid rgba(52, 152, 219, 0.3);
}

.gagarin-info h2 {
font-size: 2.8rem;
margin-bottom: 30px;
color: #3498db;
position: relative;
padding-bottom: 15px;
}

.gagarin-info h2::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 150px;
height: 3px;
background: linear-gradient(to right, #3498db, #8e44ad);
border-radius: 3px;
}

.gagarin-info p {
margin-bottom: 25px;
line-height: 1.8;
color: #ecf0f1;
font-size: 1.2rem;
}

.gagarin-stats {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
margin-top: 35px;
}

.stat-card {
background: rgba(41, 128, 185, 0.2);
padding: 20px;
border-radius: 12px;
text-align: center;
border: 1px solid rgba(52, 152, 219, 0.3);
transition: transform 0.3s ease;
}

.stat-card:hover {
transform: translateY(-5px);
background: rgba(41, 128, 185, 0.3);
}

.stat-number {
font-size: 2.5rem;
font-weight: 700;
color: #3498db;
margin-bottom: 10px;
text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.stat-label {
color: #bdc3c7;
font-size: 1.1rem;
}

.gagarin-image {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
perspective: 1000px;
}

.gagarin-image-inner {
width: 100%;
max-width: 450px;
border-radius: 15px;
overflow: hidden;
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.6),
0 0 0 3px rgba(52, 152, 219, 0.4),
0 0 0 6px rgba(142, 68, 173, 0.2);
transform: rotateY(5deg) rotateX(5deg);
transition: transform 0.5s ease;
}

.gagarin-image-inner:hover {
transform: rotateY(0) rotateX(0);
}

.gagarin-image img {
width: 100%;
display: block;
transition: transform 0.5s ease;
}

.gagarin-image-inner:hover img {
transform: scale(1.05);
}

/* Космическая галерея */
.gallery-section {
margin: 100px 0;
}

.section-title {
text-align: center;
font-size: 1rem;
margin-bottom: 60px;
color: #3498db;
position: relative;
text-transform: uppercase;
letter-spacing: 3px;
}

.section-title::after {
content: '';
display: block;
width: 200px;
height: 4px;
background: linear-gradient(to right, #3498db, #8e44ad);
margin: 25px auto;
border-radius: 3px;
}

.gallery {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 35px;
}

.gallery-item {
border-radius: 15px;
overflow: hidden;
position: relative;
height: 300px;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
transition: transform 0.5s ease;
transform: translateY(0);
}

.gallery-item:hover {
transform: translateY(-15px);
}

.gallery-item img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.8s ease;
}

.gallery-item:hover img {
transform: scale(1.15);
}

.gallery-caption {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.8);
padding: 25px;
transform: translateY(100%);
transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-caption {
transform: translateY(0);
}

.gallery-caption h3 {
color: #3498db;
margin-bottom: 10px;
font-size: 1.8rem;
}

.gallery-caption p {
color: #ecf0f1;
font-size: 1.1rem;
line-height: 1.6;
}

/* Цитаты */
.quotes-section {
margin: 100px 0;
background: linear-gradient(135deg, rgba(25, 25, 35, 0.7), rgba(10, 10, 30, 0.9));
padding: 70px 50px;
border-radius: 20px;
position: relative;
overflow: hidden;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.quotes-section::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
z-index: -1;
}

.quote {
text-align: center;
max-width: 900px;
margin: 0 auto;
}

.quote-text {
font-size: 2.2rem;
font-style: italic;
margin-bottom: 40px;
color: #ecf0f1;
line-height: 1.6;
position: relative;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.quote-text::before, .quote-text::after {
content: '"';
font-size: 5rem;
color: rgba(52, 152, 219, 0.3);
position: absolute;
font-family: Georgia, serif;
}

.quote-text::before {
top: -50px;
left: -50px;
}

.quote-text::after {
bottom: -70px;
right: -50px;
}

.quote-author {
font-size: 1.1rem;
color: #3498db;
font-weight: 600;
text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

/* Футер */
footer {
text-align: center;
padding: 60px 0;
margin-top: 100px;
border-top: 1px solid rgba(52, 152, 219, 0.3);
position: relative;
}

.footer-text {
color: #bdc3c7;
margin-bottom: 20px;
font-size: 1.2rem;
max-width: 800px;
margin-left: auto;
margin-right: auto;
line-height: 1.8;
}

.social-links {
display: flex;
justify-content: center;
gap: 25px;
margin-top: 40px;
}

.social-link {
display: flex;
align-items: center;
justify-content: center;
width: 70px;
height: 70px;
border-radius: 50%;
background: rgba(52, 152, 219, 0.2);
color: #3498db;
font-size: 1.8rem;
transition: all 0.4s ease;
position: relative;
overflow: hidden;
}

.social-link::before {
content: '';
position: absolute;
top: 0;
left: -100%;
width: 100%;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
transition: 0.5s;
}

.social-link:hover::before {
left: 100%;
}

.social-link:hover {
background: #3498db;
color: #fff;
transform: translateY(-10px) scale(1.1);
box-shadow: 0 0 25px rgba(52, 152, 219, 0.7);
}

.copyright {
margin-top: 40px;
color: #7f8c8d;
font-size: 1.1rem;
}

/* Адаптивность */
@media (max-width: 1100px) {
.gagarin-section {
flex-direction: column;
}

.planet {
width: 150px;
height: 150px;
top: 20px;
right: 20px;
}

.logo-title {
font-size: 2rem;
}

.gagarin-info h2 {
font-size: 2.4rem;
}
}

@media (max-width: 768px) {
.logo-title {
font-size: 2.2rem;
}

.logo-subtitle {
font-size: 1.2rem;
}

.gagarin-quote {
font-size: 1.2rem;
padding: 20px;
}

.section-title {
font-size: 1rem;
}

.gagarin-info {
padding: 30px;
}

.gagarin-info h2 {
font-size: 2rem;
}

.gagarin-info p {
font-size: 1.1rem;
}

.quote-text {
font-size: 1.6rem;
}

.gallery {
grid-template-columns: 1fr;
}

.stat-number {
font-size: 2rem;
}
}

@media (max-width: 480px) {
.logo-title {
font-size: 1.8rem;
}

.logo-icon {
font-size: 4rem;
}

.gagarin-quote {
font-size: 1.1rem;
}

.section-title {
font-size: 1.1rem;
}

.gagarin-info h2 {
font-size: 1.8rem;
}

.gagarin-stats {
grid-template-columns: 1fr;
}

.quote-text {
font-size: 1.4rem;
}
}
:root {
--primary: #4361ee;
--primary-dark: #3a56d4;
--secondary: #7209b7;
--success: #4cc9f0;
--light: #f8f9fa;
--dark: #212529;
--gray: #6c757d;
--light-gray: #e9ecef;
--dark-gray: #495057;
--border-radius: 12px;
--box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
--box-shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.25);
--transition: all 0.3s ease;
--bg: #f5f7fa;
--card-bg: #ffffff;
--text: #212529;
--text-secondary: #6c757d;
}

.dark-theme {
--bg: #121826;
--card-bg: #1e293b;
--text: #e2e8f0;
--text-secondary: #94a3b8;
--light-gray: #334155;
--dark-gray: #cbd5e1;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: var(--bg);
color: var(--text);
line-height: 1.6;
min-height: 100vh;
padding: 20px;
transition: var(--transition);
}
/* Звездный фон */
body {
background: var(--bg);
position: relative;
overflow-x: hidden;
background-image:
radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0px, transparent 1px),
radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0px, transparent 1px),
radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.1) 0px, transparent 1px),
radial-gradient(circle at 40% 50%, rgba(255, 255, 255, 0.1) 0px, transparent 1px),
radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.1) 0px, transparent 1px),
radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.1) 0px, transparent 1px),
radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0px, transparent 1px),
radial-gradient(circle at 80% 90%, rgba(255, 255, 255, 0.1) 0px, transparent 1px);
background-size: 1000px 1000px;
background-attachment: fixed;
}

/* Планета */
.planet {
position: absolute;
top: 50px;
right: 50px;
width: 250px;
height: 250px;
border-radius: 50%;
background: radial-gradient(circle at 30% 30%, #1e90ff, #0077be, #0066a3, #003b6f);
box-shadow: inset 0 0 50px #fff, 0 0 80px #4b9bff;
animation: rotate 50s linear infinite;
}

.planet::before {
content: '';
position: absolute;
top: 15%;
left: 20%;
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.1);
}

.planet::after {
content: '';
position: absolute;
top: 60%;
left: 60%;
width: 30px;
height: 30px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.05);
}

@keyframes rotate {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
}

/* Космические корабли */
.spaceship {
position: fixed;
width: 60px;
height: 30px;
background: linear-gradient(45deg, #4cc9f0, #4361ee);
border-radius: 50% 50% 0 0;
box-shadow: 0 0 15px rgba(76, 201, 240, 0.7);
z-index: -1;
animation: fly 25s linear infinite;
}

.spaceship::before {
content: '';
position: absolute;
top: 5px;
left: -10px;
width: 20px;
height: 20px;
border-radius: 50%;
background: #7209b7;
box-shadow: 0 0 10px rgba(114, 9, 183, 0.8);
}

.spaceship::after {
content: '';
position: absolute;
bottom: -15px;
left: 20px;
width: 20px;
height: 10px;
background: #f72585;
border-radius: 0 0 50% 50%;
box-shadow: 0 0 10px rgba(247, 37, 133, 0.8);
}

.spaceship-1 {
top: 20%;
left: -100px;
animation-duration: 30s;
}

.spaceship-2 {
top: 70%;
right: -100px;
animation-direction: reverse;
animation-duration: 40s;
}

@keyframes fly {
0% { transform: translateX(0) translateY(0); }
25% { transform: translateX(100px) translateY(50px); }
50% { transform: translateX(200px) translateY(-30px); }
75% { transform: translateX(300px) translateY(40px); }
100% { transform: translateX(calc(100vw + 200px)) translateY(-20px); }
}

/* Космонавты */
.astronaut {
position: fixed;
width: 50px;
height: 70px;
z-index: -1;
animation: float 35s linear infinite;
}

.astronaut-body {
position: absolute;
width: 40px;
height: 50px;
background: white;
border-radius: 50% 50% 40% 40%;
top: 10px;
left: 5px;
}

.astronaut-helmet {
position: absolute;
width: 30px;
height: 30px;
background: rgba(255, 255, 255, 0.9);
border-radius: 50%;
top: 0;
left: 10px;
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.astronaut-helmet::before {
content: '';
position: absolute;
width: 15px;
height: 5px;
background: #4cc9f0;
top: 12px;
left: 7px;
border-radius: 10px;
}

.astronaut-1 {
top: 40%;
right: -100px;
animation-duration: 50s;
}

.astronaut-2 {
top: 60%;
left: -100px;
animation-direction: reverse;
animation-duration: 45s;
}

@keyframes float {
0% { transform: translateX(0) translateY(0); }
25% { transform: translateX(150px) translateY(40px); }
50% { transform: translateX(300px) translateY(-20px); }
75% { transform: translateX(450px) translateY(30px); }
100% { transform: translateX(calc(100vw + 200px)) translateY(-10px); }
}

/* Гагарин в логотипе */
.gagarin-container {
position: absolute;
top: -30px;
right: 20px;
width: 120px;
height: 120px;
border-radius: 50%;
background: linear-gradient(45deg, #4361ee, #7209b7);
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 0 30px rgba(67, 97, 238, 0.6);
z-index: 10;
}

.gagarin-portrait {
width: 100px;
height: 100px;
border-radius: 50%;
background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/8/8a/Yuri_Gagarin_%28cropped%29.jpg/220px-Yuri_Gagarin_%28cropped%29.jpg') center/cover;
border: 3px solid white;
}

/* Скрытие элементов на мобильных */
@media (max-width: 768px) {
.planet, .spaceship, .astronaut {
display: none;
}
}
.container-main {
max-width: 1200px;
margin: 0 auto;
}

.header-main {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 0;
margin-bottom: 30px;
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo-container {
display: flex;
align-items: center;
gap: 15px;
}

.logo-icon {
font-size: 2.5rem;
color: var(--primary);
background: linear-gradient(45deg, var(--primary), var(--secondary));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}

.logo-title {
font-size: 1.8rem;
font-weight: 800;
color: var(--text);
}

.logo-subtitle {
font-size: 1rem;
color: var(--text-secondary);
font-weight: 500;
}

.theme-switch-wrapper {
display: flex;
align-items: center;
gap: 10px;
}

.theme-switch {
display: inline-block;
height: 28px;
position: relative;
width: 50px;
}

.theme-switch input {
display: none;
}

.slider {
background-color: var(--light-gray);
bottom: 0;
cursor: pointer;
left: 0;
position: absolute;
right: 0;
top: 0;
transition: var(--transition);
border-radius: 34px;
}

.slider:before {
background-color: var(--card-bg);
bottom: 3px;
content: "";
height: 22px;
left: 4px;
position: absolute;
transition: var(--transition);
width: 22px;
border-radius: 50%;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
background-color: var(--primary);
}

input:checked + .slider:before {
transform: translateX(20px);
}

.tabs-container {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 25px;
overflow-x: auto;
padding-bottom: 10px;
}

.tab-btn {
padding: 12px 20px;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
border: none;
font-size: 0.95rem;
display: flex;
align-items: center;
gap: 8px;
background-color: var(--light-gray);
color: var(--text);
white-space: nowrap;
}

.tab-btn.active, .tab-btn:hover {
background: linear-gradient(to right, var(--primary), var(--secondary));
color: white;
}

.tab-content {
display: none;
}

.tab-content.active {
display: block;
}

.generator-section {
display: flex;
gap: 30px;
margin-bottom: 40px;
}

.control-panel {
flex: 1;
background: var(--card-bg);
border-radius: var(--border-radius);
padding: 25px;
box-shadow: var(--box-shadow);
transition: var(--transition);
}

.dark-theme .control-panel {
box-shadow: var(--box-shadow-dark);
}

.result-panel {
flex: 1;
background: var(--card-bg);
border-radius: var(--border-radius);
padding: 25px;
box-shadow: var(--box-shadow);
display: flex;
flex-direction: column;
transition: var(--transition);
}

.dark-theme .result-panel {
box-shadow: var(--box-shadow-dark);
}

.section-title {
font-size: 1.1rem;
font-weight: 700;
margin-bottom: 20px;
color: var(--primary);
display: flex;
align-items: center;
gap: 10px;
}

.section-title i {
font-size: 1.1rem;
}

.form-group {
margin-bottom: 20px;
}

.form-label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: var(--text);
}

.form-input {
width: 100%;
padding: 12px 15px;
background: var(--bg);
border: 1px solid var(--light-gray);
border-radius: 8px;
font-size: 1rem;
transition: var(--transition);
color: var(--text);
}

.form-input:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.form-textarea {
width: 100%;
height: 150px;
padding: 12px 15px;
background: var(--bg);
border: 1px solid var(--light-gray);
border-radius: 8px;
font-size: 1rem;
transition: var(--transition);
color: var(--text);
resize: vertical;
}

.form-textarea:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.range-container {
display: flex;
gap: 15px;
align-items: center;
}

.range-input {
flex: 1;
}

.checkbox-group {
display: flex;
align-items: center;
gap: 10px;
margin-top: 15px;
}

.checkbox-input {
width: 20px;
height: 20px;
accent-color: var(--primary);
}

.checkbox-label {
font-size: 0.95rem;
color: var(--text);
}

.button-group {
display: flex;
gap: 15px;
margin-top: 25px;
}

.btn {
padding: 12px 25px;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
border: none;
font-size: 1rem;
display: flex;
align-items: center;
gap: 8px;
}

.btn-primary {
background: linear-gradient(to right, var(--primary), var(--secondary));
color: white;
flex: 1;
}

.btn-primary:hover {
background: linear-gradient(to right, var(--primary-dark), #6511a8);
transform: translateY(-2px);
box-shadow: 0 6px 15px rgba(67, 97, 238, 0.3);
}

.btn-secondary {
background-color: var(--bg);
color: var(--text);
border: 1px solid var(--light-gray);
}

.btn-secondary:hover {
background-color: var(--light-gray);
}

.result-content {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
min-height: 200px;
background-color: var(--bg);
border-radius: 8px;
margin: 15px 0;
padding: 20px;
border: 1px dashed var(--light-gray);
text-align: center;
transition: var(--transition);
flex-direction: column;
overflow: auto;
}

.result-numbers {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary);
word-break: break-all;
line-height: 1.4;
}

.result-list {
font-size: 1.2rem;
font-weight: 600;
color: var(--primary);
text-align: left;
width: 100%;
line-height: 1.8;
}

.result-actions {
display: flex;
gap: 10px;
}

.action-btn {
flex: 1;
padding: 10px 15px;
border-radius: 8px;
background-color: var(--bg);
border: 1px solid var(--light-gray);
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
color: var(--text);
}

.action-btn:hover {
background-color: var(--light-gray);
}

.action-btn i {
font-size: 1.1rem;
}

.history-section {
background: var(--card-bg);
border-radius: var(--border-radius);
padding: 25px;
box-shadow: var(--box-shadow);
margin-bottom: 40px;
transition: var(--transition);
}

.dark-theme .history-section {
box-shadow: var(--box-shadow-dark);
}

.history-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 20px;
margin-top: 15px;
}

.history-item {
border: 1px solid var(--light-gray);
border-radius: 8px;
padding: 15px;
transition: var(--transition);
background: var(--bg);
}

.history-item:hover {
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.history-title {
font-weight: 600;
margin-bottom: 8px;
color: var(--primary);
}

.history-content {
font-size: 0.95rem;
color: var(--text-secondary);
}

.history-date {
font-size: 0.8rem;
color: var(--text-secondary);
margin-top: 8px;
}

.features-section {
margin-bottom: 40px;
}

.features-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 25px;
margin-top: 20px;
}

.feature-card {
background: var(--card-bg);
border-radius: var(--border-radius);
padding: 25px;
box-shadow: var(--box-shadow);
transition: var(--transition);
border: 2px solid transparent;
}

.dark-theme .feature-card {
box-shadow: var(--box-shadow-dark);
}

.feature-card:hover {
transform: translateY(-5px);
border-color: var(--primary);
}

.feature-icon {
font-size: 2.5rem;
margin-bottom: 15px;
background: linear-gradient(45deg, var(--primary), var(--secondary));
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: transparent;
}

.feature-title {
font-size: 1.2rem;
font-weight: 700;
margin-bottom: 10px;
color: var(--text);
}

.feature-description {
color: var(--text-secondary);
font-size: 0.95rem;
}

.footer-main {
text-align: center;
padding: 30px 0;
color: var(--text-secondary);
font-size: 0.95rem;
border-top: 1px solid var(--light-gray);
}

.footer-links {
display: flex;
justify-content: center;
gap: 25px;
margin-top: 15px;
flex-wrap: wrap;
}

.footer-link {
color: var(--primary);
text-decoration: none;
transition: var(--transition);
}

.footer-link:hover {
color: var(--secondary);
text-decoration: underline;
}

.telegram-section {
background: linear-gradient(135deg, #0088cc 0%, #34b7f1 100%);
border-radius: var(--border-radius);
padding: 25px;
box-shadow: var(--box-shadow);
margin-bottom: 40px;
color: white;
position: relative;
overflow: hidden;
}

.telegram-content {
position: relative;
z-index: 2;
}

.telegram-pattern {
position: absolute;
top: 0;
right: 0;
height: 100%;
opacity: 0.15;
z-index: 1;
}

.telegram-title {
color: white;
font-size: 1.6rem;
margin-bottom: 15px;
}

.telegram-description {
margin-bottom: 20px;
max-width: 600px;
}

.telegram-commands {
background: rgba(255, 255, 255, 0.15);
border-radius: 8px;
padding: 15px;
margin-top: 20px;
max-width: 500px;
}

.command-item {
padding: 8px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
display: flex;
}

.command-item:last-child {
border-bottom: none;
}

.command-name {
font-weight: 600;
min-width: 180px;
}

.winner-card {
background: var(--bg);
border-radius: 8px;
padding: 15px;
margin: 10px 0;
border-left: 4px solid var(--primary);
width: 100%;
}

.color-preview {
width: 100%;
height: 80px;
border-radius: 8px;
margin-bottom: 10px;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
color: white;
text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.password-strength {
height: 5px;
width: 100%;
background: #e0e0e0;
border-radius: 3px;
margin-top: 5px;
overflow: hidden;
}

.password-strength-fill {
height: 100%;
width: 0%;
transition: width 0.3s ease;
}

.file-upload {
position: relative;
display: inline-block;
width: 100%;
}

.file-upload input[type="file"] {
position: absolute;
left: 0;
top: 0;
opacity: 0;
width: 100%;
height: 100%;
cursor: pointer;
}

.file-upload-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 12px 15px;
background: var(--bg);
border: 1px dashed var(--light-gray);
border-radius: 8px;
font-weight: 600;
color: var(--text);
cursor: pointer;
transition: var(--transition);
}

.file-upload-btn:hover {
background: var(--light-gray);
}

.group-container {
background: var(--bg);
border-radius: 8px;
padding: 15px;
margin: 10px 0;
border-left: 4px solid var(--secondary);
width: 100%;
}

.stats-section {
background: var(--card-bg);
border-radius: var(--border-radius);
padding: 25px;
box-shadow: var(--box-shadow);
margin-bottom: 40px;
transition: var(--transition);
}

.dark-theme .stats-section {
box-shadow: var(--box-shadow-dark);
}

.stats-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 20px;
margin-top: 20px;
}

.stat-card {
text-align: center;
padding: 20px;
background: var(--bg);
border-radius: 8px;
transition: var(--transition);
}

.stat-number {
font-size: 2.5rem;
font-weight: 700;
color: var(--primary);
margin-bottom: 10px;
}

.stat-label {
color: var(--text-secondary);
font-size: 0.9rem;
}

.lottery-section {
background: var(--card-bg);
border-radius: var(--border-radius);
padding: 25px;
box-shadow: var(--box-shadow);
margin-bottom: 40px;
}

.lottery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 15px;
margin-top: 15px;
}

.lottery-btn {
padding: 10px;
background: var(--bg);
border: 1px solid var(--light-gray);
border-radius: 8px;
text-align: center;
cursor: pointer;
transition: var(--transition);
}

.lottery-btn:hover {
background: var(--light-gray);
transform: translateY(-3px);
}

.lottery-name {
font-weight: 600;
margin-bottom: 5px;
}

.lottery-desc {
font-size: 0.9rem;
color: var(--text-secondary);
}

.password-options {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 10px;
margin-top: 15px;
}

.generator-selector {
margin-bottom: 20px;
}

.generator-select {
width: 100%;
padding: 12px 15px;
background: var(--bg);
border: 1px solid var(--light-gray);
border-radius: 8px;
font-size: 1rem;
transition: var(--transition);
color: var(--text);
}

.generator-select:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.nick-preview {
font-size: 1.5rem;
font-weight: bold;
margin: 15px 0;
color: var(--primary);
text-align: center;
}

.horoscope-card {
background: var(--bg);
border-radius: 8px;
padding: 15px;
margin: 10px 0;
border-left: 4px solid var(--secondary);
width: 100%;
}

.horoscope-title {
font-weight: bold;
margin-bottom: 8px;
color: var(--primary);
}

/* Стили для выпадающего меню скачивания */
.download-dropdown {
position: relative;
display: inline-block;
flex: 1;
}

.download-options {
display: none;
position: absolute;
background-color: var(--card-bg);
min-width: 140px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
border-radius: 8px;
overflow: hidden;
top: 100%;
left: 0;
right: 0;
margin-top: 5px;
}

.download-dropdown:hover .download-options {
display: block;
}

.download-options button {
width: 100%;
text-align: left;
padding: 10px 15px;
border: none;
background: none;
color: var(--text);
cursor: pointer;
font-size: 0.9rem;
}

.download-options button:hover {
background-color: var(--light-gray);
}

/* Новые стили для секции экспорта */
.export-section {
margin-top: 20px;
border-top: 1px solid var(--light-gray);
padding-top: 20px;
}

.export-group {
margin-bottom: 15px;
}

.export-group:last-child {
margin-bottom: 0;
}

.export-control {
display: flex;
gap: 10px;
margin-top: 8px;
}

.export-textarea {
flex: 1;
min-height: 60px;
font-size: 0.9rem;
}

.copy-export-btn {
width: auto;
min-width: 120px;
}

@media (max-width: 768px) {
.generator-section {
flex-direction: column;
}

.header-main {
flex-direction: column;
gap: 15px;
text-align: center;
}

.logo-container {
justify-content: center;
}

.features-grid {
grid-template-columns: 1fr;
}

.range-container {
flex-direction: column;
align-items: stretch;
}

.tabs-container {
overflow-x: auto;
flex-wrap: nowrap;
padding-bottom: 10px;
}

.result-actions {
flex-wrap: wrap;
}

.action-btn {
min-width: 100px;
}

.password-options {
grid-template-columns: 1fr;
}

.export-control {
flex-direction: column;
}
}
/* Новые стили для кнопок шаринга */
.share-buttons {
    display: flex;
    gap: 10px;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    border: none;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
}

.telegram-btn {
    background-color: #0088cc;
    color: white;
    border: none;
}

.telegram-btn:hover {
    background-color: #006699;
}
/* Дополнительные стили для новых кнопок */
.instagram-btn {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.instagram-btn:hover {
    background: linear-gradient(45deg, #3048b5, #4739d1, #6a2a9b, #a0256b, #c01a5b, #e00d0d);
}

.tiktok-btn {
    background-color: #000000;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.tiktok-btn:hover {
    background-color: #333333;
}

.share-icon {
    margin-right: 8px;
    font-size: 18px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Для мобильных устройств - вертикальное расположение */
@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
    }
    
    .share-buttons button {
        width: 100%;
        justify-content: center;
    }
}

.winner-card h3 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.winner-card p {
    margin: 5px 0;
    line-height: 1.4;
}
.horoscope-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.zodiac-icon {
    font-size: 2.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #4361ee;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.export-excel-btn {
    background-color: #217346;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    margin: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.export-excel-btn:hover {
    background-color: #1a5c38;
}

.export-excel-btn i {
    font-size: 18px;
}

.hexagram-display {
	font-family: monospace;
	font-size: 1.5em;
	line-height: 1.6;
	text-align: center;
	margin-top: 10px;
	white-space: pre-line;
}

.iching-description {
	margin-top: 20px;
	font-size: 1em;
	text-align: left;
}
.error-message {
    padding: 20px;
    background: #ffebee;
    border-radius: 8px;
    text-align: center;
    color: #c62828;
    border: 1px solid #ffcdd2;
    margin: 20px 0;
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.error-message p {
    margin: 5px 0;
}

.barcode-svg-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.barcode-error {
text-align: center;
padding: 20px;
color: #dc3545;
border: 1px solid #f5c2c7;
border-radius: 5px;
background: #f8d7da;
margin: 15px 0;
}

.barcode-error i {
font-size: 2rem;
margin-bottom: 10px;
display: block;
}

.notification {
position: fixed;
top: 20px;
right: 20px;
padding: 12px 20px;
color: white;
border-radius: 4px;
z-index: 10000;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
opacity: 0;
transform: translateY(-20px);
transition: all 0.3s ease;
}

.notification.success {
background-color: #28a745;
opacity: 0;
transform: translateY(-20px);
}

.notification.error {
background-color: #dc3545;
opacity: 0;
transform: translateY(-20px);
}

.notification.show {
opacity: 1;
transform: translateY(0);
}

/* Контейнер для подвкладок подписей */
.signature-tabs-container {
    display: flex;
    background: #3a506b;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.signature-tab-btn {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: #c7d3e3;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.signature-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.signature-tab-btn.active {
    background: #2c3e50;
    color: white;
}

.signature-tab-btn.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #0dcaf0;
    box-shadow: 0 0 8px #0dcaf0;
    animation: pulse 1.5s infinite;
}

.signature-tab-content {
    display: none;
}

.signature-tab-content.active {
    display: block;
}

/* Стили для областей подписей */
.signature-placeholder {
    text-align: center;
    color: #adb5bd;
    padding: 40px;
}

.signature-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    color: #e9ecef;
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

/* Шрифты для текстовых подписей */
.font-great-vibes {
    font-family: 'Great Vibes', cursive;
    font-size: 1.2em;
    letter-spacing: 1px;
}

.font-dancing-script {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
}

.font-sacramento {
    font-family: 'Sacramento', cursive;
    font-size: 1.3em;
}

.font-parisienne {
    font-family: 'Parisienne', cursive;
    font-size: 1.1em;
}

.font-allura {
    font-family: 'Allura', cursive;
    font-size: 1.4em;
}

.font-bad-script {
    font-family: 'Bad Script', cursive;
    font-weight: 400;
}

.font-caveat {
    font-family: 'Caveat', cursive;
    font-weight: 700;
    font-size: 1.1em;
}

.font-marck-script {
    font-family: 'Marck Script', cursive;
    font-size: 1.1em;
}

.font-pacifico {
    font-family: 'Pacifico', cursive;
    font-size: 1.1em;
}

.font-qwitcher-grypen {
    font-family: 'Qwitcher Grypen', cursive;
    font-size: 1.5em;
    font-weight: 700;
}

.font-rouge-script {
    font-family: 'Rouge Script', cursive;
    font-size: 1.3em;
}

.font-style-script {
    font-family: 'Style Script', cursive;
    font-size: 1.2em;
}

/* Эффекты для подписей */
.signature-3d {
    text-shadow:
        1px 1px 0 #999,
        2px 2px 0 #888,
        3px 3px 0 #777,
        4px 4px 0 #666,
        5px 5px 0 #555,
        6px 6px 5px rgba(0,0,0,0.4);
    transform: perspective(500px) rotateX(10deg);
}

.signature-gradient {
    background: linear-gradient(45deg, #ff0000, #0000ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.signature-glow {
    text-shadow: 0 0 10px #0dcaf0, 0 0 20px #0dcaf0;
}

.signature-stroke {
    color: transparent;
    -webkit-text-stroke: 1px #0d6efd;
    text-stroke: 1px #0d6efd;
}

.signature-animated {
    animation: colorShift 3s infinite alternate;
}

@keyframes colorShift {
    0% { color: #1a3d7c; }
    50% { color: #0dcaf0; }
    100% { color: #0d6efd; }
}

/* Плиточный фон для профессиональной подписи */
.tile-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px),
        linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    z-index: 0;
}

/* Анимация рисования */
@keyframes drawAnimation {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}

.drawn-animation {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawAnimation 3s ease-in-out forwards;
}

/* 3D эффект для рисованной подписи */
.signature-3d-effect {
    filter:
        drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.3))
        drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.2))
        drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.1));
    transform: perspective(500px) rotateX(5deg);
}

/* Анимация для 3D эффекта */
@keyframes float3d {
    0% { transform: perspective(500px) rotateX(5deg) translateY(0); }
    50% { transform: perspective(500px) rotateX(7deg) translateY(-3px); }
    100% { transform: perspective(500px) rotateX(5deg) translateY(0); }
}

.signature-3d-animated {
    animation: float3d 3s ease-in-out infinite;
}

/* Стили для рисованной области */
#signature-pad-container canvas {
    background: white;
    border-radius: 8px;
    cursor: crosshair;
    width: 100%;
    height: 100%;
}

/* Пресеты стилей для профессиональной подписи */
.style-presets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.style-preset {
    height: 50px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-align: center;
    padding: 5px;
    background: #e9ecef;
    transition: all 0.2s;
    border: 1px solid #ced4da;
    position: relative;
    overflow: hidden;
}

.style-preset:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border-color: #0dcaf0;
}

.style-preset:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 202, 240, 0.1);
    opacity: 0;
    transition: all 0.3s;
}

.style-preset:hover:after {
    opacity: 1;
}

/* Адаптивность подписей */
@media (max-width: 768px) {
    .signature-tabs-container {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .signature-tab-btn {
        padding: 12px 15px;
        font-size: 0.9rem;
        min-width: max-content;
    }
}
 
 .style-preset {
height: 50px;
border-radius: 6px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.9rem;
text-align: center;
padding: 5px;
background: #e9ecef;
transition: all 0.2s;
border: 1px solid #ced4da;
position: relative;
overflow: hidden;
}
 .style-presets {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
gap: 10px;
margin-top: 10px;
}
.style-preset:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border-color: #0dcaf0;
}

.style-preset:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 202, 240, 0.1);
    opacity: 0;
    transition: all 0.3s;
}

.style-preset:hover:after {
    opacity: 1;
}
.qr-button-wrapper {
	text-align: center;
	margin: 20px 0;
}

.qr-button-wrapper .tab-btn {
	display: inline-block;
	font-size: 16px;
	padding: 10px 20px;
}
/* Анимация костей */
.dice-animation {
text-align: center;
padding: 40px 0;
display: none;
}

.dice-spinning {
font-size: 4rem;
margin: 0 20px;
animation: spin 0.8s infinite ease-in-out;
color: #f1c40f;
text-shadow: 0 0 15px rgba(241, 196, 15, 0.7);
}

@keyframes spin {
0% { transform: rotate(0deg) scale(1); }
50% { transform: rotate(180deg) scale(1.2); }
100% { transform: rotate(360deg) scale(1); }
}

.dice-text {
margin-top: 20px;
font-size: 1.3rem;
color: #3498db;
font-weight: 500;
}

.tab-btn {
display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
padding: 0.5em 1em;
border: none;
background: #eee;
transition: background 0.3s;
}


.dice-pair {
display: flex;
gap: 5px;
}

.dice-pair i {
font-size: 1.2em;
}

.tab-label {
font-size: 0.9em;
}

.tab-content {
display: none;
}
.tab-content.active {
display: block;
}

#dice-animation.active {
display: flex;
flex-direction: column;
align-items: center;
gap: 1em;
margin: 1em 0;
text-align: center;
}

#dice-animation:not(.active) {
display: none;
}

.hexagram-name {
font-weight: bold;
font-size: 1.2em;
margin-bottom: 0.3em;
}
.hexagram-meaning, .hexagram-description, .hexagram-literal {
margin-top: 0.5em;
font-style: italic;
}
/* Контейнер с результатом */
#iching-result {
background: #fafafa;
border: 1px solid #ccc;
border-left: 4px solid #4caf50;
padding: 1.2em;
margin-top: 1em;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0,0,0,0.05);
font-family: 'Segoe UI', Tahoma, sans-serif;
color: #3a3a3a;
}

/* Линии гексаграммы — с анимацией "дыхания" */
#iching-hexagram {
font-family: monospace;
text-align: center;
line-height: 1.8em;
font-size: 1.2em; /* Размер небольшой */
color: #555;
margin-bottom: 1em;
animation: pulseText 3s ease-in-out infinite;
}

/* Анимация "дыхания" для линий */
@keyframes pulseText {
0%, 100% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.8;
transform: scale(1.05);
}
}

/* Название */
.hexagram-name {
font-size: 1.1em;
font-weight: 600;
color: #388e3c;
text-align: center;
margin-bottom: 0.4em;
/* Без анимации */
}

/* Буквальное значение */
.hexagram-literal {
text-align: center;
font-size: 0.9em;
color: #666;
margin-bottom: 0.4em;
font-style: italic;
/* Без анимации */
}

/* Основное значение */
.hexagram-meaning {
font-size: 1em;
color: #444;
margin-top: 0.6em;
text-align: center;
font-style: italic;
/* Без анимации */
}

/* Дополнительное описание */
.hexagram-description {
margin-top: 0.8em;
padding-top: 0.8em;
border-top: 1px dashed #ccc;
font-size: 0.85em;
color: #555;
text-align: justify;
line-height: 1.5em;
/* Без анимации */
}