@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');
:root {
  --primary-color: #111111;
  --blue-color: #036789;
  --red-color: #ed2125;
  --grey-color: #f5f5f5;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Mulish", sans-serif;
    line-height: 1.6;
    font-size: 18px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    padding: 20px 0px 20px 0px;
}


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

.logo {
    width: 350px;
    height: 66px;
}
.logofooter {
    width: 175px;
    height: 33px;
    margin-bottom: 20px;
}

.column-width-selector {
    display: flex;
    gap: 10px;
}

.width-option {
    padding: 8px 12px;
    background-color: #34495e;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}

h2 {
    font-family: "Google Sans", sans-serif;
    font-weight: 500;
    margin-bottom: 20px;
    color: #111111;
}
h3 {
    font-family: "Google Sans", sans-serif;
    font-weight: 500;
    margin-bottom: 20px;
    color: #111111;
}

/* Колоночная вёрстка */
.columns-2, .columns-3, .columns-4, .columns-5 {
    display: grid;
    gap: 40px;
    width: 100%;
}

.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}
.sidebar-image {
    width: 80px;      
    overflow: hidden;  
    position: relative;
    border-radius: 8px; 
}

.sidebar-image img.photonewmin {
    width: 100%;
    height: 100%;
    object-fit: cover;   
    object-position: center; 
    display: block;
}

.newsmin-image {
    width: 100%px;    
    height: 200px;   
    overflow: hidden;  
    position: relative;
    border-radius: 8px; 
}

.newsmin-image img.photonewcol2 {
    width: 100%;
    height: 100%;
    object-fit: cover;   
    object-position: center; 
    display: block;
}


/* Блок на всю ширину экрана */
.full-width {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background-color: #3498db;
    color: white;
    text-align: center;
    padding: 40px 0;
}

footer {
    background-color: #f5f5f5;
    padding: 70px 0;
    border-top: 3px solid var(--blue-color);
    font-size: 16px;
}
footer a {
    
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

ul {
    list-style: none;
}

li {
    margin-bottom: 8px;
}

a {
    color: #036789;
    text-decoration: none;
}

a:hover {
    color: #ed2125;
}
.topheader a, .topheader {
   font-size: 14px;
}
.topheader {
    padding: 8px 15px;
    border-bottom: 1px solid #C4C4C4;
}
.columns-custom {
    display: grid;
    grid-template-columns: 33% 60% 7%;
    gap: 20px;
    width: 100%;
}

.col-33 {
    grid-column: 1;
}

.col-60 {
    grid-column: 2;
}

.col-7 {
    grid-column: 3;
}

.main-menu {
  position: relative;
}

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

.menu-list > li {
  position: relative;
}

.menu-list > li > a {
  display: block;
  text-decoration: none;
  padding: 5px 20px;
  transition: background-color 0.3s;
  font-size: 18px;
  color: #111111;
}

.menu-list > li > a:hover {
    color: #ed2125;
}

/* Выпадающее меню */
.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #036789;
  min-width: 200px;
  list-style: none;
  padding: 10px 0;
  display: none;
  z-index: 1000;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  display: block;
  color: white;
  padding: 8px 10px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 16px;
}

.dropdown-menu li a:hover {
  background-color: #2891b4;
}

/* Показываем выпадающее меню при наведении */
.has-dropdown:hover .dropdown-menu {
  display: block;
}

/* Кнопка-бургер для мобильных */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--red-color);
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 15px;
}
.layout-wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto; 
    padding: 0 15px; 
    box-sizing: border-box;
    margin-top: 50px;
}

.main-content {
    flex: 1; 
    padding-right: 20px; 
    margin-bottom: 70px;
}

.sidebar {
    width: 25%; /* 25% от 1200px → 300px */
    min-width: 280px; /* Минимум 280px, чтобы не сжимался слишком сильно */
    padding-left: 20px;
}

.sidebar-article {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 12px;
}

.sidebar-image {
    flex: 0 0 80px;
}

/* Ссылка вокруг картинки */
.sidebar-image-link {
    display: block;
}

.sidebar-content {
    flex: 1 1 auto;
}

