
    body {
      font-family: "JetBrains Mono", monospace;
      background-color: #f5f3e7;
      color: #2f3e2f;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      height: 100dvh;
      justify-content: space-between;
    }

  /* unversal blocks - HEADER - start*/

    header {
      position: relative;
      padding-top: 2rem;
      padding-left: 2rem;
      padding-right: 2rem;
      padding-bottom: 2rem;
      font-size: 1.2rem;
      text-align: center;
      border-bottom: 1px solid #cfcfcf; /* линия */
    }
    
    .lang-switch {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-size: 1.2rem;
      color: #2f3e2f;
    }
    
    .lang-switch a {
      text-decoration: none;
      color: #2f3e2f;
      opacity: 0.9;
      transition: opacity .15s ease, text-decoration-color .15s ease;
    }
    
    .lang-switch a:hover {
      text-decoration: underline;
      opacity: 1;
    }
    
    .lang-switch a.active {
      text-decoration: underline;
      font-weight: 600;
      opacity: 1;
    }
    
    .lang-switch .sep {
      opacity: .4;
    }
    
    .mention{
        color: #2f3e2f;
    }

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

    .name {
      display: flex;
      font-size: 31px;
    }

    .name a {
      text-decoration: none;
      color: #2f3e2f;
    }

    .menu_bar {
      display: flex;
      gap: 2.5rem;
    }

    .side_bar {
      text-decoration: none;
      color: #2f3e2fbf;
    }

    .side_bar:hover {
      color: #2f3e2f;
      transform: scale(1.07);
    }

    .hamburger {
      display: none;
      font-size: 30px;
      background: none;
      border: none;
      color: #2f3e2f;
      cursor: pointer;
      z-index: 1001;
    }

    .hamburger.hidden {
      display: none !important;
    }

    .overlay_menu {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      background-color: #f5f3e7;
      z-index: 1000;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      transition: opacity 0.3s ease;
      background-color: rgba(245, 243, 231, 0.98); /* было #f5f3e7 — стало полупрозрачное */
      backdrop-filter: blur(4px); /* красиво! */
    }

    .overlay_menu.active {
      display: flex;
    }

    .overlay_menu .close-btn {
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
      font-size: 28px;
      background: none;
      border: none;
      color: #2f3e2f;
      cursor: pointer;
    }

    .overlay_nav {
      display: flex;
      flex-direction: column;
      gap: 2rem;
      text-align: center;
    }

    .overlay_nav a {
      font-size: 1.5rem;
      color: #2f3e2f;
      text-decoration: none;
      font-weight: 500;
      transition: transform 0.2s ease;
    }

    .overlay_nav a:hover {
      transform: scale(1.05);
    }

  /* unversal blocks - HEADER - end*/

    .main_index {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      flex: 1;
      padding-top: 5rem;
    }

    .main_other {
      display: block;
      justify-content: center;
      align-items: flex-start;
      flex: 1;
      padding-top: 2rem;
    }
    
    .blank {
        color: #808080e0;
        font-size: 14px;
        text-align: center;
        padding-right: 5%;
        padding-left: 5%;
        align-items: center;
        display: flex;
        height: 40vh;
        justify-content: center;
    }

    .title {
      font-size: 29px;
      text-align: center;
      padding-top: 2rem;
    }

    .title p {
      padding-left: 10%;
      padding-right: 10%;
    }

    .back{
      padding-left: 2rem;
    }

    .back img{
      opacity: 70%;
      width: auto;
      height: 30px;
      padding-right: 0.5rem;
    }

    .back img:hover{
      color: #2f3e2f;
      transform: scale(1.2);
      opacity: 100%;
    }

    .main_block_about {
      margin-top: 13rem;
      max-width: 800px;
      margin-left: auto; /* центрирование */
      margin-right: auto;  /* центрирование */
      padding: 0rem 2rem 4rem 2rem; /* вертикальные и горизонтальные отступы */
      line-height: 1.7;
    }

    .main_block_about .heading {
      margin-top: 3rem;
      margin-bottom: 1rem;
      text-align: left;
      font-size: 2rem;
    }

    .main_block_about .description {
      font-size: 1rem;
      text-align: left;
      opacity: 0.9;
    }

    .main_block_about p {
      margin-bottom: 1.5rem;
    }
    
    .bullet_points {
      text-align: center;
      display: flex;
      gap: 2rem;
      flex-direction: column;
      margin-top: 3rem;
    }
    
    .point_header {
        font-weight: 1000;
        font-size: 18px;
    }

    .main_block_cases {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      justify-content: center; /* центрируем */
      max-width: 800px;
      margin: 0 auto;
      padding: 2rem 2rem 4rem 2rem;
      line-height: 1.7;
      text-align: center;
      max-height: 54vh;        /* ограничение по высоте — можно подстроить */
      overflow-y: auto;        /* включаем вертикальную прокрутку */
      scrollbar-width: thin;   /* тонкий скроллбар (для Firefox) */
     }
     
    /*.main_block_cases a{*/
    /*  display: block;*/
    /*  text-decoration: none;*/
    /*  color: #2f3e2f;*/
    /*  font-size: 24px;*/
    /*  padding-bottom: 1rem;*/
    /*  margin-bottom: 1rem;*/
    /* }*/
     
     .cases {
        width: 561px;
        display: inline-block;
        padding: 14px 20px;
        margin: 10px;
        background: #f5f3e7; /* фон как на сайте */
        color: #2f3e2f;       /* тёмно-зелёный текст */
        border: 1px solid rgba(47, 62, 47, 0.25); /* тонкая обводка */
        border-radius: 12px;
        font-size: 16px;
        line-height: 1.4;
        text-decoration: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
        transition: all 0.2s ease;
        min-width: 240px;
     }
     
     .cases:hover {
        background: #2f3e2f;    /* тёмно-зелёный */
        color: #f5f3e7;         /* светлый текст */
        border-color: #2f3e2f;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

    /*.main_block_cases a:hover{*/
    /*  transform: scale(1.2);*/
    /*  text-shadow: 2px 2px 8px #0000;*/
    /* }*/

    .nav {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      flex: 1;
      padding-top: 2rem;
    }

    .menu {
      display: flex;
      flex-direction: column;
      gap: 2rem;
      font-size: 1.5rem;
      text-align: center;
    }

    .main_button {
      appearance: none;
      background-color: #FCFCFD;
      border-radius: 4px;
      border-width: 0;
      box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,
                  rgba(45, 35, 66, 0.3) 0 7px 13px -3px,
                  #D6D6E7 0 -3px 0 inset;
      box-sizing: border-box;
      color: #36395A;
      cursor: pointer;
      display: inline-flex;
      font-family: "JetBrains Mono", monospace;
      min-width: 200px;
      height: 48px;
      justify-content: center;
      padding: 0 16px;
      text-decoration: none;
      transition: box-shadow .15s, transform .15s;
      font-size: 18px;
      align-items: center;
      user-select: none;
    }

    .main_button:hover {
      box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px,
                  rgba(45, 35, 66, 0.3) 0 7px 13px -3px,
                  #D6D6E7 0 -3px 0 inset;
      transform: translateY(-2px);
    }

    .main_button:active {
      box-shadow: #D6D6E7 0 3px 7px inset;
      transform: translateY(2px);
    }

    .main_button img {
      padding-right: 15px;
      width: 30px;
      height: 30px;
      opacity: 0.9;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }

    #popup {
      display:none;
      position:fixed;
      top:0;
      left:0;
      width:100vw;
      height:100vh;
      background:rgba(0,0,0,0.6);
      z-index:1002;
      justify-content:center;
      align-items: flex-start;
    }

    #closePopup {
      position:absolute;
      top:10px;
      right:10px; 
      font-size:18px; 
      cursor:pointer;
    }
    
    .inside_popup{
      background:white;
      padding:2rem;
      max-width:600px;
      width:90%;
      border-radius:8px;
      position:relative;
      max-height: 90vh;       /* ограничим высоту */
      overflow-y: auto;       /* добавим прокрутку */
      box-sizing: border-box;
    }
    
    .carousel {
      position: relative;
      overflow: hidden;
      margin-top: 1rem;
      width: 100%;
      max-width: 800px;         /* максимальная ширина карусели */
      height: 400px;            /* фиксированная высота */
      margin-left: auto;
      margin-right: auto;
      border: 1px solid;
      border-radius: 12px;
    }
    
    .carousel-dots {
      display: flex;
      justify-content: center;
      margin-top: 1rem;
      gap: 10px;
    }
    
    .carousel-dots .dot {
      width: 10px;
      height: 10px;
      background-color: #888;
      border-radius: 50%;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }
    
    .carousel-dots .dot.active {
      background-color: #2f3e2f;
    }

    .slides {
      display: flex;
      transition: transform 0.4s ease-in-out;
      width: 100%;
      height: 100%;
      /*object-fit: cover;*/
      /*flex-shrink: 0;*/
      /*border-radius: 12px;*/
    }

    .slides img {
      width: 100%;
      flex: 0 0 100%;
      height: 100%;
      object-fit: contain; /* Показывает всё изображение, не обрезая */
      /*flex-shrink: 0;*/
      border-radius: 12px;
    }

    footer {
      padding: 2rem;
      display: flex;
      justify-content: center;
    }

    .socials {
      display: flex;
      gap: 1.5rem;
      align-items: center;
    }

    .socials a img {
      width: 40px;
      height: 40px;
      opacity: 0.9;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .socials a:hover img {
      transform: scale(1.15);
      opacity: 1;
    }

    @media (max-width: 600px) {
      header {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0;
        border-bottom: none;
      }

      .title {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 45vh;
        padding-top: 0rem;
        font-size: 22px;
      }

      .title p {
        padding-left: 5%;
        padding-right: 5%;
        font-size: 20px;
      }
        
      .second_point {
        margin-top: 4rem;
      }
      
      .name {
        font-size: 22px;
      }
      
      .lang-switch { gap: 10px; font-size: 16px; margin-left: auto; margin-right: auto;}

      .top_bar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: #f5f3e7ad;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
      }

      .menu_bar {
        display: none;
      }

      .hamburger {
        display: block;
        position: absolute;
        right: 5rem;
        z-index: 1001;
        top: 8px;
      }

      .overlay_menu {
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10%);
        transition: opacity 0.4s ease, transform 0.4s ease;
      }

      .overlay_menu.active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
      }

      .overlay_menu.show {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
      }

      body.menu-open {
        overflow: hidden;
      }

      .menu {
        font-size: 1.2rem;
        gap: 2.5rem;
      }
       .main_block_about{
           margin-top: 4rem;
       }
       
       .bullet_points{
           text-align: left;
       }
      
      .main_block_about h3 {
          font-size: 26px;
      }
      
      .main_block_cases a {
          font-size: 22px;
      }

      .main_button {
        width: 100%;
        max-width: 90vw;
        font-size: 16px;
      }
      
      .main_other {
        padding-top: 5rem;
      }
      
      .nav_help {
        padding-top: 4rem !important;
      }
      
      .main_index {
        height: 100vh;
      }
      
      .blank {
        color: #808080e0;
        font-size: 14px;
        text-align: center;
        padding-right: 5%;
        padding-left: 5%;
        align-items: center;
        display: flex;
        height: 40vh;
        justify-content: center;
      }

      /* NAV from contact page */

      .nav {
        padding-top: 3rem;
        padding_bottom: 2rem;
      }

      /*.inside_popup {*/
      /*  height: 100dvh;*/
      /*} */
        
      #popup p {
        font-size: 16px;
      }
      
      #closePopup {
        position: fixed;
      }
      
      .carousel {
      border: 1px solid;
      border-radius: 12px;
      }
        
      .slides img {
          object-fit: contain;
      }

      .footer_index {
        padding: 1.5rem 1rem;
      }

      .socials a img {
        width: 45px;
        height: 45px;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
      }
    }