/* Общие стили */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
.header {
  background-color: #0078d4;
  color: white;
  padding: 10px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.write-label {
  display: inline-flex;
  align-items: center;
  height: 32px; /* ‚ысота иконок */
}

.contact-info p {
  margin: 0;
  font-size: 14px;
}

/* Меню навигации */
.navbar {
  background-color: #333;
  padding: 10px 0;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

.navbar ul li {
  margin: 0 15px;
}

.navbar ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.navbar ul li a:hover {
  color: #005bb5;
}

/* Основная часть */
.main-content {
  padding: 20px 0;
}

.section {
  margin-bottom: 40px;
}

.section h1, .section h2 {
  color: #0078d4;
  margin-bottom: 20px;
}
.prog { 
	border: 1px solid #DA0318;
	margin: 5px;
	padding: 5px;
	background-color:#EFEFEF;

}
/* Љнопки */
.btn {
  display: inline-block;
  background-color: #0078d4;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  margin-top: 15px; /* Ћтступ сверху */
}

.btn:hover {
  background-color: #005bb5;
}

/* ‹ента с разделами и статьЯми */
.categories, .articles-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.category, .article {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.category img, .article img {
  width: 150px;
  height: 100px;
  border-radius: 5px;
  margin-right: 20px;
  align-self: flex-start; /* ‚ыравнивание изображениЯ по левому краю */
}

.category h3, .article h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.category p, .article p {
  font-size: 14px;
  margin-bottom: 15px;
}

/* Ђдаптивность */
@media (max-width: 768px) {
  .category, .article {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .category img, .article img {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .btn {
    width: 100%; /* Љнопка занимает всю ширину */
    text-align: center;
  }
}


/* Џодвал */
.footer {
  background-color: #333;
  color: white;
  padding: 10px 0;
  margin-top: 20px;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.visit-counter, .copyright {
  font-size: 14px;
}

.breadcrumbs {
    font-family: Arial, sans-serif;
    font-size: 14px;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: #337ab7;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #23527c;
    text-decoration: underline;
}

.breadcrumbs .separator {
    color: #999;
    margin: 0 5px;
}

.breadcrumbs .current {
    color: #777;
    font-weight: bold;
}


/* аккардион на основных страницах сайта*/
.customs-faq {
  max-width: 800px;
  margin: 30px auto;
  font-family: 'Arial', sans-serif;
}

.customs-faq__item {
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.customs-faq__header {
  width: 100%;
  padding: 18px 25px;
  background: #f8f9fa;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.3s;
}

.customs-faq__header:hover {
  background: #ecf0f1;
}

.customs-faq__header[aria-expanded="true"] {
  background: #27ae60;
  color: white;
}

.customs-faq__icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 15px;
  position: relative;
}

.customs-faq__icon:before,
.customs-faq__icon:after {
  content: '';
  position: absolute;
  background-color: #27ae60;
  transition: all 0.3s;
}

.customs-faq__icon:before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.customs-faq__icon:after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}

.customs-faq__header[aria-expanded="true"] .customs-faq__icon:before,
.customs-faq__header[aria-expanded="true"] .customs-faq__icon:after {
  background-color: white;
}

.customs-faq__header[aria-expanded="true"] .customs-faq__icon:after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.customs-faq__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  background: white;
}

.customs-faq__answer {
  padding: 0 25px;
}

.customs-faq__header[aria-expanded="true"] ~ .customs-faq__content {
  max-height: 1000px; /* Достаточно большое значение */
}

.customs-faq__header[aria-expanded="true"] ~ .customs-faq__content .customs-faq__answer {
  padding: 20px 25px;
}

.customs-faq__answer p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.customs-faq__answer ul {
  padding-left: 20px;
  margin: 15px 0;
}

.customs-faq__answer li {
  margin-bottom: 8px;
}
/* конец аккардион */

/* меню хлебные крошки */
.simple-breadcrumbs {
    padding: 12px 15px;
    font-size: 14px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 20px;
    color: #666;
}

.simple-breadcrumbs a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s;
}

.simple-breadcrumbs a:hover {
    color: #004499;
    text-decoration: underline;
}

.simple-breadcrumbs span {
    color: #333;
    font-weight: bold;
}

.simple-breadcrumbs > :not(:first-child) {
    margin-left: 6px;
}
/* конец хлебные крошки */