
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background: radial-gradient(circle at 20% 30%, #030617, #000000);
            /* темно-синий и черный фон, как в описании коридора */
            font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', 'Ubuntu', Cantarell, 'Open Sans', sans-serif;
            /* системные шрифты под Windows 11/10, Android, iOS, MacOS, Linux Ubuntu */
            color: #eef5ff;
            line-height: 1.5;
            min-height: 100vh;
            padding: 2rem 1rem;
        }

        /* футуристичный эффект контейнера с легким свечением */
        .container {
            max-width: 1280px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
        }

        /* стилизация заголовка с градиентом (синий->фиолетовый как кольцевой объект) */
        .hero {
            text-align: center;
            margin-bottom: 3.5rem;
            position: relative;
        }

        .logo-symbol {
            display: inline-block;
            font-size: 4rem;
            font-weight: 700;
            background: linear-gradient(135deg, #0A66FF, #8A2BE2);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            letter-spacing: -0.02em;
            text-shadow: 0 0 12px rgba(10,102,255,0.3);
            margin-bottom: 0.5rem;
        }

        h1 {
            font-size: 2.8rem;
            font-weight: 700;
            background: linear-gradient(120deg, #FFFFFF, #B0C4FF);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin: 0.5rem 0 0.25rem;
        }

        .tagline {
            font-size: 1.2rem;
            color: #B9D0FF;
            border-top: 1px solid rgba(138, 43, 226, 0.3);
            display: inline-block;
            padding-top: 0.75rem;
            backdrop-filter: blur(2px);
        }

        /* карточки с градиентами и темно-синей основой */
        .card {
            background: rgba(8, 20, 45, 0.65);
            backdrop-filter: blur(4px);
            border-radius: 2rem;
            padding: 2rem;
            margin-bottom: 2rem;
            border: 1px solid rgba(10, 102, 255, 0.25);
            box-shadow: 0 20px 35px -15px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
            transition: transform 0.2s ease, border-color 0.2s;
        }

        .card:hover {
            border-color: rgba(138, 43, 226, 0.6);
            transform: translateY(-3px);
        }

        .grid-2 {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .highlight {
            background: linear-gradient(120deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.05));
            border-left: 6px solid #FFB347;
            padding: 1rem 1.5rem;
            border-radius: 1.2rem;
            font-weight: 500;
        }

        .badge {
            display: inline-block;
            background: #0A2A4A;
            padding: 0.3rem 1rem;
            border-radius: 2rem;
            font-size: 0.8rem;
            font-weight: 500;
            color: #FFD966;
            letter-spacing: 0.3px;
            margin-bottom: 1rem;
            border: 1px solid #FFB34740;
        }

        h2 {
            font-size: 1.8rem;
            margin-bottom: 1rem;
            background: linear-gradient(135deg, #7AAEFF, #C273FF);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            display: inline-block;
        }

        h3 {
            font-size: 1.4rem;
            margin: 1rem 0 0.75rem;
            color: #FFDE9E;
        }

        .accent-text {
            color: #FFC857;
            font-weight: 600;
        }

        .code-block {
            background: #041122;
            padding: 1rem 1.5rem;
            border-radius: 1.2rem;
            font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
            font-size: 0.9rem;
            border: 1px solid #2C4C7C;
            overflow-x: auto;
            white-space: pre-wrap;
            word-break: break-word;
            margin: 1rem 0;
            color: #B8E1FF;
        }

        .btn-copy {
            background: linear-gradient(95deg, #0A66FF, #7B2F9D);
            border: none;
            padding: 0.5rem 1.2rem;
            border-radius: 2rem;
            color: white;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            transition: all 0.2s;
            margin-top: 0.5rem;
            font-size: 0.85rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }

        .btn-copy:hover {
            background: linear-gradient(95deg, #1A76FF, #9A3FCC);
            transform: scale(0.98);
            box-shadow: 0 0 10px rgba(255,200,50,0.3);
        }

        .link-preview {
            background: #071B2F;
            border-radius: 1rem;
            padding: 1rem;
            margin: 1rem 0;
            border-left: 4px solid #FFB347;
            font-size: 0.9rem;
        }

        .preview-mock {
            display: flex;
            gap: 1rem;
            align-items: center;
            flex-wrap: wrap;
            background: #0A192F;
            padding: 0.8rem;
            border-radius: 0.9rem;
            margin-top: 0.5rem;
            border: 1px solid #2E4A7A;
        }

        .preview-icon {
            background: linear-gradient(145deg, #0A66FF, #8A2BE2);
            width: 48px;
            height: 48px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
        }

        .preview-text {
            flex: 1;
        }

        .preview-url {
            font-size: 0.7rem;
            color: #FFC285;
            word-break: break-all;
        }

        .footnote {
            text-align: center;
            margin-top: 3rem;
            font-size: 0.8rem;
            color: #88AADB;
            border-top: 1px solid #1E3A5F;
            padding-top: 2rem;
        }

        @media (max-width: 680px) {
            h1 { font-size: 2rem; }
            .logo-symbol { font-size: 3rem; }
            .card { padding: 1.5rem; }
            .container { padding: 0 0.5rem; }
        }

        /* акцент для желтых/оранжевых деталей как свет в конце тоннеля */
        .glow-text {
            color: #FFB347;
            text-shadow: 0 0 4px #FF8C00;
        }

        hr {
            border-color: #253E6B;
            margin: 1rem 0;
        }
        


/** my preview */
.lpvw {
	position: relative;
	display: flex;
	flex-direction: column;
	background: linear-gradient(239deg,#e9fdff 0%,#e9fdff 50%,#e9fdff 100%);
	border-radius: 6px;
	overflow: hidden;
	max-width:495px;
	padding: 10px 10px 15px 10px;
	margin-bottom:10px;
	font-family: -apple-system, BlinkMacSystemFont, "Roboto", system-ui, Avenir, Helvetica, Arial, sans-serif;
}
#lph {
	padding-top:8px;
	padding: 0 10px;
	color: #000;
	word-wrap: break-word;
	word-break: break-word;
	font-weight: 400;
	font-size: 17px;
	letter-spacing: 0.15px;
	width: max-content;
	max-width: 100%;
	margin-bottom: 10px;
}
#lph a, #lph a:visited{
	color:#0f8ec2;
	display:inline!important;
}

.lpgr {
	display:flex;
	padding: 0 10px;
}

.lpimg1 {
	border-radius: 4px;
	overflow: hidden;
	flex: 1 0 auto;
	align-self: center;
	margin-right: 10px;
}

.lpimg2 {
	width: 64px;
	height: 64px;
	display: inline-block;
	position: relative;
}

#lpimg {
	width: 64px;
	height: 64px;
	background: center center / cover;
	object-fit: cover;	
	vertical-align: top;
	text-align: center;
}

.lpblock {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

#lphost {
	font-weight: 500;
	font-size: 10px;
	letter-spacing: 0.3px;
	color: #052b3c;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#lpt {
	font-weight: 500;
	font-size: 14px;
	letter-spacing: 0.15px;
	color: #000;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#lpd {
	font-weight: 400;
	font-size: 14px;
	letter-spacing: 0.15px;
	color: #052b3c;
	display: -webkit-box;
	word-wrap: break-word;
	white-space: pre-line;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
}

@media(max-width:320px) {
	.lpvw {
		max-width:280px;
	}
}

@media(max-width:360px) {
	.c100m170px {
		width:100%;
		float:none;
	}
	.w170px {
		width: 145px;
		float:none;
	}
	input[type=text], input[type=email]{
		width:90%;
	}
	
	#addcat  {
		width:99%;
	}

	
	.inpg textarea {
		width: 99%;
	}
	
	.lpvw {
		max-width:310px;
	}
}

/* Стили для футера */
footer {
    margin-top: 4rem;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(0deg, rgba(3, 6, 23, 0.95) 0%, rgba(8, 20, 45, 0.85) 100%);
    border-top: 1px solid rgba(138, 43, 226, 0.4);
    border-radius: 2rem 2rem 0 0;
    backdrop-filter: blur(2px);
    position: relative;
}

/* Декоративная линия с градиентом как у логотипа */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        #0A66FF, 
        #8A2BE2, 
        #FFB347, 
        #8A2BE2, 
        #0A66FF, 
        transparent);
    border-radius: 2px;
}

footer ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

footer li {
    margin: 0;
}

footer a {
    color: #B9D0FF;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 0.25rem;
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
}

/* Эффект подчёркивания при наведении */
footer a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0A66FF, #FFB347);
    transition: width 0.3s ease;
}

