/* === Global Base Styles (Mobile First) === */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background: #f5f7fa;
    color: #1e2a38;
  }

  .logo > img{
    height: 60px;
  }

  .site-header {
    background: #FDFDFC;
    border-bottom: 5px solid #002F59;
    z-index: 100;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
  }


  .home-title{
    margin: 80px auto 0;
    display: flex;
    flex-wrap: wrap;
    max-width: 1560px;
    padding: 0 20px;
  }

  .home-title > h1{
    text-transform: capitalize;
    font-size: 1.425rem; 
  }

  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin: 0 auto;
    height: 80px;
    max-width: 1560px;
    width: 100%;
  }

  .nav-left,
  .nav-right {
    padding: 20px;
    flex: 0 0 auto;
  }

  .nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
  }

  .burger {
    font-weight: bold;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .subscribe {
    text-decoration: none;
    color: #002F59;
    font-weight: bold;
    font-size: 14px;
  }

  .subscribe:hover{
    opacity: 0.6;
  }
  .category-menu {
    display: none;
    background: #002F59;
    padding: 10px 20px;
  }

  .category-menu ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); /* автоматически 2-4 колонки */
    gap: 10px 30px;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    text-align: left;
  }

  .category-menu li {
    margin: 0;
    padding-left: 10px;
  }

  .category-menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    display: block;
    padding: 6px 10px 8px;
  }

  .category-menu a:hover {
    background-color: #035196;
  }
  

/********** SEARCH*********************************/
.search-bar-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 20px auto;
  }
  
