/* Общие стили */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --text-light: #7f8c8d;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
	width: 100%;
	max-width: 1280px;
    margin: 0 auto;
    padding: 0px;
    flex: 1;
}

/* Шапка и навигация */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px 0;
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.action-btn {
    padding: 10px 20px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 40px;
    display: flex;
    align-items: center;
}

.action-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-btn {
    height: 40px;
    display: flex;
    align-items: center;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: var(--shadow);
    z-index: 1;
    border-radius: 4px;
    overflow: hidden;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Заголовки и текстовые блоки */
.header-title {
    font-size: 3rem;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: bold;
    text-transform: uppercase;
}

.welcome-message {
    font-size: 1.4rem;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 50px;
}

.welcome-block {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
	margin-top: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 1.1rem;
}

.rules-block {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 60px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

.rules-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: bold;
}

.section-subtitle {
    font-size: 1.8rem;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: bold;
}

.rule-item {
    margin-bottom: 15px;
}

.rule-item a {
    text-decoration: none;
    color: #0066cc;
    transition: text-decoration 0.3s ease;
}

.rule-item a:hover {
    text-decoration: underline;
}

.rule-item strong {
    color: #e74c3c;
}

/* Expandable контейнер */
.expandable-container {
    position: relative;
    padding-bottom: 50px;
}

.hidden-content {
    display: none;
}

.expandable-text {
    position: relative;
}

.expandable-text.collapsed {
    max-height: 210px;
    overflow: hidden;
}

.expandable-text.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.9) 90%);
    pointer-events: none;
}