footer a:hover {
    color: #FFC857;
}

footer a:hover::after {
    width: 100%;
}

/* Стиль для контактов (выделяем особо) */
footer a[href^="mailto"] {
    color: #FFC857;
    font-weight: 600;
}

footer a[href^="mailto"]::after {
    background: linear-gradient(90deg, #FFB347, #FF8C00);
}

/* Стили для счётчика LiveInternet */
footer a[target="_blank"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

footer a[target="_blank"]:hover {
    opacity: 1;
}

footer a[target="_blank"]::after {
    display: none;
}

footer img {
    filter: brightness(0.8) contrast(1.2);
    transition: filter 0.2s ease;
}

footer a[target="_blank"]:hover img {
    filter: brightness(1) contrast(1.2);
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    footer {
        padding: 2rem 1rem 1.5rem;
        margin-top: 3rem;
    }
    
    footer ul {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    footer li {
        width: 100%;
        max-width: 280px;
    }
    
    footer a {
        display: block;
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    footer a::after {
        bottom: 0;
        left: 25%;
        width: 50%;
    }
    
    footer a:hover::after {
        width: 50%;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    footer {
        padding: 1.5rem 1rem 1rem;
    }
    
    footer ul {
        gap: 0.75rem;
    }
}

/* Опционально: тёмная тематика для ссылок, которые уже посещены */
footer a:visited {
    color: #9A8FBF;
}

footer a:visited:hover {
    color: #FFC857;
}

/* Стиль для контейнера со счётчиком (если нужно центрирование) */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer ul {
    width: 100%;
}

footer a[target="_blank"] {
    margin-top: 2rem;
}


/** preview */
.night .lpvw {
	background: linear-gradient(239deg,#8849b4 0%,#735acd 50%,#5d6ae5 100%);
}
.night #lph, .night #lph a, .night #lph a:visited{
	color: #FFF;
}

.night #lphost {
	color: #FFF;
}

.night #lpt {
	color: #FFF;
}

.night #lpd {
	color: #FFF;
}

a.btn {
  color: #FFF !important;
  text-decoration: none;
  display: inline-block;
  line-height: 48px;
}
input[type="button"], a.btn {
  height: 48px;
  background-color: #007bff;
  color: #FFF;
  padding: 0px 14px;
  font-size: 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.tc {
	text-align:center;
}

.p10 {
	padding:10px;
}
.m10 {
	margin:10px;
}


/** video-block */
/* CSS-стили для блока с видео */
.videos-section {
    margin: 4rem 0 2rem;
    padding: 2rem;
    background: rgba(8, 20, 45, 0.45);
    backdrop-filter: blur(4px);
    border-radius: 2rem;
    border: 1px solid rgba(10, 102, 255, 0.25);
    position: relative;
    overflow: hidden;
}

/* Декоративный градиентный фон */
.videos-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.videos-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 179, 71, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.videos-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.videos-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(10, 102, 255, 0.2), rgba(138, 43, 226, 0.2));
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #FFC857;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 200, 87, 0.3);
    backdrop-filter: blur(2px);
}

.videos-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7AAEFF, #C273FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.videos-subtitle {
    color: #B9D0FF;
    font-size: 0.95rem;
    opacity: 0.9;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.video-card {
    background: linear-gradient(135deg, rgba(3, 6, 23, 0.7), rgba(8, 20, 45, 0.8));
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(10, 102, 255, 0.2);
    display: flex;
    gap: 1rem;
    backdrop-filter: blur(2px);
}

.video-card:hover {
    transform: translateY(-5px);
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 10px 25px -10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, rgba(3, 6, 23, 0.85), rgba(10, 66, 100, 0.6));
}