.search-bar > button> img{
    width: 20px;
}
  
  .search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 30px;
    border: 1px solid #ccc;
    padding: 0 10px;
    margin: 0 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }
  
  .search-bar input {
    border: none;
    outline: none;
    font-size: 16px;
    padding: 8px;
    flex: 1;
    background: transparent;
  }
  
  .search-bar button {
    background: none;
    border: none;
    cursor: pointer;
  }
  

  /********** END SEARCH*********************************/

  .three-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1560px;
    margin: 0 auto ;
    padding: 0 20px;
  }

  .three-block {
    width: 100%;
    background-size: cover;
    text-align: center;
    border-radius: 6px;
    position: relative;
    min-height: 400px;
    margin-bottom: 20px;
  }

  .three-block-img > a {
    display: block;
    width: 100%;
    height: 100%;
  }

  .three-block-title {
    position: absolute;
    z-index: 50;
    bottom: 10px;
    left: 0;
    right: 0;
    width: 90%;
    margin: 0 auto;
  }

  .three-block-title > h2 {
    color: white;
    font-size: 22px;
    text-align: left;
  }

  .three-block-bottom {
    position: absolute;
    background: linear-gradient(to bottom, rgba(3, 81, 150, 0) 0%, rgba(3, 81, 150, 1) 70%);
    height: 150px;
    right: 0;
    left: 0;
    bottom: 0;
    border-radius: 0 0 10px 10px;
  }

  .three_block_three {
    text-align: left;
  }

  .three-block-line {
    border-top: 5px solid #0da0b9;
    border-radius: 0;
  }

  .three_block_three > h3 {
    margin: 15px 0 0;
  }

  .three_block_three > h3 > a {
    text-decoration: none;
    color: #2E393F;
    font-size: 1rem;
    font-weight: 500;
  }

  .three_block_three > h3 > a:hover {
    text-decoration: underline;
  }

  .three_block_three_date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    text-transform: uppercase;
    color: #9fa3b1;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-top: 5px;
  }

  .three_block_three_date img {
    width: 18px;
    height: 18px;
    opacity: 0.8;
  }

  .two-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: flex-start;
  }

  

  .block {
    box-sizing: border-box;
    flex: 0 0 100%;
  }

  .ten-block{
    margin: 15px auto;
    display: flex;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px #0001;
    overflow: hidden;
    border: 1.5px solid #e1eef8;
    transition: box-shadow 0.16s, border 0.12s, transform 0.13s;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .ten-block-small {
    margin: 10px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px #0001;
    overflow: hidden;
    border: 1.5px solid #e1eef8;
    transition: box-shadow 0.16s, border 0.12s, transform 0.13s;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    box-sizing: border-box;
    width: 100%;
    margin: 10px;
}

  .article-block-small {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px #0001;
    overflow: hidden;
    border: 1.5px solid #e1eef8;
    transition: box-shadow 0.16s, border 0.12s, transform 0.13s;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
  }



  
  .ten-block-img {
    width: 120px;
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    margin-right: 0;
    flex-shrink: 0;
  }

  .ten-block-text,
  .ten-block-text-small {
    flex: 1;
    padding: 0 18px;
    font-size: 1.02rem;
    text-align: left;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */
  }

  .ten-block-text > a, .ten-block-text-small > a {
    text-decoration: none;
    color: #2E393F;
  }

  .ten-block-text > a:hover, .ten-block-text-small > a:hover {
    text-decoration: underline;
  }

  .ten-block-title > h3{
    color: #2E393F;
    margin: 0 0 5px;
    font-size: 16px;
  }

  .ten-block-title-small > h3 {
  color: #2E393F;
  margin: 10px 0;
  font-size: 18px;
}

  .ten-block-date,
  .ten-block-date-small {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    text-transform: uppercase;
    color: #9fa3b1;
    font-weight: 500;
    letter-spacing: 0.5px;
    justify-content: flex-end;
    margin-top: 5px;
  }

  .ten-block-date img,
  .ten-block-date-small img {
    width: 18px;
    height: 18px;
    opacity: 0.8;
  }


  .block-small{
    display: flex;
    flex-wrap: wrap;
  }






.ten-block-img-small {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    margin-right: 0;
    flex-shrink: 0;
  }

/********MORE BUTTON*****************/
  .more-news-button {
    padding: 15px 30px;
    background: none;
    color: #002F59;
    border: 3px solid #002F59;
    font-weight: bold;
    /* border: none; */
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
    font-size: 16px;
  }
  .more-news-button:hover {
    background: #004a87;
    color: #ffffff
  }


 .two-columns-download {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: flex-start;
  }


/********END MORE BUTTON*****************/




  /* === Media Queries === */
@media (min-width: 600px) {
    .three-block {
      width: calc(50% - 10px);
    }
  }

@media (min-width: 600px) and (max-width: 1024px) {
    .ten-block-small {
        width: calc(50% - 20px);
      }
}


@media (max-width: 1024px) {
    .three-block-line{
        flex: 0 0 100%;
    }
}

@media (min-width: 1024px) {
    .ten-block-img-small {
        width: 120px;
        height: 120px;
    }

    .subscribe {
        margin-right: 20px;
        font-size: 16px;
    }

    .ten-block-title-small > h3 {
        font-size: 16px;
        margin: 0 auto;
        font-weight: 500;
    }

    .ten-block-small, .article-block-small {
        width: 100%;
        display: flex;
      }
    .three-block {
      width: calc(33.333% - 13.333px);
    }

    .block-large {
      flex: 0 0 calc(66.66% - 10px);
    }

    .search-block > .block-large{
       flex: 100%;
    }

    .block-small {
      flex: 0 0 calc(33.33% - 10px);
    }


    .block-large-download {
        flex: 0 0 calc(66.66% - 10px);
      }
  }

  @media (min-width: 1440px) {
    .three_block_three > h3 {
      margin: 20px 0 10px;
    }
  }








  /************** FOOTER *********************/
  .site-footer {
    background: #eef1f5;
    color: #2E393F;
    padding: 20px 20px 40px;
    font-size: 15px;
    border-top: 4px solid #002F59;
    margin-top: 80px;
  }
  
  .footer-container {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
  }
  
  .footer-container h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
  }
  
  .subscribe-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 500px;
    margin: 0 auto;
  }
  
  .subscribe-form input[type="email"] {
    padding: 10px 14px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    min-width: 240px;
    flex: 1 1 auto;
  }
  
  .subscribe-form button {
    padding: 10px 20px;
    background-color: #002F59;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
  }
  
  .subscribe-note {
    margin-top: 10px;
    color: #6c757d;
    font-size: 14px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .footer-bottom {
    margin-top: 40px;
  }
  
  .footer-links {
    margin-top: 10px;
  }
  
  .footer-links a {
    margin: 0 10px;
    text-decoration: none;
    color: #2E393F;
  }
  
  .footer-links a:hover {
    text-decoration: underline;
  }
  


  /***********ARROW UP*****************************/

  #scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 999;
    font-size: 24px;
    border: none;
    outline: none;
    background-color: #002F59;
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background-color 0.3s;
  }
  
  #scrollToTopBtn:hover {
    background-color: #004e8a;
  }
  @media (max-width: 600px) {
    #scrollToTopBtn {
      bottom: 20px;
      right: 20px;
      font-size: 18px;
      padding: 8px 10px;
    }

    .nav-container {
      height: 80px;
    }
    .logo > img{
      height: 50px;
    }
  }



  /************* SEARCH ******************************/

  .search-block {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1024px;
    margin: 120px auto;
    padding: 0 20px;
    align-items: flex-start;
  }


  .search-block > h1 {
    margin: 0;
    width: 100%;
  }

  mark {
    background-color: #ffff00b3;
    padding: 0 2px;
    border-radius: 3px;
}
