/* Education — aliases на глобальну систему тем (themes.css) */
:root {
    --primary-color: var(--accent-primary);
    --secondary-color: var(--accent-secondary);
    --accent-color: var(--error);
    --warning-color: var(--warning);
    --success-color: var(--success);
    --error-color: var(--error);
    --border-color: var(--border-card);
    --border-hover: var(--accent-primary);
    --shadow-sm: var(--shadow-primary);
    --shadow-md: var(--shadow-card);
    --shadow-lg: var(--shadow-card);
    --shadow-glow: var(--shadow-accent);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.education-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Header/nav — css/shared-layout.css */

/* Splash Screen */
.splash-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-splash);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.logo-animation {
    position: relative;
    margin-bottom: 2rem;
}

.splash-logo {
    animation: rotate 3s linear infinite;
    filter: drop-shadow(var(--shadow-glow));
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    animation: pulse 2s infinite;
}

.pulse-ring-delay {
    animation-delay: 1s;
}

.splash-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(2) { animation-delay: -0.32s; }
.loading-dots span:nth-child(3) { animation-delay: -0.16s; }

/* Не застосовувати глобальні стилі калькулятора до контенту education */
body.education-page .education-main h1,
body.education-page .education-main h2 {
    animation: none;
    text-shadow: none;
}

/* Main layout */
.education-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

/* Hero */
.hero-section {
    background: var(--edu-hero-bg);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, var(--edu-hero-pattern) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0 auto 1.75rem;
    max-width: 640px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    min-width: 120px;
    padding: 1rem 1.25rem;
    background: var(--edu-card-bg);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    box-shadow: var(--shadow-primary);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.25rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--border-card);
    background: var(--edu-card-bg);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-link:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
    color: var(--text-accent);
}

/* Section navigation */
.education-nav {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.nav-section-btn {
    background: var(--edu-card-bg);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-align: left;
    color: var(--text-primary);
    box-shadow: var(--shadow-primary);
}

.nav-section-btn:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.nav-section-btn.active {
    background: var(--edu-nav-active);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-accent);
}

.btn-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.btn-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.btn-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Sections */
.education-section {
    display: none;
    animation: fadeInUp 0.45s ease;
}

.education-section.active {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* Tutorials */
.tutorial-filters {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.filter-btn {
    background: var(--edu-card-bg);
    border: 1px solid var(--border-card);
    border-radius: 999px;
    padding: 0.55rem 1.15rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.88rem;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--edu-card-hover);
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.tutorial-card {
    background: var(--edu-card-bg);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 1.5rem;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
    content-visibility: auto;
    contain-intrinsic-size: 280px;
}

.tutorial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.tutorial-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.tutorial-card:hover::before {
    transform: scaleX(1);
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.tutorial-icon {
    font-size: 2rem;
    line-height: 1;
}

.difficulty-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.difficulty-badge.beginner {
    background: var(--status-ok-bg);
    color: var(--status-ok-text);
    border: 1px solid var(--status-ok-border);
}

.difficulty-badge.intermediate {
    background: var(--status-warn-bg);
    color: var(--status-warn-text);
    border: 1px solid var(--status-warn-border);
}

.difficulty-badge.advanced {
    background: var(--status-bad-bg);
    color: var(--status-bad-text);
    border: 1px solid var(--status-bad-border);
}

.tutorial-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: var(--text-primary);
}

.tutorial-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.55;
    font-size: 0.92rem;
}

.tutorial-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.start-tutorial-btn {
    width: 100%;
    background: var(--bg-button);
    border: none;
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    color: var(--text-on-accent);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    font-size: 0.88rem;
}

.start-tutorial-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
    background: var(--bg-button-hover);
}

/* FPV шпаргалка */
.fpv-quick-ref {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--edu-card-bg);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    box-shadow: var(--shadow-primary);
}

.quick-ref-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: center;
}

.quick-ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
}

/* Calculator presets */
.calc-presets-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--edu-card-bg);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    box-shadow: var(--shadow-primary);
}

