:root {
    --primary-color: rgb(240, 130, 30);
    --secondary-color: rgb(20, 85, 135);
}

/* === Общие стили === */
body {
    background-color: #ffffff;
    color: #000000;
}

/* === Навигация === */
.navbar,
.navbar-custom {
    background-color: var(--primary-color) !important;
}

.navbar .nav-link,
.navbar-custom .nav-link {
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.navbar .nav-link:hover,
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
    color: var(--secondary-color);
}

/* === Брендинг === */
.navbar-brand span:first-child {
    color: var(--secondary-color);
    font-weight: bold;
}

.navbar-brand span:last-child {
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

/* === Обводка текста === */
.text-stroke-white {
    text-shadow:
        -1px -1px 0 #fff,
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff;
    font-weight: bold;
}

/* === Кнопки === */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* === Алфавитная навигация и прокрутка === */
.alphabet-bar-wrapper,
.alphabet-scroll-mobile {
    background-color: var(--secondary-color);
    padding: 0.5rem 0;
    white-space: nowrap;
    overflow-x: auto;
}

.alphabet-bar a,
.scrolling-track a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    margin: 0 8px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.alphabet-bar a:hover,
.scrolling-track a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .alphabet-bar-wrapper {
        display: none;
    }
}

.scrolling-track {
    display: inline-flex;
    align-items: center;
    height: 2.5rem;
    padding-left: 1rem;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
}

/* === Подвал === */
.footer-minimal {
    background-color: var(--secondary-color);
    color: white;
    font-size: 0.9rem;
}

.footer-minimal a {
    color: white;
    transition: opacity 0.3s;
}

.footer-minimal a:hover {
    opacity: 0.75;
}

/* === Видео-заголовок === */
.video-hero,
.video-header {
    position: relative;
    overflow: hidden;
    height: 60vh;
}

.video-hero video,
.video-header video {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.video-overlay {
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
    text-shadow: 1px 1px 2px #000;
}

/* === Панель статей (Dashboard) === */
.article-dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #ddd;
    background-color: #fff;
    transition: background-color 0.2s ease;
}

.article-item:hover {
    background-color: #f8f9fa;
}

.article-info {
    flex-grow: 1;
    margin-right: 1rem;
    min-width: 200px;
}

.article-title {
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1rem;
}

.article-title:hover {
    text-decoration: underline;
}

.article-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* === Изображения в статьях === */
.article-image-float-left,
.article-image-float-right,
.article-image-vertical {
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.article-image-float-left {
    float: left;
    margin: 10px 20px 10px 0;
    max-width: 45%;
}

.article-image-float-right {
    float: right;
    margin: 10px 0 10px 20px;
    max-width: 45%;
}

.article-image-vertical {
    display: block;
    margin: 1.5rem auto;
    max-width: 70%;
}

.article-content::after {
    content: "";
    display: block;
    clear: both;
}

/* === Информационные блоки статьи === */
.article-section {
    background-color: #ffffff;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
}

.article-section h5 {
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.section-primary h5 {
    color: var(--secondary-color);
}

.section-warning h5 {
    color: var(--primary-color);
}

.section-success h5 {
    color: #198754;
}

.map-preview iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 8px;
}

.article-text p {
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.nav-link.active {
    font-weight: bold;
}

/* === Якорное меню (sidebar) === */
.anchor-sidebar {
    position: sticky;
    top: 80px;
    font-size: 0.9rem;
    max-width: 240px;
}

.anchor-sidebar .section-label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.anchor-sidebar a {
    display: block;
    padding: 2px 6px;
    color: #444;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 4px;
    transition: all 0.2s;
}

.anchor-sidebar a:hover {
    background-color: rgba(240, 130, 30, 0.1);
    color: var(--primary-color);
}

.anchor-sidebar a.active {
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(240, 130, 30, 0.15);
}

/* === Галерея превью в меню (sidebar) === */
.sidebar-gallery {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-gallery::-webkit-scrollbar {
    display: none;
}

.sidebar-gallery img {
    height: 50px;
    width: auto;
    border-radius: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.sidebar-gallery img:hover {
    transform: scale(1.05);
}

/* === Отключение скроллбара у галерей === */
.gallery-scroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}
.sidebar-gallery {
  white-space: nowrap;
  padding-bottom: 5px;
}
.sidebar-gallery img {
  max-height: 80px;
  border-radius: 6px;
  object-fit: cover;
}

.article-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #000;            /* ← Чёрный цвет */
  text-decoration: none;  /* ← Без подчёркивания */
}

.article-title:hover {
  color: #000;
  text-decoration: none;
}

.btn-outline-travelphabet {
  color: rgb(20, 85, 135);
  border: 1px solid rgb(20, 85, 135);
  background-color: transparent;
  transition: 0.3s ease;
}

.btn-outline-travelphabet:hover,
.btn-outline-travelphabet:focus {
  background-color: rgb(20, 85, 135);
  color: #fff;
  border-color: rgb(20, 85, 135);
}

a.btn-outline-travelphabet {
  color: rgb(20, 85, 135) !important;
  border: 1px solid rgb(20, 85, 135);
  background-color: transparent;
  transition: 0.3s ease;
  text-decoration: none;
}

a.btn-outline-travelphabet:hover,
a.btn-outline-travelphabet:focus {
  background-color: rgb(20, 85, 135);
  color: #fff !important;
  border-color: rgb(20, 85, 135);
  text-decoration: none;
}