.expand-toggle {
    display: block;
    text-align: center;
    padding: 12px 25px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    border-radius: 30px;
	margin-top: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    width: fit-content;
    position: absolute;
    bottom: 0px; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.expand-toggle:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.expand-toggle.collapse {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    transform: translateX(-50%);
    bottom: -20px
}

.expand-toggle.collapse:hover {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
    transform: translateX(-50%) translateY(-2px);
}

/* Мануалы */
.manuals-container {
    display: flex;
    margin-top: 30px;
}

.manuals-sidebar {
    width: 250px;
    background-color: white;
    border-radius: 8px 0 0 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.manuals-content {
    flex: 1;
    background-color: white;
    border-radius: 0 8px 8px 0;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.manual-tab {
    display: block;
    padding: 12px 15px;
    margin-bottom: 8px;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    border-radius: 4px;
}

.manual-tab:hover {
    background-color: #f1f1f1;
}

.manual-tab.active {
    border-left: 3px solid #3498db;
    background-color: #f8f9fa;
    font-weight: bold;
}

.manual-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.manual-item:last-child {
    border-bottom: none;
}

.manual-item h3 {
    color: #2c3e50;
    cursor: pointer;
    transition: color 0.2s;
    padding: 8px 0;
}

.manual-item h3:hover {
    color: #3498db;
}

.manual-item a {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.manual-item a:hover {
    color: #3498db;
}

.locked-tab {
    color: #999;
    position: relative;
}

.locked-tab:after {
    content: "🔒";
    margin-left: 5px;
}

.manual-tab-content {
    display: none;
}

.manual-tab-content.active {
    display: block;
}

.manual-content-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Разделительная линия */
.section-divider {
    display: flex;
    align-items: center;
    margin: 40px 0;
    color: #7f8c8d;
}

.section-divider::before,
.section-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.section-divider::before {
    margin-right: 20px;
}

.section-divider::after {
    margin-left: 20px;
}

/* Статьи и контент */
.article-container {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	
}

.article-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 5px;
    text-align: center;
}

.article-title {
    font-size: 2.4rem;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
    font-weight: bold;
}

.content-block {
    margin-bottom: 30px;
}

.content-block h3 {
    font-size: 1.3rem;
    margin: 25px 0 15px;
    color: #2c3e50;
}

.content-block p {
    margin-bottom: 15px;
}

/* СПИСКИ */
/* Унифицированные стили для всех списков */
.content-block ul,
.content-block ol,
.content-block .custom-list,
.content-block .scheme-pros,
.content-block .scheme-cons {
    list-style: none;
    padding-left: 1.5em;
    margin: 0.8em 0;
}

/* Общие стили для элементов списка */
.content-block li,
.content-block .custom-list li,
.content-block .scheme-pros li,
.content-block .scheme-cons li {
    position: relative;
    margin-bottom: 0.5em;
    line-height: 1.5;
}

/* Маркеры для ненумерованных списков */
.content-block ul > li::before,
.content-block .custom-list > li::before,
.content-block .scheme-pros > li::before,
.content-block .scheme-cons > li::before {
    content: "•";
    position: absolute;
    left: -1em;
    color: #3498db;
}

/* Стили для нумерованных списков */
.content-block ol {
    counter-reset: item;
}

.content-block ol > li {
    counter-increment: item;
}

.content-block ol > li::before {
    content: counter(item) ".";
    position: absolute;
    left: -1.5em;
    color: #3498db;
    font-weight: bold;
}

/* Стили для вложенных списков */
.content-block ul ul,
.content-block ol ul,
.content-block ul ol,
.content-block ol ol {
    padding-left: 1.2em;
    margin: 0.5em 0;
}

/* Маркеры для вложенных ненумерованных списков */
.content-block ul ul > li::before,
.content-block ol ul > li::before {
    content: "◦";
    color: #666;
}

/* Нумерация для вложенных нумерованных списков */
.content-block ol ol {
    counter-reset: subitem;
}

.content-block ol ol > li {
    counter-increment: subitem;
}

.content-block ol ol > li::before {
    content: counter(item) "." counter(subitem);
    color: #666;
}

/* Специальные стили для списков в блоках схем */
.connection-scheme ul,
.connection-scheme ol {
    padding-left: 1.8em;
}

.connection-scheme li {
    margin-bottom: 0.6em;
}

.scheme-pros > li::before {
    color: #27ae60;
}

.scheme-cons > li::before {
    color: #e74c3c;
}

/* Стили для списков внутри info-box и warning-box */
.info-box ul,
.info-box ol,
.warning-box ul,
.warning-box ol {
    padding-left: 1.5em;
    margin: 0.6em 0;
}

.info-box li,
.warning-box li {
    margin-bottom: 0.4em;
}



/* Блоки с разным оформлением */
.feature-item {
    background-color: #f9f9f9;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
}

.warning-box {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.danger-box {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.info-box {
    background-color: #e8f4fd;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.note-box {
            background-color: #f8f9fa;
            border-left: 4px solid #7f8c8d;
            padding: 15px;
            margin: 20px 0;
            border-radius: 0 4px 4px 0;
            font-style: italic;
}

.tip-box {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

.example-box {
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
    font-family: monospace;
    white-space: pre-wrap;
}

.penalty-item {
    background-color: #f9f9f9;
    border-left: 4px solid #e74c3c;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
}

.penalty-amount {
    color: #e74c3c;
    font-weight: bold;
}

/* Кнопки */
.back-button {
    display: inline-block;
    margin: 5px 0;
    padding: 10px 15px;
    background: #f0f0f0;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid #ddd; /* Добавляем лёгкую границу */
}

.back-button:hover {
    background: #e0e0e0;
    transform: translateY(-1px); /* Лёгкий эффект поднятия */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Тень при наведении */
}

/* Примеры отчетов */
.report-sample {
    background-color: #f0f7ff;
    border: 1px solid #cce0ff;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    font-family: monospace;
    white-space: pre;
    overflow-x: auto;
}

.report-example {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 5px;
    padding: 20px;
    margin: 20px 0;
    font-family: monospace;
    white-space: pre;
    overflow-x: auto;
}

/* Кастомные списки */
.custom-list {
    list-style: none;
    padding-left: 25px;
}

.custom-list li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 25px;
}

.custom-list li::before {
    content: "▪️";
    position: absolute;
    left: 0;
    color: #3498db;
}

.check-list {
    list-style: none;
    padding-left: 25px;
}

.check-list li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 25px;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.ban-list {
    list-style: none;
    padding-left: 25px;
}

.ban-list li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 25px;
}

.ban-list li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #f44336;
    font-weight: bold;
}

/* Категории риска */
/* Стили для заголовков в цветных блоках */
.info-box h4,
.warning-box h4,
.danger-box h4,
.tip-box h4,
.risk-items h3,
.risk-items h4 {
    color: #2c3e50; /* Темный цвет для лучшей читаемости */
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Специфичные цвета для разных блоков */
.info-box h4 {
    color: #1a5276; /* Темно-синий для info-box */
}

.warning-box h4 {
    color: #7d6608; /* Темно-желтый/коричневый для warning-box */
}

.danger-box h4 {
    color: #78281f; /* Темно-красный для danger-box */
}

.tip-box h4 {
    color: #1e8449; /* Темно-зеленый для tip-box */
}

/* Заголовки в блоках риска (оставляем белыми) */
.risk-category h4 {
    font-size: 1.3rem;
    font-weight: bold;
    padding: 12px 15px;
    margin: 0;
    color: white !important; /* Принудительно белый */
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Контент в блоках риска */
.risk-items h3,
.risk-items h4 {
    color: #2c3e50 !important; /* Темный цвет для контента */
    margin: 15px 0 10px;
}

/* Улучшенные стили для списков в блоках */
.info-box .custom-list li::before,
.warning-box .custom-list li::before,
.danger-box .custom-list li::before,
.tip-box .custom-list li::before {
    color: inherit;
}

/* Переопределение цветов для всех заголовков внутри блоков */
.info-box h1, .info-box h2, .info-box h3, .info-box h4, .info-box h5, .info-box h6,
.warning-box h1, .warning-box h2, .warning-box h3, .warning-box h4, .warning-box h5, .warning-box h6,
.danger-box h1, .danger-box h2, .danger-box h3, .danger-box h4, .danger-box h5, .danger-box h6,
.tip-box h1, .tip-box h2, .tip-box h3, .tip-box h4, .tip-box h5, .tip-box h6 {
    color: inherit !important;
}

.high-risk {
    background-color: #f44336;
}

.medium-risk {
    background-color: #ff9800;
}

.low-risk {
    background-color: #4caf50;
}

.risk-items {
    background-color: #f9f9f9;
    padding: 15px;
}

.risk-items ul {
    margin: 0;
    padding-left: 20px;
}

.risk-items li {
    margin-bottom: 8px;
}

/* Таблицы */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.comparison-table th, .comparison-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.comparison-table th {
    background-color: #f2f2f2;
    color: #2c3e50;
}

.comparison-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Шаги */
.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.step-number {
    background-color: #3498db;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-weight: bold;
}

.step-content {
    flex-grow: 1;
}

/* Шаблоны */
.template-box {
    background-color: #e9ecef;
    border-left: 4px solid #6c757d;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
    font-family: monospace;
    white-space: pre-wrap;
}

/* Ссылки .onion */
.onion-link {
    display: block;
    background-color: #f0f0f0;
    color: #333;
    padding: 8px 15px;
    border-radius: 6px;
    margin: 5px 0;
    text-decoration: none;
    border: 1px solid #ddd;
    cursor: pointer;
    position: relative;
    font-family: monospace;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.onion-link:hover {
    background-color: #e0e0e0;
}

.onion-link::after {
    content: "Копировать";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.onion-link:hover::after {
    opacity: 1;
}

/* Типы кладов */
.klad-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.klad-type {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border-top: 4px solid;
}

.klad-type:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.klad-type h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.klad-type a {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    color: white;
    margin-top: 10px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
}

.klad-type a:hover {
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.klad-type.prikop {
    border-color: #27ae60;
}

.klad-type.taimik {
    border-color: #e67e22;
}

.klad-type.magnet {
    border-color: #9b59b6;
}

/* Изображения */
.screenshot {
    max-width: 500px;
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 15px auto;
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.screenshot:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.screenshot.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    margin: auto;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.9);
    object-fit: contain;
    cursor: zoom-out;
    border: none;
    border-radius: 0;
    transform: none;
    padding: 0px;
    box-sizing: border-box;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
}

.screenshot-container {
    text-align: center;
    margin: 20px 0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.screenshot-caption {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 8px;
    font-style: italic;
}

/* Вакансии */
.vacancies {
    padding: 0px 0;
}

.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.job-item {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-color);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.job-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.job-item.hot-job {
    border-left-color: var(--accent-color);
}

.job-badge {
    position: absolute;
    top: 15px;
    right: -25px;
    background-color: var(--accent-color);
    color: white;
    padding: 3px 30px;
    transform: rotate(45deg);
    font-size: 12px;
    font-weight: bold;
}

.job-header {
    margin-bottom: 15px;
}

.job-header h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
}

.job-item p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.job-details-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.job-item:hover .job-details-btn {
    background-color: var(--primary-color);
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 900px;
    position: relative;
    animation: modalopen 0.4s;
}



@keyframes modalopen {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: var(--primary-color);
}

.modal-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.modal-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 5px;
}

.modal-scrollable {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 15px;
}

.job-description {
    line-height: 1.7;
    color: var(--text-color);
}

.job-highlight {
    background-color: #f8f9fa;
    padding: 15px;
    border-left: 4px solid var(--secondary-color);
    margin-bottom: 25px;
    border-radius: 0 4px 4px 0;
}

.job-section {
    margin-bottom: 30px;
}

.job-section h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.salary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.salary-column h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 10px;
}

.faq-section {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-item h4 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.job-cta {
    background-color: var(--primary-color);
    padding: 30px;
    border-radius: 8px;
    color: white;
    text-align: center;
    margin-top: 40px;
}

.job-cta p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.cta-btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: white;
    color: var(--primary-color);
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 10px;
    }
    
    .article-container {
        padding: 15px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .screenshot, .screenshot-container {
        max-width: 100%;
    }
    
    .content-block {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .manuals-container {
        flex-direction: column;
    }
    
    .manuals-sidebar {
        width: 100%;
        border-radius: 8px 8px 0 0;
    }
    
    .manuals-content {
        border-radius: 0 0 8px 8px;
    }
    
    .section-divider {
        margin: 30px 0;
    }
    
    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .job-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .action-buttons {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .back-button {
        width: 100%;
        text-align: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

/* Калькулятор дохода */
.income-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
    gap: 5px;
}

.income-tab {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #f1f1f1;
    border-radius: 5px 5px 0 0;
    margin-bottom: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

.income-tab:hover {
    background-color: #e0e0e0;
}

.income-tab.active {
    background-color: #3498db;
    color: white;
}

.income-tab-content {
    display: none;
}

.income-tab-content.active {
    display: block;
}

/* Стили калькулятора */
.calculator-box {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.calculator-title {
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.calculator-form-group {
    margin-bottom: 20px;
}

.calculator-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.calculator-input, .calculator-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.calculator-input:focus, .calculator-select:focus {
    border-color: #3498db;
    outline: none;
}

.calculator-button {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 15px;
    display: inline-block;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.calculator-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #2c3e50, #3498db);
}

.calculator-button:active {
    transform: translateY(0);
}

.calculator-result {
    margin-top: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.calculator-result .result-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1rem;
}

.calculator-result div {
    margin-bottom: 8px;
}

.calculator-result strong {
    color: #2c3e50;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.calculator-input-group {
    position: relative;
}

.calculator-available {
    position: absolute;
    right: 10px;
    top: 35px;
    font-size: 12px;
    color: #7f8c8d;
}

.calculator-info {
    font-size: 14px;
    color: #7f8c8d;
    margin-top: 8px;
    font-style: italic;
}

.hidden {
    display: none;
}

/* Дополнительные стили для калькулятора */
.calculator-note {
    margin-top: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    font-size: 14px;
    color: #555;
    text-align: center;
}

.calculator-note p {
    margin: 0;
    line-height: 1.5;
}

.calculator-note p:first-child {
    margin-top: 0;
}

.calculator-note p:last-child {
    margin-bottom: 0;
}

.calculator-input-wrapper {
    position: relative;
}

.calculator-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #fff;
}

.calculator-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    outline: none;
}

.calculator-available {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #7f8c8d;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0 5px;
    border-radius: 3px;
}

/* Общие стили для калькуляторов */
.calculator-box {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.calculator-title {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.calculator-form-group {
    margin-bottom: 15px;
}

.calculator-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.calculator-info {
    font-size: 0.85em;
    color: #777;
    margin-top: 5px;
}

/* Стили для ввода и выбора */
.calculator-input,
.calculator-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.calculator-input:focus,
.calculator-select:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.calculator-input[type="number"] {
    -moz-appearance: textfield;
}

.calculator-input[type="number"]::-webkit-outer-spin-button,
.calculator-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Стили для кнопок */
.calculator-button {
    background-color: #4a90e2;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 10px;
}

.calculator-button:hover {
    background-color: #3a7bc8;
}

/* Стили для результатов */
.calculator-result {
    margin-top: 20px;
    padding: 15px;
    background-color: #f0f7ff;
    border-radius: 5px;
    border-left: 4px solid #4a90e2;
}

.calculator-result.hidden {
    display: none;
}

.result-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

/* Стили для вкладок */
.income-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.income-tab {
    padding: 8px 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    transition: all 0.3s;
}

.income-tab:hover {
    background-color: #e0e0e0;
}

.income-tab.active {
    background-color: #4a90e2;
    color: white;
}

.income-tab-content {
    display: none;
}

.income-tab-content.active {
    display: block;
}

/* Стили для таблицы фасовок (исправленная версия) */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.calculator-input-group {
    margin-bottom: 15px;
}

.calculator-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
    font-size: 0.9em;
}

.calculator-input-wrapper {
    position: relative;
}

.calculator-available {
    font-size: 0.8em;
    color: #777;
    margin-top: 3px;
}

/* Дополнительные стили */
.calculator-note {
    font-size: 0.85em;
    color: #777;
    margin-top: 20px;
    font-style: italic;
}

.custom-list {
    padding-left: 20px;
    margin: 10px 0;
}

.custom-list li {
    margin-bottom: 5px;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .income-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }
    
    .income-tab {
        white-space: nowrap;
        font-size: 0.9em;
        padding: 6px 12px;
    }
}

