/* ===== ОСНОВНЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1d1d1d;
    color: #ffffff;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
    background-color: #1d1d1d;
    border-bottom: 1px solid #545454;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-icon {
    width: 32px;
    height: 32px;
}

.nav-title {
    font-size: 1.2em;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-link:hover {
    background-color: #353535;
}

.nav-link.active {
    background-color: #5b8dd6;
    color: #ffffff;
}

/* ===== ОСНОВНОЙ КОНТЕНТ ===== */
.main-content {
    flex: 1;
    padding: 40px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== HERO СЕКЦИЯ ===== */
.hero {
    text-align: center;
    padding: 60px 0;
}

.hero-icon {
    width: 128px;
    height: 128px;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.2em;
    color: #cccccc;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.version {
    font-size: 1.1em;
    color: #6ea8e0;
    margin-bottom: 20px;
    font-weight: 600;
}

/* ===== КНОПКИ ===== */
.btn {
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #545454;
    color: #ffffff;
    border: 1px solid #6ea8e0;
}

.btn-primary:hover {
    border: 1px solid #8bb9e8;
    background-color: #5b8dd6;
}

.btn-secondary {
    background-color: #303030;
    color: #ffffff;
    border: 1px solid #6ea8e0;
}

.btn-secondary:hover {
    background-color: #5b8dd6;
    border-color: #8bb9e8;
}

/* ===== СЕКЦИИ ===== */
.section {
    margin-top: 60px;
}

.section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    text-align: center;
    color: #ffffff;
}

/* ===== ТРЕБОВАНИЯ ===== */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.requirement-card {
    background-color: #303030;
    border: 1px solid #545454;
    border-radius: 5px;
    padding: 25px;
}

.requirement-card h3 {
    color: #6ea8e0;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.requirement-card ul {
    list-style: none;
    padding: 0;
}

.requirement-card li {
    padding: 10px 0;
    border-bottom: 1px solid #545454;
    color: #cccccc;
    line-height: 1.5;
}

.requirement-card li:last-child {
    border-bottom: none;
}

/* ===== ВОЗМОЖНОСТИ ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background-color: #303030;
    border: 1px solid #545454;
    border-radius: 5px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: #8bb9e8;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(91, 141, 214, 0.3);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.feature-card h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

.feature-card p {
    color: #cccccc;
    line-height: 1.6;
}

/* ===== СПИСОК ОБОРУДОВАНИЯ ===== */
.equipment-list {
    display: grid;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.equipment-item {
    background-color: #303030;
    border: 1px solid #545454;
    border-radius: 5px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.equipment-item:hover {
    border-color: #8bb9e8;
    background-color: #353535;
}

.equipment-icon {
    font-size: 1.5em;
    min-width: 40px;
    text-align: center;
}

/* ===== СТРАНИЦА РАЗРАБОТЧИКОВ ===== */
.page-title {
    font-size: 2em;
    margin-bottom: 40px;
    text-align: center;
}

.developer-section {
    max-width: 800px;
    margin: 0 auto;
}

.company-info, .support-info, .contact-section {
    background-color: #303030;
    border: 1px solid #545454;
    border-radius: 5px;
    padding: 25px;
    margin-bottom: 30px;
}

.company-info p, .support-info p, .contact-section p {
    line-height: 1.6;
    color: #cccccc;
}

.developer-card {
    background-color: #303030;
    border: 1px solid #545454;
    border-radius: 5px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.developer-avatar {
    font-size: 3em;
}

.developer-info h3 {
    color: #ffffff;
    margin-bottom: 5px;
}

.position {
    color: #6ea8e0;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.5;
}

.email {
    color: #cccccc;
    line-height: 1.5;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-card {
    background-color: #1d1d1d;
    border: 1px solid #545454;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
}

.contact-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 10px;
}

.contact-card p {
    line-height: 1.5;
}

.fond-logo {
    display: block;
    width: 400px;
    height: auto;
    margin: 0 auto 20px auto;
}

/* ===== СТРАНИЦА ОБНОВЛЕНИЙ ===== */
.updates-grid {
    display: grid;
    gap: 30px;
}

.update-card {
    background-color: #303030;
    border: 1px solid #545454;
    border-radius: 5px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 300px 1fr;
    transition: all 0.3s;
}

.update-card:hover {
    border-color: #8bb9e8;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(91, 141, 214, 0.3);
}

.update-image {
    background-color: #1d1d1d;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.update-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.update-content {
    padding: 25px;
}

.update-content h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

.update-content p {
    color: #cccccc;
    line-height: 1.6;
}

/* ===== ДОКУМЕНТАЦИЯ ===== */
.docs-container {
    max-width: 1400px;
}

.docs-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.docs-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
}

.docs-tree {
    background-color: #303030;
    border: 1px solid #545454;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.docs-tree h3 {
    color: #ffffff;
    margin-bottom: 20px;
}

.tree {
    list-style: none;
    padding: 0;
}

.tree-item {
    display: block;
    padding: 10px;
    cursor: pointer;
    color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s;
    user-select: none;
    line-height: 1.5;
}

.tree-item:hover {
    background-color: #5b8dd6;
}

.tree-submenu {
    list-style: none;
    padding-left: 20px;
    display: none;
}

.tree-submenu.active {
    display: block;
}

.tree-submenu a {
    display: block;
    padding: 8px 10px;
    color: #cccccc;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.3s;
    line-height: 1.5;
}

.tree-submenu a:hover {
    background-color: #5b8dd6;
    color: #ffffff;
}

.docs-download {
    background-color: #303030;
    border: 1px solid #545454;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
}

.docs-download h3 {
    color: #ffffff;
    margin-bottom: 15px;
}

.docs-content {
    background-color: #303030;
    border: 1px solid #545454;
    border-radius: 5px;
    padding: 30px;
}

.doc-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #545454;
}

.doc-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.doc-section h2 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.5em;
    padding-bottom: 10px;
    border-bottom: 2px solid #6ea8e0;
}

