/*
 * СОЗ «Тайга» — стили сайта.
 *
 * Основа перенесена с оригинального одностраничника taiga.su без изменений:
 * палитра, типографика, карточки, hover-эффекты и анимации. Ниже, в блоке
 * «Многостраничность», добавлено только то, чего на одностраничнике не было:
 * стили внутренних страниц, хлебных крошек и формы обратной связи.
 *
 * Bootstrap 5 подключается ДО этого файла и отвечает за сетку, аккордеон
 * и формы — визуальную идентичность задаёт этот файл.
 */

/* Один @font-face на семейство: переменные шрифты (один файл покрывает все начертания) */
@font-face {
    font-family: "Inter";
    src: local("Inter"), url("../fonts/InterVariable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: local("JetBrains Mono"), url("../fonts/JetBrainsMono-Medium.woff2") format("woff2");
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
}
    

:root {
    /* --- ОБНОВЛЁННАЯ ЦВЕТОВАЯ ПАЛИТРА --- */
    --primary-color: #2d8a4e;
    --primary-hover: #248c43;
    --accent-color: #1a6b37;
    --accent-deep: #0f4d27;
    --primary-light: rgba(45, 138, 78, 0.08);
    --primary-light-2: rgba(45, 138, 78, 0.15);
    --primary-light-3: rgba(45, 138, 78, 0.25);

    /* Нейтральные тона */
    --bg-primary: #fafbfc;
    --bg-secondary: #ffffff;
    --bg-dark: #0d1117;
    --bg-dark-card: rgba(255, 255, 255, 0.06);
    --bg-dark-card-hover: rgba(255, 255, 255, 0.1);

    /* Текст */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-inverse: #ffffff;
    --text-muted: #9ca3af;

    /* Границы и тени */
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 4px 14px rgba(45, 138, 78, 0.25);
    --shadow-primary-lg: 0 8px 24px rgba(45, 138, 78, 0.3);

    /* Скругления */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;

    /* Шрифты */
    --font-main: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "JetBrains Mono", "Fira Code", monospace;

    /* Блоки уведомлений */
    --warning-text-color: #AE7300;
    --warning-block-color: rgba(255, 185, 49, 0.2);
    --error-text-color: #C00224;
    --error-block-color: rgba(192, 2, 36, 0.2);
    --info-text-color: #2d8a4e;
    --info-block-color: rgba(45, 138, 78, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.75;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

/* --- Scroll-reveal анимация --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Задержки для каскадного появления */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

.reveal-delay-6 {
    transition-delay: 0.6s;
}

.reveal-delay-7 {
    transition-delay: 0.7s;
}

.reveal-delay-8 {
    transition-delay: 0.8s;
}

/* --- КНОПКИ --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    border: none;
    font-family: var(--font-main);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-inverse);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary-light-3);
    background-color: var(--primary-light);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* --- НАВИГАЦИЯ --- */
/* Селектор привязан к #navbar, а не к тегу nav: на многостраничном сайте
   есть и другие <nav> (хлебные крошки), которым фон и sticky не нужны. */
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

#navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
    text-decoration: none;
    cursor: pointer;
}

.logo-icon {
    width: 36px;
    height: 36px;
    color: var(--text-inverse);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.nav-accent {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    bottom: -4px;
    left: 0;
    transition: width 0.25s ease;
    border-radius: 1px;
}

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

/* --- СЕКЦИЯ HERO --- */
.hero-wrapper {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(45, 138, 78, 0.04) 50%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

/* Декоративные элементы фона */
.hero-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 138, 78, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(45, 138, 78, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

header.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 0 80px;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid var(--primary-light-2);
}

.hero-badge i {
    font-size: 0.7rem;
}

h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.highlight-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Визуальная часть Hero — карточка с шифрованием */
.hero-visual {
    flex: 1;
    min-width: 340px;
    position: relative;
}

.code-card {
    background: var(--bg-dark);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.code-card-header {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red {
    background: #ff5f56;
}

.code-dot.yellow {
    background: #ffbd2e;
}

.code-dot.green {
    background: #27c93f;
}

.code-card-title {
    margin-left: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

.code-card-body {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.9;
    color: #e6edf3;
    min-height: 260px;
}

.code-comment {
    color: #6b7280;
}

.code-keyword {
    color: #ff7b72;
}

.code-string {
    color: #a5d6ff;
}

.code-func {
    color: #d2a8ff;
}

.code-type {
    color: #79c0ff;
}

.code-symbol {
    color: #ffa657;
}

/* Декоративное свечение за карточкой */
.hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(45, 138, 78, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(40px);
}

/* --- СЕКЦИИ (Общие) --- */
section {
    padding: 100px 5%;
    margin: 0 auto;
    scroll-margin-top: 80px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid var(--primary-light-2);
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-title-light {
    font-size: 2.5rem;
    color: var(--text-inverse);
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.75;
}

.section-subtitle-light {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.75;
}

/* --- БЛОК: ВОЗМОЖНОСТИ --- */
.features-section {
    background: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light-3);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.3rem;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary-light-2);
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* --- БЛОК: КАК ЭТО РАБОТАЕТ --- */
.how-it-works {
    background-color: var(--bg-secondary);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

/* Соединительная линия между шагами */
.steps-container::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light-3), var(--primary-color), var(--primary-light-3));
    z-index: 0;
}

.step-item {
    flex: 1;
    position: relative;
    z-index: 1;
    min-width: 220px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-4px);
}

.step-circle {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--text-inverse);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: var(--shadow-primary);
    border: 4px solid var(--bg-secondary);
    position: relative;
    z-index: 2;
}

.step-item h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.step-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 240px;
    line-height: 1.65;
}

/* --- БЛОК: ГАЛЕРЕЯ --- */
.gallery-section {
    background-color: var(--bg-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.gallery-image-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(45, 138, 78, 0.04) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gallery-mockup {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-mockup i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    opacity: 0.7;
}

.gallery-mockup span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 0.02em;
}

/* Анимация превью при наведении */
.gallery-mockup {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-image-placeholder .gallery-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 1;
}

.gallery-item:hover .gallery-preview {
    opacity: 1;
    transform: scale(1);
}

.gallery-item:hover .gallery-mockup {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
}

.gallery-content {
    padding: 24px;
}

.gallery-title {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.gallery-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

.gallery-cta {
    text-align: center;
    margin-top: 48px;
}

/* --- БЛОК: БЕЗОПАСНОСТЬ --- */
.security-section {
    background: var(--bg-dark);
    color: var(--text-inverse);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.sec-card {
    background: var(--bg-dark-card);
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
    position: relative;
}

.sec-card:hover {
    background: var(--bg-dark-card-hover);
    transform: translateY(-4px);
    border-color: rgba(45, 138, 78, 0.3);
}

.sec-icon {
    width: 48px;
    height: 48px;
    background: rgba(45, 138, 78, 0.15);
    color: #4ade80;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.sec-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-inverse);
    font-weight: 700;
}

.sec-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.sec-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4ade80;
    font-weight: 600;
    font-size: 0.85rem;
}

.sec-badge i {
    font-size: 0.9rem;
}

/* --- БЛОК: ДОКУМЕНТАЦИЯ --- */
.docs-section {
    background-color: var(--bg-primary);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.doc-card {
    background: var(--bg-secondary);
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.doc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light-3);
}

.doc-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.3rem;
    transition: background 0.3s ease;
}

.doc-card:hover .doc-icon {
    background: var(--primary-light-2);
}

.doc-card-content h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.doc-card-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.doc-card-arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.9rem;
    align-self: center;
    transition: transform 0.3s ease, color 0.3s ease;
}

.doc-card:hover .doc-card-arrow {
    transform: translateX(4px);
    color: var(--primary-color);
}

/* --- FOOTER --- */
footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.5);
    padding: 64px 5% 32px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    align-items: flex-start;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand h2 {
    color: var(--text-inverse);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.footer-links a {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.social-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.3rem;
    margin-left: 16px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.25);
    max-width: 1000px;
    margin: 0 auto;
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 1200px) {

    .section-title,
    .section-title-light {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    .section-title,
    .section-title-light {
        font-size: 2rem;
    }

    header.hero {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .hero-text {
        order: 2;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: 1;
        width: 100%;
        max-width: 480px;
        margin: 0 auto 40px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 0.85rem;
    }
}

@media (max-width: 850px) {
    h1 {
        font-size: 2rem;
    }

    .section-title,
    .section-title-light {
        font-size: 1.75rem;
    }

    .section-subtitle,
    .section-subtitle-light {
        font-size: 1rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 48px;
    }

    /* Скрываем горизонтальную линию шагов на мобильных */
    .steps-container::before {
        display: none;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    #navbar {
        padding: 12px 5%;
    }

    .nav-links {
        display: none;
    }

    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        padding: 16px 5%;
        gap: 12px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }

    .features-grid,
    .gallery-grid,
    .security-grid,
    .docs-grid {
        grid-template-columns: 1fr;
    }

    .doc-card {
        flex-direction: row;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-links {
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.7rem;
    }

    .section-title,
    .section-title-light {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.88rem;
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .code-card-body {
        padding: 16px;
        font-size: 0.78rem;
    }

    .feature-card {
        padding: 24px 20px;
    }

    section {
        padding: 64px 5%;
    }
}

/* --- БЛОК: FAQ (Ответы на вопросы) --- */
.faq-section {
    background-color: var(--bg-secondary);
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light-3);
}

.faq-item.open {
    border-color: var(--primary-light-3);
    box-shadow: var(--shadow-lg);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: left;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question i {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-item.open .faq-question {
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer-inner {
    padding: 0 28px 24px;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.8;
}

.faq-answer-inner p {
    margin-bottom: 0;
}

/* --- Мобильное меню --- */
.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    padding: 4px;
}

@media (max-width: 850px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
    }
}

/* ================================================
   MODERN EFFECTS — Animations, Parallax, Effects
   ================================================ */

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), #4ade80, var(--accent-color));
    z-index: 1001;
    border-radius: 0 2px 2px 0;
    pointer-events: none;
}

/* --- Body Background Transition --- */
body {
    transition: background-color 1s ease;
}

/* --- Animated Hero Blobs --- */
.hero-blobs-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    will-change: transform;
}

.hero-blob-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-color), transparent 70%);
    top: -10%;
    right: -5%;
    animation: blobMove1 18s ease-in-out infinite;
}

