/* --- Глобальные стили и переменные (v2.6 by Gemini) --- */
:root {
    --bg-dark-primary: #0f0f23;
    --bg-dark-secondary: #16213e;
    --bg-light: #ffffff;
    --bg-light-accent: #f8f9fa;
    --text-light: #e0e0e0;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --accent-primary: #ff6b35;
    --accent-secondary: #00e0c6;
    --font-primary: 'Montserrat', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    --container-width: 1200px;
    --border-radius-main: 15px;
    --shadow-light: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-dark: 0 15px 35px rgba(0, 0, 0, 0.25);
}

body {
    margin: 0;
    font-family: var(--font-primary);
    background-color: var(--bg-dark-primary);
    color: var(--text-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.site-wrapper {
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: var(--accent-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
    color: var(--text-muted);
}

.section-dark .section-subtitle {
    color: var(--text-light);
    opacity: 0.8;
}

.section-light {
    padding: 80px 0;
    background-color: var(--bg-light);
    color: var(--text-dark);
}
.section-dark {
    padding: 80px 0;
    background-color: var(--bg-dark-secondary);
    color: var(--text-light);
}


/* --- Кнопки --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: var(--bg-light) !important;
    border-color: var(--accent-primary);
}

.btn-primary:hover {
    background-color: #ff855a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background-color: var(--accent-secondary);
    color: var(--bg-dark-primary) !important;
    border-color: var(--accent-secondary);
}

.btn-secondary:hover {
    background-color: #33ffe0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 224, 198, 0.3);
}

.btn-light {
    background-color: var(--bg-light);
    color: var(--accent-primary) !important;
    border-color: var(--bg-light);
}

.btn-light:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}


.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-link {
    color: var(--accent-secondary);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: color 0.2s, transform 0.2s;
}
.btn-link:hover {
    transform: translateX(5px);
}
.section-dark .btn-link {
    color: var(--accent-secondary);
}
.section-light .btn-link {
    color: var(--accent-primary);
}
.section-dark .btn-link:hover {
    color: var(--text-light);
}
.section-light .btn-link:hover {
     color: var(--text-dark);
}


/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(15, 15, 35, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon-wrapper {
    width: 45px;
    height: 45px;
    margin-right: 15px;
    background: linear-gradient(45deg, var(--accent-primary), #f7931e);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}
.logo:hover .logo-icon-wrapper {
    transform: rotate(-15deg) scale(1.1);
}
.logo-icon-wrapper img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-light) !important;
    font-family: var(--font-mono);
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-secondary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero-section {
    padding-top: 150px;
    padding-bottom: 100px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 15, 35, 0.7);
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 50px;
}
.hero-text-content {
    flex: 1;
}

.hero-text-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero-text-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-light);
    opacity: 0.9;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-image-wrapper img {
    max-width: 100%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* --- About Section (Features) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--bg-light-accent);
    padding: 30px;
    border-radius: var(--border-radius-main);
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-light);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Demo Section --- */
.demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}
.demo-card {
    background: var(--bg-dark-primary);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}
.demo-card h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--accent-secondary);
    font-family: var(--font-mono);
}
.demo-card p {
    color: var(--text-light);
    opacity: 0.8;
}
.demo-card ul {
    padding-left: 20px;
    color: var(--text-light);
    opacity: 0.8;
}
.demo-card a:not(.btn) {
    color: var(--accent-secondary);
}
.demo-card img {
    max-width: 100%;
    border-radius: 5px;
    margin-top: 15px;
}
.demo-button-container {
    margin-top: 20px;
}
.demo-table-wrapper {
    background: var(--bg-dark-primary);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
}
.demo-table-wrapper h4 {
     margin-top: 0;
    margin-bottom: 15px;
    color: var(--accent-secondary);
    font-family: var(--font-mono);
}
.table-container-scrollable {
    overflow-x: auto;
}
.table-container-scrollable table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}
.table-container-scrollable th,
.table-container-scrollable td {
    border: 1px solid #343a40;
    padding: 10px 15px;
    text-align: left;
}
.table-container-scrollable th {
    background-color: #1a1a2e;
    font-family: var(--font-mono);
}

