/* === Переменные и основные настройки ============================= */
:root {
    --primary-color: #f93;
    --secondary-color: #555;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --footer-bg: #e9e9e9;
    --footer-copyright-bg: #d9d9d9;
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #fafafa;
  }
  
  /* === Шапка сайта ================================================== */
  header {
    padding: 1rem 0;
  }
  
  .site-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .site-logo-text {
    background-color: var(--primary-color);
    padding: 0.5rem;
    margin: 0;
  }
  
  .site-logo-text h2 {
    color: #fff;
    margin: 0;
  }
  
  .header-phone {
    font-size: 18px;
    font-weight: bold;
    color: var(--dark-color);
    text-align: right;
    margin-bottom: 0.25rem;
  }
  
  /* === Главное меню ================================================= */
  .main-nav {
    background-color: var(--dark-color);
    margin-bottom: 1.5rem;
  }
  
  #top_menus {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    list-style: none;
    padding: 1rem 0;
    background: var(--dark-color);
    margin: 0;
  }
  
  #top_menus .nav-link {
    text-decoration: none;
    font-weight: 600;
    color: #fff !important;
    transition: color 0.2s ease-in-out;
    padding: 0.625rem 0.9375rem;
  }
  
  #top_menus .nav-link:hover,
  #top_menus .nav-link:focus {
    color: var(--primary-color) !important;
  }
  
  #top_menus .current-menu-item .nav-link,
  #top_menus .current_page_item .nav-link {
    color: var(--primary-color) !important;
    cursor: default;
  }
  
  /* === Блоки с основными категориями (oранжевые) ================ */
  .feature-box {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    height: 100%;
    transition: all 0.3s;
    text-align: center;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  
  .feature-box img {
    max-width: 80px;
    margin: 0 auto 1rem;
  }
  
  .feature-box h5 {
    margin-bottom: 0;
    font-weight: bold;
  }
  
  /* === Карточки статей ============================================== */
  .post-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1rem;
  }
  
  .post-item {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  }
  
  .post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  }
  
  .article-card {
    border: 1px solid #eee;
    margin-bottom: 30px;
    transition: all 0.3s;
    border-radius: 5px;
    overflow: hidden;
  }
  
  .article-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  }
  
  .article-image,
  .post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .article-image {
    height: 200px;
    background-size: cover;
    background-position: center;
  }
  
  .article-content {
    padding: 20px;
  }
  
  .article-title,
  .post-item h3 {
    font-size: 1.125rem;
    margin: 1rem;
    line-height: 1.4;
  }
  
  .article-title a,
  .post-item h3 a {
    color: #111;
    text-decoration: none;
  }
  
  .article-title a:hover,
  .post-item h3 a:hover {
    color: var(--primary-color);
  }
  
  .article-excerpt,
  .post-item p {
    margin: 0 1rem 1.25rem;
    color: #555;
    flex: 1 0 auto;
  }
  
  .article-meta {
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: space-between;
    margin: 0 1rem;
  }
  
  .read-more,
  .post-item > a:last-of-type {
    align-self: flex-start;
    margin: 0.5rem 1rem 1.25rem;
    background: var(--dark-color);
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: background 0.2s ease-in-out;
    display: inline-block;
  }
  
  .read-more:hover,
  .post-item > a:last-of-type:hover {
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
  }
  
  /* === Новости в боковой колонке ==================================== */
  .news-section {
    margin-top: 2.5rem;
  }
  
  .news-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
  }
  
  .news-item img {
    width: 100%;
    margin-bottom: 10px;
  }
  
  .news-item h6 {
    font-size: 14px;
    margin-bottom: 5px;
  }
  
  /* === Пагинация =================================================== */
  nav.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    font-weight: 600;
  }
  
  .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: var(--dark-color);
    transition: background 0.2s ease;
  }
  
  .page-numbers.current,
  .page-numbers:hover {
    background: var(--dark-color);
    color: #fff;
    border-color: var(--dark-color);
  }
  
  .next.page-numbers,
  .prev.page-numbers {
    border-color: transparent;
    color: var(--dark-color);
  }
  
  .next.page-numbers:hover,
  .prev.page-numbers:hover {
    color: var(--primary-color);
    background: transparent;
  }
  
  /* === Хлебные крошки (breadcrumbs) ================================== */
  .breadcrumbs {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding: 0 1rem;
    font-size: 0.875rem;
    color: #777;
  }
  
  .breadcrumbs a {
    color: var(--dark-color);
    text-decoration: none;
  }
  
  .breadcrumbs a:hover {
    color: var(--primary-color);
    text-decoration: underline;
  }
  
  .breadcrumbs span {
    color: #555;
  }
  
  /* === Страница-контейнер =========================================== */
  .page-content {
    max-width: 800px;
    margin: 2rem auto 3rem;
    padding: 0 1rem 2rem;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
  }
  
  .page-content h1 {
    font-size: 1.75rem;
    margin: 1.5rem 0 1rem;
    line-height: 1.3;
    color: #111;
    text-align: center;
  }
  
  .page-content .content p {
    margin-bottom: 1rem;
    color: #444;
  }
  
  /* === Подвал сайта ================================================ */
  footer {
    background-color: var(--footer-bg);
    padding: 40px 0 20px;
    color: var(--dark-color);
    margin-top: 2rem;
    border-top: 4px solid var(--primary-color);
  }
  
  footer h5 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
  }
  
  .footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
  }
  
  .footer-menu a {
    font-size: 0.875rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  
  .footer-menu a:hover,
  .footer-menu a:focus {
    color: var(--primary-color);
    text-decoration: underline;
  }
  
  footer ul {
    list-style: none;
    padding-left: 0;
  }
  
  footer ul li {
    margin-bottom: 8px;
  }
  
  footer ul li a {
    color: var(--dark-color);
    text-decoration: none;
  }
  
  footer ul li a:hover {
    color: var(--primary-color);
  }
  
  .copyright {
    background-color: var(--footer-copyright-bg);
    padding: 10px 0;
    font-size: 12px;
    margin-top: 1rem;
  }
  
  .logo {
    max-height: 60px;
  }
  
  /* === Адаптивность ================================================= */
  @media (max-width: 767px) {
    .header-phone {
      font-size: 16px;
    }
    
    .feature-box {
      margin-bottom: 15px;
    }
    
    .article-image {
      height: 150px;
    }
    
    .footer-menu {
      gap: 0.75rem;
      margin-bottom: 1rem;
    }
  }
  
  @media (max-width: 480px) {
    #top_menus {
      gap: 0.75rem;
      padding: 1rem 0;
    }
    
    .post-item h3 {
      font-size: 1rem;
    }
    
    .breadcrumbs {
      font-size: 0.75rem;
      padding: 0 0.5rem;
    }
    
    .page-content h1 {
      font-size: 1.35rem;
    }
    
    footer,
    body > footer,
    body > div:last-child {
      padding: 1.5rem 0.75rem;
      font-size: 0.8rem;
    }
  }