:root {
  --primary-br: 20px;
  --l-gray: #f5f5f5;
}

.s__article_layout {
  display: grid;
  grid-template-columns: 1fr 485px;
  gap: 32px;
  padding-top: 32px;
  position: relative;
  
  @media (max-width: 1399px) {
    grid-template-columns: 1fr 350px;
  }
  
  @media (max-width: 991px) {
    grid-template-columns: 1fr;
    padding-top: 3px;
    gap: 0;
  }
}

.s__article_base {
  min-width: 0;
  font-size: 23px;
  line-height: 1.43478;
  font-weight: 500;
  overflow-wrap: anywhere;

  pre, table, iframe {
    max-width: 100%;
  }

  pre {
    overflow-x: auto;
  }
  
  @media (max-width: 991px) {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
  }
  
  h2 {
    margin: 120px 0 50px;
    scroll-margin-top: 55px;
    font-weight: 400;
    font-size: clamp(24px, 6vw, 70px);
    line-height: 1.14286;
    
    @media (max-width: 991px) {
      margin: 60px 0 24px;
      scroll-margin-top: 85px;
      line-height: 1.2;
    }
  }
  
  h3 {
    margin: 40px 0 20px;
    font-weight: 500;
    font-size: inherit;
    line-height: inherit;
    color: rgba(0, 0, 0, 0.4);
    
    @media (max-width: 991px) {
      margin: 20px 0 10px;
    }
  }
  
  p, ul, ol {
    margin-bottom: 20px;
    
    @media (max-width: 991px) {
      margin-bottom: 10px;
    }
  }
  
  ul, ol {
    @media (max-width: 991px) {
      padding-left: 25px;
    }
  }
  
  ol li::marker {
    font-weight: bold;
  }
  
  p:has(img) {
    display: flex;
    margin-top: 40px;
    
    @media (max-width: 991px) {
      margin-top: 20px;
    }
    
    + h3 {
      margin-top: 120px;
      
      @media (max-width: 991px) {
        margin-top: 60px;
      }
    }
  }
  
  li {
    margin-bottom: 10px;
    
    @media (max-width: 991px) {
      margin-bottom: 6px;
    }
  }
  
  strong {
    font-weight: bold;
  }
  
  img {
    max-width: 100%;
    box-shadow: 0 20px 50px 0 rgba(0, 0, 0, 0.15);
    border-radius: var(--primary-br);
    
    @media (max-width: 991px) {
      box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
      border-radius: 10px;
    }
  }
  
  .is-full-width {
    position: relative;
    
    &:before {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      width: 100vw;
      left: calc(50% + 500px / 2);
      transform: translateX(-50%);
      pointer-events: none;
      z-index: -1;
      
      @media (max-width: 1399px) {
        left: calc(50% + 365px / 2);
      }
      
      @media (max-width: 992px) {
        width: auto;
        left: -2.4rem;
        right: -2.4rem;
        transform: none;
      }
      
      @media (max-width: 768px) {
        left: -18px;
        right: -18px;
      }
    }
  }
  
  .you-know-todo {
    padding: 10px 0 0;
  }
}

.s__article_fw {
  display: grid;
  grid-template-columns: 1fr 487px;
  gap: 32px;
  position: relative;
  min-height: 364px;
  margin: 120px 0;
  background-color: var(--l-gray);
  
  @media (max-width: 1399px) {
    grid-template-columns: 1fr 300px;
    gap: 16px;
  }
  
  @media (max-width: 1199px) {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  @media (max-width: 991px) {
    min-height: 0;
    margin: 60px 0;
  }
  
  &:before {
    background-color: var(--l-gray);
  }
}

.s__article_fw-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 80px 0 80px 60px;
  
  @media (max-width: 1399px) {
    padding-left: 0;
  }
  
  @media (max-width: 1199px) {
    padding-bottom: 0;
  }

  @media (max-width: 991px) {
    gap: 20px;
    padding: 40px 0 0;
  }
  
  .you-know-todo {
    margin-top: -20px;
    padding-top: 0 !important;
  }
  
  .you-know-todo__form {
    flex-direction: column;
    gap: 20px;
  }
  
  .you-know-todo__btn {
    width: 100%;
    min-height: 80px;
    font-size: 23px;
    font-weight: 500;
    
    @media (max-width: 991px) {
      min-height: 60px;
      font-size: 16px;
    }
    
    i {
      flex-shrink: 0;
      width: 18px;
      height: 18px;
    }
  }
}