.hero-blob-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #4ade80, transparent 70%);
    bottom: -15%;
    left: -5%;
    animation: blobMove2 22s ease-in-out infinite;
}

.hero-blob-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-deep), transparent 70%);
    top: 40%;
    left: 40%;
    animation: blobMove3 15s ease-in-out infinite;
}

@keyframes blobMove1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(-30px, 40px) scale(1.1);
    }

    50% {
        transform: translate(20px, -20px) scale(0.95);
    }

    75% {
        transform: translate(-15px, -30px) scale(1.05);
    }
}

@keyframes blobMove2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -30px) scale(1.08);
    }

    66% {
        transform: translate(-20px, 25px) scale(0.92);
    }
}

@keyframes blobMove3 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(25px, 20px) scale(1.15);
    }

    50% {
        transform: translate(-30px, -15px) scale(0.9);
    }

    75% {
        transform: translate(15px, -25px) scale(1.05);
    }
}

/* --- Floating Particles --- */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.12;
    will-change: transform;
}

.particle-light {
    background: #4ade80;
}

@keyframes floatParticle {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(var(--px, 15px), var(--py, -20px));
    }

    50% {
        transform: translate(var(--px2, -10px), var(--py2, 15px));
    }

    75% {
        transform: translate(var(--px3, 20px), var(--py3, -10px));
    }
}

