:root {
  --header-bg: #fff;
  --search-bg: #fff;
  --link-color: #1100f3;
  --text-color: #222222;
  --url-color: #006621;
  --border-color: #e6e6e6;
  --hover-bg: #f7f7f7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: var(--text-color);
  background: #fff;
}

p {
      margin-bottom: 1rem !important;
}

#header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
}

#header {
  padding: 10px 0;
  background: var(--header-bg);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo img {
  height: 24px;
  display: block;
}

.search-form {
  flex: 1;
  max-width: 665px;
  position: relative;
}

.search-form input {
  width: 100%;
  padding: 8px 76px 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  background: var(--search-bg);
}

.search-form button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #666;
}

.search-form .clear {
  right: 36px;
  font-size: 1.5rem;
}

.search-form .search {
  right: 8px;
}

.menu-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  padding: 8px;
  cursor: pointer;
  color: #666;
}

#tabs {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 44px;
  background: var(--header-bg);
}

.tab {
  padding: 8px 12px;
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
}

.tab.active {
  color: var(--text-color);
  border-bottom-color: #333;
}

.more-button {
  background: none;
  border: none;
  padding: 8px 12px;
  color: #666;
  cursor: pointer;
  font-size: 0.9rem;
}

#web-results-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.web-results h1,
.web-results h2,
.web-results h3,
.web-results h4 {
  margin-bottom: 16px;
  font-size: 1.3rem;
  color: #003366; /* темный оттенок для заголовка */
}

.results-count {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.result {
  margin-bottom: 24px;
}

.result h2 {
  font-size: 1.1rem;
  font-weight: normal;
  margin-bottom: 4px;
  color: #1100f3; /* ссылка */
}

.result h2 a {
  color: var(--link-color);
  text-decoration: none;
}

.result h2 a:hover {
  text-decoration: underline;
}

.result-url {
  color: var(--url-color);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.result-snippet {
  color: #444;
  font-size: 1.0rem;
  line-height: 1.5;
}

.archive-posts h2 {
  margin-bottom: 4px;
  margin-top: 16px;
  font-size: 1.3rem;
  color: #003366; /* темный оттенок для заголовка */  
}

.taxonomy-posts h2 {
  margin-top: 16px; 
}

.box.p-5 {
  max-height: 400px; /* Установите нужную высоту */
  overflow-y: auto; /* Включает вертикальную прокрутку */
  border: 1px solid var(--border-color); /* Для визуальной структуры */
}

.sidebar {
  font-size: 0.9rem;
}

.module {
  background: var(--hover-bg);
  padding: 16px;
  border-radius: 4px;
}

.module h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.module ul {
  list-style: none;
}

.module li {
  margin-bottom: 8px;
}

.module a {
  color: var(--link-color);
  text-decoration: none;
}

.module a:hover {
  text-decoration: underline;
}

li:not(:last-child) {
    margin-bottom: 10px;
}

ul, ol {
    margin-left: 20px !important;
}

ul {
    list-style: disc !important;
}

.related-links li {
    list-style: none;
    margin-bottom: 2px;
}

footer {
  background: var(--hover-bg);
  padding: 24px 16px;
  margin-top: 40px;
  text-align: center;
}

.try-search {
  color: #666;
  margin-bottom: 12px;
}

.search-suggestions {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.search-suggestions a {
  color: var(--link-color);
  text-decoration: none;
}

.search-suggestions a:hover {
  text-decoration: underline;
}

.footer-links {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  font-size: 0.85rem;
}

.footer-links a {
  color: #666;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

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

@media (max-width: 1000px) {
  #web-results-wrapper {
    grid-template-columns: 1fr;
  }
  
  .sidebar {

  }
}

@media (max-width: 600px) {
  .search-suggestions {
    flex-direction: column;
    gap: 12px;
  }
  
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  
  .separator {
    display: none;
  }
  
  #tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

#additional-content {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px 16px;
  display: grid;
  gap: 20px;
}

.info-section {
  background: #eef7ff; /* светлый голубой фон для выделения */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.info-section h1, 
.info-section h2, 
.info-section h3 {
  margin-bottom: 16px;
  font-size: 1.3rem;
  color: #003366; /* темный оттенок для заголовка */
}

.faq-section {
  background: var(--hover-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-section h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--text-color);
}

.faq {
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
  padding: 0 10px;
}

.faq-answer.active {
  margin-bottom: 10px;
}


.faq-icon {
  font-size: 1.5rem;
  color: #666;
}

.card-content a span {
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