.video-icon {
    font-size: 2.5rem;
    min-width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(10, 102, 255, 0.2), rgba(138, 43, 226, 0.2));
    border-radius: 1rem;
    transition: transform 0.3s ease;
}

.video-card:hover .video-icon {
    transform: scale(1.05);
}

.video-content {
    flex: 1;
}

.video-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #FFDE9E;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.video-description {
    font-size: 0.85rem;
    color: #B0C4FF;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.video-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFC857;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.video-link:hover {
    color: #FFE5A3;
    gap: 0.75rem;
}

.video-arrow {
    transition: transform 0.2s ease;
}

.video-link:hover .video-arrow {
    transform: translateX(3px);
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .videos-section {
        margin: 2rem 0 1.5rem;
        padding: 1.5rem;
    }
    
    .videos-title {
        font-size: 1.6rem;
    }
    
    .videos-subtitle {
        font-size: 0.85rem;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .video-card {
        padding: 1.25rem;
    }
    
    .video-icon {
        font-size: 2rem;
        min-width: 45px;
        height: 45px;
    }
    
    .video-heading {
        font-size: 1rem;
    }
    
    .video-description {
        font-size: 0.8rem;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .videos-section {
        padding: 1rem;
    }
    
    .video-card {
        flex-direction: column;
        text-align: center;
    }
    
    .video-icon {
        margin: 0 auto;
    }
    
    .video-link {
        justify-content: center;
    }
}

/* Анимация появления карточек */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video-card {
    animation: fadeInUp 0.5s ease backwards;
}

.video-card:nth-child(1) { animation-delay: 0.1s; }
.video-card:nth-child(2) { animation-delay: 0.2s; }
.video-card:nth-child(3) { animation-delay: 0.3s; }
.video-card:nth-child(4) { animation-delay: 0.4s; }
/** /video-block */


/** web текст*/
/* CSS-стили для блока с редактором текстов */
.editor-section {
    margin: 3rem 0;
    position: relative;
}

.editor-container {
    background: linear-gradient(135deg, rgba(8, 20, 45, 0.7), rgba(3, 6, 23, 0.8));
    border-radius: 2rem;
    border: 1px solid rgba(138, 43, 226, 0.4);
    padding: 2.5rem;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.editor-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0A66FF, #8A2BE2, #FFB347, #8A2BE2, #0A66FF);
}

.editor-container::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.editor-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 179, 71, 0.15), rgba(138, 43, 226, 0.15));
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #FFC857;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 200, 87, 0.3);
    backdrop-filter: blur(2px);
}