/* --- SVG Wave Dividers --- */
.section-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 2;
}

.section-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Enhanced Reveal Animations --- */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* --- 3D Tilt Effect --- */
.tilt-card {
    transform-style: preserve-3d;
}

/* --- Typewriter Cursor --- */
.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--primary-color);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blinkCursor 0.8s step-end infinite;
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* --- Stats Section --- */
.stats-section {
    background: var(--bg-secondary);
    padding: 48px 5%;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 3;
}

.stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 64px;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 140px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-number .stat-suffix {
    font-size: 1.4rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* --- Cursor Glow (Security) --- */
.cursor-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: radial-gradient(600px circle at var(--glow-x, 50%) var(--glow-y, 50%),
            rgba(45, 138, 78, 0.08), transparent 60%);
}

.security-section:hover .cursor-glow {
    opacity: 1;
}

.security-section {
    position: relative;
    overflow: hidden;
}

.security-section .section-container {
    position: relative;
    z-index: 1;
}

/* --- Section positioning for waves --- */
.features-section {
    background: #f0fdf4;
    position: relative;
}

.gallery-section {
    background-color: #f8fafc;
    position: relative;
    overflow: hidden;
}

/* --- Magnetic Button --- */
.btn-magnetic {
    transition: background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
    /* transform управляется JS — transition на него выставляется динамически */
}

