@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
  
html {
  scroll-behavior: smooth;
}
    
body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: #1a1a1a;
  background-color: #f6f6f8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
 
.container { 
    width:100%;
  display: flex;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  gap: 2rem;
}

.sidebar {
  flex: 0 0 300px;
  position: sticky;
  top: 2rem;
  align-self: flex-start;
}

.main-content {
  flex: 1;
  padding:20px;
  background:#fff;
  border-radius:10px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Manrope', sans-serif;
  line-height: 1.3;
  font-weight: 600;
  color: #111;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; margin-top: 1rem; }
h2 { font-size: 2rem; margin-top: 1.5rem; }
h3 { font-size: 1.75rem; margin-top: 1.25rem; }
h4 { font-size: 1.5rem; margin-top: 1rem; }

p {
  margin-bottom: 1.5rem;
  color: #333;
}

a {
  color: #0078ff;
  text-decoration: underline;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: #005fcc;
}

.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  background: #0078ff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease-in-out, transform 0.1s ease;
}

.btn:hover {
  background: #005fcc;
}

.btn:active {
  transform: scale(0.97);
}

header, footer {
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

header {
  padding: 1.5rem 0;
}

footer {
  margin-top: auto;
  padding: 1rem 0;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    top: auto;
    width: 100%;
    margin-bottom: 2rem;
  }
}

.main-content .main_img{
    width:100%;
    border-radius:10px;
}

body,html {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip; /* Современная альтернатива hidden */
}
.main-container{
 flex-direction: column;   
}
.main-container .pagination {
    display: flex;
    margin: 40px 0;
    text-align: center;
    justify-content: center;
}
.main-container .pagination ul,
.main-container .pagination ul li {
    list-style: none;
    list-style-type: none;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.blog-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.blog-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.blog-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-item-content {
    padding: 20px;
}

.blog-item-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #111;
}

.blog-item-date {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.blog-item-link {
    color: #007aff;
    text-decoration: none;
    font-weight: 600;
}

.blog-item-link:hover {
    text-decoration: underline;
}

/* Пагинация */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 6px;
    border-radius: 8px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.pagination .active a{
    background: #007aff;
    color: #fff;
}

.pagination a:hover {
    background: #e0e0e0;
}


@media(max-width:768px){
    .blog-grid {

    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}
.container{
    max-width:100vw;
}
}

.breadcrumbs{
    margin-bottom: 20px;
    font-size: 12px;
}
.breadcrumbs a{
    color:#DD1800;
    text-decoration:none;
    transiction:all .3s;
}
.breadcrumbs a:hover{
    text-decoration:underline;
    transiction:all .3s;
}

      .category-grid{
          grid-template-columns: repeat(6, 1fr);
      }
      .blog-item.category-item{
          padding: 20px;
          position:relative;
      }
      .blog-item.category-item h4{
             font-size: 16px;
    line-height: 1.4;
      }
       .blog-item.category-item a{
           position:absolute;
           width:100%;
           height:100%;
           z-index:9;
       }

      