.editor-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.editor-info {
    display: flex;
    flex-direction: column;
}

.editor-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.editor-highlight {
    background: linear-gradient(120deg, #7AAEFF, #C273FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}

.editor-description {
    color: #B9D0FF;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.inline-code {
    background: rgba(10, 102, 255, 0.2);
    padding: 0.2rem 0.4rem;
    border-radius: 0.4rem;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.85rem;
    color: #FFC857;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.editor-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.75rem;
    background: rgba(3, 6, 23, 0.4);
    border-radius: 1rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.feature-item:hover {
    background: rgba(10, 102, 255, 0.1);
    border-color: rgba(138, 43, 226, 0.3);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.5rem;
    min-width: 40px;
}

.feature-text {
    flex: 1;
}

.feature-text strong {
    display: block;
    color: #FFDE9E;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.feature-text span {
    display: block;
    color: #B0C4FF;
    font-size: 0.85rem;
    line-height: 1.4;
}

.editor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(95deg, #0A66FF, #7B2F9D);
    color: white;
    text-decoration: none;
    padding: 0.9rem 2rem;
    border-radius: 3rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(10, 102, 255, 0.3);
    align-self: flex-start;
}

.editor-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
    gap: 1rem;
}

.editor-button:active {
    transform: translateY(0);
}

/* Стили для превью редактора */
.editor-preview {
    background: rgba(3, 6, 23, 0.6);
    border-radius: 1.5rem;
    border: 1px solid rgba(138, 43, 226, 0.3);
    overflow: hidden;
    backdrop-filter: blur(4px);
}

.preview-header {
    background: rgba(8, 20, 45, 0.8);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(138, 43, 226, 0.3);
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FF5F57;
}

.preview-dot:nth-child(2) {
    background: #FFBD2E;
}

.preview-dot:nth-child(3) {
    background: #28C940;
}

.preview-title {
    color: #B9D0FF;
    font-size: 0.8rem;
    margin-left: 0.5rem;
    font-family: monospace;
}

.preview-content {
    padding: 1.5rem;
}

.preview-label {
    color: #FFC857;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
}

.preview-label:first-of-type {
    margin-top: 0;
}

.preview-code {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.75rem;
    border-radius: 0.75rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #B0C4FF;
    border-left: 3px solid #0A66FF;
    margin-bottom: 1rem;
    word-break: break-all;
}

.demo-link {
    color: #FFC857;
    text-decoration: underline;
    cursor: pointer;
}

.preview-result {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.75rem;
    border-radius: 0.75rem;
    color: #E0E7FF;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.demo-link-result {
    color: #FFC857;
    text-decoration: underline;
    cursor: pointer;
}

.preview-note {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 179, 71, 0.1), rgba(138, 43, 226, 0.05));
    border-radius: 0.75rem;
    border-left: 3px solid #FFB347;
}