/* Отключаем CSS hover transform для magnetic-кнопок, т.к. JS управляет transform */
.btn-magnetic.btn-primary:hover,
.btn-magnetic.btn-secondary:hover {
    transform: none;
}

/* --- Accessibility: Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .hero-blob,
    .particle {
        animation: none !important;
    }

    .typewriter-cursor {
        animation: none !important;
    }

    .scroll-progress {
        transition: none !important;
    }

    .cursor-glow {
        display: none !important;
    }
}

/* --- Responsive: Stats + Blobs --- */
@media (max-width: 850px) {
    .stats-grid {
        gap: 32px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .hero-blob {
        display: none;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        gap: 24px;
    }

    .stat-item {
        min-width: 100px;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}

/* ================================================
   PREMIUM EFFECTS — Cursor, Aurora, Noise, Glow
   ================================================ */




/* --- Page Entrance Animation --- */
@keyframes pageEntrance {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body {
    animation: pageEntrance 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-hover), var(--accent-deep));
}

/* --- Animated Gradient Text --- */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.highlight-text {
    background: linear-gradient(270deg, var(--primary-color), #4ade80, var(--accent-color), var(--primary-color));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 6s ease infinite;
}

/* --- Card Spotlight Effect --- */
.card-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    border-radius: inherit;
}

.feature-card:hover .card-spotlight,
.gallery-item:hover .card-spotlight,
.doc-card:hover .card-spotlight {
    opacity: 1;
    background: radial-gradient(300px circle at var(--spot-x, 50%) var(--spot-y, 50%),
            rgba(45, 138, 78, 0.07), transparent 60%);
}

.sec-card:hover .card-spotlight {
    opacity: 1;
    background: radial-gradient(300px circle at var(--spot-x, 50%) var(--spot-y, 50%),
            rgba(74, 222, 128, 0.08), transparent 60%);
}

/* --- Code Card Animated Glow --- */
@keyframes codeCardGlow {

    0%,
    100% {
        box-shadow: var(--shadow-xl), 0 0 0 1px rgba(45, 138, 78, 0.05);
    }

    50% {
        box-shadow: var(--shadow-xl), 0 0 40px rgba(45, 138, 78, 0.1), 0 0 0 1px rgba(45, 138, 78, 0.15);
    }
}

.code-card {
    animation: codeCardGlow 4s ease-in-out infinite;
}

/* --- Aurora Effect (Security) --- */
.aurora {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.aurora-beam {
    position: absolute;
    width: 50%;
    height: 200%;
    opacity: 0.035;
    filter: blur(100px);
    will-change: transform;
}

.aurora-beam-1 {
    background: linear-gradient(180deg, transparent, var(--primary-color), #4ade80, transparent);
    left: 10%;
    top: -50%;
    animation: auroraShift1 12s ease-in-out infinite;
}

.aurora-beam-2 {
    background: linear-gradient(180deg, transparent, #4ade80, var(--accent-deep), transparent);
    right: 10%;
    top: -30%;
    animation: auroraShift2 16s ease-in-out infinite;
}

.aurora-beam-3 {
    background: linear-gradient(180deg, transparent, var(--accent-color), var(--primary-color), transparent);
    left: 30%;
    top: -40%;
    animation: auroraShift3 10s ease-in-out infinite;
}

@keyframes auroraShift1 {

    0%,
    100% {
        transform: translateY(0) rotate(-15deg) scaleY(1);
    }

    50% {
        transform: translateY(30px) rotate(5deg) scaleY(1.1);
    }
}

@keyframes auroraShift2 {

    0%,
    100% {
        transform: translateY(0) rotate(10deg) scaleY(1);
    }

    50% {
        transform: translateY(-40px) rotate(-10deg) scaleY(1.15);
    }
}

@keyframes auroraShift3 {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg) scaleX(1);
    }

    50% {
        transform: translateY(20px) rotate(15deg) scaleX(1.2);
    }
}

/* --- Noise Texture Overlay --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9990;
    opacity: 0.028;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* --- Active Nav Link (Scroll Spy) --- */
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    width: 100%;
}

/* --- Button Ripple --- */
.btn {
    position: relative;
    overflow: hidden;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- Hero Grid Background --- */
.hero-grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(45, 138, 78, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 138, 78, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 70%);
}

/* --- Hero Mouse Glow --- */
.hero-mouse-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(600px ellipse at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(45, 138, 78, 0.07) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hero-wrapper:hover .hero-mouse-glow {
    opacity: 1;
}

/* --- Hero Badge Pulse --- */
@keyframes badgePulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(45, 138, 78, 0.2);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(45, 138, 78, 0);
    }
}

