/* ================================================================
   ОСНОВНЫЕ НАСТРОЙКИ
   ================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #1a365d;
    --primary-mid: #2a4a7f;
    --primary-light: #4a7aac;
    --secondary: #D4A34A;
    --secondary-light: #e8c97a;
    --accent-green: #00BFA5;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #555555;
    --text-light: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --transition: all 0.3s ease;
    --font-main: 'Inter', 'Roboto', sans-serif;
    --font-title: 'Playfair Display', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary-dark);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary);
}

img {
    max-width: 100%;
    height: auto;
}

/* ================================================================
   ШАПКА (HEADER)
   ================================================================ */

.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-year {
    color: var(--secondary);
    font-weight: 800;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-list a {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    color: var(--text-dark);
}

.nav-list a:hover,
.nav-list a.active {
    border-bottom-color: var(--secondary);
    color: var(--primary-dark);
}

.burger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ================================================================
   ПОДВАЛ (FOOTER)
   ================================================================ */

.site-footer {
    background: var(--primary-dark);
    color: #ccc;
    padding: 50px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-info p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-info strong {
    color: #fff;
}

.footer-nav h4,
.footer-contacts h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
}

.footer-nav ul li {
    margin-bottom: 8px;
}

.footer-nav ul li a {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-nav ul li a:hover {
    color: var(--secondary-light);
}

.footer-contacts p {
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.footer-meta {
    margin-top: 12px;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ================================================================
   ГЕРОЙ (MODEL)
   ================================================================ */

.hero-model {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-mid) 100%);
    color: var(--text-light);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-model::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(212, 163, 74, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--secondary-light);
    margin-bottom: 12px;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    max-width: 750px;
    margin: 0 auto 25px;
    font-size: 1.15rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    margin: 0 5px;
    letter-spacing: 0.5px;
}

.hero-meta {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================================================
   БЛОК КОНЦЕПЦИИ (ПРЕДПОСЫЛКИ)
   ================================================================ */

.concept-section {
    padding: 70px 0;
    background: var(--bg-white);
}

.concept-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.concept-text h2 {
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.concept-text p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.concept-quote {
    border-left: 4px solid var(--secondary);
    padding: 20px 25px;
    background: #f8f5ee;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.concept-quote cite {
    display: block;
    margin-top: 10px;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.concept-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 40px;
    min-height: 300px;
    border: 2px dashed #ddd;
}

.placeholder-icon {
    font-size: 6rem;
    opacity: 0.6;
}

.image-caption {
    margin-top: 15px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* ================================================================
   ОРГСТРУКТУРА (СХЕМА 1)
   ================================================================ */

.org-structure-section {
    padding: 70px 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* ——— Узлы схемы ——— */

.org-chart-new {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
}

.org-level {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
}

/* Общий стиль для всех узлов */
.org-node {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px 25px;
    text-align: center;
    box-shadow: var(--shadow);
    cursor: default;
    transition: var(--transition);
    position: relative;
    min-width: 200px;
    flex: 1;
    max-width: 300px;
}

.org-node:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* ——— Директор ——— */

.org-node.director {
    border-top: 6px solid var(--secondary);
    min-width: 220px;
    max-width: 260px;
    background: linear-gradient(to bottom, #fff, #fcf8f0);
}

.org-node.director .node-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.org-node.director .node-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.org-node.director .node-sub {
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
}

/* ——— Службы ——— */

.org-node .node-icon {
    font-size: 2.2rem;
    margin-bottom: 6px;
}

.org-node .node-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-dark);
    line-height: 1.3;
}

.org-node .node-sub {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
}

/* Цветовые акценты для служб */
.org-node.service-1 {
    border-top: 6px solid var(--primary-mid);
}

.org-node.service-2 {
    border-top: 6px solid var(--accent-green);
}

.org-node.service-3 {
    border-top: 6px solid var(--secondary);
}

/* ——— Тултипы (подсказки) ——— */

.node-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-dark);
    color: #fff;
    padding: 18px 22px;
    border-radius: 12px;
    min-width: 220px;
    max-width: 280px;
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.5;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    z-index: 100;
}

.node-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: var(--primary-dark);
}

.node-tooltip h4 {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.node-tooltip h4.color-info {
    color: var(--primary-light);
}

.node-tooltip h4.color-org {
    color: var(--accent-green);
}

.node-tooltip h4.color-project {
    color: var(--secondary-light);
}

.node-tooltip ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.node-tooltip ul li {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.node-tooltip ul li:last-child {
    border-bottom: none;
}

/* Показываем тултип при наведении */
.org-node:hover .node-tooltip {
    display: block !important;
}

/* ——— Линии-соединители ——— */

.org-connectors {
    display: flex;
    justify-content: center;
    gap: 120px;
    width: 100%;
    max-width: 800px;
    height: 30px;
    position: relative;
}

.org-connectors .line {
    width: 2px;
    height: 30px;
    background: #ccc;
}

/* ================================================================
   ТАБЛИЦЫ (РЕСУРСНОЕ ОБЕСПЕЧЕНИЕ)
   ================================================================ */

.resource-section {
    padding: 70px 0;
    background: var(--bg-white);
}

.resource-section.alt-bg {
    background: var(--bg-light);
}

.resource-section h2 {
    text-align: center;
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.resource-section .subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 40px;
    font-size: 1.05rem;
}

.resource-section h3 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
}

.table-wrap table thead {
    background: var(--primary-dark);
    color: #fff;
}

.table-wrap table thead th {
    padding: 15px 20px;
    text-align: left;
}

.table-wrap table thead th.center {
    text-align: center;
}

.table-wrap table tbody tr {
    border-bottom: 1px solid #eee;
}

.table-wrap table tbody tr:last-child {
    border-bottom: none;
}

.table-wrap table tbody td {
    padding: 12px 20px;
}

.table-wrap table tbody td.center {
    text-align: center;
}

.table-wrap table .section-row {
    background: var(--bg-light);
    font-weight: 600;
}

.table-wrap table .section-row td {
    padding: 10px 20px;
}

.table-note {
    margin-top: 20px;
    color: var(--text-gray);
    font-size: 0.95rem;
    text-align: center;
    background: var(--bg-light);
    padding: 15px;
    border-radius: 8px;
}

/* ================================================================
   БЛОК СВЯЗИ С ПРОФСТАНДАРТОМ
   ================================================================ */

.link-section {
    padding: 70px 0;
    background: var(--primary-dark);
    color: #fff;
}

.link-section .inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.link-section .inner h2 {
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 20px;
}

.link-section .inner p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* ——— Кнопки ——— */

.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary-dark);
}

.btn-primary:hover {
    background: var(--secondary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.link-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================================================
   АДАПТИВНОСТЬ
   ================================================================ */

/* ——— Планшеты ——— */

@media (max-width: 992px) {
    .concept-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .org-level {
        gap: 25px;
    }

    .org-node {
        min-width: 170px;
        padding: 18px 20px;
    }

    .org-connectors {
        gap: 80px;
    }
}

/* ——— Мобильные ——— */

@media (max-width: 768px) {
    /* Бургер-меню */
    .burger-btn {
        display: flex;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        background: var(--bg-white);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 15px;
        border-top: 1px solid #eee;
    }

    .nav-list.open {
        display: flex;
    }

    .nav-list a {
        font-size: 1.1rem;
    }

    /* Герой */
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* Схема */
    .org-level {
        flex-direction: column !important;
        align-items: center;
        gap: 20px !important;
    }

    .org-node {
        min-width: unset !important;
        width: 100%;
        max-width: 320px;
    }

    .org-node.director {
        max-width: 320px;
    }

    .org-connectors {
        display: none;
    }

    /* Тултипы на мобильных — по клику */
    .node-tooltip {
        position: fixed;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90%;
        min-width: unset;
        width: 90%;
        border-radius: 16px;
        padding: 25px;
        z-index: 999;
    }

    .node-tooltip::after {
        display: none;
    }

    /* Таблицы */
    .table-wrap table thead th,
    .table-wrap table tbody td {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    /* Подвал */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Кнопки */
    .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }

    .link-actions {
        flex-direction: column;
    }

    .resource-section h2 {
        font-size: 1.6rem;
    }

    .resource-section h3 {
        font-size: 1.1rem;
    }

    .link-section .inner h2 {
        font-size: 1.6rem;
    }
}

/* ——— Мелкие телефоны ——— */

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .concept-text h2 {
        font-size: 1.5rem;
    }

    .concept-text p {
        font-size: 0.95rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .org-node {
        padding: 15px 18px;
    }

    .org-node .node-icon {
        font-size: 1.8rem;
    }

    .org-node .node-title {
        font-size: 0.9rem;
    }

    .org-node.director .node-title {
        font-size: 1rem;
    }

    .org-node.director .node-icon {
        font-size: 2rem;
    }

    .table-wrap table thead th,
    .table-wrap table tbody td {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .table-note {
        font-size: 0.85rem;
        padding: 12px;
    }

    .link-section .inner h2 {
        font-size: 1.3rem;
    }

    .link-section .inner p {
        font-size: 0.95rem;
    }

    .footer-info p,
    .footer-contacts p {
        font-size: 0.85rem;
    }
}

/* ================================================================
   ДОПОЛНИТЕЛЬНЫЕ УТИЛИТЫ
   ================================================================ */

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}

/* Стили для маркеров [ВСТАВИТЬ ТЕКСТ] — чтобы их было видно */
.marked {
    background: #fff3cd;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px dashed #d4a34a;
    color: #856404;
}