.note-icon {
    font-size: 1.2rem;
}

.note-text {
    color: #B9D0FF;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Адаптация для планшетов */
@media (max-width: 968px) {
    .editor-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .editor-container {
        padding: 1.8rem;
    }
    
    .editor-button {
        align-self: center;
    }
    
    .editor-info {
        text-align: center;
    }
    
    .editor-features {
        text-align: left;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .editor-section {
        margin: 2rem 0;
    }
    
    .editor-container {
        padding: 1.5rem;
    }
    
    .editor-title {
        font-size: 1.6rem;
    }
    
    .editor-description {
        font-size: 0.9rem;
    }
    
    .feature-item {
        padding: 0.5rem;
    }
    
    .feature-icon {
        font-size: 1.2rem;
        min-width: 32px;
    }
    
    .feature-text strong {
        font-size: 0.9rem;
    }
    
    .feature-text span {
        font-size: 0.8rem;
    }
    
    .editor-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .preview-content {
        padding: 1rem;
    }
    
    .preview-code, .preview-result {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
}

/* Анимация появления */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.editor-section {
    animation: slideIn 0.6s ease-out;
}
/** /web текст*/


/** Список категорий */
/* Стили для блока категорий */
.cts {
    margin: 3rem 0 2rem;
    padding: 2rem;
    background: rgba(8, 20, 45, 0.45);
    backdrop-filter: blur(4px);
    border-radius: 2rem;
    border: 1px solid rgba(10, 102, 255, 0.25);
    position: relative;
    overflow: hidden;
}

/* Декоративный градиентный фон */
.cts::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cts::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 179, 71, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Стили для заголовка категорий */
.cts.seohead h2 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #7AAEFF, #C273FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 1.5rem 0;
    padding: 0;
    position: relative;
    display: inline-block;
}

.cts.seohead h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FFB347, #8A2BE2);
    border-radius: 3px;
}

/* Сетка категорий */
#catsv {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

#catsv li {
    margin: 0;
    padding: 0;
    transition: all 0.2s ease;
}

#catsv li a {
    display: block;
    padding: 0.6rem 1rem;
    color: #B9D0FF;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.75rem;
    background: rgba(3, 6, 23, 0.4);
    border: 1px solid rgba(10, 102, 255, 0.2);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* Эффект при наведении на ссылку */
#catsv li a:hover {
    color: #FFC857;
    background: linear-gradient(95deg, rgba(10, 102, 255, 0.2), rgba(138, 43, 226, 0.2));
    border-color: rgba(138, 43, 226, 0.5);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Активное состояние */
#catsv li a:active {
    transform: translateX(2px);
}

/* Посещённые ссылки */
#catsv li a:visited {
    color: #9A8FBF;
}

#catsv li a:visited:hover {
    color: #FFC857;
}

/* Добавляем иконки для категорий (опционально) */
#catsv li a::before {
    content: '▶';
    font-size: 0.65rem;
    margin-right: 0.5rem;
    opacity: 0;
    transition: all 0.2s ease;
    color: #FFB347;
}

#catsv li a:hover::before {
    opacity: 1;
    margin-right: 0.6rem;
}