.hero-badge {
    animation: badgePulse 3s ease-in-out infinite;
}

/* --- Step Circle Pulse Ring --- */
.step-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--primary-color);
    opacity: 0;
    animation: stepPulse 2.5s ease-out infinite;
}

@keyframes stepPulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.5;
    }

    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

/* --- Scroll Indicator (Hero) --- */
.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    animation: scrollBounce 2.5s ease-in-out infinite;
    transition: opacity 0.5s ease;
}

.scroll-indicator-mouse {
    width: 22px;
    height: 36px;
    border: 2px solid rgba(45, 138, 78, 0.25);
    border-radius: 11px;
    position: relative;
}

.scroll-indicator-mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 7px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(10px);
        opacity: 0.2;
    }
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* --- Nav Link Underline Glow --- */
.nav-links a:hover::after,
.nav-links a.active::after {
    box-shadow: 0 1px 6px rgba(45, 138, 78, 0.3);
}

/* --- Section Label Hover --- */
.section-label {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.section-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 138, 78, 0.15);
}

/* --- Responsive: Premium Effects --- */
@media (max-width: 850px) {
    .scroll-indicator {
        bottom: 70px;
    }

    .hero-grid-bg,
    .hero-mouse-glow {
        display: none;
    }

    .noise-overlay {
        display: none;
    }
}

@media (max-width: 480px) {
    .scroll-indicator {
        display: none;
    }
}

