/* style.css - Единая таблица стилей сайта TNR Programming (стиль TNR MoonLight) */
/* Кодировка Windows-1251 */

/* --- 1. Базовые стили страницы --- */
body {
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    /* Фон страницы в стиле сланцевой рамки окна TNR MoonLight */
    background: #cdd6e2 linear-gradient(180deg, #5a6b82 0%, #99a8bc 260px, #d5dde8 600px, #e4eaf1 100%) fixed;
    margin: 0;
    padding: 12px 0 28px 0;
    color: #1c2530;
}

a {
    color: #2b6cb0;
    text-decoration: none;
}

a:hover {
    color: #d9480f;
    text-decoration: underline;
}

/* --- 2. Шапка, навигация и основной каркас (1056px) --- */
.tnr-header-table {
    width: 1056px;
    max-width: 98%;
    background: #e2e8f0;
    background: linear-gradient(180deg, #f1f5f9 0%, #e3eaf2 55%, #d3dde8 100%);
    border: 1px solid #8fa1b8;
    border-top: 4px solid #56677d;
    border-bottom: 1px solid #b8c4d4;
    border-radius: 9px 9px 0 0;
    box-shadow: 0 6px 20px rgba(25, 38, 56, 0.22);
}

.tnr-nav-table {
    width: 1038px;
    max-width: 100%;
    margin-top: 6px;
}

.tnr-tab-cell {
    width: 173px;
    height: 36px;
    text-align: center;
    vertical-align: middle;
    background: #d8e0ea linear-gradient(180deg, #eef2f7 0%, #dce4ee 100%);
    border: 1px solid #b0bece;
    border-bottom: none;
    border-radius: 7px 7px 0 0;
    transition: all 0.15s ease;
}

.tnr-tab-cell:hover {
    background: #ffffff;
    border-color: #94a6bc;
    box-shadow: 0 -2px 6px rgba(40, 60, 85, 0.08);
}

.tnr-tab-cell a {
    display: block;
    width: 100%;
    line-height: 34px;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.tnr-tab-cell a:hover {
    color: #1a5696;
    text-decoration: none;
}

.tnr-tab-cell a.tab-accent {
    color: #c92a2a;
}

.tnr-tab-cell a.tab-accent:hover {
    color: #e03131;
}

.tnr-body-table {
    width: 1056px;
    max-width: 98%;
    background: #f4f7fa;
    border-left: 1px solid #8fa1b8;
    border-right: 1px solid #8fa1b8;
    box-shadow: 0 8px 22px rgba(25, 38, 56, 0.18);
}

/* Автоматическая стилизация таблицы подвала (даже для старого counters.php) */
div[align="center"] > table[height="120"] {
    width: 1056px !important;
    max-width: 98% !important;
    background: #dce4ee linear-gradient(180deg, #e8eef5 0%, #cfd9e6 100%) !important;
    border: 1px solid #8fa1b8;
    border-top: 1px solid #c2cedd;
    border-radius: 0 0 9px 9px;
    box-shadow: 0 8px 18px rgba(25, 38, 56, 0.18);
}

/* --- 3. Карточки программ (index.php и prog.php) --- */
.prog-card {
    margin-bottom: 18px;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
    color: #1c2530;
    background: #ffffff;
    border: 1px solid #d0d8e2;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(30, 45, 65, 0.05);
    overflow: hidden;
}

.prog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #eef2f7 linear-gradient(180deg, #f7f9fc 0%, #e6ecf3 100%);
    border-bottom: 1px solid #d5dde7;
    padding: 9px 16px;
    min-height: 36px;
}

.prog-title-box {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    font-size: 14px;
}

.prog-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #dce3ec;
    border: 1px solid #c4cedb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.prog-icon-badge img {
    display: block;
    border: 0;
    width: 28px;
    height: 28px;
}

.prog-title-link {
    color: #15202b;
    text-decoration: none;
}

.prog-title-link:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

.prog-badge {
    color: #c92a2a;
    margin-left: 6px;
    font-size: 12px;
    background: #fff0f0;
    border: 1px solid #f2b8b8;
    padding: 2px 8px;
    border-radius: 12px;
}