/* Адаптация для планшетов */
@media (max-width: 968px) {
    .cts {
        margin: 2rem 0;
        padding: 1.5rem;
    }
    
    .cts.seohead h2 {
        font-size: 1.8rem;
    }
    
    #catsv {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 0.6rem;
    }
    
    #catsv li a {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .cts {
        margin: 1.5rem 0;
        padding: 1.2rem;
    }
    
    .cts.seohead h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .cts.seohead h2::after {
        width: 50px;
        bottom: -6px;
    }
    
    #catsv {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.5rem;
    }
    
    #catsv li a {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
        text-align: center;
    }
    
    #catsv li a::before {
        display: none;
    }
    
    #catsv li a:hover {
        transform: translateX(0) scale(1.02);
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .cts {
        padding: 1rem;
    }
    
    .cts.seohead h2 {
        font-size: 1.4rem;
        text-align: center;
        display: block;
    }
    
    .cts.seohead h2::after {
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
    }
    
    #catsv {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.4rem;
    }
    
    #catsv li a {
        padding: 0.45rem 0.5rem;
        font-size: 0.75rem;
    }
}

/* Анимация появления категорий */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#catsv li {
    animation: fadeInUp 0.3s ease backwards;
}

#catsv li:nth-child(1) { animation-delay: 0.02s; }
#catsv li:nth-child(2) { animation-delay: 0.04s; }
#catsv li:nth-child(3) { animation-delay: 0.06s; }
#catsv li:nth-child(4) { animation-delay: 0.08s; }
#catsv li:nth-child(5) { animation-delay: 0.10s; }
#catsv li:nth-child(6) { animation-delay: 0.12s; }
#catsv li:nth-child(7) { animation-delay: 0.14s; }
#catsv li:nth-child(8) { animation-delay: 0.16s; }
#catsv li:nth-child(9) { animation-delay: 0.18s; }
#catsv li:nth-child(10) { animation-delay: 0.20s; }
#catsv li:nth-child(11) { animation-delay: 0.22s; }
#catsv li:nth-child(12) { animation-delay: 0.24s; }
#catsv li:nth-child(13) { animation-delay: 0.26s; }
#catsv li:nth-child(14) { animation-delay: 0.28s; }
#catsv li:nth-child(15) { animation-delay: 0.30s; }
#catsv li:nth-child(16) { animation-delay: 0.32s; }
#catsv li:nth-child(17) { animation-delay: 0.34s; }
#catsv li:nth-child(18) { animation-delay: 0.36s; }
#catsv li:nth-child(19) { animation-delay: 0.38s; }
#catsv li:nth-child(20) { animation-delay: 0.40s; }
#catsv li:nth-child(21) { animation-delay: 0.42s; }
#catsv li:nth-child(22) { animation-delay: 0.44s; }
#catsv li:nth-child(23) { animation-delay: 0.46s; }
#catsv li:nth-child(24) { animation-delay: 0.48s; }
#catsv li:nth-child(25) { animation-delay: 0.50s; }
#catsv li:nth-child(26) { animation-delay: 0.52s; }
#catsv li:nth-child(27) { animation-delay: 0.54s; }
#catsv li:nth-child(28) { animation-delay: 0.56s; }
#catsv li:nth-child(29) { animation-delay: 0.58s; }
#catsv li:nth-child(30) { animation-delay: 0.60s; }
#catsv li:nth-child(31) { animation-delay: 0.62s; }
#catsv li:nth-child(32) { animation-delay: 0.64s; }
#catsv li:nth-child(33) { animation-delay: 0.66s; }
#catsv li:nth-child(34) { animation-delay: 0.68s; }
#catsv li:nth-child(35) { animation-delay: 0.70s; }
#catsv li:nth-child(36) { animation-delay: 0.72s; }
#catsv li:nth-child(37) { animation-delay: 0.74s; }
#catsv li:nth-child(38) { animation-delay: 0.76s; }
#catsv li:nth-child(39) { animation-delay: 0.78s; }
#catsv li:nth-child(40) { animation-delay: 0.80s; }
#catsv li:nth-child(41) { animation-delay: 0.82s; }
#catsv li:nth-child(42) { animation-delay: 0.84s; }

/* Стили для скролла, если категорий много (опционально) */
.cts {
    max-height: none;
    overflow: visible;
}