/* --- Reduced Motion: Premium Effects --- */
@media (prefers-reduced-motion: reduce) {
    .aurora-beam {
        animation: none !important;
    }

    .highlight-text {
        animation: none !important;
    }

    body {
        animation: none !important;
    }

    .hero-badge {
        animation: none !important;
    }

    .step-circle::after {
        animation: none !important;
        display: none;
    }

    .code-card {
        animation: none !important;
    }

    .scroll-indicator,
    .hero-mouse-glow {
        display: none !important;
    }
}

/* ════════════════════════════════════════════════════════════════════════
   МНОГОСТРАНИЧНОСТЬ
   Всё, чего не было на одностраничнике: внутренние страницы, хлебные
   крошки, кликабельные карточки, форма обратной связи и правовой текст.
   ════════════════════════════════════════════════════════════════════════ */

/* --- Bootstrap-совместимость ---------------------------------------------
   Bootstrap подключён ради сетки, аккордеона и форм. Его Reboot переопределяет
   типографику, поэтому возвращаем шрифт и цвета проекта. */
body {
    font-family: var(--font-main);
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* --- Шапка внутренней страницы ------------------------------------------ */
.page-header {
    padding: 72px 5% 56px;
    background: linear-gradient(180deg, var(--primary-light) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-color);
}

.page-header .section-container {
    max-width: 900px;
    text-align: center;
}

.page-header .section-title {
    font-size: 2.25rem;
}

.page-lead {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto;
}

/* Тёмный вариант — для раздела «Безопасность», как на главной */
.page-header-dark {
    background: var(--bg-dark);
    border-bottom: none;
}

.page-header-dark .section-title {
    color: var(--text-inverse);
}

.page-header-dark .page-lead {
    color: var(--text-muted);
}

.page-header-dark .breadcrumbs,
.page-header-dark .breadcrumbs a {
    color: var(--text-muted);
}

.page-header-dark .breadcrumbs a:hover {
    color: #4ade80;
}

.page-header-dark .breadcrumbs [aria-current="page"] {
    color: var(--text-inverse);
}

/* --- Хлебные крошки ----------------------------------------------------- */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs .sep {
    opacity: 0.5;
}

.breadcrumbs [aria-current="page"] {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- Секция внутренней страницы ----------------------------------------- */
.page-section {
    padding: 64px 5%;
}

.page-section-tinted {
    background: var(--bg-primary);
}

/* --- Кликабельные карточки ----------------------------------------------
   Карточки блоков ведут на свои страницы. Стрелка появляется при наведении —
   тот же приём, что и у карточек документации на оригинале. */
.card-link {
    display: block;
    color: inherit;
    height: 100%;
}

.card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.feature-card:hover .card-arrow,
.step-item:hover .card-arrow,
.gallery-item:hover .card-arrow,
.sec-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.sec-card .card-arrow {
    color: #4ade80;
}

/* На тач-устройствах наведения нет — показываем стрелку сразу */
@media (hover: none) {
    .card-arrow {
        opacity: 1;
        transform: none;
    }
}

/* --- Детальная страница -------------------------------------------------- */
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 950px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.detail-body p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.detail-body p:first-of-type {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Акцентные блоки в правой колонке */
.detail-aside {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 950px) {
    .detail-aside {
        position: static;
    }
}

.highlight-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light-3);
}

.highlight-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.highlight-card-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary-color);
}