.prog-stars {
    color: #e6a817;
    font-size: 18px;
    letter-spacing: 2px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    user-select: none;
}

.prog-body {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 16px 18px;
}

.prog-thumb {
    width: 240px;
    flex-shrink: 0;
    position: relative;
}

.prog-thumb-link {
    display: block;
    position: relative;
    text-decoration: none;
    cursor: zoom-in;
}

.prog-thumb img {
    width: 100%;
    height: auto;
    border: 1px solid #b8c4d4;
    border-radius: 7px;
    box-shadow: 0 3px 10px rgba(20, 32, 48, 0.12);
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.prog-thumb-link:hover img {
    transform: scale(1.02);
    border-color: #5a6b82;
    box-shadow: 0 5px 16px rgba(20, 32, 48, 0.22);
}

.prog-desc {
    flex: 1;
    font-size: 13px;
    line-height: 1.55;
    color: #222b36;
}

.prog-award {
    width: 130px;
    flex-shrink: 0;
    text-align: center;
    font-size: 11px;
}

/* --- 4. Кнопки и панель загрузки --- */
.prog-downloads-box {
    background: #f1f5f9;
    border-top: 1px solid #dce3ec;
    padding: 10px 18px;
}

.prog-downloads-title {
    font-size: 11px;
    font-weight: bold;
    color: #526378;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}

.prog-actions-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-action {
    display: inline-block;
    padding: 7px 16px;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-download-main {
    background: #4c637d linear-gradient(180deg, #5d7694 0%, #445971 100%);
    border: 1px solid #384a5e;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(30, 45, 65, 0.2);
}

.btn-download-main:hover {
    background: #3b526b linear-gradient(180deg, #4c6684 0%, #354a61 100%);
    box-shadow: 0 3px 7px rgba(30, 45, 65, 0.3);
    transform: translateY(-1px);
}

.btn-whatsnew {
    background: #ffffff linear-gradient(180deg, #ffffff 0%, #eaeef4 100%);
    border: 1px solid #b0bece;
    color: #2c3e50 !important;
}

.btn-whatsnew:hover {
    background: #dfe6ef;
    color: #15202b !important;
    border-color: #8fa1b8;
}

.btn-addon {
    background: #fffaf0 linear-gradient(180deg, #ffffff 0%, #faeed7 100%);
    border: 1px solid #dec28e;
    color: #8c5800 !important;
}

.btn-addon:hover {
    background: #f5b82e;
    color: #141920 !important;
    border-color: #d99b16;
}

.prog-ad-banner {
    margin: 14px 0;
    text-align: center;
}

.prog-divider {
    border: 0;
    height: 1px;
    background-color: #cbd5e1;
    margin: 18px 0;
}

/* --- 5. Комментарии и форма обратной связи --- */
.comments-section-header {
    background: #eef2f7 linear-gradient(180deg, #f7f9fc 0%, #e4eaf2 100%);
    border: 1px solid #ccd5e0;
    border-radius: 8px;
    padding: 8px 14px;
    text-align: center;
    font-weight: bold;
    font-size: 13px;
    color: #1c2530;
    margin-bottom: 14px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.comment-card {
    background: #ffffff;
    border: 1px solid #d4dce6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(30, 45, 65, 0.04);
}

.comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #edf1f6;
    padding: 6px 14px;
    border-bottom: 1px solid #dce3ec;
    font-size: 12px;
}

.comment-author {
    font-weight: bold;
    color: #1c2836;
}

.comment-date {
    color: #6c7e95;
    font-size: 11px;
}

.comment-body {
    padding: 10px 16px;
    font-size: 12px;
    line-height: 1.5;
    color: #222b36;
}

.comments-more-wrap {
    text-align: center;
    margin: 14px 0 18px 0;
}

.comment-form-card {
    background: #ffffff;
    border: 1px solid #d0d8e2;
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 14px;
    box-shadow: 0 2px 6px rgba(30, 45, 65, 0.04);
}

.comment-form-title {
    font-size: 13px;
    font-weight: bold;
    color: #1c2836;
    margin-bottom: 12px;
}

.form-row {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.form-label {
    width: 110px;
    font-size: 12px;
    font-weight: bold;
    color: #3b4d63;
}

.form-input {
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    padding: 6px 10px;
    border: 1px solid #b8c4d4;
    border-radius: 5px;
    background: #f9fbfd;
    width: 340px;
    max-width: 100%;
    box-sizing: border-box;
}

.form-input:focus, .form-textarea:focus {
    border-color: #5a6b82;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(90, 107, 130, 0.18);
}

.form-textarea {
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    padding: 8px 10px;
    border: 1px solid #b8c4d4;
    border-radius: 5px;
    background: #f9fbfd;
    width: 100%;
    max-width: 780px;
    box-sizing: border-box;
}

.form-captcha-hint {
    font-size: 12px;
    color: #4f6278;
}

.comment-warning-box {
    background: #fff5f5;
    border: 1px solid #e6b8b8;
    border-left: 4px solid #c92a2a;
    border-radius: 6px;
    padding: 10px 14px;
    margin: 12px 0;
    font-size: 12px;
    line-height: 1.45;
    color: #222b36;
    max-width: 780px;
}

.btn-submit {
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    padding: 8px 22px;
    background: #4c637d linear-gradient(180deg, #5d7694 0%, #445971 100%);
    border: 1px solid #384a5e;
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
}

.btn-submit:hover {
    background: #3b526b linear-gradient(180deg, #4c6684 0%, #354a61 100%);
}

/* --- 6. Модальная галерея скриншотов и окно "История версий" (gallery_modal.php) --- */
.tnr-modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 34, 0.86);
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.tnr-modal-overlay.open {
    display: flex;
}

.tnr-modal-window {
    background: #f4f7fa;
    border: 1px solid #6c7e95;
    border-radius: 9px;
    max-width: 960px;
    width: 100%;
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    font-family: Tahoma, Arial, sans-serif;
}

.tnr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #5a6b82 linear-gradient(180deg, #677991 0%, #526378 100%);
    border-bottom: 1px solid #455468;
    padding: 9px 16px;
}

.tnr-modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: bold;
    color: #ffffff;
}

.tnr-modal-title-wrap img {
    width: 24px;
    height: 24px;
    border: 0;
}

.tnr-modal-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tnr-modal-close {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 19px;
    font-weight: bold;
    line-height: 24px;
    width: 28px;
    height: 26px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.tnr-modal-close:hover {
    background: #c92a2a;
    border-color: #a61e1e;
}

.tnr-modal-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #141920;
    padding: 14px 54px;
    min-height: 320px;
    flex: 1;
    overflow: hidden;
}

.tnr-modal-main-img {
    max-width: 100%;
    max-height: 65vh;
    width: auto;
    height: auto;
    border: 1px solid #4a5768;
    border-radius: 5px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
    background: #ffffff;
    display: block;
}

.tnr-modal-nav {
    position: absolute;
    top: 50%;
    margin-top: -22px;
    width: 38px;
    height: 44px;
    line-height: 40px;
    text-align: center;
    background: #e9eef4 linear-gradient(180deg, #ffffff 0%, #dce3ec 100%);
    border: 1px solid #9aa9bc;
    border-radius: 6px;
    color: #2c3e50;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.tnr-modal-nav:hover {
    background: #f5b82e;
    color: #141920;
    border-color: #d99b16;
}

.tnr-modal-prev { left: 10px; }
.tnr-modal-next { right: 10px; }

.tnr-modal-footer {
    background: #e9eef4;
    border-top: 1px solid #c8d2df;
    padding: 10px 16px;
}

.tnr-modal-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #4f6278;
    margin-bottom: 8px;
}

