/*****************************
 * 1. Общие базовые стили
 *****************************/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Базовый фон, текст, шрифт */
body {
    background-color: #faeee4; /* Нежный персиковый тон */
    color: #3e261a;           /* Тёплый тёмно-коричневый текст */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
    color: #6d3c2b;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Ссылки: тёплый коричнево-оранжевый, пунктирное подчёркивание */
a {
    color: #b95e33;
    text-decoration: none;
    border-bottom: 1px dashed #b95e33;
    padding: 1px 0;
}
a:hover {
    color: #82431f;
    text-decoration: underline;
    border-bottom: 1px solid #82431f;
}

/*****************************
 * 2. Переопределение цветов
 *    для стандартных классов
 *****************************/

/* 2.1. Кнопки */
.btn,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-light,
.btn-dark,
.btn-link {
    background-color: #b95e33 !important; /* Тёплый коричнево-оранжевый */
    color: #fff !important;
    border: 1px solid #82431f !important;
    border-radius: 4px !important;
}
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-success:hover,
.btn-danger:hover,
.btn-warning:hover,
.btn-info:hover,
.btn-light:hover,
.btn-dark:hover,
.btn-link:hover {
    background-color: #82431f !important;
    color: #fff !important;
    border-color: #5a2a16 !important;
}

/* Сброс для outline при фокусе */
.btn:focus,
.btn-primary:focus,
.btn-secondary:focus,
.btn-success:focus,
.btn-danger:focus,
.btn-warning:focus,
.btn-info:focus,
.btn-light:focus,
.btn-dark:focus,
.btn-link:focus {
    box-shadow: 0 0 3px rgba(130, 67, 31, 0.6) !important;
    outline: none !important;
}

/* 2.2. Alerts: единая «осенняя» гамма */
.alert,
.alert-primary,
.alert-secondary,
.alert-success,
.alert-danger,
.alert-warning,
.alert-info,
.alert-light,
.alert-dark {
    border: 1px solid #6d3c2b !important; /* Осенний оттенок границы */
    background-color: #f7e4d8 !important; /* Бежевый фон */
    color: #3e261a !important;           /* Тёплый тёмно-коричневый текст */
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(109, 60, 43, 0.2);
}

/* 2.3. Поля форм (form-control) */
.form-control {
    background-color: #fff !important;
    color: #3e261a !important;
    border: 1px solid #6d3c2b !important;
    border-radius: 4px !important;
}
.form-control:focus {
    border-color: #b95e33 !important;
    box-shadow: 0 0 4px rgba(109, 60, 43, 0.3) !important;
}

/* 2.4. Таблицы */
.table {
    color: #3e261a !important;
    background-color: #faeee4 !important;
}
.table thead {
    background-color: #ecc5b8 !important;
    color: #3e261a !important;
}
.table-bordered > :not(caption) > * > * {
    border-color: #6d3c2b !important;
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(236,197,184, 0.2) !important;
}
.table-hover tbody tr:hover {
    background-color: rgba(236,197,184, 0.3) !important;
}

/* 2.5. Карточки (card) */
.card {
    background-color: #faeee4 !important;
    border: 1px solid #6d3c2b !important;
}
.card-header {
    background-color: #ecc5b8 !important;
    color: #3e261a !important;
    border-bottom: 1px solid #6d3c2b !important;
}
.card-body {
    color: #3e261a !important;
}

/* 2.6. Список .list-group */
.list-group-item {
    background-color: #faeee4 !important;
    color: #3e261a !important;
    border: 1px solid #6d3c2b !important;
}
.list-group-item.active {
    background-color: #b95e33 !important;
    border-color: #82431f !important;
    color: #fff !important;
}

/* 2.7. Бейджи (badge) */
.badge,
.badge-primary,
.badge-secondary,
.badge-success,
.badge-danger,
.badge-warning,
.badge-info,
.badge-light,
.badge-dark {
    background-color: #b95e33 !important;
    color: #fff !important;
    border: 1px solid #82431f !important;
}

/* 2.8. Пагинация (pagination) */
.page-link {
    color: #b95e33 !important;
    border: 1px dashed #b95e33 !important;
}
.page-link:hover {
    color: #82431f !important;
    border-color: #82431f !important;
}
.page-item.active .page-link {
    background-color: #b95e33 !important;
    border-color: #82431f !important;
    color: #fff !important;
}

/* 2.9. Прогресс-бары (progress) */
.progress {
    background-color: #faeee4 !important;
    border: 1px solid #6d3c2b !important;
    height: 1.5rem !important;
    border-radius: 6px !important;
}
.progress-bar {
    background-color: #b95e33 !important;
    color: #fff !important;
}

/* 2.10. Текстовые классы (text-*) */
.text-primary,
.text-secondary,
.text-success,
.text-danger,
.text-warning,
.text-info,
.text-light,
.text-dark,
.text-body,
.text-muted,
.text-white,
.text-black-50,
.text-white-50 {
    color: #3e261a !important;
}

/* 2.11. Фоновые классы (bg-*) */
.bg-primary,
.bg-secondary,
.bg-success,
.bg-danger,
.bg-warning,
.bg-info,
.bg-light,
.bg-dark,
.bg-white,
.bg-transparent {
    background-color: #faeee4 !important;
    color: #3e261a !important;
}

/*****************************
 * 3. Ваши собственные классы
 *****************************/
.header-custom {
    background-color: #ecc5b8;
    border-bottom: 2px solid #6d3c2b;
    padding: 1rem;
}
.footer-custom {
    background-color: #ecc5b8;
    text-align: center;
    border-top: 2px solid #6d3c2b;
    color: #3e261a;
    padding: 1rem;
}

/*****************************
 * 4. Навигация (navbar)
 *****************************/
.navbar {
    background-color: #ecc5b8 !important;
    border-bottom: 1px solid #6d3c2b !important;
}
.navbar-nav .nav-link {
    color: #3e261a !important;
}
.nav-link:hover {
    color: #82431f !important;
}

/*****************************
 * 1. Общие базовые стили
 *****************************/

/* Контейнер */
.custom-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #faeee4; /* Нежный персиковый фон */
    color: #3e261a; /* Тёплый тёмно-коричневый текст */
    font-family: Arial, sans-serif;
}