.highlight-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.highlight-card p {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* --- Интерактивный скриншот ---------------------------------------------
   Картинка в рамке «окна браузера». При наведении слегка приближается,
   по клику открывается во весь экран — заглушки легко заменить на реальные
   скриншоты интерфейса через админку. */
.shot {
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    background: var(--bg-secondary);
}

.shot-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.shot-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.shot-dot.red { background: #ff5f57; }
.shot-dot.yellow { background: #febc2e; }
.shot-dot.green { background: #28c840; }

.shot-title {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.shot-frame {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    display: block;
    width: 100%;
    border: none;
    padding: 0;
    background: none;
}

.shot-frame img {
    display: block;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.shot-frame:hover img {
    transform: scale(1.04);
}

/* Подсказка «нажмите, чтобы увеличить» — выезжает при наведении */
.shot-hint {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 100px;
    background: rgba(13, 17, 23, 0.82);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.shot-frame:hover .shot-hint {
    opacity: 1;
    transform: translateY(0);
}

.shot-caption {
    padding: 14px 18px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

/* Полноэкранный просмотр скриншота */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 5vw;
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: zoom-out;
}

.lightbox.open {
    display: flex;
    animation: lightboxIn 0.25s ease;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.22);
}

@keyframes lightboxIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- Соседние материалы внизу детальной страницы ------------------------- */
.related {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    margin-top: 56px;
}

.related-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light-3);
    color: var(--primary-color);
}

.related-card i {
    color: var(--primary-color);
}

/* --- Блок призыва к действию -------------------------------------------- */
.cta-band {
    text-align: center;
    padding: 64px 5%;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.cta-band h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.cta-band p {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

/* --- FAQ на отдельной странице ------------------------------------------ */
.faq-page .faq-list {
    max-width: 860px;
    margin: 0 auto;
}

/* --- Форма обратной связи ------------------------------------------------ */
.form-card {
    max-width: 680px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-md);
}

.form-card label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-card .form-control {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: var(--font-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px var(--primary-light-2);
}

/* Honeypot: поле-ловушка для ботов, посетитель его не видит */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-errors {
    color: var(--error-text-color);
    background: var(--error-block-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.alert-flash {
    max-width: 680px;
    margin: 0 auto 24px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--info-text-color);
    background: var(--info-block-color);
    border: 1px solid var(--primary-light-2);
}

.contact-note {
    max-width: 680px;
    margin: 28px auto 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-note a {
    color: var(--primary-color);
    font-weight: 600;
}

/* --- Правовой текст (политика конфиденциальности) ------------------------ */
.legal {
    max-width: 820px;
    margin: 0 auto;
}

.legal-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 32px;
}

.legal h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 36px 0 14px;
}

.legal p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 16px 20px;
}

.legal li {
    margin-bottom: 6px;
}

/* --- Документы ----------------------------------------------------------- */
.doc-meta {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Навигация: активный пункт и кнопка в шапке -------------------------- */
.nav-links a.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-cta {
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    background: var(--primary-color);
    color: var(--text-inverse) !important;
    font-weight: 600;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-primary);
}

.nav-cta::after {
    display: none !important;
}

/* --- Страница 404 -------------------------------------------------------- */
.error-page {
    text-align: center;
    padding: 120px 5%;
}

.error-code {
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 12px;
}

/* --- Связка с материнским брендом ИЦБ (icsec.ru) ------------------------- */
/* «Тайга» — самостоятельный продукт со своей айдентикой; ИЦБ обозначается
   ненавязчиво: ссылка в шапке и кредит-строка в футере. */
.nav-parent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted) !important;
    padding: 7px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.nav-parent i {
    font-size: 0.72rem;
}

.nav-parent:hover {
    color: var(--primary-color) !important;
    border-color: var(--primary-light-3);
    background: var(--primary-light);
}

.nav-parent::after {
    display: none !important;
}

.footer-parent {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.footer-parent img {
    display: block;
    border-radius: 3px;
}

.footer-parent strong {
    color: #fff;
    font-weight: 700;
}

.footer-parent:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.05);
}

/* ════════════════════════════════════════════════════════════════════════
   ТЁМНЫЙ КАРКАС + НЕОН ИЦБ
   Гибрид: тёмные навбар, лента статистики и футер + неон #00FF85 дозированно
   в акцентах (hover, счётчики, бейджи, свечение кнопок). Контентные секции
   остаются светлыми. Слой идёт последним — переопределяет базовые правила,
   не трогая их; убирается удалением этого блока целиком.
   ════════════════════════════════════════════════════════════════════════ */

:root {
    --neon: #00ff85;
    --neon-soft: rgba(0, 255, 133, 0.14);
    --neon-border: rgba(0, 255, 133, 0.4);
    --neon-glow: 0 0 20px rgba(0, 255, 133, 0.4);
    --dark-frame: #0d1117;
}

/* --- Тёмный навбар --- */
#navbar {
    background: rgba(13, 17, 23, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#navbar.scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.logo {
    color: #ffffff;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.72);
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a.active {
    color: var(--neon);
}

/* Подчёркивание пунктов навигации — неоновое */
.nav-links a::after {
    background: var(--neon);
    box-shadow: 0 0 8px rgba(0, 255, 133, 0.7);
}

.nav-links a.nav-accent {
    color: #6ee7a8;
}

.mobile-menu-toggle {
    color: #ffffff;
}

/* CTA остаётся зелёной (бренд), но на hover получает неоновое свечение */
.nav-cta:hover {
    box-shadow: var(--neon-glow);
}

/* Ссылка на ИЦБ на тёмном фоне */
.nav-parent {
    color: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-parent:hover {
    color: var(--neon) !important;
    border-color: var(--neon-border);
    background: var(--neon-soft);
}

/* Выпадающее мобильное меню — тоже тёмное */
@media (max-width: 850px) {
    .nav-links.mobile-open {
        background: rgba(13, 17, 23, 0.97);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* --- Тёмная лента статистики, цифры неоном --- */
.stats-section {
    background: var(--dark-frame);
    border-bottom: none;
    padding-bottom: 72px;
    overflow: hidden;
}

.stats-section .stats-grid {
    position: relative;
    z-index: 3;
}

.stat-number {
    color: var(--neon);
    text-shadow: 0 0 24px rgba(0, 255, 133, 0.35);
}

.stat-label {
    color: rgba(255, 255, 255, 0.6);
}

/* --- Неон в акцентах на светлых секциях --- */

/* Основные кнопки: зелёный фон, неоновое свечение при наведении */
.btn-primary:hover {
    box-shadow: var(--shadow-primary-lg), var(--neon-glow);
}

/* Вторичная кнопка: неоновая рамка на hover */
.btn-secondary:hover {
    border-color: var(--neon-border);
    box-shadow: 0 0 0 1px var(--neon-border), var(--neon-glow);
}

/* Неоновая обводка карточек при наведении */
.feature-card:hover,
.gallery-item:hover,
.step-item:hover {
    border-color: var(--neon-border);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 255, 133, 0.18);
}

/* Стрелка «Подробнее» и иконки-акценты — неон */
.card-arrow {
    color: #0a9d5a;
}

.feature-card:hover .card-arrow,
.step-item:hover .card-arrow,
.gallery-item:hover .card-arrow {
    color: #0a9d5a;
}

/* Рамка интерактивного скриншота на детальной странице */
.shot-frame:hover img {
    filter: saturate(1.05);
}

.highlight-card:hover {
    border-color: var(--neon-border);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 255, 133, 0.15);
}

/* --- Тёмная секция «Безопасность»: бейджи и акценты неоном --- */
.sec-badge {
    color: var(--neon);
    text-shadow: 0 0 12px rgba(0, 255, 133, 0.4);
}

.sec-card:hover {
    border-color: var(--neon-border);
    box-shadow: 0 0 0 1px rgba(0, 255, 133, 0.2), var(--shadow-lg);
}

.sec-card .card-arrow,
.sec-card:hover .card-arrow {
    color: var(--neon);
}

/* --- Футер: неоновые hover-акценты --- */
.footer-links a:hover {
    color: var(--neon);
}

.footer-parent:hover {
    color: var(--neon);
    border-color: var(--neon-border);
    background: var(--neon-soft);
}

.footer-parent:hover strong {
    color: var(--neon);
}

/* Тонкая неоновая линия над копирайтом */
.footer-bottom {
    border-top: 1px solid rgba(0, 255, 133, 0.12);
}