.doc-section h3 {
    color: #6ea8e0;
    margin: 20px 0 10px 0;
    font-size: 1.2em;
}

.doc-section p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Списки в документации */
.doc-list {
    list-style: disc;
    padding-left: 25px;
    margin: 15px 0;
    color: #cccccc;
    line-height: 1.6;
}

.doc-list li {
    margin-bottom: 10px;
}

.doc-list ol {
    list-style: decimal;
    padding-left: 25px;
    margin: 15px 0;
    color: #cccccc;
    line-height: 1.6;
}

/* Таблицы в документации */
.doc-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #1d1d1d;
    border: 1px solid #545454;
    border-radius: 5px;
    overflow: hidden;
}

.doc-table thead {
    background-color: #3d3d3d;
}

.doc-table th {
    padding: 12px;
    text-align: left;
    color: #ffffff;
    border-bottom: 2px solid #6ea8e0;
    font-weight: 600;
    line-height: 1.5;
}

.doc-table td {
    padding: 10px 12px;
    color: #cccccc;
    border-bottom: 1px solid #545454;
    line-height: 1.5;
}

.doc-table tr:last-child td {
    border-bottom: none;
}

.doc-table tr:hover td {
    background-color: #353535;
}

/* Формулы */
.formula {
    background-color: #1d1d1d;
    border: 1px solid #6ea8e0;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 1.1em;
    color: #ffffff;
    text-align: center;
    line-height: 1.6;
}

/* Код в тексте */
code {
    background-color: #1d1d1d;
    color: #6ea8e0;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9em;
}

/* ===== ПОДВАЛ ===== */
.footer {
    background-color: #1d1d1d;
    border-top: 1px solid #545454;
    padding: 20px;
    text-align: center;
}

.footer-content {
    color: #797979;
    font-size: 0.9em;
    line-height: 1.5;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        margin-top: 10px;
    }

    .nav-link {
        text-align: center;
    }

    .hero-title {
        font-size: 2em;
    }

    .requirements-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .update-card {
        grid-template-columns: 1fr;
    }

    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: static;
    }

    .developer-card {
        flex-direction: column;
        text-align: center;
    }

    .doc-table {
        font-size: 0.9em;
    }

    .doc-table th,
    .doc-table td {
        padding: 8px;
    }

    .equipment-item {
        flex-direction: column;
        text-align: center;
    }
}
/* ===== ВОЗМОЖНОСТИ С КАРТИНКАМИ ===== */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

.feature-image {
    background-color: #303030;
    border: 1px solid #545454;
    border-radius: 5px;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-text {
    padding: 20px;
}

.feature-text h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.feature-text p {
    color: #cccccc;
    line-height: 1.8;
}

/* ===== ОБОРУДОВАНИЕ ===== */
.equipment-list {
    display: grid;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.equipment-item {
    background-color: #303030;
    border: 1px solid #545454;
    border-radius: 5px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    transition: all 0.3s;
}

.equipment-item:hover {
    border-color: #8bb9e8;
    background-color: #353535;
}

.equipment-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.equipment-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.equipment-text {
    flex: 1;
}

.equipment-text h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.equipment-text p {
    color: #cccccc;
    line-height: 1.8;
}

/* Адаптивность */
@media (max-width: 768px) {
    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .feature-row.reverse > * {
        direction: ltr;
    }

    .equipment-item {
        flex-direction: column;
        text-align: center;
    }

    .equipment-icon {
        margin: 0 auto;
    }
}

.page-subtitle {
    margin-bottom: 40px;
}