/* Добавляем плавный скролл при клике на категории (опционально) */
html {
    scroll-behavior: smooth;
}

/* Стили для фокуса (доступность) */
#catsv li a:focus {
    outline: 2px solid #FFB347;
    outline-offset: 2px;
    background: rgba(10, 102, 255, 0.3);
}


/** /Список категорий */


/** dlg custom */
.dl {
	background:#FFF;
	font-family:arial;
	font-size:12px;
	color:#000;
}

.cdl {
	padding: 5px 10px;
	width:calc(100vw - 40px);
}
.p8 {
	margin:5px 0;
}

.fr {
	float:right;
}
.fl {
	float:left;
}
.cl,.cf {
	clear:both;
}



input[type=button].qbtn {
  margin-right: 5px;
  width: 82px;
  background: linear-gradient(to bottom,#fcfcfd, #DEE5E8);
  border: 1px solid #548CAF;
  border-radius: 3px;
  font-size: 12px;
  font-family: Arial;
  line-height: 20px;
  height: 28px;
  color:#000;
}

input[type=button].qbtn:active{
	background: linear-gradient(to top, #72a0f0, white,white,white,white,white, #72a0f0);
}


.night .dl {
	background:#171130;
	color:#fff;
}
.night .dl a{
	color:#FFC857;
}

.night .landDlgMgr {
  position: absolute;
  box-shadow: 4px 7px 10px 2px #484f68;
}


.deci {
	display:inline-block;
	margin: 24px 0;
}


/* CSS-стили для блока подписки */
.subscribe-section {
    margin: 2rem 0 3rem;
    position: relative;
}

.subscribe-container {
    background: linear-gradient(135deg, rgba(10, 102, 255, 0.15), rgba(138, 43, 226, 0.15));
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 179, 71, 0.3);
    padding: 0.1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.subscribe-container:hover {
    border-color: rgba(255, 179, 71, 0.6);
    box-shadow: 0 0 20px rgba(255, 179, 71, 0.1);
}

/* Внутренний контент с градиентом */
.subscribe-content {
    background: linear-gradient(95deg, rgba(8, 20, 45, 0.9), rgba(3, 6, 23, 0.85));
    border-radius: 1.4rem;
    padding: 1.8rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 1;
}

/* Анимированная подсветка по краям */
.subscribe-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0A66FF, #8A2BE2, #FFB347, #8A2BE2, #0A66FF);
    border-radius: 1.6rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.subscribe-container:hover::before {
    opacity: 1;
}

.subscribe-icon {
    font-size: 3rem;
    min-width: 60px;
    text-align: center;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.subscribe-text {
    flex: 1;
    min-width: 200px;
}

.subscribe-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFDE9E;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.subscribe-description {
    color: #B9D0FF;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.subscribe-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(95deg, #FFB347, #FF8C00);
    color: #0A0F1F;
    text-decoration: none;
    padding: 0.85rem 1.8rem;
    border-radius: 3rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 179, 71, 0.3);
    white-space: nowrap;
}

.subscribe-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 179, 71, 0.5);
    gap: 1rem;
    background: linear-gradient(95deg, #FFC857, #FFA033);
}

.subscribe-button:active {
    transform: translateY(0);
}

/* Адаптация для планшетов */
@media (max-width: 768px) {
    .subscribe-section {
        margin: 1.5rem 0 2rem;
    }
    
    .subscribe-content {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .subscribe-icon {
        font-size: 2.5rem;
        min-width: auto;
    }
    
    .subscribe-title {
        font-size: 1.1rem;
    }
    
    .subscribe-description {
        font-size: 0.85rem;
    }
    
    .subscribe-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 480px) {
    .subscribe-section {
        margin: 1rem 0 1.5rem;
    }
    
    .subscribe-content {
        padding: 1.2rem;
    }
    
    .subscribe-icon {
        font-size: 2rem;
    }
    
    .subscribe-title {
        font-size: 1rem;
    }
    
    .subscribe-description {
        font-size: 0.8rem;
    }
    
    .subscribe-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
}

/* Анимация появления блока */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.subscribe-section {
    animation: slideInLeft 0.5s ease-out;
}