.tnr-modal-counter {
    font-weight: bold;
    color: #1c2836;
}

.tnr-modal-thumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.tnr-modal-thumb-item {
    width: 84px;
    height: 58px;
    flex-shrink: 0;
    border: 2px solid #becad8;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
    transition: all 0.15s ease;
}

.tnr-modal-thumb-item:hover {
    opacity: 1;
    border-color: #5a6b82;
}

.tnr-modal-thumb-item.active {
    opacity: 1;
    border-color: #e69c18;
    box-shadow: 0 0 0 2px rgba(230, 156, 24, 0.3);
}

.tnr-modal-thumb-item img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border: 0;
}

.tnr-whatsnew-content {
    padding: 18px 22px;
    overflow-y: auto;
    max-height: 75vh;
    font-size: 13px;
    line-height: 1.55;
    color: #1c2530;
    background: #ffffff;
    white-space: pre-wrap;
    font-family: Tahoma, Arial, sans-serif;
}

/* --- 7. Структурированные таблицы для страниц ключей (keys.php и price.php) --- */
.keys-promo-body {
    padding: 16px 20px;
    font-size: 13px;
    line-height: 1.6;
    color: #222b36;
    background: #ffffff;
}

.keys-promo-highlight {
    color: #c92a2a !important;
    font-weight: bold;
    font-size: 14px;
}