.presets-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 720px;
    margin: 0 auto 1.25rem;
    line-height: 1.55;
}

.presets-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.preset-filter-btn {
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--border-card);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.preset-filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-accent);
}

.preset-filter-btn.active {
    background: var(--edu-nav-active);
    border-color: var(--accent-primary);
    color: var(--text-accent);
}

.presets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.presets-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 1.5rem;
}

.preset-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.1rem 1.15rem;
    border-radius: 14px;
    border: 1px solid var(--border-card);
    background: var(--bg-secondary);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.preset-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.preset-card-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.preset-icon {
    font-size: 1.75rem;
    line-height: 1;
    flex-shrink: 0;
}

.preset-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.2rem;
}

.preset-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
}

.preset-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.preset-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.preset-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--edu-nav-active);
    color: var(--text-accent);
    border: 1px solid var(--border-accent);
}

.preset-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.preset-btn {
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.preset-btn-primary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.85rem;
    text-decoration: none;
    background: var(--bg-button);
    color: var(--text-on-accent);
    border: 1px solid var(--border-accent);
}

.preset-btn-primary:hover {
    background: var(--bg-button-hover);
    transform: translateY(-1px);
    color: var(--text-on-accent);
}

.preset-btn-copy {
    width: 42px;
    padding: 0.55rem;
    border: 1px solid var(--border-card);
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.preset-btn-copy:hover {
    border-color: var(--accent-primary);
}

/* Diagnostics */
.diagnostics-root {
    max-width: 720px;
    margin: 0 auto;
}

.diag-card {
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-card);
    background: var(--edu-card-bg);
    box-shadow: var(--shadow-primary);
}

.diag-progress {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.diag-back-link {
    background: none;
    border: none;
    color: var(--accent-primary);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0;
}

.diag-question {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.diag-subtitle,
.diag-hint {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.diag-hint {
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.diag-options {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.diag-option-btn {
    text-align: left;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-card);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.diag-option-btn:hover {
    border-color: var(--accent-primary);
    background: var(--edu-nav-active);
    transform: translateX(4px);
}

.diag-reset-btn {
    margin-top: 1.25rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-card);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
}

.diag-reset-btn:hover {
    color: var(--text-accent);
    border-color: var(--accent-primary);
}

.diag-result-badge {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.diag-result-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--text-primary);
}

.diag-summary {
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 1rem;
}

.diag-causes h4,
.diag-actions h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.diag-causes ul {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.diag-action-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.diag-action-link {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    background: var(--bg-button);
    color: var(--text-on-accent);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid var(--border-accent);
    transition: background 0.2s ease;
}

.diag-action-link:hover {
    background: var(--bg-button-hover);
    color: var(--text-on-accent);
}

.diag-action-tip {
    display: block;
    padding: 0.45rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-left: 3px solid var(--accent-primary);
    padding-left: 0.75rem;
}

.diag-result-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-card);
}

.diag-back-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-card);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}

.diag-error { border-left: 4px solid var(--error); }
.diag-warning { border-left: 4px solid var(--warning); }
.diag-info { border-left: 4px solid var(--accent-primary); }

/* Checklists */
.checklists-root {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.checklist-card {
    border: 1px solid var(--border-card);
    border-radius: 16px;
    background: var(--edu-card-bg);
    box-shadow: var(--shadow-primary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.checklist-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.15rem 1.15rem 0.75rem;
    border-bottom: 1px solid var(--border-card);
}

.checklist-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.checklist-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}

.checklist-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.45;
}

.checklist-progress {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border: 1px solid var(--border-card);
}

.checklist-progress-done {
    background: var(--edu-nav-active);
    color: var(--success);
    border-color: var(--success);
}

.checklist-items {
    padding: 0.75rem 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.5rem 0.35rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.checklist-item:hover {
    background: var(--nav-link-hover);
}

.checklist-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checklist-check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 2px solid var(--border-accent);
    border-radius: 5px;
    margin-top: 1px;
    position: relative;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.checklist-item input:checked + .checklist-check {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checklist-item input:checked + .checklist-check::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-on-accent);
}