article.article-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 50px;
    border: 1px dashed #ff0000;
    border-radius: 20px;
    padding: 0px 30px 0px 0px;
}
.article-image img {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 20px 0px 0px 20px;
}
.main-content h1 {
    margin: 20px 0px 50px 0px;
    font-size: 50px;
    font-weight: 500;
    line-height: 60px;
}
.article-content h2 {
    line-height: 36px;
    font-weight: 400;
}
.columns-3-1 {
  display: flex;
  gap: 0px; 
  width: 100%;
}

.column {
  box-sizing: border-box;
}

.column-75 {
  flex: 0 0 75%; 
}

.column-25 {
  flex: 0 0 25%; 
}
section.contentwidth {
    max-width: 1200px;
}
.responsive-img {
  max-width: 100%;
  height: auto;
  display: block;
}
.innerpadding {
    padding: 90px 0px 70px 0px;
}
.innerpaddingmin {
    padding: 30px 0px 30px 0px;
}
.innerpaddingright {
    padding-right: 70px;
}
.paddingtop {
    padding-top: 30px;
}
time.article-date {
    font-size: 12px;
}
article.sidebar-article h3 {
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    margin-bottom: 0px;
}
article.sidebar-article a {
    color: #111111;
}
article.sidebar-article a:hover {
    color: var(--red-color);
}
h3.titlenews {
    font-size: 22px;
    font-weight: 400;
    line-height: 28px;
    margin-top: 20px;
    margin-bottom: 5px;
}
h3.titlenews a {
    color: #111111;
}
h3.titlenews a:hover {
    color: var(--red-color);
}
.news-content {
    font-size: 16px;
    line-height: 26px;
}
.main-content h2 {
    font-weight: 400;
    font-size: 35px;
    margin: 30px 0px 30px 0px;
}
.main-content h3 {
    font-weight: 400;
    font-size: 28px;
    margin: 20px 0px 20px 0px;
    padding-left: 20px;
    border-left: 6px solid var(--red-color);
}
.main-content li::marker {
  content: "•";
  color: var(--blue-color);
  font-weight: bold;
}
.main-content li {
  margin-left: 10px;
  padding-left: 10px;
}
.main-content ul {
  margin: 10px 0px 10px 0px;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .column-width-selector {
        flex-wrap: wrap;
        justify-content: center;
    }

    .columns-2, .columns-3, .columns-4, .columns-5 {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }
     .columns-custom {
        grid-template-columns: 1fr;
    }
    
    .col-33, .col-60, .col-7 {
        grid-column: auto;
    }
    .menu-toggle {
    display: block;
  }

  .menu-list {
    flex-direction: column;
    display: none;
    width: 100%;
  }

  .menu-list.open {
    display: flex;
    border: 1px solid #ff0000;
    border-radius: 20px;
    background: var(--grey-color);
    padding: 15px;
  }

  .has-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    display: none;
    border-radius: 0;
    box-shadow: none;
  }

  .has-dropdown.active .dropdown-menu {
    display: flex;
    flex-direction: column;
  }

  .menu-list > li > a {
    text-align: left;
  }
 .layout-wrapper {
        flex-direction: column; 
    }
    .main-content,
    .sidebar {
        width: 100%; 
        padding: 10px 0;
    }

    .sidebar-image {
        margin-bottom: 10px;
    }
.column-75,
  .column-25 {
    flex: 0 0 100%;
  }
.innerpadding {
    padding: 40px 0px 40px 0px;
}
    .topheader {
        display: none;
    }
    .columns-3-1 {
    display: block;
    }
    .innerpaddingright {
    padding-right: 0px;
    }
    .main-content h1 {
    margin: 20px 0px 50px 0px;
    font-size: 36px;
    font-weight: 500;
    line-height: 45px;
    }
    .layout-wrapper {
    margin-top: 10px;
    }
    article.article-item {
    display: block;
    }
    .main-content h2 {
    font-size: 25px;
    margin: 15px 0px 10px 0px;
    }
    .article-image img {
    width: 100%;
    border-radius: 15px;
}
    article.article-item {
    padding: 0px;
    border: none;
}
}