.s__article_fw-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 397px;
  min-height: 80px;
  border-radius: 100px;
  background: #2aabee;
  color: #fff !important;
  transition: 0.3s;
  text-decoration: none !important;
  
  @media (max-width: 991px) {
    min-height: 60px;
  }
  
  svg {
    flex-shrink: 0;
    width: 20px;
    height: 16px;
  }
  
  &:hover {
    opacity: 0.8;
  }
}

.s__article_fw-title {
  font-size: 37px;
  line-height: 1.27027;
  font-weight: normal;
  
  @media (max-width: 991px) {
    font-size: 24px;
    line-height: 1.2;
  }
}

.s__article_fw-right {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;

  @media (max-width: 1199px) {
    height: 380px;
  }

  @media (max-width: 767px) {
    height: 300px;
  }
  
  img {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 100%;
    box-shadow: none;
    border-radius: 0;
    object-fit: contain;
    pointer-events: none;

    @media (max-width: 1199px) {
      left: 50%;
      transform: translateX(-50%);
      right: auto;
    }
  }
}

.s__article_nav {
  padding: 33px 24px;
  position: sticky;
  z-index: 0;
  top: 80px;
  border-radius: var(--primary-br);
  background-color: var(--l-gray);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.58824;
  
  @media (max-width: 991px) {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px;
    background-color: #fff;
    box-shadow: var(--primary-shadow);
    border-radius: 0;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    transition: 0.3s;
    transform: translateX(-100%);
    
    &.is-active {
      transform: translateX(0);
    }
  }
}

.s__article_nav-title {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.43478;
  
  @media (max-width: 991px) {
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: #303040;
  }
}

.s__article_nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100svh - 200px);
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;

  @media (max-width: 991px) {
      max-height: calc(100svh - 80px);
  }
  
  li {
    margin: 0;
    padding-left: 14px;
    position: relative;
    
    @media (max-width: 991px) {
      padding-left: 12px;
    }
    
    &:before {
      content: "";
      position: absolute;
      top: 10px;
      left: 0;
      width: 8px;
      height: 8px;
      border: 1px solid var(--black);
      border-radius: 50%;
      transition: 0.3s;
      
      @media (max-width: 991px) {
        width: 6px;
        height: 6px;
        top: 7px;
      }
    }
    
    a {
      display: block;
      color: var(--black);
      text-decoration: underline;
      text-underline-offset: 6px;
      text-decoration-color: #c4c4c8;
      transition: color 0.3s;
      
      @media (max-width: 991px) {
        text-underline-offset: 3px;
        text-decoration-color: #efeff0;
        color: #303040;
      }
      
      &:hover {
        text-decoration: none;
        color: var(--red) !important;
      }
    }
    
    &.is-active {
      &:before {
        background-color: var(--red);
        border-color: var(--red);
      }
    }
  }
}

.s__article_nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 5;
  border: none;
  outline: none !important;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0ibm9uZSIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBzdHJva2U9IiMzMDMwNDAiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgc3Ryb2tlLXdpZHRoPSIxLjUiIGQ9Ik0xOCA2IDYgMThNNiA2bDEyIDEyIi8+PC9zdmc+);
  
  @media (min-width: 991px) {
    display: none;
  }
}

.s__article_nav-open {
  position: fixed;
  z-index: 99;
  bottom: calc(32px + env(safe-area-inset-bottom));
  left: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 46px;
  width: 100%;
  max-width: 163px;
  border: none;
  box-shadow: var(--primary-shadow);
  border-radius: 100px;
  outline: none !important;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  background-color: var(--l-gray);
  
  svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
  }
  
  @media (min-width: 991px) {
    display: none;
  }
}

@media screen and (min-width: 769px) {
  .pg_article .worktop-descript {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }
}

.s__article_base .slider_items_t1 .slider_items .item_inn {
  overflow: unset;
}

.s__article_base .author-art__img {
  box-shadow: none;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -o-border-radius: 50%;
}