.checklist-item input:checked ~ .checklist-text {
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: var(--text-muted);
}

.checklist-item-critical .checklist-text {
    font-weight: 600;
}

.checklist-text {
    font-size: 0.88rem;
    color: var(--text-primary);
    line-height: 1.45;
}

.checklist-item-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 700;
    margin-left: 0.25rem;
}

.checklist-footer {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.15rem 1rem;
    border-top: 1px solid var(--border-card);
}

.checklist-reset-btn,
.checklist-print-btn {
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--border-card);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.checklist-reset-btn:hover,
.checklist-print-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-accent);
}

@media print {
    body.education-page * {
        visibility: hidden;
    }
    body.education-page .checklist-print-target,
    body.education-page .checklist-print-target * {
        visibility: visible;
    }
    body.education-page .checklist-print-target {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: none;
        box-shadow: none;
    }
    body.education-page .checklist-footer {
        display: none;
    }
}

/* Calculator results guide */
.calculator-guide-root {
    max-width: 900px;
    margin: 0 auto;
}

.guide-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.guide-intro a {
    color: var(--accent-primary);
}

.guide-block {
    margin-bottom: 1.75rem;
    padding: 1.35rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border-card);
    background: var(--edu-card-bg);
    box-shadow: var(--shadow-primary);
}

.guide-block-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-card);
}

.guide-lead {
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 1rem;
}

.guide-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.guide-status-card h4 {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0.75rem 0 0.35rem;
    color: var(--text-primary);
}

.guide-status-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

.guide-status-demo {
    pointer-events: none;
    min-height: 56px;
    cursor: default;
}

.guide-status-demo.channel-card:hover {
    transform: none;
}

.guide-callout {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: var(--edu-nav-active);
    border: 1px solid var(--border-accent);
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.guide-table-wrap {
    overflow-x: auto;
    margin: 1rem 0;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.guide-table th,
.guide-table td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-card);
}

.guide-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.guide-table td {
    color: var(--text-secondary);
}

.guide-example {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-card);
}

.guide-example h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.guide-example p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 0.75rem;
}

.guide-list {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

.guide-list a {
    color: var(--accent-primary);
}

.guide-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.guide-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.guide-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-button);
    color: var(--text-on-accent);
    font-size: 0.8rem;
    font-weight: 800;
}

.guide-action-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    background: var(--bg-button);
    color: var(--text-on-accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-accent);
    transition: background 0.2s ease;
}

.guide-action-link:hover {
    background: var(--bg-button-hover);
    color: var(--text-on-accent);
}

.guide-action-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-card);
}

.guide-action-secondary:hover {
    background: var(--edu-nav-active);
    color: var(--text-accent);
}

.guide-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-card);
}

.guide-decision {
    border-color: var(--border-accent);
}

@media (max-width: 600px) {
    .guide-status-grid {
        grid-template-columns: 1fr;
    }
}

.quick-ref-card {
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--edu-inset);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.quick-ref-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.quick-ref-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.35rem;
}

.quick-ref-card h3 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.quick-ref-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

.quick-ref-card a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.quick-ref-card a:hover {
    text-decoration: underline;
}

/* Knowledge articles grid */
.knowledge-articles h3 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.article-card {
    background: var(--edu-inset);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-primary);
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.article-header h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    flex: 1;
}

.article-preview {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

.read-article-btn {
    align-self: flex-start;
    background: transparent;
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.read-article-btn:hover {
    background: var(--edu-card-hover);
    border-color: var(--accent-primary);
}

.article-full .article-content {
    color: var(--text-secondary);
    line-height: 1.65;
}

.article-full .difficulty-badge {
    margin-bottom: 1rem;
    display: inline-block;
}

.edu-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.edu-info-card {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--edu-inset);
}

.edu-info-card strong {
    display: block;
    color: var(--accent-primary);
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}

.edu-info-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.45;
}

.knowledge-content a {
    color: var(--accent-primary);
    font-weight: 600;
}

.spectrum-chart .spectrum-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.88rem;
}