/* --- Skills Section --- */
.skills-json-editor {
    margin-bottom: 30px;
    background: #e9ecef;
    padding: 15px;
    border-radius: 5px;
}
.skills-json-editor label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
.skills-json-editor textarea {
    width: 100%;
    min-height: 180px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    resize: vertical;
}
.skills-json-editor small {
    display: block;
    margin-top: 5px;
    color: var(--text-muted);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-item {
    margin-bottom: 10px;
}
.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}
.skill-name {
    font-weight: 500;
}
.skill-level {
    font-family: var(--font-mono);
    font-weight: 700;
}
.skill-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}
.skill-bar-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    border-radius: 5px;
}

/* --- Portfolio Section (v2.6 NEW STYLES) --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-card {
    border-radius: var(--border-radius-main);
    background-color: var(--bg-dark-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}

.portfolio-card a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.portfolio-card-image-wrapper {
    width: 100%;
    padding-top: 65%; /* Aspect ratio control */
    position: relative;
    overflow: hidden;
}

.portfolio-card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-card-image-wrapper img {
    transform: scale(1.05);
}

.portfolio-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows content to take up remaining space */
}

.portfolio-card-content h3 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 10px;
    color: #fff !important; 
}

.portfolio-card-content p {
    font-size: 0.95rem;
    opacity: 0.8;
    color: var(--text-light) !important;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

.portfolio-card-button-wrapper {
    margin-top: auto;
}

/* --- Workflow Section --- */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    counter-reset: workflow-counter;
}
.workflow-step {
    background-color: #ffffff;
    padding: 30px;
    border-radius: var(--border-radius-main);
    border: 1px solid #e9ecef;
    position: relative;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.workflow-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-light);
}
.workflow-step::before {
    counter-increment: workflow-counter;
    content: "0" counter(workflow-counter);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    font-weight: 900;
    color: #e9ecef;
    font-family: var(--font-mono);
}
.workflow-icon {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 20px;
}
.workflow-step h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.workflow-step p {
    font-size: 0.9rem;
}


/* --- Video Section (v2.6 NEW STYLES) --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.video-card {
    border-radius: var(--border-radius-main);
    overflow: hidden;
    background-color: var(--bg-dark-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
}
.video-card .video-card-link {
    text-decoration: none;
    color: var(--text-light);
}
.video-thumbnail {
    position: relative;
    display: block;
    background-color: #000;
}
.video-thumbnail img {
    width: 100%;
    display: block;
    transition: opacity 0.3s ease;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.video-card-link:hover .video-thumbnail img {
    opacity: 0.8;
}
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 107, 53, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    transition: background-color 0.3s, transform 0.3s;
    backdrop-filter: blur(4px);
}
.video-card-link:hover .play-icon {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: rgba(255, 107, 53, 1);
}
.video-card h4 {
    margin: 0;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 500;
    background-color: var(--bg-dark-primary);
    color: var(--text-light) !important;
    transition: color 0.3s;
}
.video-card-link:hover h4 {
    color: var(--accent-secondary) !important;
}

/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: var(--bg-light-accent);
    padding: 30px;
    border-radius: var(--border-radius-main);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}
.testimonial-quote {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 25px;
    position: relative;
    padding-left: 35px;
    flex-grow: 1;
}
.testimonial-quote::before {
    content: '“';
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--accent-primary);
    opacity: 0.5;
    position: absolute;
    top: -15px;
    left: 0;
    line-height: 1;
}
.testimonial-author-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
}
.testimonial-author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
}
.testimonial-author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.testimonial-author-name {
    font-weight: 700;
}
.testimonial-author-company {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- CTA Section --- */
.section-cta {
    padding: 60px 0;
    text-align: center;
    background-color: var(--accent-primary);
    color: var(--bg-light);
}
.section-cta h2 {
    font-size: 2.2rem;
    margin-top: 0;
    margin-bottom: 15px;
}
.section-cta p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* --- Footer --- */
.footer {
    padding: 30px 0;
    background-color: var(--bg-dark-primary);
    color: var(--text-light);
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.7;
}
.footer-search .search-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--bg-dark-secondary);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}
.footer-search .search-input {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 8px 15px;
    outline: none;
    font-family: var(--font-primary);
    width: 150px;
    transition: width 0.3s ease-in-out;
}
.footer-search .search-input:focus {
    width: 200px;
}
.footer-search .search-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 8px 15px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
}
.footer-search .search-btn:hover {
    color: var(--accent-secondary);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .main-nav { display: none; }
    .header-contact { margin-left: auto; }
}
@media (max-width: 992px) {
    .section-title { font-size: 2rem; }
    .hero-text-content h1 { font-size: 2.8rem; }
    .hero-container { flex-direction: column; text-align: center; }
    .hero-image-wrapper { margin-top: 50px; }
    .hero-text-content .btn { margin: 0 auto; }
}
@media (max-width: 768px) {
    .demo-grid, .workflow-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; text-align: center; }
    .header-contact { display: none; }
    .logo-text { font-size: 1.2rem; }
    .logo-icon-wrapper { width: 40px; height: 40px; }
}
@media (max-width: 576px) {
    .section-title { font-size: 1.8rem; }
    .hero-text-content h1 { font-size: 2.2rem; }
    .hero-text-content p { font-size: 1rem; }
    .portfolio-grid, .video-grid, .skills-grid { grid-template-columns: 1fr; }
    .footer p { font-size: 0.8rem; }
}