/* Отступы */
.custom-margin-top {
    margin-top: 30px;
}

/* Оформление блоков (замена .alert) */
.custom-alert {
    border: 1px solid #6d3c2b; /* Осенний оттенок границы */
    background-color: #f7e4d8; /* Тёплый бежевый фон */
    color: #3e261a; /* Цвет текста */
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(109, 60, 43, 0.2);
}

/* Заголовки */
h5 {
    margin: 10px 0;
    font-weight: bold;
}

/*****************************
 * 2. Стили для заголовков и ссылок
 *****************************/
a {
    color: #b95e33;
    text-decoration: none;
    border-bottom: 1px dashed #b95e33;
    padding: 1px 0;
}
a:hover {
    color: #82431f;
    text-decoration: underline;
    border-bottom: 1px solid #82431f;
}

/*****************************
 * 3. Оформление футера
 *****************************/
footer {
    background-color: #ecc5b8;
    text-align: center;
    border-top: 2px solid #6d3c2b;
    color: #3e261a;
    padding: 10px;
    margin-top: 20px;
}

/* V35 public information pages */
body.v35-public {
    background: #07131b;
    color: #dce7eb;
    font-family: Arial, sans-serif;
}
body.v35-public h1,
body.v35-public h2,
body.v35-public h3,
body.v35-public h4 {
    color: #f4f8f9;
}
.v35-site-header {
    background: #0b1e29;
    border-bottom: 1px solid #24424f;
    padding: 1rem 0;
}
.v35-brand {
    color: #f4f8f9;
    border: 0;
    gap: .75rem;
    min-width: 0;
    text-decoration: none;
}
.v35-brand:hover {
    color: #ffffff;
    border: 0;
    text-decoration: none;
}
.v35-brand small {
    color: #9fb5bd;
    display: block;
    font-size: .72rem;
    line-height: 1.2;
    white-space: normal;
}
.v35-brand-logo {
    border-radius: 50%;
    display: block;
    flex: 0 0 auto;
    height: 2.75rem;
    max-height: 2.75rem;
    max-width: 2.75rem;
    object-fit: cover;
    width: 2.75rem;
}
.v35-site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
}
.v35-site-nav a {
    border: 0;
    color: #b9cbd1;
    font-size: .88rem;
}
.v35-site-nav a:hover {
    border: 0;
    color: #ffffff;
}
body.v35-public main {
    max-width: 1120px;
}
body.v35-public main > h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin: 2rem 0 1.5rem;
}
body.v35-public .alert,
body.v35-public .card {
    background: #102630 !important;
    border: 1px solid #294a56 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
    color: #dce7eb !important;
    margin-bottom: 1rem;
    padding: 1.25rem;
}
body.v35-public .alert-warning {
    border-left: 4px solid #d3a640 !important;
}
body.v35-public .alert-danger {
    border-left: 4px solid #df6b62 !important;
}
body.v35-public .alert-info,
body.v35-public .alert-primary {
    border-left: 4px solid #48a1bd !important;
}
body.v35-public .table {
    background: #102630 !important;
    color: #dce7eb !important;
}
body.v35-public .table > :not(caption) > * > * {
    background: transparent !important;
    border-color: #294a56 !important;
    color: #dce7eb !important;
}
body.v35-public a {
    border-bottom: 1px solid rgba(211, 166, 64, .55);
    color: #e7c56f;
}
.v35-site-footer {
    background: #0b1e29;
    border-top: 1px solid #24424f;
    color: #9fb5bd;
    padding: 0;
    text-align: left;
}
.v35-site-nav details {
    position: relative;
}
.v35-site-nav summary {
    color: #e7c56f;
    cursor: pointer;
    font-size: .88rem;
    list-style: none;
}
.v35-site-nav summary::-webkit-details-marker {
    display: none;
}
.v35-nav-menu {
    background: #102630;
    border: 1px solid #294a56;
    display: grid;
    gap: .5rem;
    min-width: 180px;
    padding: .75rem;
    position: absolute;
    right: 0;
    top: 1.5rem;
    z-index: 20;
}
.v35-nav-menu a {
    white-space: nowrap;
}
.citu-home-shell {
    background: #07131b;
    color: #dce7eb;
    min-height: 100vh;
}
.citu-home-shell h1,
.citu-home-shell h2,
.citu-home-shell h3 {
    color: #f4f8f9;
}
.citu-panel {
    background: #102630 !important;
    border: 1px solid #294a56 !important;
    border-radius: 8px !important;
    color: #dce7eb !important;
}
.citu-metric-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.citu-metric {
    background: #0b1e29;
    border: 1px solid #294a56;
    border-radius: 8px;
    padding: 1rem;
}
.citu-metric span {
    color: #9fb5bd;
    display: block;
    font-size: .85rem;
}
.citu-metric strong {
    color: #e7c56f;
    display: block;
    margin-top: .35rem;
}
.citu-resource-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.citu-panel a {
    overflow-wrap: anywhere;
}
.v35-kicker {
    color: #e7c56f;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}
.v35-code {
    background: #07131b;
    border: 1px solid #294a56;
    border-radius: 6px;
    color: #dce7eb;
    overflow-x: auto;
    padding: 1rem;
}
@media (max-width: 768px) {
    .v35-site-nav {
        align-items: flex-start;
        flex-direction: column;
    }
    .v35-nav-menu {
        margin-top: .5rem;
        position: static;
    }
}

/* CITU public production visual layer */
.citu-home-hero {
    background: #07131b;
    border-bottom: 1px solid #24424f;
    padding: 4rem 0 3.5rem;
}
.citu-home-hero h1 {
    color: #f4f8f9;
    font-size: clamp(2.6rem, 7vw, 5.4rem);
    line-height: 1;
    margin: .5rem 0 1rem;
}
.citu-home-hero .lead {
    color: #b9cbd1;
    max-width: 760px;
}
.v35-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.25rem;
}
.v35-status-pill,
.citu-api-badge {
    background: #0b1e29;
    border: 1px solid #d3a640;
    border-radius: 999px;
    color: #e7c56f;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 0;
    padding: .4rem .7rem;
}
.citu-section {
    background: #102630;
    border: 1px solid #294a56;
    border-radius: 8px;
    color: #dce7eb;
    padding: 1.5rem;
}
.citu-section h2 {
    color: #f4f8f9;
}
.citu-section-heading {
    align-items: end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.citu-section-heading > p {
    color: #9fb5bd;
    margin: 0;
    max-width: 620px;
}
.citu-metric small,
.citu-jackpot-card small {
    color: #9fb5bd;
    display: block;
    font-size: .78rem;
    margin-top: .45rem;
}
.citu-jackpot-grid,
.citu-api-grid,
.citu-link-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.citu-jackpot-card,
.citu-api-card {
    background: #0b1e29;
    border: 1px solid #294a56;
    border-radius: 8px;
    padding: 1rem;
}
.citu-jackpot-card span {
    color: #9fb5bd;
    display: block;
    font-size: .85rem;
}
.citu-jackpot-card strong {
    color: #e7c56f;
    display: block;
    font-size: 1.35rem;
    margin-top: .35rem;
}
.citu-api-card h3 {
    color: #f4f8f9;
    font-size: 1rem;
    margin-top: .9rem;
}
.citu-api-card p {
    color: #b9cbd1;
}
.citu-api-write {
    border-color: #48a1bd;
    color: #8fd6e9;
}
.citu-link-grid a {
    background: #0b1e29;
    border: 1px solid #294a56;
    border-radius: 6px;
    color: #e7c56f;
    padding: .85rem;
}
.citu-disclosure summary {
    color: #e7c56f;
    cursor: pointer;
    font-weight: 700;
}
.citu-footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    text-align: left;
}
.v35-site-footer footer {
    background: #0b1e29;
    border-top: 0;
    color: #9fb5bd;
    margin-top: 0;
}
.citu-footer-grid a {
    border: 0;
    color: #e7c56f;
    display: block;
    margin-bottom: .45rem;
}
.citu-footer-title {
    color: #f4f8f9;
    font-weight: 700;
}
.citu-footer-bottom {
    border-top: 1px solid #24424f;
    color: #78919a;
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: left;
}
.citu-transaction-card {
    background: #102630;
    border: 1px solid #294a56;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 1rem;
}
.citu-winner-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.citu-winner-card {
    background: #0b1e29;
    border: 1px solid #294a56;
    border-radius: 8px;
    padding: 1rem;
}
.citu-block-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.citu-block-card {
    background: #0b1e29;
    border: 1px solid #294a56;
    border-radius: 8px;
    padding: 1rem;
    overflow-wrap: anywhere;
}
.citu-transaction-row {
    border-bottom: 1px solid #24424f;
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(120px, 180px) 1fr;
    padding: .75rem 0;
}
.citu-transaction-row span {
    color: #9fb5bd;
}
.citu-transaction-row strong {
    color: #f4f8f9;
    overflow-wrap: anywhere;
}
@media (max-width: 768px) {
    .citu-home-hero {
        padding: 2.5rem 0;
    }
    .citu-section-heading,
    .citu-transaction-row {
        align-items: stretch;
        display: flex;
        flex-direction: column;
    }
    .citu-footer-grid {
        grid-template-columns: 1fr;
    }
}