@media (max-width: 1024px) {
    .education-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .knowledge-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .knowledge-categories {
        grid-template-columns: 1fr;
    }
}

/* Glossary Section */
.glossary-search {
    margin-bottom: 3rem;
}

.glossary-search input {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 1.25rem;
    display: block;
    background: var(--bg-input);
    border: 1px solid var(--border-input);
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.glossary-search input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-accent);
}

.alphabet-filter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.alphabet-btn {
    background: var(--edu-card-bg);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    min-width: 38px;
    font-size: 0.88rem;
}

.alphabet-btn:hover,
.alphabet-btn.active {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--edu-card-hover);
}

.glossary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.glossary-term {
    background: var(--edu-card-bg);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 1.25rem;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    content-visibility: auto;
}

.glossary-term:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.glossary-term h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.35rem;
}

.glossary-term .term-category {
    display: inline-block;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: var(--edu-inset);
}

.glossary-term p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Simulator Section */
.simulator-dashboard {
    display: grid;
    grid-template-columns: minmax(260px, 320px) 1fr;
    gap: 1.25rem;
    min-height: 520px;
}

.simulator-controls h3 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.scenario-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.scenario-card {
    background: var(--edu-card-bg);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    padding: 1.15rem;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    box-shadow: var(--shadow-primary);
}

.scenario-card:hover {
    border-color: var(--accent-primary);
    transform: translateX(3px);
    box-shadow: var(--shadow-card);
}

.scenario-card.active {
    border-color: var(--accent-primary);
    background: var(--edu-nav-active);
    box-shadow: var(--shadow-accent);
}

.scenario-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.scenario-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.scenario-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.start-scenario-btn {
    width: 100%;
    background: var(--bg-button);
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1rem;
    color: var(--text-on-accent);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 0.85rem;
}

.start-scenario-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
    background: var(--bg-button-hover);
}

.simulator-workspace {
    background: var(--edu-card-bg);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    box-shadow: var(--shadow-primary);
}

.no-scenario {
    text-align: center;
    color: var(--text-muted);
}

.no-scenario-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-scenario h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Knowledge Base Section */
.knowledge-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.category-card {
    background: var(--edu-card-bg);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    box-shadow: var(--shadow-primary);
}