/* --- Стили для живого HTML логотипа в Hero секции --- */
.hero-live-logo .logo-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
    max-width: 500px;
    margin: 0 auto;
}
.hero-live-logo .icon-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 25px;
}
.hero-live-logo .center-image {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}
.hero-live-logo .domain-name {
    font-size: 42px;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b35, #f7931e, #dc143c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback */
    margin-bottom: 10px;
    letter-spacing: 1px;
    animation: glow 2s ease-in-out infinite alternate;
}
.hero-live-logo .tagline {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 0.5px;
}
.hero-live-logo .main-icon {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b35, #f7931e, #1a1a2e, #16213e);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    animation: pulse 3s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
    border: 2px solid rgba(255, 107, 53, 0.3);
    padding: 30px;
    box-sizing: border-box;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.hero-live-logo .center-image:hover {
    transform: scale(1.1) rotate(5deg) translateY(5px);
}
.hero-live-logo .tech-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}
.hero-live-logo .code-bracket {
    position: absolute;
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
    font-weight: bold;
    animation: rotate 8s linear infinite;
}
.hero-live-logo .bracket-1 { top: 10px; left: 10px; }
.hero-live-logo .bracket-2 { bottom: 10px; right: 10px; transform: rotate(180deg); }
@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.hero-live-logo .pixel-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.3;
}
.hero-live-logo .brand-text {
    text-align: center;
}
@keyframes glow {
    from { filter: brightness(1); }
    to { filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 107, 53, 0.5)); }
}
.hero-live-logo .shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s ease-in-out infinite;
}
@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}
.hero-live-logo .lightning-gif {
    position: absolute;
    top: -30px; 
    left: 50%;
    width: 180px;
    height: auto;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 10;
    filter: drop-shadow(0 0 8px rgba(180, 220, 255, 0.8));
    animation: lightning-flicker 4.5s infinite;
    opacity: 0;
}
@keyframes lightning-flicker {
    0%, 100%, 88% { opacity: 0; }
    89% { opacity: 1; transform: translateX(-50%) scale(1); }
    91% { opacity: 0.5; }
    93% { opacity: 1; transform: translateX(-45%) scale(1.1); }
    95% { opacity: 0; }
}
.hero-live-logo .bottom-star-badge {
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 35px;
    height: 35px;
    background: radial-gradient(circle at center, rgba(255, 200, 100, 1) 0%, rgba(255, 107, 53, 1) 40%, rgba(238, 90, 36, 0) 75%);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: star-pulse 3s ease-in-out infinite;
}
@keyframes star-pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.8;
        filter: drop-shadow(0 0 4px rgba(255, 150, 50, 0.5));
    }
    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 1;
        filter: drop-shadow(0 0 12px rgba(255, 150, 50, 0.8));
    }
}

/* --- Стили для подсветки поиска --- */
.search-highlight {
    background-color: yellow;
    color: black;
    font-weight: bold;
    padding: 1px 0;
    border-radius: 2px;
}
.search-highlight.active {
    background-color: orange;
    box-shadow: 0 0 8px orange;
}

/* --- Стили для принудительного применения цвета текста из редактора --- */
[data-text-color] * {
    color: inherit !important;
}