/* Классическая строгая таблица данных (для бесплатных и VIP ключей) */
.tnr-data-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #cfd8e3;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 13px;
}

.tnr-data-table th {
    background: #e2e8f0 linear-gradient(180deg, #eef2f7 0%, #dce4ee 100%);
    color: #2c3e50;
    font-size: 12px;
    font-weight: bold;
    text-align: left;
    padding: 9px 14px;
    border-bottom: 1px solid #c2cedd;
}

.tnr-data-table td {
    padding: 9px 14px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    color: #1c2530;
}

.tnr-data-table tr.row-even td {
    background-color: #ffffff;
}

.tnr-data-table tr.row-odd td {
    background-color: #f1f5f9;
}

.tnr-data-table tr.data-row:hover td {
    background-color: #e4ecf5;
}

.tnr-data-table td.col-icon {
    width: 38px;
    text-align: center;
    padding-left: 10px;
    padding-right: 6px;
}

.tnr-data-table td.col-prog {
    font-weight: bold;
}

.tnr-data-table td.col-date {
    width: 150px;
    text-align: center;
    white-space: nowrap;
    color: #2c3e50;
}

.tnr-data-table td.col-action {
    width: 160px;
    text-align: right;
    padding-right: 18px;
    white-space: nowrap;
}

.btn-table-key {
    display: inline-block;
    padding: 5px 14px;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff !important;
    background: #4c637d linear-gradient(180deg, #5d7694 0%, #445971 100%);
    border: 1px solid #384a5e;
    border-radius: 5px;
    text-decoration: none !important;
}

.btn-table-key:hover {
    background: #3b526b linear-gradient(180deg, #4c6684 0%, #354a61 100%);
    color: #ffffff !important;
}

/* VIP блок преимуществ в price.php (на надежной табличной сетке) */
.vip-intro-table {
    width: 100%;
    border-collapse: collapse;
}

.vip-intro-table td {
    vertical-align: middle;
    padding: 16px;
}

.vip-benefits-list {
    margin: 8px 0 0 0;
    padding-left: 18px;
}

.vip-benefits-list li {
    margin-bottom: 4px;
}

.vip-counter-card {
    background: #f4f7fa;
    border: 1px solid #d0d8e2;
    border-radius: 8px;
    padding: 12px 10px;
    text-align: center;
    font-size: 11px;
    color: #4f6278;
}

.vip-counter-num {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #1c2836;
    margin: 4px 0 2px 0;
}

/* Плашка контактов поддержки */
.support-banner {
    background: #eef5f0;
    border: 1px solid #c3d9c8;
    border-radius: 8px;
    padding: 12px 16px;
    text-align: center;
    font-size: 13px;
    margin-bottom: 18px;
    color: #1c2530;
}

.support-banner b.ask {
    color: #c92a2a;
}

.support-banner a, .support-banner b.contact {
    color: #1a5696;
    font-weight: bold;
}

.price-notice-bar {
    background: #f4f7fa;
    border-bottom: 1px solid #dce3ec;
    padding: 10px 16px;
    text-align: center;
    font-size: 12px;
    color: #4f6278;
}

.price-values-cell {
    text-align: right;
    white-space: nowrap;
    font-size: 12px;
    color: #4f6278;
}

.price-values-cell b {
    color: #2b8a3e;
    font-size: 13px;
}

.price-footnotes {
    font-size: 11px;
    color: #4f6278;
    line-height: 1.5;
    padding: 6px 4px 2px 4px;
}