.category-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.category-card.active {
    border-color: var(--accent-primary);
    background: var(--edu-nav-active);
    box-shadow: var(--shadow-accent);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.category-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.articles-count {
    display: inline-block;
    background: var(--bg-button);
    color: var(--text-on-accent);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.knowledge-content {
    background: var(--edu-card-bg);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    min-height: 320px;
    box-shadow: var(--shadow-primary);
    line-height: 1.65;
}

.knowledge-content h3,
.knowledge-content h4,
.knowledge-content h5 {
    color: var(--text-primary);
    margin: 1.25rem 0 0.65rem;
}

.knowledge-content p,
.knowledge-content li {
    color: var(--text-secondary);
}

.formula-box {
    background: var(--panel-bg-soft);
    border: 1px solid var(--border-card);
    border-left: 4px solid var(--accent-primary);
    border-radius: 10px;
    padding: 1rem 1.15rem;
    margin: 1rem 0;
}

.formula {
    font-family: ui-monospace, monospace;
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-weight: 700;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    z-index: 10000;
    backdrop-filter: blur(6px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-modal);
    border: 1px solid var(--border-card);
    border-radius: 18px;
    max-width: 820px;
    width: min(92%, 820px);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-card);
    animation: slideInUp 0.3s ease;
}

.modal-header {
    padding: 1.25rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    background: var(--bg-modal);
    z-index: 1;
}

.modal-header h2 {
    color: var(--accent-primary);
    font-size: 1.25rem;
    font-weight: 700;
}

.close-modal {
    background: var(--edu-inset);
    border: 1px solid var(--border-card);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.close-modal:hover {
    color: var(--error);
    border-color: var(--error);
}

.modal-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.tutorial-progress {
    margin-bottom: 2rem;
}

.progress-bar {
    background: var(--edu-inset);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.progress-fill {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tutorial-content {
    margin-bottom: 2rem;
    min-height: 200px;
}

.tutorial-controls {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.tutorial-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 120px;
}

.tutorial-btn.primary {
    background: var(--bg-button);
    color: var(--text-on-accent);
    border: none;
}

.tutorial-btn.secondary {
    background: var(--edu-card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-card);
}

.tutorial-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.tutorial-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
.education-footer {
    margin-top: 3rem;
    padding: 1.5rem 1rem;
    text-align: center;
    border-top: 1px solid var(--border-card);
    background: var(--edu-card-bg);
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

@keyframes textShine {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .education-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .education-main {
        padding: 1rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .education-nav {
        grid-template-columns: 1fr;
    }

    .tutorials-grid {
        grid-template-columns: 1fr;
    }

    .simulator-dashboard {
        grid-template-columns: 1fr;
    }

    .scenario-grid {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .scenario-card {
        min-width: 220px;
        flex-shrink: 0;
    }

    .knowledge-categories {
        grid-template-columns: 1fr;
    }

    .tutorial-controls {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .tutorial-card,
    .glossary-term,
    .category-card {
        padding: 1rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeInUp 0.5s ease;
}

.glow {
    box-shadow: var(--shadow-glow) !important;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

/* Стилі для нових статей про дальність та VRX */
.range-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.range-category {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(26, 26, 46, 0.8));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.range-category h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.range-specs p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.real-examples {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.real-examples ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.digital-systems {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.digital-system {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1), rgba(26, 26, 46, 0.8));
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.digital-system h5 {
    color: #ffa500;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.system-specs p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.real-performance {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 165, 0, 0.2);
}

.range-factors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.factor-group {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
}

.factor-group h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.practical-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tip-category {
    background: linear-gradient(135deg, rgba(0, 255, 127, 0.1), rgba(26, 26, 46, 0.8));
    border: 1px solid rgba(0, 255, 127, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
}

.tip-category h5 {
    color: #00ff7f;
    margin-bottom: 1rem;
}

/* Стилі для VRX розширення */
.vrx-enhancement {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.enhancement-method {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(26, 26, 46, 0.8));
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.enhancement-method h5 {
    color: #8a2be2;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.lna-specs p, .filter-specs p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.lna-examples, .filter-examples {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
}

.antenna-upgrades {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.antenna-type {
    background: rgba(26, 26, 46, 0.6);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 10px;
    padding: 1rem;
}

.antenna-type h6 {
    color: #8a2be2;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.antenna-type p {
    margin: 0.3rem 0;
    font-size: 0.9rem;
}

/* Стилі для порівняння систем */
.system-comparison {
    margin: 2rem 0;
}

.comparison-table {
    overflow-x: auto;
    background: rgba(26, 26, 46, 0.6);
    border-radius: 15px;
    padding: 1rem;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
}

.comparison-table th {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.comparison-table tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

/* Стилі для сценаріїв використання */
.usage-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.scenario {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.1), rgba(26, 26, 46, 0.8));
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.scenario h5 {
    color: #ff4500;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.scenario-recommendation ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.setup-example {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(26, 26, 46, 0.6);
    border-radius: 10px;
    border-left: 4px solid #ff4500;
}

/* Стилі для вартісного аналізу */
.cost-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.cost-category {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(26, 26, 46, 0.8));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
}

.cost-category h5 {
    color: #ffd700;
    margin-bottom: 1rem;
}

.cost-category ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

/* Стилі для рекомендацій */
.setup-recommendations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.setup-tip {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), rgba(26, 26, 46, 0.8));
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
}

.setup-tip h5 {
    color: #00ffff;
    margin-bottom: 1rem;
}

.setup-tip ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.setup-tip li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Адаптивність для нових елементів */
@media (max-width: 768px) {
    .range-comparison,
    .digital-systems,
    .vrx-enhancement,
    .usage-scenarios,
    .cost-analysis,
    .setup-recommendations {
        grid-template-columns: 1fr;
    }
    
    .antenna-upgrades {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem;
    }
}

/* Стилі для нових туториалів - Групові польоти */
.group-flight-planning {
    margin: 2rem 0;
}

.planning-steps {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.step-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(26, 26, 46, 0.8));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--bg-primary);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    margin-bottom: 1rem;
}

.pilot-count-demo {
    margin: 1.5rem 0;
}

.pilot-count-demo label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.pilot-count-demo input[type="range"] {
    flex: 1;
    height: 6px;
    background: var(--edu-card-bg);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.pilot-count-demo input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.pilot-visualization {
    margin-top: 1rem;
}

.pilot-avatars {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.pilot-avatar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-primary);
    padding: 1rem;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    animation: bounce 2s infinite;
}

.frequency-range-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.range-option {
    background: var(--edu-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.range-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.range-option h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.range-option p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.channel-distribution {
    margin: 2rem 0;
}

.distribution-rules {
    margin-bottom: 2rem;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.rule-item {
    background: var(--edu-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.rule-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.rule-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.rule-item h5 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.channel-assignment-demo {
    background: var(--edu-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.assignment-controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-weight: 500;
    color: var(--text-secondary);
}

.control-group input,
.control-group select {
    padding: 0.8rem;
    background: var(--panel-bg-soft);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-fast);
}

.control-group input:focus,
.control-group select:focus {
    border-color: var(--primary-color);
}

.generate-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-primary);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 1rem;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.assignment-table {
    background: var(--panel-bg-soft);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 2rem;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    background: var(--primary-color);
    color: var(--bg-primary);
    padding: 1rem;
    font-weight: bold;
}

.table-body {
    max-height: 300px;
    overflow-y: auto;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.table-row:hover {
    background: var(--edu-card-bg);
}

.coordination-strategies {
    margin: 2rem 0;
}

.strategy-section {
    margin-bottom: 2rem;
}

.pre-flight-checklist {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--edu-card-bg);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.checklist-item:hover {
    background: var(--panel-bg-soft);
}

.checklist-item input[type="checkbox"] {
    accent-color: var(--primary-color);
    transform: scale(1.2);
}

.checklist-item label {
    color: var(--text-secondary);
    cursor: pointer;
    flex: 1;
}

.flight-coordination {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.coordination-tip {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--edu-card-bg);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.coordination-tip:hover {
    transform: translateY(-2px);
    border: 1px solid var(--primary-color);
}

.tip-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.tip-content h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.signal-monitoring {
    margin: 2rem 0;
}

.monitoring-demo {
    background: var(--edu-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
}

.signal-quality-display {
    margin-bottom: 2rem;
}

.quality-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.quality-bar {
    flex: 1;
    height: 20px;
    background: var(--panel-bg-soft);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
}

.quality-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #4CAF50, #FF9800, #FF5722, #F44336);
    transition: var(--transition-smooth);
}

.quality-text {
    font-weight: bold;
    min-width: 120px;
}

.interference-alerts {
    margin-top: 1rem;
}

.alert-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--panel-bg-soft);
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition-fast);
}

/* Стилі для туториалу Поширення сигналів */
.propagation-principles {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.principle-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(26, 26, 46, 0.8));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.principle-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.principle-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.principle-visual {
    margin: 1.5rem 0;
    text-align: center;
}

.line-of-sight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.transmitter, .receiver {
    font-size: 2rem;
    padding: 1rem;
    background: var(--edu-card-bg);
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.signal-line {
    flex: 1;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    position: relative;
    animation: signalPulse 2s infinite;
}

@keyframes signalPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.reflection-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.reflection-path {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.path-segment {
    flex: 1;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.reflection-point {
    font-size: 1.5rem;
    padding: 0.5rem;
    background: var(--edu-card-bg);
    border-radius: 50%;
}

.principle-formula {
    background: var(--edu-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.principle-formula strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.reflection-factors {
    margin: 1rem 0;
}

.reflection-factors h5 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.reflection-factors ul {
    padding-left: 1.5rem;
}

.reflection-factors li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.atmospheric-effects {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.effect-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    background: var(--edu-card-bg);
    border-radius: 8px;
}

.effect-name {
    font-weight: 500;
    color: var(--text-secondary);
}

.effect-impact {
    color: var(--primary-color);
    font-weight: 500;
}

.geographic-factors {
    margin: 2rem 0;
}

.factor-section {
    margin-bottom: 3rem;
}

.terrain-effects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.terrain-type {
    background: var(--edu-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.terrain-type:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.terrain-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.terrain-type h5 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.terrain-impact {
    margin-top: 1rem;
    padding: 0.8rem;
    background: var(--panel-bg-soft);
    border-radius: 8px;
    font-weight: 500;
}

.urban-obstacles {
    margin: 1.5rem 0;
}

.obstacle-analysis h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.obstacle-table {
    background: var(--panel-bg-soft);
    border-radius: 12px;
    overflow: hidden;
}

.obstacle-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.obstacle-row:hover {
    background: var(--edu-card-bg);
}

.obstacle-row:first-child {
    background: var(--primary-color);
    color: var(--bg-primary);
    font-weight: bold;
}

.obstacle-type {
    font-weight: 500;
}

.obstacle-attenuation {
    color: var(--accent-color);
    font-weight: 500;
}

.obstacle-frequency {
    color: var(--text-secondary);
}

.signal-loss-calculator {
    background: var(--edu-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 500;
    color: var(--text-secondary);
}

.input-group input,
.input-group select {
    padding: 0.8rem;
    background: var(--panel-bg-soft);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-fast);
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary-color);
}

.calculator-result {
    display: grid;
    gap: 1rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: var(--panel-bg-soft);
    border-radius: 8px;
    font-weight: 500;
}

.result-item span:first-child {
    color: var(--text-secondary);
}

.result-item span:last-child {
    color: var(--primary-color);
}

.weather-effects {
    margin: 2rem 0;
}

.weather-section {
    margin-bottom: 3rem;
}

.rain-effects {
    display: grid;
    gap: 2rem;
    margin: 1.5rem 0;
}

.effect-detail {
    background: var(--edu-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.effect-detail h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.frequency-weather-impact {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.freq-impact {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    background: var(--panel-bg-soft);
    border-radius: 8px;
}

.freq-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.impact-level {
    color: var(--accent-color);
    font-weight: 500;
}

.wind-effects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.wind-impact {
    background: var(--edu-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.wind-impact h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.wind-impact ul {
    padding-left: 1.5rem;
}

.wind-impact li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.temperature-effects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.temp-impact,
.pressure-impact {
    background: var(--edu-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.temp-impact h5,
.pressure-impact h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.temp-chart {
    display: grid;
    gap: 0.8rem;
    margin: 1rem 0;
}

.temp-range {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    background: var(--panel-bg-soft);
    border-radius: 8px;
    font-weight: 500;
}

.temp-range span:first-child {
    color: var(--text-secondary);
}

.temp-range span:last-child {
    color: var(--primary-color);
}

.pressure-impact ul {
    padding-left: 1.5rem;
}

.pressure-impact li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.weather-calculator {
    background: var(--edu-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
}

.weather-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.weather-result {
    display: grid;
    gap: 1rem;
}

/* Адаптивність для нових туториалів */
@media (max-width: 768px) {
    .planning-steps {
        grid-template-columns: 1fr;
    }
    
    .frequency-range-comparison {
        grid-template-columns: 1fr;
    }
    
    .rules-grid {
        grid-template-columns: 1fr;
    }
    
    .assignment-controls {
        grid-template-columns: 1fr;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .flight-coordination {
        grid-template-columns: 1fr;
    }
    
    .propagation-principles {
        grid-template-columns: 1fr;
    }
    
    .terrain-effects {
        grid-template-columns: 1fr;
    }
    
    .obstacle-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .calculator-inputs,
    .weather-inputs {
        grid-template-columns: 1fr;
    }
    
    .wind-effects,
    .temperature-effects {
        grid-template-columns: 1fr;
    }
} 